@kris701/ez-ui 1.1.10 → 1.1.12
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.
|
@@ -3770,7 +3770,6 @@ class EzUITableBooleanFilter {
|
|
|
3770
3770
|
return;
|
|
3771
3771
|
}
|
|
3772
3772
|
const filter = x.filters.find(x => x.column == this.column);
|
|
3773
|
-
console.log(filter);
|
|
3774
3773
|
if (!filter || filter.expression != "bol;true") {
|
|
3775
3774
|
this.value = false;
|
|
3776
3775
|
this.filterApplied.set(false);
|
|
@@ -4143,7 +4142,8 @@ class EzUITableSelectFilter {
|
|
|
4143
4142
|
selected = [];
|
|
4144
4143
|
filterType;
|
|
4145
4144
|
filterTypes;
|
|
4146
|
-
|
|
4145
|
+
stringifyOption = (item) => `${item.label}`;
|
|
4146
|
+
stringifyValue = (value) => this.getOptionLabel(this.options.find((item) => this.getOptionValue(item) === value));
|
|
4147
4147
|
getOptionLabel(item) {
|
|
4148
4148
|
if (!item)
|
|
4149
4149
|
return "";
|
|
@@ -4246,7 +4246,7 @@ class EzUITableSelectFilter {
|
|
|
4246
4246
|
{{ filterType.label }}
|
|
4247
4247
|
<tui-data-list-wrapper
|
|
4248
4248
|
*tuiDropdown
|
|
4249
|
-
[itemContent]="
|
|
4249
|
+
[itemContent]="stringifyOption | tuiStringifyContent"
|
|
4250
4250
|
[items]="filterTypes"
|
|
4251
4251
|
/>
|
|
4252
4252
|
</button>
|
|
@@ -4258,7 +4258,7 @@ class EzUITableSelectFilter {
|
|
|
4258
4258
|
tuiButtonSelect
|
|
4259
4259
|
[(ngModel)]="selected"
|
|
4260
4260
|
>
|
|
4261
|
-
{{selected.length === 1 ? selected[0] : 'Selected ' + selected.length}}
|
|
4261
|
+
{{selected.length === 1 ? stringifyValue(selected[0]) : 'Selected ' + selected.length}}
|
|
4262
4262
|
|
|
4263
4263
|
<tui-data-list *tuiDropdown>
|
|
4264
4264
|
<tui-opt-group
|
|
@@ -4339,7 +4339,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
4339
4339
|
{{ filterType.label }}
|
|
4340
4340
|
<tui-data-list-wrapper
|
|
4341
4341
|
*tuiDropdown
|
|
4342
|
-
[itemContent]="
|
|
4342
|
+
[itemContent]="stringifyOption | tuiStringifyContent"
|
|
4343
4343
|
[items]="filterTypes"
|
|
4344
4344
|
/>
|
|
4345
4345
|
</button>
|
|
@@ -4351,7 +4351,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
4351
4351
|
tuiButtonSelect
|
|
4352
4352
|
[(ngModel)]="selected"
|
|
4353
4353
|
>
|
|
4354
|
-
{{selected.length === 1 ? selected[0] : 'Selected ' + selected.length}}
|
|
4354
|
+
{{selected.length === 1 ? stringifyValue(selected[0]) : 'Selected ' + selected.length}}
|
|
4355
4355
|
|
|
4356
4356
|
<tui-data-list *tuiDropdown>
|
|
4357
4357
|
<tui-opt-group
|