@kris701/ez-ui 1.1.10 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4143,7 +4143,8 @@ class EzUITableSelectFilter {
|
|
|
4143
4143
|
selected = [];
|
|
4144
4144
|
filterType;
|
|
4145
4145
|
filterTypes;
|
|
4146
|
-
|
|
4146
|
+
stringifyOption = (item) => `${item.label}`;
|
|
4147
|
+
stringifyValue = (value) => this.getOptionLabel(this.options.find((item) => this.getOptionValue(item) === value));
|
|
4147
4148
|
getOptionLabel(item) {
|
|
4148
4149
|
if (!item)
|
|
4149
4150
|
return "";
|
|
@@ -4246,7 +4247,7 @@ class EzUITableSelectFilter {
|
|
|
4246
4247
|
{{ filterType.label }}
|
|
4247
4248
|
<tui-data-list-wrapper
|
|
4248
4249
|
*tuiDropdown
|
|
4249
|
-
[itemContent]="
|
|
4250
|
+
[itemContent]="stringifyOption | tuiStringifyContent"
|
|
4250
4251
|
[items]="filterTypes"
|
|
4251
4252
|
/>
|
|
4252
4253
|
</button>
|
|
@@ -4258,7 +4259,7 @@ class EzUITableSelectFilter {
|
|
|
4258
4259
|
tuiButtonSelect
|
|
4259
4260
|
[(ngModel)]="selected"
|
|
4260
4261
|
>
|
|
4261
|
-
{{selected.length === 1 ? selected[0] : 'Selected ' + selected.length}}
|
|
4262
|
+
{{selected.length === 1 ? stringifyValue(selected[0]) : 'Selected ' + selected.length}}
|
|
4262
4263
|
|
|
4263
4264
|
<tui-data-list *tuiDropdown>
|
|
4264
4265
|
<tui-opt-group
|
|
@@ -4339,7 +4340,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
4339
4340
|
{{ filterType.label }}
|
|
4340
4341
|
<tui-data-list-wrapper
|
|
4341
4342
|
*tuiDropdown
|
|
4342
|
-
[itemContent]="
|
|
4343
|
+
[itemContent]="stringifyOption | tuiStringifyContent"
|
|
4343
4344
|
[items]="filterTypes"
|
|
4344
4345
|
/>
|
|
4345
4346
|
</button>
|
|
@@ -4351,7 +4352,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
4351
4352
|
tuiButtonSelect
|
|
4352
4353
|
[(ngModel)]="selected"
|
|
4353
4354
|
>
|
|
4354
|
-
{{selected.length === 1 ? selected[0] : 'Selected ' + selected.length}}
|
|
4355
|
+
{{selected.length === 1 ? stringifyValue(selected[0]) : 'Selected ' + selected.length}}
|
|
4355
4356
|
|
|
4356
4357
|
<tui-data-list *tuiDropdown>
|
|
4357
4358
|
<tui-opt-group
|