@gravionlabs/helix-core 22.0.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/LICENSE.md +77 -0
- package/README.md +35 -0
- package/VENDOR.md +74 -0
- package/fesm2022/gravionlabs-helix-core-accordion.mjs +684 -0
- package/fesm2022/gravionlabs-helix-core-accordion.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-animateonscroll.mjs +167 -0
- package/fesm2022/gravionlabs-helix-core-animateonscroll.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-api.mjs +839 -0
- package/fesm2022/gravionlabs-helix-core-api.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-autocomplete.mjs +1956 -0
- package/fesm2022/gravionlabs-helix-core-autocomplete.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-autofocus.mjs +80 -0
- package/fesm2022/gravionlabs-helix-core-autofocus.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-avatar.mjs +265 -0
- package/fesm2022/gravionlabs-helix-core-avatar.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-avatargroup.mjs +88 -0
- package/fesm2022/gravionlabs-helix-core-avatargroup.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-badge.mjs +484 -0
- package/fesm2022/gravionlabs-helix-core-badge.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-base.mjs +237 -0
- package/fesm2022/gravionlabs-helix-core-base.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-basecomponent.mjs +445 -0
- package/fesm2022/gravionlabs-helix-core-basecomponent.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-baseeditableholder.mjs +70 -0
- package/fesm2022/gravionlabs-helix-core-baseeditableholder.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-baseinput.mjs +95 -0
- package/fesm2022/gravionlabs-helix-core-baseinput.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-basemodelholder.mjs +27 -0
- package/fesm2022/gravionlabs-helix-core-basemodelholder.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-bind.mjs +99 -0
- package/fesm2022/gravionlabs-helix-core-bind.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-blockui.mjs +244 -0
- package/fesm2022/gravionlabs-helix-core-blockui.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-breadcrumb.mjs +285 -0
- package/fesm2022/gravionlabs-helix-core-breadcrumb.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-button.mjs +1494 -0
- package/fesm2022/gravionlabs-helix-core-button.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-buttongroup.mjs +126 -0
- package/fesm2022/gravionlabs-helix-core-buttongroup.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-card.mjs +246 -0
- package/fesm2022/gravionlabs-helix-core-card.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-carousel.mjs +1017 -0
- package/fesm2022/gravionlabs-helix-core-carousel.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-cascadeselect.mjs +1615 -0
- package/fesm2022/gravionlabs-helix-core-cascadeselect.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-chart.mjs +218 -0
- package/fesm2022/gravionlabs-helix-core-chart.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-checkbox.mjs +500 -0
- package/fesm2022/gravionlabs-helix-core-checkbox.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-chip.mjs +309 -0
- package/fesm2022/gravionlabs-helix-core-chip.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-classnames.mjs +49 -0
- package/fesm2022/gravionlabs-helix-core-classnames.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-colorpicker.mjs +781 -0
- package/fesm2022/gravionlabs-helix-core-colorpicker.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-config.mjs +309 -0
- package/fesm2022/gravionlabs-helix-core-config.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-confirmdialog.mjs +570 -0
- package/fesm2022/gravionlabs-helix-core-confirmdialog.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-confirmpopup.mjs +619 -0
- package/fesm2022/gravionlabs-helix-core-confirmpopup.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-contextmenu.mjs +1175 -0
- package/fesm2022/gravionlabs-helix-core-contextmenu.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-dataview.mjs +587 -0
- package/fesm2022/gravionlabs-helix-core-dataview.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-datepicker.mjs +3795 -0
- package/fesm2022/gravionlabs-helix-core-datepicker.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-dialog.mjs +1158 -0
- package/fesm2022/gravionlabs-helix-core-dialog.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-divider.mjs +222 -0
- package/fesm2022/gravionlabs-helix-core-divider.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-dock.mjs +504 -0
- package/fesm2022/gravionlabs-helix-core-dock.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-dom.mjs +778 -0
- package/fesm2022/gravionlabs-helix-core-dom.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-dragdrop.mjs +303 -0
- package/fesm2022/gravionlabs-helix-core-dragdrop.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-drawer.mjs +784 -0
- package/fesm2022/gravionlabs-helix-core-drawer.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-dynamicdialog.mjs +932 -0
- package/fesm2022/gravionlabs-helix-core-dynamicdialog.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-editor.mjs +1370 -0
- package/fesm2022/gravionlabs-helix-core-editor.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-fieldset.mjs +372 -0
- package/fesm2022/gravionlabs-helix-core-fieldset.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-fileupload.mjs +1085 -0
- package/fesm2022/gravionlabs-helix-core-fileupload.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-firsterror.mjs +24 -0
- package/fesm2022/gravionlabs-helix-core-firsterror.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-floatlabel.mjs +207 -0
- package/fesm2022/gravionlabs-helix-core-floatlabel.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-fluid.mjs +78 -0
- package/fesm2022/gravionlabs-helix-core-fluid.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-focustrap.mjs +105 -0
- package/fesm2022/gravionlabs-helix-core-focustrap.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-galleria.mjs +1930 -0
- package/fesm2022/gravionlabs-helix-core-galleria.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-iconfield.mjs +147 -0
- package/fesm2022/gravionlabs-helix-core-iconfield.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-angledoubledown.mjs +38 -0
- package/fesm2022/gravionlabs-helix-core-icons-angledoubledown.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-angledoubleleft.mjs +38 -0
- package/fesm2022/gravionlabs-helix-core-icons-angledoubleleft.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-angledoubleright.mjs +38 -0
- package/fesm2022/gravionlabs-helix-core-icons-angledoubleright.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-angledoubleup.mjs +38 -0
- package/fesm2022/gravionlabs-helix-core-icons-angledoubleup.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-angledown.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-angledown.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-angleleft.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-angleleft.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-angleright.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-angleright.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-angleup.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-angleup.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-arrowdown.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-arrowdown.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-arrowdownleft.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-arrowdownleft.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-arrowdownright.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-arrowdownright.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-arrowleft.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-arrowleft.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-arrowright.mjs +38 -0
- package/fesm2022/gravionlabs-helix-core-icons-arrowright.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-arrowup.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-arrowup.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-ban.mjs +53 -0
- package/fesm2022/gravionlabs-helix-core-icons-ban.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-bars.mjs +38 -0
- package/fesm2022/gravionlabs-helix-core-icons-bars.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-baseicon.mjs +100 -0
- package/fesm2022/gravionlabs-helix-core-icons-baseicon.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-blank.mjs +24 -0
- package/fesm2022/gravionlabs-helix-core-icons-blank.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-calendar.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-calendar.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-caretleft.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-caretleft.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-caretright.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-caretright.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-check.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-check.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-chevrondown.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-chevrondown.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-chevronleft.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-chevronleft.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-chevronright.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-chevronright.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-chevronup.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-chevronup.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-exclamationtriangle.mjs +69 -0
- package/fesm2022/gravionlabs-helix-core-icons-exclamationtriangle.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-eye.mjs +38 -0
- package/fesm2022/gravionlabs-helix-core-icons-eye.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-eyeslash.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-eyeslash.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-filter.mjs +53 -0
- package/fesm2022/gravionlabs-helix-core-icons-filter.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-filterfill.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-filterfill.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-filterslash.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-filterslash.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-home.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-home.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-infocircle.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-infocircle.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-minus.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-minus.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-pencil.mjs +53 -0
- package/fesm2022/gravionlabs-helix-core-icons-pencil.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-plus.mjs +53 -0
- package/fesm2022/gravionlabs-helix-core-icons-plus.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-refresh.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-refresh.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-search.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-search.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-searchminus.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-searchminus.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-searchplus.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-searchplus.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-sortalt.mjs +65 -0
- package/fesm2022/gravionlabs-helix-core-icons-sortalt.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-sortamountdown.mjs +53 -0
- package/fesm2022/gravionlabs-helix-core-icons-sortamountdown.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-sortamountupalt.mjs +53 -0
- package/fesm2022/gravionlabs-helix-core-icons-sortamountupalt.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-spinner.mjs +53 -0
- package/fesm2022/gravionlabs-helix-core-icons-spinner.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-star.mjs +53 -0
- package/fesm2022/gravionlabs-helix-core-icons-star.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-starfill.mjs +53 -0
- package/fesm2022/gravionlabs-helix-core-icons-starfill.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-thlarge.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-thlarge.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-times.mjs +34 -0
- package/fesm2022/gravionlabs-helix-core-icons-times.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-timescircle.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-timescircle.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-trash.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-trash.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-undo.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-undo.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-upload.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-upload.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-windowmaximize.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-windowmaximize.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons-windowminimize.mjs +57 -0
- package/fesm2022/gravionlabs-helix-core-icons-windowminimize.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-icons.mjs +63 -0
- package/fesm2022/gravionlabs-helix-core-icons.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-iftalabel.mjs +139 -0
- package/fesm2022/gravionlabs-helix-core-iftalabel.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-image.mjs +690 -0
- package/fesm2022/gravionlabs-helix-core-image.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-imagecompare.mjs +255 -0
- package/fesm2022/gravionlabs-helix-core-imagecompare.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-inplace.mjs +283 -0
- package/fesm2022/gravionlabs-helix-core-inplace.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-inputgroup.mjs +232 -0
- package/fesm2022/gravionlabs-helix-core-inputgroup.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-inputgroupaddon.mjs +75 -0
- package/fesm2022/gravionlabs-helix-core-inputgroupaddon.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-inputicon.mjs +72 -0
- package/fesm2022/gravionlabs-helix-core-inputicon.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-inputmask.mjs +1375 -0
- package/fesm2022/gravionlabs-helix-core-inputmask.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-inputnumber.mjs +1513 -0
- package/fesm2022/gravionlabs-helix-core-inputnumber.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-inputotp.mjs +391 -0
- package/fesm2022/gravionlabs-helix-core-inputotp.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-inputtext.mjs +275 -0
- package/fesm2022/gravionlabs-helix-core-inputtext.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-keyfilter.mjs +261 -0
- package/fesm2022/gravionlabs-helix-core-keyfilter.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-knob.mjs +441 -0
- package/fesm2022/gravionlabs-helix-core-knob.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-listbox.mjs +1567 -0
- package/fesm2022/gravionlabs-helix-core-listbox.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-megamenu.mjs +1398 -0
- package/fesm2022/gravionlabs-helix-core-megamenu.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-menu.mjs +854 -0
- package/fesm2022/gravionlabs-helix-core-menu.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-menubar.mjs +1259 -0
- package/fesm2022/gravionlabs-helix-core-menubar.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-message.mjs +608 -0
- package/fesm2022/gravionlabs-helix-core-message.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-metergroup.mjs +417 -0
- package/fesm2022/gravionlabs-helix-core-metergroup.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-motion.mjs +706 -0
- package/fesm2022/gravionlabs-helix-core-motion.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-multiselect.mjs +2106 -0
- package/fesm2022/gravionlabs-helix-core-multiselect.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-orderlist.mjs +800 -0
- package/fesm2022/gravionlabs-helix-core-orderlist.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-organizationchart.mjs +497 -0
- package/fesm2022/gravionlabs-helix-core-organizationchart.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-overlay.mjs +686 -0
- package/fesm2022/gravionlabs-helix-core-overlay.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-overlaybadge.mjs +125 -0
- package/fesm2022/gravionlabs-helix-core-overlaybadge.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-paginator.mjs +670 -0
- package/fesm2022/gravionlabs-helix-core-paginator.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-panel.mjs +416 -0
- package/fesm2022/gravionlabs-helix-core-panel.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-panelmenu.mjs +1070 -0
- package/fesm2022/gravionlabs-helix-core-panelmenu.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-passthrough.mjs +21 -0
- package/fesm2022/gravionlabs-helix-core-passthrough.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-password.mjs +1047 -0
- package/fesm2022/gravionlabs-helix-core-password.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-picklist.mjs +1393 -0
- package/fesm2022/gravionlabs-helix-core-picklist.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-popover.mjs +507 -0
- package/fesm2022/gravionlabs-helix-core-popover.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-progressbar.mjs +292 -0
- package/fesm2022/gravionlabs-helix-core-progressbar.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-progressspinner.mjs +199 -0
- package/fesm2022/gravionlabs-helix-core-progressspinner.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-radiobutton.mjs +450 -0
- package/fesm2022/gravionlabs-helix-core-radiobutton.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-rating.mjs +356 -0
- package/fesm2022/gravionlabs-helix-core-rating.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-ripple.mjs +217 -0
- package/fesm2022/gravionlabs-helix-core-ripple.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-scroller.mjs +1040 -0
- package/fesm2022/gravionlabs-helix-core-scroller.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-scrollpanel.mjs +535 -0
- package/fesm2022/gravionlabs-helix-core-scrollpanel.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-scrolltop.mjs +294 -0
- package/fesm2022/gravionlabs-helix-core-scrolltop.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-select.mjs +1907 -0
- package/fesm2022/gravionlabs-helix-core-select.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-selectbutton.mjs +390 -0
- package/fesm2022/gravionlabs-helix-core-selectbutton.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-skeleton.mjs +214 -0
- package/fesm2022/gravionlabs-helix-core-skeleton.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-slider.mjs +730 -0
- package/fesm2022/gravionlabs-helix-core-slider.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-speeddial.mjs +775 -0
- package/fesm2022/gravionlabs-helix-core-speeddial.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-splitbutton.mjs +429 -0
- package/fesm2022/gravionlabs-helix-core-splitbutton.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-splitter.mjs +597 -0
- package/fesm2022/gravionlabs-helix-core-splitter.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-stepper.mjs +853 -0
- package/fesm2022/gravionlabs-helix-core-stepper.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-steps.mjs +393 -0
- package/fesm2022/gravionlabs-helix-core-steps.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-styleclass.mjs +345 -0
- package/fesm2022/gravionlabs-helix-core-styleclass.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-table.mjs +6333 -0
- package/fesm2022/gravionlabs-helix-core-table.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-tabs.mjs +900 -0
- package/fesm2022/gravionlabs-helix-core-tabs.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-tag.mjs +212 -0
- package/fesm2022/gravionlabs-helix-core-tag.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-terminal.mjs +259 -0
- package/fesm2022/gravionlabs-helix-core-terminal.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-textarea.mjs +305 -0
- package/fesm2022/gravionlabs-helix-core-textarea.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-themes-aura.mjs +5649 -0
- package/fesm2022/gravionlabs-helix-core-themes-aura.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-themes-lara.mjs +5812 -0
- package/fesm2022/gravionlabs-helix-core-themes-lara.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-themes-nora.mjs +5570 -0
- package/fesm2022/gravionlabs-helix-core-themes-nora.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-themes-types.mjs +700 -0
- package/fesm2022/gravionlabs-helix-core-themes-types.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-themes.mjs +16 -0
- package/fesm2022/gravionlabs-helix-core-themes.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-tieredmenu.mjs +1201 -0
- package/fesm2022/gravionlabs-helix-core-tieredmenu.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-timeline.mjs +346 -0
- package/fesm2022/gravionlabs-helix-core-timeline.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-toast.mjs +807 -0
- package/fesm2022/gravionlabs-helix-core-toast.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-togglebutton.mjs +451 -0
- package/fesm2022/gravionlabs-helix-core-togglebutton.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-toggleswitch.mjs +372 -0
- package/fesm2022/gravionlabs-helix-core-toggleswitch.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-toolbar.mjs +174 -0
- package/fesm2022/gravionlabs-helix-core-toolbar.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-tooltip.mjs +860 -0
- package/fesm2022/gravionlabs-helix-core-tooltip.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-tree.mjs +1860 -0
- package/fesm2022/gravionlabs-helix-core-tree.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-treeselect.mjs +1178 -0
- package/fesm2022/gravionlabs-helix-core-treeselect.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-treetable.mjs +4199 -0
- package/fesm2022/gravionlabs-helix-core-treetable.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-ts-helpers.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-ts-helpers.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-accordion.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-accordion.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-autocomplete.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-autocomplete.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-avatar.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-avatar.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-avatargroup.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-avatargroup.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-badge.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-badge.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-blockui.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-blockui.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-breadcrumb.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-breadcrumb.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-button.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-button.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-card.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-card.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-carousel.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-carousel.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-cascadeselect.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-cascadeselect.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-chart.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-chart.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-checkbox.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-checkbox.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-chip.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-chip.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-colorpicker.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-colorpicker.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-confirmdialog.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-confirmdialog.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-confirmpopup.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-confirmpopup.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-contextmenu.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-contextmenu.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-dataview.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-dataview.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-datepicker.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-datepicker.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-dialog.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-dialog.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-divider.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-divider.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-dock.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-dock.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-drawer.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-drawer.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-editor.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-editor.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-fieldset.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-fieldset.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-fileupload.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-fileupload.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-floatlabel.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-floatlabel.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-fluid.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-fluid.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-galleria.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-galleria.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-iconfield.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-iconfield.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-iftalabel.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-iftalabel.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-image.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-image.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-imagecompare.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-imagecompare.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-inplace.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-inplace.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-inputgroup.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-inputgroup.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-inputgroupaddon.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-inputgroupaddon.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-inputicon.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-inputicon.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-inputmask.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-inputmask.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-inputnumber.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-inputnumber.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-inputotp.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-inputotp.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-inputtext.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-inputtext.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-knob.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-knob.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-listbox.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-listbox.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-megamenu.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-megamenu.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-menu.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-menu.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-menubar.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-menubar.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-message.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-message.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-metergroup.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-metergroup.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-motion.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-motion.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-multiselect.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-multiselect.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-orderlist.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-orderlist.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-organizationchart.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-organizationchart.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-overlay.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-overlay.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-overlaybadge.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-overlaybadge.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-paginator.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-paginator.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-panel.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-panel.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-panelmenu.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-panelmenu.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-password.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-password.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-picklist.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-picklist.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-popover.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-popover.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-progressbar.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-progressbar.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-progressspinner.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-progressspinner.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-radiobutton.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-radiobutton.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-rating.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-rating.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-scroller.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-scroller.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-scrollpanel.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-scrollpanel.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-scrolltop.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-scrolltop.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-select.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-select.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-selectbutton.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-selectbutton.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-skeleton.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-skeleton.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-slider.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-slider.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-speeddial.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-speeddial.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-splitbutton.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-splitbutton.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-splitter.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-splitter.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-stepper.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-stepper.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-table.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-table.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-tabs.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-tabs.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-tag.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-tag.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-terminal.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-terminal.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-textarea.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-textarea.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-tieredmenu.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-tieredmenu.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-timeline.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-timeline.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-toast.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-toast.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-togglebutton.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-togglebutton.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-toggleswitch.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-toggleswitch.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-toolbar.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-toolbar.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-tooltip.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-tooltip.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-tree.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-tree.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-treeselect.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-treeselect.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-types-treetable.mjs +4 -0
- package/fesm2022/gravionlabs-helix-core-types-treetable.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-uix-motion.mjs +304 -0
- package/fesm2022/gravionlabs-helix-core-uix-motion.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-uix-styled.mjs +871 -0
- package/fesm2022/gravionlabs-helix-core-uix-styled.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-uix-utils.mjs +1839 -0
- package/fesm2022/gravionlabs-helix-core-uix-utils.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-usestyle.mjs +54 -0
- package/fesm2022/gravionlabs-helix-core-usestyle.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-utils.mjs +376 -0
- package/fesm2022/gravionlabs-helix-core-utils.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core-validators.mjs +99 -0
- package/fesm2022/gravionlabs-helix-core-validators.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-core.mjs +6 -0
- package/fesm2022/gravionlabs-helix-core.mjs.map +1 -0
- package/package.json +1127 -0
- package/types/gravionlabs-helix-core-accordion.d.ts +289 -0
- package/types/gravionlabs-helix-core-animateonscroll.d.ts +68 -0
- package/types/gravionlabs-helix-core-api.d.ts +1976 -0
- package/types/gravionlabs-helix-core-autocomplete.d.ts +765 -0
- package/types/gravionlabs-helix-core-autofocus.d.ts +31 -0
- package/types/gravionlabs-helix-core-avatar.d.ts +138 -0
- package/types/gravionlabs-helix-core-avatargroup.d.ts +63 -0
- package/types/gravionlabs-helix-core-badge.d.ts +182 -0
- package/types/gravionlabs-helix-core-base.d.ts +54 -0
- package/types/gravionlabs-helix-core-basecomponent.d.ts +175 -0
- package/types/gravionlabs-helix-core-baseeditableholder.d.ts +45 -0
- package/types/gravionlabs-helix-core-baseinput.d.ts +73 -0
- package/types/gravionlabs-helix-core-basemodelholder.d.ts +12 -0
- package/types/gravionlabs-helix-core-bind.d.ts +38 -0
- package/types/gravionlabs-helix-core-blockui.d.ts +106 -0
- package/types/gravionlabs-helix-core-breadcrumb.d.ts +148 -0
- package/types/gravionlabs-helix-core-button.d.ts +465 -0
- package/types/gravionlabs-helix-core-buttongroup.d.ts +44 -0
- package/types/gravionlabs-helix-core-card.d.ts +151 -0
- package/types/gravionlabs-helix-core-carousel.d.ts +376 -0
- package/types/gravionlabs-helix-core-cascadeselect.d.ts +620 -0
- package/types/gravionlabs-helix-core-chart.d.ts +130 -0
- package/types/gravionlabs-helix-core-checkbox.d.ts +226 -0
- package/types/gravionlabs-helix-core-chip.d.ts +162 -0
- package/types/gravionlabs-helix-core-classnames.d.ts +32 -0
- package/types/gravionlabs-helix-core-colorpicker.d.ts +311 -0
- package/types/gravionlabs-helix-core-config.d.ts +268 -0
- package/types/gravionlabs-helix-core-confirmdialog.d.ts +340 -0
- package/types/gravionlabs-helix-core-confirmpopup.d.ts +233 -0
- package/types/gravionlabs-helix-core-contextmenu.d.ts +370 -0
- package/types/gravionlabs-helix-core-dataview.d.ts +364 -0
- package/types/gravionlabs-helix-core-datepicker.d.ts +969 -0
- package/types/gravionlabs-helix-core-dialog.d.ts +530 -0
- package/types/gravionlabs-helix-core-divider.d.ts +121 -0
- package/types/gravionlabs-helix-core-dock.d.ts +196 -0
- package/types/gravionlabs-helix-core-dom.d.ts +109 -0
- package/types/gravionlabs-helix-core-dragdrop.d.ts +117 -0
- package/types/gravionlabs-helix-core-drawer.d.ts +293 -0
- package/types/gravionlabs-helix-core-dynamicdialog.d.ts +554 -0
- package/types/gravionlabs-helix-core-editor.d.ts +188 -0
- package/types/gravionlabs-helix-core-fieldset.d.ts +185 -0
- package/types/gravionlabs-helix-core-fileupload.d.ts +549 -0
- package/types/gravionlabs-helix-core-firsterror.d.ts +11 -0
- package/types/gravionlabs-helix-core-floatlabel.d.ts +67 -0
- package/types/gravionlabs-helix-core-fluid.d.ts +54 -0
- package/types/gravionlabs-helix-core-focustrap.d.ts +35 -0
- package/types/gravionlabs-helix-core-galleria.d.ts +647 -0
- package/types/gravionlabs-helix-core-iconfield.d.ts +72 -0
- package/types/gravionlabs-helix-core-icons-angledoubledown.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-angledoubleleft.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-angledoubleright.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-angledoubleup.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-angledown.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-angleleft.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-angleright.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-angleup.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-arrowdown.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-arrowdownleft.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-arrowdownright.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-arrowleft.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-arrowright.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-arrowup.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-ban.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-bars.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-baseicon.d.ts +32 -0
- package/types/gravionlabs-helix-core-icons-blank.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-calendar.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-caretleft.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-caretright.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-check.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-chevrondown.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-chevronleft.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-chevronright.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-chevronup.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-exclamationtriangle.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-eye.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-eyeslash.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-filter.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-filterfill.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-filterslash.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-home.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-infocircle.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-minus.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-pencil.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-plus.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-refresh.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-search.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-searchminus.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-searchplus.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-sortalt.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-sortamountdown.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-sortamountupalt.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-spinner.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-star.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-starfill.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-thlarge.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-times.d.ts +9 -0
- package/types/gravionlabs-helix-core-icons-timescircle.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-trash.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-undo.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-upload.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-windowmaximize.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons-windowminimize.d.ts +11 -0
- package/types/gravionlabs-helix-core-icons.d.ts +53 -0
- package/types/gravionlabs-helix-core-iftalabel.d.ts +58 -0
- package/types/gravionlabs-helix-core-image.d.ts +347 -0
- package/types/gravionlabs-helix-core-imagecompare.d.ts +99 -0
- package/types/gravionlabs-helix-core-inplace.d.ts +166 -0
- package/types/gravionlabs-helix-core-inputgroup.d.ts +65 -0
- package/types/gravionlabs-helix-core-inputgroupaddon.d.ts +49 -0
- package/types/gravionlabs-helix-core-inputicon.d.ts +44 -0
- package/types/gravionlabs-helix-core-inputmask.d.ts +373 -0
- package/types/gravionlabs-helix-core-inputnumber.d.ts +425 -0
- package/types/gravionlabs-helix-core-inputotp.d.ts +175 -0
- package/types/gravionlabs-helix-core-inputtext.d.ts +117 -0
- package/types/gravionlabs-helix-core-keyfilter.d.ts +58 -0
- package/types/gravionlabs-helix-core-knob.d.ts +203 -0
- package/types/gravionlabs-helix-core-listbox.d.ts +654 -0
- package/types/gravionlabs-helix-core-megamenu.d.ts +383 -0
- package/types/gravionlabs-helix-core-menu.d.ts +361 -0
- package/types/gravionlabs-helix-core-menubar.d.ts +380 -0
- package/types/gravionlabs-helix-core-message.d.ts +210 -0
- package/types/gravionlabs-helix-core-metergroup.d.ts +208 -0
- package/types/gravionlabs-helix-core-motion.d.ts +398 -0
- package/types/gravionlabs-helix-core-multiselect.d.ts +871 -0
- package/types/gravionlabs-helix-core-orderlist.d.ts +366 -0
- package/types/gravionlabs-helix-core-organizationchart.d.ts +221 -0
- package/types/gravionlabs-helix-core-overlay.d.ts +314 -0
- package/types/gravionlabs-helix-core-overlaybadge.d.ts +77 -0
- package/types/gravionlabs-helix-core-paginator.d.ts +351 -0
- package/types/gravionlabs-helix-core-panel.d.ts +241 -0
- package/types/gravionlabs-helix-core-panelmenu.d.ts +359 -0
- package/types/gravionlabs-helix-core-passthrough.d.ts +14 -0
- package/types/gravionlabs-helix-core-password.d.ts +487 -0
- package/types/gravionlabs-helix-core-picklist.d.ts +662 -0
- package/types/gravionlabs-helix-core-popover.d.ts +197 -0
- package/types/gravionlabs-helix-core-progressbar.d.ts +121 -0
- package/types/gravionlabs-helix-core-progressspinner.d.ts +91 -0
- package/types/gravionlabs-helix-core-radiobutton.d.ts +190 -0
- package/types/gravionlabs-helix-core-rating.d.ts +193 -0
- package/types/gravionlabs-helix-core-ripple.d.ts +63 -0
- package/types/gravionlabs-helix-core-scroller.d.ts +399 -0
- package/types/gravionlabs-helix-core-scrollpanel.d.ts +156 -0
- package/types/gravionlabs-helix-core-scrolltop.d.ts +155 -0
- package/types/gravionlabs-helix-core-select.d.ts +765 -0
- package/types/gravionlabs-helix-core-selectbutton.d.ts +180 -0
- package/types/gravionlabs-helix-core-skeleton.d.ts +103 -0
- package/types/gravionlabs-helix-core-slider.d.ts +216 -0
- package/types/gravionlabs-helix-core-speeddial.d.ts +408 -0
- package/types/gravionlabs-helix-core-splitbutton.d.ts +283 -0
- package/types/gravionlabs-helix-core-splitter.d.ts +208 -0
- package/types/gravionlabs-helix-core-stepper.d.ts +337 -0
- package/types/gravionlabs-helix-core-steps.d.ts +149 -0
- package/types/gravionlabs-helix-core-styleclass.d.ts +112 -0
- package/types/gravionlabs-helix-core-table.d.ts +1995 -0
- package/types/gravionlabs-helix-core-tabs.d.ts +359 -0
- package/types/gravionlabs-helix-core-tag.d.ts +113 -0
- package/types/gravionlabs-helix-core-terminal.d.ts +140 -0
- package/types/gravionlabs-helix-core-textarea.d.ts +125 -0
- package/types/gravionlabs-helix-core-themes-aura.d.ts +965 -0
- package/types/gravionlabs-helix-core-themes-lara.d.ts +978 -0
- package/types/gravionlabs-helix-core-themes-nora.d.ts +962 -0
- package/types/gravionlabs-helix-core-themes-types.d.ts +20358 -0
- package/types/gravionlabs-helix-core-themes.d.ts +11 -0
- package/types/gravionlabs-helix-core-tieredmenu.d.ts +414 -0
- package/types/gravionlabs-helix-core-timeline.d.ts +140 -0
- package/types/gravionlabs-helix-core-toast.d.ts +293 -0
- package/types/gravionlabs-helix-core-togglebutton.d.ts +203 -0
- package/types/gravionlabs-helix-core-toggleswitch.d.ts +165 -0
- package/types/gravionlabs-helix-core-toolbar.d.ts +105 -0
- package/types/gravionlabs-helix-core-tooltip.d.ts +273 -0
- package/types/gravionlabs-helix-core-tree.d.ts +646 -0
- package/types/gravionlabs-helix-core-treeselect.d.ts +574 -0
- package/types/gravionlabs-helix-core-treetable.d.ts +1236 -0
- package/types/gravionlabs-helix-core-ts-helpers.d.ts +6 -0
- package/types/gravionlabs-helix-core-types-accordion.d.ts +97 -0
- package/types/gravionlabs-helix-core-types-autocomplete.d.ts +312 -0
- package/types/gravionlabs-helix-core-types-avatar.d.ts +40 -0
- package/types/gravionlabs-helix-core-types-avatargroup.d.ts +28 -0
- package/types/gravionlabs-helix-core-types-badge.d.ts +26 -0
- package/types/gravionlabs-helix-core-types-blockui.d.ts +39 -0
- package/types/gravionlabs-helix-core-types-breadcrumb.d.ts +96 -0
- package/types/gravionlabs-helix-core-types-button.d.ts +124 -0
- package/types/gravionlabs-helix-core-types-card.d.ts +75 -0
- package/types/gravionlabs-helix-core-types-carousel.d.ts +143 -0
- package/types/gravionlabs-helix-core-types-cascadeselect.d.ts +215 -0
- package/types/gravionlabs-helix-core-types-chart.d.ts +32 -0
- package/types/gravionlabs-helix-core-types-checkbox.d.ts +81 -0
- package/types/gravionlabs-helix-core-types-chip.d.ts +71 -0
- package/types/gravionlabs-helix-core-types-colorpicker.d.ts +78 -0
- package/types/gravionlabs-helix-core-types-confirmdialog.d.ts +147 -0
- package/types/gravionlabs-helix-core-types-confirmpopup.d.ts +105 -0
- package/types/gravionlabs-helix-core-types-contextmenu.d.ts +102 -0
- package/types/gravionlabs-helix-core-types-dataview.d.ts +253 -0
- package/types/gravionlabs-helix-core-types-datepicker.d.ts +521 -0
- package/types/gravionlabs-helix-core-types-dialog.d.ts +107 -0
- package/types/gravionlabs-helix-core-types-divider.d.ts +28 -0
- package/types/gravionlabs-helix-core-types-dock.d.ts +70 -0
- package/types/gravionlabs-helix-core-types-drawer.d.ts +82 -0
- package/types/gravionlabs-helix-core-types-editor.d.ts +210 -0
- package/types/gravionlabs-helix-core-types-fieldset.d.ts +101 -0
- package/types/gravionlabs-helix-core-types-fileupload.d.ts +360 -0
- package/types/gravionlabs-helix-core-types-floatlabel.d.ts +26 -0
- package/types/gravionlabs-helix-core-types-fluid.d.ts +28 -0
- package/types/gravionlabs-helix-core-types-galleria.d.ts +250 -0
- package/types/gravionlabs-helix-core-types-iconfield.d.ts +26 -0
- package/types/gravionlabs-helix-core-types-iftalabel.d.ts +26 -0
- package/types/gravionlabs-helix-core-types-image.d.ts +144 -0
- package/types/gravionlabs-helix-core-types-imagecompare.d.ts +43 -0
- package/types/gravionlabs-helix-core-types-inplace.d.ts +72 -0
- package/types/gravionlabs-helix-core-types-inputgroup.d.ts +28 -0
- package/types/gravionlabs-helix-core-types-inputgroupaddon.d.ts +28 -0
- package/types/gravionlabs-helix-core-types-inputicon.d.ts +26 -0
- package/types/gravionlabs-helix-core-types-inputmask.d.ts +56 -0
- package/types/gravionlabs-helix-core-types-inputnumber.d.ts +95 -0
- package/types/gravionlabs-helix-core-types-inputotp.d.ts +101 -0
- package/types/gravionlabs-helix-core-types-inputtext.d.ts +24 -0
- package/types/gravionlabs-helix-core-types-knob.d.ts +40 -0
- package/types/gravionlabs-helix-core-types-listbox.d.ts +359 -0
- package/types/gravionlabs-helix-core-types-megamenu.d.ts +138 -0
- package/types/gravionlabs-helix-core-types-menu.d.ts +114 -0
- package/types/gravionlabs-helix-core-types-menubar.d.ts +124 -0
- package/types/gravionlabs-helix-core-types-message.d.ts +87 -0
- package/types/gravionlabs-helix-core-types-metergroup.d.ts +176 -0
- package/types/gravionlabs-helix-core-types-motion.d.ts +26 -0
- package/types/gravionlabs-helix-core-types-multiselect.d.ts +414 -0
- package/types/gravionlabs-helix-core-types-orderlist.d.ts +173 -0
- package/types/gravionlabs-helix-core-types-organizationchart.d.ts +138 -0
- package/types/gravionlabs-helix-core-types-overlay.d.ts +60 -0
- package/types/gravionlabs-helix-core-types-overlaybadge.d.ts +34 -0
- package/types/gravionlabs-helix-core-types-paginator.d.ts +167 -0
- package/types/gravionlabs-helix-core-types-panel.d.ts +129 -0
- package/types/gravionlabs-helix-core-types-panelmenu.d.ts +131 -0
- package/types/gravionlabs-helix-core-types-password.d.ts +120 -0
- package/types/gravionlabs-helix-core-types-picklist.d.ts +348 -0
- package/types/gravionlabs-helix-core-types-popover.d.ts +59 -0
- package/types/gravionlabs-helix-core-types-progressbar.d.ts +58 -0
- package/types/gravionlabs-helix-core-types-progressspinner.d.ts +36 -0
- package/types/gravionlabs-helix-core-types-radiobutton.d.ts +51 -0
- package/types/gravionlabs-helix-core-types-rating.d.ts +94 -0
- package/types/gravionlabs-helix-core-types-scroller.d.ts +231 -0
- package/types/gravionlabs-helix-core-types-scrollpanel.d.ts +51 -0
- package/types/gravionlabs-helix-core-types-scrolltop.d.ts +61 -0
- package/types/gravionlabs-helix-core-types-select.d.ts +319 -0
- package/types/gravionlabs-helix-core-types-selectbutton.d.ts +92 -0
- package/types/gravionlabs-helix-core-types-skeleton.d.ts +28 -0
- package/types/gravionlabs-helix-core-types-slider.d.ts +78 -0
- package/types/gravionlabs-helix-core-types-speeddial.d.ts +100 -0
- package/types/gravionlabs-helix-core-types-splitbutton.d.ts +70 -0
- package/types/gravionlabs-helix-core-types-splitter.d.ts +70 -0
- package/types/gravionlabs-helix-core-types-stepper.d.ts +162 -0
- package/types/gravionlabs-helix-core-types-table.d.ts +893 -0
- package/types/gravionlabs-helix-core-types-tabs.d.ts +119 -0
- package/types/gravionlabs-helix-core-types-tag.d.ts +47 -0
- package/types/gravionlabs-helix-core-types-terminal.d.ts +60 -0
- package/types/gravionlabs-helix-core-types-textarea.d.ts +28 -0
- package/types/gravionlabs-helix-core-types-tieredmenu.d.ts +95 -0
- package/types/gravionlabs-helix-core-types-timeline.d.ts +85 -0
- package/types/gravionlabs-helix-core-types-toast.d.ts +131 -0
- package/types/gravionlabs-helix-core-types-togglebutton.d.ts +86 -0
- package/types/gravionlabs-helix-core-types-toggleswitch.d.ts +73 -0
- package/types/gravionlabs-helix-core-types-toolbar.d.ts +55 -0
- package/types/gravionlabs-helix-core-types-tooltip.d.ts +32 -0
- package/types/gravionlabs-helix-core-types-tree.d.ts +342 -0
- package/types/gravionlabs-helix-core-types-treeselect.d.ts +251 -0
- package/types/gravionlabs-helix-core-types-treetable.d.ts +629 -0
- package/types/gravionlabs-helix-core-uix-motion.d.ts +276 -0
- package/types/gravionlabs-helix-core-uix-styled.d.ts +309 -0
- package/types/gravionlabs-helix-core-uix-utils.d.ts +387 -0
- package/types/gravionlabs-helix-core-usestyle.d.ts +15 -0
- package/types/gravionlabs-helix-core-utils.d.ts +54 -0
- package/types/gravionlabs-helix-core-validators.d.ts +40 -0
- package/types/gravionlabs-helix-core.d.ts +2 -0
|
@@ -0,0 +1,2106 @@
|
|
|
1
|
+
export * from '@gravionlabs/helix-core/types/multiselect';
|
|
2
|
+
import * as i1 from '@angular/common';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { Injectable, InjectionToken, forwardRef, inject, input, booleanAttribute, numberAttribute, output, ChangeDetectionStrategy, ViewEncapsulation, Component, computed, viewChild, contentChild, contentChildren, signal, effect, NgModule } from '@angular/core';
|
|
6
|
+
import * as i2 from '@angular/forms';
|
|
7
|
+
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
8
|
+
import { uuid, isNotEmpty, isArray, deepEquals, equals, focus, findLastIndex, resolveFieldData, isPrintableCharacter, getFirstFocusableElement, getLastFocusableElement, findSingle, getFocusableElements } from '@gravionlabs/helix-core/uix/utils';
|
|
9
|
+
import * as i3 from '@gravionlabs/helix-core/api';
|
|
10
|
+
import { SharedModule, Footer, Header, HelixTemplate, TranslationKeys } from '@gravionlabs/helix-core/api';
|
|
11
|
+
import { AutoFocus } from '@gravionlabs/helix-core/autofocus';
|
|
12
|
+
import { BaseComponent, PARENT_INSTANCE } from '@gravionlabs/helix-core/basecomponent';
|
|
13
|
+
import { BaseEditableHolder } from '@gravionlabs/helix-core/baseeditableholder';
|
|
14
|
+
import * as i4 from '@gravionlabs/helix-core/bind';
|
|
15
|
+
import { Bind, BindModule } from '@gravionlabs/helix-core/bind';
|
|
16
|
+
import { Checkbox } from '@gravionlabs/helix-core/checkbox';
|
|
17
|
+
import { Chip } from '@gravionlabs/helix-core/chip';
|
|
18
|
+
import { DomHandler, unblockBodyScroll } from '@gravionlabs/helix-core/dom';
|
|
19
|
+
import { Fluid } from '@gravionlabs/helix-core/fluid';
|
|
20
|
+
import { IconField } from '@gravionlabs/helix-core/iconfield';
|
|
21
|
+
import { CheckIcon, SearchIcon, TimesIcon, ChevronDownIcon } from '@gravionlabs/helix-core/icons';
|
|
22
|
+
import { InputIcon } from '@gravionlabs/helix-core/inputicon';
|
|
23
|
+
import { InputText } from '@gravionlabs/helix-core/inputtext';
|
|
24
|
+
import { Overlay } from '@gravionlabs/helix-core/overlay';
|
|
25
|
+
import { Scroller } from '@gravionlabs/helix-core/scroller';
|
|
26
|
+
import { Tooltip } from '@gravionlabs/helix-core/tooltip';
|
|
27
|
+
import { ObjectUtils } from '@gravionlabs/helix-core/utils';
|
|
28
|
+
import { BaseStyle } from '@gravionlabs/helix-core/base';
|
|
29
|
+
|
|
30
|
+
const style$1 = /*css*/ `
|
|
31
|
+
.h-multiselect {
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
position: relative;
|
|
35
|
+
user-select: none;
|
|
36
|
+
background: dt('multiselect.background');
|
|
37
|
+
border: 1px solid dt('multiselect.border.color');
|
|
38
|
+
transition:
|
|
39
|
+
background dt('multiselect.transition.duration'),
|
|
40
|
+
color dt('multiselect.transition.duration'),
|
|
41
|
+
border-color dt('multiselect.transition.duration'),
|
|
42
|
+
outline-color dt('multiselect.transition.duration'),
|
|
43
|
+
box-shadow dt('multiselect.transition.duration');
|
|
44
|
+
border-radius: dt('multiselect.border.radius');
|
|
45
|
+
outline-color: transparent;
|
|
46
|
+
box-shadow: dt('multiselect.shadow');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.h-multiselect:not(.h-disabled):hover {
|
|
50
|
+
border-color: dt('multiselect.hover.border.color');
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.h-multiselect:not(.h-disabled).h-focus {
|
|
54
|
+
border-color: dt('multiselect.focus.border.color');
|
|
55
|
+
box-shadow: dt('multiselect.focus.ring.shadow');
|
|
56
|
+
outline: dt('multiselect.focus.ring.width') dt('multiselect.focus.ring.style') dt('multiselect.focus.ring.color');
|
|
57
|
+
outline-offset: dt('multiselect.focus.ring.offset');
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.h-multiselect.h-variant-filled {
|
|
61
|
+
background: dt('multiselect.filled.background');
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.h-multiselect.h-variant-filled:not(.h-disabled):hover {
|
|
65
|
+
background: dt('multiselect.filled.hover.background');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.h-multiselect.h-variant-filled.h-focus {
|
|
69
|
+
background: dt('multiselect.filled.focus.background');
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.h-multiselect.h-invalid {
|
|
73
|
+
border-color: dt('multiselect.invalid.border.color');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.h-multiselect.h-disabled {
|
|
77
|
+
opacity: 1;
|
|
78
|
+
background: dt('multiselect.disabled.background');
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.h-multiselect-dropdown {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
flex-shrink: 0;
|
|
86
|
+
background: transparent;
|
|
87
|
+
color: dt('multiselect.dropdown.color');
|
|
88
|
+
width: dt('multiselect.dropdown.width');
|
|
89
|
+
border-start-end-radius: dt('multiselect.border.radius');
|
|
90
|
+
border-end-end-radius: dt('multiselect.border.radius');
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.h-multiselect-clear-icon {
|
|
94
|
+
align-self: center;
|
|
95
|
+
color: dt('multiselect.clear.icon.color');
|
|
96
|
+
inset-inline-end: dt('multiselect.dropdown.width');
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.h-multiselect-label-container {
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
flex: 1 1 auto;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.h-multiselect-label {
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
overflow: hidden;
|
|
109
|
+
text-overflow: ellipsis;
|
|
110
|
+
padding: dt('multiselect.padding.y') dt('multiselect.padding.x');
|
|
111
|
+
color: dt('multiselect.color');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.h-multiselect-display-chip .h-multiselect-label {
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
gap: calc(dt('multiselect.padding.y') / 2);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.h-multiselect-label.h-placeholder {
|
|
121
|
+
color: dt('multiselect.placeholder.color');
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.h-multiselect.h-invalid .h-multiselect-label.h-placeholder {
|
|
125
|
+
color: dt('multiselect.invalid.placeholder.color');
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.h-multiselect.h-disabled .h-multiselect-label {
|
|
129
|
+
color: dt('multiselect.disabled.color');
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.h-multiselect-label-empty {
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
visibility: hidden;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.h-multiselect-overlay {
|
|
138
|
+
position: absolute;
|
|
139
|
+
top: 0;
|
|
140
|
+
left: 0;
|
|
141
|
+
background: dt('multiselect.overlay.background');
|
|
142
|
+
color: dt('multiselect.overlay.color');
|
|
143
|
+
border: 1px solid dt('multiselect.overlay.border.color');
|
|
144
|
+
border-radius: dt('multiselect.overlay.border.radius');
|
|
145
|
+
box-shadow: dt('multiselect.overlay.shadow');
|
|
146
|
+
min-width: 100%;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.h-multiselect-header {
|
|
150
|
+
display: flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
padding: dt('multiselect.list.header.padding');
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.h-multiselect-header .h-checkbox {
|
|
156
|
+
margin-inline-end: dt('multiselect.option.gap');
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.h-multiselect-filter-container {
|
|
160
|
+
flex: 1 1 auto;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.h-multiselect-filter {
|
|
164
|
+
width: 100%;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.h-multiselect-list-container {
|
|
168
|
+
overflow: auto;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.h-multiselect-list {
|
|
172
|
+
margin: 0;
|
|
173
|
+
padding: 0;
|
|
174
|
+
list-style-type: none;
|
|
175
|
+
padding: dt('multiselect.list.padding');
|
|
176
|
+
display: flex;
|
|
177
|
+
flex-direction: column;
|
|
178
|
+
gap: dt('multiselect.list.gap');
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.h-multiselect-option {
|
|
182
|
+
cursor: pointer;
|
|
183
|
+
font-weight: normal;
|
|
184
|
+
white-space: nowrap;
|
|
185
|
+
position: relative;
|
|
186
|
+
overflow: hidden;
|
|
187
|
+
display: flex;
|
|
188
|
+
align-items: center;
|
|
189
|
+
gap: dt('multiselect.option.gap');
|
|
190
|
+
padding: dt('multiselect.option.padding');
|
|
191
|
+
border: 0 none;
|
|
192
|
+
color: dt('multiselect.option.color');
|
|
193
|
+
background: transparent;
|
|
194
|
+
transition:
|
|
195
|
+
background dt('multiselect.transition.duration'),
|
|
196
|
+
color dt('multiselect.transition.duration'),
|
|
197
|
+
border-color dt('multiselect.transition.duration'),
|
|
198
|
+
box-shadow dt('multiselect.transition.duration'),
|
|
199
|
+
outline-color dt('multiselect.transition.duration');
|
|
200
|
+
border-radius: dt('multiselect.option.border.radius');
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.h-multiselect-option:not(.h-multiselect-option-selected):not(.h-disabled).h-focus {
|
|
204
|
+
background: dt('multiselect.option.focus.background');
|
|
205
|
+
color: dt('multiselect.option.focus.color');
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.h-multiselect-option:not(.h-multiselect-option-selected):not(.h-disabled):hover {
|
|
209
|
+
background: dt('multiselect.option.focus.background');
|
|
210
|
+
color: dt('multiselect.option.focus.color');
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.h-multiselect-option.h-multiselect-option-selected {
|
|
214
|
+
background: dt('multiselect.option.selected.background');
|
|
215
|
+
color: dt('multiselect.option.selected.color');
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.h-multiselect-option.h-multiselect-option-selected.h-focus {
|
|
219
|
+
background: dt('multiselect.option.selected.focus.background');
|
|
220
|
+
color: dt('multiselect.option.selected.focus.color');
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.h-multiselect-option-group {
|
|
224
|
+
cursor: auto;
|
|
225
|
+
margin: 0;
|
|
226
|
+
padding: dt('multiselect.option.group.padding');
|
|
227
|
+
background: dt('multiselect.option.group.background');
|
|
228
|
+
color: dt('multiselect.option.group.color');
|
|
229
|
+
font-weight: dt('multiselect.option.group.font.weight');
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.h-multiselect-empty-message {
|
|
233
|
+
padding: dt('multiselect.empty.message.padding');
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.h-multiselect-label .h-chip {
|
|
237
|
+
padding-block-start: calc(dt('multiselect.padding.y') / 2);
|
|
238
|
+
padding-block-end: calc(dt('multiselect.padding.y') / 2);
|
|
239
|
+
border-radius: dt('multiselect.chip.border.radius');
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.h-multiselect-label:has(.h-chip) {
|
|
243
|
+
padding: calc(dt('multiselect.padding.y') / 2) calc(dt('multiselect.padding.x') / 2);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.h-multiselect-fluid {
|
|
247
|
+
display: flex;
|
|
248
|
+
width: 100%;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.h-multiselect-sm .h-multiselect-label {
|
|
252
|
+
font-size: dt('multiselect.sm.font.size');
|
|
253
|
+
padding-block: dt('multiselect.sm.padding.y');
|
|
254
|
+
padding-inline: dt('multiselect.sm.padding.x');
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.h-multiselect-sm .h-multiselect-dropdown .h-icon {
|
|
258
|
+
font-size: dt('multiselect.sm.font.size');
|
|
259
|
+
width: dt('multiselect.sm.font.size');
|
|
260
|
+
height: dt('multiselect.sm.font.size');
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.h-multiselect-lg .h-multiselect-label {
|
|
264
|
+
font-size: dt('multiselect.lg.font.size');
|
|
265
|
+
padding-block: dt('multiselect.lg.padding.y');
|
|
266
|
+
padding-inline: dt('multiselect.lg.padding.x');
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.h-multiselect-lg .h-multiselect-dropdown .h-icon {
|
|
270
|
+
font-size: dt('multiselect.lg.font.size');
|
|
271
|
+
width: dt('multiselect.lg.font.size');
|
|
272
|
+
height: dt('multiselect.lg.font.size');
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.h-floatlabel-in .h-multiselect-filter {
|
|
276
|
+
padding-block-start: dt('multiselect.padding.y');
|
|
277
|
+
padding-block-end: dt('multiselect.padding.y');
|
|
278
|
+
}
|
|
279
|
+
`;
|
|
280
|
+
|
|
281
|
+
const style = /*css*/ `
|
|
282
|
+
${style$1}
|
|
283
|
+
|
|
284
|
+
/* For Helix */
|
|
285
|
+
.h-multiselect.ng-invalid.ng-dirty {
|
|
286
|
+
border-color: dt('multiselect.invalid.border.color');
|
|
287
|
+
}
|
|
288
|
+
h-multiSelect.ng-invalid.ng-dirty .h-multiselect-label.h-placeholder,
|
|
289
|
+
h-multi-select.ng-invalid.ng-dirty .h-multiselect-label.h-placeholder,
|
|
290
|
+
h-multiselect.ng-invalid.ng-dirty .h-multiselect-label.h-placeholder {
|
|
291
|
+
color: dt('multiselect.invalid.placeholder.color');
|
|
292
|
+
}
|
|
293
|
+
`;
|
|
294
|
+
const inlineStyles = {
|
|
295
|
+
root: ({ instance }) => ({ position: instance.$appendTo() === 'self' ? 'relative' : undefined })
|
|
296
|
+
};
|
|
297
|
+
const classes = {
|
|
298
|
+
root: ({ instance }) => [
|
|
299
|
+
'h-multiselect h-component h-inputwrapper',
|
|
300
|
+
{
|
|
301
|
+
'h-multiselect h-component h-inputwrapper': true,
|
|
302
|
+
'h-multiselect-display-chip': instance.display === 'chip',
|
|
303
|
+
'h-disabled': instance.$disabled(),
|
|
304
|
+
'h-invalid': instance.invalid(),
|
|
305
|
+
'h-variant-filled': instance.$variant() === 'filled',
|
|
306
|
+
'h-focus': instance.focused,
|
|
307
|
+
'h-inputwrapper-filled': instance.$filled(),
|
|
308
|
+
'h-inputwrapper-focus': instance.focused || instance.overlayVisible,
|
|
309
|
+
'h-multiselect-open': instance.overlayVisible,
|
|
310
|
+
'h-multiselect-fluid': instance.hasFluid,
|
|
311
|
+
'h-multiselect-sm h-inputfield-sm': instance.size() === 'small',
|
|
312
|
+
'h-multiselect-lg h-inputfield-lg': instance.size() === 'large'
|
|
313
|
+
}
|
|
314
|
+
],
|
|
315
|
+
labelContainer: 'h-multiselect-label-container',
|
|
316
|
+
label: ({ instance }) => ({
|
|
317
|
+
'h-multiselect-label': true,
|
|
318
|
+
'h-placeholder': instance.label() === instance.placeholder(),
|
|
319
|
+
'h-multiselect-label-empty': !instance.placeholder() && !instance.defaultLabel && (!instance.modelValue() || instance.modelValue().length === 0)
|
|
320
|
+
}),
|
|
321
|
+
chipItem: 'h-multiselect-chip-item',
|
|
322
|
+
pcChip: 'h-multiselect-chip',
|
|
323
|
+
chipIcon: 'h-multiselect-chip-icon',
|
|
324
|
+
dropdown: 'h-multiselect-dropdown',
|
|
325
|
+
loadingIcon: 'h-multiselect-loading-icon',
|
|
326
|
+
dropdownIcon: 'h-multiselect-dropdown-icon',
|
|
327
|
+
overlay: 'h-multiselect-overlay h-component-overlay h-component',
|
|
328
|
+
header: 'h-multiselect-header',
|
|
329
|
+
pcFilterContainer: 'h-multiselect-filter-container',
|
|
330
|
+
pcFilter: 'h-multiselect-filter',
|
|
331
|
+
listContainer: 'h-multiselect-list-container',
|
|
332
|
+
list: 'h-multiselect-list',
|
|
333
|
+
optionGroup: 'h-multiselect-option-group',
|
|
334
|
+
option: ({ instance }) => ({
|
|
335
|
+
'h-multiselect-option': true,
|
|
336
|
+
'h-multiselect-option-selected': instance.selected && instance.highlightOnSelect,
|
|
337
|
+
'h-disabled': instance.disabled,
|
|
338
|
+
'h-focus': instance.focused
|
|
339
|
+
}),
|
|
340
|
+
emptyMessage: 'h-multiselect-empty-message',
|
|
341
|
+
clearIcon: 'h-multiselect-clear-icon'
|
|
342
|
+
};
|
|
343
|
+
class MultiSelectStyle extends BaseStyle {
|
|
344
|
+
name = 'multiselect';
|
|
345
|
+
style = style;
|
|
346
|
+
classes = classes;
|
|
347
|
+
inlineStyles = inlineStyles;
|
|
348
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: MultiSelectStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
349
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: MultiSelectStyle });
|
|
350
|
+
}
|
|
351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: MultiSelectStyle, decorators: [{
|
|
352
|
+
type: Injectable
|
|
353
|
+
}] });
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
* MultiSelect is used to select multiple items from a collection.
|
|
357
|
+
*
|
|
358
|
+
* [Live Demo](https://www.primeng.org/multiselect/)
|
|
359
|
+
*
|
|
360
|
+
* @module multiselectstyle
|
|
361
|
+
*
|
|
362
|
+
*/
|
|
363
|
+
var MultiSelectClasses;
|
|
364
|
+
(function (MultiSelectClasses) {
|
|
365
|
+
/**
|
|
366
|
+
* Class name of the root element
|
|
367
|
+
*/
|
|
368
|
+
MultiSelectClasses["root"] = "h-multiselect";
|
|
369
|
+
/**
|
|
370
|
+
* Class name of the label container element
|
|
371
|
+
*/
|
|
372
|
+
MultiSelectClasses["labelContainer"] = "h-multiselect-label-container";
|
|
373
|
+
/**
|
|
374
|
+
* Class name of the label element
|
|
375
|
+
*/
|
|
376
|
+
MultiSelectClasses["label"] = "h-multiselect-label";
|
|
377
|
+
/**
|
|
378
|
+
* Class name of the chip item element
|
|
379
|
+
*/
|
|
380
|
+
MultiSelectClasses["chipItem"] = "h-multiselect-chip-item";
|
|
381
|
+
/**
|
|
382
|
+
* Class name of the chip element
|
|
383
|
+
*/
|
|
384
|
+
MultiSelectClasses["pcChip"] = "h-multiselect-chip";
|
|
385
|
+
/**
|
|
386
|
+
* Class name of the chip icon element
|
|
387
|
+
*/
|
|
388
|
+
MultiSelectClasses["chipIcon"] = "h-multiselect-chip-icon";
|
|
389
|
+
/**
|
|
390
|
+
* Class name of the dropdown element
|
|
391
|
+
*/
|
|
392
|
+
MultiSelectClasses["dropdown"] = "h-multiselect-dropdown";
|
|
393
|
+
/**
|
|
394
|
+
* Class name of the loading icon element
|
|
395
|
+
*/
|
|
396
|
+
MultiSelectClasses["loadingIcon"] = "h-multiselect-loading-icon";
|
|
397
|
+
/**
|
|
398
|
+
* Class name of the dropdown icon element
|
|
399
|
+
*/
|
|
400
|
+
MultiSelectClasses["dropdownIcon"] = "h-multiselect-dropdown-icon";
|
|
401
|
+
/**
|
|
402
|
+
* Class name of the overlay element
|
|
403
|
+
*/
|
|
404
|
+
MultiSelectClasses["overlay"] = "h-multiselect-overlay";
|
|
405
|
+
/**
|
|
406
|
+
* Class name of the header element
|
|
407
|
+
*/
|
|
408
|
+
MultiSelectClasses["header"] = "h-multiselect-header";
|
|
409
|
+
/**
|
|
410
|
+
* Class name of the filter container element
|
|
411
|
+
*/
|
|
412
|
+
MultiSelectClasses["pcFilterContainer"] = "h-multiselect-filter-container";
|
|
413
|
+
/**
|
|
414
|
+
* Class name of the filter element
|
|
415
|
+
*/
|
|
416
|
+
MultiSelectClasses["pcFilter"] = "h-multiselect-filter";
|
|
417
|
+
/**
|
|
418
|
+
* Class name of the list container element
|
|
419
|
+
*/
|
|
420
|
+
MultiSelectClasses["listContainer"] = "h-multiselect-list-container";
|
|
421
|
+
/**
|
|
422
|
+
* Class name of the list element
|
|
423
|
+
*/
|
|
424
|
+
MultiSelectClasses["list"] = "h-multiselect-list";
|
|
425
|
+
/**
|
|
426
|
+
* Class name of the option group element
|
|
427
|
+
*/
|
|
428
|
+
MultiSelectClasses["optionGroup"] = "h-multiselect-option-group";
|
|
429
|
+
/**
|
|
430
|
+
* Class name of the option element
|
|
431
|
+
*/
|
|
432
|
+
MultiSelectClasses["option"] = "h-multiselect-option";
|
|
433
|
+
/**
|
|
434
|
+
* Class name of the empty message element
|
|
435
|
+
*/
|
|
436
|
+
MultiSelectClasses["emptyMessage"] = "h-multiselect-empty-message";
|
|
437
|
+
/**
|
|
438
|
+
* Class name of the clear icon
|
|
439
|
+
*/
|
|
440
|
+
MultiSelectClasses["clearIcon"] = "h-autocomplete-clear-icon";
|
|
441
|
+
})(MultiSelectClasses || (MultiSelectClasses = {}));
|
|
442
|
+
|
|
443
|
+
const MULTISELECT_INSTANCE = new InjectionToken('MULTISELECT_INSTANCE');
|
|
444
|
+
const MULTISELECT_ITEM_INSTANCE = new InjectionToken('MULTISELECT_ITEM_INSTANCE');
|
|
445
|
+
const MULTISELECT_VALUE_ACCESSOR = {
|
|
446
|
+
provide: NG_VALUE_ACCESSOR,
|
|
447
|
+
useExisting: forwardRef(() => MultiSelect),
|
|
448
|
+
multi: true
|
|
449
|
+
};
|
|
450
|
+
class MultiSelectItem extends BaseComponent {
|
|
451
|
+
$pcMultiSelectItem = inject(MULTISELECT_ITEM_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
452
|
+
hostName = 'MultiSelect';
|
|
453
|
+
getPTOptions(key) {
|
|
454
|
+
return this.ptm(key, {
|
|
455
|
+
context: {
|
|
456
|
+
selected: this.selected(),
|
|
457
|
+
focused: this.focused(),
|
|
458
|
+
disabled: this.disabled()
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
option = input(/* @ts-ignore */
|
|
463
|
+
...(ngDevMode ? [undefined, { debugName: "option" }] : /* istanbul ignore next */ []));
|
|
464
|
+
selected = input(undefined, { ...(ngDevMode ? { debugName: "selected" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
465
|
+
label = input(/* @ts-ignore */
|
|
466
|
+
...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
|
|
467
|
+
disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
468
|
+
itemSize = input(undefined, { ...(ngDevMode ? { debugName: "itemSize" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
469
|
+
focused = input(undefined, { ...(ngDevMode ? { debugName: "focused" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
470
|
+
ariaPosInset = input(/* @ts-ignore */
|
|
471
|
+
...(ngDevMode ? [undefined, { debugName: "ariaPosInset" }] : /* istanbul ignore next */ []));
|
|
472
|
+
ariaSetSize = input(/* @ts-ignore */
|
|
473
|
+
...(ngDevMode ? [undefined, { debugName: "ariaSetSize" }] : /* istanbul ignore next */ []));
|
|
474
|
+
variant = input(undefined, /* @ts-ignore */
|
|
475
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
476
|
+
template = input(/* @ts-ignore */
|
|
477
|
+
...(ngDevMode ? [undefined, { debugName: "template" }] : /* istanbul ignore next */ []));
|
|
478
|
+
checkIconTemplate = input(/* @ts-ignore */
|
|
479
|
+
...(ngDevMode ? [undefined, { debugName: "checkIconTemplate" }] : /* istanbul ignore next */ []));
|
|
480
|
+
itemCheckboxIconTemplate = input(/* @ts-ignore */
|
|
481
|
+
...(ngDevMode ? [undefined, { debugName: "itemCheckboxIconTemplate" }] : /* istanbul ignore next */ []));
|
|
482
|
+
highlightOnSelect = input(undefined, { ...(ngDevMode ? { debugName: "highlightOnSelect" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
483
|
+
onClick = output();
|
|
484
|
+
onMouseEnter = output();
|
|
485
|
+
_componentStyle = inject(MultiSelectStyle);
|
|
486
|
+
onOptionClick(event) {
|
|
487
|
+
this.onClick.emit({
|
|
488
|
+
originalEvent: event,
|
|
489
|
+
option: this.option(),
|
|
490
|
+
selected: this.selected()
|
|
491
|
+
});
|
|
492
|
+
event.stopPropagation();
|
|
493
|
+
event.preventDefault();
|
|
494
|
+
}
|
|
495
|
+
onOptionMouseEnter(event) {
|
|
496
|
+
this.onMouseEnter.emit({
|
|
497
|
+
originalEvent: event,
|
|
498
|
+
option: this.option(),
|
|
499
|
+
selected: this.selected()
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: MultiSelectItem, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
503
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: MultiSelectItem, isStandalone: true, selector: "li[hMultiSelectItem]", inputs: { option: { classPropertyName: "option", publicName: "option", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, focused: { classPropertyName: "focused", publicName: "focused", isSignal: true, isRequired: false, transformFunction: null }, ariaPosInset: { classPropertyName: "ariaPosInset", publicName: "ariaPosInset", isSignal: true, isRequired: false, transformFunction: null }, ariaSetSize: { classPropertyName: "ariaSetSize", publicName: "ariaSetSize", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, checkIconTemplate: { classPropertyName: "checkIconTemplate", publicName: "checkIconTemplate", isSignal: true, isRequired: false, transformFunction: null }, itemCheckboxIconTemplate: { classPropertyName: "itemCheckboxIconTemplate", publicName: "itemCheckboxIconTemplate", isSignal: true, isRequired: false, transformFunction: null }, highlightOnSelect: { classPropertyName: "highlightOnSelect", publicName: "highlightOnSelect", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick", onMouseEnter: "onMouseEnter" }, host: { attributes: { "role": "option" }, listeners: { "click": "onOptionClick($event)", "mouseenter": "onOptionMouseEnter($event)" }, properties: { "style.height.px": "itemSize()", "attr.aria-label": "label()", "attr.aria-setsize": "ariaSetSize()", "attr.aria-posinset": "ariaPosInset()", "attr.aria-selected": "selected()", "attr.data-h-selected": "selected()", "attr.data-h-focused": "focused()", "attr.data-h-highlight": "selected()", "attr.data-h-disabled": "disabled()", "attr.aria-checked": "selected()", "class": "cx('option')" } }, providers: [MultiSelectStyle], usesInheritance: true, ngImport: i0, template: "<h-checkbox [ngModel]=\"selected()\" [binary]=\"true\" [tabindex]=\"-1\" [variant]=\"variant()\" [ariaLabel]=\"label()\" [pt]=\"getPTOptions('pcOptionCheckbox')\" [unstyled]=\"unstyled()\">\n @if (itemCheckboxIconTemplate()) {\n <ng-template #icon let-klass=\"class\">\n <ng-template *ngTemplateOutlet=\"itemCheckboxIconTemplate(); context: { checked: selected(), class: klass }\"></ng-template>\n </ng-template>\n }\n</h-checkbox>\n@if (!template()) {\n <span>{{ label() ?? 'empty' }}</span>\n}\n<ng-container *ngTemplateOutlet=\"template(); context: { $implicit: option() }\"></ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Checkbox, selector: "h-checkbox, h-checkBox, h-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
|
|
504
|
+
}
|
|
505
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: MultiSelectItem, decorators: [{
|
|
506
|
+
type: Component,
|
|
507
|
+
args: [{ selector: 'li[hMultiSelectItem]', standalone: true, imports: [CommonModule, Checkbox, FormsModule, SharedModule], encapsulation: ViewEncapsulation.None, providers: [MultiSelectStyle], changeDetection: ChangeDetectionStrategy.Eager, host: {
|
|
508
|
+
'[style.height.px]': 'itemSize()',
|
|
509
|
+
'[attr.aria-label]': 'label()',
|
|
510
|
+
role: 'option',
|
|
511
|
+
'[attr.aria-setsize]': 'ariaSetSize()',
|
|
512
|
+
'[attr.aria-posinset]': 'ariaPosInset()',
|
|
513
|
+
'[attr.aria-selected]': 'selected()',
|
|
514
|
+
'[attr.data-h-selected]': 'selected()',
|
|
515
|
+
'[attr.data-h-focused]': 'focused()',
|
|
516
|
+
'[attr.data-h-highlight]': 'selected()',
|
|
517
|
+
'[attr.data-h-disabled]': 'disabled()',
|
|
518
|
+
'[attr.aria-checked]': 'selected()',
|
|
519
|
+
'(click)': 'onOptionClick($event)',
|
|
520
|
+
'(mouseenter)': 'onOptionMouseEnter($event)',
|
|
521
|
+
'[class]': "cx('option')"
|
|
522
|
+
}, template: "<h-checkbox [ngModel]=\"selected()\" [binary]=\"true\" [tabindex]=\"-1\" [variant]=\"variant()\" [ariaLabel]=\"label()\" [pt]=\"getPTOptions('pcOptionCheckbox')\" [unstyled]=\"unstyled()\">\n @if (itemCheckboxIconTemplate()) {\n <ng-template #icon let-klass=\"class\">\n <ng-template *ngTemplateOutlet=\"itemCheckboxIconTemplate(); context: { checked: selected(), class: klass }\"></ng-template>\n </ng-template>\n }\n</h-checkbox>\n@if (!template()) {\n <span>{{ label() ?? 'empty' }}</span>\n}\n<ng-container *ngTemplateOutlet=\"template(); context: { $implicit: option() }\"></ng-container>\n" }]
|
|
523
|
+
}], propDecorators: { option: [{ type: i0.Input, args: [{ isSignal: true, alias: "option", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], itemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSize", required: false }] }], focused: [{ type: i0.Input, args: [{ isSignal: true, alias: "focused", required: false }] }], ariaPosInset: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaPosInset", required: false }] }], ariaSetSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaSetSize", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "template", required: false }] }], checkIconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkIconTemplate", required: false }] }], itemCheckboxIconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemCheckboxIconTemplate", required: false }] }], highlightOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightOnSelect", required: false }] }], onClick: [{ type: i0.Output, args: ["onClick"] }], onMouseEnter: [{ type: i0.Output, args: ["onMouseEnter"] }] } });
|
|
524
|
+
/**
|
|
525
|
+
* MultiSelect is used to select multiple items from a collection.
|
|
526
|
+
* @group Components
|
|
527
|
+
*/
|
|
528
|
+
class MultiSelect extends BaseEditableHolder {
|
|
529
|
+
zone;
|
|
530
|
+
filterService;
|
|
531
|
+
overlayService;
|
|
532
|
+
componentName = 'MultiSelect';
|
|
533
|
+
/**
|
|
534
|
+
* Unique identifier of the component
|
|
535
|
+
* @group Props
|
|
536
|
+
*/
|
|
537
|
+
id = input(/* @ts-ignore */
|
|
538
|
+
...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
539
|
+
autoId = uuid('pn_id_');
|
|
540
|
+
$id = computed(() => this.id() || this.autoId, /* @ts-ignore */
|
|
541
|
+
...(ngDevMode ? [{ debugName: "$id" }] : /* istanbul ignore next */ []));
|
|
542
|
+
/**
|
|
543
|
+
* Defines a string that labels the input for accessibility.
|
|
544
|
+
* @group Props
|
|
545
|
+
*/
|
|
546
|
+
ariaLabel = input(/* @ts-ignore */
|
|
547
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
548
|
+
/**
|
|
549
|
+
* Style class of the element.
|
|
550
|
+
* @deprecated since v20.0.0, use `class` instead.
|
|
551
|
+
* @group Props
|
|
552
|
+
*/
|
|
553
|
+
styleClass = input(/* @ts-ignore */
|
|
554
|
+
...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
555
|
+
/**
|
|
556
|
+
* Inline style of the overlay panel.
|
|
557
|
+
* @group Props
|
|
558
|
+
*/
|
|
559
|
+
panelStyle = input(/* @ts-ignore */
|
|
560
|
+
...(ngDevMode ? [undefined, { debugName: "panelStyle" }] : /* istanbul ignore next */ []));
|
|
561
|
+
/**
|
|
562
|
+
* Style class of the overlay panel element.
|
|
563
|
+
* @group Props
|
|
564
|
+
*/
|
|
565
|
+
panelStyleClass = input(/* @ts-ignore */
|
|
566
|
+
...(ngDevMode ? [undefined, { debugName: "panelStyleClass" }] : /* istanbul ignore next */ []));
|
|
567
|
+
/**
|
|
568
|
+
* Identifier of the focus input to match a label defined for the component.
|
|
569
|
+
* @group Props
|
|
570
|
+
*/
|
|
571
|
+
inputId = input(/* @ts-ignore */
|
|
572
|
+
...(ngDevMode ? [undefined, { debugName: "inputId" }] : /* istanbul ignore next */ []));
|
|
573
|
+
/**
|
|
574
|
+
* When present, it specifies that the component cannot be edited.
|
|
575
|
+
* @group Props
|
|
576
|
+
*/
|
|
577
|
+
readonly = input(undefined, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
578
|
+
/**
|
|
579
|
+
* Whether to display options as grouped when nested options are provided.
|
|
580
|
+
* @group Props
|
|
581
|
+
*/
|
|
582
|
+
group = input(undefined, { ...(ngDevMode ? { debugName: "group" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
583
|
+
/**
|
|
584
|
+
* When specified, displays an input field to filter the items on keyup.
|
|
585
|
+
* @group Props
|
|
586
|
+
*/
|
|
587
|
+
filter = input(true, { ...(ngDevMode ? { debugName: "filter" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
588
|
+
/**
|
|
589
|
+
* Defines placeholder of the filter input.
|
|
590
|
+
* @group Props
|
|
591
|
+
*/
|
|
592
|
+
filterPlaceHolder = input(/* @ts-ignore */
|
|
593
|
+
...(ngDevMode ? [undefined, { debugName: "filterPlaceHolder" }] : /* istanbul ignore next */ []));
|
|
594
|
+
/**
|
|
595
|
+
* Locale to use in filtering. The default locale is the host environment's current locale.
|
|
596
|
+
* @group Props
|
|
597
|
+
*/
|
|
598
|
+
filterLocale = input(/* @ts-ignore */
|
|
599
|
+
...(ngDevMode ? [undefined, { debugName: "filterLocale" }] : /* istanbul ignore next */ []));
|
|
600
|
+
/**
|
|
601
|
+
* Specifies the visibility of the options panel.
|
|
602
|
+
* @group Props
|
|
603
|
+
*/
|
|
604
|
+
overlayVisible = false;
|
|
605
|
+
/**
|
|
606
|
+
* Index of the element in tabbing order.
|
|
607
|
+
* @group Props
|
|
608
|
+
*/
|
|
609
|
+
tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
610
|
+
/**
|
|
611
|
+
* A property to uniquely identify a value in options.
|
|
612
|
+
* @group Props
|
|
613
|
+
*/
|
|
614
|
+
dataKey = input(/* @ts-ignore */
|
|
615
|
+
...(ngDevMode ? [undefined, { debugName: "dataKey" }] : /* istanbul ignore next */ []));
|
|
616
|
+
/**
|
|
617
|
+
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
|
|
618
|
+
* @group Props
|
|
619
|
+
*/
|
|
620
|
+
ariaLabelledBy = input(/* @ts-ignore */
|
|
621
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
622
|
+
/**
|
|
623
|
+
* Whether to show labels of selected item labels or use default label.
|
|
624
|
+
* @group Props
|
|
625
|
+
* @defaultValue true
|
|
626
|
+
*/
|
|
627
|
+
displaySelectedLabel = input(true, /* @ts-ignore */
|
|
628
|
+
...(ngDevMode ? [{ debugName: "displaySelectedLabel" }] : /* istanbul ignore next */ []));
|
|
629
|
+
/**
|
|
630
|
+
* Decides how many selected item labels to show at most.
|
|
631
|
+
* @group Props
|
|
632
|
+
* @defaultValue 3
|
|
633
|
+
*/
|
|
634
|
+
maxSelectedLabels = input(3, /* @ts-ignore */
|
|
635
|
+
...(ngDevMode ? [{ debugName: "maxSelectedLabels" }] : /* istanbul ignore next */ []));
|
|
636
|
+
/**
|
|
637
|
+
* Maximum number of selectable items.
|
|
638
|
+
* @group Props
|
|
639
|
+
*/
|
|
640
|
+
selectionLimit = input(undefined, { ...(ngDevMode ? { debugName: "selectionLimit" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
641
|
+
/**
|
|
642
|
+
* Label to display after exceeding max selected labels e.g. ({0} items selected), defaults "ellipsis" keyword to indicate a text-overflow.
|
|
643
|
+
* @group Props
|
|
644
|
+
*/
|
|
645
|
+
selectedItemsLabel = input(/* @ts-ignore */
|
|
646
|
+
...(ngDevMode ? [undefined, { debugName: "selectedItemsLabel" }] : /* istanbul ignore next */ []));
|
|
647
|
+
/**
|
|
648
|
+
* Whether to show the checkbox at header to toggle all items at once.
|
|
649
|
+
* @group Props
|
|
650
|
+
*/
|
|
651
|
+
showToggleAll = input(true, { ...(ngDevMode ? { debugName: "showToggleAll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
652
|
+
/**
|
|
653
|
+
* Text to display when filtering does not return any results.
|
|
654
|
+
* @group Props
|
|
655
|
+
*/
|
|
656
|
+
emptyFilterMessage = input('', /* @ts-ignore */
|
|
657
|
+
...(ngDevMode ? [{ debugName: "emptyFilterMessage" }] : /* istanbul ignore next */ []));
|
|
658
|
+
/**
|
|
659
|
+
* Text to display when there is no data. Defaults to global value in i18n translation configuration.
|
|
660
|
+
* @group Props
|
|
661
|
+
*/
|
|
662
|
+
emptyMessage = input('', /* @ts-ignore */
|
|
663
|
+
...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
|
|
664
|
+
/**
|
|
665
|
+
* Clears the filter value when hiding the dropdown.
|
|
666
|
+
* @group Props
|
|
667
|
+
*/
|
|
668
|
+
resetFilterOnHide = input(false, { ...(ngDevMode ? { debugName: "resetFilterOnHide" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
669
|
+
/**
|
|
670
|
+
* Icon class of the dropdown icon.
|
|
671
|
+
* @group Props
|
|
672
|
+
*/
|
|
673
|
+
dropdownIcon = input(/* @ts-ignore */
|
|
674
|
+
...(ngDevMode ? [undefined, { debugName: "dropdownIcon" }] : /* istanbul ignore next */ []));
|
|
675
|
+
/**
|
|
676
|
+
* Icon class of the chip icon.
|
|
677
|
+
* @group Props
|
|
678
|
+
*/
|
|
679
|
+
chipIcon = input(/* @ts-ignore */
|
|
680
|
+
...(ngDevMode ? [undefined, { debugName: "chipIcon" }] : /* istanbul ignore next */ []));
|
|
681
|
+
/**
|
|
682
|
+
* Name of the label field of an option.
|
|
683
|
+
* @group Props
|
|
684
|
+
*/
|
|
685
|
+
optionLabel = input(/* @ts-ignore */
|
|
686
|
+
...(ngDevMode ? [undefined, { debugName: "optionLabel" }] : /* istanbul ignore next */ []));
|
|
687
|
+
/**
|
|
688
|
+
* Name of the value field of an option.
|
|
689
|
+
* @group Props
|
|
690
|
+
*/
|
|
691
|
+
optionValue = input(/* @ts-ignore */
|
|
692
|
+
...(ngDevMode ? [undefined, { debugName: "optionValue" }] : /* istanbul ignore next */ []));
|
|
693
|
+
/**
|
|
694
|
+
* Name of the disabled field of an option.
|
|
695
|
+
* @group Props
|
|
696
|
+
*/
|
|
697
|
+
optionDisabled = input(/* @ts-ignore */
|
|
698
|
+
...(ngDevMode ? [undefined, { debugName: "optionDisabled" }] : /* istanbul ignore next */ []));
|
|
699
|
+
/**
|
|
700
|
+
* Name of the label field of an option group.
|
|
701
|
+
* @group Props
|
|
702
|
+
*/
|
|
703
|
+
optionGroupLabel = input('label', /* @ts-ignore */
|
|
704
|
+
...(ngDevMode ? [{ debugName: "optionGroupLabel" }] : /* istanbul ignore next */ []));
|
|
705
|
+
/**
|
|
706
|
+
* Name of the options field of an option group.
|
|
707
|
+
* @group Props
|
|
708
|
+
*/
|
|
709
|
+
optionGroupChildren = input('items', /* @ts-ignore */
|
|
710
|
+
...(ngDevMode ? [{ debugName: "optionGroupChildren" }] : /* istanbul ignore next */ []));
|
|
711
|
+
/**
|
|
712
|
+
* Whether to show the header.
|
|
713
|
+
* @group Props
|
|
714
|
+
*/
|
|
715
|
+
showHeader = input(true, { ...(ngDevMode ? { debugName: "showHeader" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
716
|
+
/**
|
|
717
|
+
* When filtering is enabled, filterBy decides which field or fields (comma separated) to search against.
|
|
718
|
+
* @group Props
|
|
719
|
+
*/
|
|
720
|
+
filterBy = input(/* @ts-ignore */
|
|
721
|
+
...(ngDevMode ? [undefined, { debugName: "filterBy" }] : /* istanbul ignore next */ []));
|
|
722
|
+
/**
|
|
723
|
+
* Height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.
|
|
724
|
+
* @group Props
|
|
725
|
+
*/
|
|
726
|
+
scrollHeight = input('200px', /* @ts-ignore */
|
|
727
|
+
...(ngDevMode ? [{ debugName: "scrollHeight" }] : /* istanbul ignore next */ []));
|
|
728
|
+
/**
|
|
729
|
+
* Defines if data is loaded and interacted with in lazy manner.
|
|
730
|
+
* @group Props
|
|
731
|
+
*/
|
|
732
|
+
lazy = input(false, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
733
|
+
/**
|
|
734
|
+
* Whether the data should be loaded on demand during scroll.
|
|
735
|
+
* @group Props
|
|
736
|
+
*/
|
|
737
|
+
virtualScroll = input(undefined, { ...(ngDevMode ? { debugName: "virtualScroll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
738
|
+
/**
|
|
739
|
+
* Whether the multiselect is in loading state.
|
|
740
|
+
* @group Props
|
|
741
|
+
*/
|
|
742
|
+
loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
743
|
+
/**
|
|
744
|
+
* Height of an item in the list for VirtualScrolling.
|
|
745
|
+
* @group Props
|
|
746
|
+
*/
|
|
747
|
+
virtualScrollItemSize = input(undefined, { ...(ngDevMode ? { debugName: "virtualScrollItemSize" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
748
|
+
/**
|
|
749
|
+
* Icon to display in loading state.
|
|
750
|
+
* @group Props
|
|
751
|
+
*/
|
|
752
|
+
loadingIcon = input(/* @ts-ignore */
|
|
753
|
+
...(ngDevMode ? [undefined, { debugName: "loadingIcon" }] : /* istanbul ignore next */ []));
|
|
754
|
+
/**
|
|
755
|
+
* Whether to use the scroller feature. The properties of scroller component can be used like an object in it.
|
|
756
|
+
* @group Props
|
|
757
|
+
*/
|
|
758
|
+
virtualScrollOptions = input(/* @ts-ignore */
|
|
759
|
+
...(ngDevMode ? [undefined, { debugName: "virtualScrollOptions" }] : /* istanbul ignore next */ []));
|
|
760
|
+
/**
|
|
761
|
+
* Whether to use overlay API feature. The properties of overlay API can be used like an object in it.
|
|
762
|
+
* @group Props
|
|
763
|
+
*/
|
|
764
|
+
overlayOptions = input(/* @ts-ignore */
|
|
765
|
+
...(ngDevMode ? [undefined, { debugName: "overlayOptions" }] : /* istanbul ignore next */ []));
|
|
766
|
+
/**
|
|
767
|
+
* Defines a string that labels the filter input.
|
|
768
|
+
* @group Props
|
|
769
|
+
*/
|
|
770
|
+
ariaFilterLabel = input(/* @ts-ignore */
|
|
771
|
+
...(ngDevMode ? [undefined, { debugName: "ariaFilterLabel" }] : /* istanbul ignore next */ []));
|
|
772
|
+
/**
|
|
773
|
+
* Defines how the items are filtered.
|
|
774
|
+
* @group Props
|
|
775
|
+
*/
|
|
776
|
+
filterMatchMode = input('contains', /* @ts-ignore */
|
|
777
|
+
...(ngDevMode ? [{ debugName: "filterMatchMode" }] : /* istanbul ignore next */ []));
|
|
778
|
+
/**
|
|
779
|
+
* Advisory information to display in a tooltip on hover.
|
|
780
|
+
* @group Props
|
|
781
|
+
*/
|
|
782
|
+
tooltip = input('', /* @ts-ignore */
|
|
783
|
+
...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
784
|
+
/**
|
|
785
|
+
* Position of the tooltip.
|
|
786
|
+
* @group Props
|
|
787
|
+
*/
|
|
788
|
+
tooltipPosition = input('right', /* @ts-ignore */
|
|
789
|
+
...(ngDevMode ? [{ debugName: "tooltipPosition" }] : /* istanbul ignore next */ []));
|
|
790
|
+
/**
|
|
791
|
+
* Type of CSS position.
|
|
792
|
+
* @group Props
|
|
793
|
+
*/
|
|
794
|
+
tooltipPositionStyle = input('absolute', /* @ts-ignore */
|
|
795
|
+
...(ngDevMode ? [{ debugName: "tooltipPositionStyle" }] : /* istanbul ignore next */ []));
|
|
796
|
+
/**
|
|
797
|
+
* Style class of the tooltip.
|
|
798
|
+
* @group Props
|
|
799
|
+
*/
|
|
800
|
+
tooltipStyleClass = input(/* @ts-ignore */
|
|
801
|
+
...(ngDevMode ? [undefined, { debugName: "tooltipStyleClass" }] : /* istanbul ignore next */ []));
|
|
802
|
+
/**
|
|
803
|
+
* Applies focus to the filter element when the overlay is shown.
|
|
804
|
+
* @group Props
|
|
805
|
+
*/
|
|
806
|
+
autofocusFilter = input(false, { ...(ngDevMode ? { debugName: "autofocusFilter" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
807
|
+
/**
|
|
808
|
+
* Defines how the selected items are displayed.
|
|
809
|
+
* @group Props
|
|
810
|
+
*/
|
|
811
|
+
display = input('comma', /* @ts-ignore */
|
|
812
|
+
...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
|
|
813
|
+
/**
|
|
814
|
+
* Defines the autocomplete is active.
|
|
815
|
+
* @group Props
|
|
816
|
+
*/
|
|
817
|
+
autocomplete = input('off', /* @ts-ignore */
|
|
818
|
+
...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
|
|
819
|
+
/**
|
|
820
|
+
* When enabled, a clear icon is displayed to clear the value.
|
|
821
|
+
* @group Props
|
|
822
|
+
*/
|
|
823
|
+
showClear = input(false, { ...(ngDevMode ? { debugName: "showClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
824
|
+
/**
|
|
825
|
+
* When present, it specifies that the component should automatically get focus on load.
|
|
826
|
+
* @group Props
|
|
827
|
+
*/
|
|
828
|
+
autofocus = input(undefined, { ...(ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
829
|
+
/**
|
|
830
|
+
* Label to display when there are no selections.
|
|
831
|
+
* @group Props
|
|
832
|
+
*/
|
|
833
|
+
placeholder = input(undefined, /* @ts-ignore */
|
|
834
|
+
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
835
|
+
/**
|
|
836
|
+
* An array of objects to display as the available options.
|
|
837
|
+
* @group Props
|
|
838
|
+
*/
|
|
839
|
+
options = input(undefined, /* @ts-ignore */
|
|
840
|
+
...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
841
|
+
/**
|
|
842
|
+
* When specified, filter displays with this value.
|
|
843
|
+
* @group Props
|
|
844
|
+
*/
|
|
845
|
+
filterValue = input(null, /* @ts-ignore */
|
|
846
|
+
...(ngDevMode ? [{ debugName: "filterValue" }] : /* istanbul ignore next */ []));
|
|
847
|
+
/**
|
|
848
|
+
* Whether all data is selected.
|
|
849
|
+
* @group Props
|
|
850
|
+
*/
|
|
851
|
+
selectAll = input(null, /* @ts-ignore */
|
|
852
|
+
...(ngDevMode ? [{ debugName: "selectAll" }] : /* istanbul ignore next */ []));
|
|
853
|
+
/**
|
|
854
|
+
* Indicates whether to focus on options when hovering over them, defaults to optionLabel.
|
|
855
|
+
* @group Props
|
|
856
|
+
*/
|
|
857
|
+
focusOnHover = input(true, { ...(ngDevMode ? { debugName: "focusOnHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
858
|
+
/**
|
|
859
|
+
* Fields used when filtering the options, defaults to optionLabel.
|
|
860
|
+
* @group Props
|
|
861
|
+
*/
|
|
862
|
+
filterFields = input(/* @ts-ignore */
|
|
863
|
+
...(ngDevMode ? [undefined, { debugName: "filterFields" }] : /* istanbul ignore next */ []));
|
|
864
|
+
/**
|
|
865
|
+
* Determines if the option will be selected on focus.
|
|
866
|
+
* @group Props
|
|
867
|
+
*/
|
|
868
|
+
selectOnFocus = input(false, { ...(ngDevMode ? { debugName: "selectOnFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
869
|
+
/**
|
|
870
|
+
* Whether to focus on the first visible or selected element when the overlay panel is shown.
|
|
871
|
+
* @group Props
|
|
872
|
+
*/
|
|
873
|
+
autoOptionFocus = input(false, { ...(ngDevMode ? { debugName: "autoOptionFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
874
|
+
/**
|
|
875
|
+
* Whether the selected option will be add highlight class.
|
|
876
|
+
* @group Props
|
|
877
|
+
*/
|
|
878
|
+
highlightOnSelect = input(true, { ...(ngDevMode ? { debugName: "highlightOnSelect" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
879
|
+
/**
|
|
880
|
+
* Specifies the size of the component.
|
|
881
|
+
* @defaultValue undefined
|
|
882
|
+
* @group Props
|
|
883
|
+
*/
|
|
884
|
+
size = input(/* @ts-ignore */
|
|
885
|
+
...(ngDevMode ? [undefined, { debugName: "size" }] : /* istanbul ignore next */ []));
|
|
886
|
+
/**
|
|
887
|
+
* Specifies the input variant of the component.
|
|
888
|
+
* @defaultValue undefined
|
|
889
|
+
* @group Props
|
|
890
|
+
*/
|
|
891
|
+
variant = input(/* @ts-ignore */
|
|
892
|
+
...(ngDevMode ? [undefined, { debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
893
|
+
/**
|
|
894
|
+
* Spans 100% width of the container when enabled.
|
|
895
|
+
* @defaultValue undefined
|
|
896
|
+
* @group Props
|
|
897
|
+
*/
|
|
898
|
+
fluid = input(undefined, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
899
|
+
/**
|
|
900
|
+
* Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
|
|
901
|
+
* @defaultValue 'self'
|
|
902
|
+
* @group Props
|
|
903
|
+
*/
|
|
904
|
+
appendTo = input(undefined, /* @ts-ignore */
|
|
905
|
+
...(ngDevMode ? [{ debugName: "appendTo" }] : /* istanbul ignore next */ []));
|
|
906
|
+
/**
|
|
907
|
+
* The motion options.
|
|
908
|
+
* @group Props
|
|
909
|
+
*/
|
|
910
|
+
motionOptions = input(undefined, /* @ts-ignore */
|
|
911
|
+
...(ngDevMode ? [{ debugName: "motionOptions" }] : /* istanbul ignore next */ []));
|
|
912
|
+
/**
|
|
913
|
+
* Callback to invoke when value changes.
|
|
914
|
+
* @param {MultiSelectChangeEvent} event - Custom change event.
|
|
915
|
+
* @group Emits
|
|
916
|
+
*/
|
|
917
|
+
onChange = output();
|
|
918
|
+
/**
|
|
919
|
+
* Callback to invoke when data is filtered.
|
|
920
|
+
* @param {MultiSelectFilterEvent} event - Custom filter event.
|
|
921
|
+
* @group Emits
|
|
922
|
+
*/
|
|
923
|
+
onFilter = output();
|
|
924
|
+
/**
|
|
925
|
+
* Callback to invoke when multiselect receives focus.
|
|
926
|
+
* @param {MultiSelectFocusEvent} event - Custom focus event.
|
|
927
|
+
* @group Emits
|
|
928
|
+
*/
|
|
929
|
+
onFocus = output();
|
|
930
|
+
/**
|
|
931
|
+
* Callback to invoke when multiselect loses focus.
|
|
932
|
+
* @param {MultiSelectBlurEvent} event - Custom blur event.
|
|
933
|
+
* @group Emits
|
|
934
|
+
*/
|
|
935
|
+
onBlur = output();
|
|
936
|
+
/**
|
|
937
|
+
* Callback to invoke when component is clicked.
|
|
938
|
+
* @param {Event} event - Browser event.
|
|
939
|
+
* @group Emits
|
|
940
|
+
*/
|
|
941
|
+
onClick = output();
|
|
942
|
+
/**
|
|
943
|
+
* Callback to invoke when input field is cleared.
|
|
944
|
+
* @group Emits
|
|
945
|
+
*/
|
|
946
|
+
onClear = output();
|
|
947
|
+
/**
|
|
948
|
+
* Callback to invoke when overlay panel becomes visible.
|
|
949
|
+
* @param {AnimationEvent} event - Animation event.
|
|
950
|
+
* @group Emits
|
|
951
|
+
*/
|
|
952
|
+
onPanelShow = output();
|
|
953
|
+
/**
|
|
954
|
+
* Callback to invoke when overlay panel becomes hidden.
|
|
955
|
+
* @param {AnimationEvent} event - Animation event.
|
|
956
|
+
* @group Emits
|
|
957
|
+
*/
|
|
958
|
+
onPanelHide = output();
|
|
959
|
+
/**
|
|
960
|
+
* Callback to invoke in lazy mode to load new data.
|
|
961
|
+
* @param {MultiSelectLazyLoadEvent} event - Lazy load event.
|
|
962
|
+
* @group Emits
|
|
963
|
+
*/
|
|
964
|
+
onLazyLoad = output();
|
|
965
|
+
/**
|
|
966
|
+
* Callback to invoke in lazy mode to load new data.
|
|
967
|
+
* @param {MultiSelectRemoveEvent} event - Remove event.
|
|
968
|
+
* @group Emits
|
|
969
|
+
*/
|
|
970
|
+
onRemove = output();
|
|
971
|
+
/**
|
|
972
|
+
* Callback to invoke when all data is selected.
|
|
973
|
+
* @param {MultiSelectSelectAllChangeEvent} event - Custom select event.
|
|
974
|
+
* @group Emits
|
|
975
|
+
*/
|
|
976
|
+
onSelectAllChange = output();
|
|
977
|
+
overlayViewChild = viewChild('overlay', /* @ts-ignore */
|
|
978
|
+
...(ngDevMode ? [{ debugName: "overlayViewChild" }] : /* istanbul ignore next */ []));
|
|
979
|
+
filterInputChild = viewChild('filterInput', /* @ts-ignore */
|
|
980
|
+
...(ngDevMode ? [{ debugName: "filterInputChild" }] : /* istanbul ignore next */ []));
|
|
981
|
+
focusInputViewChild = viewChild('focusInput', /* @ts-ignore */
|
|
982
|
+
...(ngDevMode ? [{ debugName: "focusInputViewChild" }] : /* istanbul ignore next */ []));
|
|
983
|
+
itemsViewChild = viewChild('items', /* @ts-ignore */
|
|
984
|
+
...(ngDevMode ? [{ debugName: "itemsViewChild" }] : /* istanbul ignore next */ []));
|
|
985
|
+
scroller = viewChild('scroller', /* @ts-ignore */
|
|
986
|
+
...(ngDevMode ? [{ debugName: "scroller" }] : /* istanbul ignore next */ []));
|
|
987
|
+
lastHiddenFocusableElementOnOverlay = viewChild('lastHiddenFocusableEl', /* @ts-ignore */
|
|
988
|
+
...(ngDevMode ? [{ debugName: "lastHiddenFocusableElementOnOverlay" }] : /* istanbul ignore next */ []));
|
|
989
|
+
firstHiddenFocusableElementOnOverlay = viewChild('firstHiddenFocusableEl', /* @ts-ignore */
|
|
990
|
+
...(ngDevMode ? [{ debugName: "firstHiddenFocusableElementOnOverlay" }] : /* istanbul ignore next */ []));
|
|
991
|
+
headerCheckboxViewChild = viewChild('headerCheckbox', /* @ts-ignore */
|
|
992
|
+
...(ngDevMode ? [{ debugName: "headerCheckboxViewChild" }] : /* istanbul ignore next */ []));
|
|
993
|
+
footerFacet = contentChild(Footer, /* @ts-ignore */
|
|
994
|
+
...(ngDevMode ? [{ debugName: "footerFacet" }] : /* istanbul ignore next */ []));
|
|
995
|
+
headerFacet = contentChild(Header, /* @ts-ignore */
|
|
996
|
+
...(ngDevMode ? [{ debugName: "headerFacet" }] : /* istanbul ignore next */ []));
|
|
997
|
+
_componentStyle = inject(MultiSelectStyle);
|
|
998
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
999
|
+
searchValue;
|
|
1000
|
+
searchTimeout;
|
|
1001
|
+
_disableTooltip = false;
|
|
1002
|
+
value;
|
|
1003
|
+
_filteredOptions;
|
|
1004
|
+
focus;
|
|
1005
|
+
filtered;
|
|
1006
|
+
/**
|
|
1007
|
+
* Custom item template.
|
|
1008
|
+
* @group Templates
|
|
1009
|
+
*/
|
|
1010
|
+
itemTemplate = contentChild('item', { ...(ngDevMode ? { debugName: "itemTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1011
|
+
/**
|
|
1012
|
+
* Custom group template.
|
|
1013
|
+
* @group Templates
|
|
1014
|
+
*/
|
|
1015
|
+
groupTemplate = contentChild('group', { ...(ngDevMode ? { debugName: "groupTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1016
|
+
/**
|
|
1017
|
+
* Custom loader template.
|
|
1018
|
+
* @group Templates
|
|
1019
|
+
*/
|
|
1020
|
+
loaderTemplate = contentChild('loader', { ...(ngDevMode ? { debugName: "loaderTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1021
|
+
/**
|
|
1022
|
+
* Custom header template.
|
|
1023
|
+
* @group Templates
|
|
1024
|
+
*/
|
|
1025
|
+
headerTemplate = contentChild('header', { ...(ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1026
|
+
/**
|
|
1027
|
+
* Custom filter template.
|
|
1028
|
+
* @group Templates
|
|
1029
|
+
*/
|
|
1030
|
+
filterTemplate = contentChild('filter', { ...(ngDevMode ? { debugName: "filterTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1031
|
+
/**
|
|
1032
|
+
* Custom footer template.
|
|
1033
|
+
* @group Templates
|
|
1034
|
+
*/
|
|
1035
|
+
footerTemplate = contentChild('footer', { ...(ngDevMode ? { debugName: "footerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1036
|
+
/**
|
|
1037
|
+
* Custom empty filter template.
|
|
1038
|
+
* @group Templates
|
|
1039
|
+
*/
|
|
1040
|
+
emptyFilterTemplate = contentChild('emptyfilter', { ...(ngDevMode ? { debugName: "emptyFilterTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1041
|
+
/**
|
|
1042
|
+
* Custom empty template.
|
|
1043
|
+
* @group Templates
|
|
1044
|
+
*/
|
|
1045
|
+
emptyTemplate = contentChild('empty', { ...(ngDevMode ? { debugName: "emptyTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1046
|
+
/**
|
|
1047
|
+
* Custom selected items template.
|
|
1048
|
+
* @group Templates
|
|
1049
|
+
*/
|
|
1050
|
+
selectedItemsTemplate = contentChild('selecteditems', { ...(ngDevMode ? { debugName: "selectedItemsTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1051
|
+
/**
|
|
1052
|
+
* Custom loading icon template.
|
|
1053
|
+
* @group Templates
|
|
1054
|
+
*/
|
|
1055
|
+
loadingIconTemplate = contentChild('loadingicon', { ...(ngDevMode ? { debugName: "loadingIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1056
|
+
/**
|
|
1057
|
+
* Custom filter icon template.
|
|
1058
|
+
* @group Templates
|
|
1059
|
+
*/
|
|
1060
|
+
filterIconTemplate = contentChild('filtericon', { ...(ngDevMode ? { debugName: "filterIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1061
|
+
/**
|
|
1062
|
+
* Custom remove token icon template.
|
|
1063
|
+
* @group Templates
|
|
1064
|
+
*/
|
|
1065
|
+
removeTokenIconTemplate = contentChild('removetokenicon', { ...(ngDevMode ? { debugName: "removeTokenIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1066
|
+
/**
|
|
1067
|
+
* Custom chip icon template.
|
|
1068
|
+
* @group Templates
|
|
1069
|
+
*/
|
|
1070
|
+
chipIconTemplate = contentChild('chipicon', { ...(ngDevMode ? { debugName: "chipIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1071
|
+
/**
|
|
1072
|
+
* Custom clear icon template.
|
|
1073
|
+
* @group Templates
|
|
1074
|
+
*/
|
|
1075
|
+
clearIconTemplate = contentChild('clearicon', { ...(ngDevMode ? { debugName: "clearIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1076
|
+
/**
|
|
1077
|
+
* Custom dropdown icon template.
|
|
1078
|
+
* @group Templates
|
|
1079
|
+
*/
|
|
1080
|
+
dropdownIconTemplate = contentChild('dropdownicon', { ...(ngDevMode ? { debugName: "dropdownIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1081
|
+
/**
|
|
1082
|
+
* Custom item checkbox icon template.
|
|
1083
|
+
* @group Templates
|
|
1084
|
+
*/
|
|
1085
|
+
itemCheckboxIconTemplate = contentChild('itemcheckboxicon', { ...(ngDevMode ? { debugName: "itemCheckboxIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1086
|
+
/**
|
|
1087
|
+
* Custom header checkbox icon template.
|
|
1088
|
+
* @group Templates
|
|
1089
|
+
*/
|
|
1090
|
+
headerCheckboxIconTemplate = contentChild('headercheckboxicon', { ...(ngDevMode ? { debugName: "headerCheckboxIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1091
|
+
templates = contentChildren(HelixTemplate, /* @ts-ignore */
|
|
1092
|
+
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
1093
|
+
_itemTemplate;
|
|
1094
|
+
_groupTemplate;
|
|
1095
|
+
_loaderTemplate;
|
|
1096
|
+
_headerTemplate;
|
|
1097
|
+
_filterTemplate;
|
|
1098
|
+
_footerTemplate;
|
|
1099
|
+
_emptyFilterTemplate;
|
|
1100
|
+
_emptyTemplate;
|
|
1101
|
+
_selectedItemsTemplate;
|
|
1102
|
+
_loadingIconTemplate;
|
|
1103
|
+
_filterIconTemplate;
|
|
1104
|
+
_removeTokenIconTemplate;
|
|
1105
|
+
_chipIconTemplate;
|
|
1106
|
+
_clearIconTemplate;
|
|
1107
|
+
_dropdownIconTemplate;
|
|
1108
|
+
_itemCheckboxIconTemplate;
|
|
1109
|
+
_headerCheckboxIconTemplate;
|
|
1110
|
+
$variant = computed(() => this.variant() || this.config.inputStyle() || this.config.inputVariant(), /* @ts-ignore */
|
|
1111
|
+
...(ngDevMode ? [{ debugName: "$variant" }] : /* istanbul ignore next */ []));
|
|
1112
|
+
$appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
|
|
1113
|
+
...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
|
|
1114
|
+
$pcMultiSelect = inject(MULTISELECT_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
1115
|
+
pcFluid = inject(Fluid, { optional: true, host: true, skipSelf: true });
|
|
1116
|
+
get hasFluid() {
|
|
1117
|
+
return this.fluid() ?? !!this.pcFluid;
|
|
1118
|
+
}
|
|
1119
|
+
onAfterContentInit() {
|
|
1120
|
+
this.templates().forEach((item) => {
|
|
1121
|
+
switch (item.getType()) {
|
|
1122
|
+
case 'item':
|
|
1123
|
+
this._itemTemplate = item.template;
|
|
1124
|
+
break;
|
|
1125
|
+
case 'group':
|
|
1126
|
+
this._groupTemplate = item.template;
|
|
1127
|
+
break;
|
|
1128
|
+
case 'selectedItems':
|
|
1129
|
+
case 'selecteditems':
|
|
1130
|
+
this._selectedItemsTemplate = item.template;
|
|
1131
|
+
break;
|
|
1132
|
+
case 'header':
|
|
1133
|
+
this._headerTemplate = item.template;
|
|
1134
|
+
break;
|
|
1135
|
+
case 'filter':
|
|
1136
|
+
this._filterTemplate = item.template;
|
|
1137
|
+
break;
|
|
1138
|
+
case 'emptyfilter':
|
|
1139
|
+
this._emptyFilterTemplate = item.template;
|
|
1140
|
+
break;
|
|
1141
|
+
case 'empty':
|
|
1142
|
+
this._emptyTemplate = item.template;
|
|
1143
|
+
break;
|
|
1144
|
+
case 'footer':
|
|
1145
|
+
this._footerTemplate = item.template;
|
|
1146
|
+
break;
|
|
1147
|
+
case 'loader':
|
|
1148
|
+
this._loaderTemplate = item.template;
|
|
1149
|
+
break;
|
|
1150
|
+
case 'headercheckboxicon':
|
|
1151
|
+
this._headerCheckboxIconTemplate = item.template;
|
|
1152
|
+
break;
|
|
1153
|
+
case 'loadingicon':
|
|
1154
|
+
this._loadingIconTemplate = item.template;
|
|
1155
|
+
break;
|
|
1156
|
+
case 'filtericon':
|
|
1157
|
+
this._filterIconTemplate = item.template;
|
|
1158
|
+
break;
|
|
1159
|
+
case 'removetokenicon':
|
|
1160
|
+
this._removeTokenIconTemplate = item.template;
|
|
1161
|
+
break;
|
|
1162
|
+
case 'clearicon':
|
|
1163
|
+
this._clearIconTemplate = item.template;
|
|
1164
|
+
break;
|
|
1165
|
+
case 'dropdownicon':
|
|
1166
|
+
this._dropdownIconTemplate = item.template;
|
|
1167
|
+
break;
|
|
1168
|
+
case 'itemcheckboxicon':
|
|
1169
|
+
this._itemCheckboxIconTemplate = item.template;
|
|
1170
|
+
break;
|
|
1171
|
+
case 'chipicon':
|
|
1172
|
+
this._chipIconTemplate = item.template;
|
|
1173
|
+
break;
|
|
1174
|
+
default:
|
|
1175
|
+
this._itemTemplate = item.template;
|
|
1176
|
+
break;
|
|
1177
|
+
}
|
|
1178
|
+
});
|
|
1179
|
+
}
|
|
1180
|
+
headerCheckboxFocus;
|
|
1181
|
+
filterOptions;
|
|
1182
|
+
preventModelTouched;
|
|
1183
|
+
focused = false;
|
|
1184
|
+
itemsWrapper;
|
|
1185
|
+
modelValue = signal(null, /* @ts-ignore */
|
|
1186
|
+
...(ngDevMode ? [{ debugName: "modelValue" }] : /* istanbul ignore next */ []));
|
|
1187
|
+
_filterValue = signal(null, /* @ts-ignore */
|
|
1188
|
+
...(ngDevMode ? [{ debugName: "_filterValue" }] : /* istanbul ignore next */ []));
|
|
1189
|
+
_options = signal([], /* @ts-ignore */
|
|
1190
|
+
...(ngDevMode ? [{ debugName: "_options" }] : /* istanbul ignore next */ []));
|
|
1191
|
+
startRangeIndex = signal(-1, /* @ts-ignore */
|
|
1192
|
+
...(ngDevMode ? [{ debugName: "startRangeIndex" }] : /* istanbul ignore next */ []));
|
|
1193
|
+
focusedOptionIndex = signal(-1, /* @ts-ignore */
|
|
1194
|
+
...(ngDevMode ? [{ debugName: "focusedOptionIndex" }] : /* istanbul ignore next */ []));
|
|
1195
|
+
selectedOptions;
|
|
1196
|
+
clickInProgress = false;
|
|
1197
|
+
get emptyMessageLabel() {
|
|
1198
|
+
return this.emptyMessage() || this.config.getTranslation(TranslationKeys.EMPTY_MESSAGE);
|
|
1199
|
+
}
|
|
1200
|
+
get emptyFilterMessageLabel() {
|
|
1201
|
+
return this.emptyFilterMessage() || this.config.getTranslation(TranslationKeys.EMPTY_FILTER_MESSAGE);
|
|
1202
|
+
}
|
|
1203
|
+
get isVisibleClearIcon() {
|
|
1204
|
+
return this.modelValue() != null && this.modelValue() !== '' && isNotEmpty(this.modelValue()) && this.showClear() && !this.$disabled() && !this.readonly() && this.$filled();
|
|
1205
|
+
}
|
|
1206
|
+
get toggleAllAriaLabel() {
|
|
1207
|
+
return this.config.translation.aria ? this.config.translation.aria[this.allSelected() ? 'selectAll' : 'unselectAll'] : undefined;
|
|
1208
|
+
}
|
|
1209
|
+
get listLabel() {
|
|
1210
|
+
return this.config.getTranslation(TranslationKeys.ARIA)['listLabel'];
|
|
1211
|
+
}
|
|
1212
|
+
getAllVisibleAndNonVisibleOptions() {
|
|
1213
|
+
return this.group() ? this.flatOptions(this.options()) : this.options() || [];
|
|
1214
|
+
}
|
|
1215
|
+
visibleOptions = computed(() => {
|
|
1216
|
+
const options = this.getAllVisibleAndNonVisibleOptions();
|
|
1217
|
+
const isArrayOfObjects = isArray(options) && ObjectUtils.isObject(options[0]);
|
|
1218
|
+
if (this._filterValue()) {
|
|
1219
|
+
let filteredOptions;
|
|
1220
|
+
if (isArrayOfObjects) {
|
|
1221
|
+
filteredOptions = this.filterService.filter(options, this.searchFields(), this._filterValue(), this.filterMatchMode(), this.filterLocale());
|
|
1222
|
+
}
|
|
1223
|
+
else {
|
|
1224
|
+
filteredOptions = options.filter((option) => option.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase()));
|
|
1225
|
+
}
|
|
1226
|
+
if (this.group()) {
|
|
1227
|
+
const optionGroups = this.options() || [];
|
|
1228
|
+
const filtered = [];
|
|
1229
|
+
optionGroups.forEach((group) => {
|
|
1230
|
+
const groupChildren = this.getOptionGroupChildren(group);
|
|
1231
|
+
const filteredItems = groupChildren.filter((item) => filteredOptions.includes(item));
|
|
1232
|
+
const optionGroupChildren = this.optionGroupChildren();
|
|
1233
|
+
if (filteredItems.length > 0)
|
|
1234
|
+
filtered.push({
|
|
1235
|
+
...group,
|
|
1236
|
+
[typeof optionGroupChildren === 'string' ? optionGroupChildren : 'items']: [...filteredItems]
|
|
1237
|
+
});
|
|
1238
|
+
});
|
|
1239
|
+
return this.flatOptions(filtered);
|
|
1240
|
+
}
|
|
1241
|
+
return filteredOptions;
|
|
1242
|
+
}
|
|
1243
|
+
return options;
|
|
1244
|
+
}, /* @ts-ignore */
|
|
1245
|
+
...(ngDevMode ? [{ debugName: "visibleOptions" }] : /* istanbul ignore next */ []));
|
|
1246
|
+
label = computed(() => {
|
|
1247
|
+
let label;
|
|
1248
|
+
const modelValue = this.modelValue();
|
|
1249
|
+
if (modelValue && modelValue?.length && this.displaySelectedLabel()) {
|
|
1250
|
+
if (isNotEmpty(this.maxSelectedLabels()) && modelValue?.length > (this.maxSelectedLabels() || 0)) {
|
|
1251
|
+
return this.getSelectedItemsLabel();
|
|
1252
|
+
}
|
|
1253
|
+
else {
|
|
1254
|
+
label = '';
|
|
1255
|
+
for (let i = 0; i < modelValue.length; i++) {
|
|
1256
|
+
if (i !== 0) {
|
|
1257
|
+
label += ', ';
|
|
1258
|
+
}
|
|
1259
|
+
label += this.getLabelByValue(modelValue[i]);
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
else {
|
|
1264
|
+
label = this.placeholder() || '';
|
|
1265
|
+
}
|
|
1266
|
+
return label;
|
|
1267
|
+
}, /* @ts-ignore */
|
|
1268
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
1269
|
+
chipSelectedItems = computed(() => {
|
|
1270
|
+
return isNotEmpty(this.maxSelectedLabels()) && this.modelValue() && this.modelValue()?.length > (this.maxSelectedLabels() || 0) ? this.modelValue()?.slice(0, this.maxSelectedLabels()) : this.modelValue();
|
|
1271
|
+
}, /* @ts-ignore */
|
|
1272
|
+
...(ngDevMode ? [{ debugName: "chipSelectedItems" }] : /* istanbul ignore next */ []));
|
|
1273
|
+
constructor(zone, filterService, overlayService) {
|
|
1274
|
+
super();
|
|
1275
|
+
this.zone = zone;
|
|
1276
|
+
this.filterService = filterService;
|
|
1277
|
+
this.overlayService = overlayService;
|
|
1278
|
+
effect(() => {
|
|
1279
|
+
const modelValue = this.modelValue();
|
|
1280
|
+
const allVisibleAndNonVisibleOptions = this.getAllVisibleAndNonVisibleOptions();
|
|
1281
|
+
if (allVisibleAndNonVisibleOptions && isNotEmpty(allVisibleAndNonVisibleOptions)) {
|
|
1282
|
+
if (this.optionValue() && this.optionLabel() && modelValue) {
|
|
1283
|
+
this.selectedOptions = allVisibleAndNonVisibleOptions.filter((option) => modelValue.includes(option[this.optionLabel()]) || modelValue.includes(option[this.optionValue()]));
|
|
1284
|
+
}
|
|
1285
|
+
else {
|
|
1286
|
+
this.selectedOptions = modelValue;
|
|
1287
|
+
}
|
|
1288
|
+
this.cd.markForCheck();
|
|
1289
|
+
}
|
|
1290
|
+
});
|
|
1291
|
+
effect(() => {
|
|
1292
|
+
const val = this.options();
|
|
1293
|
+
if (!deepEquals(this._options(), val)) {
|
|
1294
|
+
this._options.set(val || []);
|
|
1295
|
+
}
|
|
1296
|
+
});
|
|
1297
|
+
effect(() => {
|
|
1298
|
+
this._filterValue.set(this.filterValue());
|
|
1299
|
+
});
|
|
1300
|
+
}
|
|
1301
|
+
onInit() {
|
|
1302
|
+
this.autoUpdateModel();
|
|
1303
|
+
if (this.filterBy()) {
|
|
1304
|
+
this.filterOptions = {
|
|
1305
|
+
filter: (value) => this.onFilterInputChange(value),
|
|
1306
|
+
reset: () => this.resetFilter()
|
|
1307
|
+
};
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
maxSelectionLimitReached() {
|
|
1311
|
+
const selectionLimit = this.selectionLimit();
|
|
1312
|
+
return selectionLimit && this.modelValue() && this.modelValue().length === selectionLimit;
|
|
1313
|
+
}
|
|
1314
|
+
onAfterViewInit() {
|
|
1315
|
+
if (this.overlayVisible) {
|
|
1316
|
+
this.show();
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
onAfterViewChecked() {
|
|
1320
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1321
|
+
if (this.filtered) {
|
|
1322
|
+
this.zone.runOutsideAngular(() => {
|
|
1323
|
+
setTimeout(() => {
|
|
1324
|
+
this.overlayViewChild()?.alignOverlay();
|
|
1325
|
+
}, 1);
|
|
1326
|
+
});
|
|
1327
|
+
this.filtered = false;
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
flatOptions(options) {
|
|
1331
|
+
return (options || []).reduce((result, option, index) => {
|
|
1332
|
+
result.push({ optionGroup: option, group: true, index });
|
|
1333
|
+
const optionGroupChildren = this.getOptionGroupChildren(option);
|
|
1334
|
+
optionGroupChildren && optionGroupChildren.forEach((o) => result.push(o));
|
|
1335
|
+
return result;
|
|
1336
|
+
}, []);
|
|
1337
|
+
}
|
|
1338
|
+
autoUpdateModel() {
|
|
1339
|
+
if (this.selectOnFocus() && this.autoOptionFocus() && !this.hasSelectedOption()) {
|
|
1340
|
+
this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());
|
|
1341
|
+
const value = this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);
|
|
1342
|
+
this.onOptionSelect({ originalEvent: null, option: [value] });
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
/**
|
|
1346
|
+
* Updates the model value.
|
|
1347
|
+
* @group Method
|
|
1348
|
+
*/
|
|
1349
|
+
updateModel(value, event) {
|
|
1350
|
+
this.value = value;
|
|
1351
|
+
this.onModelChange(value);
|
|
1352
|
+
this.writeValue(value);
|
|
1353
|
+
}
|
|
1354
|
+
onInputClick(event) {
|
|
1355
|
+
event.stopPropagation();
|
|
1356
|
+
event.preventDefault();
|
|
1357
|
+
this.focusedOptionIndex.set(-1);
|
|
1358
|
+
}
|
|
1359
|
+
onOptionSelect(event, isFocus = false, index = -1) {
|
|
1360
|
+
const { originalEvent, option } = event;
|
|
1361
|
+
if (this.$disabled() || this.isOptionDisabled(option)) {
|
|
1362
|
+
return;
|
|
1363
|
+
}
|
|
1364
|
+
let selected = this.isSelected(option);
|
|
1365
|
+
let value = [];
|
|
1366
|
+
if (selected) {
|
|
1367
|
+
value = this.modelValue().filter((val) => !equals(val, this.getOptionValue(option), this.equalityKey() || ''));
|
|
1368
|
+
}
|
|
1369
|
+
else {
|
|
1370
|
+
value = [...(this.modelValue() || []), this.getOptionValue(option)];
|
|
1371
|
+
}
|
|
1372
|
+
this.updateModel(value, originalEvent);
|
|
1373
|
+
index !== -1 && this.focusedOptionIndex.set(index);
|
|
1374
|
+
isFocus && focus(this.focusInputViewChild()?.nativeElement);
|
|
1375
|
+
this.onChange.emit({
|
|
1376
|
+
originalEvent: event,
|
|
1377
|
+
value: value,
|
|
1378
|
+
itemValue: option
|
|
1379
|
+
});
|
|
1380
|
+
}
|
|
1381
|
+
findSelectedOptionIndex() {
|
|
1382
|
+
return this.hasSelectedOption() ? this.visibleOptions().findIndex((option) => this.isValidSelectedOption(option)) : -1;
|
|
1383
|
+
}
|
|
1384
|
+
onOptionSelectRange(event, start = -1, end = -1) {
|
|
1385
|
+
start === -1 && (start = this.findNearestSelectedOptionIndex(end, true));
|
|
1386
|
+
end === -1 && (end = this.findNearestSelectedOptionIndex(start));
|
|
1387
|
+
if (start !== -1 && end !== -1) {
|
|
1388
|
+
const rangeStart = Math.min(start, end);
|
|
1389
|
+
const rangeEnd = Math.max(start, end);
|
|
1390
|
+
const value = this.visibleOptions()
|
|
1391
|
+
.slice(rangeStart, rangeEnd + 1)
|
|
1392
|
+
.filter((option) => this.isValidOption(option))
|
|
1393
|
+
.map((option) => this.getOptionValue(option));
|
|
1394
|
+
this.updateModel(value, event);
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
searchFields() {
|
|
1398
|
+
return (this.filterBy() || this.optionLabel() || 'label').split(',');
|
|
1399
|
+
}
|
|
1400
|
+
findNearestSelectedOptionIndex(index, firstCheckUp = false) {
|
|
1401
|
+
let matchedOptionIndex = -1;
|
|
1402
|
+
if (this.hasSelectedOption()) {
|
|
1403
|
+
if (firstCheckUp) {
|
|
1404
|
+
matchedOptionIndex = this.findPrevSelectedOptionIndex(index);
|
|
1405
|
+
matchedOptionIndex = matchedOptionIndex === -1 ? this.findNextSelectedOptionIndex(index) : matchedOptionIndex;
|
|
1406
|
+
}
|
|
1407
|
+
else {
|
|
1408
|
+
matchedOptionIndex = this.findNextSelectedOptionIndex(index);
|
|
1409
|
+
matchedOptionIndex = matchedOptionIndex === -1 ? this.findPrevSelectedOptionIndex(index) : matchedOptionIndex;
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
1413
|
+
}
|
|
1414
|
+
findPrevSelectedOptionIndex(index) {
|
|
1415
|
+
const matchedOptionIndex = this.hasSelectedOption() && index > 0 ? findLastIndex(this.visibleOptions().slice(0, index), (option) => this.isValidSelectedOption(option)) : -1;
|
|
1416
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : -1;
|
|
1417
|
+
}
|
|
1418
|
+
findFirstFocusedOptionIndex() {
|
|
1419
|
+
const selectedIndex = this.findFirstSelectedOptionIndex();
|
|
1420
|
+
return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
|
|
1421
|
+
}
|
|
1422
|
+
findFirstOptionIndex() {
|
|
1423
|
+
return this.visibleOptions().findIndex((option) => this.isValidOption(option));
|
|
1424
|
+
}
|
|
1425
|
+
findFirstSelectedOptionIndex() {
|
|
1426
|
+
return this.hasSelectedOption() ? this.visibleOptions().findIndex((option) => this.isValidSelectedOption(option)) : -1;
|
|
1427
|
+
}
|
|
1428
|
+
findNextSelectedOptionIndex(index) {
|
|
1429
|
+
const matchedOptionIndex = this.hasSelectedOption() && index < this.visibleOptions().length - 1
|
|
1430
|
+
? this.visibleOptions()
|
|
1431
|
+
.slice(index + 1)
|
|
1432
|
+
.findIndex((option) => this.isValidSelectedOption(option))
|
|
1433
|
+
: -1;
|
|
1434
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;
|
|
1435
|
+
}
|
|
1436
|
+
equalityKey() {
|
|
1437
|
+
return this.optionValue() ? null : this.dataKey();
|
|
1438
|
+
}
|
|
1439
|
+
hasSelectedOption() {
|
|
1440
|
+
return isNotEmpty(this.modelValue());
|
|
1441
|
+
}
|
|
1442
|
+
isValidSelectedOption(option) {
|
|
1443
|
+
return this.isValidOption(option) && this.isSelected(option);
|
|
1444
|
+
}
|
|
1445
|
+
isOptionGroup(option) {
|
|
1446
|
+
return option && (this.group() || this.optionGroupLabel()) && option.optionGroup && option.group;
|
|
1447
|
+
}
|
|
1448
|
+
isValidOption(option) {
|
|
1449
|
+
return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
1450
|
+
}
|
|
1451
|
+
isOptionDisabled(option) {
|
|
1452
|
+
if (this.maxSelectionLimitReached() && !this.isSelected(option)) {
|
|
1453
|
+
return true;
|
|
1454
|
+
}
|
|
1455
|
+
const optionDisabled = this.optionDisabled();
|
|
1456
|
+
return optionDisabled ? resolveFieldData(option, optionDisabled) : option && option.disabled !== undefined ? option.disabled : false;
|
|
1457
|
+
}
|
|
1458
|
+
isSelected(option) {
|
|
1459
|
+
const optionValue = this.getOptionValue(option);
|
|
1460
|
+
return (this.modelValue() || []).some((value) => equals(value, optionValue, this.equalityKey() || ''));
|
|
1461
|
+
}
|
|
1462
|
+
isOptionMatched(option) {
|
|
1463
|
+
return this.isValidOption(option) && this.getOptionLabel(option).toString().toLocaleLowerCase(this.filterLocale()).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale()));
|
|
1464
|
+
}
|
|
1465
|
+
isEmpty() {
|
|
1466
|
+
return !this._options() || (this.visibleOptions() && this.visibleOptions().length === 0);
|
|
1467
|
+
}
|
|
1468
|
+
getOptionIndex(index, scrollerOptions) {
|
|
1469
|
+
return this.virtualScrollerDisabled ? index : scrollerOptions && scrollerOptions.getItemOptions(index)['index'];
|
|
1470
|
+
}
|
|
1471
|
+
getAriaPosInset(index) {
|
|
1472
|
+
return ((this.optionGroupLabel()
|
|
1473
|
+
? index -
|
|
1474
|
+
this.visibleOptions()
|
|
1475
|
+
.slice(0, index)
|
|
1476
|
+
.filter((option) => this.isOptionGroup(option)).length
|
|
1477
|
+
: index) + 1);
|
|
1478
|
+
}
|
|
1479
|
+
get ariaSetSize() {
|
|
1480
|
+
return this.visibleOptions().filter((option) => !this.isOptionGroup(option)).length;
|
|
1481
|
+
}
|
|
1482
|
+
getLabelByValue(value) {
|
|
1483
|
+
const options = this.group() ? this.flatOptions(this._options()) : this._options() || [];
|
|
1484
|
+
const matchedOption = options.find((option) => !this.isOptionGroup(option) && equals(this.getOptionValue(option), value, this.equalityKey() || ''));
|
|
1485
|
+
return matchedOption ? this.getOptionLabel(matchedOption) : null;
|
|
1486
|
+
}
|
|
1487
|
+
getSelectedItemsLabel() {
|
|
1488
|
+
let pattern = /{(.*?)}/;
|
|
1489
|
+
const selectedItemsLabel = this.selectedItemsLabel();
|
|
1490
|
+
let message = selectedItemsLabel ? selectedItemsLabel : this.config.getTranslation(TranslationKeys.SELECTION_MESSAGE);
|
|
1491
|
+
if (pattern.test(message)) {
|
|
1492
|
+
return message.replace(message.match(pattern)[0], this.modelValue().length + '');
|
|
1493
|
+
}
|
|
1494
|
+
return message;
|
|
1495
|
+
}
|
|
1496
|
+
getOptionLabel(option) {
|
|
1497
|
+
const optionLabel = this.optionLabel();
|
|
1498
|
+
return optionLabel ? resolveFieldData(option, optionLabel) : option && option.label != undefined ? option.label : option;
|
|
1499
|
+
}
|
|
1500
|
+
getOptionValue(option) {
|
|
1501
|
+
const optionValue = this.optionValue();
|
|
1502
|
+
return optionValue ? resolveFieldData(option, optionValue) : !this.optionLabel() && option && option.value !== undefined ? option.value : option;
|
|
1503
|
+
}
|
|
1504
|
+
getOptionGroupLabel(optionGroup) {
|
|
1505
|
+
const optionGroupLabel = this.optionGroupLabel();
|
|
1506
|
+
return optionGroupLabel ? resolveFieldData(optionGroup, optionGroupLabel) : optionGroup && optionGroup.label != undefined ? optionGroup.label : optionGroup;
|
|
1507
|
+
}
|
|
1508
|
+
getOptionGroupChildren(optionGroup) {
|
|
1509
|
+
const optionGroupChildren = this.optionGroupChildren();
|
|
1510
|
+
return optionGroup ? (optionGroupChildren ? resolveFieldData(optionGroup, optionGroupChildren) : optionGroup.items) : [];
|
|
1511
|
+
}
|
|
1512
|
+
onKeyDown(event) {
|
|
1513
|
+
if (this.$disabled()) {
|
|
1514
|
+
event.preventDefault();
|
|
1515
|
+
return;
|
|
1516
|
+
}
|
|
1517
|
+
const metaKey = event.metaKey || event.ctrlKey;
|
|
1518
|
+
switch (event.code) {
|
|
1519
|
+
case 'ArrowDown':
|
|
1520
|
+
this.onArrowDownKey(event);
|
|
1521
|
+
break;
|
|
1522
|
+
case 'ArrowUp':
|
|
1523
|
+
this.onArrowUpKey(event);
|
|
1524
|
+
break;
|
|
1525
|
+
case 'Home':
|
|
1526
|
+
this.onHomeKey(event);
|
|
1527
|
+
break;
|
|
1528
|
+
case 'End':
|
|
1529
|
+
this.onEndKey(event);
|
|
1530
|
+
break;
|
|
1531
|
+
case 'PageDown':
|
|
1532
|
+
this.onPageDownKey(event);
|
|
1533
|
+
break;
|
|
1534
|
+
case 'PageUp':
|
|
1535
|
+
this.onPageUpKey(event);
|
|
1536
|
+
break;
|
|
1537
|
+
case 'Enter':
|
|
1538
|
+
case 'Space':
|
|
1539
|
+
this.onEnterKey(event);
|
|
1540
|
+
break;
|
|
1541
|
+
case 'Escape':
|
|
1542
|
+
this.onEscapeKey(event);
|
|
1543
|
+
break;
|
|
1544
|
+
case 'Tab':
|
|
1545
|
+
this.onTabKey(event);
|
|
1546
|
+
break;
|
|
1547
|
+
case 'ShiftLeft':
|
|
1548
|
+
case 'ShiftRight':
|
|
1549
|
+
this.onShiftKey();
|
|
1550
|
+
break;
|
|
1551
|
+
default:
|
|
1552
|
+
if (event.code === 'KeyA' && metaKey) {
|
|
1553
|
+
const value = this.visibleOptions()
|
|
1554
|
+
.filter((option) => this.isValidOption(option))
|
|
1555
|
+
.map((option) => this.getOptionValue(option));
|
|
1556
|
+
this.updateModel(value, event);
|
|
1557
|
+
event.preventDefault();
|
|
1558
|
+
break;
|
|
1559
|
+
}
|
|
1560
|
+
if (!metaKey && isPrintableCharacter(event.key)) {
|
|
1561
|
+
!this.overlayVisible && this.show();
|
|
1562
|
+
this.searchOptions(event, event.key);
|
|
1563
|
+
event.preventDefault();
|
|
1564
|
+
}
|
|
1565
|
+
break;
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
onFilterKeyDown(event) {
|
|
1569
|
+
switch (event.code) {
|
|
1570
|
+
case 'ArrowDown':
|
|
1571
|
+
this.onArrowDownKey(event);
|
|
1572
|
+
break;
|
|
1573
|
+
case 'ArrowUp':
|
|
1574
|
+
this.onArrowUpKey(event, true);
|
|
1575
|
+
break;
|
|
1576
|
+
case 'ArrowLeft':
|
|
1577
|
+
case 'ArrowRight':
|
|
1578
|
+
this.onArrowLeftKey(event, true);
|
|
1579
|
+
break;
|
|
1580
|
+
case 'Home':
|
|
1581
|
+
this.onHomeKey(event, true);
|
|
1582
|
+
break;
|
|
1583
|
+
case 'End':
|
|
1584
|
+
this.onEndKey(event, true);
|
|
1585
|
+
break;
|
|
1586
|
+
case 'Enter':
|
|
1587
|
+
case 'NumpadEnter':
|
|
1588
|
+
this.onEnterKey(event);
|
|
1589
|
+
break;
|
|
1590
|
+
case 'Escape':
|
|
1591
|
+
this.onEscapeKey(event);
|
|
1592
|
+
break;
|
|
1593
|
+
case 'Tab':
|
|
1594
|
+
this.onTabKey(event, true);
|
|
1595
|
+
break;
|
|
1596
|
+
default:
|
|
1597
|
+
break;
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
onArrowLeftKey(event, pressedInInputText = false) {
|
|
1601
|
+
pressedInInputText && this.focusedOptionIndex.set(-1);
|
|
1602
|
+
}
|
|
1603
|
+
onArrowDownKey(event) {
|
|
1604
|
+
const optionIndex = this.focusedOptionIndex() !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex()) : this.findFirstFocusedOptionIndex();
|
|
1605
|
+
if (event.shiftKey) {
|
|
1606
|
+
this.onOptionSelectRange(event, this.startRangeIndex(), optionIndex);
|
|
1607
|
+
}
|
|
1608
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
1609
|
+
!this.overlayVisible && this.show();
|
|
1610
|
+
event.preventDefault();
|
|
1611
|
+
event.stopPropagation();
|
|
1612
|
+
}
|
|
1613
|
+
onArrowUpKey(event, pressedInInputText = false) {
|
|
1614
|
+
if (event.altKey && !pressedInInputText) {
|
|
1615
|
+
if (this.focusedOptionIndex() !== -1) {
|
|
1616
|
+
this.onOptionSelect(event, this.visibleOptions()[this.focusedOptionIndex()]);
|
|
1617
|
+
}
|
|
1618
|
+
this.overlayVisible && this.hide();
|
|
1619
|
+
event.preventDefault();
|
|
1620
|
+
}
|
|
1621
|
+
else {
|
|
1622
|
+
const optionIndex = this.focusedOptionIndex() !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex()) : this.findLastFocusedOptionIndex();
|
|
1623
|
+
if (event.shiftKey) {
|
|
1624
|
+
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex());
|
|
1625
|
+
}
|
|
1626
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
1627
|
+
!this.overlayVisible && this.show();
|
|
1628
|
+
event.preventDefault();
|
|
1629
|
+
}
|
|
1630
|
+
event.stopPropagation();
|
|
1631
|
+
}
|
|
1632
|
+
onHomeKey(event, pressedInInputText = false) {
|
|
1633
|
+
const { currentTarget } = event;
|
|
1634
|
+
if (pressedInInputText) {
|
|
1635
|
+
const len = currentTarget.value.length;
|
|
1636
|
+
currentTarget.setSelectionRange(0, event.shiftKey ? len : 0);
|
|
1637
|
+
this.focusedOptionIndex.set(-1);
|
|
1638
|
+
}
|
|
1639
|
+
else {
|
|
1640
|
+
let metaKey = event.metaKey || event.ctrlKey;
|
|
1641
|
+
let optionIndex = this.findFirstOptionIndex();
|
|
1642
|
+
if (event.shiftKey && metaKey) {
|
|
1643
|
+
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex());
|
|
1644
|
+
}
|
|
1645
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
1646
|
+
!this.overlayVisible && this.show();
|
|
1647
|
+
}
|
|
1648
|
+
event.preventDefault();
|
|
1649
|
+
}
|
|
1650
|
+
onEndKey(event, pressedInInputText = false) {
|
|
1651
|
+
const { currentTarget } = event;
|
|
1652
|
+
if (pressedInInputText) {
|
|
1653
|
+
const len = currentTarget.value.length;
|
|
1654
|
+
currentTarget.setSelectionRange(event.shiftKey ? 0 : len, len);
|
|
1655
|
+
this.focusedOptionIndex.set(-1);
|
|
1656
|
+
}
|
|
1657
|
+
else {
|
|
1658
|
+
let metaKey = event.metaKey || event.ctrlKey;
|
|
1659
|
+
let optionIndex = this.findLastFocusedOptionIndex();
|
|
1660
|
+
if (event.shiftKey && metaKey) {
|
|
1661
|
+
this.onOptionSelectRange(event, this.startRangeIndex(), optionIndex);
|
|
1662
|
+
}
|
|
1663
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
1664
|
+
!this.overlayVisible && this.show();
|
|
1665
|
+
}
|
|
1666
|
+
event.preventDefault();
|
|
1667
|
+
}
|
|
1668
|
+
onPageDownKey(event) {
|
|
1669
|
+
this.scrollInView(this.visibleOptions().length - 1);
|
|
1670
|
+
event.preventDefault();
|
|
1671
|
+
}
|
|
1672
|
+
onPageUpKey(event) {
|
|
1673
|
+
this.scrollInView(0);
|
|
1674
|
+
event.preventDefault();
|
|
1675
|
+
}
|
|
1676
|
+
onEnterKey(event) {
|
|
1677
|
+
if (!this.overlayVisible) {
|
|
1678
|
+
this.onArrowDownKey(event);
|
|
1679
|
+
}
|
|
1680
|
+
else {
|
|
1681
|
+
if (this.focusedOptionIndex() !== -1) {
|
|
1682
|
+
if (event.shiftKey) {
|
|
1683
|
+
this.onOptionSelectRange(event, this.focusedOptionIndex());
|
|
1684
|
+
}
|
|
1685
|
+
else {
|
|
1686
|
+
this.onOptionSelect({ originalEvent: event, option: this.visibleOptions()[this.focusedOptionIndex()] });
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
event.preventDefault();
|
|
1691
|
+
}
|
|
1692
|
+
onEscapeKey(event) {
|
|
1693
|
+
if (this.overlayVisible) {
|
|
1694
|
+
this.hide(true);
|
|
1695
|
+
event.stopPropagation();
|
|
1696
|
+
event.preventDefault();
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
onTabKey(event, pressedInInputText = false) {
|
|
1700
|
+
if (!pressedInInputText) {
|
|
1701
|
+
if (this.overlayVisible && this.hasFocusableElements()) {
|
|
1702
|
+
focus(event.shiftKey ? this.lastHiddenFocusableElementOnOverlay()?.nativeElement : this.firstHiddenFocusableElementOnOverlay()?.nativeElement);
|
|
1703
|
+
event.preventDefault();
|
|
1704
|
+
}
|
|
1705
|
+
else {
|
|
1706
|
+
if (this.focusedOptionIndex() !== -1) {
|
|
1707
|
+
const option = this.visibleOptions()[this.focusedOptionIndex()];
|
|
1708
|
+
!this.isSelected(option) && this.onOptionSelect({ originalEvent: event, option });
|
|
1709
|
+
}
|
|
1710
|
+
this.overlayVisible && this.hide(this.filter());
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
onShiftKey() {
|
|
1715
|
+
this.startRangeIndex.set(this.focusedOptionIndex());
|
|
1716
|
+
}
|
|
1717
|
+
onContainerClick(event) {
|
|
1718
|
+
if (this.$disabled() || this.loading() || this.readonly() || event.target?.isSameNode?.(this.focusInputViewChild()?.nativeElement)) {
|
|
1719
|
+
return;
|
|
1720
|
+
}
|
|
1721
|
+
if (!this.overlayViewChild() || !this.overlayViewChild().el.nativeElement.contains(event.target)) {
|
|
1722
|
+
if (this.clickInProgress) {
|
|
1723
|
+
return;
|
|
1724
|
+
}
|
|
1725
|
+
this.clickInProgress = true;
|
|
1726
|
+
setTimeout(() => {
|
|
1727
|
+
this.clickInProgress = false;
|
|
1728
|
+
}, 150);
|
|
1729
|
+
this.overlayVisible ? this.hide(true) : this.show(true);
|
|
1730
|
+
}
|
|
1731
|
+
this.focusInputViewChild()?.nativeElement.focus({ preventScroll: true });
|
|
1732
|
+
this.onClick.emit(event);
|
|
1733
|
+
this.cd.detectChanges();
|
|
1734
|
+
}
|
|
1735
|
+
onFirstHiddenFocus(event) {
|
|
1736
|
+
const focusableEl = event.relatedTarget === this.focusInputViewChild()?.nativeElement ? getFirstFocusableElement(this.overlayViewChild()?.overlayViewChild()?.nativeElement, ':not([data-h-hidden-focusable="true"])') : this.focusInputViewChild()?.nativeElement;
|
|
1737
|
+
focus(focusableEl);
|
|
1738
|
+
}
|
|
1739
|
+
onInputFocus(event) {
|
|
1740
|
+
this.focused = true;
|
|
1741
|
+
const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.overlayVisible && this.autoOptionFocus() ? this.findFirstFocusedOptionIndex() : -1;
|
|
1742
|
+
this.focusedOptionIndex.set(focusedOptionIndex);
|
|
1743
|
+
this.overlayVisible && this.scrollInView(this.focusedOptionIndex());
|
|
1744
|
+
this.onFocus.emit({ originalEvent: event });
|
|
1745
|
+
}
|
|
1746
|
+
onInputBlur(event) {
|
|
1747
|
+
this.focused = false;
|
|
1748
|
+
this.onBlur.emit({ originalEvent: event });
|
|
1749
|
+
if (!this.preventModelTouched) {
|
|
1750
|
+
this.onModelTouched();
|
|
1751
|
+
}
|
|
1752
|
+
this.preventModelTouched = false;
|
|
1753
|
+
}
|
|
1754
|
+
onFilterInputChange(event) {
|
|
1755
|
+
let value = event.target.value;
|
|
1756
|
+
this._filterValue.set(value);
|
|
1757
|
+
this.focusedOptionIndex.set(-1);
|
|
1758
|
+
this.onFilter.emit({ originalEvent: event, filter: this._filterValue() });
|
|
1759
|
+
!this.virtualScrollerDisabled && this.scroller()?.scrollToIndex(0);
|
|
1760
|
+
setTimeout(() => {
|
|
1761
|
+
this.overlayViewChild()?.alignOverlay();
|
|
1762
|
+
});
|
|
1763
|
+
}
|
|
1764
|
+
onLastHiddenFocus(event) {
|
|
1765
|
+
const focusableEl = event.relatedTarget === this.focusInputViewChild()?.nativeElement ? getLastFocusableElement(this.overlayViewChild()?.overlayViewChild()?.nativeElement, ':not([data-h-hidden-focusable="true"])') : this.focusInputViewChild()?.nativeElement;
|
|
1766
|
+
focus(focusableEl);
|
|
1767
|
+
}
|
|
1768
|
+
onOptionMouseEnter(event, index) {
|
|
1769
|
+
if (this.focusOnHover()) {
|
|
1770
|
+
this.changeFocusedOptionIndex(event, index);
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
onFilterBlur(event) {
|
|
1774
|
+
this.focusedOptionIndex.set(-1);
|
|
1775
|
+
}
|
|
1776
|
+
onToggleAll(event) {
|
|
1777
|
+
if (this.$disabled() || this.readonly()) {
|
|
1778
|
+
return;
|
|
1779
|
+
}
|
|
1780
|
+
if (this.selectAll() != null) {
|
|
1781
|
+
this.onSelectAllChange.emit({
|
|
1782
|
+
originalEvent: event,
|
|
1783
|
+
checked: !this.allSelected()
|
|
1784
|
+
});
|
|
1785
|
+
}
|
|
1786
|
+
else {
|
|
1787
|
+
// pre-selected disabled options should always be selected.
|
|
1788
|
+
const selectedDisabledOptions = this.getAllVisibleAndNonVisibleOptions().filter((option) => {
|
|
1789
|
+
const optionDisabled = this.optionDisabled();
|
|
1790
|
+
return this.isSelected(option) && (optionDisabled ? resolveFieldData(option, optionDisabled) : option && option.disabled !== undefined ? option.disabled : false);
|
|
1791
|
+
});
|
|
1792
|
+
const visibleOptions = this.allSelected()
|
|
1793
|
+
? this.visibleOptions().filter((option) => !this.isValidOption(option) && this.isSelected(option))
|
|
1794
|
+
: this.visibleOptions().filter((option) => this.isSelected(option) || this.isValidOption(option));
|
|
1795
|
+
const selectedOptionsBeforeSearch = this.filter() && !this.allSelected() ? this.getAllVisibleAndNonVisibleOptions().filter((option) => this.isSelected(option) && this.isValidOption(option)) : [];
|
|
1796
|
+
const optionValues = [...selectedOptionsBeforeSearch, ...selectedDisabledOptions, ...visibleOptions].map((option) => this.getOptionValue(option));
|
|
1797
|
+
const value = [...new Set(optionValues)];
|
|
1798
|
+
this.updateModel(value, event);
|
|
1799
|
+
// because onToggleAll could have been called during filtering, this additional test needs to be performed before calling onSelectAllChange.emit
|
|
1800
|
+
if (!value.length || value.length === this.getAllVisibleAndNonVisibleOptions().length) {
|
|
1801
|
+
this.onSelectAllChange.emit({
|
|
1802
|
+
originalEvent: event,
|
|
1803
|
+
checked: !!value.length
|
|
1804
|
+
});
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
if (this.partialSelected()) {
|
|
1808
|
+
this.selectedOptions = [];
|
|
1809
|
+
this.cd.markForCheck();
|
|
1810
|
+
}
|
|
1811
|
+
this.onChange.emit({ originalEvent: event, value: this.value });
|
|
1812
|
+
DomHandler.focus(this.headerCheckboxViewChild()?.inputViewChild()?.nativeElement);
|
|
1813
|
+
this.headerCheckboxFocus = true;
|
|
1814
|
+
event.originalEvent.preventDefault();
|
|
1815
|
+
event.originalEvent.stopPropagation();
|
|
1816
|
+
}
|
|
1817
|
+
changeFocusedOptionIndex(event, index) {
|
|
1818
|
+
if (this.focusedOptionIndex() !== index) {
|
|
1819
|
+
this.focusedOptionIndex.set(index);
|
|
1820
|
+
this.scrollInView();
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
get virtualScrollerDisabled() {
|
|
1824
|
+
return !this.virtualScroll();
|
|
1825
|
+
}
|
|
1826
|
+
scrollInView(index = -1) {
|
|
1827
|
+
const id = index !== -1 ? `${this.$id()}_${index}` : this.focusedOptionId;
|
|
1828
|
+
if (this.itemsViewChild() && this.itemsViewChild().nativeElement) {
|
|
1829
|
+
const element = findSingle(this.itemsViewChild().nativeElement, `li[id="${id}"]`);
|
|
1830
|
+
if (element) {
|
|
1831
|
+
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
1832
|
+
}
|
|
1833
|
+
else if (!this.virtualScrollerDisabled) {
|
|
1834
|
+
setTimeout(() => {
|
|
1835
|
+
this.virtualScroll() && this.scroller()?.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex());
|
|
1836
|
+
}, 0);
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
get focusedOptionId() {
|
|
1841
|
+
return this.focusedOptionIndex() !== -1 ? `${this.$id()}_${this.focusedOptionIndex()}` : null;
|
|
1842
|
+
}
|
|
1843
|
+
allSelected() {
|
|
1844
|
+
return this.selectAll() !== null ? this.selectAll() : isNotEmpty(this.visibleOptions()) && this.visibleOptions().every((option) => this.isOptionGroup(option) || this.isOptionDisabled(option) || this.isSelected(option));
|
|
1845
|
+
}
|
|
1846
|
+
partialSelected() {
|
|
1847
|
+
return this.selectedOptions && this.selectedOptions.length > 0 && this.selectedOptions.length < (this.options()?.length || 0);
|
|
1848
|
+
}
|
|
1849
|
+
/**
|
|
1850
|
+
* Displays the panel.
|
|
1851
|
+
* @group Method
|
|
1852
|
+
*/
|
|
1853
|
+
show(isFocus) {
|
|
1854
|
+
this.overlayVisible = true;
|
|
1855
|
+
const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.autoOptionFocus() ? this.findFirstFocusedOptionIndex() : this.findSelectedOptionIndex();
|
|
1856
|
+
this.focusedOptionIndex.set(focusedOptionIndex);
|
|
1857
|
+
if (isFocus) {
|
|
1858
|
+
focus(this.focusInputViewChild()?.nativeElement);
|
|
1859
|
+
}
|
|
1860
|
+
this.cd.markForCheck();
|
|
1861
|
+
}
|
|
1862
|
+
/**
|
|
1863
|
+
* Hides the panel.
|
|
1864
|
+
* @group Method
|
|
1865
|
+
*/
|
|
1866
|
+
hide(isFocus) {
|
|
1867
|
+
this.overlayVisible = false;
|
|
1868
|
+
this.focusedOptionIndex.set(-1);
|
|
1869
|
+
if (this.filter() && this.resetFilterOnHide()) {
|
|
1870
|
+
this.resetFilter();
|
|
1871
|
+
}
|
|
1872
|
+
if (this.overlayOptions()?.mode === 'modal') {
|
|
1873
|
+
unblockBodyScroll();
|
|
1874
|
+
}
|
|
1875
|
+
isFocus && focus(this.focusInputViewChild()?.nativeElement);
|
|
1876
|
+
this.cd.markForCheck();
|
|
1877
|
+
}
|
|
1878
|
+
onOverlayBeforeEnter(event) {
|
|
1879
|
+
this.itemsWrapper = findSingle(this.overlayViewChild()?.overlayViewChild()?.nativeElement, this.virtualScroll() ? '[data-pc-name="virtualscroller"]' : '[data-pc-section="listcontainer"]');
|
|
1880
|
+
this.virtualScroll() && this.scroller()?.setContentEl(this.itemsViewChild()?.nativeElement);
|
|
1881
|
+
if (this.options() && this.options().length) {
|
|
1882
|
+
if (this.virtualScroll()) {
|
|
1883
|
+
const selectedIndex = this.modelValue() ? this.focusedOptionIndex() : -1;
|
|
1884
|
+
if (selectedIndex !== -1) {
|
|
1885
|
+
this.scroller()?.scrollToIndex(selectedIndex);
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
else {
|
|
1889
|
+
let selectedListItem = findSingle(this.itemsWrapper, '[data-pc-section="option"][data-h-selected="true"]');
|
|
1890
|
+
if (selectedListItem) {
|
|
1891
|
+
selectedListItem.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
if (this.filterInputChild() && this.filterInputChild().nativeElement) {
|
|
1896
|
+
this.preventModelTouched = true;
|
|
1897
|
+
if (this.autofocusFilter()) {
|
|
1898
|
+
this.filterInputChild().nativeElement.focus();
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
this.onPanelShow.emit(event);
|
|
1902
|
+
}
|
|
1903
|
+
onOverlayAfterLeave(event) {
|
|
1904
|
+
this.itemsWrapper = null;
|
|
1905
|
+
this.onModelTouched();
|
|
1906
|
+
this.onPanelHide.emit(event);
|
|
1907
|
+
}
|
|
1908
|
+
resetFilter() {
|
|
1909
|
+
if (this.filterInputChild() && this.filterInputChild().nativeElement) {
|
|
1910
|
+
this.filterInputChild().nativeElement.value = '';
|
|
1911
|
+
}
|
|
1912
|
+
this._filterValue.set(null);
|
|
1913
|
+
this._filteredOptions = null;
|
|
1914
|
+
}
|
|
1915
|
+
onOverlayHide(event) {
|
|
1916
|
+
// Called when overlay completes its hide animation
|
|
1917
|
+
// Don't call hide() again to avoid recursive calls
|
|
1918
|
+
this.focusedOptionIndex.set(-1);
|
|
1919
|
+
if (this.filter() && this.resetFilterOnHide()) {
|
|
1920
|
+
this.resetFilter();
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
close(event) {
|
|
1924
|
+
this.hide();
|
|
1925
|
+
event.preventDefault();
|
|
1926
|
+
event.stopPropagation();
|
|
1927
|
+
}
|
|
1928
|
+
clear(event) {
|
|
1929
|
+
this.value = [];
|
|
1930
|
+
this.updateModel(null, event);
|
|
1931
|
+
this.selectedOptions = [];
|
|
1932
|
+
this.onClear.emit();
|
|
1933
|
+
this._disableTooltip = true;
|
|
1934
|
+
event.stopPropagation();
|
|
1935
|
+
}
|
|
1936
|
+
labelContainerMouseLeave() {
|
|
1937
|
+
if (this._disableTooltip)
|
|
1938
|
+
this._disableTooltip = false;
|
|
1939
|
+
}
|
|
1940
|
+
removeOption(optionValue, event) {
|
|
1941
|
+
let value = this.modelValue().filter((val) => !equals(val, optionValue, this.equalityKey() || ''));
|
|
1942
|
+
this.updateModel(value, event);
|
|
1943
|
+
this.onChange.emit({
|
|
1944
|
+
originalEvent: event,
|
|
1945
|
+
value: value,
|
|
1946
|
+
itemValue: optionValue
|
|
1947
|
+
});
|
|
1948
|
+
this.onRemove.emit({
|
|
1949
|
+
newValue: value,
|
|
1950
|
+
removed: optionValue
|
|
1951
|
+
});
|
|
1952
|
+
event && event.stopPropagation();
|
|
1953
|
+
}
|
|
1954
|
+
findNextOptionIndex(index) {
|
|
1955
|
+
const matchedOptionIndex = index < this.visibleOptions().length - 1
|
|
1956
|
+
? this.visibleOptions()
|
|
1957
|
+
.slice(index + 1)
|
|
1958
|
+
.findIndex((option) => this.isValidOption(option))
|
|
1959
|
+
: -1;
|
|
1960
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
1961
|
+
}
|
|
1962
|
+
findPrevOptionIndex(index) {
|
|
1963
|
+
const matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions().slice(0, index), (option) => this.isValidOption(option)) : -1;
|
|
1964
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
1965
|
+
}
|
|
1966
|
+
findLastSelectedOptionIndex() {
|
|
1967
|
+
return this.hasSelectedOption() ? findLastIndex(this.visibleOptions(), (option) => this.isValidSelectedOption(option)) : -1;
|
|
1968
|
+
}
|
|
1969
|
+
findLastFocusedOptionIndex() {
|
|
1970
|
+
const selectedIndex = this.findLastSelectedOptionIndex();
|
|
1971
|
+
return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
|
|
1972
|
+
}
|
|
1973
|
+
findLastOptionIndex() {
|
|
1974
|
+
return findLastIndex(this.visibleOptions(), (option) => this.isValidOption(option));
|
|
1975
|
+
}
|
|
1976
|
+
searchOptions(event, char) {
|
|
1977
|
+
this.searchValue = (this.searchValue || '') + char;
|
|
1978
|
+
let optionIndex = -1;
|
|
1979
|
+
let matched = false;
|
|
1980
|
+
if (this.focusedOptionIndex() !== -1) {
|
|
1981
|
+
optionIndex = this.visibleOptions()
|
|
1982
|
+
.slice(this.focusedOptionIndex())
|
|
1983
|
+
.findIndex((option) => this.isOptionMatched(option));
|
|
1984
|
+
optionIndex =
|
|
1985
|
+
optionIndex === -1
|
|
1986
|
+
? this.visibleOptions()
|
|
1987
|
+
.slice(0, this.focusedOptionIndex())
|
|
1988
|
+
.findIndex((option) => this.isOptionMatched(option))
|
|
1989
|
+
: optionIndex + this.focusedOptionIndex();
|
|
1990
|
+
}
|
|
1991
|
+
else {
|
|
1992
|
+
optionIndex = this.visibleOptions().findIndex((option) => this.isOptionMatched(option));
|
|
1993
|
+
}
|
|
1994
|
+
if (optionIndex !== -1) {
|
|
1995
|
+
matched = true;
|
|
1996
|
+
}
|
|
1997
|
+
if (optionIndex === -1 && this.focusedOptionIndex() === -1) {
|
|
1998
|
+
optionIndex = this.findFirstFocusedOptionIndex();
|
|
1999
|
+
}
|
|
2000
|
+
if (optionIndex !== -1) {
|
|
2001
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
2002
|
+
}
|
|
2003
|
+
if (this.searchTimeout) {
|
|
2004
|
+
clearTimeout(this.searchTimeout);
|
|
2005
|
+
}
|
|
2006
|
+
this.searchTimeout = setTimeout(() => {
|
|
2007
|
+
this.searchValue = '';
|
|
2008
|
+
this.searchTimeout = null;
|
|
2009
|
+
}, 500);
|
|
2010
|
+
return matched;
|
|
2011
|
+
}
|
|
2012
|
+
hasFocusableElements() {
|
|
2013
|
+
return getFocusableElements(this.overlayViewChild()?.overlayViewChild()?.nativeElement, ':not([data-h-hidden-focusable="true"])').length > 0;
|
|
2014
|
+
}
|
|
2015
|
+
hasFilter() {
|
|
2016
|
+
return this._filterValue() && this._filterValue().trim().length > 0;
|
|
2017
|
+
}
|
|
2018
|
+
get containerDataP() {
|
|
2019
|
+
return this.cn({
|
|
2020
|
+
invalid: this.invalid(),
|
|
2021
|
+
disabled: this.$disabled(),
|
|
2022
|
+
focus: this.focused,
|
|
2023
|
+
fluid: this.hasFluid,
|
|
2024
|
+
filled: this.$variant() === 'filled',
|
|
2025
|
+
[this.size()]: this.size()
|
|
2026
|
+
});
|
|
2027
|
+
}
|
|
2028
|
+
get labelDataP() {
|
|
2029
|
+
return this.cn({
|
|
2030
|
+
placeholder: this.label === this.placeholder,
|
|
2031
|
+
clearable: this.showClear(),
|
|
2032
|
+
disabled: this.disabled,
|
|
2033
|
+
[this.size()]: this.size(),
|
|
2034
|
+
'has-chip': this.display() === 'chip' && this.value && this.value.length && (this.maxSelectedLabels() ? this.value.length <= this.maxSelectedLabels() : true),
|
|
2035
|
+
empty: !this.placeholder && !this.$filled
|
|
2036
|
+
});
|
|
2037
|
+
}
|
|
2038
|
+
get dropdownIconDataP() {
|
|
2039
|
+
return this.cn({
|
|
2040
|
+
[this.size()]: this.size()
|
|
2041
|
+
});
|
|
2042
|
+
}
|
|
2043
|
+
get overlayDataP() {
|
|
2044
|
+
return this.cn({
|
|
2045
|
+
['overlay-' + this.appendTo]: 'overlay-' + this.appendTo
|
|
2046
|
+
});
|
|
2047
|
+
}
|
|
2048
|
+
/**
|
|
2049
|
+
* @override
|
|
2050
|
+
*
|
|
2051
|
+
* @see {@link BaseEditableHolder.writeControlValue}
|
|
2052
|
+
* Writes the value to the control.
|
|
2053
|
+
*/
|
|
2054
|
+
writeControlValue(value, setModelValue) {
|
|
2055
|
+
this.value = value;
|
|
2056
|
+
setModelValue(value);
|
|
2057
|
+
this.cd.markForCheck();
|
|
2058
|
+
}
|
|
2059
|
+
getHeaderCheckboxPTOptions(key) {
|
|
2060
|
+
return this.ptm(key, {
|
|
2061
|
+
context: {
|
|
2062
|
+
selected: this.allSelected()
|
|
2063
|
+
}
|
|
2064
|
+
});
|
|
2065
|
+
}
|
|
2066
|
+
getPTOptions(option, itemOptions, index, key) {
|
|
2067
|
+
return this.ptm(key, {
|
|
2068
|
+
context: {
|
|
2069
|
+
selected: this.isSelected(option),
|
|
2070
|
+
focused: this.focusedOptionIndex() === this.getOptionIndex(index, itemOptions),
|
|
2071
|
+
disabled: this.isOptionDisabled(option)
|
|
2072
|
+
}
|
|
2073
|
+
});
|
|
2074
|
+
}
|
|
2075
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: MultiSelect, deps: [{ token: i0.NgZone }, { token: i3.FilterService }, { token: i3.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2076
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: MultiSelect, isStandalone: true, selector: "h-multiSelect, h-multiselect, h-multi-select", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", 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 }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", 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 }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, displaySelectedLabel: { classPropertyName: "displaySelectedLabel", publicName: "displaySelectedLabel", isSignal: true, isRequired: false, transformFunction: null }, maxSelectedLabels: { classPropertyName: "maxSelectedLabels", publicName: "maxSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, selectionLimit: { classPropertyName: "selectionLimit", publicName: "selectionLimit", isSignal: true, isRequired: false, transformFunction: null }, selectedItemsLabel: { classPropertyName: "selectedItemsLabel", publicName: "selectedItemsLabel", isSignal: true, isRequired: false, transformFunction: null }, showToggleAll: { classPropertyName: "showToggleAll", publicName: "showToggleAll", 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 }, resetFilterOnHide: { classPropertyName: "resetFilterOnHide", publicName: "resetFilterOnHide", isSignal: true, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: true, isRequired: false, transformFunction: null }, chipIcon: { classPropertyName: "chipIcon", publicName: "chipIcon", 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 }, showHeader: { classPropertyName: "showHeader", publicName: "showHeader", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", 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 }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", 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 }, 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 }, autofocusFilter: { classPropertyName: "autofocusFilter", publicName: "autofocusFilter", isSignal: true, isRequired: false, transformFunction: null }, display: { classPropertyName: "display", publicName: "display", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: true, isRequired: false, transformFunction: null }, selectAll: { classPropertyName: "selectAll", publicName: "selectAll", isSignal: true, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: true, isRequired: false, transformFunction: null }, filterFields: { classPropertyName: "filterFields", publicName: "filterFields", 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 }, highlightOnSelect: { classPropertyName: "highlightOnSelect", publicName: "highlightOnSelect", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", 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", onClear: "onClear", onPanelShow: "onPanelShow", onPanelHide: "onPanelHide", onLazyLoad: "onLazyLoad", onRemove: "onRemove", onSelectAllChange: "onSelectAllChange" }, host: { listeners: { "click": "onContainerClick($event)" }, properties: { "attr.id": "$id()", "attr.data-h": "containerDataP", "class": "cn(cx('root'), styleClass())", "style": "sx('root')" } }, providers: [MULTISELECT_VALUE_ACCESSOR, MultiSelectStyle, { provide: MULTISELECT_INSTANCE, useExisting: MultiSelect }, { provide: PARENT_INSTANCE, useExisting: MultiSelect }], queries: [{ propertyName: "footerFacet", first: true, predicate: Footer, descendants: true, isSignal: true }, { propertyName: "headerFacet", first: true, predicate: Header, descendants: true, isSignal: true }, { 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: "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: "selectedItemsTemplate", first: true, predicate: ["selecteditems"], isSignal: true }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"], isSignal: true }, { propertyName: "filterIconTemplate", first: true, predicate: ["filtericon"], isSignal: true }, { propertyName: "removeTokenIconTemplate", first: true, predicate: ["removetokenicon"], isSignal: true }, { propertyName: "chipIconTemplate", first: true, predicate: ["chipicon"], isSignal: true }, { propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"], isSignal: true }, { propertyName: "dropdownIconTemplate", first: true, predicate: ["dropdownicon"], isSignal: true }, { propertyName: "itemCheckboxIconTemplate", first: true, predicate: ["itemcheckboxicon"], isSignal: true }, { propertyName: "headerCheckboxIconTemplate", first: true, predicate: ["headercheckboxicon"], isSignal: true }, { propertyName: "templates", predicate: HelixTemplate, isSignal: true }], viewQueries: [{ propertyName: "overlayViewChild", first: true, predicate: ["overlay"], descendants: true, isSignal: true }, { propertyName: "filterInputChild", first: true, predicate: ["filterInput"], descendants: true, isSignal: true }, { propertyName: "focusInputViewChild", first: true, predicate: ["focusInput"], 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: "lastHiddenFocusableElementOnOverlay", first: true, predicate: ["lastHiddenFocusableEl"], descendants: true, isSignal: true }, { propertyName: "firstHiddenFocusableElementOnOverlay", first: true, predicate: ["firstHiddenFocusableEl"], descendants: true, isSignal: true }, { propertyName: "headerCheckboxViewChild", first: true, predicate: ["headerCheckbox"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i4.Bind }], ngImport: i0, template: "<div class=\"h-hidden-accessible\" [attr.data-h-hidden-accessible]=\"true\" [hBind]=\"ptm('hiddenInputContainer')\">\n <input\n #focusInput\n [hTooltip]=\"tooltip()\"\n [pTooltipUnstyled]=\"unstyled()\"\n [tooltipPosition]=\"tooltipPosition()\"\n [positionStyle]=\"tooltipPositionStyle()\"\n [tooltipStyleClass]=\"tooltipStyleClass()\"\n [attr.aria-disabled]=\"$disabled()\"\n [attr.id]=\"inputId()\"\n role=\"combobox\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-haspopup]=\"'listbox'\"\n [attr.aria-expanded]=\"overlayVisible ?? false\"\n [attr.aria-controls]=\"overlayVisible ? $id() + '_list' : null\"\n [attr.tabindex]=\"!$disabled() ? tabindex() : -1\"\n [attr.aria-activedescendant]=\"focused ? focusedOptionId : undefined\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (keydown)=\"onKeyDown($event)\"\n [hAutoFocus]=\"autofocus()\"\n [attr.value]=\"modelValue()\"\n [attr.name]=\"name()\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n [hBind]=\"ptm('hiddenInput')\"\n />\n</div>\n<div\n [hBind]=\"ptm('labelContainer')\"\n [class]=\"cx('labelContainer')\"\n [hTooltip]=\"tooltip()\"\n [pTooltipUnstyled]=\"unstyled()\"\n (mouseleave)=\"labelContainerMouseLeave()\"\n [tooltipDisabled]=\"_disableTooltip\"\n [tooltipPosition]=\"tooltipPosition()\"\n [positionStyle]=\"tooltipPositionStyle()\"\n [tooltipStyleClass]=\"tooltipStyleClass()\"\n >\n <div [hBind]=\"ptm('label')\" [class]=\"cx('label')\" [attr.data-h]=\"labelDataP\">\n @if (!selectedItemsTemplate() && !_selectedItemsTemplate) {\n @if (display() === 'comma') {\n {{ label() || 'empty' }}\n }\n @if (display() === 'chip') {\n @if (chipSelectedItems() && chipSelectedItems().length === maxSelectedLabels()) {\n {{ getSelectedItemsLabel() }}\n } @else {\n @for (item of chipSelectedItems(); track item; let i = $index) {\n <div #token [hBind]=\"ptm('chipItem')\" [class]=\"cx('chipItem')\">\n <h-chip [pt]=\"ptm('pcChip')\" [unstyled]=\"unstyled()\" [class]=\"cx('pcChip')\" [label]=\"getLabelByValue(item)\" [removable]=\"!$disabled() && !readonly()\" (onRemove)=\"removeOption(item, $event)\" [removeIcon]=\"chipIcon()\">\n @if (chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate) {\n <ng-template #removeicon>\n @if (!$disabled() && !readonly()) {\n @if (chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate) {\n <span\n [class]=\"cx('chipIcon')\"\n (click)=\"removeOption(item, $event)\"\n [attr.aria-hidden]=\"true\"\n [hBind]=\"ptm('chipIcon')\"\n >\n <ng-container *ngTemplateOutlet=\"chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate; context: { class: 'h-multiselect-chip-icon' }\"></ng-container>\n </span>\n }\n }\n </ng-template>\n }\n </h-chip>\n </div>\n }\n }\n @if (!modelValue() || modelValue().length === 0) {\n {{ placeholder() || 'empty' }}\n }\n }\n }\n @if (selectedItemsTemplate() || _selectedItemsTemplate) {\n <ng-container *ngTemplateOutlet=\"selectedItemsTemplate() || _selectedItemsTemplate; context: { $implicit: selectedOptions, removeChip: removeOption.bind(this) }\"></ng-container>\n @if (!modelValue() || modelValue().length === 0) {\n {{ placeholder() || 'empty' }}\n }\n }\n </div>\n</div>\n@if (isVisibleClearIcon) {\n @if (!clearIconTemplate() && !_clearIconTemplate) {\n <svg data-h-icon=\"times\" [hBind]=\"ptm('clearIcon')\" [class]=\"cx('clearIcon')\" (click)=\"clear($event)\" [attr.aria-hidden]=\"true\" />\n }\n @if (clearIconTemplate() || _clearIconTemplate) {\n <span [hBind]=\"ptm('clearIcon')\" [class]=\"cx('clearIcon')\" (click)=\"clear($event)\" [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"clearIconTemplate() || _clearIconTemplate\"></ng-template>\n </span>\n }\n}\n<div [hBind]=\"ptm('dropdown')\" [class]=\"cx('dropdown')\">\n @if (loading()) {\n @if (loadingIconTemplate() || _loadingIconTemplate) {\n <ng-container *ngTemplateOutlet=\"loadingIconTemplate() || _loadingIconTemplate\"></ng-container>\n }\n @if (!loadingIconTemplate() && !_loadingIconTemplate) {\n @if (loadingIcon()) {\n <span [hBind]=\"ptm('loadingIcon')\" [class]=\"cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon())\" [attr.aria-hidden]=\"true\"></span>\n }\n @if (!loadingIcon()) {\n <span [hBind]=\"ptm('loadingIcon')\" [class]=\"cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')\" [attr.aria-hidden]=\"true\"></span>\n }\n }\n } @else {\n @if (!dropdownIconTemplate() && !_dropdownIconTemplate) {\n @if (dropdownIcon()) {\n <span [hBind]=\"ptm('dropdownIcon')\" [class]=\"cx('dropdownIcon')\" [ngClass]=\"dropdownIcon()\" [attr.aria-hidden]=\"true\" [attr.data-h]=\"dropdownIconDataP\"></span>\n }\n @if (!dropdownIcon()) {\n <svg data-h-icon=\"chevron-down\" [hBind]=\"ptm('dropdownIcon')\" [class]=\"cx('dropdownIcon')\" [attr.aria-hidden]=\"true\" [attr.data-h]=\"dropdownIconDataP\" />\n }\n }\n @if (dropdownIconTemplate() || _dropdownIconTemplate) {\n <span [hBind]=\"ptm('dropdownIcon')\" [class]=\"cx('dropdownIcon')\" [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"dropdownIconTemplate() || _dropdownIconTemplate; context: { dataP: dropdownIconDataP }\"></ng-template>\n </span>\n }\n }\n</div>\n<h-overlay\n #overlay\n [hostAttrSelector]=\"$attrSelector\"\n [(visible)]=\"overlayVisible\"\n [options]=\"overlayOptions()\"\n [target]=\"'@parent'\"\n [appendTo]=\"$appendTo()\"\n [unstyled]=\"unstyled()\"\n [pt]=\"ptm('pcOverlay')\"\n [motionOptions]=\"motionOptions()\"\n (onBeforeEnter)=\"onOverlayBeforeEnter($event)\"\n (onAfterLeave)=\"onOverlayAfterLeave($event)\"\n (onHide)=\"onOverlayHide($event)\"\n >\n <ng-template #content>\n <div [hBind]=\"ptm('overlay')\" [attr.data-h]=\"overlayDataP\" [attr.id]=\"$id() + '_list'\" [class]=\"cn(cx('overlay'), panelStyleClass())\" [ngStyle]=\"panelStyle()\">\n <span\n #firstHiddenFocusableEl\n role=\"presentation\"\n class=\"h-hidden-accessible h-hidden-focusable\"\n [attr.tabindex]=\"0\"\n (focus)=\"onFirstHiddenFocus($event)\"\n [attr.data-h-hidden-accessible]=\"true\"\n [attr.data-h-hidden-focusable]=\"true\"\n [hBind]=\"ptm('firstHiddenFocusableEl')\"\n >\n </span>\n <ng-container *ngTemplateOutlet=\"headerTemplate() || _headerTemplate\"></ng-container>\n @if (showHeader()) {\n <div [hBind]=\"ptm('header')\" [class]=\"cx('header')\">\n <ng-content select=\"h-header\"></ng-content>\n @if (filterTemplate() || _filterTemplate) {\n <ng-container *ngTemplateOutlet=\"filterTemplate() || _filterTemplate; context: { options: filterOptions }\"></ng-container>\n } @else {\n @if (showToggleAll() && !selectionLimit()) {\n <h-checkbox\n [pt]=\"getHeaderCheckboxPTOptions('pcHeaderCheckbox')\"\n [ngModel]=\"allSelected()\"\n [ariaLabel]=\"toggleAllAriaLabel\"\n [binary]=\"true\"\n (onChange)=\"onToggleAll($event)\"\n [variant]=\"$variant()\"\n [disabled]=\"$disabled()\"\n [unstyled]=\"unstyled()\"\n #headerCheckbox\n >\n <ng-template #icon let-klass=\"class\">\n @if (!headerCheckboxIconTemplate() && !_headerCheckboxIconTemplate && allSelected()) {\n <svg data-h-icon=\"check\" [class]=\"klass\" [hBind]=\"getHeaderCheckboxPTOptions('pcHeaderCheckbox.icon')\" />\n }\n <ng-template\n *ngTemplateOutlet=\"\n headerCheckboxIconTemplate() || _headerCheckboxIconTemplate;\n context: {\n checked: allSelected(),\n partialSelected: partialSelected(),\n class: klass\n }\n \"\n ></ng-template>\n </ng-template>\n </h-checkbox>\n }\n @if (filter()) {\n <h-iconfield [pt]=\"ptm('pcFilterContainer')\" [class]=\"cx('pcFilterContainer')\" [unstyled]=\"unstyled()\">\n <input\n #filterInput\n hInputText\n [pt]=\"ptm('pcFilter')\"\n [variant]=\"$variant()\"\n type=\"text\"\n [attr.autocomplete]=\"autocomplete()\"\n role=\"searchbox\"\n [attr.aria-owns]=\"$id() + '_list'\"\n [attr.aria-activedescendant]=\"focusedOptionId\"\n [value]=\"_filterValue() || ''\"\n (input)=\"onFilterInputChange($event)\"\n (keydown)=\"onFilterKeyDown($event)\"\n (click)=\"onInputClick($event)\"\n (blur)=\"onFilterBlur($event)\"\n [class]=\"cx('pcFilter')\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n [attr.placeholder]=\"filterPlaceHolder()\"\n [attr.aria-label]=\"ariaFilterLabel()\"\n [unstyled]=\"unstyled()\"\n />\n <h-inputicon [pt]=\"ptm('pcFilterIconContainer')\" [unstyled]=\"unstyled()\">\n @if (!filterIconTemplate() && !_filterIconTemplate) {\n <svg data-h-icon=\"search\" [hBind]=\"ptm('filterIcon')\" />\n }\n @if (filterIconTemplate() || _filterIconTemplate) {\n <span [hBind]=\"ptm('filterIcon')\" class=\"h-multiselect-filter-icon\">\n <ng-template *ngTemplateOutlet=\"filterIconTemplate() || _filterIconTemplate\"></ng-template>\n </span>\n }\n </h-inputicon>\n </h-iconfield>\n }\n }\n </div>\n }\n <div [hBind]=\"ptm('listContainer')\" [class]=\"cx('listContainer')\" [style.max-height]=\"virtualScroll() ? 'auto' : scrollHeight() || 'auto'\">\n @if (virtualScroll()) {\n <h-scroller\n #scroller\n [items]=\"visibleOptions()\"\n [style]=\"{ height: scrollHeight() }\"\n [itemSize]=\"virtualScrollItemSize()\"\n [autoSize]=\"true\"\n [tabindex]=\"-1\"\n [lazy]=\"lazy()\"\n (onLazyLoad)=\"onLazyLoad.emit($event)\"\n [options]=\"virtualScrollOptions()\"\n >\n <ng-template #content let-items let-scrollerOptions=\"options\">\n <ng-container *ngTemplateOutlet=\"buildInItems; context: { $implicit: items, options: scrollerOptions }\"></ng-container>\n </ng-template>\n @if (loaderTemplate() || _loaderTemplate) {\n <ng-template #loader let-scrollerOptions=\"options\">\n <ng-container *ngTemplateOutlet=\"loaderTemplate() || _loaderTemplate; context: { options: scrollerOptions }\"></ng-container>\n </ng-template>\n }\n </h-scroller>\n }\n @if (!virtualScroll()) {\n <ng-container *ngTemplateOutlet=\"buildInItems; context: { $implicit: visibleOptions(), options: {} }\"></ng-container>\n }\n\n <ng-template #buildInItems let-items let-scrollerOptions=\"options\">\n <ul #items [hBind]=\"ptm('list')\" [class]=\"cn(cx('list'), scrollerOptions.contentStyleClass)\" [style]=\"scrollerOptions.contentStyle\" role=\"listbox\" aria-multiselectable=\"true\" [attr.aria-label]=\"listLabel\">\n @for (option of items; track option; let i = $index) {\n @if (isOptionGroup(option)) {\n <li [hBind]=\"ptm('optionGroup')\" [attr.id]=\"$id() + '_' + getOptionIndex(i, scrollerOptions)\" [class]=\"cx('optionGroup')\" [ngStyle]=\"{ height: scrollerOptions.itemSize + 'px' }\" role=\"option\">\n @if (!groupTemplate() && option.optionGroup) {\n <span>{{ getOptionGroupLabel(option.optionGroup) }}</span>\n }\n @if (option.optionGroup && groupTemplate()) {\n <ng-container [ngTemplateOutlet]=\"groupTemplate()\" [ngTemplateOutletContext]=\"{ $implicit: option.optionGroup }\"></ng-container>\n }\n </li>\n }\n @if (!isOptionGroup(option)) {\n <li\n hMultiSelectItem\n hRipple\n [hBind]=\"getPTOptions(option, getItemOptions, i, 'option')\"\n [id]=\"$id() + '_' + getOptionIndex(i, scrollerOptions)\"\n [option]=\"option\"\n [selected]=\"isSelected(option)\"\n [label]=\"getOptionLabel(option)\"\n [disabled]=\"isOptionDisabled(option)\"\n [template]=\"itemTemplate() || _itemTemplate\"\n [itemCheckboxIconTemplate]=\"itemCheckboxIconTemplate() || _itemCheckboxIconTemplate\"\n [itemSize]=\"scrollerOptions.itemSize\"\n [focused]=\"focusedOptionIndex() === getOptionIndex(i, scrollerOptions)\"\n [ariaPosInset]=\"getAriaPosInset(getOptionIndex(i, scrollerOptions))\"\n [ariaSetSize]=\"ariaSetSize\"\n [variant]=\"$variant()\"\n [highlightOnSelect]=\"highlightOnSelect()\"\n (onClick)=\"onOptionSelect($event, false, getOptionIndex(i, scrollerOptions))\"\n (onMouseEnter)=\"onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))\"\n [pt]=\"pt\"\n [unstyled]=\"unstyled()\"\n ></li>\n }\n }\n\n @if (hasFilter() && isEmpty()) {\n <li [hBind]=\"ptm('emptyMessage')\" [class]=\"cx('emptyMessage')\" [ngStyle]=\"{ height: scrollerOptions.itemSize + 'px' }\" role=\"option\">\n @if (!emptyFilterTemplate() && !_emptyFilterTemplate && !emptyTemplate() && !_emptyTemplate) {\n {{ emptyFilterMessageLabel }}\n } @else {\n <ng-container *ngTemplateOutlet=\"emptyFilterTemplate() || _emptyFilterTemplate || emptyTemplate() || _emptyFilterTemplate\"></ng-container>\n }\n </li>\n }\n @if (!hasFilter() && isEmpty()) {\n <li [hBind]=\"ptm('emptyMessage')\" [class]=\"cx('emptyMessage')\" [ngStyle]=\"{ height: scrollerOptions.itemSize + 'px' }\" role=\"option\">\n @if (!emptyTemplate() && !_emptyTemplate) {\n {{ emptyMessageLabel }}\n } @else {\n <ng-container *ngTemplateOutlet=\"emptyTemplate() || _emptyTemplate\"></ng-container>\n }\n </li>\n }\n </ul>\n </ng-template>\n </div>\n @if (footerFacet() || footerTemplate() || _footerTemplate) {\n <div>\n <ng-content select=\"h-footer\"></ng-content>\n <ng-container *ngTemplateOutlet=\"footerTemplate() || _footerTemplate\"></ng-container>\n </div>\n }\n\n <span\n #lastHiddenFocusableEl\n role=\"presentation\"\n class=\"h-hidden-accessible h-hidden-focusable\"\n [attr.tabindex]=\"0\"\n (focus)=\"onLastHiddenFocus($event)\"\n [attr.data-h-hidden-accessible]=\"true\"\n [attr.data-h-hidden-focusable]=\"true\"\n [hBind]=\"ptm('lastHiddenFocusableEl')\"\n ></span>\n </div>\n</ng-template>\n</h-overlay>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: MultiSelectItem, selector: "li[hMultiSelectItem]", inputs: ["option", "selected", "label", "disabled", "itemSize", "focused", "ariaPosInset", "ariaSetSize", "variant", "template", "checkIconTemplate", "itemCheckboxIconTemplate", "highlightOnSelect"], outputs: ["onClick", "onMouseEnter"] }, { kind: "component", type: Overlay, selector: "h-overlay", inputs: ["hostName", "visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "listener", "responsive", "options", "appendTo", "inline", "motionOptions", "hostAttrSelector"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onAnimationStart", "onAnimationDone", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Tooltip, selector: "[hTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "hTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: Scroller, selector: "h-scroller, h-virtualscroller, h-virtual-scroller, h-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: "directive", type: AutoFocus, selector: "[hAutoFocus]", inputs: ["hAutoFocus"] }, { kind: "component", type: CheckIcon, selector: "[data-h-icon=\"check\"]" }, { kind: "component", type: SearchIcon, selector: "[data-h-icon=\"search\"]" }, { kind: "component", type: TimesIcon, selector: "[data-h-icon=\"times\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-h-icon=\"chevron-down\"]" }, { kind: "component", type: IconField, selector: "h-iconfield, h-iconField, h-icon-field", inputs: ["hostName", "iconPosition", "styleClass"] }, { kind: "component", type: InputIcon, selector: "h-inputicon, h-inputIcon", inputs: ["hostName", "styleClass"] }, { kind: "directive", type: InputText, selector: "[hInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: Chip, selector: "h-chip", inputs: ["label", "icon", "image", "alt", "styleClass", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["labelChange", "iconChange", "imageChange", "altChange", "styleClassChange", "removableChange", "removeIconChange", "onRemove", "onImageError"] }, { kind: "component", type: Checkbox, selector: "h-checkbox, h-checkBox, h-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i4.Bind, selector: "[hBind]", inputs: ["hBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2077
|
+
}
|
|
2078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: MultiSelect, decorators: [{
|
|
2079
|
+
type: Component,
|
|
2080
|
+
args: [{ selector: 'h-multiSelect, h-multiselect, h-multi-select', standalone: true, imports: [CommonModule, MultiSelectItem, Overlay, SharedModule, Tooltip, Scroller, AutoFocus, CheckIcon, SearchIcon, TimesIcon, ChevronDownIcon, IconField, InputIcon, InputText, Chip, Checkbox, FormsModule, BindModule], hostDirectives: [Bind], providers: [MULTISELECT_VALUE_ACCESSOR, MultiSelectStyle, { provide: MULTISELECT_INSTANCE, useExisting: MultiSelect }, { provide: PARENT_INSTANCE, useExisting: MultiSelect }], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
2081
|
+
'[attr.id]': '$id()',
|
|
2082
|
+
'[attr.data-h]': 'containerDataP',
|
|
2083
|
+
'(click)': 'onContainerClick($event)',
|
|
2084
|
+
'[class]': "cn(cx('root'), styleClass())",
|
|
2085
|
+
'[style]': "sx('root')"
|
|
2086
|
+
}, template: "<div class=\"h-hidden-accessible\" [attr.data-h-hidden-accessible]=\"true\" [hBind]=\"ptm('hiddenInputContainer')\">\n <input\n #focusInput\n [hTooltip]=\"tooltip()\"\n [pTooltipUnstyled]=\"unstyled()\"\n [tooltipPosition]=\"tooltipPosition()\"\n [positionStyle]=\"tooltipPositionStyle()\"\n [tooltipStyleClass]=\"tooltipStyleClass()\"\n [attr.aria-disabled]=\"$disabled()\"\n [attr.id]=\"inputId()\"\n role=\"combobox\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-haspopup]=\"'listbox'\"\n [attr.aria-expanded]=\"overlayVisible ?? false\"\n [attr.aria-controls]=\"overlayVisible ? $id() + '_list' : null\"\n [attr.tabindex]=\"!$disabled() ? tabindex() : -1\"\n [attr.aria-activedescendant]=\"focused ? focusedOptionId : undefined\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (keydown)=\"onKeyDown($event)\"\n [hAutoFocus]=\"autofocus()\"\n [attr.value]=\"modelValue()\"\n [attr.name]=\"name()\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n [hBind]=\"ptm('hiddenInput')\"\n />\n</div>\n<div\n [hBind]=\"ptm('labelContainer')\"\n [class]=\"cx('labelContainer')\"\n [hTooltip]=\"tooltip()\"\n [pTooltipUnstyled]=\"unstyled()\"\n (mouseleave)=\"labelContainerMouseLeave()\"\n [tooltipDisabled]=\"_disableTooltip\"\n [tooltipPosition]=\"tooltipPosition()\"\n [positionStyle]=\"tooltipPositionStyle()\"\n [tooltipStyleClass]=\"tooltipStyleClass()\"\n >\n <div [hBind]=\"ptm('label')\" [class]=\"cx('label')\" [attr.data-h]=\"labelDataP\">\n @if (!selectedItemsTemplate() && !_selectedItemsTemplate) {\n @if (display() === 'comma') {\n {{ label() || 'empty' }}\n }\n @if (display() === 'chip') {\n @if (chipSelectedItems() && chipSelectedItems().length === maxSelectedLabels()) {\n {{ getSelectedItemsLabel() }}\n } @else {\n @for (item of chipSelectedItems(); track item; let i = $index) {\n <div #token [hBind]=\"ptm('chipItem')\" [class]=\"cx('chipItem')\">\n <h-chip [pt]=\"ptm('pcChip')\" [unstyled]=\"unstyled()\" [class]=\"cx('pcChip')\" [label]=\"getLabelByValue(item)\" [removable]=\"!$disabled() && !readonly()\" (onRemove)=\"removeOption(item, $event)\" [removeIcon]=\"chipIcon()\">\n @if (chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate) {\n <ng-template #removeicon>\n @if (!$disabled() && !readonly()) {\n @if (chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate) {\n <span\n [class]=\"cx('chipIcon')\"\n (click)=\"removeOption(item, $event)\"\n [attr.aria-hidden]=\"true\"\n [hBind]=\"ptm('chipIcon')\"\n >\n <ng-container *ngTemplateOutlet=\"chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate; context: { class: 'h-multiselect-chip-icon' }\"></ng-container>\n </span>\n }\n }\n </ng-template>\n }\n </h-chip>\n </div>\n }\n }\n @if (!modelValue() || modelValue().length === 0) {\n {{ placeholder() || 'empty' }}\n }\n }\n }\n @if (selectedItemsTemplate() || _selectedItemsTemplate) {\n <ng-container *ngTemplateOutlet=\"selectedItemsTemplate() || _selectedItemsTemplate; context: { $implicit: selectedOptions, removeChip: removeOption.bind(this) }\"></ng-container>\n @if (!modelValue() || modelValue().length === 0) {\n {{ placeholder() || 'empty' }}\n }\n }\n </div>\n</div>\n@if (isVisibleClearIcon) {\n @if (!clearIconTemplate() && !_clearIconTemplate) {\n <svg data-h-icon=\"times\" [hBind]=\"ptm('clearIcon')\" [class]=\"cx('clearIcon')\" (click)=\"clear($event)\" [attr.aria-hidden]=\"true\" />\n }\n @if (clearIconTemplate() || _clearIconTemplate) {\n <span [hBind]=\"ptm('clearIcon')\" [class]=\"cx('clearIcon')\" (click)=\"clear($event)\" [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"clearIconTemplate() || _clearIconTemplate\"></ng-template>\n </span>\n }\n}\n<div [hBind]=\"ptm('dropdown')\" [class]=\"cx('dropdown')\">\n @if (loading()) {\n @if (loadingIconTemplate() || _loadingIconTemplate) {\n <ng-container *ngTemplateOutlet=\"loadingIconTemplate() || _loadingIconTemplate\"></ng-container>\n }\n @if (!loadingIconTemplate() && !_loadingIconTemplate) {\n @if (loadingIcon()) {\n <span [hBind]=\"ptm('loadingIcon')\" [class]=\"cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon())\" [attr.aria-hidden]=\"true\"></span>\n }\n @if (!loadingIcon()) {\n <span [hBind]=\"ptm('loadingIcon')\" [class]=\"cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')\" [attr.aria-hidden]=\"true\"></span>\n }\n }\n } @else {\n @if (!dropdownIconTemplate() && !_dropdownIconTemplate) {\n @if (dropdownIcon()) {\n <span [hBind]=\"ptm('dropdownIcon')\" [class]=\"cx('dropdownIcon')\" [ngClass]=\"dropdownIcon()\" [attr.aria-hidden]=\"true\" [attr.data-h]=\"dropdownIconDataP\"></span>\n }\n @if (!dropdownIcon()) {\n <svg data-h-icon=\"chevron-down\" [hBind]=\"ptm('dropdownIcon')\" [class]=\"cx('dropdownIcon')\" [attr.aria-hidden]=\"true\" [attr.data-h]=\"dropdownIconDataP\" />\n }\n }\n @if (dropdownIconTemplate() || _dropdownIconTemplate) {\n <span [hBind]=\"ptm('dropdownIcon')\" [class]=\"cx('dropdownIcon')\" [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"dropdownIconTemplate() || _dropdownIconTemplate; context: { dataP: dropdownIconDataP }\"></ng-template>\n </span>\n }\n }\n</div>\n<h-overlay\n #overlay\n [hostAttrSelector]=\"$attrSelector\"\n [(visible)]=\"overlayVisible\"\n [options]=\"overlayOptions()\"\n [target]=\"'@parent'\"\n [appendTo]=\"$appendTo()\"\n [unstyled]=\"unstyled()\"\n [pt]=\"ptm('pcOverlay')\"\n [motionOptions]=\"motionOptions()\"\n (onBeforeEnter)=\"onOverlayBeforeEnter($event)\"\n (onAfterLeave)=\"onOverlayAfterLeave($event)\"\n (onHide)=\"onOverlayHide($event)\"\n >\n <ng-template #content>\n <div [hBind]=\"ptm('overlay')\" [attr.data-h]=\"overlayDataP\" [attr.id]=\"$id() + '_list'\" [class]=\"cn(cx('overlay'), panelStyleClass())\" [ngStyle]=\"panelStyle()\">\n <span\n #firstHiddenFocusableEl\n role=\"presentation\"\n class=\"h-hidden-accessible h-hidden-focusable\"\n [attr.tabindex]=\"0\"\n (focus)=\"onFirstHiddenFocus($event)\"\n [attr.data-h-hidden-accessible]=\"true\"\n [attr.data-h-hidden-focusable]=\"true\"\n [hBind]=\"ptm('firstHiddenFocusableEl')\"\n >\n </span>\n <ng-container *ngTemplateOutlet=\"headerTemplate() || _headerTemplate\"></ng-container>\n @if (showHeader()) {\n <div [hBind]=\"ptm('header')\" [class]=\"cx('header')\">\n <ng-content select=\"h-header\"></ng-content>\n @if (filterTemplate() || _filterTemplate) {\n <ng-container *ngTemplateOutlet=\"filterTemplate() || _filterTemplate; context: { options: filterOptions }\"></ng-container>\n } @else {\n @if (showToggleAll() && !selectionLimit()) {\n <h-checkbox\n [pt]=\"getHeaderCheckboxPTOptions('pcHeaderCheckbox')\"\n [ngModel]=\"allSelected()\"\n [ariaLabel]=\"toggleAllAriaLabel\"\n [binary]=\"true\"\n (onChange)=\"onToggleAll($event)\"\n [variant]=\"$variant()\"\n [disabled]=\"$disabled()\"\n [unstyled]=\"unstyled()\"\n #headerCheckbox\n >\n <ng-template #icon let-klass=\"class\">\n @if (!headerCheckboxIconTemplate() && !_headerCheckboxIconTemplate && allSelected()) {\n <svg data-h-icon=\"check\" [class]=\"klass\" [hBind]=\"getHeaderCheckboxPTOptions('pcHeaderCheckbox.icon')\" />\n }\n <ng-template\n *ngTemplateOutlet=\"\n headerCheckboxIconTemplate() || _headerCheckboxIconTemplate;\n context: {\n checked: allSelected(),\n partialSelected: partialSelected(),\n class: klass\n }\n \"\n ></ng-template>\n </ng-template>\n </h-checkbox>\n }\n @if (filter()) {\n <h-iconfield [pt]=\"ptm('pcFilterContainer')\" [class]=\"cx('pcFilterContainer')\" [unstyled]=\"unstyled()\">\n <input\n #filterInput\n hInputText\n [pt]=\"ptm('pcFilter')\"\n [variant]=\"$variant()\"\n type=\"text\"\n [attr.autocomplete]=\"autocomplete()\"\n role=\"searchbox\"\n [attr.aria-owns]=\"$id() + '_list'\"\n [attr.aria-activedescendant]=\"focusedOptionId\"\n [value]=\"_filterValue() || ''\"\n (input)=\"onFilterInputChange($event)\"\n (keydown)=\"onFilterKeyDown($event)\"\n (click)=\"onInputClick($event)\"\n (blur)=\"onFilterBlur($event)\"\n [class]=\"cx('pcFilter')\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n [attr.placeholder]=\"filterPlaceHolder()\"\n [attr.aria-label]=\"ariaFilterLabel()\"\n [unstyled]=\"unstyled()\"\n />\n <h-inputicon [pt]=\"ptm('pcFilterIconContainer')\" [unstyled]=\"unstyled()\">\n @if (!filterIconTemplate() && !_filterIconTemplate) {\n <svg data-h-icon=\"search\" [hBind]=\"ptm('filterIcon')\" />\n }\n @if (filterIconTemplate() || _filterIconTemplate) {\n <span [hBind]=\"ptm('filterIcon')\" class=\"h-multiselect-filter-icon\">\n <ng-template *ngTemplateOutlet=\"filterIconTemplate() || _filterIconTemplate\"></ng-template>\n </span>\n }\n </h-inputicon>\n </h-iconfield>\n }\n }\n </div>\n }\n <div [hBind]=\"ptm('listContainer')\" [class]=\"cx('listContainer')\" [style.max-height]=\"virtualScroll() ? 'auto' : scrollHeight() || 'auto'\">\n @if (virtualScroll()) {\n <h-scroller\n #scroller\n [items]=\"visibleOptions()\"\n [style]=\"{ height: scrollHeight() }\"\n [itemSize]=\"virtualScrollItemSize()\"\n [autoSize]=\"true\"\n [tabindex]=\"-1\"\n [lazy]=\"lazy()\"\n (onLazyLoad)=\"onLazyLoad.emit($event)\"\n [options]=\"virtualScrollOptions()\"\n >\n <ng-template #content let-items let-scrollerOptions=\"options\">\n <ng-container *ngTemplateOutlet=\"buildInItems; context: { $implicit: items, options: scrollerOptions }\"></ng-container>\n </ng-template>\n @if (loaderTemplate() || _loaderTemplate) {\n <ng-template #loader let-scrollerOptions=\"options\">\n <ng-container *ngTemplateOutlet=\"loaderTemplate() || _loaderTemplate; context: { options: scrollerOptions }\"></ng-container>\n </ng-template>\n }\n </h-scroller>\n }\n @if (!virtualScroll()) {\n <ng-container *ngTemplateOutlet=\"buildInItems; context: { $implicit: visibleOptions(), options: {} }\"></ng-container>\n }\n\n <ng-template #buildInItems let-items let-scrollerOptions=\"options\">\n <ul #items [hBind]=\"ptm('list')\" [class]=\"cn(cx('list'), scrollerOptions.contentStyleClass)\" [style]=\"scrollerOptions.contentStyle\" role=\"listbox\" aria-multiselectable=\"true\" [attr.aria-label]=\"listLabel\">\n @for (option of items; track option; let i = $index) {\n @if (isOptionGroup(option)) {\n <li [hBind]=\"ptm('optionGroup')\" [attr.id]=\"$id() + '_' + getOptionIndex(i, scrollerOptions)\" [class]=\"cx('optionGroup')\" [ngStyle]=\"{ height: scrollerOptions.itemSize + 'px' }\" role=\"option\">\n @if (!groupTemplate() && option.optionGroup) {\n <span>{{ getOptionGroupLabel(option.optionGroup) }}</span>\n }\n @if (option.optionGroup && groupTemplate()) {\n <ng-container [ngTemplateOutlet]=\"groupTemplate()\" [ngTemplateOutletContext]=\"{ $implicit: option.optionGroup }\"></ng-container>\n }\n </li>\n }\n @if (!isOptionGroup(option)) {\n <li\n hMultiSelectItem\n hRipple\n [hBind]=\"getPTOptions(option, getItemOptions, i, 'option')\"\n [id]=\"$id() + '_' + getOptionIndex(i, scrollerOptions)\"\n [option]=\"option\"\n [selected]=\"isSelected(option)\"\n [label]=\"getOptionLabel(option)\"\n [disabled]=\"isOptionDisabled(option)\"\n [template]=\"itemTemplate() || _itemTemplate\"\n [itemCheckboxIconTemplate]=\"itemCheckboxIconTemplate() || _itemCheckboxIconTemplate\"\n [itemSize]=\"scrollerOptions.itemSize\"\n [focused]=\"focusedOptionIndex() === getOptionIndex(i, scrollerOptions)\"\n [ariaPosInset]=\"getAriaPosInset(getOptionIndex(i, scrollerOptions))\"\n [ariaSetSize]=\"ariaSetSize\"\n [variant]=\"$variant()\"\n [highlightOnSelect]=\"highlightOnSelect()\"\n (onClick)=\"onOptionSelect($event, false, getOptionIndex(i, scrollerOptions))\"\n (onMouseEnter)=\"onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))\"\n [pt]=\"pt\"\n [unstyled]=\"unstyled()\"\n ></li>\n }\n }\n\n @if (hasFilter() && isEmpty()) {\n <li [hBind]=\"ptm('emptyMessage')\" [class]=\"cx('emptyMessage')\" [ngStyle]=\"{ height: scrollerOptions.itemSize + 'px' }\" role=\"option\">\n @if (!emptyFilterTemplate() && !_emptyFilterTemplate && !emptyTemplate() && !_emptyTemplate) {\n {{ emptyFilterMessageLabel }}\n } @else {\n <ng-container *ngTemplateOutlet=\"emptyFilterTemplate() || _emptyFilterTemplate || emptyTemplate() || _emptyFilterTemplate\"></ng-container>\n }\n </li>\n }\n @if (!hasFilter() && isEmpty()) {\n <li [hBind]=\"ptm('emptyMessage')\" [class]=\"cx('emptyMessage')\" [ngStyle]=\"{ height: scrollerOptions.itemSize + 'px' }\" role=\"option\">\n @if (!emptyTemplate() && !_emptyTemplate) {\n {{ emptyMessageLabel }}\n } @else {\n <ng-container *ngTemplateOutlet=\"emptyTemplate() || _emptyTemplate\"></ng-container>\n }\n </li>\n }\n </ul>\n </ng-template>\n </div>\n @if (footerFacet() || footerTemplate() || _footerTemplate) {\n <div>\n <ng-content select=\"h-footer\"></ng-content>\n <ng-container *ngTemplateOutlet=\"footerTemplate() || _footerTemplate\"></ng-container>\n </div>\n }\n\n <span\n #lastHiddenFocusableEl\n role=\"presentation\"\n class=\"h-hidden-accessible h-hidden-focusable\"\n [attr.tabindex]=\"0\"\n (focus)=\"onLastHiddenFocus($event)\"\n [attr.data-h-hidden-accessible]=\"true\"\n [attr.data-h-hidden-focusable]=\"true\"\n [hBind]=\"ptm('lastHiddenFocusableEl')\"\n ></span>\n </div>\n</ng-template>\n</h-overlay>\n" }]
|
|
2087
|
+
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i3.FilterService }, { type: i3.OverlayService }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], panelStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyle", required: false }] }], panelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyleClass", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], filterPlaceHolder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceHolder", required: false }] }], filterLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLocale", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], displaySelectedLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "displaySelectedLabel", required: false }] }], maxSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSelectedLabels", required: false }] }], selectionLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionLimit", required: false }] }], selectedItemsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedItemsLabel", required: false }] }], showToggleAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "showToggleAll", required: false }] }], emptyFilterMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyFilterMessage", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], resetFilterOnHide: [{ type: i0.Input, args: [{ isSignal: true, alias: "resetFilterOnHide", required: false }] }], dropdownIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownIcon", required: false }] }], chipIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "chipIcon", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], optionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionDisabled", required: false }] }], optionGroupLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupLabel", required: false }] }], optionGroupChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupChildren", required: false }] }], showHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "showHeader", required: false }] }], filterBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterBy", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], loadingIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingIcon", required: false }] }], virtualScrollOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollOptions", required: false }] }], overlayOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "overlayOptions", required: false }] }], ariaFilterLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaFilterLabel", required: false }] }], filterMatchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMatchMode", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPosition", required: false }] }], tooltipPositionStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPositionStyle", required: false }] }], tooltipStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipStyleClass", required: false }] }], autofocusFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocusFilter", required: false }] }], display: [{ type: i0.Input, args: [{ isSignal: true, alias: "display", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], filterValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterValue", required: false }] }], selectAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAll", required: false }] }], focusOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnHover", required: false }] }], filterFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterFields", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], autoOptionFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoOptionFocus", required: false }] }], highlightOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightOnSelect", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onFilter: [{ type: i0.Output, args: ["onFilter"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onClick: [{ type: i0.Output, args: ["onClick"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], onPanelShow: [{ type: i0.Output, args: ["onPanelShow"] }], onPanelHide: [{ type: i0.Output, args: ["onPanelHide"] }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], onRemove: [{ type: i0.Output, args: ["onRemove"] }], onSelectAllChange: [{ type: i0.Output, args: ["onSelectAllChange"] }], overlayViewChild: [{ type: i0.ViewChild, args: ['overlay', { isSignal: true }] }], filterInputChild: [{ type: i0.ViewChild, args: ['filterInput', { isSignal: true }] }], focusInputViewChild: [{ type: i0.ViewChild, args: ['focusInput', { isSignal: true }] }], itemsViewChild: [{ type: i0.ViewChild, args: ['items', { isSignal: true }] }], scroller: [{ type: i0.ViewChild, args: ['scroller', { isSignal: true }] }], lastHiddenFocusableElementOnOverlay: [{ type: i0.ViewChild, args: ['lastHiddenFocusableEl', { isSignal: true }] }], firstHiddenFocusableElementOnOverlay: [{ type: i0.ViewChild, args: ['firstHiddenFocusableEl', { isSignal: true }] }], headerCheckboxViewChild: [{ type: i0.ViewChild, args: ['headerCheckbox', { isSignal: true }] }], footerFacet: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Footer), { isSignal: true }] }], headerFacet: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Header), { isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], groupTemplate: [{ type: i0.ContentChild, args: ['group', { ...{ descendants: false }, isSignal: true }] }], loaderTemplate: [{ type: i0.ContentChild, args: ['loader', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], filterTemplate: [{ type: i0.ContentChild, args: ['filter', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], emptyFilterTemplate: [{ type: i0.ContentChild, args: ['emptyfilter', { ...{ descendants: false }, isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: ['empty', { ...{ descendants: false }, isSignal: true }] }], selectedItemsTemplate: [{ type: i0.ContentChild, args: ['selecteditems', { ...{ descendants: false }, isSignal: true }] }], loadingIconTemplate: [{ type: i0.ContentChild, args: ['loadingicon', { ...{ descendants: false }, isSignal: true }] }], filterIconTemplate: [{ type: i0.ContentChild, args: ['filtericon', { ...{ descendants: false }, isSignal: true }] }], removeTokenIconTemplate: [{ type: i0.ContentChild, args: ['removetokenicon', { ...{ descendants: false }, isSignal: true }] }], chipIconTemplate: [{ type: i0.ContentChild, args: ['chipicon', { ...{ descendants: false }, isSignal: true }] }], clearIconTemplate: [{ type: i0.ContentChild, args: ['clearicon', { ...{ descendants: false }, isSignal: true }] }], dropdownIconTemplate: [{ type: i0.ContentChild, args: ['dropdownicon', { ...{ descendants: false }, isSignal: true }] }], itemCheckboxIconTemplate: [{ type: i0.ContentChild, args: ['itemcheckboxicon', { ...{ descendants: false }, isSignal: true }] }], headerCheckboxIconTemplate: [{ type: i0.ContentChild, args: ['headercheckboxicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => HelixTemplate), { isSignal: true }] }] } });
|
|
2088
|
+
class MultiSelectModule {
|
|
2089
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: MultiSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2090
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.6", ngImport: i0, type: MultiSelectModule, imports: [MultiSelect, SharedModule], exports: [MultiSelect, SharedModule] });
|
|
2091
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: MultiSelectModule, imports: [MultiSelect, SharedModule, SharedModule] });
|
|
2092
|
+
}
|
|
2093
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: MultiSelectModule, decorators: [{
|
|
2094
|
+
type: NgModule,
|
|
2095
|
+
args: [{
|
|
2096
|
+
imports: [MultiSelect, SharedModule],
|
|
2097
|
+
exports: [MultiSelect, SharedModule]
|
|
2098
|
+
}]
|
|
2099
|
+
}] });
|
|
2100
|
+
|
|
2101
|
+
/**
|
|
2102
|
+
* Generated bundle index. Do not edit.
|
|
2103
|
+
*/
|
|
2104
|
+
|
|
2105
|
+
export { MULTISELECT_VALUE_ACCESSOR, MultiSelect, MultiSelectClasses, MultiSelectItem, MultiSelectModule, MultiSelectStyle };
|
|
2106
|
+
//# sourceMappingURL=gravionlabs-helix-core-multiselect.mjs.map
|