primeng 20.0.0-rc.2 → 20.0.0-rc.3

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.
Files changed (96) hide show
  1. package/autocomplete/index.d.ts +8 -7
  2. package/baseeditableholder/index.d.ts +14 -5
  3. package/basemodelholder/index.d.ts +12 -0
  4. package/cascadeselect/index.d.ts +7 -5
  5. package/checkbox/index.d.ts +9 -7
  6. package/colorpicker/index.d.ts +8 -7
  7. package/datepicker/index.d.ts +8 -7
  8. package/editor/index.d.ts +9 -8
  9. package/fesm2022/primeng-autocomplete.mjs +33 -35
  10. package/fesm2022/primeng-autocomplete.mjs.map +1 -1
  11. package/fesm2022/primeng-baseeditableholder.mjs +25 -7
  12. package/fesm2022/primeng-baseeditableholder.mjs.map +1 -1
  13. package/fesm2022/primeng-basemodelholder.mjs +25 -0
  14. package/fesm2022/primeng-basemodelholder.mjs.map +1 -0
  15. package/fesm2022/primeng-card.mjs +2 -2
  16. package/fesm2022/primeng-card.mjs.map +1 -1
  17. package/fesm2022/primeng-cascadeselect.mjs +21 -23
  18. package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
  19. package/fesm2022/primeng-checkbox.mjs +13 -15
  20. package/fesm2022/primeng-checkbox.mjs.map +1 -1
  21. package/fesm2022/primeng-colorpicker.mjs +35 -37
  22. package/fesm2022/primeng-colorpicker.mjs.map +1 -1
  23. package/fesm2022/primeng-contextmenu.mjs +1 -9
  24. package/fesm2022/primeng-contextmenu.mjs.map +1 -1
  25. package/fesm2022/primeng-datepicker.mjs +41 -43
  26. package/fesm2022/primeng-datepicker.mjs.map +1 -1
  27. package/fesm2022/primeng-divider.mjs +2 -2
  28. package/fesm2022/primeng-divider.mjs.map +1 -1
  29. package/fesm2022/primeng-editor.mjs +8 -10
  30. package/fesm2022/primeng-editor.mjs.map +1 -1
  31. package/fesm2022/primeng-fileupload.mjs +4 -3
  32. package/fesm2022/primeng-fileupload.mjs.map +1 -1
  33. package/fesm2022/primeng-inputmask.mjs +23 -25
  34. package/fesm2022/primeng-inputmask.mjs.map +1 -1
  35. package/fesm2022/primeng-inputnumber.mjs +28 -30
  36. package/fesm2022/primeng-inputnumber.mjs.map +1 -1
  37. package/fesm2022/primeng-inputotp.mjs +26 -28
  38. package/fesm2022/primeng-inputotp.mjs.map +1 -1
  39. package/fesm2022/primeng-inputtext.mjs +11 -5
  40. package/fesm2022/primeng-inputtext.mjs.map +1 -1
  41. package/fesm2022/primeng-knob.mjs +22 -24
  42. package/fesm2022/primeng-knob.mjs.map +1 -1
  43. package/fesm2022/primeng-listbox.mjs +36 -38
  44. package/fesm2022/primeng-listbox.mjs.map +1 -1
  45. package/fesm2022/primeng-menubar.mjs +2 -2
  46. package/fesm2022/primeng-menubar.mjs.map +1 -1
  47. package/fesm2022/primeng-multiselect.mjs +38 -39
  48. package/fesm2022/primeng-multiselect.mjs.map +1 -1
  49. package/fesm2022/primeng-password.mjs +19 -21
  50. package/fesm2022/primeng-password.mjs.map +1 -1
  51. package/fesm2022/primeng-radiobutton.mjs +16 -18
  52. package/fesm2022/primeng-radiobutton.mjs.map +1 -1
  53. package/fesm2022/primeng-rating.mjs +14 -16
  54. package/fesm2022/primeng-rating.mjs.map +1 -1
  55. package/fesm2022/primeng-select.mjs +32 -34
  56. package/fesm2022/primeng-select.mjs.map +1 -1
  57. package/fesm2022/primeng-selectbutton.mjs +15 -17
  58. package/fesm2022/primeng-selectbutton.mjs.map +1 -1
  59. package/fesm2022/primeng-slider.mjs +28 -30
  60. package/fesm2022/primeng-slider.mjs.map +1 -1
  61. package/fesm2022/primeng-stepper.mjs +32 -7
  62. package/fesm2022/primeng-stepper.mjs.map +1 -1
  63. package/fesm2022/primeng-table.mjs +13 -21
  64. package/fesm2022/primeng-table.mjs.map +1 -1
  65. package/fesm2022/primeng-textarea.mjs +10 -5
  66. package/fesm2022/primeng-textarea.mjs.map +1 -1
  67. package/fesm2022/primeng-togglebutton.mjs +13 -15
  68. package/fesm2022/primeng-togglebutton.mjs.map +1 -1
  69. package/fesm2022/primeng-toggleswitch.mjs +14 -16
  70. package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
  71. package/fesm2022/primeng-tree.mjs +1 -1
  72. package/fesm2022/primeng-tree.mjs.map +1 -1
  73. package/fesm2022/primeng-treeselect.mjs +16 -18
  74. package/fesm2022/primeng-treeselect.mjs.map +1 -1
  75. package/fesm2022/primeng-treetable.mjs +8 -8
  76. package/fesm2022/primeng-treetable.mjs.map +1 -1
  77. package/inputmask/index.d.ts +8 -7
  78. package/inputnumber/index.d.ts +8 -7
  79. package/inputotp/index.d.ts +7 -5
  80. package/inputtext/index.d.ts +10 -4
  81. package/knob/index.d.ts +7 -5
  82. package/listbox/index.d.ts +8 -7
  83. package/multiselect/index.d.ts +8 -7
  84. package/package.json +213 -209
  85. package/password/index.d.ts +7 -5
  86. package/radiobutton/index.d.ts +9 -7
  87. package/rating/index.d.ts +8 -7
  88. package/select/index.d.ts +8 -7
  89. package/selectbutton/index.d.ts +9 -8
  90. package/slider/index.d.ts +9 -8
  91. package/stepper/index.d.ts +4 -0
  92. package/table/index.d.ts +1 -5
  93. package/textarea/index.d.ts +9 -4
  94. package/togglebutton/index.d.ts +8 -7
  95. package/toggleswitch/index.d.ts +7 -5
  96. package/treeselect/index.d.ts +7 -5
