@kris701/ez-ui 1.4.8 → 1.4.10
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.
|
@@ -3185,7 +3185,7 @@ class EzUIMultiSelect {
|
|
|
3185
3185
|
}
|
|
3186
3186
|
@for (item of options; track getOptionValue(item)) {
|
|
3187
3187
|
@let label = getOptionLabel(item);
|
|
3188
|
-
@if(!enableSearch || (searchValue == '' || label.includes(searchValue))){
|
|
3188
|
+
@if(!enableSearch || (searchValue == '' || label.toLowerCase().includes(searchValue.toLowerCase()))){
|
|
3189
3189
|
@let value = getOptionValue(item);
|
|
3190
3190
|
<button tuiOption [value]="value" >
|
|
3191
3191
|
@if(itemTemplate){
|
|
@@ -3234,7 +3234,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
3234
3234
|
}
|
|
3235
3235
|
@for (item of options; track getOptionValue(item)) {
|
|
3236
3236
|
@let label = getOptionLabel(item);
|
|
3237
|
-
@if(!enableSearch || (searchValue == '' || label.includes(searchValue))){
|
|
3237
|
+
@if(!enableSearch || (searchValue == '' || label.toLowerCase().includes(searchValue.toLowerCase()))){
|
|
3238
3238
|
@let value = getOptionValue(item);
|
|
3239
3239
|
<button tuiOption [value]="value" >
|
|
3240
3240
|
@if(itemTemplate){
|
|
@@ -3379,7 +3379,7 @@ class EzUITreeMultiSelect {
|
|
|
3379
3379
|
tuiOption
|
|
3380
3380
|
[value]="value"
|
|
3381
3381
|
[disabled]="value.selectable === false"
|
|
3382
|
-
[style.opacity]="!enableSearch || (searchValue() == '' || value.label.includes(searchValue())) ? (value.selectable === false ? 0.5 : 1) : 0.2"
|
|
3382
|
+
[style.opacity]="!enableSearch || (searchValue() == '' || value.label.toLowerCase().includes(searchValue().toLowerCase())) ? (value.selectable === false ? 0.5 : 1) : 0.2"
|
|
3383
3383
|
>
|
|
3384
3384
|
@if(itemTemplate){
|
|
3385
3385
|
<ng-container [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ $implicit: value }"></ng-container>
|
|
@@ -3451,7 +3451,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
3451
3451
|
tuiOption
|
|
3452
3452
|
[value]="value"
|
|
3453
3453
|
[disabled]="value.selectable === false"
|
|
3454
|
-
[style.opacity]="!enableSearch || (searchValue() == '' || value.label.includes(searchValue())) ? (value.selectable === false ? 0.5 : 1) : 0.2"
|
|
3454
|
+
[style.opacity]="!enableSearch || (searchValue() == '' || value.label.toLowerCase().includes(searchValue().toLowerCase())) ? (value.selectable === false ? 0.5 : 1) : 0.2"
|
|
3455
3455
|
>
|
|
3456
3456
|
@if(itemTemplate){
|
|
3457
3457
|
<ng-container [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ $implicit: value }"></ng-container>
|
|
@@ -4052,7 +4052,7 @@ class EzUISelect {
|
|
|
4052
4052
|
}
|
|
4053
4053
|
@for (item of options; track getOptionValue(item)) {
|
|
4054
4054
|
@let label = getOptionLabel(item);
|
|
4055
|
-
@if(!enableSearch || (searchValue == '' || label.includes(searchValue))) {
|
|
4055
|
+
@if(!enableSearch || (searchValue == '' || label.toLowerCase().includes(searchValue.toLowerCase()))) {
|
|
4056
4056
|
|
|
4057
4057
|
@let value = getOptionValue(item);
|
|
4058
4058
|
<button tuiOption [value]="value" >
|
|
@@ -4105,7 +4105,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
4105
4105
|
}
|
|
4106
4106
|
@for (item of options; track getOptionValue(item)) {
|
|
4107
4107
|
@let label = getOptionLabel(item);
|
|
4108
|
-
@if(!enableSearch || (searchValue == '' || label.includes(searchValue))) {
|
|
4108
|
+
@if(!enableSearch || (searchValue == '' || label.toLowerCase().includes(searchValue.toLowerCase()))) {
|
|
4109
4109
|
|
|
4110
4110
|
@let value = getOptionValue(item);
|
|
4111
4111
|
<button tuiOption [value]="value" >
|
|
@@ -4261,7 +4261,7 @@ class EzUITreeSelect {
|
|
|
4261
4261
|
tuiOption
|
|
4262
4262
|
[value]="value"
|
|
4263
4263
|
[disabled]="value.selectable === false"
|
|
4264
|
-
[style.opacity]="!enableSearch || (searchValue() == '' || value.label.includes(searchValue())) ? (value.selectable === false ? 0.5 : 1) : 0.2"
|
|
4264
|
+
[style.opacity]="!enableSearch || (searchValue() == '' || value.label.toLowerCase().includes(searchValue().toLowerCase())) ? (value.selectable === false ? 0.5 : 1) : 0.2"
|
|
4265
4265
|
>
|
|
4266
4266
|
@if(itemTemplate){
|
|
4267
4267
|
<ng-container [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ $implicit: value }"></ng-container>
|
|
@@ -4338,7 +4338,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
4338
4338
|
tuiOption
|
|
4339
4339
|
[value]="value"
|
|
4340
4340
|
[disabled]="value.selectable === false"
|
|
4341
|
-
[style.opacity]="!enableSearch || (searchValue() == '' || value.label.includes(searchValue())) ? (value.selectable === false ? 0.5 : 1) : 0.2"
|
|
4341
|
+
[style.opacity]="!enableSearch || (searchValue() == '' || value.label.toLowerCase().includes(searchValue().toLowerCase())) ? (value.selectable === false ? 0.5 : 1) : 0.2"
|
|
4342
4342
|
>
|
|
4343
4343
|
@if(itemTemplate){
|
|
4344
4344
|
<ng-container [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ $implicit: value }"></ng-container>
|
|
@@ -4954,7 +4954,7 @@ class EzUITable {
|
|
|
4954
4954
|
<div class="ezui-table">
|
|
4955
4955
|
<tui-loader [inheritColor]="true" [overlay]="true" size="xxl" [loading]="isLoading()">
|
|
4956
4956
|
@if(values === null || values.length == 0){
|
|
4957
|
-
@if(showAdd || showRefresh){
|
|
4957
|
+
@if(showAdd || showRefresh || actionsHeader){
|
|
4958
4958
|
<div class="ezui-table-header">
|
|
4959
4959
|
@if(showRefresh){
|
|
4960
4960
|
<button tuiButton iconStart="rotate-cw" size="s" appearance="info" (click)="onLoadItems.emit()" tuiHint="Refresh the table"></button>
|
|
@@ -4962,6 +4962,9 @@ class EzUITable {
|
|
|
4962
4962
|
@if(showAdd){
|
|
4963
4963
|
<button tuiButton iconStart="plus" size="s" appearance="info" (click)="onAddItem.emit()" tuiHint="Add new item"></button>
|
|
4964
4964
|
}
|
|
4965
|
+
@if(actionsHeader){
|
|
4966
|
+
<ng-container [ngTemplateOutlet]="actionsHeader"></ng-container>
|
|
4967
|
+
}
|
|
4965
4968
|
</div>
|
|
4966
4969
|
}
|
|
4967
4970
|
@if(!isLoading()){
|
|
@@ -5114,7 +5117,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
5114
5117
|
<div class="ezui-table">
|
|
5115
5118
|
<tui-loader [inheritColor]="true" [overlay]="true" size="xxl" [loading]="isLoading()">
|
|
5116
5119
|
@if(values === null || values.length == 0){
|
|
5117
|
-
@if(showAdd || showRefresh){
|
|
5120
|
+
@if(showAdd || showRefresh || actionsHeader){
|
|
5118
5121
|
<div class="ezui-table-header">
|
|
5119
5122
|
@if(showRefresh){
|
|
5120
5123
|
<button tuiButton iconStart="rotate-cw" size="s" appearance="info" (click)="onLoadItems.emit()" tuiHint="Refresh the table"></button>
|
|
@@ -5122,6 +5125,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
5122
5125
|
@if(showAdd){
|
|
5123
5126
|
<button tuiButton iconStart="plus" size="s" appearance="info" (click)="onAddItem.emit()" tuiHint="Add new item"></button>
|
|
5124
5127
|
}
|
|
5128
|
+
@if(actionsHeader){
|
|
5129
|
+
<ng-container [ngTemplateOutlet]="actionsHeader"></ng-container>
|
|
5130
|
+
}
|
|
5125
5131
|
</div>
|
|
5126
5132
|
}
|
|
5127
5133
|
@if(!isLoading()){
|