@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,1085 @@
|
|
|
1
|
+
export * from '@gravionlabs/helix-core/types/fileupload';
|
|
2
|
+
import * as i1 from '@angular/common';
|
|
3
|
+
import { CommonModule, isPlatformBrowser } from '@angular/common';
|
|
4
|
+
import { HttpClient, HttpEventType } from '@angular/common/http';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { Injectable, InjectionToken, inject, output, input, ChangeDetectionStrategy, Component, booleanAttribute, numberAttribute, contentChild, viewChild, model, NgZone, contentChildren, ViewEncapsulation, NgModule } from '@angular/core';
|
|
7
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
8
|
+
import { addClass, removeClass } from '@gravionlabs/helix-core/uix/utils';
|
|
9
|
+
import { TranslationKeys, HelixTemplate, SharedModule } from '@gravionlabs/helix-core/api';
|
|
10
|
+
import { Badge } from '@gravionlabs/helix-core/badge';
|
|
11
|
+
import { BaseComponent, PARENT_INSTANCE } from '@gravionlabs/helix-core/basecomponent';
|
|
12
|
+
import * as i2 from '@gravionlabs/helix-core/bind';
|
|
13
|
+
import { Bind } from '@gravionlabs/helix-core/bind';
|
|
14
|
+
import { Button } from '@gravionlabs/helix-core/button';
|
|
15
|
+
import { TimesIcon, PlusIcon, UploadIcon } from '@gravionlabs/helix-core/icons';
|
|
16
|
+
import { Message } from '@gravionlabs/helix-core/message';
|
|
17
|
+
import { ProgressBar } from '@gravionlabs/helix-core/progressbar';
|
|
18
|
+
import { BaseStyle } from '@gravionlabs/helix-core/base';
|
|
19
|
+
|
|
20
|
+
const style = /*css*/ `
|
|
21
|
+
.h-fileupload input[type='file'] {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.h-fileupload-advanced {
|
|
26
|
+
border: 1px solid dt('fileupload.border.color');
|
|
27
|
+
border-radius: dt('fileupload.border.radius');
|
|
28
|
+
background: dt('fileupload.background');
|
|
29
|
+
color: dt('fileupload.color');
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.h-fileupload-header {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
padding: dt('fileupload.header.padding');
|
|
36
|
+
background: dt('fileupload.header.background');
|
|
37
|
+
color: dt('fileupload.header.color');
|
|
38
|
+
border-style: solid;
|
|
39
|
+
border-width: dt('fileupload.header.border.width');
|
|
40
|
+
border-color: dt('fileupload.header.border.color');
|
|
41
|
+
border-radius: dt('fileupload.header.border.radius');
|
|
42
|
+
gap: dt('fileupload.header.gap');
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.h-fileupload-content {
|
|
46
|
+
border: 1px solid transparent;
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
gap: dt('fileupload.content.gap');
|
|
50
|
+
transition: border-color dt('fileupload.transition.duration');
|
|
51
|
+
padding: dt('fileupload.content.padding');
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.h-fileupload-content .h-progressbar {
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: dt('fileupload.progressbar.height');
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.h-fileupload-file-list {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
gap: dt('fileupload.filelist.gap');
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.h-fileupload-file {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-wrap: wrap;
|
|
68
|
+
align-items: center;
|
|
69
|
+
padding: dt('fileupload.file.padding');
|
|
70
|
+
border-block-end: 1px solid dt('fileupload.file.border.color');
|
|
71
|
+
gap: dt('fileupload.file.gap');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.h-fileupload-file:last-child {
|
|
75
|
+
border-block-end: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.h-fileupload-file-info {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
gap: dt('fileupload.file.info.gap');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.h-fileupload-file-thumbnail {
|
|
85
|
+
flex-shrink: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.h-fileupload-file-actions {
|
|
89
|
+
margin-inline-start: auto;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.h-fileupload-highlight {
|
|
93
|
+
border: 1px dashed dt('fileupload.content.highlight.border.color');
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.h-fileupload-basic .h-message {
|
|
97
|
+
margin-block-end: dt('fileupload.basic.gap');
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.h-fileupload-basic-content {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-wrap: wrap;
|
|
103
|
+
align-items: center;
|
|
104
|
+
gap: dt('fileupload.basic.gap');
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
107
|
+
|
|
108
|
+
const classes = {
|
|
109
|
+
root: ({ instance }) => `h-fileupload h-fileupload-${instance.mode()} h-component`,
|
|
110
|
+
header: 'h-fileupload-header',
|
|
111
|
+
pcChooseButton: 'h-fileupload-choose-button',
|
|
112
|
+
pcUploadButton: 'h-fileupload-upload-button',
|
|
113
|
+
pcCancelButton: 'h-fileupload-cancel-button',
|
|
114
|
+
content: 'h-fileupload-content',
|
|
115
|
+
fileList: 'h-fileupload-file-list',
|
|
116
|
+
file: 'h-fileupload-file',
|
|
117
|
+
fileThumbnail: 'h-fileupload-file-thumbnail',
|
|
118
|
+
fileInfo: 'h-fileupload-file-info',
|
|
119
|
+
fileName: 'h-fileupload-file-name',
|
|
120
|
+
fileSize: 'h-fileupload-file-size',
|
|
121
|
+
pcFileBadge: 'h-fileupload-file-badge',
|
|
122
|
+
fileActions: 'h-fileupload-file-actions',
|
|
123
|
+
pcFileRemoveButton: 'h-fileupload-file-remove-button',
|
|
124
|
+
basicContent: 'h-fileupload-basic-content'
|
|
125
|
+
};
|
|
126
|
+
class FileUploadStyle extends BaseStyle {
|
|
127
|
+
name = 'fileupload';
|
|
128
|
+
style = style;
|
|
129
|
+
classes = classes;
|
|
130
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUploadStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
131
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUploadStyle });
|
|
132
|
+
}
|
|
133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUploadStyle, decorators: [{
|
|
134
|
+
type: Injectable
|
|
135
|
+
}] });
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* FileUpload is an advanced uploader with dragdrop support, multi file uploads, auto uploading, progress tracking and validations.
|
|
139
|
+
*
|
|
140
|
+
* [Live Demo](https://www.primeng.org/fileupload/)
|
|
141
|
+
*
|
|
142
|
+
* @module fileuploadstyle
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
145
|
+
var FileUploadClasses;
|
|
146
|
+
(function (FileUploadClasses) {
|
|
147
|
+
/**
|
|
148
|
+
* Class name of the root element
|
|
149
|
+
*/
|
|
150
|
+
FileUploadClasses["root"] = "h-fileupload";
|
|
151
|
+
/**
|
|
152
|
+
* Class name of the header element
|
|
153
|
+
*/
|
|
154
|
+
FileUploadClasses["header"] = "h-fileupload-header";
|
|
155
|
+
/**
|
|
156
|
+
* Class name of the choose button element
|
|
157
|
+
*/
|
|
158
|
+
FileUploadClasses["pcChooseButton"] = "h-fileupload-choose-button";
|
|
159
|
+
/**
|
|
160
|
+
* Class name of the upload button element
|
|
161
|
+
*/
|
|
162
|
+
FileUploadClasses["pcUploadButton"] = "h-fileupload-upload-button";
|
|
163
|
+
/**
|
|
164
|
+
* Class name of the cancel button element
|
|
165
|
+
*/
|
|
166
|
+
FileUploadClasses["pcCancelButton"] = "h-fileupload-cancel-button";
|
|
167
|
+
/**
|
|
168
|
+
* Class name of the content element
|
|
169
|
+
*/
|
|
170
|
+
FileUploadClasses["content"] = "h-fileupload-content";
|
|
171
|
+
/**
|
|
172
|
+
* Class name of the file list element
|
|
173
|
+
*/
|
|
174
|
+
FileUploadClasses["fileList"] = "h-fileupload-file-list";
|
|
175
|
+
/**
|
|
176
|
+
* Class name of the file element
|
|
177
|
+
*/
|
|
178
|
+
FileUploadClasses["file"] = "h-fileupload-file";
|
|
179
|
+
/**
|
|
180
|
+
* Class name of the file thumbnail element
|
|
181
|
+
*/
|
|
182
|
+
FileUploadClasses["fileThumbnail"] = "h-fileupload-file-thumbnail";
|
|
183
|
+
/**
|
|
184
|
+
* Class name of the file info element
|
|
185
|
+
*/
|
|
186
|
+
FileUploadClasses["fileInfo"] = "h-fileupload-file-info";
|
|
187
|
+
/**
|
|
188
|
+
* Class name of the file name element
|
|
189
|
+
*/
|
|
190
|
+
FileUploadClasses["fileName"] = "h-fileupload-file-name";
|
|
191
|
+
/**
|
|
192
|
+
* Class name of the file size element
|
|
193
|
+
*/
|
|
194
|
+
FileUploadClasses["fileSize"] = "h-fileupload-file-size";
|
|
195
|
+
/**
|
|
196
|
+
* Class name of the file badge element
|
|
197
|
+
*/
|
|
198
|
+
FileUploadClasses["pcFileBadge"] = "h-fileupload-file-badge";
|
|
199
|
+
/**
|
|
200
|
+
* Class name of the file actions element
|
|
201
|
+
*/
|
|
202
|
+
FileUploadClasses["fileActions"] = "h-fileupload-file-actions";
|
|
203
|
+
/**
|
|
204
|
+
* Class name of the file remove button element
|
|
205
|
+
*/
|
|
206
|
+
FileUploadClasses["pcFileRemoveButton"] = "h-fileupload-file-remove-button";
|
|
207
|
+
/**
|
|
208
|
+
* Class name of the content in basic mode
|
|
209
|
+
*/
|
|
210
|
+
FileUploadClasses["basicContent"] = "h-fileupload-basic-content";
|
|
211
|
+
})(FileUploadClasses || (FileUploadClasses = {}));
|
|
212
|
+
|
|
213
|
+
const FILEUPLOAD_INSTANCE = new InjectionToken('FILEUPLOAD_INSTANCE');
|
|
214
|
+
class FileContent extends BaseComponent {
|
|
215
|
+
_componentStyle = inject(FileUploadStyle);
|
|
216
|
+
$pcFileUpload = inject(FILEUPLOAD_INSTANCE);
|
|
217
|
+
onRemove = output();
|
|
218
|
+
files = input(/* @ts-ignore */
|
|
219
|
+
...(ngDevMode ? [undefined, { debugName: "files" }] : /* istanbul ignore next */ []));
|
|
220
|
+
badgeSeverity = input('warn', /* @ts-ignore */
|
|
221
|
+
...(ngDevMode ? [{ debugName: "badgeSeverity" }] : /* istanbul ignore next */ []));
|
|
222
|
+
badgeValue = input(/* @ts-ignore */
|
|
223
|
+
...(ngDevMode ? [undefined, { debugName: "badgeValue" }] : /* istanbul ignore next */ []));
|
|
224
|
+
previewWidth = input(50, /* @ts-ignore */
|
|
225
|
+
...(ngDevMode ? [{ debugName: "previewWidth" }] : /* istanbul ignore next */ []));
|
|
226
|
+
fileRemoveIconTemplate = input(/* @ts-ignore */
|
|
227
|
+
...(ngDevMode ? [undefined, { debugName: "fileRemoveIconTemplate" }] : /* istanbul ignore next */ []));
|
|
228
|
+
onRemoveClick(event, index) {
|
|
229
|
+
this.onRemove.emit({ event, index });
|
|
230
|
+
}
|
|
231
|
+
formatSize(bytes) {
|
|
232
|
+
const k = 1024;
|
|
233
|
+
const dm = 3;
|
|
234
|
+
const sizes = this.config.getTranslation(TranslationKeys.FILE_SIZE_TYPES);
|
|
235
|
+
if (bytes === 0) {
|
|
236
|
+
return `0 ${sizes[0]}`;
|
|
237
|
+
}
|
|
238
|
+
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
239
|
+
const formattedSize = (bytes / Math.pow(k, i)).toFixed(dm);
|
|
240
|
+
return `${formattedSize} ${sizes[i]}`;
|
|
241
|
+
}
|
|
242
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileContent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
243
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: FileContent, isStandalone: true, selector: "[hFileContent]", inputs: { files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, badgeSeverity: { classPropertyName: "badgeSeverity", publicName: "badgeSeverity", isSignal: true, isRequired: false, transformFunction: null }, badgeValue: { classPropertyName: "badgeValue", publicName: "badgeValue", isSignal: true, isRequired: false, transformFunction: null }, previewWidth: { classPropertyName: "previewWidth", publicName: "previewWidth", isSignal: true, isRequired: false, transformFunction: null }, fileRemoveIconTemplate: { classPropertyName: "fileRemoveIconTemplate", publicName: "fileRemoveIconTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onRemove: "onRemove" }, providers: [FileUploadStyle], usesInheritance: true, ngImport: i0, template: "@for (file of files(); track file?.name + '-' + $index; let index = $index) {\n <div [class]=\"cx('file')\" [hBind]=\"$pcFileUpload.ptm('file')\">\n <img role=\"presentation\" [class]=\"cx('fileThumbnail')\" [attr.alt]=\"file.name\" [src]=\"file.objectURL\" [width]=\"previewWidth()\" [hBind]=\"$pcFileUpload.ptm('fileThumbnail')\" />\n <div [class]=\"cx('fileInfo')\" [hBind]=\"$pcFileUpload.ptm('fileInfo')\">\n <div [class]=\"cx('fileName')\" [hBind]=\"$pcFileUpload.ptm('fileName')\">{{ file.name }}</div>\n <span [class]=\"cx('fileSize')\" [hBind]=\"$pcFileUpload.ptm('fileSize')\">{{ formatSize(file.size) }}</span>\n </div>\n <h-badge [value]=\"badgeValue()\" [severity]=\"badgeSeverity()\" [class]=\"cx('pcFileBadge')\" [pt]=\"$pcFileUpload.ptm('pcFileBadge')\" [unstyled]=\"unstyled()\" />\n <div [class]=\"cx('fileActions')\" [hBind]=\"$pcFileUpload.ptm('fileActions')\">\n <h-button (onClick)=\"onRemoveClick($event, index)\" [styleClass]=\"cx('pcFileRemoveButton')\" text rounded severity=\"danger\" [pt]=\"$pcFileUpload.ptm('pcFileRemoveButton')\" [unstyled]=\"unstyled()\">\n <ng-template #icon let-iconClass=\"class\">\n @if (fileRemoveIconTemplate()) {\n <ng-template *ngTemplateOutlet=\"fileRemoveIconTemplate(); context: { class: iconClass, file: file, index: index }\"></ng-template>\n } @else {\n <svg data-h-icon=\"times\" [class]=\"iconClass\" [attr.aria-hidden]=\"true\" />\n }\n </ng-template>\n </h-button>\n </div>\n </div>\n }\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Badge, selector: "h-badge", inputs: ["styleClass", "badgeSize", "size", "severity", "value", "badgeDisabled"] }, { kind: "component", type: Button, selector: "h-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: TimesIcon, selector: "[data-h-icon=\"times\"]" }, { kind: "directive", type: Bind, selector: "[hBind]", inputs: ["hBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
244
|
+
}
|
|
245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileContent, decorators: [{
|
|
246
|
+
type: Component,
|
|
247
|
+
args: [{ selector: '[hFileContent]', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, providers: [FileUploadStyle], imports: [CommonModule, Badge, Button, TimesIcon, Bind], template: "@for (file of files(); track file?.name + '-' + $index; let index = $index) {\n <div [class]=\"cx('file')\" [hBind]=\"$pcFileUpload.ptm('file')\">\n <img role=\"presentation\" [class]=\"cx('fileThumbnail')\" [attr.alt]=\"file.name\" [src]=\"file.objectURL\" [width]=\"previewWidth()\" [hBind]=\"$pcFileUpload.ptm('fileThumbnail')\" />\n <div [class]=\"cx('fileInfo')\" [hBind]=\"$pcFileUpload.ptm('fileInfo')\">\n <div [class]=\"cx('fileName')\" [hBind]=\"$pcFileUpload.ptm('fileName')\">{{ file.name }}</div>\n <span [class]=\"cx('fileSize')\" [hBind]=\"$pcFileUpload.ptm('fileSize')\">{{ formatSize(file.size) }}</span>\n </div>\n <h-badge [value]=\"badgeValue()\" [severity]=\"badgeSeverity()\" [class]=\"cx('pcFileBadge')\" [pt]=\"$pcFileUpload.ptm('pcFileBadge')\" [unstyled]=\"unstyled()\" />\n <div [class]=\"cx('fileActions')\" [hBind]=\"$pcFileUpload.ptm('fileActions')\">\n <h-button (onClick)=\"onRemoveClick($event, index)\" [styleClass]=\"cx('pcFileRemoveButton')\" text rounded severity=\"danger\" [pt]=\"$pcFileUpload.ptm('pcFileRemoveButton')\" [unstyled]=\"unstyled()\">\n <ng-template #icon let-iconClass=\"class\">\n @if (fileRemoveIconTemplate()) {\n <ng-template *ngTemplateOutlet=\"fileRemoveIconTemplate(); context: { class: iconClass, file: file, index: index }\"></ng-template>\n } @else {\n <svg data-h-icon=\"times\" [class]=\"iconClass\" [attr.aria-hidden]=\"true\" />\n }\n </ng-template>\n </h-button>\n </div>\n </div>\n }\n" }]
|
|
248
|
+
}], propDecorators: { onRemove: [{ type: i0.Output, args: ["onRemove"] }], files: [{ type: i0.Input, args: [{ isSignal: true, alias: "files", required: false }] }], badgeSeverity: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeSeverity", required: false }] }], badgeValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeValue", required: false }] }], previewWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewWidth", required: false }] }], fileRemoveIconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileRemoveIconTemplate", required: false }] }] } });
|
|
249
|
+
/**
|
|
250
|
+
* FileUpload is an advanced uploader with dragdrop support, multi file uploads, auto uploading, progress tracking and validations.
|
|
251
|
+
* @group Components
|
|
252
|
+
*/
|
|
253
|
+
class FileUpload extends BaseComponent {
|
|
254
|
+
componentName = 'FileUpload';
|
|
255
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
256
|
+
onAfterViewChecked() {
|
|
257
|
+
this.bindDirectiveInstance.setAttrs(this.ptm('host'));
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Name of the request parameter to identify the files at backend.
|
|
261
|
+
* @group Props
|
|
262
|
+
*/
|
|
263
|
+
name = input(/* @ts-ignore */
|
|
264
|
+
...(ngDevMode ? [undefined, { debugName: "name" }] : /* istanbul ignore next */ []));
|
|
265
|
+
/**
|
|
266
|
+
* Remote url to upload the files.
|
|
267
|
+
* @group Props
|
|
268
|
+
*/
|
|
269
|
+
url = input(/* @ts-ignore */
|
|
270
|
+
...(ngDevMode ? [undefined, { debugName: "url" }] : /* istanbul ignore next */ []));
|
|
271
|
+
/**
|
|
272
|
+
* HTTP method to send the files to the url such as "post" and "put".
|
|
273
|
+
* @group Props
|
|
274
|
+
*/
|
|
275
|
+
method = input('post', /* @ts-ignore */
|
|
276
|
+
...(ngDevMode ? [{ debugName: "method" }] : /* istanbul ignore next */ []));
|
|
277
|
+
/**
|
|
278
|
+
* Used to select multiple files at once from file dialog.
|
|
279
|
+
* @group Props
|
|
280
|
+
*/
|
|
281
|
+
multiple = input(undefined, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
282
|
+
/**
|
|
283
|
+
* Comma-separated list of pattern to restrict the allowed file types. Can be any combination of either the MIME types (such as "image/*") or the file extensions (such as ".jpg").
|
|
284
|
+
* @group Props
|
|
285
|
+
*/
|
|
286
|
+
accept = input(/* @ts-ignore */
|
|
287
|
+
...(ngDevMode ? [undefined, { debugName: "accept" }] : /* istanbul ignore next */ []));
|
|
288
|
+
/**
|
|
289
|
+
* Disables the upload functionality.
|
|
290
|
+
* @group Props
|
|
291
|
+
*/
|
|
292
|
+
disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
293
|
+
/**
|
|
294
|
+
* When enabled, upload begins automatically after selection is completed.
|
|
295
|
+
* @group Props
|
|
296
|
+
*/
|
|
297
|
+
auto = input(undefined, { ...(ngDevMode ? { debugName: "auto" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
298
|
+
/**
|
|
299
|
+
* Cross-site Access-Control requests should be made using credentials such as cookies, authorization headers or TLS client certificates.
|
|
300
|
+
* @group Props
|
|
301
|
+
*/
|
|
302
|
+
withCredentials = input(undefined, { ...(ngDevMode ? { debugName: "withCredentials" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
303
|
+
/**
|
|
304
|
+
* Maximum file size allowed in bytes.
|
|
305
|
+
* @group Props
|
|
306
|
+
*/
|
|
307
|
+
maxFileSize = input(undefined, { ...(ngDevMode ? { debugName: "maxFileSize" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
308
|
+
/**
|
|
309
|
+
* Summary message of the invalid file size.
|
|
310
|
+
* @group Props
|
|
311
|
+
*/
|
|
312
|
+
invalidFileSizeMessageSummary = input('{0}: Invalid file size, ', /* @ts-ignore */
|
|
313
|
+
...(ngDevMode ? [{ debugName: "invalidFileSizeMessageSummary" }] : /* istanbul ignore next */ []));
|
|
314
|
+
/**
|
|
315
|
+
* Detail message of the invalid file size.
|
|
316
|
+
* @group Props
|
|
317
|
+
*/
|
|
318
|
+
invalidFileSizeMessageDetail = input('maximum upload size is {0}.', /* @ts-ignore */
|
|
319
|
+
...(ngDevMode ? [{ debugName: "invalidFileSizeMessageDetail" }] : /* istanbul ignore next */ []));
|
|
320
|
+
/**
|
|
321
|
+
* Summary message of the invalid file type.
|
|
322
|
+
* @group Props
|
|
323
|
+
*/
|
|
324
|
+
invalidFileTypeMessageSummary = input('{0}: Invalid file type, ', /* @ts-ignore */
|
|
325
|
+
...(ngDevMode ? [{ debugName: "invalidFileTypeMessageSummary" }] : /* istanbul ignore next */ []));
|
|
326
|
+
/**
|
|
327
|
+
* Detail message of the invalid file type.
|
|
328
|
+
* @group Props
|
|
329
|
+
*/
|
|
330
|
+
invalidFileTypeMessageDetail = input('allowed file types: {0}.', /* @ts-ignore */
|
|
331
|
+
...(ngDevMode ? [{ debugName: "invalidFileTypeMessageDetail" }] : /* istanbul ignore next */ []));
|
|
332
|
+
/**
|
|
333
|
+
* Detail message of the invalid file type.
|
|
334
|
+
* @group Props
|
|
335
|
+
*/
|
|
336
|
+
invalidFileLimitMessageDetail = input('limit is {0} at most.', /* @ts-ignore */
|
|
337
|
+
...(ngDevMode ? [{ debugName: "invalidFileLimitMessageDetail" }] : /* istanbul ignore next */ []));
|
|
338
|
+
/**
|
|
339
|
+
* Summary message of the invalid file type.
|
|
340
|
+
* @group Props
|
|
341
|
+
*/
|
|
342
|
+
invalidFileLimitMessageSummary = input('Maximum number of files exceeded, ', /* @ts-ignore */
|
|
343
|
+
...(ngDevMode ? [{ debugName: "invalidFileLimitMessageSummary" }] : /* istanbul ignore next */ []));
|
|
344
|
+
/**
|
|
345
|
+
* Inline style of the element.
|
|
346
|
+
* @group Props
|
|
347
|
+
*/
|
|
348
|
+
style = input(/* @ts-ignore */
|
|
349
|
+
...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
|
|
350
|
+
/**
|
|
351
|
+
* Class of the element.
|
|
352
|
+
* @group Props
|
|
353
|
+
*/
|
|
354
|
+
styleClass = input(/* @ts-ignore */
|
|
355
|
+
...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
356
|
+
/**
|
|
357
|
+
* Width of the image thumbnail in pixels.
|
|
358
|
+
* @group Props
|
|
359
|
+
*/
|
|
360
|
+
previewWidth = input(50, { ...(ngDevMode ? { debugName: "previewWidth" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
361
|
+
/**
|
|
362
|
+
* Label of the choose button. Defaults to Helix Locale configuration.
|
|
363
|
+
* @group Props
|
|
364
|
+
*/
|
|
365
|
+
chooseLabel = input(/* @ts-ignore */
|
|
366
|
+
...(ngDevMode ? [undefined, { debugName: "chooseLabel" }] : /* istanbul ignore next */ []));
|
|
367
|
+
/**
|
|
368
|
+
* Label of the upload button. Defaults to Helix Locale configuration.
|
|
369
|
+
* @group Props
|
|
370
|
+
*/
|
|
371
|
+
uploadLabel = input(/* @ts-ignore */
|
|
372
|
+
...(ngDevMode ? [undefined, { debugName: "uploadLabel" }] : /* istanbul ignore next */ []));
|
|
373
|
+
/**
|
|
374
|
+
* Label of the cancel button. Defaults to Helix Locale configuration.
|
|
375
|
+
* @group Props
|
|
376
|
+
*/
|
|
377
|
+
cancelLabel = input(/* @ts-ignore */
|
|
378
|
+
...(ngDevMode ? [undefined, { debugName: "cancelLabel" }] : /* istanbul ignore next */ []));
|
|
379
|
+
/**
|
|
380
|
+
* Icon of the choose button.
|
|
381
|
+
* @group Props
|
|
382
|
+
*/
|
|
383
|
+
chooseIcon = input(/* @ts-ignore */
|
|
384
|
+
...(ngDevMode ? [undefined, { debugName: "chooseIcon" }] : /* istanbul ignore next */ []));
|
|
385
|
+
/**
|
|
386
|
+
* Icon of the upload button.
|
|
387
|
+
* @group Props
|
|
388
|
+
*/
|
|
389
|
+
uploadIcon = input(/* @ts-ignore */
|
|
390
|
+
...(ngDevMode ? [undefined, { debugName: "uploadIcon" }] : /* istanbul ignore next */ []));
|
|
391
|
+
/**
|
|
392
|
+
* Icon of the cancel button.
|
|
393
|
+
* @group Props
|
|
394
|
+
*/
|
|
395
|
+
cancelIcon = input(/* @ts-ignore */
|
|
396
|
+
...(ngDevMode ? [undefined, { debugName: "cancelIcon" }] : /* istanbul ignore next */ []));
|
|
397
|
+
/**
|
|
398
|
+
* Whether to show the upload button.
|
|
399
|
+
* @group Props
|
|
400
|
+
*/
|
|
401
|
+
showUploadButton = input(true, { ...(ngDevMode ? { debugName: "showUploadButton" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
402
|
+
/**
|
|
403
|
+
* Whether to show the cancel button.
|
|
404
|
+
* @group Props
|
|
405
|
+
*/
|
|
406
|
+
showCancelButton = input(true, { ...(ngDevMode ? { debugName: "showCancelButton" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
407
|
+
/**
|
|
408
|
+
* Defines the UI of the component.
|
|
409
|
+
* @group Props
|
|
410
|
+
*/
|
|
411
|
+
mode = input('advanced', /* @ts-ignore */
|
|
412
|
+
...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
413
|
+
/**
|
|
414
|
+
* HttpHeaders class represents the header configuration options for an HTTP request.
|
|
415
|
+
* @group Props
|
|
416
|
+
*/
|
|
417
|
+
headers = input(/* @ts-ignore */
|
|
418
|
+
...(ngDevMode ? [undefined, { debugName: "headers" }] : /* istanbul ignore next */ []));
|
|
419
|
+
/**
|
|
420
|
+
* Whether to use the default upload or a manual implementation defined in uploadHandler callback. Defaults to Helix Locale configuration.
|
|
421
|
+
* @group Props
|
|
422
|
+
*/
|
|
423
|
+
customUpload = input(undefined, { ...(ngDevMode ? { debugName: "customUpload" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
424
|
+
/**
|
|
425
|
+
* Maximum number of files that can be uploaded.
|
|
426
|
+
* @group Props
|
|
427
|
+
*/
|
|
428
|
+
fileLimit = input(undefined, { ...(ngDevMode ? { debugName: "fileLimit" } : /* istanbul ignore next */ {}), transform: (value) => numberAttribute(value, undefined) });
|
|
429
|
+
/**
|
|
430
|
+
* Style class of the upload button.
|
|
431
|
+
* @group Props
|
|
432
|
+
*/
|
|
433
|
+
uploadStyleClass = input(/* @ts-ignore */
|
|
434
|
+
...(ngDevMode ? [undefined, { debugName: "uploadStyleClass" }] : /* istanbul ignore next */ []));
|
|
435
|
+
/**
|
|
436
|
+
* Style class of the cancel button.
|
|
437
|
+
* @group Props
|
|
438
|
+
*/
|
|
439
|
+
cancelStyleClass = input(/* @ts-ignore */
|
|
440
|
+
...(ngDevMode ? [undefined, { debugName: "cancelStyleClass" }] : /* istanbul ignore next */ []));
|
|
441
|
+
/**
|
|
442
|
+
* Style class of the remove button.
|
|
443
|
+
* @group Props
|
|
444
|
+
*/
|
|
445
|
+
removeStyleClass = input(/* @ts-ignore */
|
|
446
|
+
...(ngDevMode ? [undefined, { debugName: "removeStyleClass" }] : /* istanbul ignore next */ []));
|
|
447
|
+
/**
|
|
448
|
+
* Style class of the choose button.
|
|
449
|
+
* @group Props
|
|
450
|
+
*/
|
|
451
|
+
chooseStyleClass = input(/* @ts-ignore */
|
|
452
|
+
...(ngDevMode ? [undefined, { debugName: "chooseStyleClass" }] : /* istanbul ignore next */ []));
|
|
453
|
+
/**
|
|
454
|
+
* Used to pass all properties of the ButtonProps to the choose button inside the component.
|
|
455
|
+
* @group Props
|
|
456
|
+
*/
|
|
457
|
+
chooseButtonProps = input(undefined, /* @ts-ignore */
|
|
458
|
+
...(ngDevMode ? [{ debugName: "chooseButtonProps" }] : /* istanbul ignore next */ []));
|
|
459
|
+
/**
|
|
460
|
+
* Used to pass all properties of the ButtonProps to the upload button inside the component.
|
|
461
|
+
* @group Props
|
|
462
|
+
*/
|
|
463
|
+
uploadButtonProps = input({ severity: 'secondary' }, /* @ts-ignore */
|
|
464
|
+
...(ngDevMode ? [{ debugName: "uploadButtonProps" }] : /* istanbul ignore next */ []));
|
|
465
|
+
/**
|
|
466
|
+
* Used to pass all properties of the ButtonProps to the cancel button inside the component.
|
|
467
|
+
* @group Props
|
|
468
|
+
*/
|
|
469
|
+
cancelButtonProps = input({ severity: 'secondary' }, /* @ts-ignore */
|
|
470
|
+
...(ngDevMode ? [{ debugName: "cancelButtonProps" }] : /* istanbul ignore next */ []));
|
|
471
|
+
/**
|
|
472
|
+
* Callback to invoke before file upload is initialized.
|
|
473
|
+
* @param {FileBeforeUploadEvent} event - Custom upload event.
|
|
474
|
+
* @group Emits
|
|
475
|
+
*/
|
|
476
|
+
onBeforeUpload = output();
|
|
477
|
+
/**
|
|
478
|
+
* An event indicating that the request was sent to the server. Useful when a request may be retried multiple times, to distinguish between retries on the final event stream.
|
|
479
|
+
* @param {FileSendEvent} event - Custom send event.
|
|
480
|
+
* @group Emits
|
|
481
|
+
*/
|
|
482
|
+
onSend = output();
|
|
483
|
+
/**
|
|
484
|
+
* Callback to invoke when file upload is complete.
|
|
485
|
+
* @param {FileUploadEvent} event - Custom upload event.
|
|
486
|
+
* @group Emits
|
|
487
|
+
*/
|
|
488
|
+
onUpload = output();
|
|
489
|
+
/**
|
|
490
|
+
* Callback to invoke if file upload fails.
|
|
491
|
+
* @param {FileUploadErrorEvent} event - Custom error event.
|
|
492
|
+
* @group Emits
|
|
493
|
+
*/
|
|
494
|
+
onError = output();
|
|
495
|
+
/**
|
|
496
|
+
* Callback to invoke when files in queue are removed without uploading using clear all button.
|
|
497
|
+
* @param {Event} event - Browser event.
|
|
498
|
+
* @group Emits
|
|
499
|
+
*/
|
|
500
|
+
onClear = output();
|
|
501
|
+
/**
|
|
502
|
+
* Callback to invoke when a file is removed without uploading using clear button of a file.
|
|
503
|
+
* @param {FileRemoveEvent} event - Remove event.
|
|
504
|
+
* @group Emits
|
|
505
|
+
*/
|
|
506
|
+
onRemove = output();
|
|
507
|
+
/**
|
|
508
|
+
* Callback to invoke when files are selected.
|
|
509
|
+
* @param {FileSelectEvent} event - Select event.
|
|
510
|
+
* @group Emits
|
|
511
|
+
*/
|
|
512
|
+
onSelect = output();
|
|
513
|
+
/**
|
|
514
|
+
* Callback to invoke when files are being uploaded.
|
|
515
|
+
* @param {FileProgressEvent} event - Progress event.
|
|
516
|
+
* @group Emits
|
|
517
|
+
*/
|
|
518
|
+
onProgress = output();
|
|
519
|
+
/**
|
|
520
|
+
* Callback to invoke in custom upload mode to upload the files manually.
|
|
521
|
+
* @param {FileUploadHandlerEvent} event - Upload handler event.
|
|
522
|
+
* @group Emits
|
|
523
|
+
*/
|
|
524
|
+
uploadHandler = output();
|
|
525
|
+
/**
|
|
526
|
+
* This event is triggered if an error occurs while loading an image file.
|
|
527
|
+
* @param {Event} event - Browser event.
|
|
528
|
+
* @group Emits
|
|
529
|
+
*/
|
|
530
|
+
onImageError = output();
|
|
531
|
+
/**
|
|
532
|
+
* This event is triggered if an error occurs while loading an image file.
|
|
533
|
+
* @param {RemoveUploadedFileEvent} event - Remove event.
|
|
534
|
+
* @group Emits
|
|
535
|
+
*/
|
|
536
|
+
onRemoveUploadedFile = output();
|
|
537
|
+
/**
|
|
538
|
+
* Custom file template.
|
|
539
|
+
* @group Templates
|
|
540
|
+
*/
|
|
541
|
+
fileTemplate = contentChild('file', { ...(ngDevMode ? { debugName: "fileTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
542
|
+
/**
|
|
543
|
+
* Custom header template.
|
|
544
|
+
* @param {FileUploadHeaderTemplateContext} context - header template context.
|
|
545
|
+
* @group Templates
|
|
546
|
+
*/
|
|
547
|
+
headerTemplate = contentChild('header', { ...(ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
548
|
+
/**
|
|
549
|
+
* Custom content template.
|
|
550
|
+
* @param {FileUploadContentTemplateContext} context - content template context.
|
|
551
|
+
* @group Templates
|
|
552
|
+
*/
|
|
553
|
+
contentTemplate = contentChild('content', { ...(ngDevMode ? { debugName: "contentTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
554
|
+
/**
|
|
555
|
+
* Custom toolbar template.
|
|
556
|
+
* @group Templates
|
|
557
|
+
*/
|
|
558
|
+
toolbarTemplate = contentChild('toolbar', { ...(ngDevMode ? { debugName: "toolbarTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
559
|
+
/**
|
|
560
|
+
* Custom choose icon template.
|
|
561
|
+
* @group Templates
|
|
562
|
+
*/
|
|
563
|
+
chooseIconTemplate = contentChild('chooseicon', { ...(ngDevMode ? { debugName: "chooseIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
564
|
+
/**
|
|
565
|
+
* Custom file label template.
|
|
566
|
+
* @param {FileUploadFileLabelTemplateContext} context - file label template context.
|
|
567
|
+
* @group Templates
|
|
568
|
+
*/
|
|
569
|
+
fileLabelTemplate = contentChild('filelabel', { ...(ngDevMode ? { debugName: "fileLabelTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
570
|
+
/**
|
|
571
|
+
* Custom upload icon template.
|
|
572
|
+
* @group Templates
|
|
573
|
+
*/
|
|
574
|
+
uploadIconTemplate = contentChild('uploadicon', { ...(ngDevMode ? { debugName: "uploadIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
575
|
+
/**
|
|
576
|
+
* Custom cancel icon template.
|
|
577
|
+
* @group Templates
|
|
578
|
+
*/
|
|
579
|
+
cancelIconTemplate = contentChild('cancelicon', { ...(ngDevMode ? { debugName: "cancelIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
580
|
+
/**
|
|
581
|
+
* Custom empty state template.
|
|
582
|
+
* @group Templates
|
|
583
|
+
*/
|
|
584
|
+
emptyTemplate = contentChild('empty', { ...(ngDevMode ? { debugName: "emptyTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
585
|
+
advancedFileInput = viewChild('advancedfileinput', /* @ts-ignore */
|
|
586
|
+
...(ngDevMode ? [{ debugName: "advancedFileInput" }] : /* istanbul ignore next */ []));
|
|
587
|
+
basicFileInput = viewChild('basicfileinput', /* @ts-ignore */
|
|
588
|
+
...(ngDevMode ? [{ debugName: "basicFileInput" }] : /* istanbul ignore next */ []));
|
|
589
|
+
content = viewChild('content', /* @ts-ignore */
|
|
590
|
+
...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
|
|
591
|
+
files = model([], /* @ts-ignore */
|
|
592
|
+
...(ngDevMode ? [{ debugName: "files" }] : /* istanbul ignore next */ []));
|
|
593
|
+
get basicButtonLabel() {
|
|
594
|
+
if (this.auto() || !this.hasFiles()) {
|
|
595
|
+
return this.chooseLabel();
|
|
596
|
+
}
|
|
597
|
+
return this.uploadLabel() ?? this.files()[0].name;
|
|
598
|
+
}
|
|
599
|
+
progress = 0;
|
|
600
|
+
dragHighlight;
|
|
601
|
+
msgs;
|
|
602
|
+
uploadedFileCount = 0;
|
|
603
|
+
focus;
|
|
604
|
+
uploading;
|
|
605
|
+
duplicateIEEvent; // flag to recognize duplicate onchange event for file input
|
|
606
|
+
translationSubscription;
|
|
607
|
+
dragOverListener;
|
|
608
|
+
uploadedFiles = [];
|
|
609
|
+
sanitizer = inject(DomSanitizer);
|
|
610
|
+
zone = inject(NgZone);
|
|
611
|
+
http = inject(HttpClient);
|
|
612
|
+
_componentStyle = inject(FileUploadStyle);
|
|
613
|
+
onInit() {
|
|
614
|
+
this.translationSubscription = this.config.translationObserver.subscribe(() => {
|
|
615
|
+
this.cd.markForCheck();
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
onAfterViewInit() {
|
|
619
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
620
|
+
if (this.mode() === 'advanced') {
|
|
621
|
+
this.zone.runOutsideAngular(() => {
|
|
622
|
+
const content = this.content();
|
|
623
|
+
if (content) {
|
|
624
|
+
this.dragOverListener = this.renderer.listen(content.nativeElement, 'dragover', this.onDragOver.bind(this));
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
_headerTemplate;
|
|
631
|
+
_contentTemplate;
|
|
632
|
+
_toolbarTemplate;
|
|
633
|
+
_chooseIconTemplate;
|
|
634
|
+
_uploadIconTemplate;
|
|
635
|
+
_cancelIconTemplate;
|
|
636
|
+
_emptyTemplate;
|
|
637
|
+
_fileTemplate;
|
|
638
|
+
_fileLabelTemplate;
|
|
639
|
+
templates = contentChildren(HelixTemplate, /* @ts-ignore */
|
|
640
|
+
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
641
|
+
onAfterContentInit() {
|
|
642
|
+
this.templates()?.forEach((item) => {
|
|
643
|
+
switch (item.getType()) {
|
|
644
|
+
case 'header':
|
|
645
|
+
this._headerTemplate = item.template;
|
|
646
|
+
break;
|
|
647
|
+
case 'file':
|
|
648
|
+
this._fileTemplate = item.template;
|
|
649
|
+
break;
|
|
650
|
+
case 'content':
|
|
651
|
+
this._contentTemplate = item.template;
|
|
652
|
+
break;
|
|
653
|
+
case 'toolbar':
|
|
654
|
+
this._toolbarTemplate = item.template;
|
|
655
|
+
break;
|
|
656
|
+
case 'chooseicon':
|
|
657
|
+
this._chooseIconTemplate = item.template;
|
|
658
|
+
break;
|
|
659
|
+
case 'uploadicon':
|
|
660
|
+
this._uploadIconTemplate = item.template;
|
|
661
|
+
break;
|
|
662
|
+
case 'cancelicon':
|
|
663
|
+
this._cancelIconTemplate = item.template;
|
|
664
|
+
break;
|
|
665
|
+
case 'empty':
|
|
666
|
+
this._emptyTemplate = item.template;
|
|
667
|
+
break;
|
|
668
|
+
case 'filelabel':
|
|
669
|
+
this._fileLabelTemplate = item.template;
|
|
670
|
+
break;
|
|
671
|
+
default:
|
|
672
|
+
this._fileTemplate = item.template;
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
basicFileChosenLabel() {
|
|
678
|
+
if (this.auto())
|
|
679
|
+
return this.chooseButtonLabel;
|
|
680
|
+
else if (this.hasFiles()) {
|
|
681
|
+
if (this.files() && this.files().length === 1)
|
|
682
|
+
return this.files()[0].name;
|
|
683
|
+
return this.config.getTranslation('fileChosenMessage')?.replace('{0}', this.files().length);
|
|
684
|
+
}
|
|
685
|
+
return this.config.getTranslation('noFileChosenMessage') || '';
|
|
686
|
+
}
|
|
687
|
+
completedLabel() {
|
|
688
|
+
return this.config.getTranslation('completed') || '';
|
|
689
|
+
}
|
|
690
|
+
getTranslation(option) {
|
|
691
|
+
return this.config.getTranslation(option);
|
|
692
|
+
}
|
|
693
|
+
choose() {
|
|
694
|
+
this.advancedFileInput()?.nativeElement.click();
|
|
695
|
+
}
|
|
696
|
+
onFileSelect(event) {
|
|
697
|
+
if (event.type !== 'drop' && this.isIE11() && this.duplicateIEEvent) {
|
|
698
|
+
this.duplicateIEEvent = false;
|
|
699
|
+
return;
|
|
700
|
+
}
|
|
701
|
+
if (!this.multiple()) {
|
|
702
|
+
this.files.set([]);
|
|
703
|
+
}
|
|
704
|
+
this.msgs = [];
|
|
705
|
+
let files = event.dataTransfer ? event.dataTransfer.files : event.target.files;
|
|
706
|
+
for (let i = 0; i < files.length; i++) {
|
|
707
|
+
let file = files[i];
|
|
708
|
+
if (!this.isFileSelected(file)) {
|
|
709
|
+
if (this.validate(file)) {
|
|
710
|
+
if (this.isImage(file)) {
|
|
711
|
+
file.objectURL = this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(files[i]));
|
|
712
|
+
}
|
|
713
|
+
this.files().push(files[i]);
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
this.onSelect.emit({ originalEvent: event, files: files, currentFiles: this.files() });
|
|
718
|
+
// this will check the fileLimit with the uploaded files
|
|
719
|
+
this.checkFileLimit(files);
|
|
720
|
+
if (this.hasFiles() && this.auto() && (this.mode() !== 'advanced' || !this.isFileLimitExceeded())) {
|
|
721
|
+
this.upload();
|
|
722
|
+
}
|
|
723
|
+
if (event.type !== 'drop' && this.isIE11()) {
|
|
724
|
+
this.clearIEInput();
|
|
725
|
+
}
|
|
726
|
+
else {
|
|
727
|
+
this.clearInputElement();
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
isFileSelected(file) {
|
|
731
|
+
for (let sFile of this.files()) {
|
|
732
|
+
if (sFile.name + sFile.type + sFile.size === file.name + file.type + file.size) {
|
|
733
|
+
return true;
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
return false;
|
|
737
|
+
}
|
|
738
|
+
isIE11() {
|
|
739
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
740
|
+
return !!this.document.defaultView['MSInputMethodContext'] && !!this.document['documentMode'];
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
validate(file) {
|
|
744
|
+
this.msgs = this.msgs || [];
|
|
745
|
+
const accept = this.accept();
|
|
746
|
+
if (accept && !this.isFileTypeValid(file)) {
|
|
747
|
+
const text = `${this.invalidFileTypeMessageSummary().replace('{0}', file.name)} ${this.invalidFileTypeMessageDetail().replace('{0}', accept)}`;
|
|
748
|
+
this.msgs.push({
|
|
749
|
+
severity: 'error',
|
|
750
|
+
text: text
|
|
751
|
+
});
|
|
752
|
+
return false;
|
|
753
|
+
}
|
|
754
|
+
const maxFileSize = this.maxFileSize();
|
|
755
|
+
if (maxFileSize && file.size > maxFileSize) {
|
|
756
|
+
const text = `${this.invalidFileSizeMessageSummary().replace('{0}', file.name)} ${this.invalidFileSizeMessageDetail().replace('{0}', this.formatSize(maxFileSize))}`;
|
|
757
|
+
this.msgs.push({
|
|
758
|
+
severity: 'error',
|
|
759
|
+
text: text
|
|
760
|
+
});
|
|
761
|
+
return false;
|
|
762
|
+
}
|
|
763
|
+
return true;
|
|
764
|
+
}
|
|
765
|
+
isFileTypeValid(file) {
|
|
766
|
+
let acceptableTypes = this.accept()?.split(',').map((type) => type.trim());
|
|
767
|
+
for (let type of acceptableTypes) {
|
|
768
|
+
let acceptable = this.isWildcard(type) ? this.getTypeClass(file.type) === this.getTypeClass(type) : file.type == type || this.getFileExtension(file).toLowerCase() === type.toLowerCase();
|
|
769
|
+
if (acceptable) {
|
|
770
|
+
return true;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
return false;
|
|
774
|
+
}
|
|
775
|
+
getTypeClass(fileType) {
|
|
776
|
+
return fileType.substring(0, fileType.indexOf('/'));
|
|
777
|
+
}
|
|
778
|
+
isWildcard(fileType) {
|
|
779
|
+
return fileType.indexOf('*') !== -1;
|
|
780
|
+
}
|
|
781
|
+
getFileExtension(file) {
|
|
782
|
+
return '.' + file.name.split('.').pop();
|
|
783
|
+
}
|
|
784
|
+
isImage(file) {
|
|
785
|
+
return /^image\//.test(file.type);
|
|
786
|
+
}
|
|
787
|
+
onImageLoad(img) {
|
|
788
|
+
window.URL.revokeObjectURL(img.src);
|
|
789
|
+
}
|
|
790
|
+
/**
|
|
791
|
+
* Uploads the selected files.
|
|
792
|
+
* @group Method
|
|
793
|
+
*/
|
|
794
|
+
uploader() {
|
|
795
|
+
if (this.customUpload()) {
|
|
796
|
+
if (this.fileLimit()) {
|
|
797
|
+
this.uploadedFileCount += this.files().length;
|
|
798
|
+
}
|
|
799
|
+
this.uploadHandler.emit({
|
|
800
|
+
files: this.files()
|
|
801
|
+
});
|
|
802
|
+
this.cd.markForCheck();
|
|
803
|
+
}
|
|
804
|
+
else {
|
|
805
|
+
this.uploading = true;
|
|
806
|
+
this.msgs = [];
|
|
807
|
+
let formData = new FormData();
|
|
808
|
+
this.onBeforeUpload.emit({
|
|
809
|
+
formData: formData
|
|
810
|
+
});
|
|
811
|
+
for (let i = 0; i < this.files().length; i++) {
|
|
812
|
+
formData.append(this.name(), this.files()[i], this.files()[i].name);
|
|
813
|
+
}
|
|
814
|
+
this.http
|
|
815
|
+
.request(this.method(), this.url(), {
|
|
816
|
+
body: formData,
|
|
817
|
+
headers: this.headers(),
|
|
818
|
+
reportProgress: true,
|
|
819
|
+
observe: 'events',
|
|
820
|
+
withCredentials: this.withCredentials()
|
|
821
|
+
})
|
|
822
|
+
.subscribe((event) => {
|
|
823
|
+
switch (event.type) {
|
|
824
|
+
case HttpEventType.Sent:
|
|
825
|
+
this.onSend.emit({
|
|
826
|
+
originalEvent: event,
|
|
827
|
+
formData: formData
|
|
828
|
+
});
|
|
829
|
+
break;
|
|
830
|
+
case HttpEventType.Response:
|
|
831
|
+
this.uploading = false;
|
|
832
|
+
this.progress = 0;
|
|
833
|
+
if (event['status'] >= 200 && event['status'] < 300) {
|
|
834
|
+
if (this.fileLimit()) {
|
|
835
|
+
this.uploadedFileCount += this.files().length;
|
|
836
|
+
}
|
|
837
|
+
this.onUpload.emit({ originalEvent: event, files: this.files() });
|
|
838
|
+
}
|
|
839
|
+
else {
|
|
840
|
+
this.onError.emit({ files: this.files() });
|
|
841
|
+
}
|
|
842
|
+
this.uploadedFiles = [...this.uploadedFiles, ...this.files()];
|
|
843
|
+
this.clear();
|
|
844
|
+
break;
|
|
845
|
+
case HttpEventType.UploadProgress: {
|
|
846
|
+
if (event['loaded']) {
|
|
847
|
+
this.progress = Math.round((event['loaded'] * 100) / event['total']);
|
|
848
|
+
}
|
|
849
|
+
this.onProgress.emit({ originalEvent: event, progress: this.progress });
|
|
850
|
+
break;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
this.cd.markForCheck();
|
|
854
|
+
}, (error) => {
|
|
855
|
+
this.uploading = false;
|
|
856
|
+
this.onError.emit({ files: this.files(), error: error });
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
onRemoveClick(e) {
|
|
861
|
+
const { event, index } = e;
|
|
862
|
+
if (this.hasFiles()) {
|
|
863
|
+
this.remove(event, index);
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
onRemoveUploadedFileClick(e) {
|
|
867
|
+
const { index } = e;
|
|
868
|
+
if (this.hasUploadedFiles()) {
|
|
869
|
+
this.removeUploadedFile(index);
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* Clears the files list.
|
|
874
|
+
* @group Method
|
|
875
|
+
*/
|
|
876
|
+
clear() {
|
|
877
|
+
this.files.set([]);
|
|
878
|
+
this.onClear.emit();
|
|
879
|
+
this.clearInputElement();
|
|
880
|
+
this.msgs = [];
|
|
881
|
+
this.cd.markForCheck();
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
* Removes a single file.
|
|
885
|
+
* @param {Event} event - Browser event.
|
|
886
|
+
* @param {Number} index - Index of the file.
|
|
887
|
+
* @group Method
|
|
888
|
+
*/
|
|
889
|
+
remove(event, index) {
|
|
890
|
+
this.clearInputElement();
|
|
891
|
+
this.onRemove.emit({ originalEvent: event, file: this.files()[index] });
|
|
892
|
+
this.files().splice(index, 1);
|
|
893
|
+
this.checkFileLimit(this.files());
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* Removes uploaded file.
|
|
897
|
+
* @param {Number} index - Index of the file to be removed.
|
|
898
|
+
* @group Method
|
|
899
|
+
*/
|
|
900
|
+
removeUploadedFile(index) {
|
|
901
|
+
let removedFile = this.uploadedFiles.splice(index, 1)[0];
|
|
902
|
+
this.uploadedFiles = [...this.uploadedFiles];
|
|
903
|
+
this.onRemoveUploadedFile.emit({ file: removedFile, files: this.uploadedFiles });
|
|
904
|
+
}
|
|
905
|
+
isFileLimitExceeded() {
|
|
906
|
+
const isAutoMode = this.auto();
|
|
907
|
+
const totalFileCount = isAutoMode ? this.files().length : this.files().length + this.uploadedFileCount;
|
|
908
|
+
const fileLimit = this.fileLimit();
|
|
909
|
+
if (fileLimit && fileLimit <= totalFileCount && this.focus) {
|
|
910
|
+
this.focus = false;
|
|
911
|
+
}
|
|
912
|
+
return fileLimit && fileLimit < totalFileCount;
|
|
913
|
+
}
|
|
914
|
+
isChooseDisabled() {
|
|
915
|
+
if (this.auto()) {
|
|
916
|
+
const fileLimit = this.fileLimit();
|
|
917
|
+
return fileLimit && fileLimit <= this.files().length;
|
|
918
|
+
}
|
|
919
|
+
else {
|
|
920
|
+
const fileLimit = this.fileLimit();
|
|
921
|
+
return fileLimit && fileLimit <= this.files().length + this.uploadedFileCount;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
checkFileLimit(files) {
|
|
925
|
+
this.msgs ??= [];
|
|
926
|
+
const fileLimit = this.fileLimit();
|
|
927
|
+
const hasExistingValidationMessages = this.msgs.length > 0 && fileLimit && fileLimit < files.length;
|
|
928
|
+
if (this.isFileLimitExceeded() || hasExistingValidationMessages) {
|
|
929
|
+
const text = `${this.invalidFileLimitMessageSummary().replace('{0}', this.fileLimit().toString())} ${this.invalidFileLimitMessageDetail().replace('{0}', this.fileLimit().toString())}`;
|
|
930
|
+
this.msgs.push({
|
|
931
|
+
severity: 'error',
|
|
932
|
+
text: text
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
else {
|
|
936
|
+
this.msgs = this.msgs.filter((msg) => !msg.text.includes(this.invalidFileLimitMessageSummary()));
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
clearInputElement() {
|
|
940
|
+
if (this.advancedFileInput() && this.advancedFileInput().nativeElement) {
|
|
941
|
+
this.advancedFileInput().nativeElement.value = '';
|
|
942
|
+
}
|
|
943
|
+
const basicFileInput = this.basicFileInput();
|
|
944
|
+
if (basicFileInput && basicFileInput.nativeElement) {
|
|
945
|
+
basicFileInput.nativeElement.value = '';
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
clearIEInput() {
|
|
949
|
+
if (this.advancedFileInput() && this.advancedFileInput().nativeElement) {
|
|
950
|
+
this.duplicateIEEvent = true; //IE11 fix to prevent onFileChange trigger again
|
|
951
|
+
this.advancedFileInput().nativeElement.value = '';
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
hasFiles() {
|
|
955
|
+
return this.files() && this.files().length > 0;
|
|
956
|
+
}
|
|
957
|
+
hasUploadedFiles() {
|
|
958
|
+
return this.uploadedFiles && this.uploadedFiles.length > 0;
|
|
959
|
+
}
|
|
960
|
+
onDragEnter(e) {
|
|
961
|
+
if (!this.disabled()) {
|
|
962
|
+
e.stopPropagation();
|
|
963
|
+
e.preventDefault();
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
onDragOver(e) {
|
|
967
|
+
if (!this.disabled()) {
|
|
968
|
+
!this.$unstyled() && addClass(this.content()?.nativeElement, 'h-fileupload-highlight');
|
|
969
|
+
this.content()?.nativeElement.setAttribute('data-h-highlight', true);
|
|
970
|
+
this.dragHighlight = true;
|
|
971
|
+
e.stopPropagation();
|
|
972
|
+
e.preventDefault();
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
onDragLeave(event) {
|
|
976
|
+
if (!this.disabled()) {
|
|
977
|
+
!this.$unstyled() && removeClass(this.content()?.nativeElement, 'h-fileupload-highlight');
|
|
978
|
+
this.content()?.nativeElement.setAttribute('data-h-highlight', false);
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
onDrop(event) {
|
|
982
|
+
if (!this.disabled()) {
|
|
983
|
+
!this.$unstyled() && removeClass(this.content()?.nativeElement, 'h-fileupload-highlight');
|
|
984
|
+
this.content()?.nativeElement.setAttribute('data-h-highlight', false);
|
|
985
|
+
event.stopPropagation();
|
|
986
|
+
event.preventDefault();
|
|
987
|
+
let files = event.dataTransfer ? event.dataTransfer.files : event.target.files;
|
|
988
|
+
let allowDrop = this.multiple() || (files && files.length === 1);
|
|
989
|
+
if (allowDrop) {
|
|
990
|
+
this.onFileSelect(event);
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
onFocus() {
|
|
995
|
+
this.focus = true;
|
|
996
|
+
}
|
|
997
|
+
onBlur() {
|
|
998
|
+
this.focus = false;
|
|
999
|
+
}
|
|
1000
|
+
formatSize(bytes) {
|
|
1001
|
+
const k = 1024;
|
|
1002
|
+
const dm = 3;
|
|
1003
|
+
const sizes = this.getTranslation(TranslationKeys.FILE_SIZE_TYPES);
|
|
1004
|
+
if (bytes === 0) {
|
|
1005
|
+
return `0 ${sizes[0]}`;
|
|
1006
|
+
}
|
|
1007
|
+
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
1008
|
+
const formattedSize = (bytes / Math.pow(k, i)).toFixed(dm);
|
|
1009
|
+
return `${formattedSize} ${sizes[i]}`;
|
|
1010
|
+
}
|
|
1011
|
+
upload() {
|
|
1012
|
+
if (this.hasFiles())
|
|
1013
|
+
this.uploader();
|
|
1014
|
+
}
|
|
1015
|
+
onBasicUploaderClick() {
|
|
1016
|
+
this.basicFileInput()?.nativeElement.click();
|
|
1017
|
+
}
|
|
1018
|
+
onBasicKeydown(event) {
|
|
1019
|
+
switch (event.code) {
|
|
1020
|
+
case 'Space':
|
|
1021
|
+
case 'Enter':
|
|
1022
|
+
this.onBasicUploaderClick();
|
|
1023
|
+
event.preventDefault();
|
|
1024
|
+
break;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
imageError(event) {
|
|
1028
|
+
this.onImageError.emit(event);
|
|
1029
|
+
}
|
|
1030
|
+
getBlockableElement() {
|
|
1031
|
+
return this.el.nativeElement.children[0];
|
|
1032
|
+
}
|
|
1033
|
+
get chooseButtonLabel() {
|
|
1034
|
+
return this.chooseLabel() || this.config.getTranslation(TranslationKeys.CHOOSE);
|
|
1035
|
+
}
|
|
1036
|
+
get uploadButtonLabel() {
|
|
1037
|
+
return this.uploadLabel() || this.config.getTranslation(TranslationKeys.UPLOAD);
|
|
1038
|
+
}
|
|
1039
|
+
get cancelButtonLabel() {
|
|
1040
|
+
return this.cancelLabel() || this.config.getTranslation(TranslationKeys.CANCEL);
|
|
1041
|
+
}
|
|
1042
|
+
get browseFilesLabel() {
|
|
1043
|
+
return this.config.getTranslation(TranslationKeys.ARIA)[TranslationKeys.BROWSE_FILES];
|
|
1044
|
+
}
|
|
1045
|
+
get pendingLabel() {
|
|
1046
|
+
return this.config.getTranslation(TranslationKeys.PENDING);
|
|
1047
|
+
}
|
|
1048
|
+
onDestroy() {
|
|
1049
|
+
const content = this.content();
|
|
1050
|
+
if (content && content.nativeElement) {
|
|
1051
|
+
if (this.dragOverListener) {
|
|
1052
|
+
this.dragOverListener();
|
|
1053
|
+
this.dragOverListener = null;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
if (this.translationSubscription) {
|
|
1057
|
+
this.translationSubscription.unsubscribe();
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUpload, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1061
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: FileUpload, isStandalone: true, selector: "h-fileupload, h-fileUpload", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, method: { classPropertyName: "method", publicName: "method", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, auto: { classPropertyName: "auto", publicName: "auto", isSignal: true, isRequired: false, transformFunction: null }, withCredentials: { classPropertyName: "withCredentials", publicName: "withCredentials", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", isSignal: true, isRequired: false, transformFunction: null }, invalidFileSizeMessageSummary: { classPropertyName: "invalidFileSizeMessageSummary", publicName: "invalidFileSizeMessageSummary", isSignal: true, isRequired: false, transformFunction: null }, invalidFileSizeMessageDetail: { classPropertyName: "invalidFileSizeMessageDetail", publicName: "invalidFileSizeMessageDetail", isSignal: true, isRequired: false, transformFunction: null }, invalidFileTypeMessageSummary: { classPropertyName: "invalidFileTypeMessageSummary", publicName: "invalidFileTypeMessageSummary", isSignal: true, isRequired: false, transformFunction: null }, invalidFileTypeMessageDetail: { classPropertyName: "invalidFileTypeMessageDetail", publicName: "invalidFileTypeMessageDetail", isSignal: true, isRequired: false, transformFunction: null }, invalidFileLimitMessageDetail: { classPropertyName: "invalidFileLimitMessageDetail", publicName: "invalidFileLimitMessageDetail", isSignal: true, isRequired: false, transformFunction: null }, invalidFileLimitMessageSummary: { classPropertyName: "invalidFileLimitMessageSummary", publicName: "invalidFileLimitMessageSummary", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, previewWidth: { classPropertyName: "previewWidth", publicName: "previewWidth", isSignal: true, isRequired: false, transformFunction: null }, chooseLabel: { classPropertyName: "chooseLabel", publicName: "chooseLabel", isSignal: true, isRequired: false, transformFunction: null }, uploadLabel: { classPropertyName: "uploadLabel", publicName: "uploadLabel", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, chooseIcon: { classPropertyName: "chooseIcon", publicName: "chooseIcon", isSignal: true, isRequired: false, transformFunction: null }, uploadIcon: { classPropertyName: "uploadIcon", publicName: "uploadIcon", isSignal: true, isRequired: false, transformFunction: null }, cancelIcon: { classPropertyName: "cancelIcon", publicName: "cancelIcon", isSignal: true, isRequired: false, transformFunction: null }, showUploadButton: { classPropertyName: "showUploadButton", publicName: "showUploadButton", isSignal: true, isRequired: false, transformFunction: null }, showCancelButton: { classPropertyName: "showCancelButton", publicName: "showCancelButton", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, headers: { classPropertyName: "headers", publicName: "headers", isSignal: true, isRequired: false, transformFunction: null }, customUpload: { classPropertyName: "customUpload", publicName: "customUpload", isSignal: true, isRequired: false, transformFunction: null }, fileLimit: { classPropertyName: "fileLimit", publicName: "fileLimit", isSignal: true, isRequired: false, transformFunction: null }, uploadStyleClass: { classPropertyName: "uploadStyleClass", publicName: "uploadStyleClass", isSignal: true, isRequired: false, transformFunction: null }, cancelStyleClass: { classPropertyName: "cancelStyleClass", publicName: "cancelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, removeStyleClass: { classPropertyName: "removeStyleClass", publicName: "removeStyleClass", isSignal: true, isRequired: false, transformFunction: null }, chooseStyleClass: { classPropertyName: "chooseStyleClass", publicName: "chooseStyleClass", isSignal: true, isRequired: false, transformFunction: null }, chooseButtonProps: { classPropertyName: "chooseButtonProps", publicName: "chooseButtonProps", isSignal: true, isRequired: false, transformFunction: null }, uploadButtonProps: { classPropertyName: "uploadButtonProps", publicName: "uploadButtonProps", isSignal: true, isRequired: false, transformFunction: null }, cancelButtonProps: { classPropertyName: "cancelButtonProps", publicName: "cancelButtonProps", isSignal: true, isRequired: false, transformFunction: null }, files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onBeforeUpload: "onBeforeUpload", onSend: "onSend", onUpload: "onUpload", onError: "onError", onClear: "onClear", onRemove: "onRemove", onSelect: "onSelect", onProgress: "onProgress", uploadHandler: "uploadHandler", onImageError: "onImageError", onRemoveUploadedFile: "onRemoveUploadedFile", files: "filesChange" }, providers: [FileUploadStyle, { provide: FILEUPLOAD_INSTANCE, useExisting: FileUpload }, { provide: PARENT_INSTANCE, useExisting: FileUpload }], queries: [{ propertyName: "fileTemplate", first: true, predicate: ["file"], isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "toolbarTemplate", first: true, predicate: ["toolbar"], isSignal: true }, { propertyName: "chooseIconTemplate", first: true, predicate: ["chooseicon"], isSignal: true }, { propertyName: "fileLabelTemplate", first: true, predicate: ["filelabel"], isSignal: true }, { propertyName: "uploadIconTemplate", first: true, predicate: ["uploadicon"], isSignal: true }, { propertyName: "cancelIconTemplate", first: true, predicate: ["cancelicon"], isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], isSignal: true }, { propertyName: "templates", predicate: HelixTemplate, isSignal: true }], viewQueries: [{ propertyName: "advancedFileInput", first: true, predicate: ["advancedfileinput"], descendants: true, isSignal: true }, { propertyName: "basicFileInput", first: true, predicate: ["basicfileinput"], descendants: true, isSignal: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i2.Bind }], ngImport: i0, template: "@if (mode() === 'advanced') {\n <div [class]=\"cn(cx('root'), styleClass())\" [ngStyle]=\"style()\" [hBind]=\"ptm('root')\">\n <input [attr.aria-label]=\"browseFilesLabel\" #advancedfileinput type=\"file\" (change)=\"onFileSelect($event)\" [multiple]=\"multiple()\" [accept]=\"accept()\" [disabled]=\"disabled() || isChooseDisabled()\" [attr.title]=\"''\" [hBind]=\"ptm('input')\" />\n <div [class]=\"cx('header')\" [hBind]=\"ptm('header')\">\n @if (!headerTemplate() && !_headerTemplate) {\n <h-button\n [styleClass]=\"cn(cx('pcChooseButton'), chooseStyleClass())\"\n [disabled]=\"disabled() || isChooseDisabled()\"\n (focus)=\"onFocus()\"\n [label]=\"chooseButtonLabel\"\n (blur)=\"onBlur()\"\n (onClick)=\"choose()\"\n (keydown.enter)=\"choose()\"\n [buttonProps]=\"chooseButtonProps()\"\n [pt]=\"ptm('pcChooseButton')\"\n [unstyled]=\"unstyled()\"\n >\n <input\n [attr.aria-label]=\"browseFilesLabel\"\n #advancedfileinput\n type=\"file\"\n (change)=\"onFileSelect($event)\"\n [multiple]=\"multiple()\"\n [accept]=\"accept()\"\n [disabled]=\"disabled() || isChooseDisabled()\"\n [attr.title]=\"''\"\n [hBind]=\"ptm('input')\"\n />\n <ng-template #icon>\n @if (chooseIcon()) {\n <span [class]=\"chooseIcon()\" [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!chooseIcon()) {\n @if (!chooseIconTemplate() && !_chooseIconTemplate) {\n <svg data-h-icon=\"plus\" [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n @if (chooseIconTemplate() || _chooseIconTemplate) {\n <span [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"chooseIconTemplate() || _chooseIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n @if (!auto() && showUploadButton()) {\n <h-button\n [label]=\"uploadButtonLabel\"\n (onClick)=\"upload()\"\n [disabled]=\"!hasFiles() || isFileLimitExceeded()\"\n [styleClass]=\"cn(cx('pcUploadButton'), uploadStyleClass())\"\n [buttonProps]=\"uploadButtonProps()\"\n [pt]=\"ptm('pcUploadButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (uploadIcon()) {\n <span [ngClass]=\"uploadIcon()\" [attr.aria-hidden]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\"></span>\n }\n @if (!uploadIcon()) {\n @if (!uploadIconTemplate() && !_uploadIconTemplate) {\n <svg data-h-icon=\"upload\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\" />\n }\n @if (uploadIconTemplate() || _uploadIconTemplate) {\n <span [attr.aria-hidden]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"uploadIconTemplate() || _uploadIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n }\n @if (!auto() && showCancelButton()) {\n <h-button\n [label]=\"cancelButtonLabel\"\n (onClick)=\"clear()\"\n [disabled]=\"!hasFiles() || uploading\"\n [styleClass]=\"cn(cx('pcCancelButton'), cancelStyleClass())\"\n [buttonProps]=\"cancelButtonProps()\"\n [pt]=\"ptm('pcCancelButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (cancelIcon()) {\n <span [ngClass]=\"cancelIcon()\"></span>\n }\n @if (!cancelIcon()) {\n @if (!cancelIconTemplate() && !_cancelIconTemplate) {\n <svg data-h-icon=\"times\" [attr.aria-hidden]=\"true\" />\n }\n @if (cancelIconTemplate() || _cancelIconTemplate) {\n <span [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"cancelIconTemplate() || _cancelIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n }\n }\n <ng-container\n *ngTemplateOutlet=\"\n headerTemplate() || _headerTemplate;\n context: {\n $implicit: files(),\n uploadedFiles: uploadedFiles,\n chooseCallback: choose.bind(this),\n clearCallback: clear.bind(this),\n uploadCallback: upload.bind(this)\n }\n \"\n ></ng-container>\n <ng-container *ngTemplateOutlet=\"toolbarTemplate() || _toolbarTemplate\"></ng-container>\n </div>\n <div #content [class]=\"cx('content')\" (dragenter)=\"onDragEnter($event)\" (dragleave)=\"onDragLeave($event)\" (drop)=\"onDrop($event)\" [hBind]=\"ptm('content')\">\n @if (contentTemplate() || _contentTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n contentTemplate() || _contentTemplate;\n context: {\n $implicit: files(),\n uploadedFiles: uploadedFiles,\n chooseCallback: choose.bind(this),\n clearCallback: clear.bind(this),\n removeUploadedFileCallback: removeUploadedFile.bind(this),\n removeFileCallback: remove.bind(this),\n progress: progress,\n messages: msgs\n }\n \"\n ></ng-container>\n } @else {\n @if (hasFiles()) {\n <h-progressbar [value]=\"progress\" [showValue]=\"false\" [pt]=\"ptm('pcProgressBar')\"></h-progressbar>\n }\n @for (message of msgs; track message) {\n <h-message [severity]=\"message.severity\" [text]=\"message.text\" [pt]=\"ptm('pcMessage')\" [unstyled]=\"unstyled()\"></h-message>\n }\n @if (hasFiles()) {\n <div [class]=\"cx('fileList')\" [hBind]=\"ptm('fileList')\">\n @for (file of files(); track file; let i = $index) {\n <ng-container *ngTemplateOutlet=\"fileTemplate() || _fileTemplate; context: { $implicit: file, index: i }\"></ng-container>\n }\n @if (!fileTemplate() && !_fileTemplate) {\n <div\n hFileContent\n [unstyled]=\"unstyled()\"\n [files]=\"files()\"\n (onRemove)=\"onRemoveClick($event)\"\n [badgeValue]=\"pendingLabel\"\n [previewWidth]=\"previewWidth()\"\n [fileRemoveIconTemplate]=\"cancelIconTemplate() || _cancelIconTemplate\"\n ></div>\n }\n </div>\n }\n @if (hasUploadedFiles()) {\n <div [class]=\"cx('fileList')\" [hBind]=\"ptm('fileList')\">\n @for (file of uploadedFiles; track file; let i = $index) {\n <ng-container *ngTemplateOutlet=\"fileTemplate() || _fileTemplate; context: { $implicit: file, index: i }\"></ng-container>\n }\n @if (!fileTemplate() && !_fileTemplate) {\n <div\n hFileContent\n [unstyled]=\"unstyled()\"\n [files]=\"uploadedFiles\"\n (onRemove)=\"onRemoveUploadedFileClick($event)\"\n [badgeValue]=\"completedLabel()\"\n badgeSeverity=\"success\"\n [previewWidth]=\"previewWidth()\"\n [fileRemoveIconTemplate]=\"cancelIconTemplate() || _cancelIconTemplate\"\n ></div>\n }\n </div>\n }\n }\n @if ((emptyTemplate() || _emptyTemplate) && !hasFiles() && !hasUploadedFiles()) {\n <ng-container *ngTemplateOutlet=\"emptyTemplate() || _emptyTemplate\" [hBind]=\"ptm('empty')\"></ng-container>\n }\n</div>\n</div>\n}\n@if (mode() === 'basic') {\n <div [class]=\"cn(cx('root'), styleClass())\" [hBind]=\"ptm('root')\">\n @for (message of msgs; track message) {\n <h-message [severity]=\"message.severity\" [text]=\"message.text\" [pt]=\"ptm('pcMessage')\" [unstyled]=\"unstyled()\"></h-message>\n }\n <div [class]=\"cx('basicContent')\" [hBind]=\"ptm('basicContent')\">\n <h-button\n [styleClass]=\"cn(cx('pcChooseButton'), chooseStyleClass())\"\n [disabled]=\"disabled()\"\n [label]=\"chooseButtonLabel\"\n [style]=\"style()\"\n (onClick)=\"onBasicUploaderClick()\"\n (keydown)=\"onBasicKeydown($event)\"\n [buttonProps]=\"chooseButtonProps()\"\n [pt]=\"ptm('pcChooseButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (hasFiles() && !auto()) {\n @if (uploadIcon()) {\n <span class=\"h-button-icon h-button-icon-left\" [ngClass]=\"uploadIcon()\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!uploadIcon()) {\n @if (!uploadIconTemplate() && !_uploadIconTemplate) {\n <svg data-h-icon=\"upload\" [class]=\"'h-button-icon h-button-icon-left'\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n @if (_uploadIconTemplate || uploadIconTemplate()) {\n <span class=\"h-button-icon h-button-icon-left\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"_uploadIconTemplate || uploadIconTemplate()\"></ng-template>\n </span>\n }\n }\n } @else {\n @if (chooseIcon()) {\n <span class=\"h-button-icon h-button-icon-left pi\" [ngClass]=\"chooseIcon()\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!chooseIcon()) {\n @if (!chooseIconTemplate() && !_chooseIconTemplate) {\n <svg data-h-icon=\"plus\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n <ng-template *ngTemplateOutlet=\"chooseIconTemplate() || _chooseIconTemplate\"></ng-template>\n }\n }\n </ng-template>\n <input [attr.aria-label]=\"browseFilesLabel\" #basicfileinput type=\"file\" [accept]=\"accept()\" [multiple]=\"multiple()\" [disabled]=\"disabled()\" (change)=\"onFileSelect($event)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\" [hBind]=\"ptm('input')\" />\n </h-button>\n @if (!auto()) {\n @if (!fileLabelTemplate() && !_fileLabelTemplate) {\n <span>\n {{ basicFileChosenLabel() }}\n </span>\n } @else {\n <ng-container *ngTemplateOutlet=\"fileLabelTemplate() || _fileLabelTemplate; context: { $implicit: files() }\"></ng-container>\n }\n }\n </div>\n </div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Button, selector: "h-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: ProgressBar, selector: "h-progressBar, h-progressbar, h-progress-bar", inputs: ["value", "showValue", "styleClass", "valueStyleClass", "unit", "mode", "color"] }, { kind: "component", type: Message, selector: "h-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant", "motionOptions"], outputs: ["onClose"] }, { kind: "component", type: PlusIcon, selector: "[data-h-icon=\"plus\"]" }, { kind: "component", type: UploadIcon, selector: "[data-h-icon=\"upload\"]" }, { kind: "component", type: TimesIcon, selector: "[data-h-icon=\"times\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "component", type: FileContent, selector: "[hFileContent]", inputs: ["files", "badgeSeverity", "badgeValue", "previewWidth", "fileRemoveIconTemplate"], outputs: ["onRemove"] }, { kind: "directive", type: Bind, selector: "[hBind]", inputs: ["hBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1062
|
+
}
|
|
1063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUpload, decorators: [{
|
|
1064
|
+
type: Component,
|
|
1065
|
+
args: [{ selector: 'h-fileupload, h-fileUpload', standalone: true, imports: [CommonModule, Button, ProgressBar, Message, PlusIcon, UploadIcon, TimesIcon, SharedModule, FileContent, Bind], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [FileUploadStyle, { provide: FILEUPLOAD_INSTANCE, useExisting: FileUpload }, { provide: PARENT_INSTANCE, useExisting: FileUpload }], hostDirectives: [Bind], template: "@if (mode() === 'advanced') {\n <div [class]=\"cn(cx('root'), styleClass())\" [ngStyle]=\"style()\" [hBind]=\"ptm('root')\">\n <input [attr.aria-label]=\"browseFilesLabel\" #advancedfileinput type=\"file\" (change)=\"onFileSelect($event)\" [multiple]=\"multiple()\" [accept]=\"accept()\" [disabled]=\"disabled() || isChooseDisabled()\" [attr.title]=\"''\" [hBind]=\"ptm('input')\" />\n <div [class]=\"cx('header')\" [hBind]=\"ptm('header')\">\n @if (!headerTemplate() && !_headerTemplate) {\n <h-button\n [styleClass]=\"cn(cx('pcChooseButton'), chooseStyleClass())\"\n [disabled]=\"disabled() || isChooseDisabled()\"\n (focus)=\"onFocus()\"\n [label]=\"chooseButtonLabel\"\n (blur)=\"onBlur()\"\n (onClick)=\"choose()\"\n (keydown.enter)=\"choose()\"\n [buttonProps]=\"chooseButtonProps()\"\n [pt]=\"ptm('pcChooseButton')\"\n [unstyled]=\"unstyled()\"\n >\n <input\n [attr.aria-label]=\"browseFilesLabel\"\n #advancedfileinput\n type=\"file\"\n (change)=\"onFileSelect($event)\"\n [multiple]=\"multiple()\"\n [accept]=\"accept()\"\n [disabled]=\"disabled() || isChooseDisabled()\"\n [attr.title]=\"''\"\n [hBind]=\"ptm('input')\"\n />\n <ng-template #icon>\n @if (chooseIcon()) {\n <span [class]=\"chooseIcon()\" [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!chooseIcon()) {\n @if (!chooseIconTemplate() && !_chooseIconTemplate) {\n <svg data-h-icon=\"plus\" [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n @if (chooseIconTemplate() || _chooseIconTemplate) {\n <span [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"chooseIconTemplate() || _chooseIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n @if (!auto() && showUploadButton()) {\n <h-button\n [label]=\"uploadButtonLabel\"\n (onClick)=\"upload()\"\n [disabled]=\"!hasFiles() || isFileLimitExceeded()\"\n [styleClass]=\"cn(cx('pcUploadButton'), uploadStyleClass())\"\n [buttonProps]=\"uploadButtonProps()\"\n [pt]=\"ptm('pcUploadButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (uploadIcon()) {\n <span [ngClass]=\"uploadIcon()\" [attr.aria-hidden]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\"></span>\n }\n @if (!uploadIcon()) {\n @if (!uploadIconTemplate() && !_uploadIconTemplate) {\n <svg data-h-icon=\"upload\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\" />\n }\n @if (uploadIconTemplate() || _uploadIconTemplate) {\n <span [attr.aria-hidden]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"uploadIconTemplate() || _uploadIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n }\n @if (!auto() && showCancelButton()) {\n <h-button\n [label]=\"cancelButtonLabel\"\n (onClick)=\"clear()\"\n [disabled]=\"!hasFiles() || uploading\"\n [styleClass]=\"cn(cx('pcCancelButton'), cancelStyleClass())\"\n [buttonProps]=\"cancelButtonProps()\"\n [pt]=\"ptm('pcCancelButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (cancelIcon()) {\n <span [ngClass]=\"cancelIcon()\"></span>\n }\n @if (!cancelIcon()) {\n @if (!cancelIconTemplate() && !_cancelIconTemplate) {\n <svg data-h-icon=\"times\" [attr.aria-hidden]=\"true\" />\n }\n @if (cancelIconTemplate() || _cancelIconTemplate) {\n <span [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"cancelIconTemplate() || _cancelIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n }\n }\n <ng-container\n *ngTemplateOutlet=\"\n headerTemplate() || _headerTemplate;\n context: {\n $implicit: files(),\n uploadedFiles: uploadedFiles,\n chooseCallback: choose.bind(this),\n clearCallback: clear.bind(this),\n uploadCallback: upload.bind(this)\n }\n \"\n ></ng-container>\n <ng-container *ngTemplateOutlet=\"toolbarTemplate() || _toolbarTemplate\"></ng-container>\n </div>\n <div #content [class]=\"cx('content')\" (dragenter)=\"onDragEnter($event)\" (dragleave)=\"onDragLeave($event)\" (drop)=\"onDrop($event)\" [hBind]=\"ptm('content')\">\n @if (contentTemplate() || _contentTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n contentTemplate() || _contentTemplate;\n context: {\n $implicit: files(),\n uploadedFiles: uploadedFiles,\n chooseCallback: choose.bind(this),\n clearCallback: clear.bind(this),\n removeUploadedFileCallback: removeUploadedFile.bind(this),\n removeFileCallback: remove.bind(this),\n progress: progress,\n messages: msgs\n }\n \"\n ></ng-container>\n } @else {\n @if (hasFiles()) {\n <h-progressbar [value]=\"progress\" [showValue]=\"false\" [pt]=\"ptm('pcProgressBar')\"></h-progressbar>\n }\n @for (message of msgs; track message) {\n <h-message [severity]=\"message.severity\" [text]=\"message.text\" [pt]=\"ptm('pcMessage')\" [unstyled]=\"unstyled()\"></h-message>\n }\n @if (hasFiles()) {\n <div [class]=\"cx('fileList')\" [hBind]=\"ptm('fileList')\">\n @for (file of files(); track file; let i = $index) {\n <ng-container *ngTemplateOutlet=\"fileTemplate() || _fileTemplate; context: { $implicit: file, index: i }\"></ng-container>\n }\n @if (!fileTemplate() && !_fileTemplate) {\n <div\n hFileContent\n [unstyled]=\"unstyled()\"\n [files]=\"files()\"\n (onRemove)=\"onRemoveClick($event)\"\n [badgeValue]=\"pendingLabel\"\n [previewWidth]=\"previewWidth()\"\n [fileRemoveIconTemplate]=\"cancelIconTemplate() || _cancelIconTemplate\"\n ></div>\n }\n </div>\n }\n @if (hasUploadedFiles()) {\n <div [class]=\"cx('fileList')\" [hBind]=\"ptm('fileList')\">\n @for (file of uploadedFiles; track file; let i = $index) {\n <ng-container *ngTemplateOutlet=\"fileTemplate() || _fileTemplate; context: { $implicit: file, index: i }\"></ng-container>\n }\n @if (!fileTemplate() && !_fileTemplate) {\n <div\n hFileContent\n [unstyled]=\"unstyled()\"\n [files]=\"uploadedFiles\"\n (onRemove)=\"onRemoveUploadedFileClick($event)\"\n [badgeValue]=\"completedLabel()\"\n badgeSeverity=\"success\"\n [previewWidth]=\"previewWidth()\"\n [fileRemoveIconTemplate]=\"cancelIconTemplate() || _cancelIconTemplate\"\n ></div>\n }\n </div>\n }\n }\n @if ((emptyTemplate() || _emptyTemplate) && !hasFiles() && !hasUploadedFiles()) {\n <ng-container *ngTemplateOutlet=\"emptyTemplate() || _emptyTemplate\" [hBind]=\"ptm('empty')\"></ng-container>\n }\n</div>\n</div>\n}\n@if (mode() === 'basic') {\n <div [class]=\"cn(cx('root'), styleClass())\" [hBind]=\"ptm('root')\">\n @for (message of msgs; track message) {\n <h-message [severity]=\"message.severity\" [text]=\"message.text\" [pt]=\"ptm('pcMessage')\" [unstyled]=\"unstyled()\"></h-message>\n }\n <div [class]=\"cx('basicContent')\" [hBind]=\"ptm('basicContent')\">\n <h-button\n [styleClass]=\"cn(cx('pcChooseButton'), chooseStyleClass())\"\n [disabled]=\"disabled()\"\n [label]=\"chooseButtonLabel\"\n [style]=\"style()\"\n (onClick)=\"onBasicUploaderClick()\"\n (keydown)=\"onBasicKeydown($event)\"\n [buttonProps]=\"chooseButtonProps()\"\n [pt]=\"ptm('pcChooseButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (hasFiles() && !auto()) {\n @if (uploadIcon()) {\n <span class=\"h-button-icon h-button-icon-left\" [ngClass]=\"uploadIcon()\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!uploadIcon()) {\n @if (!uploadIconTemplate() && !_uploadIconTemplate) {\n <svg data-h-icon=\"upload\" [class]=\"'h-button-icon h-button-icon-left'\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n @if (_uploadIconTemplate || uploadIconTemplate()) {\n <span class=\"h-button-icon h-button-icon-left\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"_uploadIconTemplate || uploadIconTemplate()\"></ng-template>\n </span>\n }\n }\n } @else {\n @if (chooseIcon()) {\n <span class=\"h-button-icon h-button-icon-left pi\" [ngClass]=\"chooseIcon()\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!chooseIcon()) {\n @if (!chooseIconTemplate() && !_chooseIconTemplate) {\n <svg data-h-icon=\"plus\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n <ng-template *ngTemplateOutlet=\"chooseIconTemplate() || _chooseIconTemplate\"></ng-template>\n }\n }\n </ng-template>\n <input [attr.aria-label]=\"browseFilesLabel\" #basicfileinput type=\"file\" [accept]=\"accept()\" [multiple]=\"multiple()\" [disabled]=\"disabled()\" (change)=\"onFileSelect($event)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\" [hBind]=\"ptm('input')\" />\n </h-button>\n @if (!auto()) {\n @if (!fileLabelTemplate() && !_fileLabelTemplate) {\n <span>\n {{ basicFileChosenLabel() }}\n </span>\n } @else {\n <ng-container *ngTemplateOutlet=\"fileLabelTemplate() || _fileLabelTemplate; context: { $implicit: files() }\"></ng-container>\n }\n }\n </div>\n </div>\n}\n" }]
|
|
1066
|
+
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: false }] }], method: [{ type: i0.Input, args: [{ isSignal: true, alias: "method", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], auto: [{ type: i0.Input, args: [{ isSignal: true, alias: "auto", required: false }] }], withCredentials: [{ type: i0.Input, args: [{ isSignal: true, alias: "withCredentials", required: false }] }], maxFileSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxFileSize", required: false }] }], invalidFileSizeMessageSummary: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidFileSizeMessageSummary", required: false }] }], invalidFileSizeMessageDetail: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidFileSizeMessageDetail", required: false }] }], invalidFileTypeMessageSummary: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidFileTypeMessageSummary", required: false }] }], invalidFileTypeMessageDetail: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidFileTypeMessageDetail", required: false }] }], invalidFileLimitMessageDetail: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidFileLimitMessageDetail", required: false }] }], invalidFileLimitMessageSummary: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidFileLimitMessageSummary", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], previewWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewWidth", required: false }] }], chooseLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "chooseLabel", required: false }] }], uploadLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploadLabel", required: false }] }], cancelLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelLabel", required: false }] }], chooseIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "chooseIcon", required: false }] }], uploadIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploadIcon", required: false }] }], cancelIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelIcon", required: false }] }], showUploadButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showUploadButton", required: false }] }], showCancelButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCancelButton", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], headers: [{ type: i0.Input, args: [{ isSignal: true, alias: "headers", required: false }] }], customUpload: [{ type: i0.Input, args: [{ isSignal: true, alias: "customUpload", required: false }] }], fileLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileLimit", required: false }] }], uploadStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploadStyleClass", required: false }] }], cancelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelStyleClass", required: false }] }], removeStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeStyleClass", required: false }] }], chooseStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "chooseStyleClass", required: false }] }], chooseButtonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "chooseButtonProps", required: false }] }], uploadButtonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploadButtonProps", required: false }] }], cancelButtonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelButtonProps", required: false }] }], onBeforeUpload: [{ type: i0.Output, args: ["onBeforeUpload"] }], onSend: [{ type: i0.Output, args: ["onSend"] }], onUpload: [{ type: i0.Output, args: ["onUpload"] }], onError: [{ type: i0.Output, args: ["onError"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], onRemove: [{ type: i0.Output, args: ["onRemove"] }], onSelect: [{ type: i0.Output, args: ["onSelect"] }], onProgress: [{ type: i0.Output, args: ["onProgress"] }], uploadHandler: [{ type: i0.Output, args: ["uploadHandler"] }], onImageError: [{ type: i0.Output, args: ["onImageError"] }], onRemoveUploadedFile: [{ type: i0.Output, args: ["onRemoveUploadedFile"] }], fileTemplate: [{ type: i0.ContentChild, args: ['file', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], toolbarTemplate: [{ type: i0.ContentChild, args: ['toolbar', { ...{ descendants: false }, isSignal: true }] }], chooseIconTemplate: [{ type: i0.ContentChild, args: ['chooseicon', { ...{ descendants: false }, isSignal: true }] }], fileLabelTemplate: [{ type: i0.ContentChild, args: ['filelabel', { ...{ descendants: false }, isSignal: true }] }], uploadIconTemplate: [{ type: i0.ContentChild, args: ['uploadicon', { ...{ descendants: false }, isSignal: true }] }], cancelIconTemplate: [{ type: i0.ContentChild, args: ['cancelicon', { ...{ descendants: false }, isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: ['empty', { ...{ descendants: false }, isSignal: true }] }], advancedFileInput: [{ type: i0.ViewChild, args: ['advancedfileinput', { isSignal: true }] }], basicFileInput: [{ type: i0.ViewChild, args: ['basicfileinput', { isSignal: true }] }], content: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], files: [{ type: i0.Input, args: [{ isSignal: true, alias: "files", required: false }] }, { type: i0.Output, args: ["filesChange"] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => HelixTemplate), { isSignal: true }] }] } });
|
|
1067
|
+
class FileUploadModule {
|
|
1068
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1069
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.6", ngImport: i0, type: FileUploadModule, imports: [FileUpload, SharedModule], exports: [FileUpload, SharedModule] });
|
|
1070
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUploadModule, imports: [FileUpload, SharedModule, SharedModule] });
|
|
1071
|
+
}
|
|
1072
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUploadModule, decorators: [{
|
|
1073
|
+
type: NgModule,
|
|
1074
|
+
args: [{
|
|
1075
|
+
imports: [FileUpload, SharedModule],
|
|
1076
|
+
exports: [FileUpload, SharedModule]
|
|
1077
|
+
}]
|
|
1078
|
+
}] });
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* Generated bundle index. Do not edit.
|
|
1082
|
+
*/
|
|
1083
|
+
|
|
1084
|
+
export { FileContent, FileUpload, FileUploadClasses, FileUploadModule, FileUploadStyle };
|
|
1085
|
+
//# sourceMappingURL=gravionlabs-helix-core-fileupload.mjs.map
|