@@ -33,7 +33,7 @@ const classes = {
33
33
  'p-listbox p-component',
34
34
  {
35
35
  'p-listbox-striped': instance.striped,
36
- 'p-disabled': instance.disabled(),
36
+ 'p-disabled': instance.$disabled(),
37
37
  'p-invalid': instance.invalid(),
38
38
  'p-listbox-fluid': instance.fluid()
39
39
  }
@@ -527,8 +527,6 @@ class Listbox extends BaseEditableHolder {
527
527
  filterOptions;
528
528
  filtered;
529
529
  value;
530
- onModelChange = () => { };
531
- onModelTouched = () => { };
532
530
  optionTouched;
533
531
  focus;
534
532
  headerCheckboxFocus;
@@ -645,17 +643,6 @@ class Listbox extends BaseEditableHolder {
645
643
  }
646
644
  });
647
645
  }
648
- writeValue(value) {
649
- this.value = value;
650
- this.writeModelValue(this.value);
651
- this.cd.markForCheck();
652
- }
653
- registerOnChange(fn) {
654
- this.onModelChange = fn;
655
- }
656
- registerOnTouched(fn) {
657
- this.onModelTouched = fn;
658
- }
659
646
  flatOptions(options) {
660
647
  return (options || []).reduce((result, option, index) => {
661
648
  result.push({ optionGroup: option, group: true, index });
@@ -685,7 +672,7 @@ class Listbox extends BaseEditableHolder {
685
672
  return this.modelValue().filter((val) => !equals(val, this.getOptionValue(option), this.equalityKey()));
686
673
  }
687
674
  onOptionSelect(event, option, index = -1) {
688
- if (this.disabled() || this.isOptionDisabled(option) || this.readonly) {
675
+ if (this.$disabled() || this.isOptionDisabled(option) || this.readonly) {
689
676
  return;
690
677
  }
691
678
  event && this.onClick.emit({ originalEvent: event, option, value: this.value });
@@ -752,7 +739,7 @@ class Listbox extends BaseEditableHolder {
752
739
  }
753
740
  }
754
741
  onToggleAll(event) {
755
- if (this.disabled() || this.readonly) {
742
+ if (this.$disabled() || this.readonly) {
756
743
  return;
757
744
  }
758
745
  focus(this.headerCheckboxViewChild.nativeElement);
@@ -778,7 +765,7 @@ class Listbox extends BaseEditableHolder {
778
765
  return this.selectAll !== null ? this.selectAll : isNotEmpty(this.visibleOptions()) && this.visibleOptions().every((option) => this.isOptionGroup(option) || this.isOptionDisabled(option) || this.isSelected(option));
779
766
  }
780
767
  onOptionTouchEnd() {
781
- if (this.disabled()) {
768
+ if (this.$disabled()) {
782
769
  return;
783
770
  }
784
771
  this.optionTouched = true;
@@ -792,7 +779,7 @@ class Listbox extends BaseEditableHolder {
792
779
  }
793
780
  }
794
781
  onOptionDoubleClick(event, option) {
795
- if (this.disabled() || this.isOptionDisabled(option) || this.readonly) {
782
+ if (this.$disabled() || this.isOptionDisabled(option) || this.readonly) {
796
783
  return;
797
784
  }
798
785
  this.onDblClick.emit({
@@ -847,7 +834,7 @@ class Listbox extends BaseEditableHolder {
847
834
  this.headerCheckboxFocus = false;
848
835
  }
849
836
  onHeaderCheckboxKeyDown(event) {
850
- if (this.disabled()) {
837
+ if (this.$disabled()) {
851
838
  event.preventDefault();
852
839
  return;
853
840
  }
@@ -1237,6 +1224,17 @@ class Listbox extends BaseEditableHolder {
1237
1224
  this.onDrop.emit(event);
1238
1225
  }
1239
1226
  }
1227
+ /**
1228
+ * @override
1229
+ *
1230
+ * @see {@link BaseEditableHolder.writeControlValue}
1231
+ * Writes the value to the control.
1232
+ */
1233
+ writeControlValue(value, setModelValue) {
1234
+ this.value = value;
1235
+ setModelValue(this.value);
1236
+ this.cd.markForCheck();
1237
+ }
1240
1238
  ngOnDestroy() {
1241
1239
  if (this.translationSubscription) {
1242
1240
  this.translationSubscription.unsubscribe();
@@ -1254,20 +1252,20 @@ class Listbox extends BaseEditableHolder {
1254
1252
  }
1255
1253
  }
1256
1254
  ], queries: [{ propertyName: "headerFacet", first: true, predicate: Header, descendants: true }, { propertyName: "footerFacet", first: true, predicate: Footer, descendants: true }, { propertyName: "itemTemplate", first: true, predicate: ["item"] }, { propertyName: "groupTemplate", first: true, predicate: ["group"] }, { propertyName: "headerTemplate", first: true, predicate: ["header"] }, { propertyName: "filterTemplate", first: true, predicate: ["filter"] }, { propertyName: "footerTemplate", first: true, predicate: ["footer"] }, { propertyName: "emptyFilterTemplate", first: true, predicate: ["emptyfilter"] }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"] }, { propertyName: "filterIconTemplate", first: true, predicate: ["filtericon"] }, { propertyName: "checkIconTemplate", first: true, predicate: ["checkicon"] }, { propertyName: "checkmarkTemplate", first: true, predicate: ["checkmark"] }, { propertyName: "loaderTemplate", first: true, predicate: ["loader"] }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "headerCheckboxViewChild", first: true, predicate: ["headerchkbox"], descendants: true }, { propertyName: "filterViewChild", first: true, predicate: ["filter"], descendants: true }, { propertyName: "lastHiddenFocusableElement", first: true, predicate: ["lastHiddenFocusableElement"], descendants: true }, { propertyName: "firstHiddenFocusableElement", first: true, predicate: ["firstHiddenFocusableElement"], descendants: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true }, { propertyName: "listViewChild", first: true, predicate: ["list"], descendants: true }, { propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
1257
- <span #firstHiddenFocusableElement role="presentation" class="p-hidden-accessible p-hidden-focusable" [tabindex]="!disabled() ? tabindex : -1" (focus)="onFirstHiddenFocus($event)" [attr.data-p-hidden-focusable]="true"> </span>
1255
+ <span #firstHiddenFocusableElement role="presentation" class="p-hidden-accessible p-hidden-focusable" [tabindex]="!$disabled() ? tabindex : -1" (focus)="onFirstHiddenFocus($event)" [attr.data-p-hidden-focusable]="true"> </span>
1258
1256
  <div [class]="cx('header')" *ngIf="headerFacet || headerTemplate || _headerTemplate">
1259
1257
  <ng-content select="p-header"></ng-content>
1260
1258
  <ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate; context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
1261
1259
  </div>
1262
1260
  <div [class]="cx('header')" *ngIf="(checkbox && multiple && showToggleAll) || filter">
1263
- <div *ngIf="checkbox && multiple && showToggleAll" class="p-checkbox p-component" [ngClass]="{ 'p-checkbox-disabled': disabled() }" (click)="onToggleAll($event)" (keydown)="onHeaderCheckboxKeyDown($event)">
1261
+ <div *ngIf="checkbox && multiple && showToggleAll" class="p-checkbox p-component" [ngClass]="{ 'p-checkbox-disabled': $disabled() }" (click)="onToggleAll($event)" (keydown)="onHeaderCheckboxKeyDown($event)">
1264
1262
  <div class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true">
1265
1263
  <input
1266
1264
  #headerchkbox
1267
1265
  type="checkbox"
1268
1266
  readonly="readonly"
1269
1267
  [attr.checked]="allSelected()"
1270
- [attr.disabled]="disabled() ? '' : undefined"
1268
+ [attr.disabled]="$disabled() ? '' : undefined"
1271
1269
  (focus)="onHeaderCheckboxFocus($event)"
1272
1270
  (blur)="onHeaderCheckboxBlur()"
1273
1271
  [attr.aria-label]="toggleAllAriaLabel"
@@ -1277,7 +1275,7 @@ class Listbox extends BaseEditableHolder {
1277
1275
  *ngIf="checkbox && multiple"
1278
1276
  [class]="cx('optionCheckIcon')"
1279
1277
  [ngModel]="allSelected()"
1280
- [disabled]="disabled()"
1278
+ [disabled]="$disabled()"
1281
1279
  [tabindex]="-1"
1282
1280
  [variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
1283
1281
  [binary]="true"
@@ -1302,12 +1300,12 @@ class Listbox extends BaseEditableHolder {
1302
1300
  [class]="cx('pcFilter')"
1303
1301
  role="searchbox"
1304
1302
  [value]="_filterValue() || ''"
1305
- [attr.disabled]="disabled() ? '' : undefined"
1303
+ [attr.disabled]="$disabled() ? '' : undefined"
1306
1304
  [attr.aria-owns]="id + '_list'"
1307
1305
  [attr.aria-activedescendant]="focusedOptionId"
1308
1306
  [attr.placeholder]="filterPlaceHolder"
1309
1307
  [attr.aria-label]="ariaFilterLabel"
1310
- [attr.tabindex]="!disabled() && !focused ? tabindex : -1"
1308
+ [attr.tabindex]="!$disabled() && !focused ? tabindex : -1"
1311
1309
  (input)="onFilterChange($event)"
1312
1310
  (keydown)="onFilterKeyDown($event)"
1313
1311
  (blur)="onFilterBlur($event)"
@@ -1379,7 +1377,7 @@ class Listbox extends BaseEditableHolder {
1379
1377
  [style]="scrollerOptions.contentStyle"
1380
1378
  [attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
1381
1379
  [attr.aria-label]="ariaLabel"
1382
- [attr.aria-disabled]="disabled()"
1380
+ [attr.aria-disabled]="$disabled()"
1383
1381
  (focus)="onListFocus($event)"
1384
1382
  (blur)="onListBlur($event)"
1385
1383
  (keydown)="onListKeyDown($event)"
@@ -1430,7 +1428,7 @@ class Listbox extends BaseEditableHolder {
1430
1428
  [class]="cx('optionCheckIcon')"
1431
1429
  [ngModel]="isSelected(option)"
1432
1430
  [readonly]="true"
1433
- [disabled]="disabled() || isOptionDisabled(option)"
1431
+ [disabled]="$disabled() || isOptionDisabled(option)"
1434
1432
  [tabindex]="-1"
1435
1433
  [variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
1436
1434
  [binary]="true"
@@ -1477,8 +1475,8 @@ class Listbox extends BaseEditableHolder {
1477
1475
  <span role="status" aria-live="polite" class="p-hidden-accessible">
1478
1476
  {{ selectedMessageText }}
1479
1477
  </span>
1480
- <span #lastHiddenFocusableElement role="presentation" class="p-hidden-accessible p-hidden-focusable" [tabindex]="!disabled() ? tabindex : -1" (focus)="onLastHiddenFocus($event)" [attr.data-p-hidden-focusable]="true"> </span>
1481
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "component", type: Scroller, selector: "p-scroller, p-virtualscroller, p-virtual-scroller, p-virtualScroller", inputs: ["id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["styleClass"] }, { kind: "component", type: SearchIcon, selector: "[data-p-icon=\"search\"]" }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "component", type: CheckIcon, selector: "[data-p-icon=\"check\"]" }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["iconPosition", "styleClass"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["pSize", "variant", "fluid"] }, { kind: "component", type: BlankIcon, selector: "[data-p-icon=\"blank\"]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i4.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i4.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1478
+ <span #lastHiddenFocusableElement role="presentation" class="p-hidden-accessible p-hidden-focusable" [tabindex]="!$disabled() ? tabindex : -1" (focus)="onLastHiddenFocus($event)" [attr.data-p-hidden-focusable]="true"> </span>
1479
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "component", type: Scroller, selector: "p-scroller, p-virtualscroller, p-virtual-scroller, p-virtualScroller", inputs: ["id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["styleClass"] }, { kind: "component", type: SearchIcon, selector: "[data-p-icon=\"search\"]" }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "component", type: CheckIcon, selector: "[data-p-icon=\"check\"]" }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["iconPosition", "styleClass"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: BlankIcon, selector: "[data-p-icon=\"blank\"]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i4.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i4.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1482
1480
  }
1483
1481
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: Listbox, decorators: [{
1484
1482
  type: Component,
@@ -1487,20 +1485,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
1487
1485
  standalone: true,
1488
1486
  imports: [CommonModule, Ripple, Scroller, InputIcon, SearchIcon, Checkbox, CheckIcon, IconField, InputText, BlankIcon, FormsModule, SharedModule, DragDropModule],
1489
1487
  template: `
1490
- <span #firstHiddenFocusableElement role="presentation" class="p-hidden-accessible p-hidden-focusable" [tabindex]="!disabled() ? tabindex : -1" (focus)="onFirstHiddenFocus($event)" [attr.data-p-hidden-focusable]="true"> </span>
1488
+ <span #firstHiddenFocusableElement role="presentation" class="p-hidden-accessible p-hidden-focusable" [tabindex]="!$disabled() ? tabindex : -1" (focus)="onFirstHiddenFocus($event)" [attr.data-p-hidden-focusable]="true"> </span>
1491
1489
  <div [class]="cx('header')" *ngIf="headerFacet || headerTemplate || _headerTemplate">
1492
1490
  <ng-content select="p-header"></ng-content>
1493
1491
  <ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate; context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
1494
1492
  </div>
1495
1493
  <div [class]="cx('header')" *ngIf="(checkbox && multiple && showToggleAll) || filter">
1496
- <div *ngIf="checkbox && multiple && showToggleAll" class="p-checkbox p-component" [ngClass]="{ 'p-checkbox-disabled': disabled() }" (click)="onToggleAll($event)" (keydown)="onHeaderCheckboxKeyDown($event)">
1494
+ <div *ngIf="checkbox && multiple && showToggleAll" class="p-checkbox p-component" [ngClass]="{ 'p-checkbox-disabled': $disabled() }" (click)="onToggleAll($event)" (keydown)="onHeaderCheckboxKeyDown($event)">
1497
1495
  <div class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true">
1498
1496
  <input
1499
1497
  #headerchkbox
1500
1498
  type="checkbox"
1501
1499
  readonly="readonly"
1502
1500
  [attr.checked]="allSelected()"
1503
- [attr.disabled]="disabled() ? '' : undefined"
1501
+ [attr.disabled]="$disabled() ? '' : undefined"
1504
1502
  (focus)="onHeaderCheckboxFocus($event)"
1505
1503
  (blur)="onHeaderCheckboxBlur()"
1506
1504
  [attr.aria-label]="toggleAllAriaLabel"
@@ -1510,7 +1508,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
1510
1508
  *ngIf="checkbox && multiple"
1511
1509
  [class]="cx('optionCheckIcon')"
1512
1510
  [ngModel]="allSelected()"
1513
- [disabled]="disabled()"
1511
+ [disabled]="$disabled()"
1514
1512
  [tabindex]="-1"
1515
1513
  [variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
1516
1514
  [binary]="true"
@@ -1535,12 +1533,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
1535
1533
  [class]="cx('pcFilter')"
1536
1534
  role="searchbox"
1537
1535
  [value]="_filterValue() || ''"
1538
- [attr.disabled]="disabled() ? '' : undefined"
1536
+ [attr.disabled]="$disabled() ? '' : undefined"
1539
1537
  [attr.aria-owns]="id + '_list'"
1540
1538
  [attr.aria-activedescendant]="focusedOptionId"
1541
1539
  [attr.placeholder]="filterPlaceHolder"
1542
1540
  [attr.aria-label]="ariaFilterLabel"
1543
- [attr.tabindex]="!disabled() && !focused ? tabindex : -1"
1541
+ [attr.tabindex]="!$disabled() && !focused ? tabindex : -1"
1544
1542
  (input)="onFilterChange($event)"
1545
1543
  (keydown)="onFilterKeyDown($event)"
1546
1544
  (blur)="onFilterBlur($event)"
@@ -1612,7 +1610,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
1612
1610
  [style]="scrollerOptions.contentStyle"
1613
1611
  [attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
1614
1612
  [attr.aria-label]="ariaLabel"
1615
- [attr.aria-disabled]="disabled()"
1613
+ [attr.aria-disabled]="$disabled()"
1616
1614
  (focus)="onListFocus($event)"
1617
1615
  (blur)="onListBlur($event)"
1618
1616
  (keydown)="onListKeyDown($event)"
@@ -1663,7 +1661,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
1663
1661
  [class]="cx('optionCheckIcon')"
1664
1662
  [ngModel]="isSelected(option)"
1665
1663
  [readonly]="true"
1666
- [disabled]="disabled() || isOptionDisabled(option)"
1664
+ [disabled]="$disabled() || isOptionDisabled(option)"
1667
1665
  [tabindex]="-1"
1668
1666
  [variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
1669
1667
  [binary]="true"
@@ -1710,7 +1708,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
1710
1708
  <span role="status" aria-live="polite" class="p-hidden-accessible">
1711
1709
  {{ selectedMessageText }}
1712
1710
  </span>
1713
- <span #lastHiddenFocusableElement role="presentation" class="p-hidden-accessible p-hidden-focusable" [tabindex]="!disabled() ? tabindex : -1" (focus)="onLastHiddenFocus($event)" [attr.data-p-hidden-focusable]="true"> </span>
1711
+ <span #lastHiddenFocusableElement role="presentation" class="p-hidden-accessible p-hidden-focusable" [tabindex]="!$disabled() ? tabindex : -1" (focus)="onLastHiddenFocus($event)" [attr.data-p-hidden-focusable]="true"> </span>
1714
1712
  `,
1715
1713
  providers: [
1716
1714
  LISTBOX_VALUE_ACCESSOR,