@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,1860 @@
|
|
|
1
|
+
export * from '@gravionlabs/helix-core/types/tree';
|
|
2
|
+
import * as i1 from '@angular/common';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { Injectable, InjectionToken, inject, input, booleanAttribute, numberAttribute, forwardRef, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, model, output, contentChild, viewChild, contentChildren, Optional, NgModule } from '@angular/core';
|
|
6
|
+
import * as i2 from '@angular/forms';
|
|
7
|
+
import { FormsModule } from '@angular/forms';
|
|
8
|
+
import { getOuterWidth, getOuterHeight, find, findSingle, focus, removeAccents, resolveFieldData } from '@gravionlabs/helix-core/uix/utils';
|
|
9
|
+
import * as i4 from '@gravionlabs/helix-core/api';
|
|
10
|
+
import { SharedModule, HelixTemplate, TranslationKeys } from '@gravionlabs/helix-core/api';
|
|
11
|
+
import * as i5 from '@gravionlabs/helix-core/autofocus';
|
|
12
|
+
import { AutoFocusModule } from '@gravionlabs/helix-core/autofocus';
|
|
13
|
+
import { BaseComponent, PARENT_INSTANCE } from '@gravionlabs/helix-core/basecomponent';
|
|
14
|
+
import * as i3 from '@gravionlabs/helix-core/bind';
|
|
15
|
+
import { BindModule, Bind } from '@gravionlabs/helix-core/bind';
|
|
16
|
+
import { Checkbox } from '@gravionlabs/helix-core/checkbox';
|
|
17
|
+
import { IconField } from '@gravionlabs/helix-core/iconfield';
|
|
18
|
+
import { ChevronRightIcon, ChevronDownIcon, SpinnerIcon, SearchIcon } from '@gravionlabs/helix-core/icons';
|
|
19
|
+
import { InputIcon } from '@gravionlabs/helix-core/inputicon';
|
|
20
|
+
import { InputText } from '@gravionlabs/helix-core/inputtext';
|
|
21
|
+
import { Ripple } from '@gravionlabs/helix-core/ripple';
|
|
22
|
+
import { Scroller } from '@gravionlabs/helix-core/scroller';
|
|
23
|
+
import { BaseStyle } from '@gravionlabs/helix-core/base';
|
|
24
|
+
|
|
25
|
+
const style = /*css*/ `
|
|
26
|
+
.h-tree {
|
|
27
|
+
display: block;
|
|
28
|
+
background: dt('tree.background');
|
|
29
|
+
color: dt('tree.color');
|
|
30
|
+
padding: dt('tree.padding');
|
|
31
|
+
position: relative;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.h-tree-root-children,
|
|
35
|
+
.h-tree-node-children {
|
|
36
|
+
display: flex;
|
|
37
|
+
list-style-type: none;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
margin: 0;
|
|
40
|
+
gap: dt('tree.gap');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.h-tree-root-children {
|
|
44
|
+
padding: 0;
|
|
45
|
+
padding-block-start: dt('tree.gap');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.h-tree-node-children {
|
|
49
|
+
padding: 0;
|
|
50
|
+
padding-block-start: dt('tree.gap');
|
|
51
|
+
padding-inline-start: dt('tree.indent');
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.h-tree-node {
|
|
55
|
+
padding: 0;
|
|
56
|
+
outline: 0 none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.h-tree-node-content {
|
|
60
|
+
border-radius: dt('tree.node.border.radius');
|
|
61
|
+
padding: dt('tree.node.padding');
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
outline-color: transparent;
|
|
65
|
+
color: dt('tree.node.color');
|
|
66
|
+
gap: dt('tree.node.gap');
|
|
67
|
+
transition:
|
|
68
|
+
background dt('tree.transition.duration'),
|
|
69
|
+
color dt('tree.transition.duration'),
|
|
70
|
+
outline-color dt('tree.transition.duration'),
|
|
71
|
+
box-shadow dt('tree.transition.duration');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.h-tree-node-content[data-h-dragging] {
|
|
75
|
+
outline: 1px dashed dt('primary.color');
|
|
76
|
+
outline-offset: -1px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.h-tree-node-content[data-pc-section="drag-image"] {
|
|
80
|
+
background: dt('tree.background');
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.h-tree-node:focus-visible > .h-tree-node-content {
|
|
84
|
+
box-shadow: dt('tree.node.focus.ring.shadow');
|
|
85
|
+
outline: dt('tree.node.focus.ring.width') dt('tree.node.focus.ring.style') dt('tree.node.focus.ring.color');
|
|
86
|
+
outline-offset: dt('tree.node.focus.ring.offset');
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.h-tree-node-content.h-tree-node-selectable:not(.h-tree-node-selected):hover {
|
|
90
|
+
background: dt('tree.node.hover.background');
|
|
91
|
+
color: dt('tree.node.hover.color');
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.h-tree-node-content.h-tree-node-selectable:not(.h-tree-node-selected):hover .h-tree-node-icon {
|
|
95
|
+
color: dt('tree.node.icon.hover.color');
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.h-tree-node-content.h-tree-node-selected {
|
|
99
|
+
background: dt('tree.node.selected.background');
|
|
100
|
+
color: dt('tree.node.selected.color');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.h-tree-node-content.h-tree-node-selected .h-tree-node-toggle-button {
|
|
104
|
+
color: inherit;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.h-tree-node-content.h-tree-node-dragover {
|
|
108
|
+
background: dt('tree.node.hover.background');
|
|
109
|
+
color: dt('tree.node.hover.color');
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.h-tree-node-content:focus-visible,
|
|
113
|
+
.h-tree-node-content.h-tree-node-contextmenu-selected {
|
|
114
|
+
box-shadow: dt('tree.node.focus.ring.shadow');
|
|
115
|
+
outline: dt('tree.node.focus.ring.width') dt('tree.node.focus.ring.style') dt('tree.node.focus.ring.color');
|
|
116
|
+
outline-offset: dt('tree.node.focus.ring.offset');
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.h-tree-node-drop-point {
|
|
120
|
+
outline: 1px solid dt('primary.color');
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.h-tree-node-toggle-button {
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
user-select: none;
|
|
126
|
+
display: inline-flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
position: relative;
|
|
131
|
+
flex-shrink: 0;
|
|
132
|
+
width: dt('tree.node.toggle.button.size');
|
|
133
|
+
height: dt('tree.node.toggle.button.size');
|
|
134
|
+
color: dt('tree.node.toggle.button.color');
|
|
135
|
+
border: 0 none;
|
|
136
|
+
background: transparent;
|
|
137
|
+
border-radius: dt('tree.node.toggle.button.border.radius');
|
|
138
|
+
transition:
|
|
139
|
+
background dt('tree.transition.duration'),
|
|
140
|
+
color dt('tree.transition.duration'),
|
|
141
|
+
border-color dt('tree.transition.duration'),
|
|
142
|
+
outline-color dt('tree.transition.duration'),
|
|
143
|
+
box-shadow dt('tree.transition.duration');
|
|
144
|
+
outline-color: transparent;
|
|
145
|
+
padding: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.h-tree-node-toggle-button:enabled:hover {
|
|
149
|
+
background: dt('tree.node.toggle.button.hover.background');
|
|
150
|
+
color: dt('tree.node.toggle.button.hover.color');
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.h-tree-node-content.h-tree-node-selected .h-tree-node-toggle-button:hover {
|
|
154
|
+
background: dt('tree.node.toggle.button.selected.hover.background');
|
|
155
|
+
color: dt('tree.node.toggle.button.selected.hover.color');
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.h-tree-root {
|
|
159
|
+
overflow: auto;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.h-tree-node-selectable {
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
user-select: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.h-tree-node-leaf > .h-tree-node-content .h-tree-node-toggle-button {
|
|
168
|
+
visibility: hidden;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.h-tree-node-icon {
|
|
172
|
+
color: dt('tree.node.icon.color');
|
|
173
|
+
transition: color dt('tree.transition.duration');
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.h-tree-node-content.h-tree-node-selected .h-tree-node-icon {
|
|
177
|
+
color: dt('tree.node.icon.selected.color');
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.h-tree-filter {
|
|
181
|
+
margin: dt('tree.filter.margin');
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.h-tree-filter-input {
|
|
185
|
+
width: 100%;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.h-tree-loading-icon {
|
|
189
|
+
font-size: dt('tree.loading.icon.size');
|
|
190
|
+
width: dt('tree.loading.icon.size');
|
|
191
|
+
height: dt('tree.loading.icon.size');
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.h-tree .h-tree-mask {
|
|
195
|
+
position: absolute;
|
|
196
|
+
z-index: 1;
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
justify-content: center;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.h-tree-flex-scrollable {
|
|
203
|
+
display: flex;
|
|
204
|
+
flex: 1;
|
|
205
|
+
height: 100%;
|
|
206
|
+
flex-direction: column;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.h-tree-flex-scrollable .h-tree-root {
|
|
210
|
+
flex: 1;
|
|
211
|
+
}
|
|
212
|
+
`;
|
|
213
|
+
|
|
214
|
+
const classes = {
|
|
215
|
+
root: ({ instance }) => [
|
|
216
|
+
'h-tree h-component',
|
|
217
|
+
{
|
|
218
|
+
'h-tree-selectable': instance.selectionMode != null,
|
|
219
|
+
'h-tree-loading': instance.loading,
|
|
220
|
+
'h-tree-flex-scrollable': instance.scrollHeight === 'flex',
|
|
221
|
+
'h-tree-node-dragover': instance.dragHover
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
mask: 'h-tree-mask h-overlay-mask',
|
|
225
|
+
loadingIcon: 'h-tree-loading-icon',
|
|
226
|
+
pcFilterInput: 'h-tree-filter-input',
|
|
227
|
+
wrapper: 'h-tree-root',
|
|
228
|
+
rootChildren: 'h-tree-root-children',
|
|
229
|
+
node: ({ instance }) => ({ 'h-tree-node': true, 'h-tree-node-leaf': instance.isLeaf() }),
|
|
230
|
+
nodeContent: ({ instance }) => ({
|
|
231
|
+
'h-tree-node-content': true,
|
|
232
|
+
'h-tree-node-selectable': instance.selectable,
|
|
233
|
+
'h-tree-node-dragover': instance.isNodeDropActive(),
|
|
234
|
+
'h-tree-node-selected': instance.selectionMode === 'checkbox' && instance.tree.highlightOnSelect ? instance.checked : instance.selected,
|
|
235
|
+
'h-tree-node-contextmenu-selected': instance.isContextMenuSelected()
|
|
236
|
+
}),
|
|
237
|
+
nodeToggleButton: 'h-tree-node-toggle-button',
|
|
238
|
+
nodeToggleIcon: 'h-tree-node-toggle-icon',
|
|
239
|
+
nodeCheckbox: 'h-tree-node-checkbox',
|
|
240
|
+
nodeIcon: 'h-tree-node-icon',
|
|
241
|
+
nodeLabel: 'h-tree-node-label',
|
|
242
|
+
nodeChildren: 'h-tree-node-children',
|
|
243
|
+
emptyMessage: 'h-tree-empty-message',
|
|
244
|
+
dropPoint: 'h-tree-node-drop-point'
|
|
245
|
+
};
|
|
246
|
+
class TreeStyle extends BaseStyle {
|
|
247
|
+
name = 'tree';
|
|
248
|
+
style = style;
|
|
249
|
+
classes = classes;
|
|
250
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: TreeStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
251
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: TreeStyle });
|
|
252
|
+
}
|
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: TreeStyle, decorators: [{
|
|
254
|
+
type: Injectable
|
|
255
|
+
}] });
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* Tree is used to display hierarchical data.
|
|
259
|
+
*
|
|
260
|
+
* [Live Demo](https://www.primeng.org/tree/)
|
|
261
|
+
*
|
|
262
|
+
* @module treestyle
|
|
263
|
+
*
|
|
264
|
+
*/
|
|
265
|
+
var TreeClasses;
|
|
266
|
+
(function (TreeClasses) {
|
|
267
|
+
/**
|
|
268
|
+
* Class name of the root element
|
|
269
|
+
*/
|
|
270
|
+
TreeClasses["root"] = "h-tree";
|
|
271
|
+
/**
|
|
272
|
+
* Class name of the mask element
|
|
273
|
+
*/
|
|
274
|
+
TreeClasses["mask"] = "h-tree-mask";
|
|
275
|
+
/**
|
|
276
|
+
* Class name of the loading icon element
|
|
277
|
+
*/
|
|
278
|
+
TreeClasses["loadingIcon"] = "h-tree-loading-icon";
|
|
279
|
+
/**
|
|
280
|
+
* Class name of the filter input element
|
|
281
|
+
*/
|
|
282
|
+
TreeClasses["pcFilterInput"] = "h-tree-filter-input";
|
|
283
|
+
/**
|
|
284
|
+
* Class name of the wrapper element
|
|
285
|
+
*/
|
|
286
|
+
TreeClasses["wrapper"] = "h-tree-root";
|
|
287
|
+
/**
|
|
288
|
+
* Class name of the root children element
|
|
289
|
+
*/
|
|
290
|
+
TreeClasses["rootChildren"] = "h-tree-root-children";
|
|
291
|
+
/**
|
|
292
|
+
* Class name of the node element
|
|
293
|
+
*/
|
|
294
|
+
TreeClasses["node"] = "h-tree-node";
|
|
295
|
+
/**
|
|
296
|
+
* Class name of the node content element
|
|
297
|
+
*/
|
|
298
|
+
TreeClasses["nodeContent"] = "h-tree-node-content";
|
|
299
|
+
/**
|
|
300
|
+
* Class name of the node toggle button element
|
|
301
|
+
*/
|
|
302
|
+
TreeClasses["nodeToggleButton"] = "h-tree-node-toggle-button";
|
|
303
|
+
/**
|
|
304
|
+
* Class name of the node toggle icon element
|
|
305
|
+
*/
|
|
306
|
+
TreeClasses["nodeToggleIcon"] = "h-tree-node-toggle-icon";
|
|
307
|
+
/**
|
|
308
|
+
* Class name of the node checkbox element
|
|
309
|
+
*/
|
|
310
|
+
TreeClasses["nodeCheckbox"] = "h-tree-node-checkbox";
|
|
311
|
+
/**
|
|
312
|
+
* Class name of the node icon element
|
|
313
|
+
*/
|
|
314
|
+
TreeClasses["nodeIcon"] = "h-tree-node-icon";
|
|
315
|
+
/**
|
|
316
|
+
* Class name of the node label element
|
|
317
|
+
*/
|
|
318
|
+
TreeClasses["nodeLabel"] = "h-tree-node-label";
|
|
319
|
+
/**
|
|
320
|
+
* Class name of the node children element
|
|
321
|
+
*/
|
|
322
|
+
TreeClasses["nodeChildren"] = "h-tree-node-children";
|
|
323
|
+
/**
|
|
324
|
+
* Class name of the empty message element
|
|
325
|
+
*/
|
|
326
|
+
TreeClasses["emptyMessage"] = "h-tree-empty-message";
|
|
327
|
+
/**
|
|
328
|
+
* Class name of the drop point element
|
|
329
|
+
*/
|
|
330
|
+
TreeClasses["dropPoint"] = "h-tree-node-droppoint";
|
|
331
|
+
})(TreeClasses || (TreeClasses = {}));
|
|
332
|
+
|
|
333
|
+
const TREE_INSTANCE = new InjectionToken('TREE_INSTANCE');
|
|
334
|
+
const TREENODE_INSTANCE = new InjectionToken('TREENODE_INSTANCE');
|
|
335
|
+
class UITreeNode extends BaseComponent {
|
|
336
|
+
$pcTreeNode = inject(TREENODE_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
337
|
+
static ICON_CLASS = 'h-tree-node-icon ';
|
|
338
|
+
rowNode = input(/* @ts-ignore */
|
|
339
|
+
...(ngDevMode ? [undefined, { debugName: "rowNode" }] : /* istanbul ignore next */ []));
|
|
340
|
+
node = input(undefined, /* @ts-ignore */
|
|
341
|
+
...(ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []));
|
|
342
|
+
parentNode = input(/* @ts-ignore */
|
|
343
|
+
...(ngDevMode ? [undefined, { debugName: "parentNode" }] : /* istanbul ignore next */ []));
|
|
344
|
+
root = input(undefined, { ...(ngDevMode ? { debugName: "root" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
345
|
+
index = input(undefined, { ...(ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
346
|
+
firstChild = input(undefined, { ...(ngDevMode ? { debugName: "firstChild" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
347
|
+
lastChild = input(undefined, { ...(ngDevMode ? { debugName: "lastChild" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
348
|
+
level = input(undefined, { ...(ngDevMode ? { debugName: "level" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
349
|
+
indentation = input(undefined, { ...(ngDevMode ? { debugName: "indentation" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
350
|
+
itemSize = input(undefined, { ...(ngDevMode ? { debugName: "itemSize" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
351
|
+
loadingMode = input(undefined, /* @ts-ignore */
|
|
352
|
+
...(ngDevMode ? [{ debugName: "loadingMode" }] : /* istanbul ignore next */ []));
|
|
353
|
+
tree = inject(forwardRef(() => Tree));
|
|
354
|
+
timeout;
|
|
355
|
+
isPrevDropPointHovered = signal(false, /* @ts-ignore */
|
|
356
|
+
...(ngDevMode ? [{ debugName: "isPrevDropPointHovered" }] : /* istanbul ignore next */ []));
|
|
357
|
+
isNextDropPointHovered = signal(false, /* @ts-ignore */
|
|
358
|
+
...(ngDevMode ? [{ debugName: "isNextDropPointHovered" }] : /* istanbul ignore next */ []));
|
|
359
|
+
isNodeDropHovered = signal(false, /* @ts-ignore */
|
|
360
|
+
...(ngDevMode ? [{ debugName: "isNodeDropHovered" }] : /* istanbul ignore next */ []));
|
|
361
|
+
isPrevDropPointActive = computed(() => this.isPrevDropPointHovered() && this.isDroppable(), /* @ts-ignore */
|
|
362
|
+
...(ngDevMode ? [{ debugName: "isPrevDropPointActive" }] : /* istanbul ignore next */ []));
|
|
363
|
+
isNextDropPointActive = computed(() => this.isNextDropPointHovered() && this.isDroppable(), /* @ts-ignore */
|
|
364
|
+
...(ngDevMode ? [{ debugName: "isNextDropPointActive" }] : /* istanbul ignore next */ []));
|
|
365
|
+
isNodeDropActive = computed(() => this.isNodeDropHovered() && this.isNodeDroppable(), /* @ts-ignore */
|
|
366
|
+
...(ngDevMode ? [{ debugName: "isNodeDropActive" }] : /* istanbul ignore next */ []));
|
|
367
|
+
dropPosition = computed(() => (this.isPrevDropPointActive() ? -1 : this.isNextDropPointActive() ? 1 : 0), /* @ts-ignore */
|
|
368
|
+
...(ngDevMode ? [{ debugName: "dropPosition" }] : /* istanbul ignore next */ []));
|
|
369
|
+
_componentStyle = inject(TreeStyle);
|
|
370
|
+
/**
|
|
371
|
+
* Computed signal that reactively tracks selection state.
|
|
372
|
+
*/
|
|
373
|
+
_selected = computed(() => {
|
|
374
|
+
// Reading selection() makes this computed reactive to selection changes
|
|
375
|
+
this.tree.selection();
|
|
376
|
+
return this.tree.isSelected(this.node());
|
|
377
|
+
}, /* @ts-ignore */
|
|
378
|
+
...(ngDevMode ? [{ debugName: "_selected" }] : /* istanbul ignore next */ []));
|
|
379
|
+
/**
|
|
380
|
+
* Computed signal that reactively tracks context menu selection state.
|
|
381
|
+
*/
|
|
382
|
+
_contextMenuSelected = computed(() => {
|
|
383
|
+
const selection = this.tree.contextMenuSelection();
|
|
384
|
+
const n = this.node();
|
|
385
|
+
if (!selection || !n) {
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
return selection === n || (selection.key && selection.key === n.key);
|
|
389
|
+
}, /* @ts-ignore */
|
|
390
|
+
...(ngDevMode ? [{ debugName: "_contextMenuSelected" }] : /* istanbul ignore next */ []));
|
|
391
|
+
get selected() {
|
|
392
|
+
return this.tree.selectionMode() === 'single' || this.tree.selectionMode() === 'multiple' ? this._selected() : undefined;
|
|
393
|
+
}
|
|
394
|
+
get checked() {
|
|
395
|
+
return this.tree.selectionMode() === 'checkbox' ? this._selected() : undefined;
|
|
396
|
+
}
|
|
397
|
+
get nodeClass() {
|
|
398
|
+
return this.tree._componentStyle.classes.node({ instance: this });
|
|
399
|
+
}
|
|
400
|
+
get selectable() {
|
|
401
|
+
return this.node()?.selectable === false ? false : this.tree?.selectionMode() != null;
|
|
402
|
+
}
|
|
403
|
+
get subNodes() {
|
|
404
|
+
const n = this.node();
|
|
405
|
+
return n?.parent ? n.parent.children : this.tree.value();
|
|
406
|
+
}
|
|
407
|
+
getPTOptions(key) {
|
|
408
|
+
return this.ptm(key, {
|
|
409
|
+
context: {
|
|
410
|
+
node: this.node(),
|
|
411
|
+
index: this.index(),
|
|
412
|
+
expanded: this.node()?.expanded,
|
|
413
|
+
selected: this.selected,
|
|
414
|
+
checked: this.checked,
|
|
415
|
+
partialChecked: this.node()?.partialSelected,
|
|
416
|
+
leaf: this.isLeaf()
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
onInit() {
|
|
421
|
+
this.node().parent = this.parentNode();
|
|
422
|
+
const nativeElement = this.tree.el.nativeElement;
|
|
423
|
+
const pDialogWrapper = nativeElement.closest('h-dialog');
|
|
424
|
+
const parentNode = this.parentNode();
|
|
425
|
+
if (parentNode && !pDialogWrapper) {
|
|
426
|
+
this.setAllNodesTabIndexes();
|
|
427
|
+
this.tree.syncNodeOption(this.node(), this.tree.value(), 'parent', this.tree.getNodeWithKey(parentNode.key, this.tree.value()));
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
getIcon() {
|
|
431
|
+
let icon;
|
|
432
|
+
if (this.node().icon)
|
|
433
|
+
icon = this.node().icon;
|
|
434
|
+
else
|
|
435
|
+
icon = this.node().expanded && this.node().children && this.node().children?.length ? this.node().expandedIcon : this.node().collapsedIcon;
|
|
436
|
+
return UITreeNode.ICON_CLASS + ' ' + icon + ' h-tree-node-icon';
|
|
437
|
+
}
|
|
438
|
+
isLeaf() {
|
|
439
|
+
return this.tree.isNodeLeaf(this.node());
|
|
440
|
+
}
|
|
441
|
+
isSelected() {
|
|
442
|
+
return this._selected();
|
|
443
|
+
}
|
|
444
|
+
isContextMenuSelected() {
|
|
445
|
+
return this._contextMenuSelected();
|
|
446
|
+
}
|
|
447
|
+
isSameNode(event) {
|
|
448
|
+
return event.currentTarget && (event.currentTarget.isSameNode(event.target) || event.currentTarget.isSameNode(event.target.closest('[role="treeitem"]')));
|
|
449
|
+
}
|
|
450
|
+
isDraggable() {
|
|
451
|
+
return this.tree.draggableNodes();
|
|
452
|
+
}
|
|
453
|
+
isDroppable() {
|
|
454
|
+
return this.tree.droppableNodes() && this.tree.allowDrop(this.tree.dragNode, this.node(), this.tree.dragNodeScope);
|
|
455
|
+
}
|
|
456
|
+
isNodeDroppable() {
|
|
457
|
+
return this.node()?.droppable !== false && this.isDroppable();
|
|
458
|
+
}
|
|
459
|
+
isNodeDraggable() {
|
|
460
|
+
return this.node()?.draggable !== false && this.isDraggable();
|
|
461
|
+
}
|
|
462
|
+
toggle(event) {
|
|
463
|
+
if (this.node().expanded)
|
|
464
|
+
this.collapse(event);
|
|
465
|
+
else
|
|
466
|
+
this.expand(event);
|
|
467
|
+
event.stopPropagation();
|
|
468
|
+
}
|
|
469
|
+
expand(event) {
|
|
470
|
+
this.node().expanded = true;
|
|
471
|
+
if (this.tree.virtualScroll()) {
|
|
472
|
+
this.tree.updateSerializedValue();
|
|
473
|
+
this.focusVirtualNode();
|
|
474
|
+
}
|
|
475
|
+
this.tree.onNodeExpand.emit({ originalEvent: event, node: this.node() });
|
|
476
|
+
}
|
|
477
|
+
collapse(event) {
|
|
478
|
+
this.node().expanded = false;
|
|
479
|
+
if (this.tree.virtualScroll()) {
|
|
480
|
+
this.tree.updateSerializedValue();
|
|
481
|
+
}
|
|
482
|
+
this.tree.onNodeCollapse.emit({ originalEvent: event, node: this.node() });
|
|
483
|
+
this.focusVirtualNode();
|
|
484
|
+
}
|
|
485
|
+
onNodeClick(event) {
|
|
486
|
+
this.tree.onNodeClick(event, this.node());
|
|
487
|
+
}
|
|
488
|
+
onNodeKeydown(event) {
|
|
489
|
+
if (event.key === 'Enter') {
|
|
490
|
+
this.tree.onNodeClick(event, this.node());
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
onNodeTouchEnd() {
|
|
494
|
+
this.tree.onNodeTouchEnd();
|
|
495
|
+
}
|
|
496
|
+
onNodeRightClick(event) {
|
|
497
|
+
this.tree.onNodeRightClick(event, this.node());
|
|
498
|
+
}
|
|
499
|
+
onNodeDblClick(event) {
|
|
500
|
+
this.tree.onNodeDblClick(event, this.node());
|
|
501
|
+
}
|
|
502
|
+
insertNodeOnDrop() {
|
|
503
|
+
const { dragNode, dragNodeIndex, dragNodeSubNodes } = this.tree;
|
|
504
|
+
const n = this.node();
|
|
505
|
+
if (!n || dragNodeIndex == null || !dragNode || !dragNodeSubNodes) {
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
const position = this.dropPosition();
|
|
509
|
+
const subNodes = this.subNodes || [];
|
|
510
|
+
const index = this.index() || 0;
|
|
511
|
+
const dropIndex = dragNodeSubNodes === subNodes ? (dragNodeIndex > index ? index : index - 1) : index;
|
|
512
|
+
dragNodeSubNodes.splice(dragNodeIndex, 1);
|
|
513
|
+
if (position < 0) {
|
|
514
|
+
// insert before a Node
|
|
515
|
+
subNodes.splice(dropIndex, 0, dragNode);
|
|
516
|
+
}
|
|
517
|
+
else if (position > 0) {
|
|
518
|
+
// insert after a Node
|
|
519
|
+
subNodes.splice(dropIndex + 1, 0, dragNode);
|
|
520
|
+
}
|
|
521
|
+
else {
|
|
522
|
+
// insert as child of a Node
|
|
523
|
+
n.children = n.children || [];
|
|
524
|
+
n.children.push(dragNode);
|
|
525
|
+
}
|
|
526
|
+
this.tree.dragDropService.stopDrag({
|
|
527
|
+
node: dragNode,
|
|
528
|
+
subNodes,
|
|
529
|
+
index: dragNodeIndex
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
onNodeDrop(event) {
|
|
533
|
+
event.preventDefault();
|
|
534
|
+
event.stopPropagation();
|
|
535
|
+
if (this.isDroppable()) {
|
|
536
|
+
const { dragNode } = this.tree;
|
|
537
|
+
const position = this.dropPosition();
|
|
538
|
+
const isValidDrop = position !== 0 || (position === 0 && this.isNodeDroppable());
|
|
539
|
+
if (isValidDrop) {
|
|
540
|
+
if (this.tree.validateDrop()) {
|
|
541
|
+
this.tree.onNodeDrop.emit({
|
|
542
|
+
originalEvent: event,
|
|
543
|
+
dragNode: dragNode,
|
|
544
|
+
dropNode: this.node(),
|
|
545
|
+
index: this.index(),
|
|
546
|
+
accept: () => {
|
|
547
|
+
this.insertNodeOnDrop();
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
else {
|
|
552
|
+
this.insertNodeOnDrop();
|
|
553
|
+
this.tree.onNodeDrop.emit({
|
|
554
|
+
originalEvent: event,
|
|
555
|
+
dragNode: dragNode,
|
|
556
|
+
dropNode: this.node(),
|
|
557
|
+
index: this.index()
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
this.isPrevDropPointHovered.set(false);
|
|
563
|
+
this.isNextDropPointHovered.set(false);
|
|
564
|
+
this.isNodeDropHovered.set(false);
|
|
565
|
+
}
|
|
566
|
+
onNodeDragStart(event) {
|
|
567
|
+
if (this.isNodeDraggable()) {
|
|
568
|
+
event.dataTransfer.effectAllowed = 'all';
|
|
569
|
+
event.dataTransfer?.setData('text', 'data');
|
|
570
|
+
const target = event.currentTarget;
|
|
571
|
+
const dragEl = target.cloneNode(true);
|
|
572
|
+
const toggler = dragEl.querySelector('[data-pc-section="nodetogglebutton"]');
|
|
573
|
+
const checkbox = dragEl.querySelector('[data-pc-name="pcnodecheckbox"]');
|
|
574
|
+
target.setAttribute('data-h-dragging', 'true');
|
|
575
|
+
dragEl.style.width = getOuterWidth(target) + 'px';
|
|
576
|
+
dragEl.style.height = getOuterHeight(target) + 'px';
|
|
577
|
+
dragEl.setAttribute('data-pc-section', 'drag-image');
|
|
578
|
+
toggler.style.visibility = 'hidden';
|
|
579
|
+
checkbox?.remove();
|
|
580
|
+
document.body.appendChild(dragEl);
|
|
581
|
+
event.dataTransfer?.setDragImage(dragEl, 0, 0);
|
|
582
|
+
setTimeout(() => document.body.removeChild(dragEl), 0);
|
|
583
|
+
this.tree.dragDropService.startDrag({
|
|
584
|
+
tree: this,
|
|
585
|
+
node: this.node(),
|
|
586
|
+
subNodes: this.subNodes,
|
|
587
|
+
index: this.index(),
|
|
588
|
+
scope: this.tree.draggableScope()
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
else {
|
|
592
|
+
event.preventDefault();
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
onNodeDragOver(event) {
|
|
596
|
+
if (this.isDroppable()) {
|
|
597
|
+
event.dataTransfer.dropEffect = 'copy';
|
|
598
|
+
const nodeElement = event.currentTarget;
|
|
599
|
+
const rect = nodeElement.getBoundingClientRect();
|
|
600
|
+
const y = event.clientY - parseInt(rect.top);
|
|
601
|
+
this.isPrevDropPointHovered.set(false);
|
|
602
|
+
this.isNextDropPointHovered.set(false);
|
|
603
|
+
this.isNodeDropHovered.set(false);
|
|
604
|
+
if (y < rect.height * 0.25) {
|
|
605
|
+
this.isPrevDropPointHovered.set(true);
|
|
606
|
+
}
|
|
607
|
+
else if (y > rect.height * 0.75) {
|
|
608
|
+
this.isNextDropPointHovered.set(true);
|
|
609
|
+
}
|
|
610
|
+
else if (this.isNodeDroppable()) {
|
|
611
|
+
this.isNodeDropHovered.set(true);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
else {
|
|
615
|
+
event.dataTransfer.dropEffect = 'none';
|
|
616
|
+
}
|
|
617
|
+
if (this.tree.droppableNodes()) {
|
|
618
|
+
event.preventDefault();
|
|
619
|
+
event.stopPropagation();
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
onNodeDragLeave() {
|
|
623
|
+
this.isPrevDropPointHovered.set(false);
|
|
624
|
+
this.isNextDropPointHovered.set(false);
|
|
625
|
+
this.isNodeDropHovered.set(false);
|
|
626
|
+
}
|
|
627
|
+
onNodeDragEnd(event) {
|
|
628
|
+
event.currentTarget?.removeAttribute('data-h-dragging');
|
|
629
|
+
this.tree.dragDropService.stopDrag({
|
|
630
|
+
node: this.node(),
|
|
631
|
+
subNodes: this.subNodes,
|
|
632
|
+
index: this.index()
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
onKeyDown(event) {
|
|
636
|
+
const contextMenu = this.tree.contextMenu();
|
|
637
|
+
if (!this.isSameNode(event) || (contextMenu && contextMenu.containerViewChild?.nativeElement.style.display === 'block')) {
|
|
638
|
+
return;
|
|
639
|
+
}
|
|
640
|
+
switch (event.code) {
|
|
641
|
+
//down arrow
|
|
642
|
+
case 'ArrowDown':
|
|
643
|
+
this.onArrowDown(event);
|
|
644
|
+
break;
|
|
645
|
+
//up arrow
|
|
646
|
+
case 'ArrowUp':
|
|
647
|
+
this.onArrowUp(event);
|
|
648
|
+
break;
|
|
649
|
+
//right arrow
|
|
650
|
+
case 'ArrowRight':
|
|
651
|
+
this.onArrowRight(event);
|
|
652
|
+
break;
|
|
653
|
+
//left arrow
|
|
654
|
+
case 'ArrowLeft':
|
|
655
|
+
this.onArrowLeft(event);
|
|
656
|
+
break;
|
|
657
|
+
//enter
|
|
658
|
+
case 'Enter':
|
|
659
|
+
case 'Space':
|
|
660
|
+
case 'NumpadEnter':
|
|
661
|
+
this.onEnter(event);
|
|
662
|
+
break;
|
|
663
|
+
//tab
|
|
664
|
+
case 'Tab':
|
|
665
|
+
this.setAllNodesTabIndexes();
|
|
666
|
+
break;
|
|
667
|
+
default:
|
|
668
|
+
//no op
|
|
669
|
+
break;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
onArrowUp(event) {
|
|
673
|
+
const nodeElement = event.target.getAttribute('data-pc-section') === 'nodetogglebutton' ? event.target.closest('[role="treeitem"]') : event.target.parentElement;
|
|
674
|
+
if (nodeElement?.previousElementSibling) {
|
|
675
|
+
this.focusRowChange(nodeElement, nodeElement.previousElementSibling, this.findLastVisibleDescendant(nodeElement.previousElementSibling));
|
|
676
|
+
}
|
|
677
|
+
else {
|
|
678
|
+
let parentNodeElement = this.getParentNodeElement(nodeElement);
|
|
679
|
+
if (parentNodeElement) {
|
|
680
|
+
this.focusRowChange(nodeElement, parentNodeElement);
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
event.preventDefault();
|
|
684
|
+
}
|
|
685
|
+
onArrowDown(event) {
|
|
686
|
+
const nodeElement = event.target.getAttribute('data-pc-section') === 'nodetogglebutton' ? event.target.closest('[role="treeitem"]') : event.target;
|
|
687
|
+
const listElement = nodeElement?.children[1];
|
|
688
|
+
if (listElement && listElement.children.length > 0) {
|
|
689
|
+
this.focusRowChange(nodeElement, listElement.children[0]);
|
|
690
|
+
}
|
|
691
|
+
else {
|
|
692
|
+
if (nodeElement?.parentElement?.nextElementSibling) {
|
|
693
|
+
this.focusRowChange(nodeElement, nodeElement.parentElement.nextElementSibling);
|
|
694
|
+
}
|
|
695
|
+
else {
|
|
696
|
+
let nextSiblingAncestor = this.findNextSiblingOfAncestor(nodeElement?.parentElement);
|
|
697
|
+
if (nextSiblingAncestor) {
|
|
698
|
+
this.focusRowChange(nodeElement, nextSiblingAncestor);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
event.preventDefault();
|
|
703
|
+
}
|
|
704
|
+
onArrowRight(event) {
|
|
705
|
+
if (!this.node()?.expanded && !this.tree.isNodeLeaf(this.node())) {
|
|
706
|
+
this.expand(event);
|
|
707
|
+
event.currentTarget.tabIndex = -1;
|
|
708
|
+
setTimeout(() => {
|
|
709
|
+
this.onArrowDown(event);
|
|
710
|
+
}, 1);
|
|
711
|
+
}
|
|
712
|
+
event.preventDefault();
|
|
713
|
+
}
|
|
714
|
+
onArrowLeft(event) {
|
|
715
|
+
const nodeElement = event.target.getAttribute('data-pc-section') === 'nodetogglebutton' ? event.target.closest('[role="treeitem"]') : event.target;
|
|
716
|
+
if (this.level() === 0 && !this.node()?.expanded) {
|
|
717
|
+
return false;
|
|
718
|
+
}
|
|
719
|
+
if (this.node()?.expanded) {
|
|
720
|
+
this.collapse(event);
|
|
721
|
+
return;
|
|
722
|
+
}
|
|
723
|
+
let parentNodeElement = this.getParentNodeElement(nodeElement?.parentElement);
|
|
724
|
+
if (parentNodeElement) {
|
|
725
|
+
this.focusRowChange(event.currentTarget, parentNodeElement);
|
|
726
|
+
}
|
|
727
|
+
event.preventDefault();
|
|
728
|
+
}
|
|
729
|
+
onEnter(event) {
|
|
730
|
+
this.tree.onNodeClick(event, this.node());
|
|
731
|
+
this.setTabIndexForSelectionMode(event, this.tree.nodeTouched);
|
|
732
|
+
event.preventDefault();
|
|
733
|
+
}
|
|
734
|
+
setAllNodesTabIndexes() {
|
|
735
|
+
const nodes = find(this.tree.el.nativeElement, '[data-pc-section="node"]');
|
|
736
|
+
const hasSelectedNode = [...nodes].some((node) => node.getAttribute('aria-selected') === 'true' || node.getAttribute('aria-checked') === 'true');
|
|
737
|
+
[...nodes].forEach((node) => {
|
|
738
|
+
node.tabIndex = -1;
|
|
739
|
+
});
|
|
740
|
+
if (hasSelectedNode) {
|
|
741
|
+
const selectedNodes = [...nodes].filter((node) => node.getAttribute('aria-selected') === 'true' || node.getAttribute('aria-checked') === 'true');
|
|
742
|
+
selectedNodes[0].tabIndex = 0;
|
|
743
|
+
return;
|
|
744
|
+
}
|
|
745
|
+
if (nodes.length) {
|
|
746
|
+
[...nodes][0].tabIndex = 0;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
setTabIndexForSelectionMode(event, nodeTouched) {
|
|
750
|
+
if (this.tree.selectionMode() !== null) {
|
|
751
|
+
const elements = [...find(this.tree.el.nativeElement, '[role="treeitem"]')];
|
|
752
|
+
event.currentTarget.tabIndex = nodeTouched === false ? -1 : 0;
|
|
753
|
+
if (elements.every((element) => element.tabIndex === -1)) {
|
|
754
|
+
elements[0].tabIndex = 0;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
findNextSiblingOfAncestor(nodeElement) {
|
|
759
|
+
let parentNodeElement = this.getParentNodeElement(nodeElement);
|
|
760
|
+
if (parentNodeElement) {
|
|
761
|
+
if (parentNodeElement.nextElementSibling)
|
|
762
|
+
return parentNodeElement.nextElementSibling;
|
|
763
|
+
else
|
|
764
|
+
return this.findNextSiblingOfAncestor(parentNodeElement);
|
|
765
|
+
}
|
|
766
|
+
else {
|
|
767
|
+
return null;
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
findLastVisibleDescendant(nodeElement) {
|
|
771
|
+
const listElement = Array.from(nodeElement.children).find((el) => el.getAttribute('data-pc-section') === 'node');
|
|
772
|
+
const childrenListElement = listElement?.children[1];
|
|
773
|
+
if (childrenListElement && childrenListElement.children.length > 0) {
|
|
774
|
+
const lastChildElement = childrenListElement.children[childrenListElement.children.length - 1];
|
|
775
|
+
return this.findLastVisibleDescendant(lastChildElement);
|
|
776
|
+
}
|
|
777
|
+
else {
|
|
778
|
+
return nodeElement;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
getParentNodeElement(nodeElement) {
|
|
782
|
+
const parentNodeElement = nodeElement.parentElement?.parentElement?.parentElement;
|
|
783
|
+
return parentNodeElement?.tagName === 'P-TREENODE' ? parentNodeElement : null;
|
|
784
|
+
}
|
|
785
|
+
focusNode(element) {
|
|
786
|
+
element.children[0].focus();
|
|
787
|
+
}
|
|
788
|
+
focusRowChange(firstFocusableRow, currentFocusedRow, lastVisibleDescendant) {
|
|
789
|
+
firstFocusableRow.tabIndex = '-1';
|
|
790
|
+
currentFocusedRow.children[0].tabIndex = '0';
|
|
791
|
+
this.focusNode(lastVisibleDescendant || currentFocusedRow);
|
|
792
|
+
}
|
|
793
|
+
focusVirtualNode() {
|
|
794
|
+
this.timeout = setTimeout(() => {
|
|
795
|
+
let node = findSingle(this.tree?.contentViewChild()?.nativeElement, `[data-id="${this.node()?.key ?? this.node()?.data}"]`);
|
|
796
|
+
focus(node);
|
|
797
|
+
}, 1);
|
|
798
|
+
}
|
|
799
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: UITreeNode, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
800
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: UITreeNode, isStandalone: true, selector: "h-treeNode", inputs: { rowNode: { classPropertyName: "rowNode", publicName: "rowNode", isSignal: true, isRequired: false, transformFunction: null }, node: { classPropertyName: "node", publicName: "node", isSignal: true, isRequired: false, transformFunction: null }, parentNode: { classPropertyName: "parentNode", publicName: "parentNode", isSignal: true, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: true, isRequired: false, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: false, transformFunction: null }, firstChild: { classPropertyName: "firstChild", publicName: "firstChild", isSignal: true, isRequired: false, transformFunction: null }, lastChild: { classPropertyName: "lastChild", publicName: "lastChild", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, indentation: { classPropertyName: "indentation", publicName: "indentation", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, loadingMode: { classPropertyName: "loadingMode", publicName: "loadingMode", isSignal: true, isRequired: false, transformFunction: null } }, providers: [TreeStyle, { provide: TREENODE_INSTANCE, useExisting: UITreeNode }, { provide: PARENT_INSTANCE, useExisting: UITreeNode }], usesInheritance: true, ngImport: i0, template: "@if (node()) {\n <li\n [class]=\"cn(cx('node'), node().styleClass)\"\n [ngStyle]=\"{ height: itemSize() + 'px' }\"\n [style]=\"node().style\"\n [attr.aria-label]=\"node().label\"\n [attr.aria-checked]=\"checked\"\n [attr.aria-setsize]=\"node().children ? node().children.length : 0\"\n [attr.aria-selected]=\"selected\"\n [attr.aria-expanded]=\"node().expanded\"\n [attr.aria-posinset]=\"index() + 1\"\n [attr.aria-level]=\"level() + 1\"\n [attr.tabindex]=\"index() === 0 ? 0 : -1\"\n [attr.data-id]=\"node().key\"\n role=\"treeitem\"\n (keydown)=\"onKeyDown($event)\"\n [hBind]=\"getPTOptions('node')\"\n >\n @if (isPrevDropPointActive()) {\n <div [class]=\"cx('dropPoint')\" [attr.aria-hidden]=\"true\" [hBind]=\"getPTOptions('dropPoint')\"></div>\n }\n <div\n [class]=\"cx('nodeContent')\"\n [style.paddingLeft]=\"level() * indentation() + 'rem'\"\n (click)=\"onNodeClick($event)\"\n (contextmenu)=\"onNodeRightClick($event)\"\n (dblclick)=\"onNodeDblClick($event)\"\n (touchend)=\"onNodeTouchEnd()\"\n (drop)=\"onNodeDrop($event)\"\n (dragstart)=\"onNodeDragStart($event)\"\n (dragover)=\"onNodeDragOver($event)\"\n (dragleave)=\"onNodeDragLeave($event)\"\n (dragend)=\"onNodeDragEnd($event)\"\n [draggable]=\"tree.draggableNodes()\"\n [hBind]=\"getPTOptions('nodeContent')\"\n >\n <button type=\"button\" [class]=\"cx('nodeToggleButton')\" (click)=\"toggle($event)\" hRipple tabindex=\"-1\" [hBind]=\"getPTOptions('nodeToggleButton')\">\n @if (!tree.togglerIconTemplate() && !tree._togglerIconTemplate) {\n @if (!node().loading) {\n @if (!node().expanded) {\n <svg data-h-icon=\"chevron-right\" [class]=\"cx('nodeToggleIcon')\" [hBind]=\"getPTOptions('nodeToggleIcon')\" />\n }\n @if (node().expanded) {\n <svg data-h-icon=\"chevron-down\" [class]=\"cx('nodeToggleIcon')\" [hBind]=\"getPTOptions('nodeToggleIcon')\" />\n }\n }\n @if (loadingMode() === 'icon' && node().loading) {\n <svg data-h-icon=\"spinner\" [class]=\"cx('nodeToggleIcon')\" spin [hBind]=\"getPTOptions('nodeToggleIcon')\" />\n }\n }\n @if (tree.togglerIconTemplate() || tree._togglerIconTemplate) {\n <span [class]=\"cx('nodeToggleIcon')\" [hBind]=\"getPTOptions('nodeToggleIcon')\">\n <ng-template *ngTemplateOutlet=\"tree.togglerIconTemplate() || tree._togglerIconTemplate; context: { $implicit: node().expanded, loading: node().loading }\"></ng-template>\n </span>\n }\n </button>\n\n @if (tree.selectionMode() == 'checkbox') {\n <h-checkbox\n [ngModel]=\"isSelected()\"\n [styleClass]=\"cx('nodeCheckbox')\"\n [binary]=\"true\"\n [indeterminate]=\"node().partialSelected\"\n [disabled]=\"node().selectable === false\"\n [variant]=\"tree?.config.inputStyle() === 'filled' || tree?.config.inputVariant() === 'filled' ? 'filled' : 'outlined'\"\n [attr.data-h-partialchecked]=\"node().partialSelected\"\n [tabindex]=\"-1\"\n (click)=\"$event.preventDefault()\"\n [pt]=\"getPTOptions('pcNodeCheckbox')\"\n [unstyled]=\"unstyled()\"\n >\n @if (tree.checkboxIconTemplate() || tree._checkboxIconTemplate) {\n <ng-template #icon>\n <ng-template\n *ngTemplateOutlet=\"\n tree.checkboxIconTemplate() || tree._checkboxIconTemplate;\n context: {\n $implicit: isSelected(),\n partialSelected: node().partialSelected,\n class: cx('nodeCheckbox')\n }\n \"\n ></ng-template>\n </ng-template>\n }\n </h-checkbox>\n }\n\n @if (node().icon || node().expandedIcon || node().collapsedIcon) {\n <span [class]=\"getIcon()\" [hBind]=\"getPTOptions('nodeIcon')\"></span>\n }\n <span [class]=\"cx('nodeLabel')\" [hBind]=\"getPTOptions('nodeLabel')\">\n @if (!tree.getTemplateForNode(node())) {\n <span>{{ node().label }}</span>\n }\n @if (tree.getTemplateForNode(node())) {\n <span>\n <ng-container *ngTemplateOutlet=\"tree.getTemplateForNode(node()); context: { $implicit: node() }\"></ng-container>\n </span>\n }\n </span>\n </div>\n @if (isNextDropPointActive()) {\n <div [class]=\"cx('dropPoint', { next: true })\" [attr.aria-hidden]=\"true\" [hBind]=\"getPTOptions('dropPoint')\"></div>\n }\n @if (!tree.virtualScroll() && node().children && node().expanded) {\n <ul [class]=\"cx('nodeChildren')\" role=\"group\" [hBind]=\"ptm('nodeChildren')\">\n @for (childNode of node().children; track tree.trackBy().bind(this)(index, childNode); let firstChild = $first; let lastChild = $last; let index = $index) {\n <h-treeNode\n [node]=\"childNode\"\n [parentNode]=\"node()\"\n [firstChild]=\"firstChild\"\n [lastChild]=\"lastChild\"\n [index]=\"index\"\n [itemSize]=\"itemSize()\"\n [level]=\"level() + 1\"\n [loadingMode]=\"loadingMode()\"\n [pt]=\"pt\"\n [unstyled]=\"unstyled()\"\n ></h-treeNode>\n }\n </ul>\n }\n</li>\n}\n", dependencies: [{ kind: "component", type: UITreeNode, selector: "h-treeNode", inputs: ["rowNode", "node", "parentNode", "root", "index", "firstChild", "lastChild", "level", "indentation", "itemSize", "loadingMode"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: Ripple, selector: "[hRipple]" }, { kind: "component", type: Checkbox, selector: "h-checkbox, h-checkBox, h-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ChevronRightIcon, selector: "[data-h-icon=\"chevron-right\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-h-icon=\"chevron-down\"]" }, { kind: "component", type: SpinnerIcon, selector: "[data-h-icon=\"spinner\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i3.Bind, selector: "[hBind]", inputs: ["hBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
801
|
+
}
|
|
802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: UITreeNode, decorators: [{
|
|
803
|
+
type: Component,
|
|
804
|
+
args: [{ selector: 'h-treeNode', standalone: true, imports: [CommonModule, Ripple, Checkbox, FormsModule, ChevronRightIcon, ChevronDownIcon, SpinnerIcon, SharedModule, BindModule], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [TreeStyle, { provide: TREENODE_INSTANCE, useExisting: UITreeNode }, { provide: PARENT_INSTANCE, useExisting: UITreeNode }], template: "@if (node()) {\n <li\n [class]=\"cn(cx('node'), node().styleClass)\"\n [ngStyle]=\"{ height: itemSize() + 'px' }\"\n [style]=\"node().style\"\n [attr.aria-label]=\"node().label\"\n [attr.aria-checked]=\"checked\"\n [attr.aria-setsize]=\"node().children ? node().children.length : 0\"\n [attr.aria-selected]=\"selected\"\n [attr.aria-expanded]=\"node().expanded\"\n [attr.aria-posinset]=\"index() + 1\"\n [attr.aria-level]=\"level() + 1\"\n [attr.tabindex]=\"index() === 0 ? 0 : -1\"\n [attr.data-id]=\"node().key\"\n role=\"treeitem\"\n (keydown)=\"onKeyDown($event)\"\n [hBind]=\"getPTOptions('node')\"\n >\n @if (isPrevDropPointActive()) {\n <div [class]=\"cx('dropPoint')\" [attr.aria-hidden]=\"true\" [hBind]=\"getPTOptions('dropPoint')\"></div>\n }\n <div\n [class]=\"cx('nodeContent')\"\n [style.paddingLeft]=\"level() * indentation() + 'rem'\"\n (click)=\"onNodeClick($event)\"\n (contextmenu)=\"onNodeRightClick($event)\"\n (dblclick)=\"onNodeDblClick($event)\"\n (touchend)=\"onNodeTouchEnd()\"\n (drop)=\"onNodeDrop($event)\"\n (dragstart)=\"onNodeDragStart($event)\"\n (dragover)=\"onNodeDragOver($event)\"\n (dragleave)=\"onNodeDragLeave($event)\"\n (dragend)=\"onNodeDragEnd($event)\"\n [draggable]=\"tree.draggableNodes()\"\n [hBind]=\"getPTOptions('nodeContent')\"\n >\n <button type=\"button\" [class]=\"cx('nodeToggleButton')\" (click)=\"toggle($event)\" hRipple tabindex=\"-1\" [hBind]=\"getPTOptions('nodeToggleButton')\">\n @if (!tree.togglerIconTemplate() && !tree._togglerIconTemplate) {\n @if (!node().loading) {\n @if (!node().expanded) {\n <svg data-h-icon=\"chevron-right\" [class]=\"cx('nodeToggleIcon')\" [hBind]=\"getPTOptions('nodeToggleIcon')\" />\n }\n @if (node().expanded) {\n <svg data-h-icon=\"chevron-down\" [class]=\"cx('nodeToggleIcon')\" [hBind]=\"getPTOptions('nodeToggleIcon')\" />\n }\n }\n @if (loadingMode() === 'icon' && node().loading) {\n <svg data-h-icon=\"spinner\" [class]=\"cx('nodeToggleIcon')\" spin [hBind]=\"getPTOptions('nodeToggleIcon')\" />\n }\n }\n @if (tree.togglerIconTemplate() || tree._togglerIconTemplate) {\n <span [class]=\"cx('nodeToggleIcon')\" [hBind]=\"getPTOptions('nodeToggleIcon')\">\n <ng-template *ngTemplateOutlet=\"tree.togglerIconTemplate() || tree._togglerIconTemplate; context: { $implicit: node().expanded, loading: node().loading }\"></ng-template>\n </span>\n }\n </button>\n\n @if (tree.selectionMode() == 'checkbox') {\n <h-checkbox\n [ngModel]=\"isSelected()\"\n [styleClass]=\"cx('nodeCheckbox')\"\n [binary]=\"true\"\n [indeterminate]=\"node().partialSelected\"\n [disabled]=\"node().selectable === false\"\n [variant]=\"tree?.config.inputStyle() === 'filled' || tree?.config.inputVariant() === 'filled' ? 'filled' : 'outlined'\"\n [attr.data-h-partialchecked]=\"node().partialSelected\"\n [tabindex]=\"-1\"\n (click)=\"$event.preventDefault()\"\n [pt]=\"getPTOptions('pcNodeCheckbox')\"\n [unstyled]=\"unstyled()\"\n >\n @if (tree.checkboxIconTemplate() || tree._checkboxIconTemplate) {\n <ng-template #icon>\n <ng-template\n *ngTemplateOutlet=\"\n tree.checkboxIconTemplate() || tree._checkboxIconTemplate;\n context: {\n $implicit: isSelected(),\n partialSelected: node().partialSelected,\n class: cx('nodeCheckbox')\n }\n \"\n ></ng-template>\n </ng-template>\n }\n </h-checkbox>\n }\n\n @if (node().icon || node().expandedIcon || node().collapsedIcon) {\n <span [class]=\"getIcon()\" [hBind]=\"getPTOptions('nodeIcon')\"></span>\n }\n <span [class]=\"cx('nodeLabel')\" [hBind]=\"getPTOptions('nodeLabel')\">\n @if (!tree.getTemplateForNode(node())) {\n <span>{{ node().label }}</span>\n }\n @if (tree.getTemplateForNode(node())) {\n <span>\n <ng-container *ngTemplateOutlet=\"tree.getTemplateForNode(node()); context: { $implicit: node() }\"></ng-container>\n </span>\n }\n </span>\n </div>\n @if (isNextDropPointActive()) {\n <div [class]=\"cx('dropPoint', { next: true })\" [attr.aria-hidden]=\"true\" [hBind]=\"getPTOptions('dropPoint')\"></div>\n }\n @if (!tree.virtualScroll() && node().children && node().expanded) {\n <ul [class]=\"cx('nodeChildren')\" role=\"group\" [hBind]=\"ptm('nodeChildren')\">\n @for (childNode of node().children; track tree.trackBy().bind(this)(index, childNode); let firstChild = $first; let lastChild = $last; let index = $index) {\n <h-treeNode\n [node]=\"childNode\"\n [parentNode]=\"node()\"\n [firstChild]=\"firstChild\"\n [lastChild]=\"lastChild\"\n [index]=\"index\"\n [itemSize]=\"itemSize()\"\n [level]=\"level() + 1\"\n [loadingMode]=\"loadingMode()\"\n [pt]=\"pt\"\n [unstyled]=\"unstyled()\"\n ></h-treeNode>\n }\n </ul>\n }\n</li>\n}\n" }]
|
|
805
|
+
}], propDecorators: { rowNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowNode", required: false }] }], node: [{ type: i0.Input, args: [{ isSignal: true, alias: "node", required: false }] }], parentNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "parentNode", required: false }] }], root: [{ type: i0.Input, args: [{ isSignal: true, alias: "root", required: false }] }], index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: false }] }], firstChild: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstChild", required: false }] }], lastChild: [{ type: i0.Input, args: [{ isSignal: true, alias: "lastChild", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], indentation: [{ type: i0.Input, args: [{ isSignal: true, alias: "indentation", required: false }] }], itemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSize", required: false }] }], loadingMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingMode", required: false }] }] } });
|
|
806
|
+
/**
|
|
807
|
+
* Tree is used to display hierarchical data.
|
|
808
|
+
* @group Components
|
|
809
|
+
*/
|
|
810
|
+
class Tree extends BaseComponent {
|
|
811
|
+
dragDropService;
|
|
812
|
+
componentName = 'Tree';
|
|
813
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
814
|
+
$pcTree = inject(TREE_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
815
|
+
onAfterViewChecked() {
|
|
816
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* An array of treenodes.
|
|
820
|
+
* @group Props
|
|
821
|
+
*/
|
|
822
|
+
value = model(undefined, /* @ts-ignore */
|
|
823
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
824
|
+
/**
|
|
825
|
+
* Defines the selection mode.
|
|
826
|
+
* @group Props
|
|
827
|
+
*/
|
|
828
|
+
selectionMode = model(undefined, /* @ts-ignore */
|
|
829
|
+
...(ngDevMode ? [{ debugName: "selectionMode" }] : /* istanbul ignore next */ []));
|
|
830
|
+
/**
|
|
831
|
+
* Loading mode display.
|
|
832
|
+
* @group Props
|
|
833
|
+
*/
|
|
834
|
+
loadingMode = input('mask', /* @ts-ignore */
|
|
835
|
+
...(ngDevMode ? [{ debugName: "loadingMode" }] : /* istanbul ignore next */ []));
|
|
836
|
+
/**
|
|
837
|
+
* A single treenode instance or an array to refer to the selections.
|
|
838
|
+
* @group Props
|
|
839
|
+
*/
|
|
840
|
+
selection = model(null, /* @ts-ignore */
|
|
841
|
+
...(ngDevMode ? [{ debugName: "selection" }] : /* istanbul ignore next */ []));
|
|
842
|
+
/**
|
|
843
|
+
* Style class of the component.
|
|
844
|
+
* @deprecated since v20.0.0, use `class` instead.
|
|
845
|
+
* @group Props
|
|
846
|
+
*/
|
|
847
|
+
styleClass = input(/* @ts-ignore */
|
|
848
|
+
...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
849
|
+
/**
|
|
850
|
+
* Context menu instance.
|
|
851
|
+
* @group Props
|
|
852
|
+
*/
|
|
853
|
+
contextMenu = input(/* @ts-ignore */
|
|
854
|
+
...(ngDevMode ? [undefined, { debugName: "contextMenu" }] : /* istanbul ignore next */ []));
|
|
855
|
+
/**
|
|
856
|
+
* Defines the behavior of context menu selection, in "separate" mode context menu updates contextMenuSelection property whereas in joint mode selection property is used instead so that when row selection is enabled, both row selection and context menu selection use the same property.
|
|
857
|
+
* @group Props
|
|
858
|
+
*/
|
|
859
|
+
contextMenuSelectionMode = input('joint', /* @ts-ignore */
|
|
860
|
+
...(ngDevMode ? [{ debugName: "contextMenuSelectionMode" }] : /* istanbul ignore next */ []));
|
|
861
|
+
/**
|
|
862
|
+
* Selected node with a context menu.
|
|
863
|
+
* @group Props
|
|
864
|
+
*/
|
|
865
|
+
contextMenuSelection = model(null, /* @ts-ignore */
|
|
866
|
+
...(ngDevMode ? [{ debugName: "contextMenuSelection" }] : /* istanbul ignore next */ []));
|
|
867
|
+
/**
|
|
868
|
+
* Scope of the draggable nodes to match a droppableScope.
|
|
869
|
+
* @group Props
|
|
870
|
+
*/
|
|
871
|
+
draggableScope = input(/* @ts-ignore */
|
|
872
|
+
...(ngDevMode ? [undefined, { debugName: "draggableScope" }] : /* istanbul ignore next */ []));
|
|
873
|
+
/**
|
|
874
|
+
* Scope of the droppable nodes to match a droppableScope.
|
|
875
|
+
* @group Props
|
|
876
|
+
*/
|
|
877
|
+
droppableScope = input(/* @ts-ignore */
|
|
878
|
+
...(ngDevMode ? [undefined, { debugName: "droppableScope" }] : /* istanbul ignore next */ []));
|
|
879
|
+
/**
|
|
880
|
+
* Whether the nodes are draggable.
|
|
881
|
+
* @group Props
|
|
882
|
+
*/
|
|
883
|
+
draggableNodes = input(undefined, { ...(ngDevMode ? { debugName: "draggableNodes" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
884
|
+
/**
|
|
885
|
+
* Whether the nodes are droppable.
|
|
886
|
+
* @group Props
|
|
887
|
+
*/
|
|
888
|
+
droppableNodes = input(undefined, { ...(ngDevMode ? { debugName: "droppableNodes" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
889
|
+
/**
|
|
890
|
+
* Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically.
|
|
891
|
+
* @group Props
|
|
892
|
+
*/
|
|
893
|
+
metaKeySelection = input(false, { ...(ngDevMode ? { debugName: "metaKeySelection" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
894
|
+
/**
|
|
895
|
+
* Whether checkbox selections propagate to ancestor nodes.
|
|
896
|
+
* @group Props
|
|
897
|
+
*/
|
|
898
|
+
propagateSelectionUp = input(true, { ...(ngDevMode ? { debugName: "propagateSelectionUp" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
899
|
+
/**
|
|
900
|
+
* Whether checkbox selections propagate to descendant nodes.
|
|
901
|
+
* @group Props
|
|
902
|
+
*/
|
|
903
|
+
propagateSelectionDown = input(true, { ...(ngDevMode ? { debugName: "propagateSelectionDown" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
904
|
+
/**
|
|
905
|
+
* Displays a loader to indicate data load is in progress.
|
|
906
|
+
* @group Props
|
|
907
|
+
*/
|
|
908
|
+
loading = input(undefined, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
909
|
+
/**
|
|
910
|
+
* The icon to show while indicating data load is in progress.
|
|
911
|
+
* @group Props
|
|
912
|
+
*/
|
|
913
|
+
loadingIcon = input(undefined, /* @ts-ignore */
|
|
914
|
+
...(ngDevMode ? [{ debugName: "loadingIcon" }] : /* istanbul ignore next */ []));
|
|
915
|
+
/**
|
|
916
|
+
* Text to display when there is no data.
|
|
917
|
+
* @group Props
|
|
918
|
+
*/
|
|
919
|
+
emptyMessage = input('', /* @ts-ignore */
|
|
920
|
+
...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
|
|
921
|
+
/**
|
|
922
|
+
* Used to define a string that labels the tree.
|
|
923
|
+
* @group Props
|
|
924
|
+
*/
|
|
925
|
+
ariaLabel = input(/* @ts-ignore */
|
|
926
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
927
|
+
/**
|
|
928
|
+
* Defines a string that labels the toggler icon for accessibility.
|
|
929
|
+
* @group Props
|
|
930
|
+
*/
|
|
931
|
+
togglerAriaLabel = input(/* @ts-ignore */
|
|
932
|
+
...(ngDevMode ? [undefined, { debugName: "togglerAriaLabel" }] : /* istanbul ignore next */ []));
|
|
933
|
+
/**
|
|
934
|
+
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
|
|
935
|
+
* @group Props
|
|
936
|
+
*/
|
|
937
|
+
ariaLabelledBy = input(/* @ts-ignore */
|
|
938
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
939
|
+
/**
|
|
940
|
+
* When enabled, drop can be accepted or rejected based on condition defined at onNodeDrop.
|
|
941
|
+
* @group Props
|
|
942
|
+
*/
|
|
943
|
+
validateDrop = input(undefined, { ...(ngDevMode ? { debugName: "validateDrop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
944
|
+
/**
|
|
945
|
+
* When specified, displays an input field to filter the items.
|
|
946
|
+
* @group Props
|
|
947
|
+
*/
|
|
948
|
+
filter = input(undefined, { ...(ngDevMode ? { debugName: "filter" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
949
|
+
/**
|
|
950
|
+
* Determines whether the filter input should be automatically focused when the component is rendered.
|
|
951
|
+
* @group Props
|
|
952
|
+
*/
|
|
953
|
+
filterInputAutoFocus = input(false, { ...(ngDevMode ? { debugName: "filterInputAutoFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
954
|
+
/**
|
|
955
|
+
* When filtering is enabled, filterBy decides which field or fields (comma separated) to search against.
|
|
956
|
+
* @group Props
|
|
957
|
+
*/
|
|
958
|
+
filterBy = input('label', /* @ts-ignore */
|
|
959
|
+
...(ngDevMode ? [{ debugName: "filterBy" }] : /* istanbul ignore next */ []));
|
|
960
|
+
/**
|
|
961
|
+
* Mode for filtering valid values are "lenient" and "strict". Default is lenient.
|
|
962
|
+
* @group Props
|
|
963
|
+
*/
|
|
964
|
+
filterMode = input('lenient', /* @ts-ignore */
|
|
965
|
+
...(ngDevMode ? [{ debugName: "filterMode" }] : /* istanbul ignore next */ []));
|
|
966
|
+
/**
|
|
967
|
+
* Mode for filtering valid values are "lenient" and "strict". Default is lenient.
|
|
968
|
+
* @group Props
|
|
969
|
+
*/
|
|
970
|
+
filterOptions = model(undefined, /* @ts-ignore */
|
|
971
|
+
...(ngDevMode ? [{ debugName: "filterOptions" }] : /* istanbul ignore next */ []));
|
|
972
|
+
/**
|
|
973
|
+
* Placeholder text to show when filter input is empty.
|
|
974
|
+
* @group Props
|
|
975
|
+
*/
|
|
976
|
+
filterPlaceholder = input(/* @ts-ignore */
|
|
977
|
+
...(ngDevMode ? [undefined, { debugName: "filterPlaceholder" }] : /* istanbul ignore next */ []));
|
|
978
|
+
/**
|
|
979
|
+
* Values after the tree nodes are filtered.
|
|
980
|
+
* @group Props
|
|
981
|
+
*/
|
|
982
|
+
filteredNodes = model(undefined, /* @ts-ignore */
|
|
983
|
+
...(ngDevMode ? [{ debugName: "filteredNodes" }] : /* istanbul ignore next */ []));
|
|
984
|
+
/**
|
|
985
|
+
* Locale to use in filtering. The default locale is the host environment's current locale.
|
|
986
|
+
* @group Props
|
|
987
|
+
*/
|
|
988
|
+
filterLocale = input(/* @ts-ignore */
|
|
989
|
+
...(ngDevMode ? [undefined, { debugName: "filterLocale" }] : /* istanbul ignore next */ []));
|
|
990
|
+
/**
|
|
991
|
+
* Height of the scrollable viewport.
|
|
992
|
+
* @group Props
|
|
993
|
+
*/
|
|
994
|
+
scrollHeight = input(/* @ts-ignore */
|
|
995
|
+
...(ngDevMode ? [undefined, { debugName: "scrollHeight" }] : /* istanbul ignore next */ []));
|
|
996
|
+
/**
|
|
997
|
+
* Defines if data is loaded and interacted with in lazy manner.
|
|
998
|
+
* @group Props
|
|
999
|
+
*/
|
|
1000
|
+
lazy = input(false, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1001
|
+
/**
|
|
1002
|
+
* Whether the data should be loaded on demand during scroll.
|
|
1003
|
+
* @group Props
|
|
1004
|
+
*/
|
|
1005
|
+
virtualScroll = input(undefined, { ...(ngDevMode ? { debugName: "virtualScroll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1006
|
+
/**
|
|
1007
|
+
* Height of an item in the list for VirtualScrolling.
|
|
1008
|
+
* @group Props
|
|
1009
|
+
*/
|
|
1010
|
+
virtualScrollItemSize = input(undefined, { ...(ngDevMode ? { debugName: "virtualScrollItemSize" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
1011
|
+
/**
|
|
1012
|
+
* Whether to use the scroller feature. The properties of scroller component can be used like an object in it.
|
|
1013
|
+
* @group Props
|
|
1014
|
+
*/
|
|
1015
|
+
virtualScrollOptions = input(/* @ts-ignore */
|
|
1016
|
+
...(ngDevMode ? [undefined, { debugName: "virtualScrollOptions" }] : /* istanbul ignore next */ []));
|
|
1017
|
+
/**
|
|
1018
|
+
* Indentation factor for spacing of the nested node when virtual scrolling is enabled.
|
|
1019
|
+
* @group Props
|
|
1020
|
+
*/
|
|
1021
|
+
indentation = input(1.5, { ...(ngDevMode ? { debugName: "indentation" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
1022
|
+
/**
|
|
1023
|
+
* Custom templates of the component.
|
|
1024
|
+
* @group Props
|
|
1025
|
+
*/
|
|
1026
|
+
_templateMap = model(undefined, /* @ts-ignore */
|
|
1027
|
+
...(ngDevMode ? [{ debugName: "_templateMap" }] : /* istanbul ignore next */ []));
|
|
1028
|
+
/**
|
|
1029
|
+
* Function to optimize the node list rendering, default algorithm checks for object identity.
|
|
1030
|
+
* @group Props
|
|
1031
|
+
*/
|
|
1032
|
+
trackBy = input((index, item) => item, /* @ts-ignore */
|
|
1033
|
+
...(ngDevMode ? [{ debugName: "trackBy" }] : /* istanbul ignore next */ []));
|
|
1034
|
+
/**
|
|
1035
|
+
* Highlights the node on select.
|
|
1036
|
+
* @group Props
|
|
1037
|
+
*/
|
|
1038
|
+
highlightOnSelect = input(false, { ...(ngDevMode ? { debugName: "highlightOnSelect" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1039
|
+
/**
|
|
1040
|
+
* Callback to invoke when a node is selected.
|
|
1041
|
+
* @param {TreeNodeSelectEvent} event - Node select event.
|
|
1042
|
+
* @group Emits
|
|
1043
|
+
*/
|
|
1044
|
+
onNodeSelect = output();
|
|
1045
|
+
/**
|
|
1046
|
+
* Callback to invoke when a node is unselected.
|
|
1047
|
+
* @param {TreeNodeUnSelectEvent} event - Node unselect event.
|
|
1048
|
+
* @group Emits
|
|
1049
|
+
*/
|
|
1050
|
+
onNodeUnselect = output();
|
|
1051
|
+
/**
|
|
1052
|
+
* Callback to invoke when a node is expanded.
|
|
1053
|
+
* @param {TreeNodeExpandEvent} event - Node expand event.
|
|
1054
|
+
* @group Emits
|
|
1055
|
+
*/
|
|
1056
|
+
onNodeExpand = output();
|
|
1057
|
+
/**
|
|
1058
|
+
* Callback to invoke when a node is collapsed.
|
|
1059
|
+
* @param {TreeNodeCollapseEvent} event - Node collapse event.
|
|
1060
|
+
* @group Emits
|
|
1061
|
+
*/
|
|
1062
|
+
onNodeCollapse = output();
|
|
1063
|
+
/**
|
|
1064
|
+
* Callback to invoke when a node is selected with right click.
|
|
1065
|
+
* @param {onNodeContextMenuSelect} event - Node context menu select event.
|
|
1066
|
+
* @group Emits
|
|
1067
|
+
*/
|
|
1068
|
+
onNodeContextMenuSelect = output();
|
|
1069
|
+
/**
|
|
1070
|
+
* Callback to invoke when a node is double clicked.
|
|
1071
|
+
* @param {TreeNodeDoubleClickEvent} event - Node double click event.
|
|
1072
|
+
* @group Emits
|
|
1073
|
+
*/
|
|
1074
|
+
onNodeDoubleClick = output();
|
|
1075
|
+
/**
|
|
1076
|
+
* Callback to invoke when a node is dropped.
|
|
1077
|
+
* @param {TreeNodeDropEvent} event - Node drop event.
|
|
1078
|
+
* @group Emits
|
|
1079
|
+
*/
|
|
1080
|
+
onNodeDrop = output();
|
|
1081
|
+
/**
|
|
1082
|
+
* Callback to invoke in lazy mode to load new data.
|
|
1083
|
+
* @param {TreeLazyLoadEvent} event - Custom lazy load event.
|
|
1084
|
+
* @group Emits
|
|
1085
|
+
*/
|
|
1086
|
+
onLazyLoad = output();
|
|
1087
|
+
/**
|
|
1088
|
+
* Callback to invoke in virtual scroll mode when scroll position changes.
|
|
1089
|
+
* @param {TreeScrollEvent} event - Custom scroll event.
|
|
1090
|
+
* @group Emits
|
|
1091
|
+
*/
|
|
1092
|
+
onScroll = output();
|
|
1093
|
+
/**
|
|
1094
|
+
* Callback to invoke in virtual scroll mode when scroll position and item's range in view changes.
|
|
1095
|
+
* @param {TreeScrollIndexChangeEvent} event - Scroll index change event.
|
|
1096
|
+
* @group Emits
|
|
1097
|
+
*/
|
|
1098
|
+
onScrollIndexChange = output();
|
|
1099
|
+
/**
|
|
1100
|
+
* Callback to invoke when data is filtered.
|
|
1101
|
+
* @param {TreeFilterEvent} event - Custom filter event.
|
|
1102
|
+
* @group Emits
|
|
1103
|
+
*/
|
|
1104
|
+
onFilter = output();
|
|
1105
|
+
/**
|
|
1106
|
+
* Custom filter template.
|
|
1107
|
+
* @param {TreeFilterTemplateContext} context - filter context.
|
|
1108
|
+
* @see {@link TreeFilterTemplateContext}
|
|
1109
|
+
* @group Templates
|
|
1110
|
+
*/
|
|
1111
|
+
filterTemplate = contentChild('filter', { ...(ngDevMode ? { debugName: "filterTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1112
|
+
/**
|
|
1113
|
+
* Custom node template.
|
|
1114
|
+
* @group Templates
|
|
1115
|
+
*/
|
|
1116
|
+
nodeTemplate = contentChild('node', { ...(ngDevMode ? { debugName: "nodeTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1117
|
+
/**
|
|
1118
|
+
* Custom header template.
|
|
1119
|
+
* @group Templates
|
|
1120
|
+
*/
|
|
1121
|
+
headerTemplate = contentChild('header', { ...(ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1122
|
+
/**
|
|
1123
|
+
* Custom footer template.
|
|
1124
|
+
* @group Templates
|
|
1125
|
+
*/
|
|
1126
|
+
footerTemplate = contentChild('footer', { ...(ngDevMode ? { debugName: "footerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1127
|
+
/**
|
|
1128
|
+
* Custom loader template.
|
|
1129
|
+
* @param {TreeLoaderTemplateContext} context - loader context.
|
|
1130
|
+
* @see {@link TreeLoaderTemplateContext}
|
|
1131
|
+
* @group Templates
|
|
1132
|
+
*/
|
|
1133
|
+
loaderTemplate = contentChild('loader', { ...(ngDevMode ? { debugName: "loaderTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1134
|
+
/**
|
|
1135
|
+
* Custom empty message template.
|
|
1136
|
+
* @group Templates
|
|
1137
|
+
*/
|
|
1138
|
+
emptyTemplate = contentChild('empty', { ...(ngDevMode ? { debugName: "emptyTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1139
|
+
/**
|
|
1140
|
+
* Custom toggler icon template.
|
|
1141
|
+
* @param {TreeTogglerIconTemplateContext} context - toggler icon context.
|
|
1142
|
+
* @see {@link TreeTogglerIconTemplateContext}
|
|
1143
|
+
* @group Templates
|
|
1144
|
+
*/
|
|
1145
|
+
togglerIconTemplate = contentChild('togglericon', { ...(ngDevMode ? { debugName: "togglerIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1146
|
+
/**
|
|
1147
|
+
* Custom checkbox icon template.
|
|
1148
|
+
* @param {TreeCheckboxIconTemplateContext} context - checkbox icon context.
|
|
1149
|
+
* @see {@link TreeCheckboxIconTemplateContext}
|
|
1150
|
+
* @group Templates
|
|
1151
|
+
*/
|
|
1152
|
+
checkboxIconTemplate = contentChild('checkboxicon', { ...(ngDevMode ? { debugName: "checkboxIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1153
|
+
/**
|
|
1154
|
+
* Custom loading icon template.
|
|
1155
|
+
* @group Templates
|
|
1156
|
+
*/
|
|
1157
|
+
loadingIconTemplate = contentChild('loadingicon', { ...(ngDevMode ? { debugName: "loadingIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1158
|
+
/**
|
|
1159
|
+
* Custom filter icon template.
|
|
1160
|
+
* @group Templates
|
|
1161
|
+
*/
|
|
1162
|
+
filterIconTemplate = contentChild('filtericon', { ...(ngDevMode ? { debugName: "filterIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1163
|
+
filterViewChild = viewChild('filter', /* @ts-ignore */
|
|
1164
|
+
...(ngDevMode ? [{ debugName: "filterViewChild" }] : /* istanbul ignore next */ []));
|
|
1165
|
+
scroller = viewChild('scroller', /* @ts-ignore */
|
|
1166
|
+
...(ngDevMode ? [{ debugName: "scroller" }] : /* istanbul ignore next */ []));
|
|
1167
|
+
wrapperViewChild = viewChild('wrapper', /* @ts-ignore */
|
|
1168
|
+
...(ngDevMode ? [{ debugName: "wrapperViewChild" }] : /* istanbul ignore next */ []));
|
|
1169
|
+
contentViewChild = viewChild('content', /* @ts-ignore */
|
|
1170
|
+
...(ngDevMode ? [{ debugName: "contentViewChild" }] : /* istanbul ignore next */ []));
|
|
1171
|
+
templates = contentChildren(HelixTemplate, /* @ts-ignore */
|
|
1172
|
+
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
1173
|
+
_headerTemplate;
|
|
1174
|
+
_emptyTemplate;
|
|
1175
|
+
_footerTemplate;
|
|
1176
|
+
_loaderTemplate;
|
|
1177
|
+
_togglerIconTemplate;
|
|
1178
|
+
_checkboxIconTemplate;
|
|
1179
|
+
_loadingIconTemplate;
|
|
1180
|
+
_filterIconTemplate;
|
|
1181
|
+
_filterTemplate;
|
|
1182
|
+
onAfterContentInit() {
|
|
1183
|
+
const map = {};
|
|
1184
|
+
this.templates().forEach((item) => {
|
|
1185
|
+
switch (item.getType()) {
|
|
1186
|
+
case 'header':
|
|
1187
|
+
this._headerTemplate = item.template;
|
|
1188
|
+
break;
|
|
1189
|
+
case 'empty':
|
|
1190
|
+
this._emptyTemplate = item.template;
|
|
1191
|
+
break;
|
|
1192
|
+
case 'footer':
|
|
1193
|
+
this._footerTemplate = item.template;
|
|
1194
|
+
break;
|
|
1195
|
+
case 'loader':
|
|
1196
|
+
this._loaderTemplate = item.template;
|
|
1197
|
+
break;
|
|
1198
|
+
case 'togglericon':
|
|
1199
|
+
this._togglerIconTemplate = item.template;
|
|
1200
|
+
break;
|
|
1201
|
+
case 'checkboxicon':
|
|
1202
|
+
this._checkboxIconTemplate = item.template;
|
|
1203
|
+
break;
|
|
1204
|
+
case 'loadingicon':
|
|
1205
|
+
this._loadingIconTemplate = item.template;
|
|
1206
|
+
break;
|
|
1207
|
+
case 'filtericon':
|
|
1208
|
+
this._filterIconTemplate = item.template;
|
|
1209
|
+
break;
|
|
1210
|
+
case 'filter':
|
|
1211
|
+
this._filterTemplate = item.template;
|
|
1212
|
+
break;
|
|
1213
|
+
default:
|
|
1214
|
+
map[item.name()] = item.template;
|
|
1215
|
+
break;
|
|
1216
|
+
}
|
|
1217
|
+
});
|
|
1218
|
+
if (Object.keys(map).length) {
|
|
1219
|
+
this._templateMap.set(map);
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
serializedValue;
|
|
1223
|
+
nodeTouched;
|
|
1224
|
+
dragNodeTree;
|
|
1225
|
+
dragNode;
|
|
1226
|
+
dragNodeSubNodes;
|
|
1227
|
+
dragNodeIndex;
|
|
1228
|
+
dragNodeScope;
|
|
1229
|
+
dragHover;
|
|
1230
|
+
dragStartSubscription;
|
|
1231
|
+
dragStopSubscription;
|
|
1232
|
+
_componentStyle = inject(TreeStyle);
|
|
1233
|
+
handleDropEvent(event) {
|
|
1234
|
+
this.onDrop(event);
|
|
1235
|
+
}
|
|
1236
|
+
handleDragOverEvent(event) {
|
|
1237
|
+
this.onDragOver(event);
|
|
1238
|
+
}
|
|
1239
|
+
handleDragEnterEvent() {
|
|
1240
|
+
this.onDragEnter();
|
|
1241
|
+
}
|
|
1242
|
+
handleDragLeaveEvent(event) {
|
|
1243
|
+
this.onDragLeave(event);
|
|
1244
|
+
}
|
|
1245
|
+
constructor(dragDropService) {
|
|
1246
|
+
super();
|
|
1247
|
+
this.dragDropService = dragDropService;
|
|
1248
|
+
}
|
|
1249
|
+
onInit() {
|
|
1250
|
+
if (this.filterBy()) {
|
|
1251
|
+
this.filterOptions.set({
|
|
1252
|
+
filter: (value) => this._filter(value),
|
|
1253
|
+
reset: () => this.resetFilter()
|
|
1254
|
+
});
|
|
1255
|
+
}
|
|
1256
|
+
if (this.droppableNodes()) {
|
|
1257
|
+
this.dragStartSubscription = this.dragDropService.dragStart$.subscribe((event) => {
|
|
1258
|
+
this.dragNodeTree = event.tree;
|
|
1259
|
+
this.dragNode = event.node;
|
|
1260
|
+
this.dragNodeSubNodes = event.subNodes;
|
|
1261
|
+
this.dragNodeIndex = event.index;
|
|
1262
|
+
this.dragNodeScope = event.scope;
|
|
1263
|
+
});
|
|
1264
|
+
this.dragStopSubscription = this.dragDropService.dragStop$.subscribe((event) => {
|
|
1265
|
+
this.dragNodeTree = null;
|
|
1266
|
+
this.dragNode = null;
|
|
1267
|
+
this.dragNodeSubNodes = null;
|
|
1268
|
+
this.dragNodeIndex = null;
|
|
1269
|
+
this.dragNodeScope = null;
|
|
1270
|
+
this.dragHover = false;
|
|
1271
|
+
});
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
onChanges(simpleChange) {
|
|
1275
|
+
if (simpleChange.value) {
|
|
1276
|
+
this.updateSerializedValue();
|
|
1277
|
+
if (this.hasFilterActive()) {
|
|
1278
|
+
this._filter(this.filterViewChild()?.nativeElement?.value);
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
get emptyMessageLabel() {
|
|
1283
|
+
return this.emptyMessage() || this.config.getTranslation(TranslationKeys.EMPTY_MESSAGE);
|
|
1284
|
+
}
|
|
1285
|
+
updateSerializedValue() {
|
|
1286
|
+
this.serializedValue = [];
|
|
1287
|
+
this.serializeNodes(null, this.getRootNode(), 0, true);
|
|
1288
|
+
}
|
|
1289
|
+
serializeNodes(parent, nodes, level, visible) {
|
|
1290
|
+
if (nodes && nodes.length) {
|
|
1291
|
+
for (let node of nodes) {
|
|
1292
|
+
node.parent = parent;
|
|
1293
|
+
const rowNode = {
|
|
1294
|
+
node: node,
|
|
1295
|
+
parent: parent,
|
|
1296
|
+
level: level,
|
|
1297
|
+
visible: visible && (parent ? parent.expanded : true)
|
|
1298
|
+
};
|
|
1299
|
+
this.serializedValue.push(rowNode);
|
|
1300
|
+
if (rowNode.visible && node.expanded) {
|
|
1301
|
+
this.serializeNodes(node, node.children, level + 1, rowNode.visible);
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
onNodeClick(event, node) {
|
|
1307
|
+
let eventTarget = event.target;
|
|
1308
|
+
const section = eventTarget?.getAttribute?.('data-pc-section');
|
|
1309
|
+
if (section === 'nodetogglebutton' || section === 'nodetoggleicon') {
|
|
1310
|
+
return;
|
|
1311
|
+
}
|
|
1312
|
+
if (this.selectionMode()) {
|
|
1313
|
+
if (node.selectable === false) {
|
|
1314
|
+
node.style = '--h-focus-ring-color: none;';
|
|
1315
|
+
return;
|
|
1316
|
+
}
|
|
1317
|
+
else {
|
|
1318
|
+
if (!node.style?.includes('--h-focus-ring-color')) {
|
|
1319
|
+
node.style = node.style ? `${node.style}--h-focus-ring-color: var(--primary-color)` : '--h-focus-ring-color: var(--primary-color)';
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
if (this.hasFilteredNodes()) {
|
|
1323
|
+
node = this.getNodeWithKey(node.key, this.filteredNodes());
|
|
1324
|
+
if (!node) {
|
|
1325
|
+
return;
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
let index = this.findIndexInSelection(node);
|
|
1329
|
+
let selected = index >= 0;
|
|
1330
|
+
const currentSelection = this.selection();
|
|
1331
|
+
if (this.isCheckboxSelectionMode()) {
|
|
1332
|
+
if (selected) {
|
|
1333
|
+
if (this.propagateSelectionDown())
|
|
1334
|
+
this.propagateDown(node, false);
|
|
1335
|
+
else
|
|
1336
|
+
this.selection.set(currentSelection.filter((_val, i) => i != index));
|
|
1337
|
+
if (this.propagateSelectionUp() && node.parent) {
|
|
1338
|
+
this.propagateUp(node.parent, false);
|
|
1339
|
+
}
|
|
1340
|
+
this.onNodeUnselect.emit({ originalEvent: event, node: node });
|
|
1341
|
+
}
|
|
1342
|
+
else {
|
|
1343
|
+
if (this.propagateSelectionDown())
|
|
1344
|
+
this.propagateDown(node, true);
|
|
1345
|
+
else
|
|
1346
|
+
this.selection.set([...(currentSelection || []), node]);
|
|
1347
|
+
if (this.propagateSelectionUp() && node.parent) {
|
|
1348
|
+
this.propagateUp(node.parent, true);
|
|
1349
|
+
}
|
|
1350
|
+
this.onNodeSelect.emit({ originalEvent: event, node: node });
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
else {
|
|
1354
|
+
let metaSelection = this.nodeTouched ? false : this.metaKeySelection();
|
|
1355
|
+
if (metaSelection) {
|
|
1356
|
+
let metaKey = event.metaKey || event.ctrlKey;
|
|
1357
|
+
if (selected && metaKey) {
|
|
1358
|
+
if (this.isSingleSelectionMode()) {
|
|
1359
|
+
this.selection.set(null);
|
|
1360
|
+
}
|
|
1361
|
+
else {
|
|
1362
|
+
this.selection.set(currentSelection.filter((_val, i) => i != index));
|
|
1363
|
+
}
|
|
1364
|
+
this.onNodeUnselect.emit({ originalEvent: event, node: node });
|
|
1365
|
+
}
|
|
1366
|
+
else {
|
|
1367
|
+
if (this.isSingleSelectionMode()) {
|
|
1368
|
+
this.selection.set(node);
|
|
1369
|
+
}
|
|
1370
|
+
else if (this.isMultipleSelectionMode()) {
|
|
1371
|
+
const base = !metaKey ? [] : currentSelection || [];
|
|
1372
|
+
this.selection.set([...base, node]);
|
|
1373
|
+
}
|
|
1374
|
+
this.onNodeSelect.emit({ originalEvent: event, node: node });
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
else {
|
|
1378
|
+
if (this.isSingleSelectionMode()) {
|
|
1379
|
+
if (selected) {
|
|
1380
|
+
this.selection.set(null);
|
|
1381
|
+
this.onNodeUnselect.emit({ originalEvent: event, node: node });
|
|
1382
|
+
}
|
|
1383
|
+
else {
|
|
1384
|
+
this.selection.set(node);
|
|
1385
|
+
setTimeout(() => {
|
|
1386
|
+
this.onNodeSelect.emit({ originalEvent: event, node: node });
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
else {
|
|
1391
|
+
if (selected) {
|
|
1392
|
+
this.selection.set(currentSelection.filter((_val, i) => i != index));
|
|
1393
|
+
this.onNodeUnselect.emit({ originalEvent: event, node: node });
|
|
1394
|
+
}
|
|
1395
|
+
else {
|
|
1396
|
+
this.selection.set([...(currentSelection || []), node]);
|
|
1397
|
+
setTimeout(() => {
|
|
1398
|
+
this.onNodeSelect.emit({ originalEvent: event, node: node });
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
this.nodeTouched = false;
|
|
1406
|
+
}
|
|
1407
|
+
onNodeTouchEnd() {
|
|
1408
|
+
this.nodeTouched = true;
|
|
1409
|
+
}
|
|
1410
|
+
onNodeRightClick(event, node) {
|
|
1411
|
+
if (this.contextMenu()) {
|
|
1412
|
+
let eventTarget = event.target;
|
|
1413
|
+
const section = eventTarget.getAttribute('data-pc-section');
|
|
1414
|
+
if (section === 'nodetogglebutton' || section === 'nodetoggleicon') {
|
|
1415
|
+
return;
|
|
1416
|
+
}
|
|
1417
|
+
let index = this.findIndexInSelection(node);
|
|
1418
|
+
let isNodeSelected = index >= 0;
|
|
1419
|
+
const onContextMenuCallback = () => {
|
|
1420
|
+
this.contextMenu().show(event);
|
|
1421
|
+
this.contextMenu().hideCallback = () => {
|
|
1422
|
+
this.contextMenuSelection.set(null);
|
|
1423
|
+
};
|
|
1424
|
+
this.onNodeContextMenuSelect.emit({ originalEvent: event, node: node });
|
|
1425
|
+
};
|
|
1426
|
+
const contextMenuSelectionMode = this.contextMenuSelectionMode();
|
|
1427
|
+
if (contextMenuSelectionMode === 'separate') {
|
|
1428
|
+
// In 'separate' mode: Update contextMenuSelection with clicked node, don't modify selection
|
|
1429
|
+
this.contextMenuSelection.set(node);
|
|
1430
|
+
onContextMenuCallback();
|
|
1431
|
+
}
|
|
1432
|
+
else if (contextMenuSelectionMode === 'joint') {
|
|
1433
|
+
// In 'joint' mode: Update only selection, don't touch contextMenuSelection
|
|
1434
|
+
if (!isNodeSelected) {
|
|
1435
|
+
if (this.isSingleSelectionMode()) {
|
|
1436
|
+
this.selection.set(node);
|
|
1437
|
+
}
|
|
1438
|
+
else {
|
|
1439
|
+
this.selection.set([node]);
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
// If already selected, keep current selection as is
|
|
1443
|
+
onContextMenuCallback();
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
onNodeDblClick(event, node) {
|
|
1448
|
+
this.onNodeDoubleClick.emit({ originalEvent: event, node: node });
|
|
1449
|
+
}
|
|
1450
|
+
findIndexInSelection(node) {
|
|
1451
|
+
let index = -1;
|
|
1452
|
+
const currentSelection = this.selection();
|
|
1453
|
+
if (this.selectionMode() && currentSelection) {
|
|
1454
|
+
if (this.isSingleSelectionMode()) {
|
|
1455
|
+
const sel = currentSelection;
|
|
1456
|
+
let areNodesEqual = (sel.key && sel.key === node.key) || sel == node;
|
|
1457
|
+
index = areNodesEqual ? 0 : -1;
|
|
1458
|
+
}
|
|
1459
|
+
else {
|
|
1460
|
+
const selArray = currentSelection;
|
|
1461
|
+
for (let i = 0; i < selArray.length; i++) {
|
|
1462
|
+
let selectedNode = selArray[i];
|
|
1463
|
+
let areNodesEqual = (selectedNode.key && selectedNode.key === node.key) || selectedNode == node;
|
|
1464
|
+
if (areNodesEqual) {
|
|
1465
|
+
index = i;
|
|
1466
|
+
break;
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
return index;
|
|
1472
|
+
}
|
|
1473
|
+
syncNodeOption(node, parentNodes, option, value) {
|
|
1474
|
+
// to synchronize the node option between the filtered nodes and the original nodes(this.value)
|
|
1475
|
+
const _node = this.hasFilteredNodes() ? this.getNodeWithKey(node.key, parentNodes) : null;
|
|
1476
|
+
if (_node) {
|
|
1477
|
+
_node[option] = value || node[option];
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
hasFilteredNodes() {
|
|
1481
|
+
const filtered = this.filteredNodes();
|
|
1482
|
+
return this.filter() && filtered && filtered.length > 0;
|
|
1483
|
+
}
|
|
1484
|
+
hasFilterActive() {
|
|
1485
|
+
return this.filter() && this.filterViewChild()?.nativeElement?.value.length > 0;
|
|
1486
|
+
}
|
|
1487
|
+
getNodeWithKey(key, nodes) {
|
|
1488
|
+
for (let node of nodes) {
|
|
1489
|
+
if (node.key === key) {
|
|
1490
|
+
return node;
|
|
1491
|
+
}
|
|
1492
|
+
if (node.children) {
|
|
1493
|
+
let matchedNode = this.getNodeWithKey(key, node.children);
|
|
1494
|
+
if (matchedNode) {
|
|
1495
|
+
return matchedNode;
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
propagateUp(node, select) {
|
|
1501
|
+
if (node.children && node.children.length) {
|
|
1502
|
+
let selectedCount = 0;
|
|
1503
|
+
let childPartialSelected = false;
|
|
1504
|
+
for (let child of node.children) {
|
|
1505
|
+
if (this.isSelected(child)) {
|
|
1506
|
+
selectedCount++;
|
|
1507
|
+
}
|
|
1508
|
+
else if (child.partialSelected) {
|
|
1509
|
+
childPartialSelected = true;
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
const currentSelection = this.selection() || [];
|
|
1513
|
+
if (select && selectedCount == node.children.length) {
|
|
1514
|
+
this.selection.set([...currentSelection, node]);
|
|
1515
|
+
node.partialSelected = false;
|
|
1516
|
+
}
|
|
1517
|
+
else {
|
|
1518
|
+
if (!select) {
|
|
1519
|
+
let index = this.findIndexInSelection(node);
|
|
1520
|
+
if (index >= 0) {
|
|
1521
|
+
this.selection.set(currentSelection.filter((_val, i) => i != index));
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
if (childPartialSelected || (selectedCount > 0 && selectedCount != node.children.length))
|
|
1525
|
+
node.partialSelected = true;
|
|
1526
|
+
else
|
|
1527
|
+
node.partialSelected = false;
|
|
1528
|
+
}
|
|
1529
|
+
this.syncNodeOption(node, this.filteredNodes(), 'partialSelected');
|
|
1530
|
+
}
|
|
1531
|
+
let parent = node.parent;
|
|
1532
|
+
if (parent) {
|
|
1533
|
+
this.propagateUp(parent, select);
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
propagateDown(node, select) {
|
|
1537
|
+
let index = this.findIndexInSelection(node);
|
|
1538
|
+
const currentSelection = this.selection() || [];
|
|
1539
|
+
if (select && index == -1) {
|
|
1540
|
+
this.selection.set([...currentSelection, node]);
|
|
1541
|
+
}
|
|
1542
|
+
else if (!select && index > -1) {
|
|
1543
|
+
this.selection.set(currentSelection.filter((_val, i) => i != index));
|
|
1544
|
+
}
|
|
1545
|
+
node.partialSelected = false;
|
|
1546
|
+
this.syncNodeOption(node, this.filteredNodes(), 'partialSelected');
|
|
1547
|
+
if (node.children && node.children.length) {
|
|
1548
|
+
for (let child of node.children) {
|
|
1549
|
+
this.propagateDown(child, select);
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
isSelected(node) {
|
|
1554
|
+
return this.findIndexInSelection(node) != -1;
|
|
1555
|
+
}
|
|
1556
|
+
isSingleSelectionMode() {
|
|
1557
|
+
return this.selectionMode() && this.selectionMode() == 'single';
|
|
1558
|
+
}
|
|
1559
|
+
isMultipleSelectionMode() {
|
|
1560
|
+
return this.selectionMode() && this.selectionMode() == 'multiple';
|
|
1561
|
+
}
|
|
1562
|
+
isCheckboxSelectionMode() {
|
|
1563
|
+
return this.selectionMode() && this.selectionMode() == 'checkbox';
|
|
1564
|
+
}
|
|
1565
|
+
isNodeLeaf(node) {
|
|
1566
|
+
return node.leaf == false ? false : !(node.children && node.children.length);
|
|
1567
|
+
}
|
|
1568
|
+
getRootNode() {
|
|
1569
|
+
return this.filteredNodes() ? this.filteredNodes() : this.value();
|
|
1570
|
+
}
|
|
1571
|
+
getTemplateForNode(node) {
|
|
1572
|
+
if (this._templateMap())
|
|
1573
|
+
return node.type ? this._templateMap()[node.type] : this._templateMap()['default'];
|
|
1574
|
+
else
|
|
1575
|
+
return null;
|
|
1576
|
+
}
|
|
1577
|
+
onDragOver(event) {
|
|
1578
|
+
if (this.droppableNodes() && this.allowDrop(this.dragNode, null, this.dragNodeScope)) {
|
|
1579
|
+
event.dataTransfer.dropEffect = 'copy';
|
|
1580
|
+
event.preventDefault();
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
onDrop(event) {
|
|
1584
|
+
if (this.droppableNodes()) {
|
|
1585
|
+
event.preventDefault();
|
|
1586
|
+
let dragNode = this.dragNode;
|
|
1587
|
+
if (this.isSameTreeScope(this.dragNodeScope)) {
|
|
1588
|
+
return;
|
|
1589
|
+
}
|
|
1590
|
+
if (this.allowDrop(dragNode, null, this.dragNodeScope)) {
|
|
1591
|
+
let dragNodeIndex = this.dragNodeIndex;
|
|
1592
|
+
this.value.update(v => v || []);
|
|
1593
|
+
if (this.validateDrop()) {
|
|
1594
|
+
this.onNodeDrop.emit({
|
|
1595
|
+
originalEvent: event,
|
|
1596
|
+
dragNode: dragNode,
|
|
1597
|
+
dropNode: null,
|
|
1598
|
+
index: dragNodeIndex,
|
|
1599
|
+
accept: () => {
|
|
1600
|
+
this.processTreeDrop(dragNode, dragNodeIndex);
|
|
1601
|
+
}
|
|
1602
|
+
});
|
|
1603
|
+
}
|
|
1604
|
+
else {
|
|
1605
|
+
this.onNodeDrop.emit({
|
|
1606
|
+
originalEvent: event,
|
|
1607
|
+
dragNode: dragNode,
|
|
1608
|
+
dropNode: null,
|
|
1609
|
+
index: dragNodeIndex
|
|
1610
|
+
});
|
|
1611
|
+
this.processTreeDrop(dragNode, dragNodeIndex);
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
processTreeDrop(dragNode, dragNodeIndex) {
|
|
1617
|
+
this.dragNodeSubNodes.splice(dragNodeIndex, 1);
|
|
1618
|
+
this.value().push(dragNode);
|
|
1619
|
+
this.dragDropService.stopDrag({
|
|
1620
|
+
node: dragNode
|
|
1621
|
+
});
|
|
1622
|
+
}
|
|
1623
|
+
onDragEnter() {
|
|
1624
|
+
if (this.droppableNodes() && this.allowDrop(this.dragNode, null, this.dragNodeScope)) {
|
|
1625
|
+
this.dragHover = true;
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
onDragLeave(event) {
|
|
1629
|
+
if (this.droppableNodes()) {
|
|
1630
|
+
let rect = event.currentTarget.getBoundingClientRect();
|
|
1631
|
+
if (event.x > parseInt(rect.left) + rect.width || event.x < parseInt(rect.left) || event.y > parseInt(rect.top) + rect.height || event.y < parseInt(rect.top)) {
|
|
1632
|
+
this.dragHover = false;
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
allowDrop(dragNode, dropNode, dragNodeScope) {
|
|
1637
|
+
if (!dragNode) {
|
|
1638
|
+
//prevent random html elements to be dragged
|
|
1639
|
+
return false;
|
|
1640
|
+
}
|
|
1641
|
+
else if (this.isValidDragScope(dragNodeScope)) {
|
|
1642
|
+
let allow = true;
|
|
1643
|
+
if (dropNode) {
|
|
1644
|
+
if (dragNode === dropNode) {
|
|
1645
|
+
allow = false;
|
|
1646
|
+
}
|
|
1647
|
+
else {
|
|
1648
|
+
let parent = dropNode.parent;
|
|
1649
|
+
while (parent != null) {
|
|
1650
|
+
if (parent === dragNode) {
|
|
1651
|
+
allow = false;
|
|
1652
|
+
break;
|
|
1653
|
+
}
|
|
1654
|
+
parent = parent.parent;
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
return allow;
|
|
1659
|
+
}
|
|
1660
|
+
else {
|
|
1661
|
+
return false;
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
hasCommonScope(dragScope, dropScope) {
|
|
1665
|
+
if (typeof dropScope === 'string') {
|
|
1666
|
+
if (typeof dragScope === 'string')
|
|
1667
|
+
return dropScope === dragScope;
|
|
1668
|
+
else if (Array.isArray(dragScope))
|
|
1669
|
+
return dragScope.indexOf(dropScope) != -1;
|
|
1670
|
+
}
|
|
1671
|
+
else if (Array.isArray(dropScope)) {
|
|
1672
|
+
if (typeof dragScope === 'string') {
|
|
1673
|
+
return dropScope.indexOf(dragScope) != -1;
|
|
1674
|
+
}
|
|
1675
|
+
else if (Array.isArray(dragScope)) {
|
|
1676
|
+
for (let s of dropScope) {
|
|
1677
|
+
for (let ds of dragScope) {
|
|
1678
|
+
if (s === ds) {
|
|
1679
|
+
return true;
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
return false;
|
|
1686
|
+
}
|
|
1687
|
+
isSameTreeScope(dragScope) {
|
|
1688
|
+
return this.hasCommonScope(dragScope, this.draggableScope());
|
|
1689
|
+
}
|
|
1690
|
+
isValidDragScope(dragScope) {
|
|
1691
|
+
let dropScope = this.droppableScope();
|
|
1692
|
+
if (dropScope) {
|
|
1693
|
+
return this.hasCommonScope(dragScope, dropScope);
|
|
1694
|
+
}
|
|
1695
|
+
else {
|
|
1696
|
+
return true;
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
_filter(value) {
|
|
1700
|
+
let filterValue = value;
|
|
1701
|
+
if (filterValue === '') {
|
|
1702
|
+
this.filteredNodes.set(null);
|
|
1703
|
+
}
|
|
1704
|
+
else {
|
|
1705
|
+
const filtered = [];
|
|
1706
|
+
const searchFields = this.filterBy().split(',');
|
|
1707
|
+
const filterText = removeAccents(filterValue).toLocaleLowerCase(this.filterLocale());
|
|
1708
|
+
const isStrictMode = this.filterMode() === 'strict';
|
|
1709
|
+
for (let node of this.value()) {
|
|
1710
|
+
let copyNode = { ...node };
|
|
1711
|
+
let paramsWithoutNode = { searchFields, filterText, isStrictMode };
|
|
1712
|
+
if ((isStrictMode && (this.findFilteredNodes(copyNode, paramsWithoutNode) || this.isFilterMatched(copyNode, paramsWithoutNode))) ||
|
|
1713
|
+
(!isStrictMode && (this.isFilterMatched(copyNode, paramsWithoutNode) || this.findFilteredNodes(copyNode, paramsWithoutNode)))) {
|
|
1714
|
+
filtered.push(copyNode);
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
this.filteredNodes.set(filtered);
|
|
1718
|
+
}
|
|
1719
|
+
this.updateSerializedValue();
|
|
1720
|
+
this.onFilter.emit({
|
|
1721
|
+
filter: filterValue,
|
|
1722
|
+
filteredValue: this.filteredNodes()
|
|
1723
|
+
});
|
|
1724
|
+
}
|
|
1725
|
+
/**
|
|
1726
|
+
* Resets filter.
|
|
1727
|
+
* @group Method
|
|
1728
|
+
*/
|
|
1729
|
+
resetFilter() {
|
|
1730
|
+
this.filteredNodes.set(null);
|
|
1731
|
+
const filterViewChildEl = this.filterViewChild();
|
|
1732
|
+
if (filterViewChildEl?.nativeElement) {
|
|
1733
|
+
filterViewChildEl.nativeElement.value = '';
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
/**
|
|
1737
|
+
* Scrolls to virtual index.
|
|
1738
|
+
* @param {number} number - Index to be scrolled.
|
|
1739
|
+
* @group Method
|
|
1740
|
+
*/
|
|
1741
|
+
scrollToVirtualIndex(index) {
|
|
1742
|
+
this.virtualScroll() && this.scroller()?.scrollToIndex(index);
|
|
1743
|
+
}
|
|
1744
|
+
/**
|
|
1745
|
+
* Scrolls to virtual index.
|
|
1746
|
+
* @param {ScrollToOptions} options - Scroll options.
|
|
1747
|
+
* @group Method
|
|
1748
|
+
*/
|
|
1749
|
+
scrollTo(options) {
|
|
1750
|
+
if (this.virtualScroll()) {
|
|
1751
|
+
this.scroller()?.scrollTo(options);
|
|
1752
|
+
}
|
|
1753
|
+
else {
|
|
1754
|
+
const wrapperEl = this.wrapperViewChild();
|
|
1755
|
+
if (wrapperEl?.nativeElement) {
|
|
1756
|
+
if (wrapperEl.nativeElement.scrollTo) {
|
|
1757
|
+
wrapperEl.nativeElement.scrollTo(options);
|
|
1758
|
+
}
|
|
1759
|
+
else {
|
|
1760
|
+
wrapperEl.nativeElement.scrollLeft = options.left;
|
|
1761
|
+
wrapperEl.nativeElement.scrollTop = options.top;
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
findFilteredNodes(node, paramsWithoutNode) {
|
|
1767
|
+
if (node) {
|
|
1768
|
+
let matched = false;
|
|
1769
|
+
if (node.children) {
|
|
1770
|
+
let childNodes = [...node.children];
|
|
1771
|
+
node.children = [];
|
|
1772
|
+
for (let childNode of childNodes) {
|
|
1773
|
+
let copyChildNode = { ...childNode };
|
|
1774
|
+
if (this.isFilterMatched(copyChildNode, paramsWithoutNode)) {
|
|
1775
|
+
matched = true;
|
|
1776
|
+
node.children.push(copyChildNode);
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
if (matched) {
|
|
1781
|
+
node.expanded = true;
|
|
1782
|
+
return true;
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
isFilterMatched(node, params) {
|
|
1787
|
+
let { searchFields, filterText, isStrictMode } = params;
|
|
1788
|
+
let matched = false;
|
|
1789
|
+
for (let field of searchFields) {
|
|
1790
|
+
let fieldValue = removeAccents(String(resolveFieldData(node, field))).toLocaleLowerCase(this.filterLocale());
|
|
1791
|
+
if (fieldValue.indexOf(filterText) > -1) {
|
|
1792
|
+
matched = true;
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
if (!matched || (isStrictMode && !this.isNodeLeaf(node))) {
|
|
1796
|
+
matched = this.findFilteredNodes(node, { searchFields, filterText, isStrictMode }) || matched;
|
|
1797
|
+
}
|
|
1798
|
+
return matched;
|
|
1799
|
+
}
|
|
1800
|
+
getIndex(options, index) {
|
|
1801
|
+
const getItemOptions = options['getItemOptions'];
|
|
1802
|
+
return getItemOptions ? getItemOptions(index).index : index;
|
|
1803
|
+
}
|
|
1804
|
+
getBlockableElement() {
|
|
1805
|
+
return this.el.nativeElement.children[0];
|
|
1806
|
+
}
|
|
1807
|
+
onDestroy() {
|
|
1808
|
+
if (this.dragStartSubscription) {
|
|
1809
|
+
this.dragStartSubscription.unsubscribe();
|
|
1810
|
+
}
|
|
1811
|
+
if (this.dragStopSubscription) {
|
|
1812
|
+
this.dragStopSubscription.unsubscribe();
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
get containerDataP() {
|
|
1816
|
+
return this.cn({
|
|
1817
|
+
loading: this.loading(),
|
|
1818
|
+
scrollable: this.scrollHeight() === 'flex'
|
|
1819
|
+
});
|
|
1820
|
+
}
|
|
1821
|
+
get wrapperDataP() {
|
|
1822
|
+
return this.cn({
|
|
1823
|
+
scrollable: this.scrollHeight() === 'flex'
|
|
1824
|
+
});
|
|
1825
|
+
}
|
|
1826
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: Tree, deps: [{ token: i4.TreeDragDropService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1827
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: Tree, isStandalone: true, selector: "h-tree", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, loadingMode: { classPropertyName: "loadingMode", publicName: "loadingMode", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, contextMenu: { classPropertyName: "contextMenu", publicName: "contextMenu", isSignal: true, isRequired: false, transformFunction: null }, contextMenuSelectionMode: { classPropertyName: "contextMenuSelectionMode", publicName: "contextMenuSelectionMode", isSignal: true, isRequired: false, transformFunction: null }, contextMenuSelection: { classPropertyName: "contextMenuSelection", publicName: "contextMenuSelection", isSignal: true, isRequired: false, transformFunction: null }, draggableScope: { classPropertyName: "draggableScope", publicName: "draggableScope", isSignal: true, isRequired: false, transformFunction: null }, droppableScope: { classPropertyName: "droppableScope", publicName: "droppableScope", isSignal: true, isRequired: false, transformFunction: null }, draggableNodes: { classPropertyName: "draggableNodes", publicName: "draggableNodes", isSignal: true, isRequired: false, transformFunction: null }, droppableNodes: { classPropertyName: "droppableNodes", publicName: "droppableNodes", isSignal: true, isRequired: false, transformFunction: null }, metaKeySelection: { classPropertyName: "metaKeySelection", publicName: "metaKeySelection", isSignal: true, isRequired: false, transformFunction: null }, propagateSelectionUp: { classPropertyName: "propagateSelectionUp", publicName: "propagateSelectionUp", isSignal: true, isRequired: false, transformFunction: null }, propagateSelectionDown: { classPropertyName: "propagateSelectionDown", publicName: "propagateSelectionDown", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, togglerAriaLabel: { classPropertyName: "togglerAriaLabel", publicName: "togglerAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, validateDrop: { classPropertyName: "validateDrop", publicName: "validateDrop", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, filterInputAutoFocus: { classPropertyName: "filterInputAutoFocus", publicName: "filterInputAutoFocus", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, filterMode: { classPropertyName: "filterMode", publicName: "filterMode", isSignal: true, isRequired: false, transformFunction: null }, filterOptions: { classPropertyName: "filterOptions", publicName: "filterOptions", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filteredNodes: { classPropertyName: "filteredNodes", publicName: "filteredNodes", isSignal: true, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", 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 }, indentation: { classPropertyName: "indentation", publicName: "indentation", isSignal: true, isRequired: false, transformFunction: null }, _templateMap: { classPropertyName: "_templateMap", publicName: "_templateMap", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, highlightOnSelect: { classPropertyName: "highlightOnSelect", publicName: "highlightOnSelect", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", selectionMode: "selectionModeChange", selection: "selectionChange", contextMenuSelection: "contextMenuSelectionChange", filterOptions: "filterOptionsChange", filteredNodes: "filteredNodesChange", _templateMap: "_templateMapChange", onNodeSelect: "onNodeSelect", onNodeUnselect: "onNodeUnselect", onNodeExpand: "onNodeExpand", onNodeCollapse: "onNodeCollapse", onNodeContextMenuSelect: "onNodeContextMenuSelect", onNodeDoubleClick: "onNodeDoubleClick", onNodeDrop: "onNodeDrop", onLazyLoad: "onLazyLoad", onScroll: "onScroll", onScrollIndexChange: "onScrollIndexChange", onFilter: "onFilter" }, host: { listeners: { "drop": "handleDropEvent($event)", "dragover": "handleDragOverEvent($event)", "dragenter": "handleDragEnterEvent()", "dragleave": "handleDragLeaveEvent($event)" }, properties: { "class": "cn(cx('root'), styleClass())", "attr.data-h": "containerDataP" } }, providers: [TreeStyle, { provide: TREE_INSTANCE, useExisting: Tree }, { provide: PARENT_INSTANCE, useExisting: Tree }], queries: [{ propertyName: "filterTemplate", first: true, predicate: ["filter"], isSignal: true }, { propertyName: "nodeTemplate", first: true, predicate: ["node"], isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "loaderTemplate", first: true, predicate: ["loader"], isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], isSignal: true }, { propertyName: "togglerIconTemplate", first: true, predicate: ["togglericon"], isSignal: true }, { propertyName: "checkboxIconTemplate", first: true, predicate: ["checkboxicon"], isSignal: true }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"], isSignal: true }, { propertyName: "filterIconTemplate", first: true, predicate: ["filtericon"], isSignal: true }, { propertyName: "templates", predicate: HelixTemplate, isSignal: true }], viewQueries: [{ propertyName: "filterViewChild", first: true, predicate: ["filter"], descendants: true, isSignal: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true, isSignal: true }, { propertyName: "wrapperViewChild", first: true, predicate: ["wrapper"], descendants: true, isSignal: true }, { propertyName: "contentViewChild", first: true, predicate: ["content"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i3.Bind }], ngImport: i0, template: "@if (loading() && loadingMode() === 'mask') {\n <div [class]=\"cx('mask')\" [hBind]=\"ptm('mask')\" animate.enter=\"h-overlay-mask-enter-active\" animate.leave=\"h-overlay-mask-leave-active\">\n @if (loadingIcon()) {\n <i [class]=\"cn(cx('loadingIcon'), 'pi-spin' + loadingIcon())\" [hBind]=\"ptm('loadingIcon')\"></i>\n }\n @if (!loadingIcon()) {\n @if (!loadingIconTemplate() && !_loadingIconTemplate) {\n <svg data-h-icon=\"spinner\" spin [class]=\"cx('loadingIcon')\" [hBind]=\"ptm('loadingIcon')\" />\n }\n @if (loadingIconTemplate() || _loadingIconTemplate) {\n <span [class]=\"cx('loadingIcon')\" [hBind]=\"ptm('loadingIcon')\">\n <ng-template *ngTemplateOutlet=\"loadingIconTemplate() || _loadingIconTemplate\"></ng-template>\n </span>\n }\n }\n </div>\n}\n<ng-container *ngTemplateOutlet=\"headerTemplate() || _headerTemplate\"></ng-container>\n@if (filterTemplate() || _filterTemplate) {\n <ng-container *ngTemplateOutlet=\"filterTemplate() || _filterTemplate; context: { $implicit: filterOptions() }\"></ng-container>\n} @else {\n @if (filter()) {\n <h-iconfield [class]=\"cx('pcFilterContainer')\" [pt]=\"ptm('pcFilterContainer')\" [unstyled]=\"unstyled()\">\n <input\n #filter\n [hAutoFocus]=\"filterInputAutoFocus()\"\n hInputText\n type=\"search\"\n autocomplete=\"off\"\n [class]=\"cx('pcFilterInput')\"\n [attr.placeholder]=\"filterPlaceholder()\"\n (keydown.enter)=\"$event.preventDefault()\"\n (input)=\"_filter($safeNavigationMigration($event.target?.value))\"\n [pt]=\"ptm('pcFilterInput')\"\n [unstyled]=\"unstyled()\"\n />\n <h-inputicon [pt]=\"ptm('pcFilterIconContainer')\" [unstyled]=\"unstyled()\">\n @if (!filterIconTemplate() && !_filterIconTemplate) {\n <svg data-h-icon=\"search\" [class]=\"cx('filterIcon')\" [hBind]=\"ptm('filterIcon')\" />\n }\n @if (filterIconTemplate() || _filterIconTemplate) {\n <span [class]=\"cx('filterIcon')\" [hBind]=\"ptm('filterIcon')\">\n <ng-template *ngTemplateOutlet=\"filterIconTemplate() || _filterIconTemplate\"></ng-template>\n </span>\n }\n </h-inputicon>\n </h-iconfield>\n }\n}\n\n@if (getRootNode()?.length) {\n @if (virtualScroll()) {\n <h-scroller\n #scroller\n [items]=\"serializedValue\"\n [tabindex]=\"-1\"\n [styleClass]=\"cx('wrapper')\"\n [style]=\"{ height: scrollHeight() !== 'flex' ? scrollHeight() : undefined }\"\n [scrollHeight]=\"scrollHeight() !== 'flex' ? undefined : '100%'\"\n [itemSize]=\"virtualScrollItemSize()\"\n [lazy]=\"lazy()\"\n (onScroll)=\"onScroll.emit($event)\"\n (onScrollIndexChange)=\"onScrollIndexChange.emit($event)\"\n (onLazyLoad)=\"onLazyLoad.emit($event)\"\n [options]=\"virtualScrollOptions()\"\n [pt]=\"ptm('virtualScroller')\"\n hostName=\"tree\"\n [attr.data-h]=\"wrapperDataP\"\n >\n <ng-template #content let-items let-scrollerOptions=\"options\">\n @if (items) {\n <ul\n #content\n [class]=\"cx('rootChildren')\"\n [ngClass]=\"scrollerOptions.contentStyleClass\"\n [style]=\"scrollerOptions.contentStyle\"\n role=\"tree\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [hBind]=\"ptm('rootChildren')\"\n >\n @for (rowNode of items; track trackBy()(index, rowNode); let firstChild = $first; let lastChild = $last; let index = $index) {\n <h-treeNode\n #treeNode\n [level]=\"rowNode.level\"\n [rowNode]=\"rowNode\"\n [node]=\"rowNode.node\"\n [parentNode]=\"rowNode.parent\"\n [firstChild]=\"firstChild\"\n [lastChild]=\"lastChild\"\n [index]=\"getIndex(scrollerOptions, index)\"\n [itemSize]=\"scrollerOptions.itemSize\"\n [indentation]=\"indentation()\"\n [loadingMode]=\"loadingMode()\"\n [pt]=\"pt\"\n [unstyled]=\"unstyled()\"\n ></h-treeNode>\n }\n </ul>\n }\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 <div #wrapper [class]=\"cx('wrapper')\" [style.max-height]=\"scrollHeight()\" [hBind]=\"ptm('wrapper')\" [attr.data-h]=\"wrapperDataP\">\n @if (getRootNode()) {\n <ul #content [class]=\"cx('rootChildren')\" role=\"tree\" [attr.aria-label]=\"ariaLabel()\" [attr.aria-labelledby]=\"ariaLabelledBy()\" [hBind]=\"ptm('rootChildren')\">\n @for (node of getRootNode(); track trackBy().bind(this)(index, node); let firstChild = $first; let lastChild = $last; let index = $index) {\n <h-treeNode\n [node]=\"node\"\n [firstChild]=\"firstChild\"\n [lastChild]=\"lastChild\"\n [index]=\"index\"\n [level]=\"0\"\n [loadingMode]=\"loadingMode()\"\n [pt]=\"pt\"\n [unstyled]=\"unstyled()\"\n ></h-treeNode>\n }\n </ul>\n }\n </div>\n }\n}\n\n@if (!loading() && (getRootNode() == null || getRootNode().length === 0)) {\n <div [class]=\"cx('emptyMessage')\" [hBind]=\"ptm('emptyMessage')\">\n @if (!emptyTemplate() && !_emptyTemplate) {\n {{ emptyMessageLabel }}\n } @else {\n <ng-container *ngTemplateOutlet=\"emptyTemplate() || _emptyTemplate\"></ng-container>\n }\n </div>\n}\n<ng-container *ngTemplateOutlet=\"footerTemplate() || _footerTemplate\"></ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "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: "ngmodule", type: SharedModule }, { kind: "component", type: SearchIcon, selector: "[data-h-icon=\"search\"]" }, { kind: "component", type: SpinnerIcon, selector: "[data-h-icon=\"spinner\"]" }, { kind: "directive", type: InputText, selector: "[hInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: IconField, selector: "h-iconfield, h-iconField, h-icon-field", inputs: ["hostName", "iconPosition", "styleClass"] }, { kind: "component", type: InputIcon, selector: "h-inputicon, h-inputIcon", inputs: ["hostName", "styleClass"] }, { kind: "component", type: UITreeNode, selector: "h-treeNode", inputs: ["rowNode", "node", "parentNode", "root", "index", "firstChild", "lastChild", "level", "indentation", "itemSize", "loadingMode"] }, { kind: "ngmodule", type: AutoFocusModule }, { kind: "directive", type: i5.AutoFocus, selector: "[hAutoFocus]", inputs: ["hAutoFocus"] }, { kind: "directive", type: Bind, selector: "[hBind]", inputs: ["hBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1828
|
+
}
|
|
1829
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: Tree, decorators: [{
|
|
1830
|
+
type: Component,
|
|
1831
|
+
args: [{ selector: 'h-tree', standalone: true, imports: [CommonModule, Scroller, SharedModule, SearchIcon, SpinnerIcon, InputText, FormsModule, IconField, InputIcon, UITreeNode, AutoFocusModule, Bind], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [TreeStyle, { provide: TREE_INSTANCE, useExisting: Tree }, { provide: PARENT_INSTANCE, useExisting: Tree }], host: {
|
|
1832
|
+
'[class]': "cn(cx('root'), styleClass())",
|
|
1833
|
+
'[attr.data-h]': 'containerDataP',
|
|
1834
|
+
'(drop)': 'handleDropEvent($event)',
|
|
1835
|
+
'(dragover)': 'handleDragOverEvent($event)',
|
|
1836
|
+
'(dragenter)': 'handleDragEnterEvent()',
|
|
1837
|
+
'(dragleave)': 'handleDragLeaveEvent($event)'
|
|
1838
|
+
}, hostDirectives: [Bind], template: "@if (loading() && loadingMode() === 'mask') {\n <div [class]=\"cx('mask')\" [hBind]=\"ptm('mask')\" animate.enter=\"h-overlay-mask-enter-active\" animate.leave=\"h-overlay-mask-leave-active\">\n @if (loadingIcon()) {\n <i [class]=\"cn(cx('loadingIcon'), 'pi-spin' + loadingIcon())\" [hBind]=\"ptm('loadingIcon')\"></i>\n }\n @if (!loadingIcon()) {\n @if (!loadingIconTemplate() && !_loadingIconTemplate) {\n <svg data-h-icon=\"spinner\" spin [class]=\"cx('loadingIcon')\" [hBind]=\"ptm('loadingIcon')\" />\n }\n @if (loadingIconTemplate() || _loadingIconTemplate) {\n <span [class]=\"cx('loadingIcon')\" [hBind]=\"ptm('loadingIcon')\">\n <ng-template *ngTemplateOutlet=\"loadingIconTemplate() || _loadingIconTemplate\"></ng-template>\n </span>\n }\n }\n </div>\n}\n<ng-container *ngTemplateOutlet=\"headerTemplate() || _headerTemplate\"></ng-container>\n@if (filterTemplate() || _filterTemplate) {\n <ng-container *ngTemplateOutlet=\"filterTemplate() || _filterTemplate; context: { $implicit: filterOptions() }\"></ng-container>\n} @else {\n @if (filter()) {\n <h-iconfield [class]=\"cx('pcFilterContainer')\" [pt]=\"ptm('pcFilterContainer')\" [unstyled]=\"unstyled()\">\n <input\n #filter\n [hAutoFocus]=\"filterInputAutoFocus()\"\n hInputText\n type=\"search\"\n autocomplete=\"off\"\n [class]=\"cx('pcFilterInput')\"\n [attr.placeholder]=\"filterPlaceholder()\"\n (keydown.enter)=\"$event.preventDefault()\"\n (input)=\"_filter($safeNavigationMigration($event.target?.value))\"\n [pt]=\"ptm('pcFilterInput')\"\n [unstyled]=\"unstyled()\"\n />\n <h-inputicon [pt]=\"ptm('pcFilterIconContainer')\" [unstyled]=\"unstyled()\">\n @if (!filterIconTemplate() && !_filterIconTemplate) {\n <svg data-h-icon=\"search\" [class]=\"cx('filterIcon')\" [hBind]=\"ptm('filterIcon')\" />\n }\n @if (filterIconTemplate() || _filterIconTemplate) {\n <span [class]=\"cx('filterIcon')\" [hBind]=\"ptm('filterIcon')\">\n <ng-template *ngTemplateOutlet=\"filterIconTemplate() || _filterIconTemplate\"></ng-template>\n </span>\n }\n </h-inputicon>\n </h-iconfield>\n }\n}\n\n@if (getRootNode()?.length) {\n @if (virtualScroll()) {\n <h-scroller\n #scroller\n [items]=\"serializedValue\"\n [tabindex]=\"-1\"\n [styleClass]=\"cx('wrapper')\"\n [style]=\"{ height: scrollHeight() !== 'flex' ? scrollHeight() : undefined }\"\n [scrollHeight]=\"scrollHeight() !== 'flex' ? undefined : '100%'\"\n [itemSize]=\"virtualScrollItemSize()\"\n [lazy]=\"lazy()\"\n (onScroll)=\"onScroll.emit($event)\"\n (onScrollIndexChange)=\"onScrollIndexChange.emit($event)\"\n (onLazyLoad)=\"onLazyLoad.emit($event)\"\n [options]=\"virtualScrollOptions()\"\n [pt]=\"ptm('virtualScroller')\"\n hostName=\"tree\"\n [attr.data-h]=\"wrapperDataP\"\n >\n <ng-template #content let-items let-scrollerOptions=\"options\">\n @if (items) {\n <ul\n #content\n [class]=\"cx('rootChildren')\"\n [ngClass]=\"scrollerOptions.contentStyleClass\"\n [style]=\"scrollerOptions.contentStyle\"\n role=\"tree\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [hBind]=\"ptm('rootChildren')\"\n >\n @for (rowNode of items; track trackBy()(index, rowNode); let firstChild = $first; let lastChild = $last; let index = $index) {\n <h-treeNode\n #treeNode\n [level]=\"rowNode.level\"\n [rowNode]=\"rowNode\"\n [node]=\"rowNode.node\"\n [parentNode]=\"rowNode.parent\"\n [firstChild]=\"firstChild\"\n [lastChild]=\"lastChild\"\n [index]=\"getIndex(scrollerOptions, index)\"\n [itemSize]=\"scrollerOptions.itemSize\"\n [indentation]=\"indentation()\"\n [loadingMode]=\"loadingMode()\"\n [pt]=\"pt\"\n [unstyled]=\"unstyled()\"\n ></h-treeNode>\n }\n </ul>\n }\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 <div #wrapper [class]=\"cx('wrapper')\" [style.max-height]=\"scrollHeight()\" [hBind]=\"ptm('wrapper')\" [attr.data-h]=\"wrapperDataP\">\n @if (getRootNode()) {\n <ul #content [class]=\"cx('rootChildren')\" role=\"tree\" [attr.aria-label]=\"ariaLabel()\" [attr.aria-labelledby]=\"ariaLabelledBy()\" [hBind]=\"ptm('rootChildren')\">\n @for (node of getRootNode(); track trackBy().bind(this)(index, node); let firstChild = $first; let lastChild = $last; let index = $index) {\n <h-treeNode\n [node]=\"node\"\n [firstChild]=\"firstChild\"\n [lastChild]=\"lastChild\"\n [index]=\"index\"\n [level]=\"0\"\n [loadingMode]=\"loadingMode()\"\n [pt]=\"pt\"\n [unstyled]=\"unstyled()\"\n ></h-treeNode>\n }\n </ul>\n }\n </div>\n }\n}\n\n@if (!loading() && (getRootNode() == null || getRootNode().length === 0)) {\n <div [class]=\"cx('emptyMessage')\" [hBind]=\"ptm('emptyMessage')\">\n @if (!emptyTemplate() && !_emptyTemplate) {\n {{ emptyMessageLabel }}\n } @else {\n <ng-container *ngTemplateOutlet=\"emptyTemplate() || _emptyTemplate\"></ng-container>\n }\n </div>\n}\n<ng-container *ngTemplateOutlet=\"footerTemplate() || _footerTemplate\"></ng-container>\n" }]
|
|
1839
|
+
}], ctorParameters: () => [{ type: i4.TreeDragDropService, decorators: [{
|
|
1840
|
+
type: Optional
|
|
1841
|
+
}] }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }, { type: i0.Output, args: ["selectionModeChange"] }], loadingMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingMode", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }, { type: i0.Output, args: ["selectionChange"] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], contextMenu: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenu", required: false }] }], contextMenuSelectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenuSelectionMode", required: false }] }], contextMenuSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenuSelection", required: false }] }, { type: i0.Output, args: ["contextMenuSelectionChange"] }], draggableScope: [{ type: i0.Input, args: [{ isSignal: true, alias: "draggableScope", required: false }] }], droppableScope: [{ type: i0.Input, args: [{ isSignal: true, alias: "droppableScope", required: false }] }], draggableNodes: [{ type: i0.Input, args: [{ isSignal: true, alias: "draggableNodes", required: false }] }], droppableNodes: [{ type: i0.Input, args: [{ isSignal: true, alias: "droppableNodes", required: false }] }], metaKeySelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "metaKeySelection", required: false }] }], propagateSelectionUp: [{ type: i0.Input, args: [{ isSignal: true, alias: "propagateSelectionUp", required: false }] }], propagateSelectionDown: [{ type: i0.Input, args: [{ isSignal: true, alias: "propagateSelectionDown", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingIcon", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], togglerAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "togglerAriaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], validateDrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "validateDrop", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], filterInputAutoFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterInputAutoFocus", required: false }] }], filterBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterBy", required: false }] }], filterMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMode", required: false }] }], filterOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterOptions", required: false }] }, { type: i0.Output, args: ["filterOptionsChange"] }], filterPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceholder", required: false }] }], filteredNodes: [{ type: i0.Input, args: [{ isSignal: true, alias: "filteredNodes", required: false }] }, { type: i0.Output, args: ["filteredNodesChange"] }], filterLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLocale", 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 }] }], indentation: [{ type: i0.Input, args: [{ isSignal: true, alias: "indentation", required: false }] }], _templateMap: [{ type: i0.Input, args: [{ isSignal: true, alias: "_templateMap", required: false }] }, { type: i0.Output, args: ["_templateMapChange"] }], trackBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackBy", required: false }] }], highlightOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightOnSelect", required: false }] }], onNodeSelect: [{ type: i0.Output, args: ["onNodeSelect"] }], onNodeUnselect: [{ type: i0.Output, args: ["onNodeUnselect"] }], onNodeExpand: [{ type: i0.Output, args: ["onNodeExpand"] }], onNodeCollapse: [{ type: i0.Output, args: ["onNodeCollapse"] }], onNodeContextMenuSelect: [{ type: i0.Output, args: ["onNodeContextMenuSelect"] }], onNodeDoubleClick: [{ type: i0.Output, args: ["onNodeDoubleClick"] }], onNodeDrop: [{ type: i0.Output, args: ["onNodeDrop"] }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], onScroll: [{ type: i0.Output, args: ["onScroll"] }], onScrollIndexChange: [{ type: i0.Output, args: ["onScrollIndexChange"] }], onFilter: [{ type: i0.Output, args: ["onFilter"] }], filterTemplate: [{ type: i0.ContentChild, args: ['filter', { ...{ descendants: false }, isSignal: true }] }], nodeTemplate: [{ type: i0.ContentChild, args: ['node', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], loaderTemplate: [{ type: i0.ContentChild, args: ['loader', { ...{ descendants: false }, isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: ['empty', { ...{ descendants: false }, isSignal: true }] }], togglerIconTemplate: [{ type: i0.ContentChild, args: ['togglericon', { ...{ descendants: false }, isSignal: true }] }], checkboxIconTemplate: [{ type: i0.ContentChild, args: ['checkboxicon', { ...{ descendants: false }, isSignal: true }] }], loadingIconTemplate: [{ type: i0.ContentChild, args: ['loadingicon', { ...{ descendants: false }, isSignal: true }] }], filterIconTemplate: [{ type: i0.ContentChild, args: ['filtericon', { ...{ descendants: false }, isSignal: true }] }], filterViewChild: [{ type: i0.ViewChild, args: ['filter', { isSignal: true }] }], scroller: [{ type: i0.ViewChild, args: ['scroller', { isSignal: true }] }], wrapperViewChild: [{ type: i0.ViewChild, args: ['wrapper', { isSignal: true }] }], contentViewChild: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => HelixTemplate), { isSignal: true }] }] } });
|
|
1842
|
+
class TreeModule {
|
|
1843
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: TreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1844
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.6", ngImport: i0, type: TreeModule, imports: [Tree, SharedModule], exports: [Tree, SharedModule] });
|
|
1845
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: TreeModule, imports: [Tree, SharedModule, SharedModule] });
|
|
1846
|
+
}
|
|
1847
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: TreeModule, decorators: [{
|
|
1848
|
+
type: NgModule,
|
|
1849
|
+
args: [{
|
|
1850
|
+
imports: [Tree, SharedModule],
|
|
1851
|
+
exports: [Tree, SharedModule]
|
|
1852
|
+
}]
|
|
1853
|
+
}] });
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Generated bundle index. Do not edit.
|
|
1857
|
+
*/
|
|
1858
|
+
|
|
1859
|
+
export { Tree, TreeClasses, TreeModule, TreeStyle, UITreeNode };
|
|
1860
|
+
//# sourceMappingURL=gravionlabs-helix-core-tree.mjs.map
|