[ADF-5213] Metadata - select list filter (#5961)

* select filter input component

* include theme

* add filter input

* show input conditionally

* convert value to string for d:int type values

* filter list options pipe

* add components to module

* convert int value to string

* i18n

* update tests

* tests

* update config

* remove unneeded decorator

* fix lint

* update schema

* remove filter pipe

* provide a filtered list
This commit is contained in:
Cilibiu Bogdan
2020-08-10 01:35:46 +03:00
committed by GitHub
parent 7b7c996fab
commit 9b0db0a82e
15 changed files with 392 additions and 13 deletions

View File

@@ -35,7 +35,7 @@ export class CardViewSelectItemModel<T> extends CardViewBaseItemModel implements
get displayValue() {
return this.options$.pipe(
switchMap((options) => {
const option = options.find((o) => o.key === this.value);
const option = options.find((o) => o.key === this.value?.toString());
return of(option ? option.label : '');
})
);