@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,1956 @@
|
|
|
1
|
+
export * from '@gravionlabs/helix-core/types/autocomplete';
|
|
2
|
+
import * as i3 from '@angular/common';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { Injectable, InjectionToken, forwardRef, inject, input, numberAttribute, booleanAttribute, model, output, viewChild, contentChild, signal, computed, effect, contentChildren, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
|
+
import { equals, isNotEmpty, uuid, findLastIndex, resolveFieldData, focus, isEmpty, findSingle } from '@gravionlabs/helix-core/uix/utils';
|
|
8
|
+
import * as i1 from '@gravionlabs/helix-core/api';
|
|
9
|
+
import { TranslationKeys, HelixTemplate, SharedModule } from '@gravionlabs/helix-core/api';
|
|
10
|
+
import { AutoFocus } from '@gravionlabs/helix-core/autofocus';
|
|
11
|
+
import { PARENT_INSTANCE } from '@gravionlabs/helix-core/basecomponent';
|
|
12
|
+
import { BaseInput } from '@gravionlabs/helix-core/baseinput';
|
|
13
|
+
import * as i2 from '@gravionlabs/helix-core/bind';
|
|
14
|
+
import { Bind, BindModule } from '@gravionlabs/helix-core/bind';
|
|
15
|
+
import { Chip } from '@gravionlabs/helix-core/chip';
|
|
16
|
+
import { TimesCircleIcon, SpinnerIcon, ChevronDownIcon, TimesIcon } from '@gravionlabs/helix-core/icons';
|
|
17
|
+
import { InputText } from '@gravionlabs/helix-core/inputtext';
|
|
18
|
+
import { Overlay } from '@gravionlabs/helix-core/overlay';
|
|
19
|
+
import { Ripple } from '@gravionlabs/helix-core/ripple';
|
|
20
|
+
import { Scroller } from '@gravionlabs/helix-core/scroller';
|
|
21
|
+
import { BaseStyle } from '@gravionlabs/helix-core/base';
|
|
22
|
+
|
|
23
|
+
const style$1 = /*css*/ `
|
|
24
|
+
.h-autocomplete {
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.h-autocomplete-loader {
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 50%;
|
|
31
|
+
margin-top: -0.5rem;
|
|
32
|
+
inset-inline-end: dt('autocomplete.padding.x');
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.h-autocomplete:has(.h-autocomplete-dropdown) .h-autocomplete-loader {
|
|
36
|
+
inset-inline-end: calc(dt('autocomplete.dropdown.width') + dt('autocomplete.padding.x'));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.h-autocomplete:has(.h-autocomplete-dropdown) .h-autocomplete-input {
|
|
40
|
+
flex: 1 1 auto;
|
|
41
|
+
width: 1%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.h-autocomplete:has(.h-autocomplete-dropdown) .h-autocomplete-input,
|
|
45
|
+
.h-autocomplete:has(.h-autocomplete-dropdown) .h-autocomplete-input-multiple {
|
|
46
|
+
border-start-end-radius: 0;
|
|
47
|
+
border-end-end-radius: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.h-autocomplete-dropdown {
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
display: inline-flex;
|
|
53
|
+
user-select: none;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
position: relative;
|
|
58
|
+
width: dt('autocomplete.dropdown.width');
|
|
59
|
+
border-start-end-radius: dt('autocomplete.dropdown.border.radius');
|
|
60
|
+
border-end-end-radius: dt('autocomplete.dropdown.border.radius');
|
|
61
|
+
background: dt('autocomplete.dropdown.background');
|
|
62
|
+
border: 1px solid dt('autocomplete.dropdown.border.color');
|
|
63
|
+
border-inline-start: 0 none;
|
|
64
|
+
color: dt('autocomplete.dropdown.color');
|
|
65
|
+
transition:
|
|
66
|
+
background dt('autocomplete.transition.duration'),
|
|
67
|
+
color dt('autocomplete.transition.duration'),
|
|
68
|
+
border-color dt('autocomplete.transition.duration'),
|
|
69
|
+
outline-color dt('autocomplete.transition.duration'),
|
|
70
|
+
box-shadow dt('autocomplete.transition.duration');
|
|
71
|
+
outline-color: transparent;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.h-autocomplete-dropdown:not(:disabled):hover {
|
|
75
|
+
background: dt('autocomplete.dropdown.hover.background');
|
|
76
|
+
border-color: dt('autocomplete.dropdown.hover.border.color');
|
|
77
|
+
color: dt('autocomplete.dropdown.hover.color');
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.h-autocomplete-dropdown:not(:disabled):active {
|
|
81
|
+
background: dt('autocomplete.dropdown.active.background');
|
|
82
|
+
border-color: dt('autocomplete.dropdown.active.border.color');
|
|
83
|
+
color: dt('autocomplete.dropdown.active.color');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.h-autocomplete-dropdown:focus-visible {
|
|
87
|
+
box-shadow: dt('autocomplete.dropdown.focus.ring.shadow');
|
|
88
|
+
outline: dt('autocomplete.dropdown.focus.ring.width') dt('autocomplete.dropdown.focus.ring.style') dt('autocomplete.dropdown.focus.ring.color');
|
|
89
|
+
outline-offset: dt('autocomplete.dropdown.focus.ring.offset');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.h-autocomplete-overlay {
|
|
93
|
+
position: absolute;
|
|
94
|
+
top: 0;
|
|
95
|
+
left: 0;
|
|
96
|
+
background: dt('autocomplete.overlay.background');
|
|
97
|
+
color: dt('autocomplete.overlay.color');
|
|
98
|
+
border: 1px solid dt('autocomplete.overlay.border.color');
|
|
99
|
+
border-radius: dt('autocomplete.overlay.border.radius');
|
|
100
|
+
box-shadow: dt('autocomplete.overlay.shadow');
|
|
101
|
+
min-width: 100%;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.h-autocomplete-list-container {
|
|
105
|
+
overflow: auto;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.h-autocomplete-list {
|
|
109
|
+
margin: 0;
|
|
110
|
+
list-style-type: none;
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-direction: column;
|
|
113
|
+
gap: dt('autocomplete.list.gap');
|
|
114
|
+
padding: dt('autocomplete.list.padding');
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.h-autocomplete-option {
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
white-space: nowrap;
|
|
120
|
+
position: relative;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
padding: dt('autocomplete.option.padding');
|
|
125
|
+
border: 0 none;
|
|
126
|
+
color: dt('autocomplete.option.color');
|
|
127
|
+
background: transparent;
|
|
128
|
+
transition:
|
|
129
|
+
background dt('autocomplete.transition.duration'),
|
|
130
|
+
color dt('autocomplete.transition.duration'),
|
|
131
|
+
border-color dt('autocomplete.transition.duration');
|
|
132
|
+
border-radius: dt('autocomplete.option.border.radius');
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.h-autocomplete-option:not(.h-autocomplete-option-selected):not(.h-disabled).h-focus {
|
|
136
|
+
background: dt('autocomplete.option.focus.background');
|
|
137
|
+
color: dt('autocomplete.option.focus.color');
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.h-autocomplete-option:not(.h-autocomplete-option-selected):not(.h-disabled):hover {
|
|
141
|
+
background: dt('autocomplete.option.focus.background');
|
|
142
|
+
color: dt('autocomplete.option.focus.color');
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.h-autocomplete-option-selected {
|
|
146
|
+
background: dt('autocomplete.option.selected.background');
|
|
147
|
+
color: dt('autocomplete.option.selected.color');
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.h-autocomplete-option-selected.h-focus {
|
|
151
|
+
background: dt('autocomplete.option.selected.focus.background');
|
|
152
|
+
color: dt('autocomplete.option.selected.focus.color');
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.h-autocomplete-option-group {
|
|
156
|
+
margin: 0;
|
|
157
|
+
padding: dt('autocomplete.option.group.padding');
|
|
158
|
+
color: dt('autocomplete.option.group.color');
|
|
159
|
+
background: dt('autocomplete.option.group.background');
|
|
160
|
+
font-weight: dt('autocomplete.option.group.font.weight');
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.h-autocomplete-input-multiple {
|
|
164
|
+
margin: 0;
|
|
165
|
+
list-style-type: none;
|
|
166
|
+
cursor: text;
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
flex-wrap: wrap;
|
|
171
|
+
padding: calc(dt('autocomplete.padding.y') / 2) dt('autocomplete.padding.x');
|
|
172
|
+
gap: calc(dt('autocomplete.padding.y') / 2);
|
|
173
|
+
color: dt('autocomplete.color');
|
|
174
|
+
background: dt('autocomplete.background');
|
|
175
|
+
border: 1px solid dt('autocomplete.border.color');
|
|
176
|
+
border-radius: dt('autocomplete.border.radius');
|
|
177
|
+
width: 100%;
|
|
178
|
+
transition:
|
|
179
|
+
background dt('autocomplete.transition.duration'),
|
|
180
|
+
color dt('autocomplete.transition.duration'),
|
|
181
|
+
border-color dt('autocomplete.transition.duration'),
|
|
182
|
+
outline-color dt('autocomplete.transition.duration'),
|
|
183
|
+
box-shadow dt('autocomplete.transition.duration');
|
|
184
|
+
outline-color: transparent;
|
|
185
|
+
box-shadow: dt('autocomplete.shadow');
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.h-autocomplete-input-multiple.h-disabled {
|
|
189
|
+
opacity: 1;
|
|
190
|
+
background: dt('autocomplete.disabled.background');
|
|
191
|
+
color: dt('autocomplete.disabled.color');
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.h-autocomplete-input-multiple:not(.h-disabled):hover {
|
|
195
|
+
border-color: dt('autocomplete.hover.border.color');
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.h-autocomplete.h-focus .h-autocomplete-input-multiple:not(.h-disabled) {
|
|
199
|
+
border-color: dt('autocomplete.focus.border.color');
|
|
200
|
+
box-shadow: dt('autocomplete.focus.ring.shadow');
|
|
201
|
+
outline: dt('autocomplete.focus.ring.width') dt('autocomplete.focus.ring.style') dt('autocomplete.focus.ring.color');
|
|
202
|
+
outline-offset: dt('autocomplete.focus.ring.offset');
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.h-autocomplete.h-invalid .h-autocomplete-input-multiple {
|
|
206
|
+
border-color: dt('autocomplete.invalid.border.color');
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.h-variant-filled.h-autocomplete-input-multiple {
|
|
210
|
+
background: dt('autocomplete.filled.background');
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.h-autocomplete-input-multiple.h-variant-filled:not(.h-disabled):hover {
|
|
214
|
+
background: dt('autocomplete.filled.hover.background');
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.h-autocomplete.h-focus .h-autocomplete-input-multiple.h-variant-filled:not(.h-disabled) {
|
|
218
|
+
background: dt('autocomplete.filled.focus.background');
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.h-autocomplete-chip.h-chip {
|
|
222
|
+
padding-block-start: calc(dt('autocomplete.padding.y') / 2);
|
|
223
|
+
padding-block-end: calc(dt('autocomplete.padding.y') / 2);
|
|
224
|
+
border-radius: dt('autocomplete.chip.border.radius');
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.h-autocomplete-input-multiple:has(.h-autocomplete-chip) {
|
|
228
|
+
padding-inline-start: calc(dt('autocomplete.padding.y') / 2);
|
|
229
|
+
padding-inline-end: calc(dt('autocomplete.padding.y') / 2);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.h-autocomplete-chip-item.h-focus .h-autocomplete-chip {
|
|
233
|
+
background: dt('autocomplete.chip.focus.background');
|
|
234
|
+
color: dt('autocomplete.chip.focus.color');
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.h-autocomplete-input-chip {
|
|
238
|
+
flex: 1 1 auto;
|
|
239
|
+
display: inline-flex;
|
|
240
|
+
padding-block-start: calc(dt('autocomplete.padding.y') / 2);
|
|
241
|
+
padding-block-end: calc(dt('autocomplete.padding.y') / 2);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.h-autocomplete-input-chip input {
|
|
245
|
+
border: 0 none;
|
|
246
|
+
outline: 0 none;
|
|
247
|
+
background: transparent;
|
|
248
|
+
margin: 0;
|
|
249
|
+
padding: 0;
|
|
250
|
+
box-shadow: none;
|
|
251
|
+
border-radius: 0;
|
|
252
|
+
width: 100%;
|
|
253
|
+
font-family: inherit;
|
|
254
|
+
font-feature-settings: inherit;
|
|
255
|
+
font-size: 1rem;
|
|
256
|
+
color: inherit;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.h-autocomplete-input-chip input::placeholder {
|
|
260
|
+
color: dt('autocomplete.placeholder.color');
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.h-autocomplete.h-invalid .h-autocomplete-input-chip input::placeholder {
|
|
264
|
+
color: dt('autocomplete.invalid.placeholder.color');
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.h-autocomplete-empty-message {
|
|
268
|
+
padding: dt('autocomplete.empty.message.padding');
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.h-autocomplete-fluid {
|
|
272
|
+
display: flex;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.h-autocomplete-fluid:has(.h-autocomplete-dropdown) .h-autocomplete-input {
|
|
276
|
+
width: 1%;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.h-autocomplete:has(.h-inputtext-sm) .h-autocomplete-dropdown {
|
|
280
|
+
width: dt('autocomplete.dropdown.sm.width');
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.h-autocomplete:has(.h-inputtext-sm) .h-autocomplete-dropdown .h-icon {
|
|
284
|
+
font-size: dt('form.field.sm.font.size');
|
|
285
|
+
width: dt('form.field.sm.font.size');
|
|
286
|
+
height: dt('form.field.sm.font.size');
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.h-autocomplete:has(.h-inputtext-lg) .h-autocomplete-dropdown {
|
|
290
|
+
width: dt('autocomplete.dropdown.lg.width');
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.h-autocomplete:has(.h-inputtext-lg) .h-autocomplete-dropdown .h-icon {
|
|
294
|
+
font-size: dt('form.field.lg.font.size');
|
|
295
|
+
width: dt('form.field.lg.font.size');
|
|
296
|
+
height: dt('form.field.lg.font.size');
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.h-autocomplete-clear-icon {
|
|
300
|
+
position: absolute;
|
|
301
|
+
top: 50%;
|
|
302
|
+
margin-top: -0.5rem;
|
|
303
|
+
cursor: pointer;
|
|
304
|
+
color: dt('form.field.icon.color');
|
|
305
|
+
inset-inline-end: dt('autocomplete.padding.x');
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.h-autocomplete:has(.h-autocomplete-dropdown) .h-autocomplete-clear-icon {
|
|
309
|
+
inset-inline-end: calc(dt('autocomplete.padding.x') + dt('autocomplete.dropdown.width'));
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.h-autocomplete:has(.h-autocomplete-clear-icon) .h-autocomplete-input {
|
|
313
|
+
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.h-inputgroup .h-autocomplete-dropdown {
|
|
317
|
+
border-radius: 0;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.h-inputgroup > .h-autocomplete:last-child:has(.h-autocomplete-dropdown) > .h-autocomplete-input {
|
|
321
|
+
border-start-end-radius: 0;
|
|
322
|
+
border-end-end-radius: 0;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.h-inputgroup > .h-autocomplete:last-child .h-autocomplete-dropdown {
|
|
326
|
+
border-start-end-radius: dt('autocomplete.dropdown.border.radius');
|
|
327
|
+
border-end-end-radius: dt('autocomplete.dropdown.border.radius');
|
|
328
|
+
}
|
|
329
|
+
`;
|
|
330
|
+
|
|
331
|
+
const style = /*css*/ `
|
|
332
|
+
${style$1}
|
|
333
|
+
|
|
334
|
+
/* For Helix */
|
|
335
|
+
h-autoComplete.ng-invalid.ng-dirty .h-autocomplete-input,
|
|
336
|
+
h-autoComplete.ng-invalid.ng-dirty .h-autocomplete-input-multiple,
|
|
337
|
+
h-auto-complete.ng-invalid.ng-dirty .h-autocomplete-input,
|
|
338
|
+
h-auto-complete.ng-invalid.ng-dirty .h-autocomplete-input-multiple h-autocomplete.ng-invalid.ng-dirty .h-autocomplete-input,
|
|
339
|
+
h-autocomplete.ng-invalid.ng-dirty .h-autocomplete-input-multiple {
|
|
340
|
+
border-color: dt('autocomplete.invalid.border.color');
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
h-autoComplete.ng-invalid.ng-dirty .h-autocomplete-input:enabled:focus,
|
|
344
|
+
h-autoComplete.ng-invalid.ng-dirty:not(.h-disabled).h-focus .h-autocomplete-input-multiple,
|
|
345
|
+
h-auto-complete.ng-invalid.ng-dirty .h-autocomplete-input:enabled:focus,
|
|
346
|
+
h-auto-complete.ng-invalid.ng-dirty:not(.h-disabled).h-focus .h-autocomplete-input-multiple,
|
|
347
|
+
h-autocomplete.ng-invalid.ng-dirty .h-autocomplete-input:enabled:focus,
|
|
348
|
+
h-autocomplete.ng-invalid.ng-dirty:not(.h-disabled).h-focus .h-autocomplete-input-multiple {
|
|
349
|
+
border-color: dt('autocomplete.focus.border.color');
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
h-autoComplete.ng-invalid.ng-dirty .h-autocomplete-input-chip input::placeholder,
|
|
353
|
+
h-auto-complete.ng-invalid.ng-dirty .h-autocomplete-input-chip input::placeholder,
|
|
354
|
+
h-autocomplete.ng-invalid.ng-dirty .h-autocomplete-input-chip input::placeholder {
|
|
355
|
+
color: dt('autocomplete.invalid.placeholder.color');
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
h-autoComplete.ng-invalid.ng-dirty .h-autocomplete-input::placeholder,
|
|
359
|
+
h-auto-complete.ng-invalid.ng-dirty .h-autocomplete-input::placeholder,
|
|
360
|
+
h-autocomplete.ng-invalid.ng-dirty .h-autocomplete-input::placeholder {
|
|
361
|
+
color: dt('autocomplete.invalid.placeholder.color');
|
|
362
|
+
}
|
|
363
|
+
`;
|
|
364
|
+
const inlineStyles = {
|
|
365
|
+
root: { position: 'relative' }
|
|
366
|
+
};
|
|
367
|
+
const classes = {
|
|
368
|
+
root: ({ instance }) => [
|
|
369
|
+
'h-autocomplete h-component h-inputwrapper',
|
|
370
|
+
{
|
|
371
|
+
'h-invalid': instance.invalid(),
|
|
372
|
+
'h-focus': instance.focused,
|
|
373
|
+
'h-inputwrapper-filled': instance.$filled(),
|
|
374
|
+
'h-inputwrapper-focus': (instance.focused && !instance.$disabled()) || instance.autofocus || instance.overlayVisible,
|
|
375
|
+
'h-autocomplete-open': instance.overlayVisible,
|
|
376
|
+
'h-autocomplete-clearable': instance.showClear && !instance.$disabled(),
|
|
377
|
+
'h-autocomplete-fluid': instance.hasFluid
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
pcInputText: 'h-autocomplete-input',
|
|
381
|
+
inputMultiple: ({ instance }) => [
|
|
382
|
+
'h-autocomplete-input-multiple',
|
|
383
|
+
{
|
|
384
|
+
'h-disabled': instance.$disabled(),
|
|
385
|
+
'h-variant-filled': instance.$variant() === 'filled'
|
|
386
|
+
}
|
|
387
|
+
],
|
|
388
|
+
chipItem: ({ instance, i }) => [
|
|
389
|
+
'h-autocomplete-chip-item',
|
|
390
|
+
{
|
|
391
|
+
'h-focus': instance.focusedMultipleOptionIndex() === i
|
|
392
|
+
}
|
|
393
|
+
],
|
|
394
|
+
pcChip: 'h-autocomplete-chip',
|
|
395
|
+
chipIcon: 'h-autocomplete-chip-icon',
|
|
396
|
+
inputChip: 'h-autocomplete-input-chip',
|
|
397
|
+
loader: 'h-autocomplete-loader',
|
|
398
|
+
dropdown: 'h-autocomplete-dropdown',
|
|
399
|
+
overlay: ({ instance }) => ['h-autocomplete-overlay h-component-overlay h-component', { 'h-input-filled': instance.$variant() === 'filled', 'h-ripple-disabled': instance.config.ripple() === false }],
|
|
400
|
+
listContainer: 'h-autocomplete-list-container',
|
|
401
|
+
list: 'h-autocomplete-list',
|
|
402
|
+
optionGroup: 'h-autocomplete-option-group',
|
|
403
|
+
option: ({ instance, option, i, scrollerOptions }) => ({
|
|
404
|
+
'h-autocomplete-option': true,
|
|
405
|
+
'h-autocomplete-option-selected': instance.isSelected(option),
|
|
406
|
+
'h-focus': instance.focusedOptionIndex() === instance.getOptionIndex(i, scrollerOptions),
|
|
407
|
+
'h-disabled': instance.isOptionDisabled(option)
|
|
408
|
+
}),
|
|
409
|
+
emptyMessage: 'h-autocomplete-empty-message',
|
|
410
|
+
clearIcon: 'h-autocomplete-clear-icon'
|
|
411
|
+
};
|
|
412
|
+
class AutoCompleteStyle extends BaseStyle {
|
|
413
|
+
name = 'autocomplete';
|
|
414
|
+
style = style;
|
|
415
|
+
classes = classes;
|
|
416
|
+
inlineStyles = inlineStyles;
|
|
417
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AutoCompleteStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
418
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AutoCompleteStyle });
|
|
419
|
+
}
|
|
420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AutoCompleteStyle, decorators: [{
|
|
421
|
+
type: Injectable
|
|
422
|
+
}] });
|
|
423
|
+
/**
|
|
424
|
+
*
|
|
425
|
+
* AutoComplete is an input component that provides real-time suggestions while being typed.
|
|
426
|
+
*
|
|
427
|
+
* [Live Demo](https://www.primeng.org/autocomplete/)
|
|
428
|
+
*
|
|
429
|
+
* @module autocompletestyle
|
|
430
|
+
*
|
|
431
|
+
*/
|
|
432
|
+
var AutoCompleteClasses;
|
|
433
|
+
(function (AutoCompleteClasses) {
|
|
434
|
+
/**
|
|
435
|
+
* Class name of the root element
|
|
436
|
+
*/
|
|
437
|
+
AutoCompleteClasses["root"] = "h-autocomplete";
|
|
438
|
+
/**
|
|
439
|
+
* Class name of the input element
|
|
440
|
+
*/
|
|
441
|
+
AutoCompleteClasses["pcInputText"] = "h-autocomplete-input";
|
|
442
|
+
/**
|
|
443
|
+
* Class name of the input multiple element
|
|
444
|
+
*/
|
|
445
|
+
AutoCompleteClasses["inputMultiple"] = "h-autocomplete-input-multiple";
|
|
446
|
+
/**
|
|
447
|
+
* Class name of the chip item element
|
|
448
|
+
*/
|
|
449
|
+
AutoCompleteClasses["chipItem"] = "h-autocomplete-chip-item";
|
|
450
|
+
/**
|
|
451
|
+
* Class name of the chip element
|
|
452
|
+
*/
|
|
453
|
+
AutoCompleteClasses["pcChip"] = "h-autocomplete-chip";
|
|
454
|
+
/**
|
|
455
|
+
* Class name of the chip icon element
|
|
456
|
+
*/
|
|
457
|
+
AutoCompleteClasses["chipIcon"] = "h-autocomplete-chip-icon";
|
|
458
|
+
/**
|
|
459
|
+
* Class name of the input chip element
|
|
460
|
+
*/
|
|
461
|
+
AutoCompleteClasses["inputChip"] = "h-autocomplete-input-chip";
|
|
462
|
+
/**
|
|
463
|
+
* Class name of the loader element
|
|
464
|
+
*/
|
|
465
|
+
AutoCompleteClasses["loader"] = "h-autocomplete-loader";
|
|
466
|
+
/**
|
|
467
|
+
* Class name of the dropdown element
|
|
468
|
+
*/
|
|
469
|
+
AutoCompleteClasses["dropdown"] = "h-autocomplete-dropdown";
|
|
470
|
+
/**
|
|
471
|
+
* Class name of the panel element
|
|
472
|
+
*/
|
|
473
|
+
AutoCompleteClasses["panel"] = "h-autocomplete-overlay";
|
|
474
|
+
/**
|
|
475
|
+
* Class name of the list element
|
|
476
|
+
*/
|
|
477
|
+
AutoCompleteClasses["list"] = "h-autocomplete-list";
|
|
478
|
+
/**
|
|
479
|
+
* Class name of the option group element
|
|
480
|
+
*/
|
|
481
|
+
AutoCompleteClasses["optionGroup"] = "h-autocomplete-option-group";
|
|
482
|
+
/**
|
|
483
|
+
* Class name of the option element
|
|
484
|
+
*/
|
|
485
|
+
AutoCompleteClasses["option"] = "h-autocomplete-option";
|
|
486
|
+
/**
|
|
487
|
+
* Class name of the empty message element
|
|
488
|
+
*/
|
|
489
|
+
AutoCompleteClasses["emptyMessage"] = "h-autocomplete-empty-message";
|
|
490
|
+
/**
|
|
491
|
+
* Class name of the clear icon
|
|
492
|
+
*/
|
|
493
|
+
AutoCompleteClasses["clearIcon"] = "h-autocomplete-clear-icon";
|
|
494
|
+
})(AutoCompleteClasses || (AutoCompleteClasses = {}));
|
|
495
|
+
|
|
496
|
+
const AUTOCOMPLETE_INSTANCE = new InjectionToken('AUTOCOMPLETE_INSTANCE');
|
|
497
|
+
const AUTOCOMPLETE_VALUE_ACCESSOR = {
|
|
498
|
+
provide: NG_VALUE_ACCESSOR,
|
|
499
|
+
useExisting: forwardRef(() => AutoComplete),
|
|
500
|
+
multi: true
|
|
501
|
+
};
|
|
502
|
+
/**
|
|
503
|
+
* AutoComplete is an input component that provides real-time suggestions when being typed.
|
|
504
|
+
* @group Components
|
|
505
|
+
*/
|
|
506
|
+
class AutoComplete extends BaseInput {
|
|
507
|
+
overlayService;
|
|
508
|
+
zone;
|
|
509
|
+
componentName = 'AutoComplete';
|
|
510
|
+
$pcAutoComplete = inject(AUTOCOMPLETE_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
511
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
512
|
+
/**
|
|
513
|
+
* Minimum number of characters to initiate a search.
|
|
514
|
+
* @deprecated since v20.0.0, use `minQueryLength` instead.
|
|
515
|
+
* @group Props
|
|
516
|
+
*/
|
|
517
|
+
minLength = input(1, { ...(ngDevMode ? { debugName: "minLength" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
518
|
+
/**
|
|
519
|
+
* Minimum number of characters to initiate a search.
|
|
520
|
+
* @group Props
|
|
521
|
+
*/
|
|
522
|
+
minQueryLength = input(undefined, { ...(ngDevMode ? { debugName: "minQueryLength" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
523
|
+
/**
|
|
524
|
+
* Delay between keystrokes to wait before sending a query.
|
|
525
|
+
* @group Props
|
|
526
|
+
*/
|
|
527
|
+
delay = input(300, { ...(ngDevMode ? { debugName: "delay" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
528
|
+
/**
|
|
529
|
+
* Inline style of the overlay panel element.
|
|
530
|
+
* @group Props
|
|
531
|
+
*/
|
|
532
|
+
panelStyle = input(/* @ts-ignore */
|
|
533
|
+
...(ngDevMode ? [undefined, { debugName: "panelStyle" }] : /* istanbul ignore next */ []));
|
|
534
|
+
/**
|
|
535
|
+
* Style class of the component.
|
|
536
|
+
* @deprecated since v20.0.0, use `class` instead.
|
|
537
|
+
* @group Props
|
|
538
|
+
*/
|
|
539
|
+
styleClass = input(/* @ts-ignore */
|
|
540
|
+
...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
541
|
+
/**
|
|
542
|
+
* Style class of the overlay panel element.
|
|
543
|
+
* @group Props
|
|
544
|
+
*/
|
|
545
|
+
panelStyleClass = input(/* @ts-ignore */
|
|
546
|
+
...(ngDevMode ? [undefined, { debugName: "panelStyleClass" }] : /* istanbul ignore next */ []));
|
|
547
|
+
/**
|
|
548
|
+
* Inline style of the input field.
|
|
549
|
+
* @group Props
|
|
550
|
+
*/
|
|
551
|
+
inputStyle = input(/* @ts-ignore */
|
|
552
|
+
...(ngDevMode ? [undefined, { debugName: "inputStyle" }] : /* istanbul ignore next */ []));
|
|
553
|
+
/**
|
|
554
|
+
* Identifier of the focus input to match a label defined for the component.
|
|
555
|
+
* @group Props
|
|
556
|
+
*/
|
|
557
|
+
inputId = input(/* @ts-ignore */
|
|
558
|
+
...(ngDevMode ? [undefined, { debugName: "inputId" }] : /* istanbul ignore next */ []));
|
|
559
|
+
/**
|
|
560
|
+
* Inline style of the input field.
|
|
561
|
+
* @group Props
|
|
562
|
+
*/
|
|
563
|
+
inputStyleClass = input(/* @ts-ignore */
|
|
564
|
+
...(ngDevMode ? [undefined, { debugName: "inputStyleClass" }] : /* istanbul ignore next */ []));
|
|
565
|
+
/**
|
|
566
|
+
* Hint text for the input field.
|
|
567
|
+
* @group Props
|
|
568
|
+
*/
|
|
569
|
+
placeholder = input(/* @ts-ignore */
|
|
570
|
+
...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
571
|
+
/**
|
|
572
|
+
* When present, it specifies that the input cannot be typed.
|
|
573
|
+
* @group Props
|
|
574
|
+
*/
|
|
575
|
+
readonly = input(undefined, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
576
|
+
/**
|
|
577
|
+
* Maximum height of the suggestions panel.
|
|
578
|
+
* @group Props
|
|
579
|
+
*/
|
|
580
|
+
scrollHeight = input('200px', /* @ts-ignore */
|
|
581
|
+
...(ngDevMode ? [{ debugName: "scrollHeight" }] : /* istanbul ignore next */ []));
|
|
582
|
+
/**
|
|
583
|
+
* Defines if data is loaded and interacted with in lazy manner.
|
|
584
|
+
* @group Props
|
|
585
|
+
*/
|
|
586
|
+
lazy = input(false, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
587
|
+
/**
|
|
588
|
+
* Whether the data should be loaded on demand during scroll.
|
|
589
|
+
* @group Props
|
|
590
|
+
*/
|
|
591
|
+
virtualScroll = input(undefined, { ...(ngDevMode ? { debugName: "virtualScroll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
592
|
+
/**
|
|
593
|
+
* Height of an item in the list for VirtualScrolling.
|
|
594
|
+
* @group Props
|
|
595
|
+
*/
|
|
596
|
+
virtualScrollItemSize = input(undefined, { ...(ngDevMode ? { debugName: "virtualScrollItemSize" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
597
|
+
/**
|
|
598
|
+
* Whether to use the scroller feature. The properties of scroller component can be used like an object in it.
|
|
599
|
+
* @group Props
|
|
600
|
+
*/
|
|
601
|
+
virtualScrollOptions = input(/* @ts-ignore */
|
|
602
|
+
...(ngDevMode ? [undefined, { debugName: "virtualScrollOptions" }] : /* istanbul ignore next */ []));
|
|
603
|
+
/**
|
|
604
|
+
* When enabled, highlights the first item in the list by default.
|
|
605
|
+
* @group Props
|
|
606
|
+
*/
|
|
607
|
+
autoHighlight = input(undefined, { ...(ngDevMode ? { debugName: "autoHighlight" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
608
|
+
/**
|
|
609
|
+
* When present, autocomplete clears the manual input if it does not match of the suggestions to force only accepting values from the suggestions.
|
|
610
|
+
* @group Props
|
|
611
|
+
*/
|
|
612
|
+
forceSelection = input(undefined, { ...(ngDevMode ? { debugName: "forceSelection" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
613
|
+
/**
|
|
614
|
+
* Type of the input, defaults to "text".
|
|
615
|
+
* @group Props
|
|
616
|
+
*/
|
|
617
|
+
type = input('text', /* @ts-ignore */
|
|
618
|
+
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
619
|
+
/**
|
|
620
|
+
* Whether to automatically manage layering.
|
|
621
|
+
* @group Props
|
|
622
|
+
*/
|
|
623
|
+
autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
624
|
+
/**
|
|
625
|
+
* Base zIndex value to use in layering.
|
|
626
|
+
* @group Props
|
|
627
|
+
*/
|
|
628
|
+
baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
629
|
+
/**
|
|
630
|
+
* Defines a string that labels the input for accessibility.
|
|
631
|
+
* @group Props
|
|
632
|
+
*/
|
|
633
|
+
ariaLabel = input(/* @ts-ignore */
|
|
634
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
635
|
+
/**
|
|
636
|
+
* Defines a string that labels the dropdown button for accessibility.
|
|
637
|
+
* @group Props
|
|
638
|
+
*/
|
|
639
|
+
dropdownAriaLabel = input(/* @ts-ignore */
|
|
640
|
+
...(ngDevMode ? [undefined, { debugName: "dropdownAriaLabel" }] : /* istanbul ignore next */ []));
|
|
641
|
+
/**
|
|
642
|
+
* Specifies one or more IDs in the DOM that labels the input field.
|
|
643
|
+
* @group Props
|
|
644
|
+
*/
|
|
645
|
+
ariaLabelledBy = input(/* @ts-ignore */
|
|
646
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
647
|
+
/**
|
|
648
|
+
* Icon class of the dropdown icon.
|
|
649
|
+
* @group Props
|
|
650
|
+
*/
|
|
651
|
+
dropdownIcon = input(undefined, /* @ts-ignore */
|
|
652
|
+
...(ngDevMode ? [{ debugName: "dropdownIcon" }] : /* istanbul ignore next */ []));
|
|
653
|
+
/**
|
|
654
|
+
* Ensures uniqueness of selected items on multiple mode.
|
|
655
|
+
* @group Props
|
|
656
|
+
*/
|
|
657
|
+
unique = input(true, { ...(ngDevMode ? { debugName: "unique" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
658
|
+
/**
|
|
659
|
+
* Whether to display options as grouped when nested options are provided.
|
|
660
|
+
* @group Props
|
|
661
|
+
*/
|
|
662
|
+
group = input(undefined, { ...(ngDevMode ? { debugName: "group" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
663
|
+
/**
|
|
664
|
+
* Whether to run a query when input receives focus.
|
|
665
|
+
* @group Props
|
|
666
|
+
*/
|
|
667
|
+
completeOnFocus = input(false, { ...(ngDevMode ? { debugName: "completeOnFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
668
|
+
/**
|
|
669
|
+
* When enabled, a clear icon is displayed to clear the value.
|
|
670
|
+
* @group Props
|
|
671
|
+
*/
|
|
672
|
+
showClear = input(false, { ...(ngDevMode ? { debugName: "showClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
673
|
+
/**
|
|
674
|
+
* Displays a button next to the input field when enabled.
|
|
675
|
+
* @group Props
|
|
676
|
+
*/
|
|
677
|
+
dropdown = input(undefined, { ...(ngDevMode ? { debugName: "dropdown" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
678
|
+
/**
|
|
679
|
+
* Whether to show the empty message or not.
|
|
680
|
+
* @group Props
|
|
681
|
+
*/
|
|
682
|
+
showEmptyMessage = input(true, { ...(ngDevMode ? { debugName: "showEmptyMessage" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
683
|
+
/**
|
|
684
|
+
* Specifies the behavior dropdown button. Default "blank" mode sends an empty string and "current" mode sends the input value.
|
|
685
|
+
* @group Props
|
|
686
|
+
*/
|
|
687
|
+
dropdownMode = input('blank', /* @ts-ignore */
|
|
688
|
+
...(ngDevMode ? [{ debugName: "dropdownMode" }] : /* istanbul ignore next */ []));
|
|
689
|
+
/**
|
|
690
|
+
* Specifies if multiple values can be selected.
|
|
691
|
+
* @group Props
|
|
692
|
+
*/
|
|
693
|
+
multiple = input(undefined, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
694
|
+
/**
|
|
695
|
+
* When enabled, the input value is added to the selected items on tab key press when multiple is true and typeahead is false.
|
|
696
|
+
* @group Props
|
|
697
|
+
*/
|
|
698
|
+
addOnTab = input(false, { ...(ngDevMode ? { debugName: "addOnTab" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
699
|
+
/**
|
|
700
|
+
* Index of the element in tabbing order.
|
|
701
|
+
* @group Props
|
|
702
|
+
*/
|
|
703
|
+
tabindex = input(undefined, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
704
|
+
/**
|
|
705
|
+
* A property to uniquely identify a value in options.
|
|
706
|
+
* @group Props
|
|
707
|
+
*/
|
|
708
|
+
dataKey = input(/* @ts-ignore */
|
|
709
|
+
...(ngDevMode ? [undefined, { debugName: "dataKey" }] : /* istanbul ignore next */ []));
|
|
710
|
+
/**
|
|
711
|
+
* Text to display when there is no data. Defaults to global value in i18n translation configuration.
|
|
712
|
+
* @group Props
|
|
713
|
+
*/
|
|
714
|
+
emptyMessage = input(/* @ts-ignore */
|
|
715
|
+
...(ngDevMode ? [undefined, { debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
|
|
716
|
+
/**
|
|
717
|
+
* Transition options of the show animation.
|
|
718
|
+
* @group Props
|
|
719
|
+
* @deprecated since v21.0.0, use `motionOptions` instead.
|
|
720
|
+
*/
|
|
721
|
+
showTransitionOptions = input('.12s cubic-bezier(0, 0, 0.2, 1)', /* @ts-ignore */
|
|
722
|
+
...(ngDevMode ? [{ debugName: "showTransitionOptions" }] : /* istanbul ignore next */ []));
|
|
723
|
+
/**
|
|
724
|
+
* Transition options of the hide animation.
|
|
725
|
+
* @group Props
|
|
726
|
+
* @deprecated since v21.0.0, use `motionOptions` instead.
|
|
727
|
+
*/
|
|
728
|
+
hideTransitionOptions = input('.1s linear', /* @ts-ignore */
|
|
729
|
+
...(ngDevMode ? [{ debugName: "hideTransitionOptions" }] : /* istanbul ignore next */ []));
|
|
730
|
+
/**
|
|
731
|
+
* When present, it specifies that the component should automatically get focus on load.
|
|
732
|
+
* @group Props
|
|
733
|
+
*/
|
|
734
|
+
autofocus = input(undefined, { ...(ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
735
|
+
/**
|
|
736
|
+
* Used to define a string that autocomplete attribute the current element.
|
|
737
|
+
* @group Props
|
|
738
|
+
*/
|
|
739
|
+
autocomplete = input('off', /* @ts-ignore */
|
|
740
|
+
...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
|
|
741
|
+
/**
|
|
742
|
+
* Name of the options field of an option group.
|
|
743
|
+
* @group Props
|
|
744
|
+
*/
|
|
745
|
+
optionGroupChildren = input('items', /* @ts-ignore */
|
|
746
|
+
...(ngDevMode ? [{ debugName: "optionGroupChildren" }] : /* istanbul ignore next */ []));
|
|
747
|
+
/**
|
|
748
|
+
* Name of the label field of an option group.
|
|
749
|
+
* @group Props
|
|
750
|
+
*/
|
|
751
|
+
optionGroupLabel = input('label', /* @ts-ignore */
|
|
752
|
+
...(ngDevMode ? [{ debugName: "optionGroupLabel" }] : /* istanbul ignore next */ []));
|
|
753
|
+
/**
|
|
754
|
+
* Options for the overlay element.
|
|
755
|
+
* @group Props
|
|
756
|
+
*/
|
|
757
|
+
overlayOptions = input(/* @ts-ignore */
|
|
758
|
+
...(ngDevMode ? [undefined, { debugName: "overlayOptions" }] : /* istanbul ignore next */ []));
|
|
759
|
+
/**
|
|
760
|
+
* An array of suggestions to display.
|
|
761
|
+
* @group Props
|
|
762
|
+
*/
|
|
763
|
+
suggestions = input(null, /* @ts-ignore */
|
|
764
|
+
...(ngDevMode ? [{ debugName: "suggestions" }] : /* istanbul ignore next */ []));
|
|
765
|
+
/**
|
|
766
|
+
* Property name or getter function to use as the label of an option.
|
|
767
|
+
* @group Props
|
|
768
|
+
*/
|
|
769
|
+
optionLabel = input(/* @ts-ignore */
|
|
770
|
+
...(ngDevMode ? [undefined, { debugName: "optionLabel" }] : /* istanbul ignore next */ []));
|
|
771
|
+
/**
|
|
772
|
+
* Property name or getter function to use as the value of an option.
|
|
773
|
+
* @group Props
|
|
774
|
+
*/
|
|
775
|
+
optionValue = input(/* @ts-ignore */
|
|
776
|
+
...(ngDevMode ? [undefined, { debugName: "optionValue" }] : /* istanbul ignore next */ []));
|
|
777
|
+
/**
|
|
778
|
+
* Unique identifier of the component.
|
|
779
|
+
* @group Props
|
|
780
|
+
*/
|
|
781
|
+
id = model(undefined, /* @ts-ignore */
|
|
782
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
783
|
+
/**
|
|
784
|
+
* Text to display when the search is active. Defaults to global value in i18n translation configuration.
|
|
785
|
+
* @group Props
|
|
786
|
+
* @defaultValue '{0} results are available'
|
|
787
|
+
*/
|
|
788
|
+
searchMessage = input(/* @ts-ignore */
|
|
789
|
+
...(ngDevMode ? [undefined, { debugName: "searchMessage" }] : /* istanbul ignore next */ []));
|
|
790
|
+
/**
|
|
791
|
+
* Text to display when filtering does not return any results. Defaults to global value in i18n translation configuration.
|
|
792
|
+
* @group Props
|
|
793
|
+
* @defaultValue 'No selected item'
|
|
794
|
+
*/
|
|
795
|
+
emptySelectionMessage = input(/* @ts-ignore */
|
|
796
|
+
...(ngDevMode ? [undefined, { debugName: "emptySelectionMessage" }] : /* istanbul ignore next */ []));
|
|
797
|
+
/**
|
|
798
|
+
* Text to be displayed in hidden accessible field when options are selected. Defaults to global value in i18n translation configuration.
|
|
799
|
+
* @group Props
|
|
800
|
+
* @defaultValue '{0} items selected'
|
|
801
|
+
*/
|
|
802
|
+
selectionMessage = input(/* @ts-ignore */
|
|
803
|
+
...(ngDevMode ? [undefined, { debugName: "selectionMessage" }] : /* istanbul ignore next */ []));
|
|
804
|
+
/**
|
|
805
|
+
* Whether to focus on the first visible or selected element when the overlay panel is shown.
|
|
806
|
+
* @group Props
|
|
807
|
+
*/
|
|
808
|
+
autoOptionFocus = input(false, { ...(ngDevMode ? { debugName: "autoOptionFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
809
|
+
/**
|
|
810
|
+
* When enabled, the focused option is selected.
|
|
811
|
+
* @group Props
|
|
812
|
+
*/
|
|
813
|
+
selectOnFocus = input(undefined, { ...(ngDevMode ? { debugName: "selectOnFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
814
|
+
/**
|
|
815
|
+
* Locale to use in searching. The default locale is the host environment's current locale.
|
|
816
|
+
* @group Props
|
|
817
|
+
*/
|
|
818
|
+
searchLocale = input(undefined, { ...(ngDevMode ? { debugName: "searchLocale" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
819
|
+
/**
|
|
820
|
+
* Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.
|
|
821
|
+
* @group Props
|
|
822
|
+
*/
|
|
823
|
+
optionDisabled = input(/* @ts-ignore */
|
|
824
|
+
...(ngDevMode ? [undefined, { debugName: "optionDisabled" }] : /* istanbul ignore next */ []));
|
|
825
|
+
/**
|
|
826
|
+
* When enabled, the hovered option will be focused.
|
|
827
|
+
* @group Props
|
|
828
|
+
*/
|
|
829
|
+
focusOnHover = input(true, { ...(ngDevMode ? { debugName: "focusOnHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
830
|
+
/**
|
|
831
|
+
* Whether typeahead is active or not.
|
|
832
|
+
* @defaultValue true
|
|
833
|
+
* @group Props
|
|
834
|
+
*/
|
|
835
|
+
typeahead = input(true, { ...(ngDevMode ? { debugName: "typeahead" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
836
|
+
/**
|
|
837
|
+
* Whether to add an item on blur event if the input has value and typeahead is false with multiple mode.
|
|
838
|
+
* @defaultValue false
|
|
839
|
+
* @group Props
|
|
840
|
+
*/
|
|
841
|
+
addOnBlur = input(false, { ...(ngDevMode ? { debugName: "addOnBlur" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
842
|
+
/**
|
|
843
|
+
* Separator char to add item when typeahead is false and multiple mode is enabled.
|
|
844
|
+
* @group Props
|
|
845
|
+
*/
|
|
846
|
+
separator = input(/* @ts-ignore */
|
|
847
|
+
...(ngDevMode ? [undefined, { debugName: "separator" }] : /* istanbul ignore next */ []));
|
|
848
|
+
/**
|
|
849
|
+
* 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).
|
|
850
|
+
* @defaultValue 'self'
|
|
851
|
+
* @group Props
|
|
852
|
+
*/
|
|
853
|
+
appendTo = input(undefined, /* @ts-ignore */
|
|
854
|
+
...(ngDevMode ? [{ debugName: "appendTo" }] : /* istanbul ignore next */ []));
|
|
855
|
+
/**
|
|
856
|
+
* The motion options.
|
|
857
|
+
* @group Props
|
|
858
|
+
*/
|
|
859
|
+
motionOptions = input(undefined, /* @ts-ignore */
|
|
860
|
+
...(ngDevMode ? [{ debugName: "motionOptions" }] : /* istanbul ignore next */ []));
|
|
861
|
+
/**
|
|
862
|
+
* Callback to invoke to search for suggestions.
|
|
863
|
+
* @param {AutoCompleteCompleteEvent} event - Custom complete event.
|
|
864
|
+
* @group Emits
|
|
865
|
+
*/
|
|
866
|
+
completeMethod = output();
|
|
867
|
+
/**
|
|
868
|
+
* Callback to invoke when a suggestion is selected.
|
|
869
|
+
* @param {AutoCompleteSelectEvent} event - custom select event.
|
|
870
|
+
* @group Emits
|
|
871
|
+
*/
|
|
872
|
+
onSelect = output();
|
|
873
|
+
/**
|
|
874
|
+
* Callback to invoke when a selected value is removed.
|
|
875
|
+
* @param {AutoCompleteUnselectEvent} event - custom unselect event.
|
|
876
|
+
* @group Emits
|
|
877
|
+
*/
|
|
878
|
+
onUnselect = output();
|
|
879
|
+
/**
|
|
880
|
+
* Callback to invoke when an item is added via addOnBlur or separator features.
|
|
881
|
+
* @param {AutoCompleteAddEvent} event - Custom add event.
|
|
882
|
+
* @group Emits
|
|
883
|
+
*/
|
|
884
|
+
onAdd = output();
|
|
885
|
+
/**
|
|
886
|
+
* Callback to invoke when the component receives focus.
|
|
887
|
+
* @param {Event} event - Browser event.
|
|
888
|
+
* @group Emits
|
|
889
|
+
*/
|
|
890
|
+
onFocus = output();
|
|
891
|
+
/**
|
|
892
|
+
* Callback to invoke when the component loses focus.
|
|
893
|
+
* @param {Event} event - Browser event.
|
|
894
|
+
* @group Emits
|
|
895
|
+
*/
|
|
896
|
+
onBlur = output();
|
|
897
|
+
/**
|
|
898
|
+
* Callback to invoke to when dropdown button is clicked.
|
|
899
|
+
* @param {AutoCompleteDropdownClickEvent} event - custom dropdown click event.
|
|
900
|
+
* @group Emits
|
|
901
|
+
*/
|
|
902
|
+
onDropdownClick = output();
|
|
903
|
+
/**
|
|
904
|
+
* Callback to invoke when clear button is clicked.
|
|
905
|
+
* @param {Event} event - Browser event.
|
|
906
|
+
* @group Emits
|
|
907
|
+
*/
|
|
908
|
+
onClear = output();
|
|
909
|
+
/**
|
|
910
|
+
* Callback to invoke on input key down.
|
|
911
|
+
* @param {KeyboardEvent} event - Keyboard event.
|
|
912
|
+
* @group Emits
|
|
913
|
+
*/
|
|
914
|
+
onInputKeydown = output();
|
|
915
|
+
/**
|
|
916
|
+
* Callback to invoke on input key up.
|
|
917
|
+
* @param {KeyboardEvent} event - Keyboard event.
|
|
918
|
+
* @group Emits
|
|
919
|
+
*/
|
|
920
|
+
onKeyUp = output();
|
|
921
|
+
/**
|
|
922
|
+
* Callback to invoke on overlay is shown.
|
|
923
|
+
* @param {Event} event - Browser event.
|
|
924
|
+
* @group Emits
|
|
925
|
+
*/
|
|
926
|
+
onShow = output();
|
|
927
|
+
/**
|
|
928
|
+
* Callback to invoke on overlay is hidden.
|
|
929
|
+
* @param {Event} event - Browser event.
|
|
930
|
+
* @group Emits
|
|
931
|
+
*/
|
|
932
|
+
onHide = output();
|
|
933
|
+
/**
|
|
934
|
+
* Callback to invoke on lazy load data.
|
|
935
|
+
* @param {AutoCompleteLazyLoadEvent} event - Lazy load event.
|
|
936
|
+
* @group Emits
|
|
937
|
+
*/
|
|
938
|
+
onLazyLoad = output();
|
|
939
|
+
inputEL = viewChild('focusInput', /* @ts-ignore */
|
|
940
|
+
...(ngDevMode ? [{ debugName: "inputEL" }] : /* istanbul ignore next */ []));
|
|
941
|
+
multiInputEl = viewChild('multiIn', /* @ts-ignore */
|
|
942
|
+
...(ngDevMode ? [{ debugName: "multiInputEl" }] : /* istanbul ignore next */ []));
|
|
943
|
+
multiContainerEL = viewChild('multiContainer', /* @ts-ignore */
|
|
944
|
+
...(ngDevMode ? [{ debugName: "multiContainerEL" }] : /* istanbul ignore next */ []));
|
|
945
|
+
dropdownButton = viewChild('ddBtn', /* @ts-ignore */
|
|
946
|
+
...(ngDevMode ? [{ debugName: "dropdownButton" }] : /* istanbul ignore next */ []));
|
|
947
|
+
itemsViewChild = viewChild('items', /* @ts-ignore */
|
|
948
|
+
...(ngDevMode ? [{ debugName: "itemsViewChild" }] : /* istanbul ignore next */ []));
|
|
949
|
+
scroller = viewChild('scroller', /* @ts-ignore */
|
|
950
|
+
...(ngDevMode ? [{ debugName: "scroller" }] : /* istanbul ignore next */ []));
|
|
951
|
+
overlayViewChild = viewChild('overlay', /* @ts-ignore */
|
|
952
|
+
...(ngDevMode ? [{ debugName: "overlayViewChild" }] : /* istanbul ignore next */ []));
|
|
953
|
+
itemsWrapper;
|
|
954
|
+
/**
|
|
955
|
+
* Custom item template.
|
|
956
|
+
* @group Templates
|
|
957
|
+
*/
|
|
958
|
+
itemTemplate = contentChild('item', /* @ts-ignore */
|
|
959
|
+
...(ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []));
|
|
960
|
+
/**
|
|
961
|
+
* Custom empty message template.
|
|
962
|
+
* @group Templates
|
|
963
|
+
*/
|
|
964
|
+
emptyTemplate = contentChild('empty', /* @ts-ignore */
|
|
965
|
+
...(ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []));
|
|
966
|
+
/**
|
|
967
|
+
* Custom header template.
|
|
968
|
+
* @group Templates
|
|
969
|
+
*/
|
|
970
|
+
headerTemplate = contentChild('header', /* @ts-ignore */
|
|
971
|
+
...(ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []));
|
|
972
|
+
/**
|
|
973
|
+
* Custom footer template.
|
|
974
|
+
* @group Templates
|
|
975
|
+
*/
|
|
976
|
+
footerTemplate = contentChild('footer', /* @ts-ignore */
|
|
977
|
+
...(ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []));
|
|
978
|
+
/**
|
|
979
|
+
* Custom selected item template.
|
|
980
|
+
* @group Templates
|
|
981
|
+
*/
|
|
982
|
+
selectedItemTemplate = contentChild('selecteditem', /* @ts-ignore */
|
|
983
|
+
...(ngDevMode ? [{ debugName: "selectedItemTemplate" }] : /* istanbul ignore next */ []));
|
|
984
|
+
/**
|
|
985
|
+
* Custom group template.
|
|
986
|
+
* @group Templates
|
|
987
|
+
*/
|
|
988
|
+
groupTemplate = contentChild('group', /* @ts-ignore */
|
|
989
|
+
...(ngDevMode ? [{ debugName: "groupTemplate" }] : /* istanbul ignore next */ []));
|
|
990
|
+
/**
|
|
991
|
+
* Custom loader template.
|
|
992
|
+
* @group Templates
|
|
993
|
+
*/
|
|
994
|
+
loaderTemplate = contentChild('loader', /* @ts-ignore */
|
|
995
|
+
...(ngDevMode ? [{ debugName: "loaderTemplate" }] : /* istanbul ignore next */ []));
|
|
996
|
+
/**
|
|
997
|
+
* Custom remove icon template.
|
|
998
|
+
* @group Templates
|
|
999
|
+
*/
|
|
1000
|
+
removeIconTemplate = contentChild('removeicon', /* @ts-ignore */
|
|
1001
|
+
...(ngDevMode ? [{ debugName: "removeIconTemplate" }] : /* istanbul ignore next */ []));
|
|
1002
|
+
/**
|
|
1003
|
+
* Custom loading icon template.
|
|
1004
|
+
* @group Templates
|
|
1005
|
+
*/
|
|
1006
|
+
loadingIconTemplate = contentChild('loadingicon', /* @ts-ignore */
|
|
1007
|
+
...(ngDevMode ? [{ debugName: "loadingIconTemplate" }] : /* istanbul ignore next */ []));
|
|
1008
|
+
/**
|
|
1009
|
+
* Custom clear icon template.
|
|
1010
|
+
* @group Templates
|
|
1011
|
+
*/
|
|
1012
|
+
clearIconTemplate = contentChild('clearicon', /* @ts-ignore */
|
|
1013
|
+
...(ngDevMode ? [{ debugName: "clearIconTemplate" }] : /* istanbul ignore next */ []));
|
|
1014
|
+
/**
|
|
1015
|
+
* Custom dropdown icon template.
|
|
1016
|
+
* @group Templates
|
|
1017
|
+
*/
|
|
1018
|
+
dropdownIconTemplate = contentChild('dropdownicon', /* @ts-ignore */
|
|
1019
|
+
...(ngDevMode ? [{ debugName: "dropdownIconTemplate" }] : /* istanbul ignore next */ []));
|
|
1020
|
+
onHostClick(event) {
|
|
1021
|
+
this.onContainerClick(event);
|
|
1022
|
+
}
|
|
1023
|
+
value;
|
|
1024
|
+
_suggestions = signal(null, /* @ts-ignore */
|
|
1025
|
+
...(ngDevMode ? [{ debugName: "_suggestions" }] : /* istanbul ignore next */ []));
|
|
1026
|
+
timeout;
|
|
1027
|
+
overlayVisible;
|
|
1028
|
+
suggestionsUpdated;
|
|
1029
|
+
highlightOption;
|
|
1030
|
+
highlightOptionChanged;
|
|
1031
|
+
focused = false;
|
|
1032
|
+
loading;
|
|
1033
|
+
scrollHandler;
|
|
1034
|
+
listId;
|
|
1035
|
+
searchTimeout;
|
|
1036
|
+
dirty = false;
|
|
1037
|
+
_itemTemplate;
|
|
1038
|
+
_groupTemplate;
|
|
1039
|
+
_selectedItemTemplate;
|
|
1040
|
+
_headerTemplate;
|
|
1041
|
+
_emptyTemplate;
|
|
1042
|
+
_footerTemplate;
|
|
1043
|
+
_loaderTemplate;
|
|
1044
|
+
_removeIconTemplate;
|
|
1045
|
+
_loadingIconTemplate;
|
|
1046
|
+
_clearIconTemplate;
|
|
1047
|
+
_dropdownIconTemplate;
|
|
1048
|
+
focusedMultipleOptionIndex = signal(-1, /* @ts-ignore */
|
|
1049
|
+
...(ngDevMode ? [{ debugName: "focusedMultipleOptionIndex" }] : /* istanbul ignore next */ []));
|
|
1050
|
+
focusedOptionIndex = signal(-1, /* @ts-ignore */
|
|
1051
|
+
...(ngDevMode ? [{ debugName: "focusedOptionIndex" }] : /* istanbul ignore next */ []));
|
|
1052
|
+
_componentStyle = inject(AutoCompleteStyle);
|
|
1053
|
+
$appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
|
|
1054
|
+
...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
|
|
1055
|
+
visibleOptions = computed(() => {
|
|
1056
|
+
return this.group() ? this.flatOptions(this._suggestions()) : this._suggestions() || [];
|
|
1057
|
+
}, /* @ts-ignore */
|
|
1058
|
+
...(ngDevMode ? [{ debugName: "visibleOptions" }] : /* istanbul ignore next */ []));
|
|
1059
|
+
inputValue = computed(() => {
|
|
1060
|
+
const modelValue = this.modelValue();
|
|
1061
|
+
const selectedOption = this.optionValueSelected ? (this.suggestions() || []).find((option) => equals(option, modelValue, this.equalityKey())) : modelValue;
|
|
1062
|
+
if (isNotEmpty(modelValue)) {
|
|
1063
|
+
if (typeof modelValue === 'object' || this.optionValueSelected) {
|
|
1064
|
+
const label = this.getOptionLabel(selectedOption);
|
|
1065
|
+
return label != null ? label : modelValue;
|
|
1066
|
+
}
|
|
1067
|
+
else {
|
|
1068
|
+
return modelValue;
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
else {
|
|
1072
|
+
return '';
|
|
1073
|
+
}
|
|
1074
|
+
}, /* @ts-ignore */
|
|
1075
|
+
...(ngDevMode ? [{ debugName: "inputValue" }] : /* istanbul ignore next */ []));
|
|
1076
|
+
get focusedMultipleOptionId() {
|
|
1077
|
+
return this.focusedMultipleOptionIndex() !== -1 ? `${this.id()}_multiple_option_${this.focusedMultipleOptionIndex()}` : null;
|
|
1078
|
+
}
|
|
1079
|
+
get focusedOptionId() {
|
|
1080
|
+
return this.focusedOptionIndex() !== -1 ? `${this.id()}_${this.focusedOptionIndex()}` : null;
|
|
1081
|
+
}
|
|
1082
|
+
get searchResultMessageText() {
|
|
1083
|
+
return isNotEmpty(this.visibleOptions()) && this.overlayVisible ? this.searchMessageText.replaceAll('{0}', this.visibleOptions().length) : this.emptySearchMessageText;
|
|
1084
|
+
}
|
|
1085
|
+
get searchMessageText() {
|
|
1086
|
+
return this.searchMessage() || this.config.translation.searchMessage || '';
|
|
1087
|
+
}
|
|
1088
|
+
get emptySearchMessageText() {
|
|
1089
|
+
return this.emptyMessage() || this.config.translation.emptySearchMessage || '';
|
|
1090
|
+
}
|
|
1091
|
+
get selectionMessageText() {
|
|
1092
|
+
return this.selectionMessage() || this.config.translation.selectionMessage || '';
|
|
1093
|
+
}
|
|
1094
|
+
get emptySelectionMessageText() {
|
|
1095
|
+
return this.emptySelectionMessage() || this.config.translation.emptySelectionMessage || '';
|
|
1096
|
+
}
|
|
1097
|
+
get selectedMessageText() {
|
|
1098
|
+
return this.hasSelectedOption() ? this.selectionMessageText.replaceAll('{0}', this.multiple() ? this.modelValue()?.length : '1') : this.emptySelectionMessageText;
|
|
1099
|
+
}
|
|
1100
|
+
get ariaSetSize() {
|
|
1101
|
+
return this.visibleOptions().filter((option) => !this.isOptionGroup(option)).length;
|
|
1102
|
+
}
|
|
1103
|
+
get listLabel() {
|
|
1104
|
+
return this.config.getTranslation(TranslationKeys.ARIA)['listLabel'];
|
|
1105
|
+
}
|
|
1106
|
+
get virtualScrollerDisabled() {
|
|
1107
|
+
return !this.virtualScroll();
|
|
1108
|
+
}
|
|
1109
|
+
get optionValueSelected() {
|
|
1110
|
+
return typeof this.modelValue() === 'string' && this.optionValue();
|
|
1111
|
+
}
|
|
1112
|
+
chipItemClass(index) {
|
|
1113
|
+
return this._componentStyle.classes.chipItem({ instance: this, i: index });
|
|
1114
|
+
}
|
|
1115
|
+
constructor(overlayService, zone) {
|
|
1116
|
+
super();
|
|
1117
|
+
this.overlayService = overlayService;
|
|
1118
|
+
this.zone = zone;
|
|
1119
|
+
effect(() => {
|
|
1120
|
+
const value = this.suggestions();
|
|
1121
|
+
this._suggestions.set(value);
|
|
1122
|
+
this.handleSuggestionsChange();
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
1125
|
+
onInit() {
|
|
1126
|
+
if (!this.id())
|
|
1127
|
+
this.id.set(uuid('pn_id_'));
|
|
1128
|
+
this.cd.detectChanges();
|
|
1129
|
+
}
|
|
1130
|
+
templates = contentChildren(HelixTemplate, /* @ts-ignore */
|
|
1131
|
+
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
1132
|
+
onAfterContentInit() {
|
|
1133
|
+
this.templates().forEach((item) => {
|
|
1134
|
+
switch (item.getType()) {
|
|
1135
|
+
case 'item':
|
|
1136
|
+
this._itemTemplate = item.template;
|
|
1137
|
+
break;
|
|
1138
|
+
case 'group':
|
|
1139
|
+
this._groupTemplate = item.template;
|
|
1140
|
+
break;
|
|
1141
|
+
case 'selecteditem':
|
|
1142
|
+
this._selectedItemTemplate = item.template;
|
|
1143
|
+
break;
|
|
1144
|
+
case 'selectedItem':
|
|
1145
|
+
this._selectedItemTemplate = item.template;
|
|
1146
|
+
break;
|
|
1147
|
+
case 'header':
|
|
1148
|
+
this._headerTemplate = item.template;
|
|
1149
|
+
break;
|
|
1150
|
+
case 'empty':
|
|
1151
|
+
this._emptyTemplate = item.template;
|
|
1152
|
+
break;
|
|
1153
|
+
case 'footer':
|
|
1154
|
+
this._footerTemplate = item.template;
|
|
1155
|
+
break;
|
|
1156
|
+
case 'loader':
|
|
1157
|
+
this._loaderTemplate = item.template;
|
|
1158
|
+
break;
|
|
1159
|
+
case 'removetokenicon':
|
|
1160
|
+
this._removeIconTemplate = item.template;
|
|
1161
|
+
break;
|
|
1162
|
+
case 'loadingicon':
|
|
1163
|
+
this._loadingIconTemplate = item.template;
|
|
1164
|
+
break;
|
|
1165
|
+
case 'clearicon':
|
|
1166
|
+
this._clearIconTemplate = item.template;
|
|
1167
|
+
break;
|
|
1168
|
+
case 'dropdownicon':
|
|
1169
|
+
this._dropdownIconTemplate = item.template;
|
|
1170
|
+
break;
|
|
1171
|
+
default:
|
|
1172
|
+
this._itemTemplate = item.template;
|
|
1173
|
+
break;
|
|
1174
|
+
}
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1177
|
+
onAfterViewChecked() {
|
|
1178
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1179
|
+
//Use timeouts as since Angular 4.2, AfterViewChecked is broken and not called after panel is updated
|
|
1180
|
+
if (this.suggestionsUpdated && this.overlayViewChild()) {
|
|
1181
|
+
this.zone.runOutsideAngular(() => {
|
|
1182
|
+
setTimeout(() => {
|
|
1183
|
+
if (this.overlayViewChild()) {
|
|
1184
|
+
this.overlayViewChild().alignOverlay();
|
|
1185
|
+
}
|
|
1186
|
+
}, 1);
|
|
1187
|
+
this.suggestionsUpdated = false;
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
handleSuggestionsChange() {
|
|
1192
|
+
if (this.loading) {
|
|
1193
|
+
this._suggestions()?.length > 0 || this.showEmptyMessage() || !!this.emptyTemplate() ? this.show() : this.hide();
|
|
1194
|
+
const focusedOptionIndex = this.overlayVisible && this.autoOptionFocus() ? this.findFirstFocusedOptionIndex() : -1;
|
|
1195
|
+
this.focusedOptionIndex.set(focusedOptionIndex);
|
|
1196
|
+
this.suggestionsUpdated = true;
|
|
1197
|
+
this.loading = false;
|
|
1198
|
+
this.cd.markForCheck();
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
flatOptions(options) {
|
|
1202
|
+
return (options || []).reduce((result, option, index) => {
|
|
1203
|
+
result.push({ optionGroup: option, group: true, index });
|
|
1204
|
+
const optionGroupChildren = this.getOptionGroupChildren(option);
|
|
1205
|
+
optionGroupChildren && optionGroupChildren.forEach((o) => result.push(o));
|
|
1206
|
+
return result;
|
|
1207
|
+
}, []);
|
|
1208
|
+
}
|
|
1209
|
+
isOptionGroup(option) {
|
|
1210
|
+
return this.optionGroupLabel() && option.optionGroup && option.group;
|
|
1211
|
+
}
|
|
1212
|
+
findFirstOptionIndex() {
|
|
1213
|
+
return this.visibleOptions().findIndex((option) => this.isValidOption(option));
|
|
1214
|
+
}
|
|
1215
|
+
findLastOptionIndex() {
|
|
1216
|
+
return findLastIndex(this.visibleOptions(), (option) => this.isValidOption(option));
|
|
1217
|
+
}
|
|
1218
|
+
findFirstFocusedOptionIndex() {
|
|
1219
|
+
const selectedIndex = this.findSelectedOptionIndex();
|
|
1220
|
+
return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
|
|
1221
|
+
}
|
|
1222
|
+
findLastFocusedOptionIndex() {
|
|
1223
|
+
const selectedIndex = this.findSelectedOptionIndex();
|
|
1224
|
+
return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
|
|
1225
|
+
}
|
|
1226
|
+
findSelectedOptionIndex() {
|
|
1227
|
+
return this.hasSelectedOption() ? this.visibleOptions().findIndex((option) => this.isValidSelectedOption(option)) : -1;
|
|
1228
|
+
}
|
|
1229
|
+
findNextOptionIndex(index) {
|
|
1230
|
+
const matchedOptionIndex = index < this.visibleOptions().length - 1
|
|
1231
|
+
? this.visibleOptions()
|
|
1232
|
+
.slice(index + 1)
|
|
1233
|
+
.findIndex((option) => this.isValidOption(option))
|
|
1234
|
+
: -1;
|
|
1235
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
1236
|
+
}
|
|
1237
|
+
findPrevOptionIndex(index) {
|
|
1238
|
+
const matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions().slice(0, index), (option) => this.isValidOption(option)) : -1;
|
|
1239
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
1240
|
+
}
|
|
1241
|
+
isValidSelectedOption(option) {
|
|
1242
|
+
return this.isValidOption(option) && this.isSelected(option);
|
|
1243
|
+
}
|
|
1244
|
+
isValidOption(option) {
|
|
1245
|
+
return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
1246
|
+
}
|
|
1247
|
+
isOptionDisabled(option) {
|
|
1248
|
+
const optionDisabled = this.optionDisabled();
|
|
1249
|
+
return optionDisabled ? resolveFieldData(option, optionDisabled) : false;
|
|
1250
|
+
}
|
|
1251
|
+
isSelected(option) {
|
|
1252
|
+
if (this.multiple()) {
|
|
1253
|
+
return this.unique() ? this.modelValue()?.some((model) => equals(model, option, this.equalityKey())) : false;
|
|
1254
|
+
}
|
|
1255
|
+
return equals(this.modelValue(), option, this.equalityKey());
|
|
1256
|
+
}
|
|
1257
|
+
isOptionMatched(option, value) {
|
|
1258
|
+
return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.searchLocale()) === value.toLocaleLowerCase(this.searchLocale());
|
|
1259
|
+
}
|
|
1260
|
+
isInputClicked(event) {
|
|
1261
|
+
return event.target === this.inputEL()?.nativeElement;
|
|
1262
|
+
}
|
|
1263
|
+
isDropdownClicked(event) {
|
|
1264
|
+
const ddBtn = this.dropdownButton();
|
|
1265
|
+
return ddBtn?.nativeElement ? event.target === ddBtn.nativeElement || ddBtn.nativeElement.contains(event.target) : false;
|
|
1266
|
+
}
|
|
1267
|
+
equalityKey() {
|
|
1268
|
+
return this.optionValue() ? undefined : this.dataKey();
|
|
1269
|
+
}
|
|
1270
|
+
onContainerClick(event) {
|
|
1271
|
+
if (this.$disabled() || this.loading || this.isInputClicked(event) || this.isDropdownClicked(event)) {
|
|
1272
|
+
return;
|
|
1273
|
+
}
|
|
1274
|
+
const ovc = this.overlayViewChild();
|
|
1275
|
+
if (!ovc || !ovc.overlayViewChild()?.nativeElement.contains(event.target)) {
|
|
1276
|
+
focus(this.inputEL()?.nativeElement);
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
handleDropdownClick(event) {
|
|
1280
|
+
let query = undefined;
|
|
1281
|
+
const inputEl = this.inputEL();
|
|
1282
|
+
if (this.overlayVisible) {
|
|
1283
|
+
this.hide(true);
|
|
1284
|
+
}
|
|
1285
|
+
else {
|
|
1286
|
+
focus(inputEl?.nativeElement);
|
|
1287
|
+
query = inputEl?.nativeElement?.value;
|
|
1288
|
+
const dropdownMode = this.dropdownMode();
|
|
1289
|
+
if (dropdownMode === 'blank')
|
|
1290
|
+
this.search(event, '', 'dropdown');
|
|
1291
|
+
else if (dropdownMode === 'current')
|
|
1292
|
+
this.search(event, query, 'dropdown');
|
|
1293
|
+
}
|
|
1294
|
+
this.onDropdownClick.emit({ originalEvent: event, query });
|
|
1295
|
+
}
|
|
1296
|
+
onInput(event) {
|
|
1297
|
+
if (this.typeahead()) {
|
|
1298
|
+
const _minLength = this.minQueryLength() || this.minLength();
|
|
1299
|
+
if (this.searchTimeout) {
|
|
1300
|
+
clearTimeout(this.searchTimeout);
|
|
1301
|
+
}
|
|
1302
|
+
let query = event.target.value;
|
|
1303
|
+
if (this.maxlength() !== null) {
|
|
1304
|
+
query = query.split('').slice(0, this.maxlength()).join('');
|
|
1305
|
+
}
|
|
1306
|
+
const multiple = this.multiple();
|
|
1307
|
+
if (!multiple && !this.forceSelection()) {
|
|
1308
|
+
this.updateModel(query);
|
|
1309
|
+
}
|
|
1310
|
+
if (query.length === 0 && !multiple) {
|
|
1311
|
+
this.onClear.emit(undefined);
|
|
1312
|
+
setTimeout(() => {
|
|
1313
|
+
this.hide();
|
|
1314
|
+
}, this.delay() / 2);
|
|
1315
|
+
}
|
|
1316
|
+
else {
|
|
1317
|
+
if (query.length >= _minLength) {
|
|
1318
|
+
this.focusedOptionIndex.set(-1);
|
|
1319
|
+
this.searchTimeout = setTimeout(() => {
|
|
1320
|
+
this.search(event, query, 'input');
|
|
1321
|
+
}, this.delay());
|
|
1322
|
+
}
|
|
1323
|
+
else {
|
|
1324
|
+
this.hide();
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
onInputChange(event) {
|
|
1330
|
+
this.updateInputWithForceSelection(event);
|
|
1331
|
+
}
|
|
1332
|
+
onInputFocus(event) {
|
|
1333
|
+
if (this.$disabled()) {
|
|
1334
|
+
// For ScreenReaders
|
|
1335
|
+
return;
|
|
1336
|
+
}
|
|
1337
|
+
if (!this.dirty && this.completeOnFocus()) {
|
|
1338
|
+
this.search(event, event.target.value, 'focus');
|
|
1339
|
+
}
|
|
1340
|
+
this.dirty = true;
|
|
1341
|
+
this.focused = true;
|
|
1342
|
+
const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.overlayVisible && this.autoOptionFocus() ? this.findFirstFocusedOptionIndex() : -1;
|
|
1343
|
+
this.focusedOptionIndex.set(focusedOptionIndex);
|
|
1344
|
+
this.overlayVisible && this.scrollInView(this.focusedOptionIndex());
|
|
1345
|
+
this.onFocus.emit(event);
|
|
1346
|
+
}
|
|
1347
|
+
onMultipleContainerFocus(event) {
|
|
1348
|
+
if (this.$disabled()) {
|
|
1349
|
+
// For ScreenReaders
|
|
1350
|
+
return;
|
|
1351
|
+
}
|
|
1352
|
+
this.focused = true;
|
|
1353
|
+
}
|
|
1354
|
+
onMultipleContainerBlur(event) {
|
|
1355
|
+
this.focusedMultipleOptionIndex.set(-1);
|
|
1356
|
+
this.focused = false;
|
|
1357
|
+
}
|
|
1358
|
+
onMultipleContainerKeyDown(event) {
|
|
1359
|
+
if (this.$disabled()) {
|
|
1360
|
+
event.preventDefault();
|
|
1361
|
+
return;
|
|
1362
|
+
}
|
|
1363
|
+
switch (event.code) {
|
|
1364
|
+
case 'ArrowLeft':
|
|
1365
|
+
this.onArrowLeftKeyOnMultiple(event);
|
|
1366
|
+
break;
|
|
1367
|
+
case 'ArrowRight':
|
|
1368
|
+
this.onArrowRightKeyOnMultiple(event);
|
|
1369
|
+
break;
|
|
1370
|
+
case 'Backspace':
|
|
1371
|
+
this.onBackspaceKeyOnMultiple(event);
|
|
1372
|
+
break;
|
|
1373
|
+
default:
|
|
1374
|
+
break;
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
onInputBlur(event) {
|
|
1378
|
+
this.dirty = false;
|
|
1379
|
+
this.focused = false;
|
|
1380
|
+
this.focusedOptionIndex.set(-1);
|
|
1381
|
+
if (this.addOnBlur() && this.multiple() && !this.typeahead()) {
|
|
1382
|
+
const multiInput = this.multiInputEl();
|
|
1383
|
+
const inputValue = (multiInput?.nativeElement?.value || event.target.value || '').trim();
|
|
1384
|
+
if (inputValue && !this.isSelected(inputValue)) {
|
|
1385
|
+
this.updateModel([...(this.modelValue() || []), inputValue]);
|
|
1386
|
+
this.onAdd.emit({ originalEvent: event, value: inputValue });
|
|
1387
|
+
if (multiInput?.nativeElement) {
|
|
1388
|
+
multiInput.nativeElement.value = '';
|
|
1389
|
+
}
|
|
1390
|
+
else {
|
|
1391
|
+
event.target.value = '';
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
this.onModelTouched();
|
|
1396
|
+
this.onBlur.emit(event);
|
|
1397
|
+
}
|
|
1398
|
+
onInputPaste(event) {
|
|
1399
|
+
const separator = this.separator();
|
|
1400
|
+
if (separator && this.multiple() && !this.typeahead()) {
|
|
1401
|
+
const pastedData = (event.clipboardData || window['clipboardData'])?.getData('Text');
|
|
1402
|
+
if (pastedData) {
|
|
1403
|
+
const values = pastedData.split(separator);
|
|
1404
|
+
const newValues = [...(this.modelValue() || [])];
|
|
1405
|
+
values.forEach((value) => {
|
|
1406
|
+
const trimmedValue = value.trim();
|
|
1407
|
+
if (trimmedValue && !this.isSelected(trimmedValue)) {
|
|
1408
|
+
newValues.push(trimmedValue);
|
|
1409
|
+
}
|
|
1410
|
+
});
|
|
1411
|
+
if (newValues.length > (this.modelValue() || []).length) {
|
|
1412
|
+
const addedValues = newValues.slice((this.modelValue() || []).length);
|
|
1413
|
+
this.updateModel(newValues);
|
|
1414
|
+
addedValues.forEach((addedValue) => {
|
|
1415
|
+
this.onAdd.emit({ originalEvent: event, value: addedValue });
|
|
1416
|
+
});
|
|
1417
|
+
const multiInput = this.multiInputEl();
|
|
1418
|
+
if (multiInput?.nativeElement) {
|
|
1419
|
+
multiInput.nativeElement.value = '';
|
|
1420
|
+
}
|
|
1421
|
+
else {
|
|
1422
|
+
event.target.value = '';
|
|
1423
|
+
}
|
|
1424
|
+
event.preventDefault();
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
else {
|
|
1429
|
+
this.onKeyDown(event);
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
onInputKeyUp(event) {
|
|
1433
|
+
this.onKeyUp.emit(event);
|
|
1434
|
+
}
|
|
1435
|
+
onKeyDown(event) {
|
|
1436
|
+
if (this.$disabled()) {
|
|
1437
|
+
event.preventDefault();
|
|
1438
|
+
return;
|
|
1439
|
+
}
|
|
1440
|
+
// Emit keydown event for external handling
|
|
1441
|
+
this.onInputKeydown.emit(event);
|
|
1442
|
+
switch (event.code) {
|
|
1443
|
+
case 'ArrowDown':
|
|
1444
|
+
this.onArrowDownKey(event);
|
|
1445
|
+
break;
|
|
1446
|
+
case 'ArrowUp':
|
|
1447
|
+
this.onArrowUpKey(event);
|
|
1448
|
+
break;
|
|
1449
|
+
case 'ArrowLeft':
|
|
1450
|
+
this.onArrowLeftKey(event);
|
|
1451
|
+
break;
|
|
1452
|
+
case 'ArrowRight':
|
|
1453
|
+
this.onArrowRightKey(event);
|
|
1454
|
+
break;
|
|
1455
|
+
case 'Home':
|
|
1456
|
+
this.onHomeKey(event);
|
|
1457
|
+
break;
|
|
1458
|
+
case 'End':
|
|
1459
|
+
this.onEndKey(event);
|
|
1460
|
+
break;
|
|
1461
|
+
case 'PageDown':
|
|
1462
|
+
this.onPageDownKey(event);
|
|
1463
|
+
break;
|
|
1464
|
+
case 'PageUp':
|
|
1465
|
+
this.onPageUpKey(event);
|
|
1466
|
+
break;
|
|
1467
|
+
case 'Enter':
|
|
1468
|
+
case 'NumpadEnter':
|
|
1469
|
+
this.onEnterKey(event);
|
|
1470
|
+
break;
|
|
1471
|
+
case 'Escape':
|
|
1472
|
+
this.onEscapeKey(event);
|
|
1473
|
+
break;
|
|
1474
|
+
case 'Tab':
|
|
1475
|
+
this.onTabKey(event);
|
|
1476
|
+
break;
|
|
1477
|
+
case 'Backspace':
|
|
1478
|
+
this.onBackspaceKey(event);
|
|
1479
|
+
break;
|
|
1480
|
+
case 'ShiftLeft':
|
|
1481
|
+
case 'ShiftRight':
|
|
1482
|
+
//NOOP
|
|
1483
|
+
break;
|
|
1484
|
+
default:
|
|
1485
|
+
this.handleSeparatorKey(event);
|
|
1486
|
+
break;
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
handleSeparatorKey(event) {
|
|
1490
|
+
const separator = this.separator();
|
|
1491
|
+
if (separator && this.multiple() && !this.typeahead()) {
|
|
1492
|
+
if (separator === event.key || (typeof separator === 'string' && event.key === separator) || (separator instanceof RegExp && event.key.match(separator))) {
|
|
1493
|
+
const multiInput = this.multiInputEl();
|
|
1494
|
+
const inputValue = (multiInput?.nativeElement?.value || event.target.value || '').trim();
|
|
1495
|
+
if (inputValue && !this.isSelected(inputValue)) {
|
|
1496
|
+
this.updateModel([...(this.modelValue() || []), inputValue]);
|
|
1497
|
+
this.onAdd.emit({ originalEvent: event, value: inputValue });
|
|
1498
|
+
if (multiInput?.nativeElement) {
|
|
1499
|
+
multiInput.nativeElement.value = '';
|
|
1500
|
+
}
|
|
1501
|
+
else {
|
|
1502
|
+
event.target.value = '';
|
|
1503
|
+
}
|
|
1504
|
+
event.preventDefault();
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
onArrowDownKey(event) {
|
|
1510
|
+
if (!this.overlayVisible) {
|
|
1511
|
+
return;
|
|
1512
|
+
}
|
|
1513
|
+
const optionIndex = this.focusedOptionIndex() !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex()) : this.findFirstFocusedOptionIndex();
|
|
1514
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
1515
|
+
event.preventDefault();
|
|
1516
|
+
event.stopPropagation();
|
|
1517
|
+
}
|
|
1518
|
+
onArrowUpKey(event) {
|
|
1519
|
+
if (!this.overlayVisible) {
|
|
1520
|
+
return;
|
|
1521
|
+
}
|
|
1522
|
+
if (event.altKey) {
|
|
1523
|
+
if (this.focusedOptionIndex() !== -1) {
|
|
1524
|
+
this.onOptionSelect(event, this.visibleOptions()[this.focusedOptionIndex()]);
|
|
1525
|
+
}
|
|
1526
|
+
this.overlayVisible && this.hide();
|
|
1527
|
+
event.preventDefault();
|
|
1528
|
+
}
|
|
1529
|
+
else {
|
|
1530
|
+
const optionIndex = this.focusedOptionIndex() !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex()) : this.findLastFocusedOptionIndex();
|
|
1531
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
1532
|
+
event.preventDefault();
|
|
1533
|
+
event.stopPropagation();
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
onArrowLeftKey(event) {
|
|
1537
|
+
const target = event.currentTarget;
|
|
1538
|
+
this.focusedOptionIndex.set(-1);
|
|
1539
|
+
if (this.multiple()) {
|
|
1540
|
+
if (isEmpty(target.value) && this.hasSelectedOption()) {
|
|
1541
|
+
focus(this.multiContainerEL()?.nativeElement);
|
|
1542
|
+
this.focusedMultipleOptionIndex.set(this.modelValue().length);
|
|
1543
|
+
}
|
|
1544
|
+
else {
|
|
1545
|
+
event.stopPropagation(); // To prevent onArrowLeftKeyOnMultiple method
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
onArrowRightKey(event) {
|
|
1550
|
+
this.focusedOptionIndex.set(-1);
|
|
1551
|
+
this.multiple() && event.stopPropagation(); // To prevent onArrowRightKeyOnMultiple method
|
|
1552
|
+
}
|
|
1553
|
+
onHomeKey(event) {
|
|
1554
|
+
const { currentTarget } = event;
|
|
1555
|
+
const len = currentTarget.value.length;
|
|
1556
|
+
currentTarget.setSelectionRange(0, event.shiftKey ? len : 0);
|
|
1557
|
+
this.focusedOptionIndex.set(-1);
|
|
1558
|
+
event.preventDefault();
|
|
1559
|
+
}
|
|
1560
|
+
onEndKey(event) {
|
|
1561
|
+
const { currentTarget } = event;
|
|
1562
|
+
const len = currentTarget.value.length;
|
|
1563
|
+
currentTarget.setSelectionRange(event.shiftKey ? 0 : len, len);
|
|
1564
|
+
this.focusedOptionIndex.set(-1);
|
|
1565
|
+
event.preventDefault();
|
|
1566
|
+
}
|
|
1567
|
+
onPageDownKey(event) {
|
|
1568
|
+
this.scrollInView(this.visibleOptions().length - 1);
|
|
1569
|
+
event.preventDefault();
|
|
1570
|
+
}
|
|
1571
|
+
onPageUpKey(event) {
|
|
1572
|
+
this.scrollInView(0);
|
|
1573
|
+
event.preventDefault();
|
|
1574
|
+
}
|
|
1575
|
+
onEnterKey(event) {
|
|
1576
|
+
if (!this.typeahead() && !this.forceSelection()) {
|
|
1577
|
+
if (this.multiple()) {
|
|
1578
|
+
const inputValue = event.target.value?.trim();
|
|
1579
|
+
if (inputValue && !this.isSelected(inputValue)) {
|
|
1580
|
+
this.updateModel([...(this.modelValue() || []), inputValue]);
|
|
1581
|
+
this.onAdd.emit({ originalEvent: event, value: inputValue });
|
|
1582
|
+
const inputEl2 = this.inputEL();
|
|
1583
|
+
inputEl2?.nativeElement && (inputEl2.nativeElement.value = '');
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
if (!this.overlayVisible) {
|
|
1588
|
+
return;
|
|
1589
|
+
}
|
|
1590
|
+
else {
|
|
1591
|
+
if (this.focusedOptionIndex() !== -1) {
|
|
1592
|
+
this.onOptionSelect(event, this.visibleOptions()[this.focusedOptionIndex()]);
|
|
1593
|
+
}
|
|
1594
|
+
this.hide();
|
|
1595
|
+
}
|
|
1596
|
+
event.preventDefault();
|
|
1597
|
+
}
|
|
1598
|
+
onEscapeKey(event) {
|
|
1599
|
+
this.overlayVisible && this.hide(true);
|
|
1600
|
+
event.preventDefault();
|
|
1601
|
+
}
|
|
1602
|
+
onTabKey(event) {
|
|
1603
|
+
// If there's a focused option in the dropdown, select it
|
|
1604
|
+
if (this.focusedOptionIndex() !== -1) {
|
|
1605
|
+
this.onOptionSelect(event, this.visibleOptions()[this.focusedOptionIndex()]);
|
|
1606
|
+
return;
|
|
1607
|
+
}
|
|
1608
|
+
// Handle tab key behavior for multiple mode without typeahead
|
|
1609
|
+
if (this.multiple() && !this.typeahead()) {
|
|
1610
|
+
const multiInput = this.multiInputEl();
|
|
1611
|
+
const inputEl = this.inputEL();
|
|
1612
|
+
const inputValue = (multiInput?.nativeElement?.value || inputEl?.nativeElement?.value || '').trim();
|
|
1613
|
+
if (this.addOnTab()) {
|
|
1614
|
+
if (inputValue && !this.isSelected(inputValue)) {
|
|
1615
|
+
// Add the value and keep focus
|
|
1616
|
+
this.updateModel([...(this.modelValue() || []), inputValue]);
|
|
1617
|
+
this.onAdd.emit({ originalEvent: event, value: inputValue });
|
|
1618
|
+
if (multiInput?.nativeElement) {
|
|
1619
|
+
multiInput.nativeElement.value = '';
|
|
1620
|
+
}
|
|
1621
|
+
else if (inputEl?.nativeElement) {
|
|
1622
|
+
inputEl.nativeElement.value = '';
|
|
1623
|
+
}
|
|
1624
|
+
this.updateInputValue();
|
|
1625
|
+
event.preventDefault(); // Keep focus on the component
|
|
1626
|
+
this.overlayVisible && this.hide();
|
|
1627
|
+
return;
|
|
1628
|
+
}
|
|
1629
|
+
// If no value or already selected, allow normal tab behavior (blur)
|
|
1630
|
+
}
|
|
1631
|
+
// If addOnTab is false or no value to add, allow normal tab behavior
|
|
1632
|
+
// which will trigger blur and potentially addOnBlur
|
|
1633
|
+
}
|
|
1634
|
+
this.overlayVisible && this.hide();
|
|
1635
|
+
}
|
|
1636
|
+
onBackspaceKey(event) {
|
|
1637
|
+
if (this.multiple()) {
|
|
1638
|
+
if (isNotEmpty(this.modelValue()) && !this.inputEL()?.nativeElement?.value) {
|
|
1639
|
+
const removedValue = this.modelValue()[this.modelValue().length - 1];
|
|
1640
|
+
const newValue = this.modelValue().slice(0, -1);
|
|
1641
|
+
this.updateModel(newValue);
|
|
1642
|
+
this.onUnselect.emit({ originalEvent: event, value: removedValue });
|
|
1643
|
+
}
|
|
1644
|
+
event.stopPropagation(); // To prevent onBackspaceKeyOnMultiple method
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
onArrowLeftKeyOnMultiple(event) {
|
|
1648
|
+
const optionIndex = this.focusedMultipleOptionIndex() < 1 ? 0 : this.focusedMultipleOptionIndex() - 1;
|
|
1649
|
+
this.focusedMultipleOptionIndex.set(optionIndex);
|
|
1650
|
+
}
|
|
1651
|
+
onArrowRightKeyOnMultiple(event) {
|
|
1652
|
+
let optionIndex = this.focusedMultipleOptionIndex();
|
|
1653
|
+
optionIndex++;
|
|
1654
|
+
this.focusedMultipleOptionIndex.set(optionIndex);
|
|
1655
|
+
if (optionIndex > this.modelValue().length - 1) {
|
|
1656
|
+
this.focusedMultipleOptionIndex.set(-1);
|
|
1657
|
+
focus(this.inputEL()?.nativeElement);
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
onBackspaceKeyOnMultiple(event) {
|
|
1661
|
+
if (this.focusedMultipleOptionIndex() !== -1) {
|
|
1662
|
+
this.removeOption(event, this.focusedMultipleOptionIndex());
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
onOptionSelect(event, option, isHide = true) {
|
|
1666
|
+
if (this.multiple()) {
|
|
1667
|
+
const inputEl = this.inputEL();
|
|
1668
|
+
inputEl && (inputEl.nativeElement.value = '');
|
|
1669
|
+
if (!this.isSelected(option)) {
|
|
1670
|
+
this.updateModel([...(this.modelValue() || []), option]);
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
else {
|
|
1674
|
+
this.updateModel(option);
|
|
1675
|
+
}
|
|
1676
|
+
this.onSelect.emit({ originalEvent: event, value: option });
|
|
1677
|
+
isHide && this.hide(true);
|
|
1678
|
+
}
|
|
1679
|
+
onOptionMouseEnter(event, index) {
|
|
1680
|
+
if (this.focusOnHover()) {
|
|
1681
|
+
this.changeFocusedOptionIndex(event, index);
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
search(event, query, source) {
|
|
1685
|
+
//allow empty string but not undefined or null
|
|
1686
|
+
if (query === undefined || query === null) {
|
|
1687
|
+
return;
|
|
1688
|
+
}
|
|
1689
|
+
//do not search blank values on input change
|
|
1690
|
+
if (source === 'input' && query.trim().length === 0) {
|
|
1691
|
+
return;
|
|
1692
|
+
}
|
|
1693
|
+
this.loading = true;
|
|
1694
|
+
this.completeMethod.emit({ originalEvent: event, query });
|
|
1695
|
+
}
|
|
1696
|
+
removeOption(event, index) {
|
|
1697
|
+
event.stopPropagation();
|
|
1698
|
+
const removedOption = this.modelValue()[index];
|
|
1699
|
+
const value = this.modelValue().filter((_, i) => i !== index);
|
|
1700
|
+
this.updateModel(value);
|
|
1701
|
+
this.onUnselect.emit({ originalEvent: event, value: removedOption });
|
|
1702
|
+
focus(this.inputEL()?.nativeElement);
|
|
1703
|
+
}
|
|
1704
|
+
updateModel(options) {
|
|
1705
|
+
let value = null;
|
|
1706
|
+
if (options) {
|
|
1707
|
+
value = this.multiple() ? options.map((option) => this.getOptionValue(option)) : this.getOptionValue(options);
|
|
1708
|
+
}
|
|
1709
|
+
this.value = value;
|
|
1710
|
+
this.writeModelValue(options);
|
|
1711
|
+
this.onModelChange(value);
|
|
1712
|
+
this.updateInputValue();
|
|
1713
|
+
this.cd.markForCheck();
|
|
1714
|
+
}
|
|
1715
|
+
updateInputValue() {
|
|
1716
|
+
const inputEl = this.inputEL();
|
|
1717
|
+
if (inputEl?.nativeElement) {
|
|
1718
|
+
if (!this.multiple()) {
|
|
1719
|
+
inputEl.nativeElement.value = this.inputValue();
|
|
1720
|
+
}
|
|
1721
|
+
else {
|
|
1722
|
+
inputEl.nativeElement.value = '';
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
updateInputWithForceSelection(event) {
|
|
1727
|
+
const input = this.inputEL()?.nativeElement;
|
|
1728
|
+
const inputCleared = !input?.value && isNotEmpty(this.modelValue());
|
|
1729
|
+
if (!this.forceSelection() || this.overlayVisible || (!input?.value && !inputCleared)) {
|
|
1730
|
+
return;
|
|
1731
|
+
}
|
|
1732
|
+
const _minLength = this.minQueryLength() ?? this.minLength();
|
|
1733
|
+
if (!inputCleared && input.value.length < _minLength) {
|
|
1734
|
+
return;
|
|
1735
|
+
}
|
|
1736
|
+
const matchedOption = this.visibleOptions()?.find((option) => this.isOptionMatched(option, input.value));
|
|
1737
|
+
if (!matchedOption) {
|
|
1738
|
+
input.value = '';
|
|
1739
|
+
if (!this.multiple()) {
|
|
1740
|
+
this.clear();
|
|
1741
|
+
}
|
|
1742
|
+
return;
|
|
1743
|
+
}
|
|
1744
|
+
if (matchedOption && !this.isSelected(matchedOption)) {
|
|
1745
|
+
this.onOptionSelect(event, matchedOption);
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
autoUpdateModel() {
|
|
1749
|
+
if ((this.selectOnFocus() || this.autoHighlight()) && this.autoOptionFocus() && !this.hasSelectedOption()) {
|
|
1750
|
+
const focusedOptionIndex = this.findFirstFocusedOptionIndex();
|
|
1751
|
+
this.focusedOptionIndex.set(focusedOptionIndex);
|
|
1752
|
+
this.onOptionSelect(null, this.visibleOptions()[this.focusedOptionIndex()], false);
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
scrollInView(index = -1) {
|
|
1756
|
+
const id = index !== -1 ? `${this.id()}_${index}` : this.focusedOptionId;
|
|
1757
|
+
const itemsChild = this.itemsViewChild();
|
|
1758
|
+
if (itemsChild?.nativeElement) {
|
|
1759
|
+
const element = findSingle(itemsChild.nativeElement, `li[id="${id}"]`);
|
|
1760
|
+
if (element) {
|
|
1761
|
+
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
1762
|
+
}
|
|
1763
|
+
else if (!this.virtualScrollerDisabled) {
|
|
1764
|
+
setTimeout(() => {
|
|
1765
|
+
this.virtualScroll() && this.scroller()?.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex());
|
|
1766
|
+
}, 0);
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
changeFocusedOptionIndex(event, index) {
|
|
1771
|
+
if (this.focusedOptionIndex() !== index) {
|
|
1772
|
+
this.focusedOptionIndex.set(index);
|
|
1773
|
+
this.scrollInView();
|
|
1774
|
+
if (this.selectOnFocus()) {
|
|
1775
|
+
this.onOptionSelect(event, this.visibleOptions()[index], false);
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
show(isFocus = false) {
|
|
1780
|
+
this.dirty = true;
|
|
1781
|
+
this.overlayVisible = true;
|
|
1782
|
+
const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.autoOptionFocus() ? this.findFirstFocusedOptionIndex() : -1;
|
|
1783
|
+
this.focusedOptionIndex.set(focusedOptionIndex);
|
|
1784
|
+
isFocus && focus(this.inputEL()?.nativeElement);
|
|
1785
|
+
if (isFocus) {
|
|
1786
|
+
focus(this.inputEL()?.nativeElement);
|
|
1787
|
+
}
|
|
1788
|
+
this.onShow.emit(undefined);
|
|
1789
|
+
this.cd.markForCheck();
|
|
1790
|
+
}
|
|
1791
|
+
hide(isFocus = false) {
|
|
1792
|
+
const _hide = () => {
|
|
1793
|
+
this.dirty = isFocus;
|
|
1794
|
+
this.overlayVisible = false;
|
|
1795
|
+
this.focusedOptionIndex.set(-1);
|
|
1796
|
+
isFocus && focus(this.inputEL()?.nativeElement);
|
|
1797
|
+
this.onHide.emit(undefined);
|
|
1798
|
+
this.updateInputWithForceSelection(null);
|
|
1799
|
+
this.cd.markForCheck();
|
|
1800
|
+
};
|
|
1801
|
+
setTimeout(() => {
|
|
1802
|
+
_hide();
|
|
1803
|
+
}, 0); // For ScreenReaders
|
|
1804
|
+
}
|
|
1805
|
+
clear() {
|
|
1806
|
+
this.updateModel(null);
|
|
1807
|
+
const inputEl = this.inputEL();
|
|
1808
|
+
inputEl?.nativeElement && (inputEl.nativeElement.value = '');
|
|
1809
|
+
this.onClear.emit(undefined);
|
|
1810
|
+
}
|
|
1811
|
+
hasSelectedOption() {
|
|
1812
|
+
return isNotEmpty(this.modelValue());
|
|
1813
|
+
}
|
|
1814
|
+
getAriaPosInset(index) {
|
|
1815
|
+
return ((this.optionGroupLabel()
|
|
1816
|
+
? index -
|
|
1817
|
+
this.visibleOptions()
|
|
1818
|
+
.slice(0, index)
|
|
1819
|
+
.filter((option) => this.isOptionGroup(option)).length
|
|
1820
|
+
: index) + 1);
|
|
1821
|
+
}
|
|
1822
|
+
getOptionLabel(option) {
|
|
1823
|
+
const optionLabel = this.optionLabel();
|
|
1824
|
+
return optionLabel ? resolveFieldData(option, optionLabel) : option && option.label != undefined ? option.label : option;
|
|
1825
|
+
}
|
|
1826
|
+
getOptionValue(option) {
|
|
1827
|
+
const optionValue = this.optionValue();
|
|
1828
|
+
return optionValue ? resolveFieldData(option, optionValue) : option && option.value != undefined ? option.value : option;
|
|
1829
|
+
}
|
|
1830
|
+
getOptionIndex(index, scrollerOptions) {
|
|
1831
|
+
return this.virtualScrollerDisabled ? index : scrollerOptions && scrollerOptions.getItemOptions(index)['index'];
|
|
1832
|
+
}
|
|
1833
|
+
getOptionGroupLabel(optionGroup) {
|
|
1834
|
+
const optionGroupLabel = this.optionGroupLabel();
|
|
1835
|
+
return optionGroupLabel ? resolveFieldData(optionGroup, optionGroupLabel) : optionGroup && optionGroup.label != undefined ? optionGroup.label : optionGroup;
|
|
1836
|
+
}
|
|
1837
|
+
getOptionGroupChildren(optionGroup) {
|
|
1838
|
+
const optionGroupChildren = this.optionGroupChildren();
|
|
1839
|
+
return optionGroupChildren ? resolveFieldData(optionGroup, optionGroupChildren) : optionGroup.items;
|
|
1840
|
+
}
|
|
1841
|
+
getPTOptions(option, scrollerOptions, index, key) {
|
|
1842
|
+
return this.ptm(key, {
|
|
1843
|
+
context: {
|
|
1844
|
+
option,
|
|
1845
|
+
index: this.getOptionIndex(index, scrollerOptions),
|
|
1846
|
+
selected: this.isSelected(option),
|
|
1847
|
+
focused: this.focusedOptionIndex() === this.getOptionIndex(index, scrollerOptions),
|
|
1848
|
+
disabled: this.isOptionDisabled(option)
|
|
1849
|
+
}
|
|
1850
|
+
});
|
|
1851
|
+
}
|
|
1852
|
+
onOverlayBeforeEnter() {
|
|
1853
|
+
const ovc = this.overlayViewChild();
|
|
1854
|
+
const scrl = this.scroller();
|
|
1855
|
+
const itemsChild = this.itemsViewChild();
|
|
1856
|
+
this.itemsWrapper = findSingle(ovc?.overlayViewChild()?.nativeElement, this.virtualScroll() ? '[data-pc-name="virtualscroller"]' : '[data-pc-name="pcoverlay"]');
|
|
1857
|
+
const virtualScroll = this.virtualScroll();
|
|
1858
|
+
if (virtualScroll) {
|
|
1859
|
+
scrl?.setContentEl(itemsChild?.nativeElement);
|
|
1860
|
+
scrl?.viewInit();
|
|
1861
|
+
}
|
|
1862
|
+
if (this.visibleOptions() && this.visibleOptions().length) {
|
|
1863
|
+
if (virtualScroll) {
|
|
1864
|
+
const selectedIndex = this.modelValue() ? this.focusedOptionIndex() : -1;
|
|
1865
|
+
if (selectedIndex !== -1) {
|
|
1866
|
+
scrl?.scrollToIndex(selectedIndex);
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
else {
|
|
1870
|
+
let selectedListItem = findSingle(this.itemsWrapper, '[data-pc-section="option"][data-h-selected="true"]');
|
|
1871
|
+
if (selectedListItem) {
|
|
1872
|
+
selectedListItem.scrollIntoView({ block: 'nearest', inline: 'center' });
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
get containerDataP() {
|
|
1878
|
+
return this.cn({
|
|
1879
|
+
fluid: this.hasFluid
|
|
1880
|
+
});
|
|
1881
|
+
}
|
|
1882
|
+
get overlayDataP() {
|
|
1883
|
+
return this.cn({
|
|
1884
|
+
[`overlay-${this.$appendTo()}`]: true
|
|
1885
|
+
});
|
|
1886
|
+
}
|
|
1887
|
+
get inputMultipleDataP() {
|
|
1888
|
+
return this.cn({
|
|
1889
|
+
invalid: this.invalid(),
|
|
1890
|
+
disabled: this.$disabled(),
|
|
1891
|
+
focus: this.focused,
|
|
1892
|
+
fluid: this.hasFluid,
|
|
1893
|
+
filled: this.$variant() === 'filled',
|
|
1894
|
+
empty: !this.$filled(),
|
|
1895
|
+
[this.size()]: this.size()
|
|
1896
|
+
});
|
|
1897
|
+
}
|
|
1898
|
+
/**
|
|
1899
|
+
* @override
|
|
1900
|
+
*
|
|
1901
|
+
* @see {@link BaseEditableHolder.writeControlValue}
|
|
1902
|
+
* Writes the value to the control.
|
|
1903
|
+
*/
|
|
1904
|
+
writeControlValue(value, setModelValue) {
|
|
1905
|
+
if (this.multiple()) {
|
|
1906
|
+
const resolved = (value || []).map((val) => {
|
|
1907
|
+
const match = this.visibleOptions().find((option) => equals(val, option, this.equalityKey()));
|
|
1908
|
+
return match ?? val;
|
|
1909
|
+
});
|
|
1910
|
+
setModelValue(isEmpty(value) ? value : resolved);
|
|
1911
|
+
}
|
|
1912
|
+
else {
|
|
1913
|
+
const option = this.visibleOptions().find((option) => equals(value, option, this.equalityKey()));
|
|
1914
|
+
setModelValue(isEmpty(option) ? value : option);
|
|
1915
|
+
}
|
|
1916
|
+
this.value = value;
|
|
1917
|
+
this.updateInputValue();
|
|
1918
|
+
this.cd.markForCheck();
|
|
1919
|
+
}
|
|
1920
|
+
onDestroy() {
|
|
1921
|
+
if (this.scrollHandler) {
|
|
1922
|
+
this.scrollHandler.destroy();
|
|
1923
|
+
this.scrollHandler = null;
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AutoComplete, deps: [{ token: i1.OverlayService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1927
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AutoComplete, isStandalone: true, selector: "h-autoComplete, h-autocomplete, h-auto-complete", inputs: { minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, minQueryLength: { classPropertyName: "minQueryLength", publicName: "minQueryLength", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, panelStyle: { classPropertyName: "panelStyle", publicName: "panelStyle", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, inputStyle: { classPropertyName: "inputStyle", publicName: "inputStyle", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, inputStyleClass: { classPropertyName: "inputStyleClass", publicName: "inputStyleClass", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", 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 }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollOptions: { classPropertyName: "virtualScrollOptions", publicName: "virtualScrollOptions", isSignal: true, isRequired: false, transformFunction: null }, autoHighlight: { classPropertyName: "autoHighlight", publicName: "autoHighlight", isSignal: true, isRequired: false, transformFunction: null }, forceSelection: { classPropertyName: "forceSelection", publicName: "forceSelection", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, dropdownAriaLabel: { classPropertyName: "dropdownAriaLabel", publicName: "dropdownAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: true, isRequired: false, transformFunction: null }, unique: { classPropertyName: "unique", publicName: "unique", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, completeOnFocus: { classPropertyName: "completeOnFocus", publicName: "completeOnFocus", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, dropdown: { classPropertyName: "dropdown", publicName: "dropdown", isSignal: true, isRequired: false, transformFunction: null }, showEmptyMessage: { classPropertyName: "showEmptyMessage", publicName: "showEmptyMessage", isSignal: true, isRequired: false, transformFunction: null }, dropdownMode: { classPropertyName: "dropdownMode", publicName: "dropdownMode", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, addOnTab: { classPropertyName: "addOnTab", publicName: "addOnTab", 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 }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: true, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: true, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: true, isRequired: false, transformFunction: null }, overlayOptions: { classPropertyName: "overlayOptions", publicName: "overlayOptions", isSignal: true, isRequired: false, transformFunction: null }, suggestions: { classPropertyName: "suggestions", publicName: "suggestions", 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 }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, searchMessage: { classPropertyName: "searchMessage", publicName: "searchMessage", isSignal: true, isRequired: false, transformFunction: null }, emptySelectionMessage: { classPropertyName: "emptySelectionMessage", publicName: "emptySelectionMessage", isSignal: true, isRequired: false, transformFunction: null }, selectionMessage: { classPropertyName: "selectionMessage", publicName: "selectionMessage", isSignal: true, isRequired: false, transformFunction: null }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, searchLocale: { classPropertyName: "searchLocale", publicName: "searchLocale", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: true, isRequired: false, transformFunction: null }, typeahead: { classPropertyName: "typeahead", publicName: "typeahead", isSignal: true, isRequired: false, transformFunction: null }, addOnBlur: { classPropertyName: "addOnBlur", publicName: "addOnBlur", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", 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: { id: "idChange", completeMethod: "completeMethod", onSelect: "onSelect", onUnselect: "onUnselect", onAdd: "onAdd", onFocus: "onFocus", onBlur: "onBlur", onDropdownClick: "onDropdownClick", onClear: "onClear", onInputKeydown: "onInputKeydown", onKeyUp: "onKeyUp", onShow: "onShow", onHide: "onHide", onLazyLoad: "onLazyLoad" }, host: { listeners: { "click": "onHostClick($event)" }, properties: { "class": "cn(cx('root'), styleClass())", "style": "sx('root')", "attr.data-h": "containerDataP" } }, providers: [AUTOCOMPLETE_VALUE_ACCESSOR, AutoCompleteStyle, { provide: AUTOCOMPLETE_INSTANCE, useExisting: AutoComplete }, { provide: PARENT_INSTANCE, useExisting: AutoComplete }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], descendants: true, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }, { propertyName: "selectedItemTemplate", first: true, predicate: ["selecteditem"], descendants: true, isSignal: true }, { propertyName: "groupTemplate", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "loaderTemplate", first: true, predicate: ["loader"], descendants: true, isSignal: true }, { propertyName: "removeIconTemplate", first: true, predicate: ["removeicon"], descendants: true, isSignal: true }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"], descendants: true, isSignal: true }, { propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"], descendants: true, isSignal: true }, { propertyName: "dropdownIconTemplate", first: true, predicate: ["dropdownicon"], descendants: true, isSignal: true }, { propertyName: "templates", predicate: HelixTemplate, isSignal: true }], viewQueries: [{ propertyName: "inputEL", first: true, predicate: ["focusInput"], descendants: true, isSignal: true }, { propertyName: "multiInputEl", first: true, predicate: ["multiIn"], descendants: true, isSignal: true }, { propertyName: "multiContainerEL", first: true, predicate: ["multiContainer"], descendants: true, isSignal: true }, { propertyName: "dropdownButton", first: true, predicate: ["ddBtn"], descendants: true, isSignal: true }, { propertyName: "itemsViewChild", first: true, predicate: ["items"], descendants: true, isSignal: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true, isSignal: true }, { propertyName: "overlayViewChild", first: true, predicate: ["overlay"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i2.Bind }], ngImport: i0, template: "@if (!multiple()) {\n <input\n #focusInput\n [hAutoFocus]=\"autofocus()\"\n hInputText\n [pt]=\"ptm('pcInputText')\"\n [class]=\"cn(cx('pcInputText'), inputStyleClass())\"\n [ngStyle]=\"inputStyle()\"\n [attr.type]=\"type()\"\n [attr.value]=\"inputValue()\"\n [variant]=\"$variant()\"\n [invalid]=\"invalid()\"\n [attr.id]=\"inputId()\"\n [attr.autocomplete]=\"autocomplete()\"\n aria-autocomplete=\"list\"\n role=\"combobox\"\n [attr.placeholder]=\"placeholder()\"\n [attr.name]=\"name()\"\n [attr.minlength]=\"minlength()\"\n [pSize]=\"size()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.pattern]=\"pattern()\"\n [attr.size]=\"inputSize()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.tabindex]=\"!$disabled() ? tabindex() : -1\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-expanded]=\"overlayVisible ?? false\"\n [attr.aria-controls]=\"overlayVisible ? id() + '_list' : null\"\n [attr.aria-activedescendant]=\"focused ? focusedOptionId : undefined\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeyDown($event)\"\n (change)=\"onInputChange($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (paste)=\"onInputPaste($event)\"\n (keyup)=\"onInputKeyUp($event)\"\n [fluid]=\"hasFluid\"\n [pInputTextUnstyled]=\"unstyled()\"\n />\n}\n@if ($filled() && !$disabled() && showClear() && !loading) {\n @if (!clearIconTemplate() && !_clearIconTemplate) {\n <svg data-h-icon=\"times\" [hBind]=\"ptm('clearIcon')\" [class]=\"cx('clearIcon')\" (click)=\"clear()\" [attr.aria-hidden]=\"true\" />\n }\n @if (clearIconTemplate() || _clearIconTemplate) {\n <span [hBind]=\"ptm('clearIcon')\" [class]=\"cx('clearIcon')\" (click)=\"clear()\" [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"clearIconTemplate() || _clearIconTemplate\"></ng-template>\n </span>\n }\n}\n\n@if (multiple()) {\n <ul\n #multiContainer\n [hBind]=\"ptm('inputMultiple')\"\n [class]=\"cx('inputMultiple')\"\n [attr.data-h]=\"inputMultipleDataP\"\n [tabindex]=\"-1\"\n role=\"listbox\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-activedescendant]=\"focused ? focusedMultipleOptionId : undefined\"\n (focus)=\"onMultipleContainerFocus($event)\"\n (blur)=\"onMultipleContainerBlur($event)\"\n (keydown)=\"onMultipleContainerKeyDown($event)\"\n >\n @for (option of modelValue(); track option; let i = $index) {\n <li\n #token\n [hBind]=\"ptm('chipItem')\"\n [class]=\"cx('chipItem', { i })\"\n [attr.id]=\"id() + '_multiple_option_' + i\"\n role=\"option\"\n [attr.aria-label]=\"getOptionLabel(option)\"\n [attr.aria-setsize]=\"modelValue().length\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-selected]=\"true\"\n >\n <h-chip\n [pt]=\"ptm('pcChip')\"\n [class]=\"cx('pcChip')\"\n [label]=\"!selectedItemTemplate() && !_selectedItemTemplate && getOptionLabel(option)\"\n [disabled]=\"$disabled()\"\n [removable]=\"true\"\n (onRemove)=\"!readonly() ? removeOption($event, i) : ''\"\n [unstyled]=\"unstyled()\"\n >\n <ng-container *ngTemplateOutlet=\"selectedItemTemplate() || _selectedItemTemplate; context: { $implicit: option }\"></ng-container>\n <ng-template #removeicon>\n @if (!removeIconTemplate() && !_removeIconTemplate) {\n <span [hBind]=\"ptm('chipIcon')\" [class]=\"cx('chipIcon')\" (click)=\"!readonly() && !$disabled() ? removeOption($event, i) : ''\">\n <svg data-h-icon=\"times-circle\" [class]=\"cx('chipIcon')\" [attr.aria-hidden]=\"true\" />\n </span>\n }\n @if (removeIconTemplate() || _removeIconTemplate) {\n <span [hBind]=\"ptm('chipIcon')\" [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"removeIconTemplate() || _removeIconTemplate; context: { removeCallback: removeOption.bind(this), index: i, class: cx('chipIcon') }\"></ng-template>\n </span>\n }\n </ng-template>\n </h-chip>\n </li>\n }\n <li [hBind]=\"ptm('inputChip')\" [class]=\"cx('inputChip')\" role=\"option\">\n <input\n #focusInput\n #multiIn\n [hAutoFocus]=\"autofocus()\"\n [hBind]=\"ptm('input')\"\n [class]=\"cx('pcInputText')\"\n [ngStyle]=\"inputStyle()\"\n [attr.type]=\"type()\"\n [attr.id]=\"inputId()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.name]=\"name()\"\n [attr.minlength]=\"minlength()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.size]=\"size()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.pattern]=\"pattern()\"\n role=\"combobox\"\n [attr.placeholder]=\"!$filled() ? placeholder() : null\"\n aria-autocomplete=\"list\"\n [attr.tabindex]=\"!$disabled() ? tabindex() : -1\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-expanded]=\"overlayVisible ?? false\"\n [attr.aria-controls]=\"overlayVisible ? id() + '_list' : null\"\n [attr.aria-activedescendant]=\"focused ? focusedOptionId : undefined\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeyDown($event)\"\n (change)=\"onInputChange($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (paste)=\"onInputPaste($event)\"\n (keyup)=\"onInputKeyUp($event)\"\n />\n </li>\n </ul>\n}\n@if (loading) {\n @if (!loadingIconTemplate() && !_loadingIconTemplate) {\n <svg data-h-icon=\"spinner\" [hBind]=\"ptm('loader')\" [class]=\"cx('loader')\" [spin]=\"true\" [attr.aria-hidden]=\"true\" />\n }\n @if (loadingIconTemplate() || _loadingIconTemplate) {\n <span [hBind]=\"ptm('loader')\" [class]=\"cx('loader')\" [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"loadingIconTemplate() || _loadingIconTemplate\"></ng-template>\n </span>\n }\n}\n@if (dropdown()) {\n <button #ddBtn type=\"button\" [hBind]=\"ptm('dropdown')\" [attr.aria-label]=\"dropdownAriaLabel()\" [class]=\"cx('dropdown')\" [disabled]=\"$disabled()\" hRipple (click)=\"handleDropdownClick($event)\" [attr.tabindex]=\"tabindex()\">\n @if (dropdownIcon()) {\n <span [ngClass]=\"dropdownIcon\" [attr.aria-hidden]=\"true\"></span>\n }\n @if (!dropdownIcon()) {\n @if (!dropdownIconTemplate() && !_dropdownIconTemplate) {\n <svg data-h-icon=\"chevron-down\" [hBind]=\"ptm('dropdown')\" />\n }\n <ng-template *ngTemplateOutlet=\"dropdownIconTemplate() || _dropdownIconTemplate\"></ng-template>\n }\n </button>\n}\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()\"\n (onHide)=\"hide()\"\n [attr.data-h]=\"overlayDataP\"\n >\n <ng-template #content>\n <div [hBind]=\"ptm('overlay')\" [class]=\"cn(cx('overlay'), panelStyleClass())\" [ngStyle]=\"panelStyle()\">\n <ng-container *ngTemplateOutlet=\"headerTemplate() || _headerTemplate\"></ng-container>\n <div [hBind]=\"ptm('listContainer')\" [class]=\"cx('listContainer')\" [style.max-height]=\"virtualScroll() ? 'auto' : scrollHeight()\" [tabindex]=\"-1\">\n @if (virtualScroll()) {\n <h-scroller\n #scroller\n [tabindex]=\"-1\"\n [pt]=\"ptm('virtualScroller')\"\n [items]=\"visibleOptions()\"\n [style]=\"{ height: scrollHeight() }\"\n [itemSize]=\"virtualScrollItemSize()\"\n [autoSize]=\"true\"\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 </div>\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\" [attr.id]=\"id() + '_list'\" [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()) {\n <span>{{ getOptionGroupLabel(option.optionGroup) }}</span>\n }\n <ng-container *ngTemplateOutlet=\"groupTemplate(); context: { $implicit: option.optionGroup }\"></ng-container>\n </li>\n }\n @if (!isOptionGroup(option)) {\n <li\n hRipple\n [hBind]=\"getPTOptions(option, scrollerOptions, i, 'option')\"\n [ngStyle]=\"{ height: scrollerOptions.itemSize + 'px' }\"\n [class]=\"cx('option', { option, i, scrollerOptions })\"\n [attr.id]=\"id() + '_' + getOptionIndex(i, scrollerOptions)\"\n role=\"option\"\n [attr.aria-label]=\"getOptionLabel(option)\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.data-h-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"isOptionDisabled(option)\"\n [attr.data-h-focused]=\"focusedOptionIndex() === getOptionIndex(i, scrollerOptions)\"\n [attr.aria-setsize]=\"ariaSetSize\"\n [attr.aria-posinset]=\"getAriaPosInset(getOptionIndex(i, scrollerOptions))\"\n (click)=\"onOptionSelect($event, option)\"\n (mouseenter)=\"onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))\"\n >\n @if (!itemTemplate() && !_itemTemplate) {\n <span>{{ getOptionLabel(option) }}</span>\n }\n <ng-container\n *ngTemplateOutlet=\"\n itemTemplate() || _itemTemplate;\n context: {\n $implicit: option,\n index: scrollerOptions.getOptions ? scrollerOptions.getOptions(i) : i\n }\n \"\n ></ng-container>\n </li>\n }\n }\n @if (!items || (items && items.length === 0 && showEmptyMessage())) {\n <li [hBind]=\"ptm('emptyMessage')\" [class]=\"cx('emptyMessage')\" [ngStyle]=\"{ height: scrollerOptions.itemSize + 'px' }\" role=\"option\">\n @if (!emptyTemplate() && !_emptyTemplate) {\n {{ searchResultMessageText }}\n } @else {\n <ng-template [ngTemplateOutlet]=\"empty\"></ng-template>\n }\n <ng-container #empty *ngTemplateOutlet=\"emptyTemplate() || _emptyTemplate\"></ng-container>\n </li>\n }\n </ul>\n </ng-template>\n <ng-container *ngTemplateOutlet=\"footerTemplate() || _footerTemplate\"></ng-container>\n </div>\n <span role=\"status\" aria-live=\"polite\" class=\"h-hidden-accessible\">\n {{ selectedMessageText }}\n </span>\n</ng-template>\n</h-overlay>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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: "directive", type: InputText, selector: "[hInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "directive", type: Ripple, selector: "[hRipple]" }, { 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: TimesCircleIcon, selector: "[data-h-icon=\"times-circle\"]" }, { kind: "component", type: SpinnerIcon, selector: "[data-h-icon=\"spinner\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-h-icon=\"chevron-down\"]" }, { 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: "ngmodule", type: SharedModule }, { kind: "component", type: TimesIcon, selector: "[data-h-icon=\"times\"]" }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i2.Bind, selector: "[hBind]", inputs: ["hBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1928
|
+
}
|
|
1929
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AutoComplete, decorators: [{
|
|
1930
|
+
type: Component,
|
|
1931
|
+
args: [{ selector: 'h-autoComplete, h-autocomplete, h-auto-complete', standalone: true, imports: [CommonModule, Overlay, InputText, Ripple, Scroller, AutoFocus, TimesCircleIcon, SpinnerIcon, ChevronDownIcon, Chip, SharedModule, TimesIcon, BindModule], providers: [AUTOCOMPLETE_VALUE_ACCESSOR, AutoCompleteStyle, { provide: AUTOCOMPLETE_INSTANCE, useExisting: AutoComplete }, { provide: PARENT_INSTANCE, useExisting: AutoComplete }], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
1932
|
+
'[class]': "cn(cx('root'), styleClass())",
|
|
1933
|
+
'[style]': "sx('root')",
|
|
1934
|
+
'[attr.data-h]': 'containerDataP',
|
|
1935
|
+
'(click)': 'onHostClick($event)'
|
|
1936
|
+
}, hostDirectives: [Bind], template: "@if (!multiple()) {\n <input\n #focusInput\n [hAutoFocus]=\"autofocus()\"\n hInputText\n [pt]=\"ptm('pcInputText')\"\n [class]=\"cn(cx('pcInputText'), inputStyleClass())\"\n [ngStyle]=\"inputStyle()\"\n [attr.type]=\"type()\"\n [attr.value]=\"inputValue()\"\n [variant]=\"$variant()\"\n [invalid]=\"invalid()\"\n [attr.id]=\"inputId()\"\n [attr.autocomplete]=\"autocomplete()\"\n aria-autocomplete=\"list\"\n role=\"combobox\"\n [attr.placeholder]=\"placeholder()\"\n [attr.name]=\"name()\"\n [attr.minlength]=\"minlength()\"\n [pSize]=\"size()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.pattern]=\"pattern()\"\n [attr.size]=\"inputSize()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.tabindex]=\"!$disabled() ? tabindex() : -1\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-expanded]=\"overlayVisible ?? false\"\n [attr.aria-controls]=\"overlayVisible ? id() + '_list' : null\"\n [attr.aria-activedescendant]=\"focused ? focusedOptionId : undefined\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeyDown($event)\"\n (change)=\"onInputChange($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (paste)=\"onInputPaste($event)\"\n (keyup)=\"onInputKeyUp($event)\"\n [fluid]=\"hasFluid\"\n [pInputTextUnstyled]=\"unstyled()\"\n />\n}\n@if ($filled() && !$disabled() && showClear() && !loading) {\n @if (!clearIconTemplate() && !_clearIconTemplate) {\n <svg data-h-icon=\"times\" [hBind]=\"ptm('clearIcon')\" [class]=\"cx('clearIcon')\" (click)=\"clear()\" [attr.aria-hidden]=\"true\" />\n }\n @if (clearIconTemplate() || _clearIconTemplate) {\n <span [hBind]=\"ptm('clearIcon')\" [class]=\"cx('clearIcon')\" (click)=\"clear()\" [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"clearIconTemplate() || _clearIconTemplate\"></ng-template>\n </span>\n }\n}\n\n@if (multiple()) {\n <ul\n #multiContainer\n [hBind]=\"ptm('inputMultiple')\"\n [class]=\"cx('inputMultiple')\"\n [attr.data-h]=\"inputMultipleDataP\"\n [tabindex]=\"-1\"\n role=\"listbox\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-activedescendant]=\"focused ? focusedMultipleOptionId : undefined\"\n (focus)=\"onMultipleContainerFocus($event)\"\n (blur)=\"onMultipleContainerBlur($event)\"\n (keydown)=\"onMultipleContainerKeyDown($event)\"\n >\n @for (option of modelValue(); track option; let i = $index) {\n <li\n #token\n [hBind]=\"ptm('chipItem')\"\n [class]=\"cx('chipItem', { i })\"\n [attr.id]=\"id() + '_multiple_option_' + i\"\n role=\"option\"\n [attr.aria-label]=\"getOptionLabel(option)\"\n [attr.aria-setsize]=\"modelValue().length\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-selected]=\"true\"\n >\n <h-chip\n [pt]=\"ptm('pcChip')\"\n [class]=\"cx('pcChip')\"\n [label]=\"!selectedItemTemplate() && !_selectedItemTemplate && getOptionLabel(option)\"\n [disabled]=\"$disabled()\"\n [removable]=\"true\"\n (onRemove)=\"!readonly() ? removeOption($event, i) : ''\"\n [unstyled]=\"unstyled()\"\n >\n <ng-container *ngTemplateOutlet=\"selectedItemTemplate() || _selectedItemTemplate; context: { $implicit: option }\"></ng-container>\n <ng-template #removeicon>\n @if (!removeIconTemplate() && !_removeIconTemplate) {\n <span [hBind]=\"ptm('chipIcon')\" [class]=\"cx('chipIcon')\" (click)=\"!readonly() && !$disabled() ? removeOption($event, i) : ''\">\n <svg data-h-icon=\"times-circle\" [class]=\"cx('chipIcon')\" [attr.aria-hidden]=\"true\" />\n </span>\n }\n @if (removeIconTemplate() || _removeIconTemplate) {\n <span [hBind]=\"ptm('chipIcon')\" [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"removeIconTemplate() || _removeIconTemplate; context: { removeCallback: removeOption.bind(this), index: i, class: cx('chipIcon') }\"></ng-template>\n </span>\n }\n </ng-template>\n </h-chip>\n </li>\n }\n <li [hBind]=\"ptm('inputChip')\" [class]=\"cx('inputChip')\" role=\"option\">\n <input\n #focusInput\n #multiIn\n [hAutoFocus]=\"autofocus()\"\n [hBind]=\"ptm('input')\"\n [class]=\"cx('pcInputText')\"\n [ngStyle]=\"inputStyle()\"\n [attr.type]=\"type()\"\n [attr.id]=\"inputId()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.name]=\"name()\"\n [attr.minlength]=\"minlength()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.size]=\"size()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.pattern]=\"pattern()\"\n role=\"combobox\"\n [attr.placeholder]=\"!$filled() ? placeholder() : null\"\n aria-autocomplete=\"list\"\n [attr.tabindex]=\"!$disabled() ? tabindex() : -1\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-expanded]=\"overlayVisible ?? false\"\n [attr.aria-controls]=\"overlayVisible ? id() + '_list' : null\"\n [attr.aria-activedescendant]=\"focused ? focusedOptionId : undefined\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeyDown($event)\"\n (change)=\"onInputChange($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (paste)=\"onInputPaste($event)\"\n (keyup)=\"onInputKeyUp($event)\"\n />\n </li>\n </ul>\n}\n@if (loading) {\n @if (!loadingIconTemplate() && !_loadingIconTemplate) {\n <svg data-h-icon=\"spinner\" [hBind]=\"ptm('loader')\" [class]=\"cx('loader')\" [spin]=\"true\" [attr.aria-hidden]=\"true\" />\n }\n @if (loadingIconTemplate() || _loadingIconTemplate) {\n <span [hBind]=\"ptm('loader')\" [class]=\"cx('loader')\" [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"loadingIconTemplate() || _loadingIconTemplate\"></ng-template>\n </span>\n }\n}\n@if (dropdown()) {\n <button #ddBtn type=\"button\" [hBind]=\"ptm('dropdown')\" [attr.aria-label]=\"dropdownAriaLabel()\" [class]=\"cx('dropdown')\" [disabled]=\"$disabled()\" hRipple (click)=\"handleDropdownClick($event)\" [attr.tabindex]=\"tabindex()\">\n @if (dropdownIcon()) {\n <span [ngClass]=\"dropdownIcon\" [attr.aria-hidden]=\"true\"></span>\n }\n @if (!dropdownIcon()) {\n @if (!dropdownIconTemplate() && !_dropdownIconTemplate) {\n <svg data-h-icon=\"chevron-down\" [hBind]=\"ptm('dropdown')\" />\n }\n <ng-template *ngTemplateOutlet=\"dropdownIconTemplate() || _dropdownIconTemplate\"></ng-template>\n }\n </button>\n}\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()\"\n (onHide)=\"hide()\"\n [attr.data-h]=\"overlayDataP\"\n >\n <ng-template #content>\n <div [hBind]=\"ptm('overlay')\" [class]=\"cn(cx('overlay'), panelStyleClass())\" [ngStyle]=\"panelStyle()\">\n <ng-container *ngTemplateOutlet=\"headerTemplate() || _headerTemplate\"></ng-container>\n <div [hBind]=\"ptm('listContainer')\" [class]=\"cx('listContainer')\" [style.max-height]=\"virtualScroll() ? 'auto' : scrollHeight()\" [tabindex]=\"-1\">\n @if (virtualScroll()) {\n <h-scroller\n #scroller\n [tabindex]=\"-1\"\n [pt]=\"ptm('virtualScroller')\"\n [items]=\"visibleOptions()\"\n [style]=\"{ height: scrollHeight() }\"\n [itemSize]=\"virtualScrollItemSize()\"\n [autoSize]=\"true\"\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 </div>\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\" [attr.id]=\"id() + '_list'\" [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()) {\n <span>{{ getOptionGroupLabel(option.optionGroup) }}</span>\n }\n <ng-container *ngTemplateOutlet=\"groupTemplate(); context: { $implicit: option.optionGroup }\"></ng-container>\n </li>\n }\n @if (!isOptionGroup(option)) {\n <li\n hRipple\n [hBind]=\"getPTOptions(option, scrollerOptions, i, 'option')\"\n [ngStyle]=\"{ height: scrollerOptions.itemSize + 'px' }\"\n [class]=\"cx('option', { option, i, scrollerOptions })\"\n [attr.id]=\"id() + '_' + getOptionIndex(i, scrollerOptions)\"\n role=\"option\"\n [attr.aria-label]=\"getOptionLabel(option)\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.data-h-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"isOptionDisabled(option)\"\n [attr.data-h-focused]=\"focusedOptionIndex() === getOptionIndex(i, scrollerOptions)\"\n [attr.aria-setsize]=\"ariaSetSize\"\n [attr.aria-posinset]=\"getAriaPosInset(getOptionIndex(i, scrollerOptions))\"\n (click)=\"onOptionSelect($event, option)\"\n (mouseenter)=\"onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))\"\n >\n @if (!itemTemplate() && !_itemTemplate) {\n <span>{{ getOptionLabel(option) }}</span>\n }\n <ng-container\n *ngTemplateOutlet=\"\n itemTemplate() || _itemTemplate;\n context: {\n $implicit: option,\n index: scrollerOptions.getOptions ? scrollerOptions.getOptions(i) : i\n }\n \"\n ></ng-container>\n </li>\n }\n }\n @if (!items || (items && items.length === 0 && showEmptyMessage())) {\n <li [hBind]=\"ptm('emptyMessage')\" [class]=\"cx('emptyMessage')\" [ngStyle]=\"{ height: scrollerOptions.itemSize + 'px' }\" role=\"option\">\n @if (!emptyTemplate() && !_emptyTemplate) {\n {{ searchResultMessageText }}\n } @else {\n <ng-template [ngTemplateOutlet]=\"empty\"></ng-template>\n }\n <ng-container #empty *ngTemplateOutlet=\"emptyTemplate() || _emptyTemplate\"></ng-container>\n </li>\n }\n </ul>\n </ng-template>\n <ng-container *ngTemplateOutlet=\"footerTemplate() || _footerTemplate\"></ng-container>\n </div>\n <span role=\"status\" aria-live=\"polite\" class=\"h-hidden-accessible\">\n {{ selectedMessageText }}\n </span>\n</ng-template>\n</h-overlay>\n" }]
|
|
1937
|
+
}], ctorParameters: () => [{ type: i1.OverlayService }, { type: i0.NgZone }], propDecorators: { minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], minQueryLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minQueryLength", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], panelStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyle", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], panelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyleClass", required: false }] }], inputStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyle", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], inputStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyleClass", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", 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 }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], virtualScrollOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollOptions", required: false }] }], autoHighlight: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoHighlight", required: false }] }], forceSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceSelection", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], dropdownAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownAriaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], dropdownIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownIcon", required: false }] }], unique: [{ type: i0.Input, args: [{ isSignal: true, alias: "unique", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }], completeOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "completeOnFocus", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], dropdown: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdown", required: false }] }], showEmptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showEmptyMessage", required: false }] }], dropdownMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownMode", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], addOnTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "addOnTab", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], showTransitionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTransitionOptions", required: false }] }], hideTransitionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideTransitionOptions", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], optionGroupChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupChildren", required: false }] }], optionGroupLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupLabel", required: false }] }], overlayOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "overlayOptions", required: false }] }], suggestions: [{ type: i0.Input, args: [{ isSignal: true, alias: "suggestions", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }, { type: i0.Output, args: ["idChange"] }], searchMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchMessage", required: false }] }], emptySelectionMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptySelectionMessage", required: false }] }], selectionMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMessage", required: false }] }], autoOptionFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoOptionFocus", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], searchLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchLocale", required: false }] }], optionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionDisabled", required: false }] }], focusOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnHover", required: false }] }], typeahead: [{ type: i0.Input, args: [{ isSignal: true, alias: "typeahead", required: false }] }], addOnBlur: [{ type: i0.Input, args: [{ isSignal: true, alias: "addOnBlur", required: false }] }], separator: [{ type: i0.Input, args: [{ isSignal: true, alias: "separator", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], completeMethod: [{ type: i0.Output, args: ["completeMethod"] }], onSelect: [{ type: i0.Output, args: ["onSelect"] }], onUnselect: [{ type: i0.Output, args: ["onUnselect"] }], onAdd: [{ type: i0.Output, args: ["onAdd"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onDropdownClick: [{ type: i0.Output, args: ["onDropdownClick"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], onInputKeydown: [{ type: i0.Output, args: ["onInputKeydown"] }], onKeyUp: [{ type: i0.Output, args: ["onKeyUp"] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], inputEL: [{ type: i0.ViewChild, args: ['focusInput', { isSignal: true }] }], multiInputEl: [{ type: i0.ViewChild, args: ['multiIn', { isSignal: true }] }], multiContainerEL: [{ type: i0.ViewChild, args: ['multiContainer', { isSignal: true }] }], dropdownButton: [{ type: i0.ViewChild, args: ['ddBtn', { isSignal: true }] }], itemsViewChild: [{ type: i0.ViewChild, args: ['items', { isSignal: true }] }], scroller: [{ type: i0.ViewChild, args: ['scroller', { isSignal: true }] }], overlayViewChild: [{ type: i0.ViewChild, args: ['overlay', { isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: ['empty', { isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { isSignal: true }] }], selectedItemTemplate: [{ type: i0.ContentChild, args: ['selecteditem', { isSignal: true }] }], groupTemplate: [{ type: i0.ContentChild, args: ['group', { isSignal: true }] }], loaderTemplate: [{ type: i0.ContentChild, args: ['loader', { isSignal: true }] }], removeIconTemplate: [{ type: i0.ContentChild, args: ['removeicon', { isSignal: true }] }], loadingIconTemplate: [{ type: i0.ContentChild, args: ['loadingicon', { isSignal: true }] }], clearIconTemplate: [{ type: i0.ContentChild, args: ['clearicon', { isSignal: true }] }], dropdownIconTemplate: [{ type: i0.ContentChild, args: ['dropdownicon', { isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => HelixTemplate), { isSignal: true }] }] } });
|
|
1938
|
+
class AutoCompleteModule {
|
|
1939
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AutoCompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1940
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.6", ngImport: i0, type: AutoCompleteModule, imports: [AutoComplete, SharedModule], exports: [AutoComplete, SharedModule] });
|
|
1941
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AutoCompleteModule, imports: [AutoComplete, SharedModule, SharedModule] });
|
|
1942
|
+
}
|
|
1943
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AutoCompleteModule, decorators: [{
|
|
1944
|
+
type: NgModule,
|
|
1945
|
+
args: [{
|
|
1946
|
+
imports: [AutoComplete, SharedModule],
|
|
1947
|
+
exports: [AutoComplete, SharedModule]
|
|
1948
|
+
}]
|
|
1949
|
+
}] });
|
|
1950
|
+
|
|
1951
|
+
/**
|
|
1952
|
+
* Generated bundle index. Do not edit.
|
|
1953
|
+
*/
|
|
1954
|
+
|
|
1955
|
+
export { AUTOCOMPLETE_VALUE_ACCESSOR, AutoComplete, AutoCompleteClasses, AutoCompleteModule, AutoCompleteStyle };
|
|
1956
|
+
//# sourceMappingURL=gravionlabs-helix-core-autocomplete.mjs.map
|