[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

@@ -8,10 +8,14 @@
<div *ngIf="isEditable()">
<mat-form-field class="adf-select-item-padding-editable adf-property-value">
<mat-select [(value)]="value"
panelClass="adf-select-filter"
(selectionChange)="onChange($event)"
data-automation-class="select-box">
<adf-select-filter-input *ngIf="showInputFilter" (change)="onFilterInputChange($event)"></adf-select-filter-input>
<mat-option *ngIf="showNoneOption()">{{ 'CORE.CARDVIEW.NONE' | translate }}</mat-option>
<mat-option *ngFor="let option of getOptions() | async"
<mat-option *ngFor="let option of getList() | async"
[value]="option.key">
{{ option.label | translate }}
</mat-option>