@kris701/ez-ui 1.4.9 → 1.4.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.
@@ -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){
@@ -3327,7 +3327,7 @@ class EzUITreeMultiSelect {
3327
3327
  }
3328
3328
  expandSearchRec(from, newMap) {
3329
3329
  let expanded = false;
3330
- if (from.label.includes(this.searchValue())) {
3330
+ if (from.label.toLowerCase().includes(this.searchValue().toLowerCase())) {
3331
3331
  newMap.set(from, true);
3332
3332
  expanded = true;
3333
3333
  }
@@ -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" >
@@ -4210,7 +4210,7 @@ class EzUITreeSelect {
4210
4210
  }
4211
4211
  expandSearchRec(from, newMap) {
4212
4212
  let expanded = false;
4213
- if (from.label.includes(this.searchValue())) {
4213
+ if (from.label.toLowerCase().includes(this.searchValue().toLowerCase())) {
4214
4214
  newMap.set(from, true);
4215
4215
  expanded = true;
4216
4216
  }
@@ -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>