primeng 19.0.5 → 19.0.6
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.
- package/badge/badge.d.ts +2 -2
- package/base/style/basestyle.d.ts +4 -6
- package/config/primeng.d.ts +3 -0
- package/datepicker/datepicker.d.ts +1 -0
- package/datepicker/style/datepickerstyle.d.ts +1 -0
- package/dynamicdialog/dynamicdialog-config.d.ts +1 -1
- package/dynamicdialog/dynamicdialog.d.ts +1 -0
- package/fesm2022/primeng-autocomplete.mjs +2 -2
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-avatar.mjs +2 -0
- package/fesm2022/primeng-avatar.mjs.map +1 -1
- package/fesm2022/primeng-badge.mjs.map +1 -1
- package/fesm2022/primeng-base.mjs +8 -2
- package/fesm2022/primeng-base.mjs.map +1 -1
- package/fesm2022/primeng-basecomponent.mjs +2 -2
- package/fesm2022/primeng-basecomponent.mjs.map +1 -1
- package/fesm2022/primeng-card.mjs +2 -2
- package/fesm2022/primeng-card.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +40 -36
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +1 -1
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
- package/fesm2022/primeng-checkbox.mjs +2 -2
- package/fesm2022/primeng-checkbox.mjs.map +1 -1
- package/fesm2022/primeng-config.mjs +6 -4
- package/fesm2022/primeng-config.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +20 -17
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-drawer.mjs +1 -1
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +2 -2
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +12 -4
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +0 -3
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +1 -1
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +4 -4
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +2 -2
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-inputtext.mjs +8 -3
- package/fesm2022/primeng-inputtext.mjs.map +1 -1
- package/fesm2022/primeng-inputtextarea.mjs +1 -1
- package/fesm2022/primeng-inputtextarea.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs +77 -40
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +9 -20
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-message.mjs +6 -2
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +17 -15
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-overlaybadge.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +3 -2
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +15 -11
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-radiobutton.mjs +2 -2
- package/fesm2022/primeng-radiobutton.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +14 -10
- package/fesm2022/primeng-rating.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +2 -2
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +2 -2
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +20 -11
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +55 -38
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabs.mjs +10 -10
- package/fesm2022/primeng-tabs.mjs.map +1 -1
- package/fesm2022/primeng-textarea.mjs +3 -3
- package/fesm2022/primeng-textarea.mjs.map +1 -1
- package/fesm2022/primeng-toast.mjs +28 -26
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +4 -0
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-tooltip.mjs +1 -1
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +22 -7
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +2 -2
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +3 -3
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-utils.mjs +3 -1
- package/fesm2022/primeng-utils.mjs.map +1 -1
- package/listbox/listbox.d.ts +15 -1
- package/message/message.d.ts +1 -0
- package/overlaybadge/overlaybadge.d.ts +1 -1
- package/package.json +120 -120
- package/password/password.d.ts +1 -0
- package/password/style/passwordstyle.d.ts +1 -0
- package/stepper/stepper.d.ts +2 -1
- package/table/table.d.ts +1 -1
- package/table/table.interface.d.ts +2 -2
- package/tabs/tablist.d.ts +1 -1
- package/toast/toast.d.ts +1 -1
- package/tree/tree.d.ts +10 -2
- package/tree/tree.interface.d.ts +8 -0
- package/utils/zindexutils.d.ts +2 -0
@@ -1,3 +1,5 @@
|
|
1
|
+
import * as i4 from '@angular/cdk/drag-drop';
|
2
|
+
import { CDK_DRAG_CONFIG, DragDropModule } from '@angular/cdk/drag-drop';
|
1
3
|
import * as i2 from '@angular/common';
|
2
4
|
import { CommonModule } from '@angular/common';
|
3
5
|
import * as i0 from '@angular/core';
|
@@ -292,7 +294,7 @@ function Listbox_div_4_div_1_p_checkbox_4_Template(rf, ctx) { if (rf & 1) {
|
|
292
294
|
i0.ɵɵelementEnd();
|
293
295
|
} if (rf & 2) {
|
294
296
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
295
|
-
i0.ɵɵproperty("ngModel", ctx_r1.allSelected())("disabled", ctx_r1.disabled)("tabindex", -1)("variant", ctx_r1.config.inputStyle() === "filled"
|
297
|
+
i0.ɵɵproperty("ngModel", ctx_r1.allSelected())("disabled", ctx_r1.disabled)("tabindex", -1)("variant", ctx_r1.config.inputStyle() === "filled" || ctx_r1.config.inputVariant() === "filled" ? "filled" : "outlined")("binary", true);
|
296
298
|
i0.ɵɵadvance();
|
297
299
|
i0.ɵɵproperty("ngIf", ctx_r1.checkIconTemplate || ctx_r1._checkIconTemplate);
|
298
300
|
} }
|
@@ -468,12 +470,12 @@ function Listbox_ng_template_9_ng_template_2_ng_container_0_Template(rf, ctx) {
|
|
468
470
|
const scrollerOptions_r15 = i0.ɵɵnextContext().options;
|
469
471
|
const ctx_r1 = i0.ɵɵnextContext();
|
470
472
|
i0.ɵɵadvance();
|
471
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(
|
473
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(7, _c23, scrollerOptions_r15.itemSize + "px"))("cdkDragData", option_r12)("cdkDragDisabled", !ctx_r1.dragdrop);
|
472
474
|
i0.ɵɵattribute("id", ctx_r1.id + "_" + ctx_r1.getOptionIndex(i_r14, scrollerOptions_r15));
|
473
475
|
i0.ɵɵadvance();
|
474
476
|
i0.ɵɵproperty("ngIf", !ctx_r1.groupTemplate && !ctx_r1._groupTemplate);
|
475
477
|
i0.ɵɵadvance();
|
476
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.groupTemplate || ctx_r1._groupTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(
|
478
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.groupTemplate || ctx_r1._groupTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(9, _c21, option_r12.optionGroup));
|
477
479
|
} }
|
478
480
|
function Listbox_ng_template_9_ng_template_2_ng_container_1_p_checkbox_2_ng_container_1_ng_template_1_0_ng_template_0_Template(rf, ctx) { }
|
479
481
|
function Listbox_ng_template_9_ng_template_2_ng_container_1_p_checkbox_2_ng_container_1_ng_template_1_0_Template(rf, ctx) { if (rf & 1) {
|
@@ -498,7 +500,7 @@ function Listbox_ng_template_9_ng_template_2_ng_container_1_p_checkbox_2_Templat
|
|
498
500
|
} if (rf & 2) {
|
499
501
|
const option_r12 = i0.ɵɵnextContext(2).$implicit;
|
500
502
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
501
|
-
i0.ɵɵproperty("ngModel", ctx_r1.isSelected(option_r12))("readonly", true)("disabled", ctx_r1.disabled || ctx_r1.isOptionDisabled(option_r12))("tabindex", -1)("variant", ctx_r1.config.inputStyle() === "filled"
|
503
|
+
i0.ɵɵproperty("ngModel", ctx_r1.isSelected(option_r12))("readonly", true)("disabled", ctx_r1.disabled || ctx_r1.isOptionDisabled(option_r12))("tabindex", -1)("variant", ctx_r1.config.inputStyle() === "filled" || ctx_r1.config.inputVariant() === "filled" ? "filled" : "outlined")("binary", true);
|
502
504
|
i0.ɵɵadvance();
|
503
505
|
i0.ɵɵproperty("ngIf", ctx_r1.checkIconTemplate || ctx_r1._checkIconTemplate);
|
504
506
|
} }
|
@@ -563,7 +565,7 @@ function Listbox_ng_template_9_ng_template_2_ng_container_1_Template(rf, ctx) {
|
|
563
565
|
const scrollerOptions_r15 = i0.ɵɵnextContext().options;
|
564
566
|
const ctx_r1 = i0.ɵɵnextContext();
|
565
567
|
i0.ɵɵadvance();
|
566
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(
|
568
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(15, _c23, scrollerOptions_r15.itemSize + "px"))("ngClass", i0.ɵɵpureFunction3(17, _c25, ctx_r1.isSelected(option_r12) && ctx_r1.highlightOnSelect, ctx_r1.focusedOptionIndex() === ctx_r1.getOptionIndex(i_r14, scrollerOptions_r15), ctx_r1.isOptionDisabled(option_r12)))("cdkDragData", option_r12)("cdkDragDisabled", !ctx_r1.dragdrop);
|
567
569
|
i0.ɵɵattribute("id", ctx_r1.id + "_" + ctx_r1.getOptionIndex(i_r14, scrollerOptions_r15))("aria-label", ctx_r1.getOptionLabel(option_r12))("aria-selected", ctx_r1.isSelected(option_r12))("aria-disabled", ctx_r1.isOptionDisabled(option_r12))("aria-setsize", ctx_r1.ariaSetSize)("ariaPosInset", ctx_r1.getAriaPosInset(ctx_r1.getOptionIndex(i_r14, scrollerOptions_r15)));
|
568
570
|
i0.ɵɵadvance();
|
569
571
|
i0.ɵɵproperty("ngIf", ctx_r1.checkbox && ctx_r1.multiple);
|
@@ -572,10 +574,10 @@ function Listbox_ng_template_9_ng_template_2_ng_container_1_Template(rf, ctx) {
|
|
572
574
|
i0.ɵɵadvance();
|
573
575
|
i0.ɵɵproperty("ngIf", !ctx_r1.itemTemplate && !ctx_r1._itemTemplate);
|
574
576
|
i0.ɵɵadvance();
|
575
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.itemTemplate || ctx_r1._itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction3(
|
577
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.itemTemplate || ctx_r1._itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction3(21, _c26, option_r12, ctx_r1.getOptionIndex(i_r14, scrollerOptions_r15), ctx_r1.isSelected(option_r12)));
|
576
578
|
} }
|
577
579
|
function Listbox_ng_template_9_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
578
|
-
i0.ɵɵtemplate(0, Listbox_ng_template_9_ng_template_2_ng_container_0_Template, 4,
|
580
|
+
i0.ɵɵtemplate(0, Listbox_ng_template_9_ng_template_2_ng_container_0_Template, 4, 11, "ng-container", 19)(1, Listbox_ng_template_9_ng_template_2_ng_container_1_Template, 6, 25, "ng-container", 19);
|
579
581
|
} if (rf & 2) {
|
580
582
|
const option_r12 = ctx.$implicit;
|
581
583
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
@@ -634,7 +636,7 @@ function Listbox_ng_template_9_li_4_Template(rf, ctx) { if (rf & 1) {
|
|
634
636
|
function Listbox_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
635
637
|
const _r11 = i0.ɵɵgetCurrentView();
|
636
638
|
i0.ɵɵelementStart(0, "ul", 42, 11);
|
637
|
-
i0.ɵɵlistener("focus", function Listbox_ng_template_9_Template_ul_focus_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onListFocus($event)); })("blur", function Listbox_ng_template_9_Template_ul_blur_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onListBlur($event)); })("keydown", function Listbox_ng_template_9_Template_ul_keydown_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onListKeyDown($event)); });
|
639
|
+
i0.ɵɵlistener("focus", function Listbox_ng_template_9_Template_ul_focus_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onListFocus($event)); })("blur", function Listbox_ng_template_9_Template_ul_blur_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onListBlur($event)); })("keydown", function Listbox_ng_template_9_Template_ul_keydown_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onListKeyDown($event)); })("cdkDropListDropped", function Listbox_ng_template_9_Template_ul_cdkDropListDropped_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.drop($event)); });
|
638
640
|
i0.ɵɵtemplate(2, Listbox_ng_template_9_ng_template_2_Template, 2, 2, "ng-template", 43)(3, Listbox_ng_template_9_li_3_Template, 3, 1, "li", 44)(4, Listbox_ng_template_9_li_4_Template, 3, 1, "li", 44);
|
639
641
|
i0.ɵɵelementEnd();
|
640
642
|
} if (rf & 2) {
|
@@ -642,7 +644,7 @@ function Listbox_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
|
642
644
|
const scrollerOptions_r15 = ctx.options;
|
643
645
|
const ctx_r1 = i0.ɵɵnextContext();
|
644
646
|
i0.ɵɵstyleMap(scrollerOptions_r15.contentStyle);
|
645
|
-
i0.ɵɵproperty("tabindex", -1)("ngClass", scrollerOptions_r15.contentStyleClass);
|
647
|
+
i0.ɵɵproperty("tabindex", -1)("ngClass", scrollerOptions_r15.contentStyleClass)("cdkDropListData", items_r17);
|
646
648
|
i0.ɵɵattribute("aria-multiselectable", true)("aria-activedescendant", ctx_r1.focused ? ctx_r1.focusedOptionId : undefined)("aria-label", ctx_r1.ariaLabel)("aria-disabled", ctx_r1.disabled);
|
647
649
|
i0.ɵɵadvance(2);
|
648
650
|
i0.ɵɵproperty("ngForOf", items_r17);
|
@@ -945,6 +947,11 @@ class Listbox extends BaseComponent {
|
|
945
947
|
* @defaultValue false
|
946
948
|
*/
|
947
949
|
checkmark = false;
|
950
|
+
/**
|
951
|
+
* Whether to enable dragdrop based reordering.
|
952
|
+
* @group Props
|
953
|
+
*/
|
954
|
+
dragdrop = false;
|
948
955
|
/**
|
949
956
|
* Callback to invoke on value change.
|
950
957
|
* @param {ListboxChangeEvent} event - Custom change event.
|
@@ -993,6 +1000,12 @@ class Listbox extends BaseComponent {
|
|
993
1000
|
* @group Emits
|
994
1001
|
*/
|
995
1002
|
onLazyLoad = new EventEmitter();
|
1003
|
+
/**
|
1004
|
+
* Emits on item is dropped.
|
1005
|
+
* @param {CdkDragDrop<string[]>} event - Scroller lazy load event.
|
1006
|
+
* @group Emits
|
1007
|
+
*/
|
1008
|
+
onDrop = new EventEmitter();
|
996
1009
|
headerCheckboxViewChild;
|
997
1010
|
filterViewChild;
|
998
1011
|
lastHiddenFocusableElement;
|
@@ -1769,6 +1782,11 @@ class Listbox extends BaseComponent {
|
|
1769
1782
|
}
|
1770
1783
|
this._filterValue.set(null);
|
1771
1784
|
}
|
1785
|
+
drop(event) {
|
1786
|
+
if (event) {
|
1787
|
+
this.onDrop.emit(event);
|
1788
|
+
}
|
1789
|
+
}
|
1772
1790
|
ngOnDestroy() {
|
1773
1791
|
if (this.translationSubscription) {
|
1774
1792
|
this.translationSubscription.unsubscribe();
|
@@ -1824,7 +1842,16 @@ class Listbox extends BaseComponent {
|
|
1824
1842
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.scroller = _t.first);
|
1825
1843
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.listViewChild = _t.first);
|
1826
1844
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerViewChild = _t.first);
|
1827
|
-
} }, inputs: { id: "id", searchMessage: "searchMessage", emptySelectionMessage: "emptySelectionMessage", selectionMessage: "selectionMessage", autoOptionFocus: [2, "autoOptionFocus", "autoOptionFocus", booleanAttribute], ariaLabel: "ariaLabel", selectOnFocus: [2, "selectOnFocus", "selectOnFocus", booleanAttribute], searchLocale: [2, "searchLocale", "searchLocale", booleanAttribute], focusOnHover: [2, "focusOnHover", "focusOnHover", booleanAttribute], filterMessage: "filterMessage", filterFields: "filterFields", lazy: [2, "lazy", "lazy", booleanAttribute], virtualScroll: [2, "virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: [2, "virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", scrollHeight: "scrollHeight", tabindex: [2, "tabindex", "tabindex", numberAttribute], multiple: [2, "multiple", "multiple", booleanAttribute], style: "style", styleClass: "styleClass", listStyle: "listStyle", listStyleClass: "listStyleClass", readonly: [2, "readonly", "readonly", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], checkbox: [2, "checkbox", "checkbox", booleanAttribute], filter: [2, "filter", "filter", booleanAttribute], filterBy: "filterBy", filterMatchMode: "filterMatchMode", filterLocale: "filterLocale", metaKeySelection: [2, "metaKeySelection", "metaKeySelection", booleanAttribute], dataKey: "dataKey", showToggleAll: [2, "showToggleAll", "showToggleAll", booleanAttribute], optionLabel: "optionLabel", optionValue: "optionValue", optionGroupChildren: "optionGroupChildren", optionGroupLabel: "optionGroupLabel", optionDisabled: "optionDisabled", ariaFilterLabel: "ariaFilterLabel", filterPlaceHolder: "filterPlaceHolder", emptyFilterMessage: "emptyFilterMessage", emptyMessage: "emptyMessage", group: [2, "group", "group", booleanAttribute], options: "options", filterValue: "filterValue", selectAll: "selectAll", striped: [2, "striped", "striped", booleanAttribute], highlightOnSelect: [2, "highlightOnSelect", "highlightOnSelect", booleanAttribute], checkmark: [2, "checkmark", "checkmark", booleanAttribute] }, outputs: { onChange: "onChange", onClick: "onClick", onDblClick: "onDblClick", onFilter: "onFilter", onFocus: "onFocus", onBlur: "onBlur", onSelectAllChange: "onSelectAllChange", onLazyLoad: "onLazyLoad" }, features: [i0.ɵɵProvidersFeature([
|
1845
|
+
} }, inputs: { id: "id", searchMessage: "searchMessage", emptySelectionMessage: "emptySelectionMessage", selectionMessage: "selectionMessage", autoOptionFocus: [2, "autoOptionFocus", "autoOptionFocus", booleanAttribute], ariaLabel: "ariaLabel", selectOnFocus: [2, "selectOnFocus", "selectOnFocus", booleanAttribute], searchLocale: [2, "searchLocale", "searchLocale", booleanAttribute], focusOnHover: [2, "focusOnHover", "focusOnHover", booleanAttribute], filterMessage: "filterMessage", filterFields: "filterFields", lazy: [2, "lazy", "lazy", booleanAttribute], virtualScroll: [2, "virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: [2, "virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", scrollHeight: "scrollHeight", tabindex: [2, "tabindex", "tabindex", numberAttribute], multiple: [2, "multiple", "multiple", booleanAttribute], style: "style", styleClass: "styleClass", listStyle: "listStyle", listStyleClass: "listStyleClass", readonly: [2, "readonly", "readonly", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], checkbox: [2, "checkbox", "checkbox", booleanAttribute], filter: [2, "filter", "filter", booleanAttribute], filterBy: "filterBy", filterMatchMode: "filterMatchMode", filterLocale: "filterLocale", metaKeySelection: [2, "metaKeySelection", "metaKeySelection", booleanAttribute], dataKey: "dataKey", showToggleAll: [2, "showToggleAll", "showToggleAll", booleanAttribute], optionLabel: "optionLabel", optionValue: "optionValue", optionGroupChildren: "optionGroupChildren", optionGroupLabel: "optionGroupLabel", optionDisabled: "optionDisabled", ariaFilterLabel: "ariaFilterLabel", filterPlaceHolder: "filterPlaceHolder", emptyFilterMessage: "emptyFilterMessage", emptyMessage: "emptyMessage", group: [2, "group", "group", booleanAttribute], options: "options", filterValue: "filterValue", selectAll: "selectAll", striped: [2, "striped", "striped", booleanAttribute], highlightOnSelect: [2, "highlightOnSelect", "highlightOnSelect", booleanAttribute], checkmark: [2, "checkmark", "checkmark", booleanAttribute], dragdrop: [2, "dragdrop", "dragdrop", booleanAttribute] }, outputs: { onChange: "onChange", onClick: "onClick", onDblClick: "onDblClick", onFilter: "onFilter", onFocus: "onFocus", onBlur: "onBlur", onSelectAllChange: "onSelectAllChange", onLazyLoad: "onLazyLoad", onDrop: "onDrop" }, features: [i0.ɵɵProvidersFeature([
|
1846
|
+
LISTBOX_VALUE_ACCESSOR,
|
1847
|
+
ListBoxStyle,
|
1848
|
+
{
|
1849
|
+
provide: CDK_DRAG_CONFIG,
|
1850
|
+
useValue: {
|
1851
|
+
zIndex: 1200
|
1852
|
+
}
|
1853
|
+
}
|
1854
|
+
]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c18, decls: 17, vars: 23, consts: [["firstHiddenFocusableElement", ""], ["container", ""], ["buildInItems", ""], ["lastHiddenFocusableElement", ""], ["builtInFilterElement", ""], ["headerchkbox", ""], ["icon", ""], ["filterInput", ""], ["scroller", ""], ["content", ""], ["loader", ""], ["list", ""], ["emptyFilter", ""], ["empty", ""], [3, "focusout", "ngClass", "ngStyle"], ["role", "presentation", 1, "p-hidden-accessible", "p-hidden-focusable", 3, "focus", "tabindex"], ["class", "p-listbox-header", 4, "ngIf"], [3, "ngClass", "ngStyle"], [3, "items", "style", "itemSize", "autoSize", "lazy", "options", "tabindex", "onLazyLoad", 4, "ngIf"], [4, "ngIf"], ["class", "p-listbox-footer", 4, "ngIf"], ["role", "status", "aria-live", "polite", "class", "p-hidden-accessible", 4, "ngIf"], ["role", "status", "aria-live", "polite", 1, "p-hidden-accessible"], [1, "p-listbox-header"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["class", "p-checkbox p-component", 3, "ngClass", "click", "keydown", 4, "ngIf"], [4, "ngIf", "ngIfElse"], [1, "p-checkbox", "p-component", 3, "click", "keydown", "ngClass"], [1, "p-hidden-accessible"], ["type", "checkbox", "readonly", "readonly", 3, "focus", "blur", "disabled"], ["styleClass", "p-listbox-option-check-icon", 3, "ngModel", "disabled", "tabindex", "variant", "binary", 4, "ngIf"], ["styleClass", "p-listbox-option-check-icon", 3, "ngModel", "disabled", "tabindex", "variant", "binary"], ["class", "p-listbox-filter-container", 4, "ngIf"], ["role", "status", "attr.aria-live", "polite", 1, "p-hidden-accessible"], [1, "p-listbox-filter-container"], ["pInputText", "", "type", "text", "role", "searchbox", 1, "p-listbox-filter", 3, "input", "keydown", "focus", "blur", "value", "disabled", "tabindex"], [3, "styleClass", 4, "ngIf"], ["class", "p-listbox-filter-icon", 4, "ngIf"], [3, "styleClass"], [1, "p-listbox-filter-icon"], [4, "ngTemplateOutlet"], [3, "onLazyLoad", "items", "itemSize", "autoSize", "lazy", "options", "tabindex"], ["role", "listbox", "cdkDropList", "", 1, "p-listbox-list", 3, "focus", "blur", "keydown", "cdkDropListDropped", "tabindex", "ngClass", "cdkDropListData"], ["ngFor", "", 3, "ngForOf"], ["class", "p-listbox-empty-message", "role", "option", 4, "ngIf"], ["role", "option", "cdkDrag", "", 1, "p-listbox-option-group", 3, "ngStyle", "cdkDragData", "cdkDragDisabled"], ["pRipple", "", "role", "option", "cdkDrag", "", 1, "p-listbox-option", 3, "click", "dblclick", "mousedown", "mouseenter", "touchend", "ngStyle", "ngClass", "cdkDragData", "cdkDragDisabled"], ["styleClass", "p-listbox-option-check-icon", 3, "ngModel", "readonly", "disabled", "tabindex", "variant", "binary", 4, "ngIf"], ["styleClass", "p-listbox-option-check-icon", 3, "ngModel", "readonly", "disabled", "tabindex", "variant", "binary"], ["styleClass", "p-listbox-option-check-icon", 4, "ngIf"], ["styleClass", "p-listbox-option-check-icon"], ["role", "option", 1, "p-listbox-empty-message"], [1, "p-listbox-footer"]], template: function Listbox_Template(rf, ctx) { if (rf & 1) {
|
1828
1855
|
const _r1 = i0.ɵɵgetCurrentView();
|
1829
1856
|
i0.ɵɵprojectionDef(_c17);
|
1830
1857
|
i0.ɵɵelementStart(0, "div", 14);
|
@@ -1834,7 +1861,7 @@ class Listbox extends BaseComponent {
|
|
1834
1861
|
i0.ɵɵelementEnd();
|
1835
1862
|
i0.ɵɵtemplate(3, Listbox_div_3_Template, 3, 5, "div", 16)(4, Listbox_div_4_Template, 5, 3, "div", 16);
|
1836
1863
|
i0.ɵɵelementStart(5, "div", 17, 1);
|
1837
|
-
i0.ɵɵtemplate(7, Listbox_p_scroller_7_Template, 5, 11, "p-scroller", 18)(8, Listbox_ng_container_8_Template, 2, 6, "ng-container", 19)(9, Listbox_ng_template_9_Template, 5,
|
1864
|
+
i0.ɵɵtemplate(7, Listbox_p_scroller_7_Template, 5, 11, "p-scroller", 18)(8, Listbox_ng_container_8_Template, 2, 6, "ng-container", 19)(9, Listbox_ng_template_9_Template, 5, 12, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
1838
1865
|
i0.ɵɵelementEnd();
|
1839
1866
|
i0.ɵɵtemplate(11, Listbox_div_11_Template, 3, 5, "div", 20)(12, Listbox_span_12_Template, 2, 1, "span", 21);
|
1840
1867
|
i0.ɵɵelementStart(13, "span", 22);
|
@@ -1849,7 +1876,7 @@ class Listbox extends BaseComponent {
|
|
1849
1876
|
i0.ɵɵattribute("id", ctx.id);
|
1850
1877
|
i0.ɵɵadvance();
|
1851
1878
|
i0.ɵɵproperty("tabindex", !ctx.disabled ? ctx.tabindex : -1);
|
1852
|
-
i0.ɵɵattribute("
|
1879
|
+
i0.ɵɵattribute("data-p-hidden-focusable", true);
|
1853
1880
|
i0.ɵɵadvance(2);
|
1854
1881
|
i0.ɵɵproperty("ngIf", ctx.headerFacet || ctx.headerTemplate || ctx._headerTemplate);
|
1855
1882
|
i0.ɵɵadvance();
|
@@ -1871,27 +1898,18 @@ class Listbox extends BaseComponent {
|
|
1871
1898
|
i0.ɵɵtextInterpolate1(" ", ctx.selectedMessageText, " ");
|
1872
1899
|
i0.ɵɵadvance();
|
1873
1900
|
i0.ɵɵproperty("tabindex", !ctx.disabled ? ctx.tabindex : -1);
|
1874
|
-
i0.ɵɵattribute("
|
1875
|
-
} }, dependencies: [CommonModule, i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, Ripple, Scroller, InputIcon, SearchIcon, Checkbox, CheckIcon, IconField, InputText, BlankIcon, FormsModule, i3.NgControlStatus, i3.NgModel, SharedModule], encapsulation: 2, changeDetection: 0 });
|
1901
|
+
i0.ɵɵattribute("data-p-hidden-focusable", true);
|
1902
|
+
} }, dependencies: [CommonModule, i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, Ripple, Scroller, InputIcon, SearchIcon, Checkbox, CheckIcon, IconField, InputText, BlankIcon, FormsModule, i3.NgControlStatus, i3.NgModel, SharedModule, DragDropModule, i4.CdkDropList, i4.CdkDrag], encapsulation: 2, changeDetection: 0 });
|
1876
1903
|
}
|
1877
1904
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Listbox, [{
|
1878
1905
|
type: Component,
|
1879
1906
|
args: [{
|
1880
1907
|
selector: 'p-listbox, p-listBox, p-list-box',
|
1881
1908
|
standalone: true,
|
1882
|
-
imports: [CommonModule, Ripple, Scroller, InputIcon, SearchIcon, Checkbox, CheckIcon, IconField, InputText, BlankIcon, FormsModule, SharedModule],
|
1909
|
+
imports: [CommonModule, Ripple, Scroller, InputIcon, SearchIcon, Checkbox, CheckIcon, IconField, InputText, BlankIcon, FormsModule, SharedModule, DragDropModule],
|
1883
1910
|
template: `
|
1884
1911
|
<div [attr.id]="id" [ngClass]="containerClass" [ngStyle]="style" [class]="styleClass" (focusout)="onFocusout($event)">
|
1885
|
-
<span
|
1886
|
-
#firstHiddenFocusableElement
|
1887
|
-
role="presentation"
|
1888
|
-
[attr.aria-hidden]="true"
|
1889
|
-
class="p-hidden-accessible p-hidden-focusable"
|
1890
|
-
[tabindex]="!disabled ? tabindex : -1"
|
1891
|
-
(focus)="onFirstHiddenFocus($event)"
|
1892
|
-
[attr.data-p-hidden-focusable]="true"
|
1893
|
-
>
|
1894
|
-
</span>
|
1912
|
+
<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>
|
1895
1913
|
<div class="p-listbox-header" *ngIf="headerFacet || headerTemplate || _headerTemplate">
|
1896
1914
|
<ng-content select="p-header"></ng-content>
|
1897
1915
|
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate; context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
|
@@ -1907,7 +1925,7 @@ class Listbox extends BaseComponent {
|
|
1907
1925
|
[ngModel]="allSelected()"
|
1908
1926
|
[disabled]="disabled"
|
1909
1927
|
[tabindex]="-1"
|
1910
|
-
[variant]="config.inputStyle() === 'filled'
|
1928
|
+
[variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
|
1911
1929
|
[binary]="true"
|
1912
1930
|
>
|
1913
1931
|
<ng-container *ngIf="checkIconTemplate || _checkIconTemplate">
|
@@ -1995,10 +2013,21 @@ class Listbox extends BaseComponent {
|
|
1995
2013
|
(focus)="onListFocus($event)"
|
1996
2014
|
(blur)="onListBlur($event)"
|
1997
2015
|
(keydown)="onListKeyDown($event)"
|
2016
|
+
cdkDropList
|
2017
|
+
[cdkDropListData]="items"
|
2018
|
+
(cdkDropListDropped)="drop($event)"
|
1998
2019
|
>
|
1999
2020
|
<ng-template ngFor let-option [ngForOf]="items" let-i="index">
|
2000
2021
|
<ng-container *ngIf="isOptionGroup(option)">
|
2001
|
-
<li
|
2022
|
+
<li
|
2023
|
+
[attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)"
|
2024
|
+
class="p-listbox-option-group"
|
2025
|
+
[ngStyle]="{ height: scrollerOptions.itemSize + 'px' }"
|
2026
|
+
role="option"
|
2027
|
+
cdkDrag
|
2028
|
+
[cdkDragData]="option"
|
2029
|
+
[cdkDragDisabled]="!dragdrop"
|
2030
|
+
>
|
2002
2031
|
<span *ngIf="!groupTemplate && !_groupTemplate">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
2003
2032
|
<ng-container *ngTemplateOutlet="groupTemplate || _groupTemplate; context: { $implicit: option.optionGroup }"></ng-container>
|
2004
2033
|
</li>
|
@@ -2025,6 +2054,9 @@ class Listbox extends BaseComponent {
|
|
2025
2054
|
(mousedown)="onOptionMouseDown($event, getOptionIndex(i, scrollerOptions))"
|
2026
2055
|
(mouseenter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
|
2027
2056
|
(touchend)="onOptionTouchEnd()"
|
2057
|
+
cdkDrag
|
2058
|
+
[cdkDragData]="option"
|
2059
|
+
[cdkDragDisabled]="!dragdrop"
|
2028
2060
|
>
|
2029
2061
|
<p-checkbox
|
2030
2062
|
*ngIf="checkbox && multiple"
|
@@ -2033,7 +2065,7 @@ class Listbox extends BaseComponent {
|
|
2033
2065
|
[readonly]="true"
|
2034
2066
|
[disabled]="disabled || isOptionDisabled(option)"
|
2035
2067
|
[tabindex]="-1"
|
2036
|
-
[variant]="config.inputStyle() === 'filled'
|
2068
|
+
[variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
|
2037
2069
|
[binary]="true"
|
2038
2070
|
>
|
2039
2071
|
<ng-container *ngIf="checkIconTemplate || _checkIconTemplate">
|
@@ -2090,19 +2122,19 @@ class Listbox extends BaseComponent {
|
|
2090
2122
|
<span role="status" aria-live="polite" class="p-hidden-accessible">
|
2091
2123
|
{{ selectedMessageText }}
|
2092
2124
|
</span>
|
2093
|
-
<span
|
2094
|
-
#lastHiddenFocusableElement
|
2095
|
-
role="presentation"
|
2096
|
-
[attr.aria-hidden]="true"
|
2097
|
-
class="p-hidden-accessible p-hidden-focusable"
|
2098
|
-
[tabindex]="!disabled ? tabindex : -1"
|
2099
|
-
(focus)="onLastHiddenFocus($event)"
|
2100
|
-
[attr.data-p-hidden-focusable]="true"
|
2101
|
-
>
|
2102
|
-
</span>
|
2125
|
+
<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>
|
2103
2126
|
</div>
|
2104
2127
|
`,
|
2105
|
-
providers: [
|
2128
|
+
providers: [
|
2129
|
+
LISTBOX_VALUE_ACCESSOR,
|
2130
|
+
ListBoxStyle,
|
2131
|
+
{
|
2132
|
+
provide: CDK_DRAG_CONFIG,
|
2133
|
+
useValue: {
|
2134
|
+
zIndex: 1200
|
2135
|
+
}
|
2136
|
+
}
|
2137
|
+
],
|
2106
2138
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
2107
2139
|
encapsulation: ViewEncapsulation.None
|
2108
2140
|
}]
|
@@ -2221,6 +2253,9 @@ class Listbox extends BaseComponent {
|
|
2221
2253
|
}], checkmark: [{
|
2222
2254
|
type: Input,
|
2223
2255
|
args: [{ transform: booleanAttribute }]
|
2256
|
+
}], dragdrop: [{
|
2257
|
+
type: Input,
|
2258
|
+
args: [{ transform: booleanAttribute }]
|
2224
2259
|
}], onChange: [{
|
2225
2260
|
type: Output
|
2226
2261
|
}], onClick: [{
|
@@ -2237,6 +2272,8 @@ class Listbox extends BaseComponent {
|
|
2237
2272
|
type: Output
|
2238
2273
|
}], onLazyLoad: [{
|
2239
2274
|
type: Output
|
2275
|
+
}], onDrop: [{
|
2276
|
+
type: Output
|
2240
2277
|
}], headerCheckboxViewChild: [{
|
2241
2278
|
type: ViewChild,
|
2242
2279
|
args: ['headerchkbox']
|
@@ -2301,7 +2338,7 @@ class Listbox extends BaseComponent {
|
|
2301
2338
|
type: ContentChildren,
|
2302
2339
|
args: [PrimeTemplate]
|
2303
2340
|
}] }); })();
|
2304
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Listbox, { className: "Listbox", filePath: "listbox.ts", lineNumber:
|
2341
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Listbox, { className: "Listbox", filePath: "listbox.ts", lineNumber: 287 }); })();
|
2305
2342
|
class ListboxModule {
|
2306
2343
|
static ɵfac = function ListboxModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ListboxModule)(); };
|
2307
2344
|
static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: ListboxModule });
|