@exhaustive-ui/core 3.0.0-alpha.1 → 22.0.0-alpha.0
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/fesm2022/exhaustive-ui-core-api.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +432 -376
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +240 -206
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +79 -71
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +109 -97
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +301 -323
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +943 -793
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +167 -127
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +485 -401
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +303 -259
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +6 -6
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +421 -333
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +426 -346
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +391 -337
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +337 -293
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +315 -325
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +11 -7
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/package.json +11 -11
- package/schematics/migrations.json +5 -5
- package/schematics/utils/versions.json +8 -8
|
@@ -1595,100 +1595,115 @@ class Select extends BaseInput {
|
|
|
1595
1595
|
...(ngDevMode ? [{ debugName: "overlayDataP" }] : /* istanbul ignore next */ []));
|
|
1596
1596
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Select, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1597
1597
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Select, isStandalone: true, selector: "p-select", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, panelStyle: { classPropertyName: "panelStyle", publicName: "panelStyle", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, filterFields: { classPropertyName: "filterFields", publicName: "filterFields", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, resetFilterOnHide: { classPropertyName: "resetFilterOnHide", publicName: "resetFilterOnHide", isSignal: true, isRequired: false, transformFunction: null }, checkmark: { classPropertyName: "checkmark", publicName: "checkmark", isSignal: true, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: true, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, emptyFilterMessage: { classPropertyName: "emptyFilterMessage", publicName: "emptyFilterMessage", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollOptions: { classPropertyName: "virtualScrollOptions", publicName: "virtualScrollOptions", isSignal: true, isRequired: false, transformFunction: null }, overlayOptions: { classPropertyName: "overlayOptions", publicName: "overlayOptions", isSignal: true, isRequired: false, transformFunction: null }, ariaFilterLabel: { classPropertyName: "ariaFilterLabel", publicName: "ariaFilterLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, filterMatchMode: { classPropertyName: "filterMatchMode", publicName: "filterMatchMode", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, tooltipPositionStyle: { classPropertyName: "tooltipPositionStyle", publicName: "tooltipPositionStyle", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: true, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: true, isRequired: false, transformFunction: null }, autofocusFilter: { classPropertyName: "autofocusFilter", publicName: "autofocusFilter", isSignal: true, isRequired: false, transformFunction: null }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange", onFilter: "onFilter", onFocus: "onFocus", onBlur: "onBlur", onClick: "onClick", onShow: "onShow", onHide: "onHide", onClear: "onClear", onLazyLoad: "onLazyLoad" }, host: { listeners: { "click": "onContainerClick($event)" }, properties: { "class": "cx('root')", "attr.id": "_id()", "attr.data-p": "containerDataP()" } }, providers: [SELECT_VALUE_ACCESSOR, SelectStyle, { provide: SELECT_INSTANCE, useExisting: Select }, { provide: PARENT_INSTANCE, useExisting: Select }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], isSignal: true }, { propertyName: "groupTemplate", first: true, predicate: ["group"], isSignal: true }, { propertyName: "loaderTemplate", first: true, predicate: ["loader"], isSignal: true }, { propertyName: "selectedItemTemplate", first: true, predicate: ["selectedItem"], isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "filterTemplate", first: true, predicate: ["filter"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "emptyFilterTemplate", first: true, predicate: ["emptyfilter"], isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], isSignal: true }, { propertyName: "dropdownIconTemplate", first: true, predicate: ["dropdownicon"], isSignal: true }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"], isSignal: true }, { propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"], isSignal: true }, { propertyName: "filterIconTemplate", first: true, predicate: ["filtericon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "filterViewChild", first: true, predicate: ["filter"], descendants: true, isSignal: true }, { propertyName: "focusInputViewChild", first: true, predicate: ["focusInput"], descendants: true, isSignal: true }, { propertyName: "editableInputViewChild", first: true, predicate: ["editableInput"], descendants: true, isSignal: true }, { propertyName: "itemsViewChild", first: true, predicate: ["items"], descendants: true, isSignal: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true, isSignal: true }, { propertyName: "overlayViewChild", first: true, predicate: ["overlay"], descendants: true, isSignal: true }, { propertyName: "firstHiddenFocusableElementOnOverlay", first: true, predicate: ["firstHiddenFocusableEl"], descendants: true, isSignal: true }, { propertyName: "lastHiddenFocusableElementOnOverlay", first: true, predicate: ["lastHiddenFocusableEl"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i2.Bind }], ngImport: i0, template: `
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
<input
|
|
1638
|
-
*ngIf="editable()"
|
|
1639
|
-
#editableInput
|
|
1640
|
-
type="text"
|
|
1641
|
-
[attr.id]="inputId()"
|
|
1642
|
-
[class]="cx('label')"
|
|
1643
|
-
[pBind]="ptm('label')"
|
|
1644
|
-
[attr.aria-haspopup]="'listbox'"
|
|
1645
|
-
[attr.placeholder]="modelValue() === undefined || modelValue() === null ? _placeholder() : undefined"
|
|
1646
|
-
[attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
|
|
1647
|
-
(input)="onEditableInput($event)"
|
|
1648
|
-
(keydown)="onKeyDown($event)"
|
|
1649
|
-
[pAutoFocus]="autofocus()"
|
|
1650
|
-
[attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
|
|
1651
|
-
(focus)="onInputFocus($event)"
|
|
1652
|
-
(blur)="onInputBlur($event)"
|
|
1653
|
-
[attr.name]="name()"
|
|
1654
|
-
[attr.minlength]="minlength()"
|
|
1655
|
-
[attr.min]="min()"
|
|
1656
|
-
[attr.max]="max()"
|
|
1657
|
-
[attr.pattern]="pattern()"
|
|
1658
|
-
[attr.size]="inputSize()"
|
|
1659
|
-
[attr.maxlength]="maxlength()"
|
|
1660
|
-
[attr.required]="required() ? '' : undefined"
|
|
1661
|
-
[attr.readonly]="readonly() ? '' : undefined"
|
|
1662
|
-
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1663
|
-
[attr.data-p]="labelDataP()"
|
|
1664
|
-
/>
|
|
1665
|
-
<ng-container *ngIf="isVisibleClearIcon()">
|
|
1666
|
-
<svg data-p-icon="times" [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" *ngIf="!clearIconTemplate() && !_clearIconTemplate()" [attr.data-pc-section]="'clearicon'" />
|
|
1667
|
-
<span [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" *ngIf="clearIconTemplate() || _clearIconTemplate()" [attr.data-pc-section]="'clearicon'">
|
|
1668
|
-
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate(); context: { class: cx('clearIcon') }"></ng-template>
|
|
1598
|
+
@if (!editable()) {
|
|
1599
|
+
<span
|
|
1600
|
+
#focusInput
|
|
1601
|
+
[class]="cx('label')"
|
|
1602
|
+
[pBind]="ptm('label')"
|
|
1603
|
+
[pTooltip]="tooltip()"
|
|
1604
|
+
[pTooltipUnstyled]="unstyled()"
|
|
1605
|
+
[tooltipPosition]="tooltipPosition()"
|
|
1606
|
+
[positionStyle]="tooltipPositionStyle()"
|
|
1607
|
+
[tooltipStyleClass]="tooltipStyleClass()"
|
|
1608
|
+
[attr.aria-disabled]="$disabled()"
|
|
1609
|
+
[attr.id]="inputId()"
|
|
1610
|
+
role="combobox"
|
|
1611
|
+
[attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
|
|
1612
|
+
[attr.aria-labelledby]="ariaLabelledBy()"
|
|
1613
|
+
[attr.aria-haspopup]="'listbox'"
|
|
1614
|
+
[attr.aria-expanded]="overlayVisible() ?? false"
|
|
1615
|
+
[attr.aria-controls]="overlayVisible() ? _id() + '_list' : null"
|
|
1616
|
+
[attr.tabindex]="!$disabled() ? tabindex() : -1"
|
|
1617
|
+
[pAutoFocus]="autofocus()"
|
|
1618
|
+
[attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
|
|
1619
|
+
(focus)="onInputFocus($event)"
|
|
1620
|
+
(blur)="onInputBlur($event)"
|
|
1621
|
+
(keydown)="onKeyDown($event)"
|
|
1622
|
+
[attr.aria-required]="required()"
|
|
1623
|
+
[attr.required]="required() ? '' : undefined"
|
|
1624
|
+
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1625
|
+
[attr.data-p]="labelDataP()"
|
|
1626
|
+
>
|
|
1627
|
+
@if (!selectedItemTemplate() && !_selectedItemTemplate()) {
|
|
1628
|
+
<ng-container>{{ label() === 'p-emptylabel' ? ' ' : label() }}</ng-container>
|
|
1629
|
+
} @else {
|
|
1630
|
+
@if (isSelectedOptionEmpty()) {
|
|
1631
|
+
<span>{{ label() === 'p-emptylabel' ? ' ' : label() }}</span>
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
@if ((selectedItemTemplate() || _selectedItemTemplate()) && !isSelectedOptionEmpty()) {
|
|
1635
|
+
<ng-container [ngTemplateOutlet]="selectedItemTemplate() || _selectedItemTemplate()" [ngTemplateOutletContext]="{ $implicit: selectedOption() }"></ng-container>
|
|
1636
|
+
}
|
|
1669
1637
|
</span>
|
|
1670
|
-
|
|
1638
|
+
}
|
|
1639
|
+
@if (editable()) {
|
|
1640
|
+
<input
|
|
1641
|
+
#editableInput
|
|
1642
|
+
type="text"
|
|
1643
|
+
[attr.id]="inputId()"
|
|
1644
|
+
[class]="cx('label')"
|
|
1645
|
+
[pBind]="ptm('label')"
|
|
1646
|
+
[attr.aria-haspopup]="'listbox'"
|
|
1647
|
+
[attr.placeholder]="modelValue() === undefined || modelValue() === null ? _placeholder() : undefined"
|
|
1648
|
+
[attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
|
|
1649
|
+
(input)="onEditableInput($event)"
|
|
1650
|
+
(keydown)="onKeyDown($event)"
|
|
1651
|
+
[pAutoFocus]="autofocus()"
|
|
1652
|
+
[attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
|
|
1653
|
+
(focus)="onInputFocus($event)"
|
|
1654
|
+
(blur)="onInputBlur($event)"
|
|
1655
|
+
[attr.name]="name()"
|
|
1656
|
+
[attr.minlength]="minlength()"
|
|
1657
|
+
[attr.min]="min()"
|
|
1658
|
+
[attr.max]="max()"
|
|
1659
|
+
[attr.pattern]="pattern()"
|
|
1660
|
+
[attr.size]="inputSize()"
|
|
1661
|
+
[attr.maxlength]="maxlength()"
|
|
1662
|
+
[attr.required]="required() ? '' : undefined"
|
|
1663
|
+
[attr.readonly]="readonly() ? '' : undefined"
|
|
1664
|
+
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1665
|
+
[attr.data-p]="labelDataP()"
|
|
1666
|
+
/>
|
|
1667
|
+
}
|
|
1668
|
+
@if (isVisibleClearIcon()) {
|
|
1669
|
+
@if (!clearIconTemplate() && !_clearIconTemplate()) {
|
|
1670
|
+
<svg data-p-icon="times" [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" [attr.data-pc-section]="'clearicon'" />
|
|
1671
|
+
}
|
|
1672
|
+
@if (clearIconTemplate() || _clearIconTemplate()) {
|
|
1673
|
+
<span [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" [attr.data-pc-section]="'clearicon'">
|
|
1674
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate(); context: { class: cx('clearIcon') }"></ng-template>
|
|
1675
|
+
</span>
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1671
1678
|
|
|
1672
1679
|
<div [class]="cx('dropdown')" [pBind]="ptm('dropdown')" role="button" aria-label="dropdown trigger" aria-haspopup="listbox" [attr.aria-expanded]="overlayVisible() ?? false" [attr.data-pc-section]="'trigger'">
|
|
1673
|
-
|
|
1674
|
-
|
|
1680
|
+
@if (loading()) {
|
|
1681
|
+
@if (loadingIconTemplate() || _loadingIconTemplate()) {
|
|
1675
1682
|
<ng-container *ngTemplateOutlet="loadingIconTemplate() || _loadingIconTemplate()"></ng-container>
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1683
|
+
}
|
|
1684
|
+
@if (!loadingIconTemplate() && !_loadingIconTemplate()) {
|
|
1685
|
+
@if (loadingIcon()) {
|
|
1686
|
+
<span [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon())" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
|
|
1687
|
+
}
|
|
1688
|
+
@if (!loadingIcon()) {
|
|
1689
|
+
<span [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
} @else {
|
|
1693
|
+
@if (!dropdownIconTemplate() && !_dropdownIconTemplate()) {
|
|
1694
|
+
@if (dropdownIcon()) {
|
|
1695
|
+
<span [class]="cn(cx('dropdownIcon'), dropdownIcon())" [pBind]="ptm('dropdownIcon')"></span>
|
|
1696
|
+
}
|
|
1697
|
+
@if (!dropdownIcon()) {
|
|
1698
|
+
<svg data-p-icon="chevron-down" [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')" />
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
@if (dropdownIconTemplate() || _dropdownIconTemplate()) {
|
|
1702
|
+
<span [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')">
|
|
1703
|
+
<ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate(); context: { class: cx('dropdownIcon') }"></ng-template>
|
|
1704
|
+
</span>
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1692
1707
|
</div>
|
|
1693
1708
|
|
|
1694
1709
|
<p-overlay
|
|
@@ -1719,78 +1734,86 @@ class Select extends BaseInput {
|
|
|
1719
1734
|
>
|
|
1720
1735
|
</span>
|
|
1721
1736
|
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
|
|
1722
|
-
|
|
1723
|
-
<
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1737
|
+
@if (filter()) {
|
|
1738
|
+
<div [class]="cx('header')" (click)="$event.stopPropagation()" [pBind]="ptm('header')">
|
|
1739
|
+
@if (filterTemplate() || _filterTemplate()) {
|
|
1740
|
+
<ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
|
|
1741
|
+
} @else {
|
|
1742
|
+
<p-iconfield [pt]="ptm('pcFilterContainer')" [unstyled]="unstyled()">
|
|
1743
|
+
<input
|
|
1744
|
+
#filter
|
|
1745
|
+
pInputText
|
|
1746
|
+
[pSize]="size()"
|
|
1747
|
+
type="text"
|
|
1748
|
+
role="searchbox"
|
|
1749
|
+
autocomplete="off"
|
|
1750
|
+
[value]="_filterValue() || ''"
|
|
1751
|
+
[class]="cx('pcFilter')"
|
|
1752
|
+
[variant]="$variant()"
|
|
1753
|
+
[attr.placeholder]="filterPlaceholder()"
|
|
1754
|
+
[attr.aria-owns]="_id() + '_list'"
|
|
1755
|
+
(input)="onFilterInputChange($event)"
|
|
1756
|
+
[attr.aria-label]="ariaFilterLabel()"
|
|
1757
|
+
[attr.aria-activedescendant]="focusedOptionId()"
|
|
1758
|
+
(keydown)="onFilterKeyDown($event)"
|
|
1759
|
+
(blur)="onFilterBlur($event)"
|
|
1760
|
+
[pt]="ptm('pcFilter')"
|
|
1761
|
+
[unstyled]="unstyled()"
|
|
1762
|
+
/>
|
|
1763
|
+
<p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
|
|
1764
|
+
@if (!filterIconTemplate() && !_filterIconTemplate()) {
|
|
1765
|
+
<svg data-p-icon="search" [pBind]="ptm('filterIcon')" />
|
|
1766
|
+
}
|
|
1767
|
+
@if (filterIconTemplate() || _filterIconTemplate()) {
|
|
1768
|
+
<span [pBind]="ptm('filterIcon')">
|
|
1769
|
+
<ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
|
|
1770
|
+
</span>
|
|
1771
|
+
}
|
|
1772
|
+
</p-inputicon>
|
|
1773
|
+
</p-iconfield>
|
|
1774
|
+
}
|
|
1775
|
+
</div>
|
|
1776
|
+
}
|
|
1757
1777
|
<div [class]="cx('listContainer')" [style.max-height]="virtualScroll() ? 'auto' : scrollHeight() || 'auto'" [pBind]="ptm('listContainer')">
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
</ng-template>
|
|
1774
|
-
<ng-container *ngIf="loaderTemplate() || _loaderTemplate()">
|
|
1775
|
-
<ng-template #loader let-scrollerOptions="options">
|
|
1776
|
-
<ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
|
|
1778
|
+
@if (virtualScroll()) {
|
|
1779
|
+
<p-scroller
|
|
1780
|
+
hostName="select"
|
|
1781
|
+
#scroller
|
|
1782
|
+
[items]="visibleOptions()"
|
|
1783
|
+
[style]="{ height: scrollHeight() }"
|
|
1784
|
+
[itemSize]="virtualScrollItemSize()"
|
|
1785
|
+
[autoSize]="true"
|
|
1786
|
+
[lazy]="lazy()"
|
|
1787
|
+
(onLazyLoad)="onLazyLoad.emit($event)"
|
|
1788
|
+
[options]="virtualScrollOptions()"
|
|
1789
|
+
[pt]="ptm('virtualScroller')"
|
|
1790
|
+
>
|
|
1791
|
+
<ng-template #content let-items let-scrollerOptions="options">
|
|
1792
|
+
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
|
1777
1793
|
</ng-template>
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1794
|
+
@if (loaderTemplate() || _loaderTemplate()) {
|
|
1795
|
+
<ng-template #loader let-scrollerOptions="options">
|
|
1796
|
+
<ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
|
|
1797
|
+
</ng-template>
|
|
1798
|
+
}
|
|
1799
|
+
</p-scroller>
|
|
1800
|
+
}
|
|
1801
|
+
@if (!virtualScroll()) {
|
|
1781
1802
|
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
|
|
1782
|
-
|
|
1803
|
+
}
|
|
1783
1804
|
|
|
1784
1805
|
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
|
1785
1806
|
<ul #items [attr.id]="_id() + '_list'" [attr.aria-label]="listLabel()" [class]="cn(cx('list'), scrollerOptions.contentStyleClass)" [style]="scrollerOptions.contentStyle" role="listbox" [pBind]="ptm('list')">
|
|
1786
|
-
|
|
1787
|
-
|
|
1807
|
+
@for (option of items; track $index; let i = $index) {
|
|
1808
|
+
@if (isOptionGroup(option)) {
|
|
1788
1809
|
<li [class]="cx('optionGroup')" [attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('optionGroup')">
|
|
1789
|
-
|
|
1810
|
+
@if (!groupTemplate() && !_groupTemplate()) {
|
|
1811
|
+
<span [class]="cx('optionGroupLabel')" [pBind]="ptm('optionGroupLabel')">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
|
1812
|
+
}
|
|
1790
1813
|
<ng-container *ngTemplateOutlet="groupTemplate() || _groupTemplate(); context: { $implicit: option.optionGroup }"></ng-container>
|
|
1791
1814
|
</li>
|
|
1792
|
-
|
|
1793
|
-
|
|
1815
|
+
}
|
|
1816
|
+
@if (!isOptionGroup(option)) {
|
|
1794
1817
|
<p-selectItem
|
|
1795
1818
|
[id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
|
|
1796
1819
|
[option]="option"
|
|
@@ -1808,22 +1831,26 @@ class Select extends BaseInput {
|
|
|
1808
1831
|
(onClick)="onOptionSelect($event, option)"
|
|
1809
1832
|
(onMouseEnter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
|
|
1810
1833
|
></p-selectItem>
|
|
1811
|
-
</ng-container>
|
|
1812
|
-
</ng-template>
|
|
1813
|
-
<li *ngIf="_filterValue() && isEmpty()" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
|
|
1814
|
-
@if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate()) {
|
|
1815
|
-
{{ emptyFilterMessageLabel() }}
|
|
1816
|
-
} @else {
|
|
1817
|
-
<ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
1818
|
-
}
|
|
1819
|
-
</li>
|
|
1820
|
-
<li *ngIf="!_filterValue() && isEmpty()" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
|
|
1821
|
-
@if (!emptyTemplate() && !_emptyTemplate()) {
|
|
1822
|
-
{{ emptyMessageLabel() || emptyFilterMessageLabel() }}
|
|
1823
|
-
} @else {
|
|
1824
|
-
<ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
1825
1834
|
}
|
|
1826
|
-
|
|
1835
|
+
}
|
|
1836
|
+
@if (_filterValue() && isEmpty()) {
|
|
1837
|
+
<li [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
|
|
1838
|
+
@if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate()) {
|
|
1839
|
+
{{ emptyFilterMessageLabel() }}
|
|
1840
|
+
} @else {
|
|
1841
|
+
<ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
1842
|
+
}
|
|
1843
|
+
</li>
|
|
1844
|
+
}
|
|
1845
|
+
@if (!_filterValue() && isEmpty()) {
|
|
1846
|
+
<li [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
|
|
1847
|
+
@if (!emptyTemplate() && !_emptyTemplate()) {
|
|
1848
|
+
{{ emptyMessageLabel() || emptyFilterMessageLabel() }}
|
|
1849
|
+
} @else {
|
|
1850
|
+
<ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
1851
|
+
}
|
|
1852
|
+
</li>
|
|
1853
|
+
}
|
|
1827
1854
|
</ul>
|
|
1828
1855
|
</ng-template>
|
|
1829
1856
|
</div>
|
|
@@ -1841,7 +1868,7 @@ class Select extends BaseInput {
|
|
|
1841
1868
|
</div>
|
|
1842
1869
|
</ng-template>
|
|
1843
1870
|
</p-overlay>
|
|
1844
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.
|
|
1871
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: SelectItem, selector: "p-selectItem", inputs: ["id", "option", "selected", "focused", "label", "disabled", "ariaPosInset", "ariaSetSize", "template", "checkmark", "index", "scrollerOptions"], outputs: ["onClick", "onMouseEnter"] }, { kind: "component", type: Overlay, selector: "p-overlay", inputs: ["hostName", "visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "autoZIndex", "baseZIndex", "listener", "responsive", "options", "appendTo", "inline", "motionOptions", "hostAttrSelector"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"] }, { kind: "directive", type: Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: SearchIcon, selector: "[data-p-icon=\"search\"]" }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName"] }, { kind: "component", type: Scroller, selector: "p-scroller, p-virtualscroller, p-virtual-scroller, p-virtualScroller", inputs: ["hostName", "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: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i2.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1845
1872
|
}
|
|
1846
1873
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Select, decorators: [{
|
|
1847
1874
|
type: Component,
|
|
@@ -1849,100 +1876,115 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1849
1876
|
selector: 'p-select',
|
|
1850
1877
|
imports: [CommonModule, SelectItem, Overlay, Tooltip, AutoFocus, TimesIcon, ChevronDownIcon, SearchIcon, InputText, IconField, InputIcon, Scroller, SharedModule, BindModule],
|
|
1851
1878
|
template: `
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
<input
|
|
1892
|
-
*ngIf="editable()"
|
|
1893
|
-
#editableInput
|
|
1894
|
-
type="text"
|
|
1895
|
-
[attr.id]="inputId()"
|
|
1896
|
-
[class]="cx('label')"
|
|
1897
|
-
[pBind]="ptm('label')"
|
|
1898
|
-
[attr.aria-haspopup]="'listbox'"
|
|
1899
|
-
[attr.placeholder]="modelValue() === undefined || modelValue() === null ? _placeholder() : undefined"
|
|
1900
|
-
[attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
|
|
1901
|
-
(input)="onEditableInput($event)"
|
|
1902
|
-
(keydown)="onKeyDown($event)"
|
|
1903
|
-
[pAutoFocus]="autofocus()"
|
|
1904
|
-
[attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
|
|
1905
|
-
(focus)="onInputFocus($event)"
|
|
1906
|
-
(blur)="onInputBlur($event)"
|
|
1907
|
-
[attr.name]="name()"
|
|
1908
|
-
[attr.minlength]="minlength()"
|
|
1909
|
-
[attr.min]="min()"
|
|
1910
|
-
[attr.max]="max()"
|
|
1911
|
-
[attr.pattern]="pattern()"
|
|
1912
|
-
[attr.size]="inputSize()"
|
|
1913
|
-
[attr.maxlength]="maxlength()"
|
|
1914
|
-
[attr.required]="required() ? '' : undefined"
|
|
1915
|
-
[attr.readonly]="readonly() ? '' : undefined"
|
|
1916
|
-
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1917
|
-
[attr.data-p]="labelDataP()"
|
|
1918
|
-
/>
|
|
1919
|
-
<ng-container *ngIf="isVisibleClearIcon()">
|
|
1920
|
-
<svg data-p-icon="times" [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" *ngIf="!clearIconTemplate() && !_clearIconTemplate()" [attr.data-pc-section]="'clearicon'" />
|
|
1921
|
-
<span [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" *ngIf="clearIconTemplate() || _clearIconTemplate()" [attr.data-pc-section]="'clearicon'">
|
|
1922
|
-
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate(); context: { class: cx('clearIcon') }"></ng-template>
|
|
1879
|
+
@if (!editable()) {
|
|
1880
|
+
<span
|
|
1881
|
+
#focusInput
|
|
1882
|
+
[class]="cx('label')"
|
|
1883
|
+
[pBind]="ptm('label')"
|
|
1884
|
+
[pTooltip]="tooltip()"
|
|
1885
|
+
[pTooltipUnstyled]="unstyled()"
|
|
1886
|
+
[tooltipPosition]="tooltipPosition()"
|
|
1887
|
+
[positionStyle]="tooltipPositionStyle()"
|
|
1888
|
+
[tooltipStyleClass]="tooltipStyleClass()"
|
|
1889
|
+
[attr.aria-disabled]="$disabled()"
|
|
1890
|
+
[attr.id]="inputId()"
|
|
1891
|
+
role="combobox"
|
|
1892
|
+
[attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
|
|
1893
|
+
[attr.aria-labelledby]="ariaLabelledBy()"
|
|
1894
|
+
[attr.aria-haspopup]="'listbox'"
|
|
1895
|
+
[attr.aria-expanded]="overlayVisible() ?? false"
|
|
1896
|
+
[attr.aria-controls]="overlayVisible() ? _id() + '_list' : null"
|
|
1897
|
+
[attr.tabindex]="!$disabled() ? tabindex() : -1"
|
|
1898
|
+
[pAutoFocus]="autofocus()"
|
|
1899
|
+
[attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
|
|
1900
|
+
(focus)="onInputFocus($event)"
|
|
1901
|
+
(blur)="onInputBlur($event)"
|
|
1902
|
+
(keydown)="onKeyDown($event)"
|
|
1903
|
+
[attr.aria-required]="required()"
|
|
1904
|
+
[attr.required]="required() ? '' : undefined"
|
|
1905
|
+
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1906
|
+
[attr.data-p]="labelDataP()"
|
|
1907
|
+
>
|
|
1908
|
+
@if (!selectedItemTemplate() && !_selectedItemTemplate()) {
|
|
1909
|
+
<ng-container>{{ label() === 'p-emptylabel' ? ' ' : label() }}</ng-container>
|
|
1910
|
+
} @else {
|
|
1911
|
+
@if (isSelectedOptionEmpty()) {
|
|
1912
|
+
<span>{{ label() === 'p-emptylabel' ? ' ' : label() }}</span>
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
@if ((selectedItemTemplate() || _selectedItemTemplate()) && !isSelectedOptionEmpty()) {
|
|
1916
|
+
<ng-container [ngTemplateOutlet]="selectedItemTemplate() || _selectedItemTemplate()" [ngTemplateOutletContext]="{ $implicit: selectedOption() }"></ng-container>
|
|
1917
|
+
}
|
|
1923
1918
|
</span>
|
|
1924
|
-
|
|
1919
|
+
}
|
|
1920
|
+
@if (editable()) {
|
|
1921
|
+
<input
|
|
1922
|
+
#editableInput
|
|
1923
|
+
type="text"
|
|
1924
|
+
[attr.id]="inputId()"
|
|
1925
|
+
[class]="cx('label')"
|
|
1926
|
+
[pBind]="ptm('label')"
|
|
1927
|
+
[attr.aria-haspopup]="'listbox'"
|
|
1928
|
+
[attr.placeholder]="modelValue() === undefined || modelValue() === null ? _placeholder() : undefined"
|
|
1929
|
+
[attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
|
|
1930
|
+
(input)="onEditableInput($event)"
|
|
1931
|
+
(keydown)="onKeyDown($event)"
|
|
1932
|
+
[pAutoFocus]="autofocus()"
|
|
1933
|
+
[attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
|
|
1934
|
+
(focus)="onInputFocus($event)"
|
|
1935
|
+
(blur)="onInputBlur($event)"
|
|
1936
|
+
[attr.name]="name()"
|
|
1937
|
+
[attr.minlength]="minlength()"
|
|
1938
|
+
[attr.min]="min()"
|
|
1939
|
+
[attr.max]="max()"
|
|
1940
|
+
[attr.pattern]="pattern()"
|
|
1941
|
+
[attr.size]="inputSize()"
|
|
1942
|
+
[attr.maxlength]="maxlength()"
|
|
1943
|
+
[attr.required]="required() ? '' : undefined"
|
|
1944
|
+
[attr.readonly]="readonly() ? '' : undefined"
|
|
1945
|
+
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1946
|
+
[attr.data-p]="labelDataP()"
|
|
1947
|
+
/>
|
|
1948
|
+
}
|
|
1949
|
+
@if (isVisibleClearIcon()) {
|
|
1950
|
+
@if (!clearIconTemplate() && !_clearIconTemplate()) {
|
|
1951
|
+
<svg data-p-icon="times" [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" [attr.data-pc-section]="'clearicon'" />
|
|
1952
|
+
}
|
|
1953
|
+
@if (clearIconTemplate() || _clearIconTemplate()) {
|
|
1954
|
+
<span [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" [attr.data-pc-section]="'clearicon'">
|
|
1955
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate(); context: { class: cx('clearIcon') }"></ng-template>
|
|
1956
|
+
</span>
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1925
1959
|
|
|
1926
1960
|
<div [class]="cx('dropdown')" [pBind]="ptm('dropdown')" role="button" aria-label="dropdown trigger" aria-haspopup="listbox" [attr.aria-expanded]="overlayVisible() ?? false" [attr.data-pc-section]="'trigger'">
|
|
1927
|
-
|
|
1928
|
-
|
|
1961
|
+
@if (loading()) {
|
|
1962
|
+
@if (loadingIconTemplate() || _loadingIconTemplate()) {
|
|
1929
1963
|
<ng-container *ngTemplateOutlet="loadingIconTemplate() || _loadingIconTemplate()"></ng-container>
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1964
|
+
}
|
|
1965
|
+
@if (!loadingIconTemplate() && !_loadingIconTemplate()) {
|
|
1966
|
+
@if (loadingIcon()) {
|
|
1967
|
+
<span [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon())" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
|
|
1968
|
+
}
|
|
1969
|
+
@if (!loadingIcon()) {
|
|
1970
|
+
<span [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
} @else {
|
|
1974
|
+
@if (!dropdownIconTemplate() && !_dropdownIconTemplate()) {
|
|
1975
|
+
@if (dropdownIcon()) {
|
|
1976
|
+
<span [class]="cn(cx('dropdownIcon'), dropdownIcon())" [pBind]="ptm('dropdownIcon')"></span>
|
|
1977
|
+
}
|
|
1978
|
+
@if (!dropdownIcon()) {
|
|
1979
|
+
<svg data-p-icon="chevron-down" [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')" />
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1982
|
+
@if (dropdownIconTemplate() || _dropdownIconTemplate()) {
|
|
1983
|
+
<span [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')">
|
|
1984
|
+
<ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate(); context: { class: cx('dropdownIcon') }"></ng-template>
|
|
1985
|
+
</span>
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1946
1988
|
</div>
|
|
1947
1989
|
|
|
1948
1990
|
<p-overlay
|
|
@@ -1973,78 +2015,86 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1973
2015
|
>
|
|
1974
2016
|
</span>
|
|
1975
2017
|
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
|
|
1976
|
-
|
|
1977
|
-
<
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2018
|
+
@if (filter()) {
|
|
2019
|
+
<div [class]="cx('header')" (click)="$event.stopPropagation()" [pBind]="ptm('header')">
|
|
2020
|
+
@if (filterTemplate() || _filterTemplate()) {
|
|
2021
|
+
<ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
|
|
2022
|
+
} @else {
|
|
2023
|
+
<p-iconfield [pt]="ptm('pcFilterContainer')" [unstyled]="unstyled()">
|
|
2024
|
+
<input
|
|
2025
|
+
#filter
|
|
2026
|
+
pInputText
|
|
2027
|
+
[pSize]="size()"
|
|
2028
|
+
type="text"
|
|
2029
|
+
role="searchbox"
|
|
2030
|
+
autocomplete="off"
|
|
2031
|
+
[value]="_filterValue() || ''"
|
|
2032
|
+
[class]="cx('pcFilter')"
|
|
2033
|
+
[variant]="$variant()"
|
|
2034
|
+
[attr.placeholder]="filterPlaceholder()"
|
|
2035
|
+
[attr.aria-owns]="_id() + '_list'"
|
|
2036
|
+
(input)="onFilterInputChange($event)"
|
|
2037
|
+
[attr.aria-label]="ariaFilterLabel()"
|
|
2038
|
+
[attr.aria-activedescendant]="focusedOptionId()"
|
|
2039
|
+
(keydown)="onFilterKeyDown($event)"
|
|
2040
|
+
(blur)="onFilterBlur($event)"
|
|
2041
|
+
[pt]="ptm('pcFilter')"
|
|
2042
|
+
[unstyled]="unstyled()"
|
|
2043
|
+
/>
|
|
2044
|
+
<p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
|
|
2045
|
+
@if (!filterIconTemplate() && !_filterIconTemplate()) {
|
|
2046
|
+
<svg data-p-icon="search" [pBind]="ptm('filterIcon')" />
|
|
2047
|
+
}
|
|
2048
|
+
@if (filterIconTemplate() || _filterIconTemplate()) {
|
|
2049
|
+
<span [pBind]="ptm('filterIcon')">
|
|
2050
|
+
<ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
|
|
2051
|
+
</span>
|
|
2052
|
+
}
|
|
2053
|
+
</p-inputicon>
|
|
2054
|
+
</p-iconfield>
|
|
2055
|
+
}
|
|
2056
|
+
</div>
|
|
2057
|
+
}
|
|
2011
2058
|
<div [class]="cx('listContainer')" [style.max-height]="virtualScroll() ? 'auto' : scrollHeight() || 'auto'" [pBind]="ptm('listContainer')">
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
</ng-template>
|
|
2028
|
-
<ng-container *ngIf="loaderTemplate() || _loaderTemplate()">
|
|
2029
|
-
<ng-template #loader let-scrollerOptions="options">
|
|
2030
|
-
<ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
|
|
2059
|
+
@if (virtualScroll()) {
|
|
2060
|
+
<p-scroller
|
|
2061
|
+
hostName="select"
|
|
2062
|
+
#scroller
|
|
2063
|
+
[items]="visibleOptions()"
|
|
2064
|
+
[style]="{ height: scrollHeight() }"
|
|
2065
|
+
[itemSize]="virtualScrollItemSize()"
|
|
2066
|
+
[autoSize]="true"
|
|
2067
|
+
[lazy]="lazy()"
|
|
2068
|
+
(onLazyLoad)="onLazyLoad.emit($event)"
|
|
2069
|
+
[options]="virtualScrollOptions()"
|
|
2070
|
+
[pt]="ptm('virtualScroller')"
|
|
2071
|
+
>
|
|
2072
|
+
<ng-template #content let-items let-scrollerOptions="options">
|
|
2073
|
+
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
|
2031
2074
|
</ng-template>
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2075
|
+
@if (loaderTemplate() || _loaderTemplate()) {
|
|
2076
|
+
<ng-template #loader let-scrollerOptions="options">
|
|
2077
|
+
<ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
|
|
2078
|
+
</ng-template>
|
|
2079
|
+
}
|
|
2080
|
+
</p-scroller>
|
|
2081
|
+
}
|
|
2082
|
+
@if (!virtualScroll()) {
|
|
2035
2083
|
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
|
|
2036
|
-
|
|
2084
|
+
}
|
|
2037
2085
|
|
|
2038
2086
|
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
|
2039
2087
|
<ul #items [attr.id]="_id() + '_list'" [attr.aria-label]="listLabel()" [class]="cn(cx('list'), scrollerOptions.contentStyleClass)" [style]="scrollerOptions.contentStyle" role="listbox" [pBind]="ptm('list')">
|
|
2040
|
-
|
|
2041
|
-
|
|
2088
|
+
@for (option of items; track $index; let i = $index) {
|
|
2089
|
+
@if (isOptionGroup(option)) {
|
|
2042
2090
|
<li [class]="cx('optionGroup')" [attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('optionGroup')">
|
|
2043
|
-
|
|
2091
|
+
@if (!groupTemplate() && !_groupTemplate()) {
|
|
2092
|
+
<span [class]="cx('optionGroupLabel')" [pBind]="ptm('optionGroupLabel')">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
|
2093
|
+
}
|
|
2044
2094
|
<ng-container *ngTemplateOutlet="groupTemplate() || _groupTemplate(); context: { $implicit: option.optionGroup }"></ng-container>
|
|
2045
2095
|
</li>
|
|
2046
|
-
|
|
2047
|
-
|
|
2096
|
+
}
|
|
2097
|
+
@if (!isOptionGroup(option)) {
|
|
2048
2098
|
<p-selectItem
|
|
2049
2099
|
[id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
|
|
2050
2100
|
[option]="option"
|
|
@@ -2062,22 +2112,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
2062
2112
|
(onClick)="onOptionSelect($event, option)"
|
|
2063
2113
|
(onMouseEnter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
|
|
2064
2114
|
></p-selectItem>
|
|
2065
|
-
</ng-container>
|
|
2066
|
-
</ng-template>
|
|
2067
|
-
<li *ngIf="_filterValue() && isEmpty()" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
|
|
2068
|
-
@if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate()) {
|
|
2069
|
-
{{ emptyFilterMessageLabel() }}
|
|
2070
|
-
} @else {
|
|
2071
|
-
<ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
2072
|
-
}
|
|
2073
|
-
</li>
|
|
2074
|
-
<li *ngIf="!_filterValue() && isEmpty()" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
|
|
2075
|
-
@if (!emptyTemplate() && !_emptyTemplate()) {
|
|
2076
|
-
{{ emptyMessageLabel() || emptyFilterMessageLabel() }}
|
|
2077
|
-
} @else {
|
|
2078
|
-
<ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
2079
2115
|
}
|
|
2080
|
-
|
|
2116
|
+
}
|
|
2117
|
+
@if (_filterValue() && isEmpty()) {
|
|
2118
|
+
<li [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
|
|
2119
|
+
@if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate()) {
|
|
2120
|
+
{{ emptyFilterMessageLabel() }}
|
|
2121
|
+
} @else {
|
|
2122
|
+
<ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
2123
|
+
}
|
|
2124
|
+
</li>
|
|
2125
|
+
}
|
|
2126
|
+
@if (!_filterValue() && isEmpty()) {
|
|
2127
|
+
<li [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
|
|
2128
|
+
@if (!emptyTemplate() && !_emptyTemplate()) {
|
|
2129
|
+
{{ emptyMessageLabel() || emptyFilterMessageLabel() }}
|
|
2130
|
+
} @else {
|
|
2131
|
+
<ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
2132
|
+
}
|
|
2133
|
+
</li>
|
|
2134
|
+
}
|
|
2081
2135
|
</ul>
|
|
2082
2136
|
</ng-template>
|
|
2083
2137
|
</div>
|