@exhaustive-ui/core 22.0.0-alpha.9 → 22.0.0-rc.2
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-accordion.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +3 -3
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +25 -14
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +12 -3
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs +34 -4
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-baseeditableholder.mjs +4 -2
- package/fesm2022/exhaustive-ui-core-baseeditableholder.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +9 -2
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +13 -6
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +35 -13
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-card.mjs +2 -6
- package/fesm2022/exhaustive-ui-core-card.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +9 -4
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +12 -11
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-config.mjs +3 -1
- package/fesm2022/exhaustive-ui-core-config.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +65 -26
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +28 -5
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +15 -8
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +188 -95
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +31 -13
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-divider.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-divider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dom.mjs +3 -1
- package/fesm2022/exhaustive-ui-core-dom.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +24 -6
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +9 -5
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +25 -14
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-focustrap.mjs +0 -2
- package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +18 -3
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +12 -4
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +3 -3
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +11 -2
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputicon.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +31 -7
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +85 -25
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +9 -3
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +8 -9
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs +27 -17
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +17 -6
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +4 -3
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +15 -4
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +64 -15
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-message.mjs +2 -4
- package/fesm2022/exhaustive-ui-core-message.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +7 -7
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +38 -27
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +19 -6
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlay.mjs +6 -4
- package/fesm2022/exhaustive-ui-core-overlay.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +12 -5
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +9 -11
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +43 -15
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +93 -25
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +33 -12
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +27 -8
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-progressbar.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-progressbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-progressspinner.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-progressspinner.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs +8 -3
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +14 -4
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +11 -3
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +102 -29
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +13 -7
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-skeleton.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +18 -5
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +9 -5
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +29 -8
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-stepper.mjs +8 -4
- package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +535 -203
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tabs.mjs +44 -8
- package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tag.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-tag.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +9 -4
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +31 -16
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toast.mjs +17 -5
- package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +11 -4
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +2 -4
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +5 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +30 -11
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +53 -6
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +93 -21
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-usestyle.mjs +49 -0
- package/fesm2022/exhaustive-ui-core-usestyle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-utils.mjs +2 -1
- package/fesm2022/exhaustive-ui-core-utils.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/migrate-from-primeflex/index.js +4 -2
- package/schematics/migrate-from-primeflex/schema.json +5 -0
- package/schematics/utils/package-json.js +17 -0
- package/schematics/utils/primeflex.js +45 -10
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-api.d.ts +6 -0
- package/types/exhaustive-ui-core-autocomplete.d.ts +2 -0
- package/types/exhaustive-ui-core-badge.d.ts +1 -0
- package/types/exhaustive-ui-core-basecomponent.d.ts +16 -0
- package/types/exhaustive-ui-core-breadcrumb.d.ts +7 -1
- package/types/exhaustive-ui-core-button.d.ts +12 -1
- package/types/exhaustive-ui-core-cascadeselect.d.ts +2 -1
- package/types/exhaustive-ui-core-chart.d.ts +2 -2
- package/types/exhaustive-ui-core-confirmdialog.d.ts +17 -5
- package/types/exhaustive-ui-core-confirmpopup.d.ts +4 -0
- package/types/exhaustive-ui-core-datepicker.d.ts +10 -2
- package/types/exhaustive-ui-core-dialog.d.ts +2 -0
- package/types/exhaustive-ui-core-drawer.d.ts +1 -0
- package/types/exhaustive-ui-core-fileupload.d.ts +4 -0
- package/types/exhaustive-ui-core-iconfield.d.ts +1 -2
- package/types/exhaustive-ui-core-image.d.ts +6 -1
- package/types/exhaustive-ui-core-inputnumber.d.ts +8 -0
- package/types/exhaustive-ui-core-keyfilter.d.ts +1 -0
- package/types/exhaustive-ui-core-megamenu.d.ts +1 -0
- package/types/exhaustive-ui-core-menu.d.ts +2 -0
- package/types/exhaustive-ui-core-menubar.d.ts +6 -0
- package/types/exhaustive-ui-core-metergroup.d.ts +1 -1
- package/types/exhaustive-ui-core-multiselect.d.ts +1 -1
- package/types/exhaustive-ui-core-orderlist.d.ts +11 -1
- package/types/exhaustive-ui-core-paginator.d.ts +1 -0
- package/types/exhaustive-ui-core-panelmenu.d.ts +7 -0
- package/types/exhaustive-ui-core-password.d.ts +9 -1
- package/types/exhaustive-ui-core-picklist.d.ts +8 -3
- package/types/exhaustive-ui-core-popover.d.ts +3 -0
- package/types/exhaustive-ui-core-select.d.ts +13 -1
- package/types/exhaustive-ui-core-selectbutton.d.ts +3 -0
- package/types/exhaustive-ui-core-splitbutton.d.ts +2 -1
- package/types/exhaustive-ui-core-splitter.d.ts +7 -1
- package/types/exhaustive-ui-core-stepper.d.ts +3 -2
- package/types/exhaustive-ui-core-table.d.ts +34 -4
- package/types/exhaustive-ui-core-tabs.d.ts +4 -0
- package/types/exhaustive-ui-core-tieredmenu.d.ts +2 -0
- package/types/exhaustive-ui-core-togglebutton.d.ts +1 -0
- package/types/exhaustive-ui-core-tree.d.ts +2 -0
- package/types/exhaustive-ui-core-treeselect.d.ts +12 -1
- package/types/exhaustive-ui-core-treetable.d.ts +22 -2
- package/types/exhaustive-ui-core-types-chart.d.ts +21 -1
- package/types/exhaustive-ui-core-types-confirmdialog.d.ts +1 -3
- package/types/exhaustive-ui-core-types-table.d.ts +1 -1
- package/types/exhaustive-ui-core-types-treetable.d.ts +2 -2
- package/types/exhaustive-ui-core-usestyle.d.ts +17 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from '@exhaustive-ui/core/types/select';
|
|
2
2
|
import * as i1 from '@angular/common';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { CommonModule, isPlatformBrowser } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
5
|
import { Injectable, InjectionToken, forwardRef, inject, input, booleanAttribute, output, ChangeDetectionStrategy, Component, numberAttribute, viewChild, signal, computed, contentChild, contentChildren, linkedSignal, effect, afterNextRender, afterEveryRender, ViewEncapsulation, NgModule } from '@angular/core';
|
|
6
6
|
import { toSignal } from '@angular/core/rxjs-interop';
|
|
@@ -14,7 +14,7 @@ import * as i2 from '@exhaustive-ui/core/bind';
|
|
|
14
14
|
import { BindModule, Bind } from '@exhaustive-ui/core/bind';
|
|
15
15
|
import { unblockBodyScroll } from '@exhaustive-ui/core/dom';
|
|
16
16
|
import { IconField } from '@exhaustive-ui/core/iconfield';
|
|
17
|
-
import { CheckIcon, BlankIcon, TimesIcon, ChevronDownIcon, SearchIcon } from '@exhaustive-ui/core/icons';
|
|
17
|
+
import { CheckIcon, BlankIcon, TimesIcon, ChevronDownIcon, SearchIcon, SpinnerIcon } from '@exhaustive-ui/core/icons';
|
|
18
18
|
import { InputIcon } from '@exhaustive-ui/core/inputicon';
|
|
19
19
|
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
20
20
|
import { Overlay } from '@exhaustive-ui/core/overlay';
|
|
@@ -840,10 +840,20 @@ class Select extends BaseInput {
|
|
|
840
840
|
...(ngDevMode ? [{ debugName: "emptyMessageLabel" }] : /* istanbul ignore next */ []));
|
|
841
841
|
emptyFilterMessageLabel = computed(() => this.emptyFilterMessage() || this.translation()[TranslationKeys.EMPTY_FILTER_MESSAGE], /* @ts-ignore */
|
|
842
842
|
...(ngDevMode ? [{ debugName: "emptyFilterMessageLabel" }] : /* istanbul ignore next */ []));
|
|
843
|
+
/**
|
|
844
|
+
* Whether an ancestor `<fieldset disabled>` disables the component, as it does native form controls.
|
|
845
|
+
*/
|
|
846
|
+
fieldsetDisabled = signal(false, /* @ts-ignore */
|
|
847
|
+
...(ngDevMode ? [{ debugName: "fieldsetDisabled" }] : /* istanbul ignore next */ []));
|
|
848
|
+
fieldsetObserver;
|
|
849
|
+
$disabled = computed(() => this.disabled() || this._disabled() || this.fieldsetDisabled(), /* @ts-ignore */
|
|
850
|
+
...(ngDevMode ? [{ debugName: "$disabled" }] : /* istanbul ignore next */ []));
|
|
843
851
|
isVisibleClearIcon = computed(() => this.modelValue() != null && this.hasSelectedOption() && this.showClear() && !this.$disabled(), /* @ts-ignore */
|
|
844
852
|
...(ngDevMode ? [{ debugName: "isVisibleClearIcon" }] : /* istanbul ignore next */ []));
|
|
845
853
|
listLabel = computed(() => this.translation()[TranslationKeys.ARIA]['listLabel'], /* @ts-ignore */
|
|
846
854
|
...(ngDevMode ? [{ debugName: "listLabel" }] : /* istanbul ignore next */ []));
|
|
855
|
+
clearAriaLabel = computed(() => this.translation()[TranslationKeys.CLEAR], /* @ts-ignore */
|
|
856
|
+
...(ngDevMode ? [{ debugName: "clearAriaLabel" }] : /* istanbul ignore next */ []));
|
|
847
857
|
focusedOptionId = computed(() => (this.focusedOptionIndex() !== -1 ? `${this._id()}_${this.focusedOptionIndex()}` : null), /* @ts-ignore */
|
|
848
858
|
...(ngDevMode ? [{ debugName: "focusedOptionId" }] : /* istanbul ignore next */ []));
|
|
849
859
|
visibleOptions = computed(() => {
|
|
@@ -929,8 +939,8 @@ class Select extends BaseInput {
|
|
|
929
939
|
}
|
|
930
940
|
this.updatePlaceHolderForFloatingLabel();
|
|
931
941
|
});
|
|
942
|
+
this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));
|
|
932
943
|
afterEveryRender(() => {
|
|
933
|
-
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
934
944
|
const itemsWrapper = this.itemsWrapper();
|
|
935
945
|
if (this.selectedOptionUpdated() && itemsWrapper) {
|
|
936
946
|
let selectedItem = findSingle(this.overlayViewChild().overlayViewChild()?.nativeElement, 'li[data-p-selected="true"]');
|
|
@@ -949,6 +959,32 @@ class Select extends BaseInput {
|
|
|
949
959
|
onInit() {
|
|
950
960
|
this.autoUpdateModel();
|
|
951
961
|
}
|
|
962
|
+
onAfterViewInit() {
|
|
963
|
+
this.bindFieldsetObserver();
|
|
964
|
+
}
|
|
965
|
+
onDestroy() {
|
|
966
|
+
this.fieldsetObserver?.disconnect();
|
|
967
|
+
this.fieldsetObserver = undefined;
|
|
968
|
+
}
|
|
969
|
+
bindFieldsetObserver() {
|
|
970
|
+
if (!isPlatformBrowser(this.platformId) || typeof MutationObserver === 'undefined') {
|
|
971
|
+
return;
|
|
972
|
+
}
|
|
973
|
+
const host = this.el.nativeElement;
|
|
974
|
+
const fieldsets = [];
|
|
975
|
+
let fieldset = host.parentElement?.closest('fieldset');
|
|
976
|
+
while (fieldset) {
|
|
977
|
+
fieldsets.push(fieldset);
|
|
978
|
+
fieldset = fieldset.parentElement?.closest('fieldset');
|
|
979
|
+
}
|
|
980
|
+
if (fieldsets.length) {
|
|
981
|
+
// A control inside the first <legend> of a disabled fieldset stays enabled, like native controls.
|
|
982
|
+
const update = () => this.fieldsetDisabled.set(fieldsets.some((f) => f.disabled && !f.querySelector(':scope > legend')?.contains(host)));
|
|
983
|
+
this.fieldsetObserver = new MutationObserver(update);
|
|
984
|
+
fieldsets.forEach((f) => this.fieldsetObserver.observe(f, { attributes: true, attributeFilter: ['disabled'] }));
|
|
985
|
+
update();
|
|
986
|
+
}
|
|
987
|
+
}
|
|
952
988
|
flatOptions(options) {
|
|
953
989
|
return (options || []).reduce((result, option, index) => {
|
|
954
990
|
result.push({ optionGroup: option, group: true, index });
|
|
@@ -980,7 +1016,7 @@ class Select extends BaseInput {
|
|
|
980
1016
|
}
|
|
981
1017
|
onOptionMouseEnter(event, index) {
|
|
982
1018
|
if (this.focusOnHover()) {
|
|
983
|
-
this.changeFocusedOptionIndex(event, index);
|
|
1019
|
+
this.changeFocusedOptionIndex(event, index, false);
|
|
984
1020
|
}
|
|
985
1021
|
}
|
|
986
1022
|
updateModel(value, event) {
|
|
@@ -1152,7 +1188,8 @@ class Select extends BaseInput {
|
|
|
1152
1188
|
this.focusedOptionIndex.set(-1);
|
|
1153
1189
|
this.clicked.set(false);
|
|
1154
1190
|
this.searchValue.set('');
|
|
1155
|
-
|
|
1191
|
+
// the overlay is also modal when a responsive breakpoint (input or global config) matches
|
|
1192
|
+
if (this.overlayOptions()?.mode === 'modal' || this.overlayViewChild()?.modal) {
|
|
1156
1193
|
unblockBodyScroll();
|
|
1157
1194
|
}
|
|
1158
1195
|
if (this.filter() && this.resetFilterOnHide()) {
|
|
@@ -1284,6 +1321,12 @@ class Select extends BaseInput {
|
|
|
1284
1321
|
break;
|
|
1285
1322
|
}
|
|
1286
1323
|
}
|
|
1324
|
+
onFilterTemplateKeyDown(event) {
|
|
1325
|
+
// a custom filter template has no keydown wiring of its own, so give its input the keyboard navigation of the built-in filter
|
|
1326
|
+
if ((this.filterTemplate() || this._filterTemplate()) && event.target?.tagName === 'INPUT') {
|
|
1327
|
+
this.onFilterKeyDown(event);
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1287
1330
|
onFilterBlur(event) {
|
|
1288
1331
|
this.focusedOptionIndex.set(-1);
|
|
1289
1332
|
}
|
|
@@ -1299,10 +1342,10 @@ class Select extends BaseInput {
|
|
|
1299
1342
|
event.preventDefault();
|
|
1300
1343
|
event.stopPropagation();
|
|
1301
1344
|
}
|
|
1302
|
-
changeFocusedOptionIndex(event, index) {
|
|
1345
|
+
changeFocusedOptionIndex(event, index, scroll = true) {
|
|
1303
1346
|
if (this.focusedOptionIndex() !== index) {
|
|
1304
1347
|
this.focusedOptionIndex.set(index);
|
|
1305
|
-
this.scrollInView();
|
|
1348
|
+
scroll && this.scrollInView();
|
|
1306
1349
|
if (this.selectOnFocus()) {
|
|
1307
1350
|
const option = this.visibleOptions()[index];
|
|
1308
1351
|
this.onOptionSelect(event, option, false);
|
|
@@ -1464,6 +1507,7 @@ class Select extends BaseInput {
|
|
|
1464
1507
|
if (this.overlayVisible() && this.hasFocusableElements()) {
|
|
1465
1508
|
focus(event.shiftKey ? this.lastHiddenFocusableElementOnOverlay()?.nativeElement : this.firstHiddenFocusableElementOnOverlay()?.nativeElement);
|
|
1466
1509
|
event.preventDefault();
|
|
1510
|
+
event.stopPropagation();
|
|
1467
1511
|
}
|
|
1468
1512
|
else {
|
|
1469
1513
|
if (this.focusedOptionIndex() !== -1 && this.overlayVisible()) {
|
|
@@ -1473,7 +1517,6 @@ class Select extends BaseInput {
|
|
|
1473
1517
|
this.overlayVisible() && this.hide(this.filter());
|
|
1474
1518
|
}
|
|
1475
1519
|
}
|
|
1476
|
-
event.stopPropagation();
|
|
1477
1520
|
}
|
|
1478
1521
|
onFirstHiddenFocus(event) {
|
|
1479
1522
|
const focusInputViewChild = this.focusInputViewChild();
|
|
@@ -1503,7 +1546,8 @@ class Select extends BaseInput {
|
|
|
1503
1546
|
if (optionIndex !== -1) {
|
|
1504
1547
|
matched = true;
|
|
1505
1548
|
}
|
|
1506
|
-
|
|
1549
|
+
// an editable Select keeps unmatched text as its value, so it must not fall back to an option
|
|
1550
|
+
if (optionIndex === -1 && this.focusedOptionIndex() === -1 && !this.editable()) {
|
|
1507
1551
|
optionIndex = this.findFirstFocusedOptionIndex();
|
|
1508
1552
|
}
|
|
1509
1553
|
if (optionIndex !== -1) {
|
|
@@ -1546,6 +1590,13 @@ class Select extends BaseInput {
|
|
|
1546
1590
|
focus() {
|
|
1547
1591
|
this.applyFocus();
|
|
1548
1592
|
}
|
|
1593
|
+
onClearIconKeyDown(event) {
|
|
1594
|
+
if (event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') {
|
|
1595
|
+
event.preventDefault();
|
|
1596
|
+
this.clear(event);
|
|
1597
|
+
this.applyFocus();
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1549
1600
|
/**
|
|
1550
1601
|
* Clears the model.
|
|
1551
1602
|
* @group Method
|
|
@@ -1645,7 +1696,8 @@ class Select extends BaseInput {
|
|
|
1645
1696
|
[pBind]="ptm('label')"
|
|
1646
1697
|
[attr.aria-haspopup]="'listbox'"
|
|
1647
1698
|
[attr.placeholder]="modelValue() === undefined || modelValue() === null ? _placeholder() : undefined"
|
|
1648
|
-
[attr.aria-label]="ariaLabel()
|
|
1699
|
+
[attr.aria-label]="ariaLabel()"
|
|
1700
|
+
[attr.aria-labelledby]="ariaLabelledBy()"
|
|
1649
1701
|
(input)="onEditableInput($event)"
|
|
1650
1702
|
(keydown)="onKeyDown($event)"
|
|
1651
1703
|
[pAutoFocus]="autofocus()"
|
|
@@ -1667,10 +1719,20 @@ class Select extends BaseInput {
|
|
|
1667
1719
|
}
|
|
1668
1720
|
@if (isVisibleClearIcon()) {
|
|
1669
1721
|
@if (!clearIconTemplate() && !_clearIconTemplate()) {
|
|
1670
|
-
<svg
|
|
1722
|
+
<svg
|
|
1723
|
+
data-p-icon="times"
|
|
1724
|
+
[class]="cx('clearIcon')"
|
|
1725
|
+
[pBind]="ptm('clearIcon')"
|
|
1726
|
+
(click)="clear($event)"
|
|
1727
|
+
(keydown)="onClearIconKeyDown($event)"
|
|
1728
|
+
role="button"
|
|
1729
|
+
tabindex="0"
|
|
1730
|
+
[attr.aria-label]="clearAriaLabel()"
|
|
1731
|
+
[attr.data-pc-section]="'clearicon'"
|
|
1732
|
+
/>
|
|
1671
1733
|
}
|
|
1672
1734
|
@if (clearIconTemplate() || _clearIconTemplate()) {
|
|
1673
|
-
<span [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" [attr.data-pc-section]="'clearicon'">
|
|
1735
|
+
<span [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" (keydown)="onClearIconKeyDown($event)" role="button" tabindex="0" [attr.aria-label]="clearAriaLabel()" [attr.data-pc-section]="'clearicon'">
|
|
1674
1736
|
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate(); context: { class: cx('clearIcon') }"></ng-template>
|
|
1675
1737
|
</span>
|
|
1676
1738
|
}
|
|
@@ -1683,23 +1745,23 @@ class Select extends BaseInput {
|
|
|
1683
1745
|
}
|
|
1684
1746
|
@if (!loadingIconTemplate() && !_loadingIconTemplate()) {
|
|
1685
1747
|
@if (loadingIcon()) {
|
|
1686
|
-
<span [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon())" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
|
|
1748
|
+
<span [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon())" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
|
|
1687
1749
|
}
|
|
1688
1750
|
@if (!loadingIcon()) {
|
|
1689
|
-
<
|
|
1751
|
+
<svg data-p-icon="spinner" [class]="cx('loadingIcon')" [pBind]="ptm('loadingIcon')" [spin]="true" aria-hidden="true" />
|
|
1690
1752
|
}
|
|
1691
1753
|
}
|
|
1692
1754
|
} @else {
|
|
1693
1755
|
@if (!dropdownIconTemplate() && !_dropdownIconTemplate()) {
|
|
1694
1756
|
@if (dropdownIcon()) {
|
|
1695
|
-
<span [class]="cn(cx('dropdownIcon'), dropdownIcon())" [pBind]="ptm('dropdownIcon')"></span>
|
|
1757
|
+
<span [class]="cn(cx('dropdownIcon'), dropdownIcon())" [pBind]="ptm('dropdownIcon')" aria-hidden="true"></span>
|
|
1696
1758
|
}
|
|
1697
1759
|
@if (!dropdownIcon()) {
|
|
1698
|
-
<svg data-p-icon="chevron-down" [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')" />
|
|
1760
|
+
<svg data-p-icon="chevron-down" [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')" aria-hidden="true" />
|
|
1699
1761
|
}
|
|
1700
1762
|
}
|
|
1701
1763
|
@if (dropdownIconTemplate() || _dropdownIconTemplate()) {
|
|
1702
|
-
<span [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')">
|
|
1764
|
+
<span [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')" aria-hidden="true">
|
|
1703
1765
|
<ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate(); context: { class: cx('dropdownIcon') }"></ng-template>
|
|
1704
1766
|
</span>
|
|
1705
1767
|
}
|
|
@@ -1735,7 +1797,7 @@ class Select extends BaseInput {
|
|
|
1735
1797
|
</span>
|
|
1736
1798
|
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
|
|
1737
1799
|
@if (filter()) {
|
|
1738
|
-
<div [class]="cx('header')" (click)="$event.stopPropagation()" [pBind]="ptm('header')">
|
|
1800
|
+
<div [class]="cx('header')" (click)="$event.stopPropagation()" (keydown)="onFilterTemplateKeyDown($event)" [pBind]="ptm('header')">
|
|
1739
1801
|
@if (filterTemplate() || _filterTemplate()) {
|
|
1740
1802
|
<ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
|
|
1741
1803
|
} @else {
|
|
@@ -1868,13 +1930,13 @@ class Select extends BaseInput {
|
|
|
1868
1930
|
</div>
|
|
1869
1931
|
</ng-template>
|
|
1870
1932
|
</p-overlay>
|
|
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 });
|
|
1933
|
+
`, 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: "component", type: SpinnerIcon, selector: "[data-p-icon=\"spinner\"]" }, { 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 });
|
|
1872
1934
|
}
|
|
1873
1935
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Select, decorators: [{
|
|
1874
1936
|
type: Component,
|
|
1875
1937
|
args: [{
|
|
1876
1938
|
selector: 'p-select',
|
|
1877
|
-
imports: [CommonModule, SelectItem, Overlay, Tooltip, AutoFocus, TimesIcon, ChevronDownIcon, SearchIcon, InputText, IconField, InputIcon, Scroller, SharedModule, BindModule],
|
|
1939
|
+
imports: [CommonModule, SelectItem, Overlay, Tooltip, AutoFocus, TimesIcon, ChevronDownIcon, SearchIcon, SpinnerIcon, InputText, IconField, InputIcon, Scroller, SharedModule, BindModule],
|
|
1878
1940
|
template: `
|
|
1879
1941
|
@if (!editable()) {
|
|
1880
1942
|
<span
|
|
@@ -1926,7 +1988,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1926
1988
|
[pBind]="ptm('label')"
|
|
1927
1989
|
[attr.aria-haspopup]="'listbox'"
|
|
1928
1990
|
[attr.placeholder]="modelValue() === undefined || modelValue() === null ? _placeholder() : undefined"
|
|
1929
|
-
[attr.aria-label]="ariaLabel()
|
|
1991
|
+
[attr.aria-label]="ariaLabel()"
|
|
1992
|
+
[attr.aria-labelledby]="ariaLabelledBy()"
|
|
1930
1993
|
(input)="onEditableInput($event)"
|
|
1931
1994
|
(keydown)="onKeyDown($event)"
|
|
1932
1995
|
[pAutoFocus]="autofocus()"
|
|
@@ -1948,10 +2011,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1948
2011
|
}
|
|
1949
2012
|
@if (isVisibleClearIcon()) {
|
|
1950
2013
|
@if (!clearIconTemplate() && !_clearIconTemplate()) {
|
|
1951
|
-
<svg
|
|
2014
|
+
<svg
|
|
2015
|
+
data-p-icon="times"
|
|
2016
|
+
[class]="cx('clearIcon')"
|
|
2017
|
+
[pBind]="ptm('clearIcon')"
|
|
2018
|
+
(click)="clear($event)"
|
|
2019
|
+
(keydown)="onClearIconKeyDown($event)"
|
|
2020
|
+
role="button"
|
|
2021
|
+
tabindex="0"
|
|
2022
|
+
[attr.aria-label]="clearAriaLabel()"
|
|
2023
|
+
[attr.data-pc-section]="'clearicon'"
|
|
2024
|
+
/>
|
|
1952
2025
|
}
|
|
1953
2026
|
@if (clearIconTemplate() || _clearIconTemplate()) {
|
|
1954
|
-
<span [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" [attr.data-pc-section]="'clearicon'">
|
|
2027
|
+
<span [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" (keydown)="onClearIconKeyDown($event)" role="button" tabindex="0" [attr.aria-label]="clearAriaLabel()" [attr.data-pc-section]="'clearicon'">
|
|
1955
2028
|
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate(); context: { class: cx('clearIcon') }"></ng-template>
|
|
1956
2029
|
</span>
|
|
1957
2030
|
}
|
|
@@ -1964,23 +2037,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1964
2037
|
}
|
|
1965
2038
|
@if (!loadingIconTemplate() && !_loadingIconTemplate()) {
|
|
1966
2039
|
@if (loadingIcon()) {
|
|
1967
|
-
<span [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon())" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
|
|
2040
|
+
<span [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon())" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
|
|
1968
2041
|
}
|
|
1969
2042
|
@if (!loadingIcon()) {
|
|
1970
|
-
<
|
|
2043
|
+
<svg data-p-icon="spinner" [class]="cx('loadingIcon')" [pBind]="ptm('loadingIcon')" [spin]="true" aria-hidden="true" />
|
|
1971
2044
|
}
|
|
1972
2045
|
}
|
|
1973
2046
|
} @else {
|
|
1974
2047
|
@if (!dropdownIconTemplate() && !_dropdownIconTemplate()) {
|
|
1975
2048
|
@if (dropdownIcon()) {
|
|
1976
|
-
<span [class]="cn(cx('dropdownIcon'), dropdownIcon())" [pBind]="ptm('dropdownIcon')"></span>
|
|
2049
|
+
<span [class]="cn(cx('dropdownIcon'), dropdownIcon())" [pBind]="ptm('dropdownIcon')" aria-hidden="true"></span>
|
|
1977
2050
|
}
|
|
1978
2051
|
@if (!dropdownIcon()) {
|
|
1979
|
-
<svg data-p-icon="chevron-down" [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')" />
|
|
2052
|
+
<svg data-p-icon="chevron-down" [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')" aria-hidden="true" />
|
|
1980
2053
|
}
|
|
1981
2054
|
}
|
|
1982
2055
|
@if (dropdownIconTemplate() || _dropdownIconTemplate()) {
|
|
1983
|
-
<span [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')">
|
|
2056
|
+
<span [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')" aria-hidden="true">
|
|
1984
2057
|
<ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate(); context: { class: cx('dropdownIcon') }"></ng-template>
|
|
1985
2058
|
</span>
|
|
1986
2059
|
}
|
|
@@ -2016,7 +2089,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
2016
2089
|
</span>
|
|
2017
2090
|
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
|
|
2018
2091
|
@if (filter()) {
|
|
2019
|
-
<div [class]="cx('header')" (click)="$event.stopPropagation()" [pBind]="ptm('header')">
|
|
2092
|
+
<div [class]="cx('header')" (click)="$event.stopPropagation()" (keydown)="onFilterTemplateKeyDown($event)" [pBind]="ptm('header')">
|
|
2020
2093
|
@if (filterTemplate() || _filterTemplate()) {
|
|
2021
2094
|
<ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
|
|
2022
2095
|
} @else {
|