Skip to content

Commit d6e7b0e

Browse files
feat(combo): filer/custom value placeholder, i18n; filterable->disableFiltering (#14408)
Change search placeholder depending on filtering functionality being enabled or change text to reflect custom value can be added if that option is on. Both placeholder texts localized from the combo resource strings. Rename `filterable` to `disableFiltering` & deprecate `filteringOptions.filterable`.
1 parent 2bf675e commit d6e7b0e

31 files changed

+135
-46
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ For Firefox users, we provide limited scrollbar styling options through the foll
9696
- **Behavioral Changes** - the `keyboardSupport` input property now defaults to `false`.
9797
- **Deprecation** - the `keyboardSupport` input property has been deprecated and will be removed in a future version. Keyboard navigation with `ArrowLeft`, `ArrowRight`, `Home`, and `End` keys will be supported when focusing the indicators' container via ` Tab`/`Shift+Tab`.
9898

99+
- `IgxCombo`:
100+
- **Breaking Change** The deprecated `filterable` property is replaced with `disableFiltering`.
101+
- The dropdown search field placeholder is now part of the Combo's localization resources. It now also uses two resource values depending on whether filtering is active, e.g. in the default `en` locale it remains `'Enter a Search Term'`, but changes to `'Add Item'` when `disableFiltering` and `allowCustomValues` are set to true. For that reason, the existing `searchPlaceholder` input is also **deprecated** in favor of the resources.
102+
- **Deprecation** - `filterable` from the `filteringOptions` has been deprecated in favor of `disableFiltering`.
103+
99104
- `IgxBadge`
100105
- **Breaking Change** The `$border-width` property has been removed from the badge theme.
101106
- New outlined variant of the badge component has been added. Users can switch to `outlined` by adding the newly created `outlined` property to a badge.

projects/igniteui-angular-i18n/src/i18n/BG/combo-resources.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { IComboResourceStrings } from 'igniteui-angular';
33
// exported below as re-cast to create declaration type with expanded properties
44
const ComboResourceStringsBG_: ExpandRequire<IComboResourceStrings> = {
55
igx_combo_empty_message: 'Списъкът е празен',
6+
igx_combo_filter_search_placeholder: 'Въведете термин за търсене',
67
igx_combo_addCustomValues_placeholder: 'Добавяне на елемент',
78
igx_combo_clearItems_placeholder: 'Изчистване на избора'
89
};

projects/igniteui-angular-i18n/src/i18n/CS/combo-resources.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { IComboResourceStrings } from 'igniteui-angular';
33
// exported below as re-cast to create declaration type with expanded properties
44
const ComboResourceStringsCS_: ExpandRequire<IComboResourceStrings> = {
55
igx_combo_empty_message: 'Seznam je prázdný',
6+
igx_combo_filter_search_placeholder: 'Zadejte hledaný výraz',
67
igx_combo_addCustomValues_placeholder: 'Přidat položku',
78
igx_combo_clearItems_placeholder: 'Vymazat výběr'
89
};

projects/igniteui-angular-i18n/src/i18n/DA/combo-resources.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { IComboResourceStrings } from 'igniteui-angular';
33
// exported below as re-cast to create declaration type with expanded properties
44
const ComboResourceStringsDA_: ExpandRequire<IComboResourceStrings> = {
55
igx_combo_empty_message: 'Listen er tom',
6+
igx_combo_filter_search_placeholder: 'Indtast en søgeterm',
67
igx_combo_addCustomValues_placeholder: 'Tilføj element',
78
igx_combo_clearItems_placeholder: 'Ryd markering'
89
};

projects/igniteui-angular-i18n/src/i18n/DE/combo-resources.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { IComboResourceStrings } from 'igniteui-angular';
33
// exported below as re-cast to create declaration type with expanded properties
44
const ComboResourceStringsDE_: ExpandRequire<IComboResourceStrings> = {
55
igx_combo_empty_message: 'Die Liste ist leer',
6+
igx_combo_filter_search_placeholder: 'Suchbegriff eingeben',
67
igx_combo_addCustomValues_placeholder: 'Element hinzufügen',
78
igx_combo_clearItems_placeholder: 'Auswahl löschen'
89
};

projects/igniteui-angular-i18n/src/i18n/ES/combo-resources.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { IComboResourceStrings } from 'igniteui-angular';
33
// exported below as re-cast to create declaration type with expanded properties
44
const ComboResourceStringsES_: ExpandRequire<IComboResourceStrings> = {
55
igx_combo_empty_message: 'La lista está vacía',
6+
igx_combo_filter_search_placeholder: 'Escriba un término de búsqueda',
67
igx_combo_addCustomValues_placeholder: 'Agregar elemento',
78
igx_combo_clearItems_placeholder: 'Borrar selección'
89
};

projects/igniteui-angular-i18n/src/i18n/FR/combo-resources.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { IComboResourceStrings } from 'igniteui-angular';
33
// exported below as re-cast to create declaration type with expanded properties
44
const ComboResourceStringsFR_: ExpandRequire<IComboResourceStrings> = {
55
igx_combo_empty_message: 'La liste est vide',
6+
igx_combo_filter_search_placeholder: 'Entrez un terme de recherche',
67
igx_combo_addCustomValues_placeholder: 'Ajouter un élément',
78
igx_combo_clearItems_placeholder: 'Effacer la sélection'
89
};

projects/igniteui-angular-i18n/src/i18n/HU/combo-resources.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { IComboResourceStrings } from 'igniteui-angular';
33
// exported below as re-cast to create declaration type with expanded properties
44
const ComboResourceStringsHU_: ExpandRequire<IComboResourceStrings> = {
55
igx_combo_empty_message: 'Üres a lista',
6+
igx_combo_filter_search_placeholder: 'Írjon be egy keresési kifejezést',
67
igx_combo_addCustomValues_placeholder: 'Elem hozzáadása',
78
igx_combo_clearItems_placeholder: 'Kiválasztás törlése'
89
};

projects/igniteui-angular-i18n/src/i18n/IT/combo-resources.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { IComboResourceStrings } from 'igniteui-angular';
33
// exported below as re-cast to create declaration type with expanded properties
44
const ComboResourceStringsIT_: ExpandRequire<IComboResourceStrings> = {
55
igx_combo_empty_message: 'L\'elenco è vuoto',
6+
igx_combo_filter_search_placeholder: 'Immettere il testo di ricerca',
67
igx_combo_addCustomValues_placeholder: 'Aggiungi elemento',
78
igx_combo_clearItems_placeholder: 'Cancella selezione'
89
};

projects/igniteui-angular-i18n/src/i18n/JA/combo-resources.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { IComboResourceStrings } from 'igniteui-angular';
33
// exported below as re-cast to create declaration type with expanded properties
44
const ComboResourceStringsJA_: ExpandRequire<IComboResourceStrings> = {
55
igx_combo_empty_message: 'リストが空です',
6+
igx_combo_filter_search_placeholder: '検索条件の入力',
67
igx_combo_addCustomValues_placeholder: '項目の追加',
78
igx_combo_clearItems_placeholder: '選択のクリア'
89
};

0 commit comments

Comments
 (0)