|
3 | 3 | class="tw-inline-flex tw-items-center tw-rounded-full tw-w-full tw-border-solid tw-border tw-gap-1.5 tw-group/chip-select" |
4 | 4 | [ngClass]="{ |
5 | 5 | 'tw-bg-text-muted hover:tw-bg-secondary-700 tw-text-contrast hover:!tw-border-secondary-700': |
6 | | - selectedOption && !disabled, |
| 6 | + selectedOption && !disabled(), |
7 | 7 | 'tw-bg-transparent hover:tw-border-secondary-700 !tw-text-muted hover:tw-bg-secondary-100': |
8 | | - !selectedOption && !disabled, |
9 | | - 'tw-bg-secondary-300 tw-text-muted tw-border-transparent': disabled, |
10 | | - 'tw-border-text-muted': !disabled, |
| 8 | + !selectedOption && !disabled(), |
| 9 | + 'tw-bg-secondary-300 tw-text-muted tw-border-transparent': disabled(), |
| 10 | + 'tw-border-text-muted': !disabled(), |
11 | 11 | 'tw-ring-2 tw-ring-primary-600 tw-ring-offset-1': focusVisibleWithin(), |
12 | 12 | }" |
13 | 13 | > |
|
17 | 17 | class="tw-inline-flex tw-gap-1.5 tw-items-center tw-justify-between tw-bg-transparent hover:tw-bg-transparent tw-border-none tw-outline-none tw-w-full tw-py-1 tw-ps-3 last:tw-pe-3 [&:not(:last-child)]:tw-pe-0 tw-truncate tw-text-[color:inherit] tw-text-[length:inherit]" |
18 | 18 | data-fvw-target |
19 | 19 | [ngClass]="{ |
20 | | - 'tw-cursor-not-allowed': disabled, |
21 | | - 'group-hover/chip-select:tw-text-secondary-700': !selectedOption && !disabled, |
| 20 | + 'tw-cursor-not-allowed': disabled(), |
| 21 | + 'group-hover/chip-select:tw-text-secondary-700': !selectedOption && !disabled(), |
22 | 22 | }" |
23 | 23 | [bitMenuTriggerFor]="menu" |
24 | | - [disabled]="disabled" |
| 24 | + [disabled]="disabled()" |
25 | 25 | [title]="label" |
26 | 26 | #menuTrigger="menuTrigger" |
27 | 27 | (click)="setMenuWidth()" |
|
45 | 45 | <button |
46 | 46 | type="button" |
47 | 47 | [attr.aria-label]="'removeItem' | i18n: label" |
48 | | - [disabled]="disabled" |
| 48 | + [disabled]="disabled()" |
49 | 49 | class="tw-bg-transparent hover:tw-bg-hover-contrast tw-outline-none tw-rounded-full tw-py-0.5 tw-px-1 tw-me-1 tw-text-[color:inherit] tw-text-[length:inherit] tw-border-solid tw-border tw-border-transparent tw-flex tw-items-center tw-justify-center focus-visible:tw-ring-2 tw-ring-text-contrast hover:disabled:tw-bg-transparent" |
50 | 50 | [ngClass]="{ |
51 | | - 'tw-cursor-not-allowed': disabled, |
| 51 | + 'tw-cursor-not-allowed': disabled(), |
52 | 52 | }" |
53 | 53 | (click)="clear()" |
54 | 54 | > |
|
0 commit comments