@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,1513 @@
|
|
|
1
|
+
import * as i2 from '@angular/common';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Injectable, InjectionToken, forwardRef, inject, input, booleanAttribute, numberAttribute, output, contentChild, contentChildren, viewChild, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
5
|
+
import { NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
|
|
6
|
+
import { getSelection } from '@gravionlabs/helix-core/uix/utils';
|
|
7
|
+
import { HelixTemplate, SharedModule } from '@gravionlabs/helix-core/api';
|
|
8
|
+
import { AutoFocus } from '@gravionlabs/helix-core/autofocus';
|
|
9
|
+
import { PARENT_INSTANCE } from '@gravionlabs/helix-core/basecomponent';
|
|
10
|
+
import { BaseInput } from '@gravionlabs/helix-core/baseinput';
|
|
11
|
+
import * as i1 from '@gravionlabs/helix-core/bind';
|
|
12
|
+
import { Bind, BindModule } from '@gravionlabs/helix-core/bind';
|
|
13
|
+
import { TimesIcon, AngleUpIcon, AngleDownIcon } from '@gravionlabs/helix-core/icons';
|
|
14
|
+
import { InputText } from '@gravionlabs/helix-core/inputtext';
|
|
15
|
+
import { BaseStyle } from '@gravionlabs/helix-core/base';
|
|
16
|
+
export * from '@gravionlabs/helix-core/types/inputnumber';
|
|
17
|
+
|
|
18
|
+
const style$1 = /*css*/ `
|
|
19
|
+
.h-inputnumber {
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
position: relative;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.h-inputnumber-button {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
flex: 0 0 auto;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
background: dt('inputnumber.button.background');
|
|
31
|
+
color: dt('inputnumber.button.color');
|
|
32
|
+
width: dt('inputnumber.button.width');
|
|
33
|
+
transition:
|
|
34
|
+
background dt('inputnumber.transition.duration'),
|
|
35
|
+
color dt('inputnumber.transition.duration'),
|
|
36
|
+
border-color dt('inputnumber.transition.duration'),
|
|
37
|
+
outline-color dt('inputnumber.transition.duration');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.h-inputnumber-button:disabled {
|
|
41
|
+
cursor: auto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.h-inputnumber-button:not(:disabled):hover {
|
|
45
|
+
background: dt('inputnumber.button.hover.background');
|
|
46
|
+
color: dt('inputnumber.button.hover.color');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.h-inputnumber-button:not(:disabled):active {
|
|
50
|
+
background: dt('inputnumber.button.active.background');
|
|
51
|
+
color: dt('inputnumber.button.active.color');
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.h-inputnumber-stacked .h-inputnumber-button {
|
|
55
|
+
position: relative;
|
|
56
|
+
flex: 1 1 auto;
|
|
57
|
+
border: 0 none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.h-inputnumber-stacked .h-inputnumber-button-group {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
position: absolute;
|
|
64
|
+
inset-block-start: 1px;
|
|
65
|
+
inset-inline-end: 1px;
|
|
66
|
+
height: calc(100% - 2px);
|
|
67
|
+
z-index: 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.h-inputnumber-stacked .h-inputnumber-increment-button {
|
|
71
|
+
padding: 0;
|
|
72
|
+
border-start-end-radius: calc(dt('inputnumber.button.border.radius') - 1px);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.h-inputnumber-stacked .h-inputnumber-decrement-button {
|
|
76
|
+
padding: 0;
|
|
77
|
+
border-end-end-radius: calc(dt('inputnumber.button.border.radius') - 1px);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.h-inputnumber-stacked .h-inputnumber-input {
|
|
81
|
+
padding-inline-end: calc(dt('inputnumber.button.width') + dt('form.field.padding.x'));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.h-inputnumber-horizontal .h-inputnumber-button {
|
|
85
|
+
border: 1px solid dt('inputnumber.button.border.color');
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.h-inputnumber-horizontal .h-inputnumber-button:hover {
|
|
89
|
+
border-color: dt('inputnumber.button.hover.border.color');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.h-inputnumber-horizontal .h-inputnumber-button:active {
|
|
93
|
+
border-color: dt('inputnumber.button.active.border.color');
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.h-inputnumber-horizontal .h-inputnumber-increment-button {
|
|
97
|
+
order: 3;
|
|
98
|
+
border-start-end-radius: dt('inputnumber.button.border.radius');
|
|
99
|
+
border-end-end-radius: dt('inputnumber.button.border.radius');
|
|
100
|
+
border-inline-start: 0 none;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.h-inputnumber-horizontal .h-inputnumber-input {
|
|
104
|
+
order: 2;
|
|
105
|
+
border-radius: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.h-inputnumber-horizontal .h-inputnumber-decrement-button {
|
|
109
|
+
order: 1;
|
|
110
|
+
border-start-start-radius: dt('inputnumber.button.border.radius');
|
|
111
|
+
border-end-start-radius: dt('inputnumber.button.border.radius');
|
|
112
|
+
border-inline-end: 0 none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.h-floatlabel:has(.h-inputnumber-horizontal) label {
|
|
116
|
+
margin-inline-start: dt('inputnumber.button.width');
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.h-inputnumber-vertical {
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.h-inputnumber-vertical .h-inputnumber-button {
|
|
124
|
+
border: 1px solid dt('inputnumber.button.border.color');
|
|
125
|
+
padding: dt('inputnumber.button.vertical.padding');
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.h-inputnumber-vertical .h-inputnumber-button:hover {
|
|
129
|
+
border-color: dt('inputnumber.button.hover.border.color');
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.h-inputnumber-vertical .h-inputnumber-button:active {
|
|
133
|
+
border-color: dt('inputnumber.button.active.border.color');
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.h-inputnumber-vertical .h-inputnumber-increment-button {
|
|
137
|
+
order: 1;
|
|
138
|
+
border-start-start-radius: dt('inputnumber.button.border.radius');
|
|
139
|
+
border-start-end-radius: dt('inputnumber.button.border.radius');
|
|
140
|
+
width: 100%;
|
|
141
|
+
border-block-end: 0 none;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.h-inputnumber-vertical .h-inputnumber-input {
|
|
145
|
+
order: 2;
|
|
146
|
+
border-radius: 0;
|
|
147
|
+
text-align: center;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.h-inputnumber-vertical .h-inputnumber-decrement-button {
|
|
151
|
+
order: 3;
|
|
152
|
+
border-end-start-radius: dt('inputnumber.button.border.radius');
|
|
153
|
+
border-end-end-radius: dt('inputnumber.button.border.radius');
|
|
154
|
+
width: 100%;
|
|
155
|
+
border-block-start: 0 none;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.h-inputnumber-input {
|
|
159
|
+
flex: 1 1 auto;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.h-inputnumber-fluid {
|
|
163
|
+
width: 100%;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.h-inputnumber-fluid .h-inputnumber-input {
|
|
167
|
+
width: 1%;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.h-inputnumber-fluid.h-inputnumber-vertical .h-inputnumber-input {
|
|
171
|
+
width: 100%;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.h-inputnumber:has(.h-inputtext-sm) .h-inputnumber-button .h-icon {
|
|
175
|
+
font-size: dt('form.field.sm.font.size');
|
|
176
|
+
width: dt('form.field.sm.font.size');
|
|
177
|
+
height: dt('form.field.sm.font.size');
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.h-inputnumber:has(.h-inputtext-lg) .h-inputnumber-button .h-icon {
|
|
181
|
+
font-size: dt('form.field.lg.font.size');
|
|
182
|
+
width: dt('form.field.lg.font.size');
|
|
183
|
+
height: dt('form.field.lg.font.size');
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.h-inputnumber-clear-icon {
|
|
187
|
+
position: absolute;
|
|
188
|
+
top: 50%;
|
|
189
|
+
margin-top: -0.5rem;
|
|
190
|
+
cursor: pointer;
|
|
191
|
+
inset-inline-end: dt('form.field.padding.x');
|
|
192
|
+
color: dt('form.field.icon.color');
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.h-inputnumber:has(.h-inputnumber-clear-icon) .h-inputnumber-input {
|
|
196
|
+
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.h-inputnumber-stacked .h-inputnumber-clear-icon {
|
|
200
|
+
inset-inline-end: calc(dt('inputnumber.button.width') + dt('form.field.padding.x'));
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.h-inputnumber-stacked:has(.h-inputnumber-clear-icon) .h-inputnumber-input {
|
|
204
|
+
padding-inline-end: calc(dt('inputnumber.button.width') + (dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.h-inputnumber-horizontal .h-inputnumber-clear-icon {
|
|
208
|
+
inset-inline-end: calc(dt('inputnumber.button.width') + dt('form.field.padding.x'));
|
|
209
|
+
}
|
|
210
|
+
`;
|
|
211
|
+
|
|
212
|
+
const style = /*css*/ `
|
|
213
|
+
${style$1}
|
|
214
|
+
|
|
215
|
+
/* For Helix */
|
|
216
|
+
h-inputNumber.ng-invalid.ng-dirty > .h-inputtext,
|
|
217
|
+
h-input-number.ng-invalid.ng-dirty > .h-inputtext,
|
|
218
|
+
h-inputnumber.ng-invalid.ng-dirty > .h-inputtext {
|
|
219
|
+
border-color: dt('inputtext.invalid.border.color');
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
h-inputNumber.ng-invalid.ng-dirty > .h-inputtext:enabled:focus,
|
|
223
|
+
h-input-number.ng-invalid.ng-dirty > .h-inputtext:enabled:focus,
|
|
224
|
+
h-inputnumber.ng-invalid.ng-dirty > .h-inputtext:enabled:focus {
|
|
225
|
+
border-color: dt('inputtext.focus.border.color');
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
h-inputNumber.ng-invalid.ng-dirty > .h-inputtext::placeholder,
|
|
229
|
+
h-input-number.ng-invalid.ng-dirty > .h-inputtext::placeholder,
|
|
230
|
+
h-inputnumber.ng-invalid.ng-dirty > .h-inputtext::placeholder {
|
|
231
|
+
color: dt('inputtext.invalid.placeholder.color');
|
|
232
|
+
}
|
|
233
|
+
`;
|
|
234
|
+
const classes = {
|
|
235
|
+
root: ({ instance }) => [
|
|
236
|
+
'h-inputnumber h-component h-inputwrapper',
|
|
237
|
+
{
|
|
238
|
+
'h-inputwrapper-filled': instance.$filled() || instance.allowEmpty() === false,
|
|
239
|
+
'h-inputwrapper-focus': instance.focused,
|
|
240
|
+
'h-inputnumber-stacked': instance.showButtons() && instance.buttonLayout() === 'stacked',
|
|
241
|
+
'h-inputnumber-horizontal': instance.showButtons() && instance.buttonLayout() === 'horizontal',
|
|
242
|
+
'h-inputnumber-vertical': instance.showButtons() && instance.buttonLayout() === 'vertical',
|
|
243
|
+
'h-inputnumber-fluid': instance.hasFluid,
|
|
244
|
+
'h-invalid': instance.invalid()
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
pcInputText: 'h-inputnumber-input',
|
|
248
|
+
buttonGroup: 'h-inputnumber-button-group',
|
|
249
|
+
incrementButton: ({ instance }) => [
|
|
250
|
+
'h-inputnumber-button h-inputnumber-increment-button',
|
|
251
|
+
{
|
|
252
|
+
'h-disabled': instance.showButtons() && instance.max() != null && instance.maxlength()
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
decrementButton: ({ instance }) => [
|
|
256
|
+
'h-inputnumber-button h-inputnumber-decrement-button',
|
|
257
|
+
{
|
|
258
|
+
'h-disabled': instance.showButtons() && instance.min() != null && instance.minlength()
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
clearIcon: 'h-inputnumber-clear-icon'
|
|
262
|
+
};
|
|
263
|
+
class InputNumberStyle extends BaseStyle {
|
|
264
|
+
name = 'inputnumber';
|
|
265
|
+
style = style;
|
|
266
|
+
classes = classes;
|
|
267
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumberStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
268
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumberStyle });
|
|
269
|
+
}
|
|
270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumberStyle, decorators: [{
|
|
271
|
+
type: Injectable
|
|
272
|
+
}] });
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* InputNumber is an input component to provide numerical input.
|
|
276
|
+
*
|
|
277
|
+
* [Live Demo](https://www.primeng.org/inputnumber/)
|
|
278
|
+
*
|
|
279
|
+
* @module inputnumberstyle
|
|
280
|
+
*
|
|
281
|
+
*/
|
|
282
|
+
var InputNumberClasses;
|
|
283
|
+
(function (InputNumberClasses) {
|
|
284
|
+
/**
|
|
285
|
+
* Class name of the root element
|
|
286
|
+
*/
|
|
287
|
+
InputNumberClasses["root"] = "h-inputnumber";
|
|
288
|
+
/**
|
|
289
|
+
* Class name of the input element
|
|
290
|
+
*/
|
|
291
|
+
InputNumberClasses["pcInputText"] = "h-inputnumber-input";
|
|
292
|
+
/**
|
|
293
|
+
* Class name of the button group element
|
|
294
|
+
*/
|
|
295
|
+
InputNumberClasses["buttonGroup"] = "h-inputnumber-button-group";
|
|
296
|
+
/**
|
|
297
|
+
* Class name of the increment button element
|
|
298
|
+
*/
|
|
299
|
+
InputNumberClasses["incrementButton"] = "h-inputnumber-increment-button";
|
|
300
|
+
/**
|
|
301
|
+
* Class name of the decrement button element
|
|
302
|
+
*/
|
|
303
|
+
InputNumberClasses["decrementButton"] = "h-inputnumber-decrement-button";
|
|
304
|
+
/**
|
|
305
|
+
* Class name of the clear icon
|
|
306
|
+
*/
|
|
307
|
+
InputNumberClasses["clearIcon"] = "h-autocomplete-clear-icon";
|
|
308
|
+
})(InputNumberClasses || (InputNumberClasses = {}));
|
|
309
|
+
|
|
310
|
+
const INPUTNUMBER_INSTANCE = new InjectionToken('INPUTNUMBER_INSTANCE');
|
|
311
|
+
const INPUTNUMBER_VALUE_ACCESSOR = {
|
|
312
|
+
provide: NG_VALUE_ACCESSOR,
|
|
313
|
+
useExisting: forwardRef(() => InputNumber),
|
|
314
|
+
multi: true
|
|
315
|
+
};
|
|
316
|
+
/**
|
|
317
|
+
* InputNumber is an input component to provide numerical input.
|
|
318
|
+
* @group Components
|
|
319
|
+
*/
|
|
320
|
+
class InputNumber extends BaseInput {
|
|
321
|
+
injector;
|
|
322
|
+
componentName = 'InputNumber';
|
|
323
|
+
$pcInputNumber = inject(INPUTNUMBER_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
324
|
+
_componentStyle = inject(InputNumberStyle);
|
|
325
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
326
|
+
onAfterViewChecked() {
|
|
327
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Displays spinner buttons.
|
|
331
|
+
* @group Props
|
|
332
|
+
*/
|
|
333
|
+
showButtons = input(false, { ...(ngDevMode ? { debugName: "showButtons" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
334
|
+
/**
|
|
335
|
+
* Whether to format the value.
|
|
336
|
+
* @group Props
|
|
337
|
+
*/
|
|
338
|
+
format = input(true, { ...(ngDevMode ? { debugName: "format" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
339
|
+
/**
|
|
340
|
+
* Layout of the buttons, valid values are "stacked" (default), "horizontal" and "vertical".
|
|
341
|
+
* @group Props
|
|
342
|
+
*/
|
|
343
|
+
buttonLayout = input('stacked', /* @ts-ignore */
|
|
344
|
+
...(ngDevMode ? [{ debugName: "buttonLayout" }] : /* istanbul ignore next */ []));
|
|
345
|
+
/**
|
|
346
|
+
* Identifier of the focus input to match a label defined for the component.
|
|
347
|
+
* @group Props
|
|
348
|
+
*/
|
|
349
|
+
inputId = input(/* @ts-ignore */
|
|
350
|
+
...(ngDevMode ? [undefined, { debugName: "inputId" }] : /* istanbul ignore next */ []));
|
|
351
|
+
/**
|
|
352
|
+
* Style class of the component.
|
|
353
|
+
* @deprecated since v20.0.0, use `class` instead.
|
|
354
|
+
* @group Props
|
|
355
|
+
*/
|
|
356
|
+
styleClass = input(/* @ts-ignore */
|
|
357
|
+
...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
358
|
+
/**
|
|
359
|
+
* Advisory information to display on input.
|
|
360
|
+
* @group Props
|
|
361
|
+
*/
|
|
362
|
+
placeholder = input(/* @ts-ignore */
|
|
363
|
+
...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
364
|
+
/**
|
|
365
|
+
* Specifies tab order of the element.
|
|
366
|
+
* @group Props
|
|
367
|
+
*/
|
|
368
|
+
tabindex = input(undefined, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
369
|
+
/**
|
|
370
|
+
* Title text of the input text.
|
|
371
|
+
* @group Props
|
|
372
|
+
*/
|
|
373
|
+
title = input(/* @ts-ignore */
|
|
374
|
+
...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
|
|
375
|
+
/**
|
|
376
|
+
* Specifies one or more IDs in the DOM that labels the input field.
|
|
377
|
+
* @group Props
|
|
378
|
+
*/
|
|
379
|
+
ariaLabelledBy = input(/* @ts-ignore */
|
|
380
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
381
|
+
/**
|
|
382
|
+
* Specifies one or more IDs in the DOM that describes the input field.
|
|
383
|
+
* @group Props
|
|
384
|
+
*/
|
|
385
|
+
ariaDescribedBy = input(/* @ts-ignore */
|
|
386
|
+
...(ngDevMode ? [undefined, { debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []));
|
|
387
|
+
/**
|
|
388
|
+
* Used to define a string that labels the input element.
|
|
389
|
+
* @group Props
|
|
390
|
+
*/
|
|
391
|
+
ariaLabel = input(/* @ts-ignore */
|
|
392
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
393
|
+
/**
|
|
394
|
+
* Used to indicate that user input is required on an element before a form can be submitted.
|
|
395
|
+
* @group Props
|
|
396
|
+
*/
|
|
397
|
+
ariaRequired = input(undefined, { ...(ngDevMode ? { debugName: "ariaRequired" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
398
|
+
/**
|
|
399
|
+
* Used to define a string that autocomplete attribute the current element.
|
|
400
|
+
* @group Props
|
|
401
|
+
*/
|
|
402
|
+
autocomplete = input(/* @ts-ignore */
|
|
403
|
+
...(ngDevMode ? [undefined, { debugName: "autocomplete" }] : /* istanbul ignore next */ []));
|
|
404
|
+
/**
|
|
405
|
+
* Style class of the increment button.
|
|
406
|
+
* @group Props
|
|
407
|
+
*/
|
|
408
|
+
incrementButtonClass = input(/* @ts-ignore */
|
|
409
|
+
...(ngDevMode ? [undefined, { debugName: "incrementButtonClass" }] : /* istanbul ignore next */ []));
|
|
410
|
+
/**
|
|
411
|
+
* Style class of the decrement button.
|
|
412
|
+
* @group Props
|
|
413
|
+
*/
|
|
414
|
+
decrementButtonClass = input(/* @ts-ignore */
|
|
415
|
+
...(ngDevMode ? [undefined, { debugName: "decrementButtonClass" }] : /* istanbul ignore next */ []));
|
|
416
|
+
/**
|
|
417
|
+
* Style class of the increment button.
|
|
418
|
+
* @group Props
|
|
419
|
+
*/
|
|
420
|
+
incrementButtonIcon = input(/* @ts-ignore */
|
|
421
|
+
...(ngDevMode ? [undefined, { debugName: "incrementButtonIcon" }] : /* istanbul ignore next */ []));
|
|
422
|
+
/**
|
|
423
|
+
* Style class of the decrement button.
|
|
424
|
+
* @group Props
|
|
425
|
+
*/
|
|
426
|
+
decrementButtonIcon = input(/* @ts-ignore */
|
|
427
|
+
...(ngDevMode ? [undefined, { debugName: "decrementButtonIcon" }] : /* istanbul ignore next */ []));
|
|
428
|
+
/**
|
|
429
|
+
* When present, it specifies that an input field is read-only.
|
|
430
|
+
* @group Props
|
|
431
|
+
*/
|
|
432
|
+
readonly = input(undefined, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
433
|
+
/**
|
|
434
|
+
* Determines whether the input field is empty.
|
|
435
|
+
* @group Props
|
|
436
|
+
*/
|
|
437
|
+
allowEmpty = input(true, { ...(ngDevMode ? { debugName: "allowEmpty" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
438
|
+
/**
|
|
439
|
+
* Locale to be used in formatting.
|
|
440
|
+
* @group Props
|
|
441
|
+
*/
|
|
442
|
+
locale = input(/* @ts-ignore */
|
|
443
|
+
...(ngDevMode ? [undefined, { debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
444
|
+
/**
|
|
445
|
+
* The locale matching algorithm to use. Possible values are "lookup" and "best fit"; the default is "best fit". See Locale Negotiation for details.
|
|
446
|
+
* @group Props
|
|
447
|
+
*/
|
|
448
|
+
localeMatcher = input(/* @ts-ignore */
|
|
449
|
+
...(ngDevMode ? [undefined, { debugName: "localeMatcher" }] : /* istanbul ignore next */ []));
|
|
450
|
+
/**
|
|
451
|
+
* Defines the behavior of the component, valid values are "decimal" and "currency".
|
|
452
|
+
* @group Props
|
|
453
|
+
*/
|
|
454
|
+
mode = input('decimal', /* @ts-ignore */
|
|
455
|
+
...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
456
|
+
/**
|
|
457
|
+
* The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB. There is no default value; if the style is "currency", the currency property must be provided.
|
|
458
|
+
* @group Props
|
|
459
|
+
*/
|
|
460
|
+
currency = input(/* @ts-ignore */
|
|
461
|
+
...(ngDevMode ? [undefined, { debugName: "currency" }] : /* istanbul ignore next */ []));
|
|
462
|
+
/**
|
|
463
|
+
* How to display the currency in currency formatting. Possible values are "symbol" to use a localized currency symbol such as €, ü"code" to use the ISO currency code, "name" to use a localized currency name such as "dollar"; the default is "symbol".
|
|
464
|
+
* @group Props
|
|
465
|
+
*/
|
|
466
|
+
currencyDisplay = input(/* @ts-ignore */
|
|
467
|
+
...(ngDevMode ? [undefined, { debugName: "currencyDisplay" }] : /* istanbul ignore next */ []));
|
|
468
|
+
/**
|
|
469
|
+
* Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.
|
|
470
|
+
* @group Props
|
|
471
|
+
*/
|
|
472
|
+
useGrouping = input(true, { ...(ngDevMode ? { debugName: "useGrouping" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
473
|
+
/**
|
|
474
|
+
* The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the ISO 4217 currency code list (2 if the list doesn't provide that information).
|
|
475
|
+
* @group Props
|
|
476
|
+
*/
|
|
477
|
+
minFractionDigits = input(undefined, { ...(ngDevMode ? { debugName: "minFractionDigits" } : /* istanbul ignore next */ {}), transform: (value) => numberAttribute(value, undefined) });
|
|
478
|
+
/**
|
|
479
|
+
* The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the ISO 4217 currency code list (2 if the list doesn't provide that information).
|
|
480
|
+
* @group Props
|
|
481
|
+
*/
|
|
482
|
+
maxFractionDigits = input(undefined, { ...(ngDevMode ? { debugName: "maxFractionDigits" } : /* istanbul ignore next */ {}), transform: (value) => numberAttribute(value, undefined) });
|
|
483
|
+
/**
|
|
484
|
+
* Text to display before the value.
|
|
485
|
+
* @group Props
|
|
486
|
+
*/
|
|
487
|
+
prefix = input(/* @ts-ignore */
|
|
488
|
+
...(ngDevMode ? [undefined, { debugName: "prefix" }] : /* istanbul ignore next */ []));
|
|
489
|
+
/**
|
|
490
|
+
* Text to display after the value.
|
|
491
|
+
* @group Props
|
|
492
|
+
*/
|
|
493
|
+
suffix = input(/* @ts-ignore */
|
|
494
|
+
...(ngDevMode ? [undefined, { debugName: "suffix" }] : /* istanbul ignore next */ []));
|
|
495
|
+
/**
|
|
496
|
+
* Inline style of the input field.
|
|
497
|
+
* @group Props
|
|
498
|
+
*/
|
|
499
|
+
inputStyle = input(/* @ts-ignore */
|
|
500
|
+
...(ngDevMode ? [undefined, { debugName: "inputStyle" }] : /* istanbul ignore next */ []));
|
|
501
|
+
/**
|
|
502
|
+
* Style class of the input field.
|
|
503
|
+
* @group Props
|
|
504
|
+
*/
|
|
505
|
+
inputStyleClass = input(/* @ts-ignore */
|
|
506
|
+
...(ngDevMode ? [undefined, { debugName: "inputStyleClass" }] : /* istanbul ignore next */ []));
|
|
507
|
+
/**
|
|
508
|
+
* When enabled, a clear icon is displayed to clear the value.
|
|
509
|
+
* @group Props
|
|
510
|
+
*/
|
|
511
|
+
showClear = input(false, { ...(ngDevMode ? { debugName: "showClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
512
|
+
/**
|
|
513
|
+
* When present, it specifies that the component should automatically get focus on load.
|
|
514
|
+
* @group Props
|
|
515
|
+
*/
|
|
516
|
+
autofocus = input(undefined, { ...(ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
517
|
+
/**
|
|
518
|
+
* Callback to invoke on input.
|
|
519
|
+
* @param {InputNumberInputEvent} event - Custom input event.
|
|
520
|
+
* @group Emits
|
|
521
|
+
*/
|
|
522
|
+
onInput = output();
|
|
523
|
+
/**
|
|
524
|
+
* Callback to invoke when the component receives focus.
|
|
525
|
+
* @param {Event} event - Browser event.
|
|
526
|
+
* @group Emits
|
|
527
|
+
*/
|
|
528
|
+
onFocus = output();
|
|
529
|
+
/**
|
|
530
|
+
* Callback to invoke when the component loses focus.
|
|
531
|
+
* @param {Event} event - Browser event.
|
|
532
|
+
* @group Emits
|
|
533
|
+
*/
|
|
534
|
+
onBlur = output();
|
|
535
|
+
/**
|
|
536
|
+
* Callback to invoke on input key press.
|
|
537
|
+
* @param {KeyboardEvent} event - Keyboard event.
|
|
538
|
+
* @group Emits
|
|
539
|
+
*/
|
|
540
|
+
onKeyDown = output();
|
|
541
|
+
/**
|
|
542
|
+
* Callback to invoke when clear token is clicked.
|
|
543
|
+
* @group Emits
|
|
544
|
+
*/
|
|
545
|
+
onClear = output();
|
|
546
|
+
/**
|
|
547
|
+
* Custom clear icon template.
|
|
548
|
+
* @group Templates
|
|
549
|
+
*/
|
|
550
|
+
clearIconTemplate = contentChild('clearicon', { ...(ngDevMode ? { debugName: "clearIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
551
|
+
/**
|
|
552
|
+
* Custom increment button icon template.
|
|
553
|
+
* @group Templates
|
|
554
|
+
*/
|
|
555
|
+
incrementButtonIconTemplate = contentChild('incrementbuttonicon', { ...(ngDevMode ? { debugName: "incrementButtonIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
556
|
+
/**
|
|
557
|
+
* Custom decrement button icon template.
|
|
558
|
+
* @group Templates
|
|
559
|
+
*/
|
|
560
|
+
decrementButtonIconTemplate = contentChild('decrementbuttonicon', { ...(ngDevMode ? { debugName: "decrementButtonIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
561
|
+
templates = contentChildren(HelixTemplate, /* @ts-ignore */
|
|
562
|
+
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
563
|
+
input = viewChild.required('input', /* @ts-ignore */
|
|
564
|
+
...(ngDevMode ? [{ debugName: "input" }] : /* istanbul ignore next */ []));
|
|
565
|
+
_clearIconTemplate;
|
|
566
|
+
_incrementButtonIconTemplate;
|
|
567
|
+
_decrementButtonIconTemplate;
|
|
568
|
+
value;
|
|
569
|
+
focused;
|
|
570
|
+
initialized;
|
|
571
|
+
groupChar = '';
|
|
572
|
+
prefixChar = '';
|
|
573
|
+
suffixChar = '';
|
|
574
|
+
isSpecialChar;
|
|
575
|
+
timer;
|
|
576
|
+
lastValue;
|
|
577
|
+
_numeral;
|
|
578
|
+
numberFormat;
|
|
579
|
+
_decimal;
|
|
580
|
+
_decimalChar = '';
|
|
581
|
+
_group;
|
|
582
|
+
_minusSign;
|
|
583
|
+
_currency;
|
|
584
|
+
_prefix;
|
|
585
|
+
_suffix;
|
|
586
|
+
_index;
|
|
587
|
+
ngControl = null;
|
|
588
|
+
constructor(injector) {
|
|
589
|
+
super();
|
|
590
|
+
this.injector = injector;
|
|
591
|
+
}
|
|
592
|
+
onChanges(simpleChange) {
|
|
593
|
+
const props = ['locale', 'localeMatcher', 'mode', 'currency', 'currencyDisplay', 'useGrouping', 'minFractionDigits', 'maxFractionDigits', 'prefix', 'suffix'];
|
|
594
|
+
if (props.some((p) => !!simpleChange[p])) {
|
|
595
|
+
this.updateConstructParser();
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
onInit() {
|
|
599
|
+
this.ngControl = this.injector.get(NgControl, null, { optional: true });
|
|
600
|
+
this.constructParser();
|
|
601
|
+
this.initialized = true;
|
|
602
|
+
}
|
|
603
|
+
onAfterContentInit() {
|
|
604
|
+
this.templates().forEach((item) => {
|
|
605
|
+
switch (item.getType()) {
|
|
606
|
+
case 'clearicon':
|
|
607
|
+
this._clearIconTemplate = item.template;
|
|
608
|
+
break;
|
|
609
|
+
case 'incrementbuttonicon':
|
|
610
|
+
this._incrementButtonIconTemplate = item.template;
|
|
611
|
+
break;
|
|
612
|
+
case 'decrementbuttonicon':
|
|
613
|
+
this._decrementButtonIconTemplate = item.template;
|
|
614
|
+
break;
|
|
615
|
+
}
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
getOptions() {
|
|
619
|
+
// Validate fraction digits according to Intl.NumberFormat specifications
|
|
620
|
+
// Handle potential NaN, Infinity, or invalid values
|
|
621
|
+
const validateFractionDigits = (value, min, max) => {
|
|
622
|
+
if (value == null || isNaN(value) || !isFinite(value)) {
|
|
623
|
+
return undefined;
|
|
624
|
+
}
|
|
625
|
+
return Math.max(min, Math.min(max, Math.floor(value)));
|
|
626
|
+
};
|
|
627
|
+
const minFractionDigits = validateFractionDigits(this.minFractionDigits(), 0, 20);
|
|
628
|
+
const maxFractionDigits = validateFractionDigits(this.maxFractionDigits(), 0, 100);
|
|
629
|
+
// Ensure minFractionDigits <= maxFractionDigits
|
|
630
|
+
const validatedMinFractionDigits = minFractionDigits != null && maxFractionDigits != null && minFractionDigits > maxFractionDigits ? maxFractionDigits : minFractionDigits;
|
|
631
|
+
return {
|
|
632
|
+
localeMatcher: this.localeMatcher(),
|
|
633
|
+
style: this.mode(),
|
|
634
|
+
currency: this.currency(),
|
|
635
|
+
currencyDisplay: this.currencyDisplay(),
|
|
636
|
+
useGrouping: this.useGrouping(),
|
|
637
|
+
minimumFractionDigits: validatedMinFractionDigits,
|
|
638
|
+
maximumFractionDigits: maxFractionDigits
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
constructParser() {
|
|
642
|
+
const options = this.getOptions();
|
|
643
|
+
// Remove any properties with undefined or invalid values to let Intl.NumberFormat use defaults
|
|
644
|
+
const cleanOptions = Object.fromEntries(Object.entries(options).filter(([_key, value]) => value !== undefined));
|
|
645
|
+
this.numberFormat = new Intl.NumberFormat(this.locale(), cleanOptions);
|
|
646
|
+
const numerals = [...new Intl.NumberFormat(this.locale(), { useGrouping: false }).format(9876543210)].reverse();
|
|
647
|
+
const index = new Map(numerals.map((d, i) => [d, i]));
|
|
648
|
+
this._numeral = new RegExp(`[${numerals.join('')}]`, 'g');
|
|
649
|
+
this._group = this.getGroupingExpression();
|
|
650
|
+
this._minusSign = this.getMinusSignExpression();
|
|
651
|
+
this._currency = this.getCurrencyExpression();
|
|
652
|
+
this._decimal = this.getDecimalExpression();
|
|
653
|
+
this._decimalChar = this.getDecimalChar();
|
|
654
|
+
this._suffix = this.getSuffixExpression();
|
|
655
|
+
this._prefix = this.getPrefixExpression();
|
|
656
|
+
this._index = (d) => index.get(d);
|
|
657
|
+
}
|
|
658
|
+
updateConstructParser() {
|
|
659
|
+
if (this.initialized) {
|
|
660
|
+
this.constructParser();
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
escapeRegExp(text) {
|
|
664
|
+
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
|
|
665
|
+
}
|
|
666
|
+
getDecimalExpression() {
|
|
667
|
+
const decimalChar = this.getDecimalChar();
|
|
668
|
+
return new RegExp(`[${decimalChar}]`, 'g');
|
|
669
|
+
}
|
|
670
|
+
getDecimalChar() {
|
|
671
|
+
const formatter = new Intl.NumberFormat(this.locale(), { ...this.getOptions(), useGrouping: false });
|
|
672
|
+
return formatter
|
|
673
|
+
.format(1.1)
|
|
674
|
+
.replace(this._currency, '')
|
|
675
|
+
.trim()
|
|
676
|
+
.replace(this._numeral, '');
|
|
677
|
+
}
|
|
678
|
+
getGroupingExpression() {
|
|
679
|
+
const formatter = new Intl.NumberFormat(this.locale(), { useGrouping: true });
|
|
680
|
+
this.groupChar = formatter.format(1000000).trim().replace(this._numeral, '').charAt(0);
|
|
681
|
+
return new RegExp(`[${this.groupChar}]`, 'g');
|
|
682
|
+
}
|
|
683
|
+
getMinusSignExpression() {
|
|
684
|
+
const formatter = new Intl.NumberFormat(this.locale(), { useGrouping: false });
|
|
685
|
+
return new RegExp(`[${formatter.format(-1).trim().replace(this._numeral, '')}]`, 'g');
|
|
686
|
+
}
|
|
687
|
+
getCurrencyExpression() {
|
|
688
|
+
const currency = this.currency();
|
|
689
|
+
if (currency) {
|
|
690
|
+
const formatter = new Intl.NumberFormat(this.locale(), {
|
|
691
|
+
style: 'currency',
|
|
692
|
+
currency: currency,
|
|
693
|
+
currencyDisplay: this.currencyDisplay(),
|
|
694
|
+
minimumFractionDigits: 0,
|
|
695
|
+
maximumFractionDigits: 0
|
|
696
|
+
});
|
|
697
|
+
return new RegExp(`[${formatter.format(1).replace(/\s/g, '').replace(this._numeral, '').replace(this._group, '')}]`, 'g');
|
|
698
|
+
}
|
|
699
|
+
return new RegExp(`[]`, 'g');
|
|
700
|
+
}
|
|
701
|
+
getPrefixExpression() {
|
|
702
|
+
const prefix = this.prefix();
|
|
703
|
+
if (prefix) {
|
|
704
|
+
this.prefixChar = prefix;
|
|
705
|
+
}
|
|
706
|
+
else {
|
|
707
|
+
const formatter = new Intl.NumberFormat(this.locale(), {
|
|
708
|
+
style: this.mode(),
|
|
709
|
+
currency: this.currency(),
|
|
710
|
+
currencyDisplay: this.currencyDisplay()
|
|
711
|
+
});
|
|
712
|
+
this.prefixChar = formatter.format(1).split('1')[0];
|
|
713
|
+
}
|
|
714
|
+
return new RegExp(`${this.escapeRegExp(this.prefixChar || '')}`, 'g');
|
|
715
|
+
}
|
|
716
|
+
getSuffixExpression() {
|
|
717
|
+
const suffix = this.suffix();
|
|
718
|
+
if (suffix) {
|
|
719
|
+
this.suffixChar = suffix;
|
|
720
|
+
}
|
|
721
|
+
else {
|
|
722
|
+
const formatter = new Intl.NumberFormat(this.locale(), {
|
|
723
|
+
style: this.mode(),
|
|
724
|
+
currency: this.currency(),
|
|
725
|
+
currencyDisplay: this.currencyDisplay(),
|
|
726
|
+
minimumFractionDigits: 0,
|
|
727
|
+
maximumFractionDigits: 0
|
|
728
|
+
});
|
|
729
|
+
this.suffixChar = formatter.format(1).split('1')[1];
|
|
730
|
+
}
|
|
731
|
+
return new RegExp(`${this.escapeRegExp(this.suffixChar || '')}`, 'g');
|
|
732
|
+
}
|
|
733
|
+
formatValue(value) {
|
|
734
|
+
if (value != null) {
|
|
735
|
+
if (value === '-') {
|
|
736
|
+
// Minus sign
|
|
737
|
+
return value;
|
|
738
|
+
}
|
|
739
|
+
if (this.format()) {
|
|
740
|
+
let formatter = new Intl.NumberFormat(this.locale(), this.getOptions());
|
|
741
|
+
let formattedValue = formatter.format(value);
|
|
742
|
+
const prefix = this.prefix();
|
|
743
|
+
if (prefix && value != prefix) {
|
|
744
|
+
formattedValue = prefix + formattedValue;
|
|
745
|
+
}
|
|
746
|
+
const suffix = this.suffix();
|
|
747
|
+
if (suffix && value != suffix) {
|
|
748
|
+
formattedValue = formattedValue + suffix;
|
|
749
|
+
}
|
|
750
|
+
return formattedValue;
|
|
751
|
+
}
|
|
752
|
+
return value.toString();
|
|
753
|
+
}
|
|
754
|
+
return '';
|
|
755
|
+
}
|
|
756
|
+
parseValue(text) {
|
|
757
|
+
const suffixRegex = this._suffix ? new RegExp(this._suffix, '') : /(?:)/;
|
|
758
|
+
const prefixRegex = this._prefix ? new RegExp(this._prefix, '') : /(?:)/;
|
|
759
|
+
const currencyRegex = this._currency ? new RegExp(this._currency, '') : /(?:)/;
|
|
760
|
+
let filteredText = text
|
|
761
|
+
.replace(suffixRegex, '')
|
|
762
|
+
.replace(prefixRegex, '')
|
|
763
|
+
.trim()
|
|
764
|
+
.replace(/\s/g, '')
|
|
765
|
+
.replace(currencyRegex, '')
|
|
766
|
+
.replace(this._group, '')
|
|
767
|
+
.replace(this._minusSign, '-')
|
|
768
|
+
.replace(this._decimal, '.')
|
|
769
|
+
.replace(this._numeral, this._index);
|
|
770
|
+
if (filteredText) {
|
|
771
|
+
if (filteredText === '-')
|
|
772
|
+
// Minus sign
|
|
773
|
+
return filteredText;
|
|
774
|
+
let parsedValue = +filteredText;
|
|
775
|
+
return isNaN(parsedValue) ? null : parsedValue;
|
|
776
|
+
}
|
|
777
|
+
return null;
|
|
778
|
+
}
|
|
779
|
+
repeat(event, interval, dir) {
|
|
780
|
+
if (this.readonly()) {
|
|
781
|
+
return;
|
|
782
|
+
}
|
|
783
|
+
let i = interval || 500;
|
|
784
|
+
this.clearTimer();
|
|
785
|
+
this.timer = setTimeout(() => {
|
|
786
|
+
this.repeat(event, 40, dir);
|
|
787
|
+
}, i);
|
|
788
|
+
this.spin(event, dir);
|
|
789
|
+
}
|
|
790
|
+
spin(event, dir) {
|
|
791
|
+
let step = (this.step() ?? 1) * dir;
|
|
792
|
+
let currentValue = this.parseValue(this.input()?.nativeElement.value) || 0;
|
|
793
|
+
let newValue = this.validateValue(currentValue + step);
|
|
794
|
+
const max = this.maxlength();
|
|
795
|
+
if (max && max < this.formatValue(newValue).length) {
|
|
796
|
+
return;
|
|
797
|
+
}
|
|
798
|
+
this.updateInput(newValue, null, 'spin', null);
|
|
799
|
+
this.updateModel(event, newValue);
|
|
800
|
+
this.handleOnInput(event, currentValue, newValue);
|
|
801
|
+
}
|
|
802
|
+
clear() {
|
|
803
|
+
this.value = null;
|
|
804
|
+
this.onModelChange(this.value);
|
|
805
|
+
this.onClear.emit();
|
|
806
|
+
}
|
|
807
|
+
onUpButtonMouseDown(event) {
|
|
808
|
+
if (event.button === 2) {
|
|
809
|
+
this.clearTimer();
|
|
810
|
+
return;
|
|
811
|
+
}
|
|
812
|
+
if (!this.$disabled()) {
|
|
813
|
+
this.input()?.nativeElement.focus();
|
|
814
|
+
this.repeat(event, null, 1);
|
|
815
|
+
event.preventDefault();
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
onUpButtonMouseUp() {
|
|
819
|
+
if (!this.$disabled()) {
|
|
820
|
+
this.clearTimer();
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
onUpButtonMouseLeave() {
|
|
824
|
+
if (!this.$disabled()) {
|
|
825
|
+
this.clearTimer();
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
onUpButtonKeyDown(event) {
|
|
829
|
+
if (event.keyCode === 32 || event.keyCode === 13) {
|
|
830
|
+
this.repeat(event, null, 1);
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
onUpButtonKeyUp() {
|
|
834
|
+
if (!this.$disabled()) {
|
|
835
|
+
this.clearTimer();
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
onDownButtonMouseDown(event) {
|
|
839
|
+
if (event.button === 2) {
|
|
840
|
+
this.clearTimer();
|
|
841
|
+
return;
|
|
842
|
+
}
|
|
843
|
+
if (!this.$disabled()) {
|
|
844
|
+
this.input()?.nativeElement.focus();
|
|
845
|
+
this.repeat(event, null, -1);
|
|
846
|
+
event.preventDefault();
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
onDownButtonMouseUp() {
|
|
850
|
+
if (!this.$disabled()) {
|
|
851
|
+
this.clearTimer();
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
onDownButtonMouseLeave() {
|
|
855
|
+
if (!this.$disabled()) {
|
|
856
|
+
this.clearTimer();
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
onDownButtonKeyUp() {
|
|
860
|
+
if (!this.$disabled()) {
|
|
861
|
+
this.clearTimer();
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
onDownButtonKeyDown(event) {
|
|
865
|
+
if (event.keyCode === 32 || event.keyCode === 13) {
|
|
866
|
+
this.repeat(event, null, -1);
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
onUserInput(event) {
|
|
870
|
+
if (this.readonly()) {
|
|
871
|
+
return;
|
|
872
|
+
}
|
|
873
|
+
if (this.isSpecialChar) {
|
|
874
|
+
event.target.value = this.lastValue;
|
|
875
|
+
}
|
|
876
|
+
this.isSpecialChar = false;
|
|
877
|
+
}
|
|
878
|
+
onInputKeyDown(event) {
|
|
879
|
+
if (this.readonly()) {
|
|
880
|
+
return;
|
|
881
|
+
}
|
|
882
|
+
this.lastValue = event.target.value;
|
|
883
|
+
if (event.shiftKey || event.altKey) {
|
|
884
|
+
this.isSpecialChar = true;
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
let selectionStart = event.target.selectionStart;
|
|
888
|
+
let selectionEnd = event.target.selectionEnd;
|
|
889
|
+
let inputValue = event.target.value;
|
|
890
|
+
let newValueStr = null;
|
|
891
|
+
if (event.altKey) {
|
|
892
|
+
event.preventDefault();
|
|
893
|
+
}
|
|
894
|
+
const inputVal = this.input();
|
|
895
|
+
switch (event.key) {
|
|
896
|
+
case 'ArrowUp':
|
|
897
|
+
this.spin(event, 1);
|
|
898
|
+
event.preventDefault();
|
|
899
|
+
break;
|
|
900
|
+
case 'ArrowDown':
|
|
901
|
+
this.spin(event, -1);
|
|
902
|
+
event.preventDefault();
|
|
903
|
+
break;
|
|
904
|
+
case 'ArrowLeft':
|
|
905
|
+
for (let index = selectionStart; index <= inputValue.length; index++) {
|
|
906
|
+
const previousCharIndex = index === 0 ? 0 : index - 1;
|
|
907
|
+
if (this.isNumeralChar(inputValue.charAt(previousCharIndex))) {
|
|
908
|
+
this.input().nativeElement.setSelectionRange(index, index);
|
|
909
|
+
break;
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
break;
|
|
913
|
+
case 'ArrowRight':
|
|
914
|
+
for (let index = selectionEnd; index >= 0; index--) {
|
|
915
|
+
if (this.isNumeralChar(inputValue.charAt(index))) {
|
|
916
|
+
this.input().nativeElement.setSelectionRange(index, index);
|
|
917
|
+
break;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
break;
|
|
921
|
+
case 'Tab':
|
|
922
|
+
case 'Enter':
|
|
923
|
+
newValueStr = this.validateValue(this.parseValue(this.input().nativeElement.value));
|
|
924
|
+
inputVal.nativeElement.value = this.formatValue(newValueStr);
|
|
925
|
+
inputVal.nativeElement.setAttribute('aria-valuenow', newValueStr);
|
|
926
|
+
this.updateModel(event, newValueStr);
|
|
927
|
+
break;
|
|
928
|
+
case 'Backspace': {
|
|
929
|
+
event.preventDefault();
|
|
930
|
+
if (selectionStart === selectionEnd) {
|
|
931
|
+
if ((selectionStart == 1 && this.prefix()) || (selectionStart == inputValue.length && this.suffix())) {
|
|
932
|
+
break;
|
|
933
|
+
}
|
|
934
|
+
const deleteChar = inputValue.charAt(selectionStart - 1);
|
|
935
|
+
const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
|
|
936
|
+
if (this.isNumeralChar(deleteChar)) {
|
|
937
|
+
const decimalLength = this.getDecimalLength(inputValue);
|
|
938
|
+
if (this._group.test(deleteChar)) {
|
|
939
|
+
this._group.lastIndex = 0;
|
|
940
|
+
newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
|
|
941
|
+
}
|
|
942
|
+
else if (this._decimal.test(deleteChar)) {
|
|
943
|
+
this._decimal.lastIndex = 0;
|
|
944
|
+
if (decimalLength) {
|
|
945
|
+
this.input()?.nativeElement.setSelectionRange(selectionStart - 1, selectionStart - 1);
|
|
946
|
+
}
|
|
947
|
+
else {
|
|
948
|
+
newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
952
|
+
const insertedText = this.isDecimalMode() && (this.minFractionDigits() || 0) < decimalLength ? '' : '0';
|
|
953
|
+
newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);
|
|
954
|
+
}
|
|
955
|
+
else if (decimalCharIndexWithoutPrefix === 1) {
|
|
956
|
+
newValueStr = inputValue.slice(0, selectionStart - 1) + '0' + inputValue.slice(selectionStart);
|
|
957
|
+
newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
|
|
958
|
+
}
|
|
959
|
+
else {
|
|
960
|
+
newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
else if (this.mode() === 'currency' && this._currency && deleteChar.search(this._currency) != -1) {
|
|
964
|
+
newValueStr = inputValue.slice(1);
|
|
965
|
+
}
|
|
966
|
+
this.updateValue(event, newValueStr, null, 'delete-single');
|
|
967
|
+
}
|
|
968
|
+
else {
|
|
969
|
+
newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
|
|
970
|
+
this.updateValue(event, newValueStr, null, 'delete-range');
|
|
971
|
+
}
|
|
972
|
+
break;
|
|
973
|
+
}
|
|
974
|
+
case 'Delete':
|
|
975
|
+
event.preventDefault();
|
|
976
|
+
if (selectionStart === selectionEnd) {
|
|
977
|
+
if ((selectionStart == 0 && this.prefix()) || (selectionStart == inputValue.length - 1 && this.suffix())) {
|
|
978
|
+
break;
|
|
979
|
+
}
|
|
980
|
+
const deleteChar = inputValue.charAt(selectionStart);
|
|
981
|
+
const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
|
|
982
|
+
if (this.isNumeralChar(deleteChar)) {
|
|
983
|
+
const decimalLength = this.getDecimalLength(inputValue);
|
|
984
|
+
if (this._group.test(deleteChar)) {
|
|
985
|
+
this._group.lastIndex = 0;
|
|
986
|
+
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
|
|
987
|
+
}
|
|
988
|
+
else if (this._decimal.test(deleteChar)) {
|
|
989
|
+
this._decimal.lastIndex = 0;
|
|
990
|
+
if (decimalLength) {
|
|
991
|
+
this.input()?.nativeElement.setSelectionRange(selectionStart + 1, selectionStart + 1);
|
|
992
|
+
}
|
|
993
|
+
else {
|
|
994
|
+
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
998
|
+
const insertedText = this.isDecimalMode() && (this.minFractionDigits() || 0) < decimalLength ? '' : '0';
|
|
999
|
+
newValueStr = inputValue.slice(0, selectionStart) + insertedText + inputValue.slice(selectionStart + 1);
|
|
1000
|
+
}
|
|
1001
|
+
else if (decimalCharIndexWithoutPrefix === 1) {
|
|
1002
|
+
newValueStr = inputValue.slice(0, selectionStart) + '0' + inputValue.slice(selectionStart + 1);
|
|
1003
|
+
newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
|
|
1004
|
+
}
|
|
1005
|
+
else {
|
|
1006
|
+
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
this.updateValue(event, newValueStr, null, 'delete-back-single');
|
|
1010
|
+
}
|
|
1011
|
+
else {
|
|
1012
|
+
newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
|
|
1013
|
+
this.updateValue(event, newValueStr, null, 'delete-range');
|
|
1014
|
+
}
|
|
1015
|
+
break;
|
|
1016
|
+
case 'Home':
|
|
1017
|
+
if (this.min()) {
|
|
1018
|
+
this.updateModel(event, this.min());
|
|
1019
|
+
event.preventDefault();
|
|
1020
|
+
}
|
|
1021
|
+
break;
|
|
1022
|
+
case 'End':
|
|
1023
|
+
if (this.max()) {
|
|
1024
|
+
this.updateModel(event, this.max());
|
|
1025
|
+
event.preventDefault();
|
|
1026
|
+
}
|
|
1027
|
+
break;
|
|
1028
|
+
default:
|
|
1029
|
+
break;
|
|
1030
|
+
}
|
|
1031
|
+
this.onKeyDown.emit(event);
|
|
1032
|
+
}
|
|
1033
|
+
onInputKeyPress(event) {
|
|
1034
|
+
if (this.readonly()) {
|
|
1035
|
+
return;
|
|
1036
|
+
}
|
|
1037
|
+
let code = event.which || event.keyCode;
|
|
1038
|
+
let char = String.fromCharCode(code);
|
|
1039
|
+
let isDecimalSign = this.isDecimalSign(char);
|
|
1040
|
+
const isMinusSign = this.isMinusSign(char);
|
|
1041
|
+
if (code != 13) {
|
|
1042
|
+
event.preventDefault();
|
|
1043
|
+
}
|
|
1044
|
+
if (!isDecimalSign && event.code === 'NumpadDecimal') {
|
|
1045
|
+
isDecimalSign = true;
|
|
1046
|
+
char = this._decimalChar;
|
|
1047
|
+
code = char.charCodeAt(0);
|
|
1048
|
+
}
|
|
1049
|
+
const { value, selectionStart, selectionEnd } = this.input().nativeElement;
|
|
1050
|
+
const newValue = this.parseValue(value + char);
|
|
1051
|
+
const newValueStr = newValue != null ? newValue.toString() : '';
|
|
1052
|
+
const selectedValue = value.substring(selectionStart, selectionEnd);
|
|
1053
|
+
const selectedValueParsed = this.parseValue(selectedValue);
|
|
1054
|
+
const selectedValueStr = selectedValueParsed != null ? selectedValueParsed.toString() : '';
|
|
1055
|
+
if (selectionStart !== selectionEnd && selectedValueStr.length > 0) {
|
|
1056
|
+
this.insert(event, char, { isDecimalSign, isMinusSign });
|
|
1057
|
+
return;
|
|
1058
|
+
}
|
|
1059
|
+
const max = this.maxlength();
|
|
1060
|
+
if (max && newValueStr.length > max) {
|
|
1061
|
+
return;
|
|
1062
|
+
}
|
|
1063
|
+
if ((48 <= code && code <= 57) || isMinusSign || isDecimalSign) {
|
|
1064
|
+
this.insert(event, char, { isDecimalSign, isMinusSign });
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
onPaste(event) {
|
|
1068
|
+
if (!this.$disabled() && !this.readonly()) {
|
|
1069
|
+
event.preventDefault();
|
|
1070
|
+
let data = (event.clipboardData || this.document.defaultView['clipboardData']).getData('Text');
|
|
1071
|
+
if (this.inputId() === 'integeronly' && /[^\d-]/.test(data)) {
|
|
1072
|
+
return;
|
|
1073
|
+
}
|
|
1074
|
+
if (data) {
|
|
1075
|
+
if (this.maxlength()) {
|
|
1076
|
+
data = data.toString().substring(0, this.maxlength());
|
|
1077
|
+
}
|
|
1078
|
+
let filteredData = this.parseValue(data);
|
|
1079
|
+
if (filteredData != null) {
|
|
1080
|
+
this.insert(event, filteredData.toString());
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
allowMinusSign() {
|
|
1086
|
+
const min = this.min();
|
|
1087
|
+
return min == null || min < 0;
|
|
1088
|
+
}
|
|
1089
|
+
isMinusSign(char) {
|
|
1090
|
+
if (this._minusSign.test(char) || char === '-') {
|
|
1091
|
+
this._minusSign.lastIndex = 0;
|
|
1092
|
+
return true;
|
|
1093
|
+
}
|
|
1094
|
+
return false;
|
|
1095
|
+
}
|
|
1096
|
+
isDecimalSign(char) {
|
|
1097
|
+
if (this._decimal.test(char)) {
|
|
1098
|
+
this._decimal.lastIndex = 0;
|
|
1099
|
+
return true;
|
|
1100
|
+
}
|
|
1101
|
+
return false;
|
|
1102
|
+
}
|
|
1103
|
+
isDecimalMode() {
|
|
1104
|
+
return this.mode() === 'decimal';
|
|
1105
|
+
}
|
|
1106
|
+
getDecimalCharIndexes(val) {
|
|
1107
|
+
let decimalCharIndex = val.search(this._decimal);
|
|
1108
|
+
this._decimal.lastIndex = 0;
|
|
1109
|
+
const filteredVal = val
|
|
1110
|
+
.replace(this._prefix, '')
|
|
1111
|
+
.trim()
|
|
1112
|
+
.replace(/\s/g, '')
|
|
1113
|
+
.replace(this._currency, '');
|
|
1114
|
+
const decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal);
|
|
1115
|
+
this._decimal.lastIndex = 0;
|
|
1116
|
+
return { decimalCharIndex, decimalCharIndexWithoutPrefix };
|
|
1117
|
+
}
|
|
1118
|
+
getCharIndexes(val) {
|
|
1119
|
+
const decimalCharIndex = val.search(this._decimal);
|
|
1120
|
+
this._decimal.lastIndex = 0;
|
|
1121
|
+
const minusCharIndex = val.search(this._minusSign);
|
|
1122
|
+
this._minusSign.lastIndex = 0;
|
|
1123
|
+
const suffixCharIndex = val.search(this._suffix);
|
|
1124
|
+
this._suffix.lastIndex = 0;
|
|
1125
|
+
const currencyCharIndex = val.search(this._currency);
|
|
1126
|
+
this._currency.lastIndex = 0;
|
|
1127
|
+
return { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex };
|
|
1128
|
+
}
|
|
1129
|
+
insert(event, text, sign = { isDecimalSign: false, isMinusSign: false }) {
|
|
1130
|
+
const minusCharIndexOnText = text.search(this._minusSign);
|
|
1131
|
+
this._minusSign.lastIndex = 0;
|
|
1132
|
+
if (!this.allowMinusSign() && minusCharIndexOnText !== -1) {
|
|
1133
|
+
return;
|
|
1134
|
+
}
|
|
1135
|
+
const inputVal = this.input();
|
|
1136
|
+
let selectionStart = inputVal?.nativeElement.selectionStart;
|
|
1137
|
+
let selectionEnd = inputVal?.nativeElement.selectionEnd;
|
|
1138
|
+
let inputValue = inputVal?.nativeElement.value.trim();
|
|
1139
|
+
const { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex } = this.getCharIndexes(inputValue);
|
|
1140
|
+
let newValueStr;
|
|
1141
|
+
if (sign.isMinusSign) {
|
|
1142
|
+
if (selectionStart === 0) {
|
|
1143
|
+
newValueStr = inputValue;
|
|
1144
|
+
if (minusCharIndex === -1 || selectionEnd !== 0) {
|
|
1145
|
+
newValueStr = this.insertText(inputValue, text, 0, selectionEnd);
|
|
1146
|
+
}
|
|
1147
|
+
this.updateValue(event, newValueStr, text, 'insert');
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
else if (sign.isDecimalSign) {
|
|
1151
|
+
if (decimalCharIndex > 0 && selectionStart === decimalCharIndex) {
|
|
1152
|
+
this.updateValue(event, inputValue, text, 'insert');
|
|
1153
|
+
}
|
|
1154
|
+
else if (decimalCharIndex > selectionStart && decimalCharIndex < selectionEnd) {
|
|
1155
|
+
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
1156
|
+
this.updateValue(event, newValueStr, text, 'insert');
|
|
1157
|
+
}
|
|
1158
|
+
else if (decimalCharIndex === -1 && this.maxFractionDigits()) {
|
|
1159
|
+
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
1160
|
+
this.updateValue(event, newValueStr, text, 'insert');
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
else {
|
|
1164
|
+
const maxFractionDigits = this.numberFormat.resolvedOptions().maximumFractionDigits;
|
|
1165
|
+
const operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';
|
|
1166
|
+
if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
1167
|
+
if (selectionStart + text.length - (decimalCharIndex + 1) <= maxFractionDigits) {
|
|
1168
|
+
const charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length;
|
|
1169
|
+
newValueStr = inputValue.slice(0, selectionStart) + text + inputValue.slice(selectionStart + text.length, charIndex) + inputValue.slice(charIndex);
|
|
1170
|
+
this.updateValue(event, newValueStr, text, operation);
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
else {
|
|
1174
|
+
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
1175
|
+
this.updateValue(event, newValueStr, text, operation);
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
insertText(value, text, start, end) {
|
|
1180
|
+
let textSplit = text === '.' ? text : text.split('.');
|
|
1181
|
+
if (textSplit.length === 2) {
|
|
1182
|
+
const decimalCharIndex = value.slice(start, end).search(this._decimal);
|
|
1183
|
+
this._decimal.lastIndex = 0;
|
|
1184
|
+
return decimalCharIndex > 0 ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : value || this.formatValue(text);
|
|
1185
|
+
}
|
|
1186
|
+
else if (end - start === value.length) {
|
|
1187
|
+
return this.formatValue(text);
|
|
1188
|
+
}
|
|
1189
|
+
else if (start === 0) {
|
|
1190
|
+
return text + value.slice(end);
|
|
1191
|
+
}
|
|
1192
|
+
else if (end === value.length) {
|
|
1193
|
+
return value.slice(0, start) + text;
|
|
1194
|
+
}
|
|
1195
|
+
else {
|
|
1196
|
+
return value.slice(0, start) + text + value.slice(end);
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
deleteRange(value, start, end) {
|
|
1200
|
+
let newValueStr;
|
|
1201
|
+
if (end - start === value.length)
|
|
1202
|
+
newValueStr = '';
|
|
1203
|
+
else if (start === 0)
|
|
1204
|
+
newValueStr = value.slice(end);
|
|
1205
|
+
else if (end === value.length)
|
|
1206
|
+
newValueStr = value.slice(0, start);
|
|
1207
|
+
else
|
|
1208
|
+
newValueStr = value.slice(0, start) + value.slice(end);
|
|
1209
|
+
return newValueStr;
|
|
1210
|
+
}
|
|
1211
|
+
initCursor() {
|
|
1212
|
+
const inputVal = this.input();
|
|
1213
|
+
let selectionStart = inputVal?.nativeElement.selectionStart;
|
|
1214
|
+
let selectionEnd = inputVal?.nativeElement.selectionEnd;
|
|
1215
|
+
let inputValue = inputVal?.nativeElement.value;
|
|
1216
|
+
let valueLength = inputValue.length;
|
|
1217
|
+
let index = null;
|
|
1218
|
+
// remove prefix
|
|
1219
|
+
let prefixLength = (this.prefixChar || '').length;
|
|
1220
|
+
inputValue = inputValue.replace(this._prefix, '');
|
|
1221
|
+
// Will allow selecting whole prefix. But not a part of it.
|
|
1222
|
+
// Negative values will trigger clauses after this to fix the cursor position.
|
|
1223
|
+
if (selectionStart === selectionEnd || selectionStart !== 0 || selectionEnd < prefixLength) {
|
|
1224
|
+
selectionStart -= prefixLength;
|
|
1225
|
+
}
|
|
1226
|
+
let char = inputValue.charAt(selectionStart);
|
|
1227
|
+
if (this.isNumeralChar(char)) {
|
|
1228
|
+
return selectionStart + prefixLength;
|
|
1229
|
+
}
|
|
1230
|
+
//left
|
|
1231
|
+
let i = selectionStart - 1;
|
|
1232
|
+
while (i >= 0) {
|
|
1233
|
+
char = inputValue.charAt(i);
|
|
1234
|
+
if (this.isNumeralChar(char)) {
|
|
1235
|
+
index = i + prefixLength;
|
|
1236
|
+
break;
|
|
1237
|
+
}
|
|
1238
|
+
else {
|
|
1239
|
+
i--;
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
if (index !== null) {
|
|
1243
|
+
inputVal?.nativeElement.setSelectionRange(index + 1, index + 1);
|
|
1244
|
+
}
|
|
1245
|
+
else {
|
|
1246
|
+
i = selectionStart;
|
|
1247
|
+
while (i < valueLength) {
|
|
1248
|
+
char = inputValue.charAt(i);
|
|
1249
|
+
if (this.isNumeralChar(char)) {
|
|
1250
|
+
index = i + prefixLength;
|
|
1251
|
+
break;
|
|
1252
|
+
}
|
|
1253
|
+
else {
|
|
1254
|
+
i++;
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
if (index !== null) {
|
|
1258
|
+
inputVal?.nativeElement.setSelectionRange(index, index);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
return index || 0;
|
|
1262
|
+
}
|
|
1263
|
+
onInputClick() {
|
|
1264
|
+
const currentValue = this.input()?.nativeElement.value;
|
|
1265
|
+
if (!this.readonly() && currentValue !== getSelection()) {
|
|
1266
|
+
this.initCursor();
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
isNumeralChar(char) {
|
|
1270
|
+
if (char.length === 1 && (this._numeral.test(char) || this._decimal.test(char) || this._group.test(char) || this._minusSign.test(char))) {
|
|
1271
|
+
this.resetRegex();
|
|
1272
|
+
return true;
|
|
1273
|
+
}
|
|
1274
|
+
return false;
|
|
1275
|
+
}
|
|
1276
|
+
resetRegex() {
|
|
1277
|
+
this._numeral.lastIndex = 0;
|
|
1278
|
+
this._decimal.lastIndex = 0;
|
|
1279
|
+
this._group.lastIndex = 0;
|
|
1280
|
+
this._minusSign.lastIndex = 0;
|
|
1281
|
+
}
|
|
1282
|
+
updateValue(event, valueStr, insertedValueStr, operation) {
|
|
1283
|
+
let currentValue = this.input()?.nativeElement.value;
|
|
1284
|
+
let newValue = null;
|
|
1285
|
+
if (valueStr != null) {
|
|
1286
|
+
newValue = this.parseValue(valueStr);
|
|
1287
|
+
newValue = !newValue && !this.allowEmpty() ? 0 : newValue;
|
|
1288
|
+
this.updateInput(newValue, insertedValueStr, operation, valueStr);
|
|
1289
|
+
this.handleOnInput(event, currentValue, newValue);
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
handleOnInput(event, currentValue, newValue) {
|
|
1293
|
+
if (this.isValueChanged(currentValue, newValue)) {
|
|
1294
|
+
this.input().nativeElement.value = this.formatValue(newValue);
|
|
1295
|
+
this.input()?.nativeElement.setAttribute('aria-valuenow', newValue);
|
|
1296
|
+
this.updateModel(event, newValue);
|
|
1297
|
+
this.onInput.emit({ originalEvent: event, value: newValue, formattedValue: currentValue });
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
isValueChanged(currentValue, newValue) {
|
|
1301
|
+
if (newValue === null && currentValue !== null) {
|
|
1302
|
+
return true;
|
|
1303
|
+
}
|
|
1304
|
+
if (newValue != null) {
|
|
1305
|
+
let parsedCurrentValue = typeof currentValue === 'string' ? this.parseValue(currentValue) : currentValue;
|
|
1306
|
+
return newValue !== parsedCurrentValue;
|
|
1307
|
+
}
|
|
1308
|
+
return false;
|
|
1309
|
+
}
|
|
1310
|
+
validateValue(value) {
|
|
1311
|
+
if (value === '-' || value == null) {
|
|
1312
|
+
return null;
|
|
1313
|
+
}
|
|
1314
|
+
const min = this.min();
|
|
1315
|
+
const max = this.max();
|
|
1316
|
+
if (min != null && value < min) {
|
|
1317
|
+
return this.min();
|
|
1318
|
+
}
|
|
1319
|
+
if (max != null && value > max) {
|
|
1320
|
+
return max;
|
|
1321
|
+
}
|
|
1322
|
+
return value;
|
|
1323
|
+
}
|
|
1324
|
+
updateInput(value, insertedValueStr, operation, valueStr) {
|
|
1325
|
+
insertedValueStr = insertedValueStr || '';
|
|
1326
|
+
const inputVal = this.input();
|
|
1327
|
+
let inputValue = inputVal?.nativeElement.value;
|
|
1328
|
+
let newValue = this.formatValue(value);
|
|
1329
|
+
let currentLength = inputValue.length;
|
|
1330
|
+
if (newValue !== valueStr) {
|
|
1331
|
+
newValue = this.concatValues(newValue, valueStr);
|
|
1332
|
+
}
|
|
1333
|
+
if (currentLength === 0) {
|
|
1334
|
+
inputVal.nativeElement.value = newValue;
|
|
1335
|
+
inputVal.nativeElement.setSelectionRange(0, 0);
|
|
1336
|
+
const index = this.initCursor();
|
|
1337
|
+
const selectionEnd = index + insertedValueStr.length;
|
|
1338
|
+
inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
|
|
1339
|
+
}
|
|
1340
|
+
else {
|
|
1341
|
+
let selectionStart = inputVal.nativeElement.selectionStart;
|
|
1342
|
+
let selectionEnd = inputVal.nativeElement.selectionEnd;
|
|
1343
|
+
const maxlength = this.maxlength();
|
|
1344
|
+
if (maxlength && newValue.length > maxlength) {
|
|
1345
|
+
newValue = newValue.slice(0, maxlength);
|
|
1346
|
+
selectionStart = Math.min(selectionStart, maxlength);
|
|
1347
|
+
selectionEnd = Math.min(selectionEnd, maxlength);
|
|
1348
|
+
}
|
|
1349
|
+
if (maxlength && maxlength < newValue.length) {
|
|
1350
|
+
return;
|
|
1351
|
+
}
|
|
1352
|
+
inputVal.nativeElement.value = newValue;
|
|
1353
|
+
let newLength = newValue.length;
|
|
1354
|
+
if (operation === 'range-insert') {
|
|
1355
|
+
const startValue = this.parseValue((inputValue || '').slice(0, selectionStart));
|
|
1356
|
+
const startValueStr = startValue !== null ? startValue.toString() : '';
|
|
1357
|
+
const startExpr = startValueStr.split('').join(`(${this.groupChar})?`);
|
|
1358
|
+
const sRegex = new RegExp(startExpr, 'g');
|
|
1359
|
+
sRegex.test(newValue);
|
|
1360
|
+
const tExpr = insertedValueStr.split('').join(`(${this.groupChar})?`);
|
|
1361
|
+
const tRegex = new RegExp(tExpr, 'g');
|
|
1362
|
+
tRegex.test(newValue.slice(sRegex.lastIndex));
|
|
1363
|
+
selectionEnd = sRegex.lastIndex + tRegex.lastIndex;
|
|
1364
|
+
inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
|
|
1365
|
+
}
|
|
1366
|
+
else if (newLength === currentLength) {
|
|
1367
|
+
if (operation === 'insert' || operation === 'delete-back-single')
|
|
1368
|
+
inputVal.nativeElement.setSelectionRange(selectionEnd + 1, selectionEnd + 1);
|
|
1369
|
+
else if (operation === 'delete-single')
|
|
1370
|
+
inputVal.nativeElement.setSelectionRange(selectionEnd - 1, selectionEnd - 1);
|
|
1371
|
+
else if (operation === 'delete-range' || operation === 'spin')
|
|
1372
|
+
inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
|
|
1373
|
+
}
|
|
1374
|
+
else if (operation === 'delete-back-single') {
|
|
1375
|
+
let prevChar = inputValue.charAt(selectionEnd - 1);
|
|
1376
|
+
let nextChar = inputValue.charAt(selectionEnd);
|
|
1377
|
+
let diff = currentLength - newLength;
|
|
1378
|
+
let isGroupChar = this._group.test(nextChar);
|
|
1379
|
+
if (isGroupChar && diff === 1) {
|
|
1380
|
+
selectionEnd += 1;
|
|
1381
|
+
}
|
|
1382
|
+
else if (!isGroupChar && this.isNumeralChar(prevChar)) {
|
|
1383
|
+
selectionEnd += -1 * diff + 1;
|
|
1384
|
+
}
|
|
1385
|
+
this._group.lastIndex = 0;
|
|
1386
|
+
inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
|
|
1387
|
+
}
|
|
1388
|
+
else if (inputValue === '-' && operation === 'insert') {
|
|
1389
|
+
inputVal.nativeElement.setSelectionRange(0, 0);
|
|
1390
|
+
const index = this.initCursor();
|
|
1391
|
+
const selectionEnd = index + insertedValueStr.length + 1;
|
|
1392
|
+
inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
|
|
1393
|
+
}
|
|
1394
|
+
else {
|
|
1395
|
+
selectionEnd = selectionEnd + (newLength - currentLength);
|
|
1396
|
+
inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
inputVal.nativeElement.setAttribute('aria-valuenow', value);
|
|
1400
|
+
}
|
|
1401
|
+
concatValues(val1, val2) {
|
|
1402
|
+
if (val1 && val2) {
|
|
1403
|
+
let decimalCharIndex = val2.search(this._decimal);
|
|
1404
|
+
this._decimal.lastIndex = 0;
|
|
1405
|
+
if (this.suffixChar) {
|
|
1406
|
+
return decimalCharIndex !== -1 ? val1.replace(this.suffixChar, '').split(this._decimal)[0] + val2.replace(this.suffixChar, '').slice(decimalCharIndex) + this.suffixChar : val1;
|
|
1407
|
+
}
|
|
1408
|
+
else {
|
|
1409
|
+
return decimalCharIndex !== -1 ? val1.split(this._decimal)[0] + val2.slice(decimalCharIndex) : val1;
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
return val1;
|
|
1413
|
+
}
|
|
1414
|
+
getDecimalLength(value) {
|
|
1415
|
+
if (value) {
|
|
1416
|
+
const valueSplit = value.split(this._decimal);
|
|
1417
|
+
if (valueSplit.length === 2) {
|
|
1418
|
+
return valueSplit[1]
|
|
1419
|
+
.replace(this._suffix, '')
|
|
1420
|
+
.trim()
|
|
1421
|
+
.replace(/\s/g, '')
|
|
1422
|
+
.replace(this._currency, '').length;
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
return 0;
|
|
1426
|
+
}
|
|
1427
|
+
onInputFocus(event) {
|
|
1428
|
+
this.focused = true;
|
|
1429
|
+
this.onFocus.emit(event);
|
|
1430
|
+
}
|
|
1431
|
+
onInputBlur(event) {
|
|
1432
|
+
this.focused = false;
|
|
1433
|
+
const newValueNumber = this.validateValue(this.parseValue(this.input().nativeElement.value));
|
|
1434
|
+
const newValueString = newValueNumber?.toString();
|
|
1435
|
+
this.input().nativeElement.value = this.formatValue(newValueString);
|
|
1436
|
+
this.input().nativeElement.setAttribute('aria-valuenow', newValueString);
|
|
1437
|
+
this.updateModel(event, newValueNumber);
|
|
1438
|
+
this.onModelTouched();
|
|
1439
|
+
this.onBlur.emit(event);
|
|
1440
|
+
}
|
|
1441
|
+
formattedValue() {
|
|
1442
|
+
const val = !this.value && !this.allowEmpty() ? 0 : this.value;
|
|
1443
|
+
return this.formatValue(val);
|
|
1444
|
+
}
|
|
1445
|
+
updateModel(event, value) {
|
|
1446
|
+
const isBlurUpdateOnMode = this.ngControl?.control?.updateOn === 'blur';
|
|
1447
|
+
if (this.value !== value) {
|
|
1448
|
+
this.value = value;
|
|
1449
|
+
if (!(isBlurUpdateOnMode && this.focused)) {
|
|
1450
|
+
this.onModelChange(value);
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
else if (isBlurUpdateOnMode) {
|
|
1454
|
+
this.onModelChange(value);
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* @override
|
|
1459
|
+
*
|
|
1460
|
+
* @see {@link BaseEditableHolder.writeControlValue}
|
|
1461
|
+
* Writes the value to the control.
|
|
1462
|
+
*/
|
|
1463
|
+
writeControlValue(value, setModelValue) {
|
|
1464
|
+
this.value = value ? Number(value) : value;
|
|
1465
|
+
setModelValue(value);
|
|
1466
|
+
this.cd.markForCheck();
|
|
1467
|
+
}
|
|
1468
|
+
clearTimer() {
|
|
1469
|
+
if (this.timer) {
|
|
1470
|
+
clearInterval(this.timer);
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
get dataP() {
|
|
1474
|
+
return this.cn({
|
|
1475
|
+
invalid: this.invalid(),
|
|
1476
|
+
disabled: this.$disabled(),
|
|
1477
|
+
focus: this.focused,
|
|
1478
|
+
fluid: this.hasFluid,
|
|
1479
|
+
filled: this.$variant() === 'filled',
|
|
1480
|
+
empty: !this.$filled(),
|
|
1481
|
+
[this.size()]: this.size(),
|
|
1482
|
+
[this.buttonLayout()]: this.showButtons() && this.buttonLayout()
|
|
1483
|
+
});
|
|
1484
|
+
}
|
|
1485
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumber, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
1486
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: InputNumber, isStandalone: true, selector: "h-inputNumber, h-inputnumber, h-input-number", inputs: { showButtons: { classPropertyName: "showButtons", publicName: "showButtons", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, buttonLayout: { classPropertyName: "buttonLayout", publicName: "buttonLayout", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaRequired: { classPropertyName: "ariaRequired", publicName: "ariaRequired", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, incrementButtonClass: { classPropertyName: "incrementButtonClass", publicName: "incrementButtonClass", isSignal: true, isRequired: false, transformFunction: null }, decrementButtonClass: { classPropertyName: "decrementButtonClass", publicName: "decrementButtonClass", isSignal: true, isRequired: false, transformFunction: null }, incrementButtonIcon: { classPropertyName: "incrementButtonIcon", publicName: "incrementButtonIcon", isSignal: true, isRequired: false, transformFunction: null }, decrementButtonIcon: { classPropertyName: "decrementButtonIcon", publicName: "decrementButtonIcon", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, allowEmpty: { classPropertyName: "allowEmpty", publicName: "allowEmpty", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, localeMatcher: { classPropertyName: "localeMatcher", publicName: "localeMatcher", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, currencyDisplay: { classPropertyName: "currencyDisplay", publicName: "currencyDisplay", isSignal: true, isRequired: false, transformFunction: null }, useGrouping: { classPropertyName: "useGrouping", publicName: "useGrouping", isSignal: true, isRequired: false, transformFunction: null }, minFractionDigits: { classPropertyName: "minFractionDigits", publicName: "minFractionDigits", isSignal: true, isRequired: false, transformFunction: null }, maxFractionDigits: { classPropertyName: "maxFractionDigits", publicName: "maxFractionDigits", isSignal: true, isRequired: false, transformFunction: null }, prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, suffix: { classPropertyName: "suffix", publicName: "suffix", isSignal: true, isRequired: false, transformFunction: null }, inputStyle: { classPropertyName: "inputStyle", publicName: "inputStyle", isSignal: true, isRequired: false, transformFunction: null }, inputStyleClass: { classPropertyName: "inputStyleClass", publicName: "inputStyleClass", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onInput: "onInput", onFocus: "onFocus", onBlur: "onBlur", onKeyDown: "onKeyDown", onClear: "onClear" }, host: { properties: { "class": "cn(cx('root'), styleClass())", "attr.data-h": "dataP" } }, providers: [INPUTNUMBER_VALUE_ACCESSOR, InputNumberStyle, { provide: INPUTNUMBER_INSTANCE, useExisting: InputNumber }, { provide: PARENT_INSTANCE, useExisting: InputNumber }], queries: [{ propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"], isSignal: true }, { propertyName: "incrementButtonIconTemplate", first: true, predicate: ["incrementbuttonicon"], isSignal: true }, { propertyName: "decrementButtonIconTemplate", first: true, predicate: ["decrementbuttonicon"], isSignal: true }, { propertyName: "templates", predicate: HelixTemplate, isSignal: true }], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: "<input\n hInputText\n #input\n [attr.id]=\"inputId()\"\n role=\"spinbutton\"\n [class]=\"cn(cx('pcInputText'), inputStyleClass())\"\n [value]=\"formattedValue()\"\n [ngStyle]=\"inputStyle()\"\n [variant]=\"$variant()\"\n [invalid]=\"invalid()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"value\"\n [attr.placeholder]=\"placeholder()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.title]=\"title()\"\n [pSize]=\"size()\"\n [attr.size]=\"inputSize()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.minlength]=\"minlength()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-required]=\"ariaRequired()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step() ?? 1\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n inputmode=\"decimal\"\n (input)=\"onUserInput($event)\"\n (keydown)=\"onInputKeyDown($event)\"\n (keypress)=\"onInputKeyPress($event)\"\n (paste)=\"onPaste($event)\"\n (click)=\"onInputClick()\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n [pt]=\"ptm('pcInputText')\"\n [unstyled]=\"unstyled()\"\n [hAutoFocus]=\"autofocus()\"\n [fluid]=\"hasFluid\"\n [attr.data-h]=\"dataP\"\n />\n@if (buttonLayout() != 'vertical' && showClear() && value) {\n @if (!clearIconTemplate() && !_clearIconTemplate) {\n <svg data-h-icon=\"times\" [hBind]=\"ptm('clearIcon')\" [class]=\"cx('clearIcon')\" (click)=\"clear()\" />\n }\n @if (clearIconTemplate() || _clearIconTemplate) {\n <span [hBind]=\"ptm('clearIcon')\" (click)=\"clear()\" [class]=\"cx('clearIcon')\">\n <ng-template *ngTemplateOutlet=\"clearIconTemplate() || _clearIconTemplate\"></ng-template>\n </span>\n }\n}\n@if (showButtons() && buttonLayout() === 'stacked') {\n <span [hBind]=\"ptm('buttonGroup')\" [class]=\"cx('buttonGroup')\" [attr.data-h]=\"dataP\">\n <button\n type=\"button\"\n [hBind]=\"ptm('incrementButton')\"\n [class]=\"cn(cx('incrementButton'), incrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n (mousedown)=\"onUpButtonMouseDown($event)\"\n (mouseup)=\"onUpButtonMouseUp()\"\n (mouseleave)=\"onUpButtonMouseLeave()\"\n (keydown)=\"onUpButtonKeyDown($event)\"\n (keyup)=\"onUpButtonKeyUp()\"\n [attr.aria-hidden]=\"true\"\n [attr.data-h]=\"dataP\"\n >\n @if (incrementButtonIcon()) {\n <span [hBind]=\"ptm('incrementButtonIcon')\" [ngClass]=\"incrementButtonIcon()\"></span>\n }\n @if (!incrementButtonIcon()) {\n @if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-up\" [hBind]=\"ptm('incrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"incrementButtonIconTemplate() || _incrementButtonIconTemplate\"></ng-template>\n }\n </button>\n <button\n type=\"button\"\n [hBind]=\"ptm('decrementButton')\"\n [class]=\"cn(cx('decrementButton'), decrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onDownButtonMouseDown($event)\"\n (mouseup)=\"onDownButtonMouseUp()\"\n (mouseleave)=\"onDownButtonMouseLeave()\"\n (keydown)=\"onDownButtonKeyDown($event)\"\n (keyup)=\"onDownButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (decrementButtonIcon()) {\n <span [hBind]=\"ptm('decrementButtonIcon')\" [ngClass]=\"decrementButtonIcon()\"></span>\n }\n @if (!decrementButtonIcon()) {\n @if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-down\" [hBind]=\"ptm('decrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"decrementButtonIconTemplate() || _decrementButtonIconTemplate\"></ng-template>\n }\n </button>\n </span>\n}\n@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n [hBind]=\"ptm('incrementButton')\"\n [class]=\"cn(cx('incrementButton'), incrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onUpButtonMouseDown($event)\"\n (mouseup)=\"onUpButtonMouseUp()\"\n (mouseleave)=\"onUpButtonMouseLeave()\"\n (keydown)=\"onUpButtonKeyDown($event)\"\n (keyup)=\"onUpButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (incrementButtonIcon()) {\n <span [hBind]=\"ptm('incrementButtonIcon')\" [ngClass]=\"incrementButtonIcon()\"></span>\n }\n @if (!incrementButtonIcon()) {\n @if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-up\" [hBind]=\"ptm('incrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"incrementButtonIconTemplate() || _incrementButtonIconTemplate\"></ng-template>\n }\n </button>\n}\n@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n [hBind]=\"ptm('decrementButton')\"\n [class]=\"cn(cx('decrementButton'), decrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onDownButtonMouseDown($event)\"\n (mouseup)=\"onDownButtonMouseUp()\"\n (mouseleave)=\"onDownButtonMouseLeave()\"\n (keydown)=\"onDownButtonKeyDown($event)\"\n (keyup)=\"onDownButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (decrementButtonIcon()) {\n <span [hBind]=\"ptm('decrementButtonIcon')\" [ngClass]=\"decrementButtonIcon()\"></span>\n }\n @if (!decrementButtonIcon()) {\n @if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-down\" [hBind]=\"ptm('decrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"decrementButtonIconTemplate() || _decrementButtonIconTemplate\"></ng-template>\n }\n </button>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: InputText, selector: "[hInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "directive", type: AutoFocus, selector: "[hAutoFocus]", inputs: ["hAutoFocus"] }, { kind: "component", type: TimesIcon, selector: "[data-h-icon=\"times\"]" }, { kind: "component", type: AngleUpIcon, selector: "[data-h-icon=\"angle-up\"]" }, { kind: "component", type: AngleDownIcon, selector: "[data-h-icon=\"angle-down\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[hBind]", inputs: ["hBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1487
|
+
}
|
|
1488
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumber, decorators: [{
|
|
1489
|
+
type: Component,
|
|
1490
|
+
args: [{ selector: 'h-inputNumber, h-inputnumber, h-input-number', standalone: true, imports: [CommonModule, InputText, AutoFocus, TimesIcon, AngleUpIcon, AngleDownIcon, SharedModule, BindModule], changeDetection: ChangeDetectionStrategy.OnPush, providers: [INPUTNUMBER_VALUE_ACCESSOR, InputNumberStyle, { provide: INPUTNUMBER_INSTANCE, useExisting: InputNumber }, { provide: PARENT_INSTANCE, useExisting: InputNumber }], encapsulation: ViewEncapsulation.None, host: {
|
|
1491
|
+
'[class]': "cn(cx('root'), styleClass())",
|
|
1492
|
+
'[attr.data-h]': 'dataP'
|
|
1493
|
+
}, hostDirectives: [Bind], template: "<input\n hInputText\n #input\n [attr.id]=\"inputId()\"\n role=\"spinbutton\"\n [class]=\"cn(cx('pcInputText'), inputStyleClass())\"\n [value]=\"formattedValue()\"\n [ngStyle]=\"inputStyle()\"\n [variant]=\"$variant()\"\n [invalid]=\"invalid()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"value\"\n [attr.placeholder]=\"placeholder()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.title]=\"title()\"\n [pSize]=\"size()\"\n [attr.size]=\"inputSize()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.minlength]=\"minlength()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-required]=\"ariaRequired()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step() ?? 1\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n inputmode=\"decimal\"\n (input)=\"onUserInput($event)\"\n (keydown)=\"onInputKeyDown($event)\"\n (keypress)=\"onInputKeyPress($event)\"\n (paste)=\"onPaste($event)\"\n (click)=\"onInputClick()\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n [pt]=\"ptm('pcInputText')\"\n [unstyled]=\"unstyled()\"\n [hAutoFocus]=\"autofocus()\"\n [fluid]=\"hasFluid\"\n [attr.data-h]=\"dataP\"\n />\n@if (buttonLayout() != 'vertical' && showClear() && value) {\n @if (!clearIconTemplate() && !_clearIconTemplate) {\n <svg data-h-icon=\"times\" [hBind]=\"ptm('clearIcon')\" [class]=\"cx('clearIcon')\" (click)=\"clear()\" />\n }\n @if (clearIconTemplate() || _clearIconTemplate) {\n <span [hBind]=\"ptm('clearIcon')\" (click)=\"clear()\" [class]=\"cx('clearIcon')\">\n <ng-template *ngTemplateOutlet=\"clearIconTemplate() || _clearIconTemplate\"></ng-template>\n </span>\n }\n}\n@if (showButtons() && buttonLayout() === 'stacked') {\n <span [hBind]=\"ptm('buttonGroup')\" [class]=\"cx('buttonGroup')\" [attr.data-h]=\"dataP\">\n <button\n type=\"button\"\n [hBind]=\"ptm('incrementButton')\"\n [class]=\"cn(cx('incrementButton'), incrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n (mousedown)=\"onUpButtonMouseDown($event)\"\n (mouseup)=\"onUpButtonMouseUp()\"\n (mouseleave)=\"onUpButtonMouseLeave()\"\n (keydown)=\"onUpButtonKeyDown($event)\"\n (keyup)=\"onUpButtonKeyUp()\"\n [attr.aria-hidden]=\"true\"\n [attr.data-h]=\"dataP\"\n >\n @if (incrementButtonIcon()) {\n <span [hBind]=\"ptm('incrementButtonIcon')\" [ngClass]=\"incrementButtonIcon()\"></span>\n }\n @if (!incrementButtonIcon()) {\n @if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-up\" [hBind]=\"ptm('incrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"incrementButtonIconTemplate() || _incrementButtonIconTemplate\"></ng-template>\n }\n </button>\n <button\n type=\"button\"\n [hBind]=\"ptm('decrementButton')\"\n [class]=\"cn(cx('decrementButton'), decrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onDownButtonMouseDown($event)\"\n (mouseup)=\"onDownButtonMouseUp()\"\n (mouseleave)=\"onDownButtonMouseLeave()\"\n (keydown)=\"onDownButtonKeyDown($event)\"\n (keyup)=\"onDownButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (decrementButtonIcon()) {\n <span [hBind]=\"ptm('decrementButtonIcon')\" [ngClass]=\"decrementButtonIcon()\"></span>\n }\n @if (!decrementButtonIcon()) {\n @if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-down\" [hBind]=\"ptm('decrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"decrementButtonIconTemplate() || _decrementButtonIconTemplate\"></ng-template>\n }\n </button>\n </span>\n}\n@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n [hBind]=\"ptm('incrementButton')\"\n [class]=\"cn(cx('incrementButton'), incrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onUpButtonMouseDown($event)\"\n (mouseup)=\"onUpButtonMouseUp()\"\n (mouseleave)=\"onUpButtonMouseLeave()\"\n (keydown)=\"onUpButtonKeyDown($event)\"\n (keyup)=\"onUpButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (incrementButtonIcon()) {\n <span [hBind]=\"ptm('incrementButtonIcon')\" [ngClass]=\"incrementButtonIcon()\"></span>\n }\n @if (!incrementButtonIcon()) {\n @if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-up\" [hBind]=\"ptm('incrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"incrementButtonIconTemplate() || _incrementButtonIconTemplate\"></ng-template>\n }\n </button>\n}\n@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n [hBind]=\"ptm('decrementButton')\"\n [class]=\"cn(cx('decrementButton'), decrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onDownButtonMouseDown($event)\"\n (mouseup)=\"onDownButtonMouseUp()\"\n (mouseleave)=\"onDownButtonMouseLeave()\"\n (keydown)=\"onDownButtonKeyDown($event)\"\n (keyup)=\"onDownButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (decrementButtonIcon()) {\n <span [hBind]=\"ptm('decrementButtonIcon')\" [ngClass]=\"decrementButtonIcon()\"></span>\n }\n @if (!decrementButtonIcon()) {\n @if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-down\" [hBind]=\"ptm('decrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"decrementButtonIconTemplate() || _decrementButtonIconTemplate\"></ng-template>\n }\n </button>\n}\n" }]
|
|
1494
|
+
}], ctorParameters: () => [{ type: i0.Injector }], propDecorators: { showButtons: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtons", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], buttonLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonLayout", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaRequired: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaRequired", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], incrementButtonClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "incrementButtonClass", required: false }] }], decrementButtonClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "decrementButtonClass", required: false }] }], incrementButtonIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "incrementButtonIcon", required: false }] }], decrementButtonIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "decrementButtonIcon", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], allowEmpty: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowEmpty", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], localeMatcher: [{ type: i0.Input, args: [{ isSignal: true, alias: "localeMatcher", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], currency: [{ type: i0.Input, args: [{ isSignal: true, alias: "currency", required: false }] }], currencyDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "currencyDisplay", required: false }] }], useGrouping: [{ type: i0.Input, args: [{ isSignal: true, alias: "useGrouping", required: false }] }], minFractionDigits: [{ type: i0.Input, args: [{ isSignal: true, alias: "minFractionDigits", required: false }] }], maxFractionDigits: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxFractionDigits", required: false }] }], prefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefix", required: false }] }], suffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "suffix", required: false }] }], inputStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyle", required: false }] }], inputStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyleClass", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], onInput: [{ type: i0.Output, args: ["onInput"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onKeyDown: [{ type: i0.Output, args: ["onKeyDown"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], clearIconTemplate: [{ type: i0.ContentChild, args: ['clearicon', { ...{ descendants: false }, isSignal: true }] }], incrementButtonIconTemplate: [{ type: i0.ContentChild, args: ['incrementbuttonicon', { ...{ descendants: false }, isSignal: true }] }], decrementButtonIconTemplate: [{ type: i0.ContentChild, args: ['decrementbuttonicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => HelixTemplate), { isSignal: true }] }], input: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }] } });
|
|
1495
|
+
class InputNumberModule {
|
|
1496
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1497
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.6", ngImport: i0, type: InputNumberModule, imports: [InputNumber, SharedModule], exports: [InputNumber, SharedModule] });
|
|
1498
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumberModule, imports: [InputNumber, SharedModule, SharedModule] });
|
|
1499
|
+
}
|
|
1500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumberModule, decorators: [{
|
|
1501
|
+
type: NgModule,
|
|
1502
|
+
args: [{
|
|
1503
|
+
imports: [InputNumber, SharedModule],
|
|
1504
|
+
exports: [InputNumber, SharedModule]
|
|
1505
|
+
}]
|
|
1506
|
+
}] });
|
|
1507
|
+
|
|
1508
|
+
/**
|
|
1509
|
+
* Generated bundle index. Do not edit.
|
|
1510
|
+
*/
|
|
1511
|
+
|
|
1512
|
+
export { INPUTNUMBER_VALUE_ACCESSOR, InputNumber, InputNumberClasses, InputNumberModule, InputNumberStyle };
|
|
1513
|
+
//# sourceMappingURL=gravionlabs-helix-core-inputnumber.mjs.map
|