@kris701/ez-ui 1.4.13 → 1.5.1
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.
|
@@ -3434,11 +3434,13 @@ class EzUITreeMultiSelect {
|
|
|
3434
3434
|
</tui-textfield>
|
|
3435
3435
|
|
|
3436
3436
|
<ng-template #treeContent let-item>
|
|
3437
|
-
@let
|
|
3437
|
+
@let hasChildren = item.children && item.children.length > 0;
|
|
3438
|
+
@let isDisabled = item.selectable === false || hasChildren;
|
|
3438
3439
|
<label
|
|
3439
3440
|
tuiLabel
|
|
3440
3441
|
[class]="{'wrapper':true, 'wrapperActive':!isDisabled}"
|
|
3441
|
-
[style.
|
|
3442
|
+
[style.display]="enableSearch && searchValue() != '' && !hasChildren && !item.label.toLowerCase().includes(searchValue().toLowerCase()) ? 'none' : ''"
|
|
3443
|
+
[style.opacity]="isDisabled ? 0.8 : 1"
|
|
3442
3444
|
>
|
|
3443
3445
|
<input
|
|
3444
3446
|
size="s"
|
|
@@ -3526,11 +3528,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
3526
3528
|
</tui-textfield>
|
|
3527
3529
|
|
|
3528
3530
|
<ng-template #treeContent let-item>
|
|
3529
|
-
@let
|
|
3531
|
+
@let hasChildren = item.children && item.children.length > 0;
|
|
3532
|
+
@let isDisabled = item.selectable === false || hasChildren;
|
|
3530
3533
|
<label
|
|
3531
3534
|
tuiLabel
|
|
3532
3535
|
[class]="{'wrapper':true, 'wrapperActive':!isDisabled}"
|
|
3533
|
-
[style.
|
|
3536
|
+
[style.display]="enableSearch && searchValue() != '' && !hasChildren && !item.label.toLowerCase().includes(searchValue().toLowerCase()) ? 'none' : ''"
|
|
3537
|
+
[style.opacity]="isDisabled ? 0.8 : 1"
|
|
3534
3538
|
>
|
|
3535
3539
|
<input
|
|
3536
3540
|
size="s"
|
|
@@ -4346,14 +4350,16 @@ class EzUITreeSelect {
|
|
|
4346
4350
|
</tui-data-list>
|
|
4347
4351
|
</tui-textfield>
|
|
4348
4352
|
|
|
4349
|
-
<ng-template #treeContent let-
|
|
4353
|
+
<ng-template #treeContent let-value>
|
|
4350
4354
|
<div class="wrapper">
|
|
4351
|
-
@let
|
|
4355
|
+
@let hasChildren = value.children && value.children.length > 0;
|
|
4356
|
+
@let isDisabled = value.selectable === false || hasChildren;
|
|
4352
4357
|
<button
|
|
4353
4358
|
tuiOption
|
|
4354
4359
|
[value]="value"
|
|
4355
4360
|
[disabled]="isDisabled"
|
|
4356
|
-
[style.
|
|
4361
|
+
[style.display]="enableSearch && searchValue() != '' && !hasChildren && !value.label.toLowerCase().includes(searchValue().toLowerCase()) ? 'none' : ''"
|
|
4362
|
+
[style.opacity]="isDisabled ? 0.8 : 1"
|
|
4357
4363
|
>
|
|
4358
4364
|
@if(itemTemplate){
|
|
4359
4365
|
<ng-container [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ $implicit: value }"></ng-container>
|
|
@@ -4424,14 +4430,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
4424
4430
|
</tui-data-list>
|
|
4425
4431
|
</tui-textfield>
|
|
4426
4432
|
|
|
4427
|
-
<ng-template #treeContent let-
|
|
4433
|
+
<ng-template #treeContent let-value>
|
|
4428
4434
|
<div class="wrapper">
|
|
4429
|
-
@let
|
|
4435
|
+
@let hasChildren = value.children && value.children.length > 0;
|
|
4436
|
+
@let isDisabled = value.selectable === false || hasChildren;
|
|
4430
4437
|
<button
|
|
4431
4438
|
tuiOption
|
|
4432
4439
|
[value]="value"
|
|
4433
4440
|
[disabled]="isDisabled"
|
|
4434
|
-
[style.
|
|
4441
|
+
[style.display]="enableSearch && searchValue() != '' && !hasChildren && !value.label.toLowerCase().includes(searchValue().toLowerCase()) ? 'none' : ''"
|
|
4442
|
+
[style.opacity]="isDisabled ? 0.8 : 1"
|
|
4435
4443
|
>
|
|
4436
4444
|
@if(itemTemplate){
|
|
4437
4445
|
<ng-container [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ $implicit: value }"></ng-container>
|