@exhaustive-ui/core 3.0.0-alpha.0 → 22.0.0-alpha.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/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +10 -17
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +786 -928
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
- package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +561 -599
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +227 -394
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +255 -266
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +585 -653
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +1792 -1787
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +480 -577
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +774 -745
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
- package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +68 -102
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
- package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +591 -728
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +324 -375
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +945 -1045
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +861 -879
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
- package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +837 -986
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
- package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +2435 -2721
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
- package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +604 -690
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +333 -423
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/package.json +11 -11
- package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
- package/schematics/migrations/renamed-inputs/migration.js +97 -0
- package/schematics/migrations/styleclass-to-class/migration.js +92 -1
- package/schematics/migrations.json +11 -6
- package/schematics/utils/removed-inputs.js +0 -0
- package/schematics/utils/renamed-inputs.js +175 -0
- package/schematics/utils/styleclass.js +24 -8
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-accordion.d.ts +8 -24
- package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
- package/types/exhaustive-ui-core-api.d.ts +2 -3
- package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
- package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
- package/types/exhaustive-ui-core-avatar.d.ts +18 -25
- package/types/exhaustive-ui-core-badge.d.ts +13 -27
- package/types/exhaustive-ui-core-blockui.d.ts +18 -30
- package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
- package/types/exhaustive-ui-core-button.d.ts +57 -89
- package/types/exhaustive-ui-core-carousel.d.ts +56 -82
- package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
- package/types/exhaustive-ui-core-chart.d.ts +21 -29
- package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
- package/types/exhaustive-ui-core-chip.d.ts +31 -38
- package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
- package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
- package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
- package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
- package/types/exhaustive-ui-core-dataview.d.ts +42 -65
- package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
- package/types/exhaustive-ui-core-dialog.d.ts +73 -123
- package/types/exhaustive-ui-core-dock.d.ts +16 -25
- package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
- package/types/exhaustive-ui-core-drawer.d.ts +32 -64
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
- package/types/exhaustive-ui-core-editor.d.ts +15 -25
- package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
- package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
- package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
- package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
- package/types/exhaustive-ui-core-galleria.d.ts +124 -194
- package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
- package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
- package/types/exhaustive-ui-core-image.d.ts +35 -68
- package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
- package/types/exhaustive-ui-core-inplace.d.ts +30 -42
- package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
- package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
- package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
- package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
- package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
- package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
- package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
- package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
- package/types/exhaustive-ui-core-knob.d.ts +45 -60
- package/types/exhaustive-ui-core-listbox.d.ts +90 -126
- package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
- package/types/exhaustive-ui-core-menu.d.ts +33 -53
- package/types/exhaustive-ui-core-menubar.d.ts +38 -85
- package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
- package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
- package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
- package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
- package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
- package/types/exhaustive-ui-core-paginator.d.ts +41 -69
- package/types/exhaustive-ui-core-panel.d.ts +18 -45
- package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
- package/types/exhaustive-ui-core-password.d.ts +56 -93
- package/types/exhaustive-ui-core-picklist.d.ts +107 -121
- package/types/exhaustive-ui-core-popover.d.ts +23 -47
- package/types/exhaustive-ui-core-rating.d.ts +18 -26
- package/types/exhaustive-ui-core-scroller.d.ts +90 -120
- package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
- package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
- package/types/exhaustive-ui-core-select.d.ts +137 -188
- package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
- package/types/exhaustive-ui-core-slider.d.ts +52 -67
- package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
- package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
- package/types/exhaustive-ui-core-splitter.d.ts +47 -59
- package/types/exhaustive-ui-core-steps.d.ts +24 -31
- package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
- package/types/exhaustive-ui-core-table.d.ts +349 -453
- package/types/exhaustive-ui-core-terminal.d.ts +10 -22
- package/types/exhaustive-ui-core-textarea.d.ts +7 -10
- package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
- package/types/exhaustive-ui-core-timeline.d.ts +20 -28
- package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
- package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
- package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
- package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
- package/types/exhaustive-ui-core-tree.d.ts +82 -119
- package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
- package/types/exhaustive-ui-core-treetable.d.ts +203 -280
- package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i2 from '@angular/common';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Injectable, InjectionToken, forwardRef, inject, Injector, output, contentChild, contentChildren, viewChild,
|
|
4
|
+
import { Injectable, InjectionToken, forwardRef, inject, Injector, afterEveryRender, input, booleanAttribute, numberAttribute, output, contentChild, contentChildren, viewChild, computed, signal, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
5
5
|
import { NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
|
|
6
6
|
import { getSelection } from '@exhaustive-ui/utils';
|
|
7
7
|
import { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
|
|
@@ -42,11 +42,11 @@ const classes = {
|
|
|
42
42
|
root: ({ instance }) => [
|
|
43
43
|
'p-inputnumber p-component p-inputwrapper',
|
|
44
44
|
{
|
|
45
|
-
'p-inputwrapper-filled': instance.$filled() || instance.allowEmpty === false,
|
|
46
|
-
'p-inputwrapper-focus': instance.focused,
|
|
47
|
-
'p-inputnumber-stacked': instance.showButtons && instance.buttonLayout === 'stacked',
|
|
48
|
-
'p-inputnumber-horizontal': instance.showButtons && instance.buttonLayout === 'horizontal',
|
|
49
|
-
'p-inputnumber-vertical': instance.showButtons && instance.buttonLayout === 'vertical',
|
|
45
|
+
'p-inputwrapper-filled': instance.$filled() || instance.allowEmpty() === false,
|
|
46
|
+
'p-inputwrapper-focus': instance.focused(),
|
|
47
|
+
'p-inputnumber-stacked': instance.showButtons() && instance.buttonLayout() === 'stacked',
|
|
48
|
+
'p-inputnumber-horizontal': instance.showButtons() && instance.buttonLayout() === 'horizontal',
|
|
49
|
+
'p-inputnumber-vertical': instance.showButtons() && instance.buttonLayout() === 'vertical',
|
|
50
50
|
'p-inputnumber-fluid': instance.hasFluid,
|
|
51
51
|
'p-invalid': instance.invalid()
|
|
52
52
|
}
|
|
@@ -56,13 +56,13 @@ const classes = {
|
|
|
56
56
|
incrementButton: ({ instance }) => [
|
|
57
57
|
'p-inputnumber-button p-inputnumber-increment-button',
|
|
58
58
|
{
|
|
59
|
-
'p-disabled': instance.showButtons && instance.max() != null && instance.maxlength()
|
|
59
|
+
'p-disabled': instance.showButtons() && instance.max() != null && instance.maxlength()
|
|
60
60
|
}
|
|
61
61
|
],
|
|
62
62
|
decrementButton: ({ instance }) => [
|
|
63
63
|
'p-inputnumber-button p-inputnumber-decrement-button',
|
|
64
64
|
{
|
|
65
|
-
'p-disabled': instance.showButtons && instance.min() != null && instance.minlength()
|
|
65
|
+
'p-disabled': instance.showButtons() && instance.min() != null && instance.minlength()
|
|
66
66
|
}
|
|
67
67
|
],
|
|
68
68
|
clearIcon: 'p-inputnumber-clear-icon'
|
|
@@ -130,175 +130,191 @@ class InputNumber extends BaseInput {
|
|
|
130
130
|
$pcInputNumber = inject(INPUTNUMBER_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
131
131
|
_componentStyle = inject(InputNumberStyle);
|
|
132
132
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
constructor() {
|
|
134
|
+
super();
|
|
135
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
|
|
135
136
|
}
|
|
136
137
|
/**
|
|
137
138
|
* Displays spinner buttons.
|
|
138
139
|
* @group Props
|
|
139
140
|
*/
|
|
140
|
-
showButtons = false;
|
|
141
|
+
showButtons = input(false, { ...(ngDevMode ? { debugName: "showButtons" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
141
142
|
/**
|
|
142
143
|
* Whether to format the value.
|
|
143
144
|
* @group Props
|
|
144
145
|
*/
|
|
145
|
-
format = true;
|
|
146
|
+
format = input(true, { ...(ngDevMode ? { debugName: "format" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
146
147
|
/**
|
|
147
148
|
* Layout of the buttons, valid values are "stacked" (default), "horizontal" and "vertical".
|
|
148
149
|
* @group Props
|
|
149
150
|
*/
|
|
150
|
-
buttonLayout = 'stacked'
|
|
151
|
+
buttonLayout = input('stacked', /* @ts-ignore */
|
|
152
|
+
...(ngDevMode ? [{ debugName: "buttonLayout" }] : /* istanbul ignore next */ []));
|
|
151
153
|
/**
|
|
152
154
|
* Identifier of the focus input to match a label defined for the component.
|
|
153
155
|
* @group Props
|
|
154
156
|
*/
|
|
155
|
-
inputId
|
|
156
|
-
|
|
157
|
-
* Style class of the component.
|
|
158
|
-
* @deprecated since v20.0.0, use `class` instead.
|
|
159
|
-
* @group Props
|
|
160
|
-
*/
|
|
161
|
-
styleClass;
|
|
157
|
+
inputId = input(/* @ts-ignore */
|
|
158
|
+
...(ngDevMode ? [undefined, { debugName: "inputId" }] : /* istanbul ignore next */ []));
|
|
162
159
|
/**
|
|
163
160
|
* Advisory information to display on input.
|
|
164
161
|
* @group Props
|
|
165
162
|
*/
|
|
166
|
-
placeholder
|
|
163
|
+
placeholder = input(/* @ts-ignore */
|
|
164
|
+
...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
167
165
|
/**
|
|
168
166
|
* Specifies tab order of the element.
|
|
169
167
|
* @group Props
|
|
170
168
|
*/
|
|
171
|
-
tabindex;
|
|
169
|
+
tabindex = input(undefined, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
172
170
|
/**
|
|
173
171
|
* Title text of the input text.
|
|
174
172
|
* @group Props
|
|
175
173
|
*/
|
|
176
|
-
title
|
|
174
|
+
title = input(/* @ts-ignore */
|
|
175
|
+
...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
|
|
177
176
|
/**
|
|
178
177
|
* Specifies one or more IDs in the DOM that labels the input field.
|
|
179
178
|
* @group Props
|
|
180
179
|
*/
|
|
181
|
-
ariaLabelledBy
|
|
180
|
+
ariaLabelledBy = input(/* @ts-ignore */
|
|
181
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
182
182
|
/**
|
|
183
183
|
* Specifies one or more IDs in the DOM that describes the input field.
|
|
184
184
|
* @group Props
|
|
185
185
|
*/
|
|
186
|
-
ariaDescribedBy
|
|
186
|
+
ariaDescribedBy = input(/* @ts-ignore */
|
|
187
|
+
...(ngDevMode ? [undefined, { debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []));
|
|
187
188
|
/**
|
|
188
189
|
* Used to define a string that labels the input element.
|
|
189
190
|
* @group Props
|
|
190
191
|
*/
|
|
191
|
-
ariaLabel
|
|
192
|
+
ariaLabel = input(/* @ts-ignore */
|
|
193
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
192
194
|
/**
|
|
193
195
|
* Used to indicate that user input is required on an element before a form can be submitted.
|
|
194
196
|
* @group Props
|
|
195
197
|
*/
|
|
196
|
-
ariaRequired;
|
|
198
|
+
ariaRequired = input(undefined, { ...(ngDevMode ? { debugName: "ariaRequired" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
197
199
|
/**
|
|
198
200
|
* Used to define a string that autocomplete attribute the current element.
|
|
199
201
|
* @group Props
|
|
200
202
|
*/
|
|
201
|
-
autocomplete
|
|
203
|
+
autocomplete = input(/* @ts-ignore */
|
|
204
|
+
...(ngDevMode ? [undefined, { debugName: "autocomplete" }] : /* istanbul ignore next */ []));
|
|
202
205
|
/**
|
|
203
206
|
* Style class of the increment button.
|
|
204
207
|
* @group Props
|
|
205
208
|
*/
|
|
206
|
-
incrementButtonClass
|
|
209
|
+
incrementButtonClass = input(/* @ts-ignore */
|
|
210
|
+
...(ngDevMode ? [undefined, { debugName: "incrementButtonClass" }] : /* istanbul ignore next */ []));
|
|
207
211
|
/**
|
|
208
212
|
* Style class of the decrement button.
|
|
209
213
|
* @group Props
|
|
210
214
|
*/
|
|
211
|
-
decrementButtonClass
|
|
215
|
+
decrementButtonClass = input(/* @ts-ignore */
|
|
216
|
+
...(ngDevMode ? [undefined, { debugName: "decrementButtonClass" }] : /* istanbul ignore next */ []));
|
|
212
217
|
/**
|
|
213
218
|
* Style class of the increment button.
|
|
214
219
|
* @group Props
|
|
215
220
|
*/
|
|
216
|
-
incrementButtonIcon
|
|
221
|
+
incrementButtonIcon = input(/* @ts-ignore */
|
|
222
|
+
...(ngDevMode ? [undefined, { debugName: "incrementButtonIcon" }] : /* istanbul ignore next */ []));
|
|
217
223
|
/**
|
|
218
224
|
* Style class of the decrement button.
|
|
219
225
|
* @group Props
|
|
220
226
|
*/
|
|
221
|
-
decrementButtonIcon
|
|
227
|
+
decrementButtonIcon = input(/* @ts-ignore */
|
|
228
|
+
...(ngDevMode ? [undefined, { debugName: "decrementButtonIcon" }] : /* istanbul ignore next */ []));
|
|
222
229
|
/**
|
|
223
230
|
* When present, it specifies that an input field is read-only.
|
|
224
231
|
* @group Props
|
|
225
232
|
*/
|
|
226
|
-
readonly;
|
|
233
|
+
readonly = input(undefined, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
227
234
|
/**
|
|
228
235
|
* Determines whether the input field is empty.
|
|
229
236
|
* @group Props
|
|
230
237
|
*/
|
|
231
|
-
allowEmpty = true;
|
|
238
|
+
allowEmpty = input(true, { ...(ngDevMode ? { debugName: "allowEmpty" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
232
239
|
/**
|
|
233
240
|
* Locale to be used in formatting.
|
|
234
241
|
* @group Props
|
|
235
242
|
*/
|
|
236
|
-
locale
|
|
243
|
+
locale = input(/* @ts-ignore */
|
|
244
|
+
...(ngDevMode ? [undefined, { debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
237
245
|
/**
|
|
238
246
|
* The locale matching algorithm to use. Possible values are "lookup" and "best fit"; the default is "best fit". See Locale Negotiation for details.
|
|
239
247
|
* @group Props
|
|
240
248
|
*/
|
|
241
|
-
localeMatcher
|
|
249
|
+
localeMatcher = input(/* @ts-ignore */
|
|
250
|
+
...(ngDevMode ? [undefined, { debugName: "localeMatcher" }] : /* istanbul ignore next */ []));
|
|
242
251
|
/**
|
|
243
252
|
* Defines the behavior of the component, valid values are "decimal" and "currency".
|
|
244
253
|
* @group Props
|
|
245
254
|
*/
|
|
246
|
-
mode = 'decimal'
|
|
255
|
+
mode = input('decimal', /* @ts-ignore */
|
|
256
|
+
...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
247
257
|
/**
|
|
248
258
|
* 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.
|
|
249
259
|
* @group Props
|
|
250
260
|
*/
|
|
251
|
-
currency
|
|
261
|
+
currency = input(/* @ts-ignore */
|
|
262
|
+
...(ngDevMode ? [undefined, { debugName: "currency" }] : /* istanbul ignore next */ []));
|
|
252
263
|
/**
|
|
253
264
|
* 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".
|
|
254
265
|
* @group Props
|
|
255
266
|
*/
|
|
256
|
-
currencyDisplay
|
|
267
|
+
currencyDisplay = input(/* @ts-ignore */
|
|
268
|
+
...(ngDevMode ? [undefined, { debugName: "currencyDisplay" }] : /* istanbul ignore next */ []));
|
|
257
269
|
/**
|
|
258
270
|
* Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.
|
|
259
271
|
* @group Props
|
|
260
272
|
*/
|
|
261
|
-
useGrouping = true;
|
|
273
|
+
useGrouping = input(true, { ...(ngDevMode ? { debugName: "useGrouping" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
262
274
|
/**
|
|
263
275
|
* 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).
|
|
264
276
|
* @group Props
|
|
265
277
|
*/
|
|
266
|
-
minFractionDigits;
|
|
278
|
+
minFractionDigits = input(undefined, { ...(ngDevMode ? { debugName: "minFractionDigits" } : /* istanbul ignore next */ {}), transform: (value) => numberAttribute(value, undefined) });
|
|
267
279
|
/**
|
|
268
280
|
* 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).
|
|
269
281
|
* @group Props
|
|
270
282
|
*/
|
|
271
|
-
maxFractionDigits;
|
|
283
|
+
maxFractionDigits = input(undefined, { ...(ngDevMode ? { debugName: "maxFractionDigits" } : /* istanbul ignore next */ {}), transform: (value) => numberAttribute(value, undefined) });
|
|
272
284
|
/**
|
|
273
285
|
* Text to display before the value.
|
|
274
286
|
* @group Props
|
|
275
287
|
*/
|
|
276
|
-
prefix
|
|
288
|
+
prefix = input(/* @ts-ignore */
|
|
289
|
+
...(ngDevMode ? [undefined, { debugName: "prefix" }] : /* istanbul ignore next */ []));
|
|
277
290
|
/**
|
|
278
291
|
* Text to display after the value.
|
|
279
292
|
* @group Props
|
|
280
293
|
*/
|
|
281
|
-
suffix
|
|
294
|
+
suffix = input(/* @ts-ignore */
|
|
295
|
+
...(ngDevMode ? [undefined, { debugName: "suffix" }] : /* istanbul ignore next */ []));
|
|
282
296
|
/**
|
|
283
297
|
* Inline style of the input field.
|
|
284
298
|
* @group Props
|
|
285
299
|
*/
|
|
286
|
-
inputStyle
|
|
300
|
+
inputStyle = input(/* @ts-ignore */
|
|
301
|
+
...(ngDevMode ? [undefined, { debugName: "inputStyle" }] : /* istanbul ignore next */ []));
|
|
287
302
|
/**
|
|
288
303
|
* Style class of the input field.
|
|
289
304
|
* @group Props
|
|
290
305
|
*/
|
|
291
|
-
inputStyleClass
|
|
306
|
+
inputStyleClass = input(/* @ts-ignore */
|
|
307
|
+
...(ngDevMode ? [undefined, { debugName: "inputStyleClass" }] : /* istanbul ignore next */ []));
|
|
292
308
|
/**
|
|
293
309
|
* When enabled, a clear icon is displayed to clear the value.
|
|
294
310
|
* @group Props
|
|
295
311
|
*/
|
|
296
|
-
showClear = false;
|
|
312
|
+
showClear = input(false, { ...(ngDevMode ? { debugName: "showClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
297
313
|
/**
|
|
298
314
|
* When present, it specifies that the component should automatically get focus on load.
|
|
299
315
|
* @group Props
|
|
300
316
|
*/
|
|
301
|
-
autofocus;
|
|
317
|
+
autofocus = input(undefined, { ...(ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
302
318
|
/**
|
|
303
319
|
* Callback to invoke on input.
|
|
304
320
|
* @param {InputNumberInputEvent} event - Custom input event.
|
|
@@ -347,56 +363,94 @@ class InputNumber extends BaseInput {
|
|
|
347
363
|
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
348
364
|
input = viewChild.required('input', /* @ts-ignore */
|
|
349
365
|
...(ngDevMode ? [{ debugName: "input" }] : /* istanbul ignore next */ []));
|
|
350
|
-
_clearIconTemplate
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
this.updateConstructParser();
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
onInit() {
|
|
380
|
-
this.ngControl = this.injector.get(NgControl, null, { optional: true });
|
|
381
|
-
this.constructParser();
|
|
382
|
-
this.initialized = true;
|
|
383
|
-
}
|
|
384
|
-
onAfterContentInit() {
|
|
385
|
-
this.templates().forEach((item) => {
|
|
386
|
-
switch (item.getType()) {
|
|
387
|
-
case 'clearicon':
|
|
388
|
-
this._clearIconTemplate = item.template;
|
|
389
|
-
break;
|
|
390
|
-
case 'incrementbuttonicon':
|
|
391
|
-
this._incrementButtonIconTemplate = item.template;
|
|
392
|
-
break;
|
|
393
|
-
case 'decrementbuttonicon':
|
|
394
|
-
this._decrementButtonIconTemplate = item.template;
|
|
395
|
-
break;
|
|
396
|
-
}
|
|
366
|
+
_clearIconTemplate = computed(() => this.templates()
|
|
367
|
+
.filter((item) => item.getType() === 'clearicon')
|
|
368
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
369
|
+
...(ngDevMode ? [{ debugName: "_clearIconTemplate" }] : /* istanbul ignore next */ []));
|
|
370
|
+
_incrementButtonIconTemplate = computed(() => this.templates()
|
|
371
|
+
.filter((item) => item.getType() === 'incrementbuttonicon')
|
|
372
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
373
|
+
...(ngDevMode ? [{ debugName: "_incrementButtonIconTemplate" }] : /* istanbul ignore next */ []));
|
|
374
|
+
_decrementButtonIconTemplate = computed(() => this.templates()
|
|
375
|
+
.filter((item) => item.getType() === 'decrementbuttonicon')
|
|
376
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
377
|
+
...(ngDevMode ? [{ debugName: "_decrementButtonIconTemplate" }] : /* istanbul ignore next */ []));
|
|
378
|
+
value = signal(undefined, /* @ts-ignore */
|
|
379
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
380
|
+
focused = signal(undefined, /* @ts-ignore */
|
|
381
|
+
...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
|
|
382
|
+
groupChar = computed(() => new Intl.NumberFormat(this.locale(), { useGrouping: true }).format(1000000).trim().replace(this._numeral(), '').charAt(0), /* @ts-ignore */
|
|
383
|
+
...(ngDevMode ? [{ debugName: "groupChar" }] : /* istanbul ignore next */ []));
|
|
384
|
+
prefixChar = computed(() => {
|
|
385
|
+
if (this.prefix()) {
|
|
386
|
+
return this.prefix();
|
|
387
|
+
}
|
|
388
|
+
const formatter = new Intl.NumberFormat(this.locale(), {
|
|
389
|
+
style: this.mode(),
|
|
390
|
+
currency: this.currency(),
|
|
391
|
+
currencyDisplay: this.currencyDisplay()
|
|
397
392
|
});
|
|
393
|
+
return formatter.format(1).split('1')[0];
|
|
394
|
+
}, /* @ts-ignore */
|
|
395
|
+
...(ngDevMode ? [{ debugName: "prefixChar" }] : /* istanbul ignore next */ []));
|
|
396
|
+
suffixChar = computed(() => {
|
|
397
|
+
if (this.suffix()) {
|
|
398
|
+
return this.suffix();
|
|
399
|
+
}
|
|
400
|
+
const formatter = new Intl.NumberFormat(this.locale(), {
|
|
401
|
+
style: this.mode(),
|
|
402
|
+
currency: this.currency(),
|
|
403
|
+
currencyDisplay: this.currencyDisplay(),
|
|
404
|
+
minimumFractionDigits: 0,
|
|
405
|
+
maximumFractionDigits: 0
|
|
406
|
+
});
|
|
407
|
+
return formatter.format(1).split('1')[1];
|
|
408
|
+
}, /* @ts-ignore */
|
|
409
|
+
...(ngDevMode ? [{ debugName: "suffixChar" }] : /* istanbul ignore next */ []));
|
|
410
|
+
isSpecialChar = signal(undefined, /* @ts-ignore */
|
|
411
|
+
...(ngDevMode ? [{ debugName: "isSpecialChar" }] : /* istanbul ignore next */ []));
|
|
412
|
+
timer = signal(undefined, /* @ts-ignore */
|
|
413
|
+
...(ngDevMode ? [{ debugName: "timer" }] : /* istanbul ignore next */ []));
|
|
414
|
+
lastValue = signal(undefined, /* @ts-ignore */
|
|
415
|
+
...(ngDevMode ? [{ debugName: "lastValue" }] : /* istanbul ignore next */ []));
|
|
416
|
+
_numeral = computed(() => {
|
|
417
|
+
const numerals = [...new Intl.NumberFormat(this.locale(), { useGrouping: false }).format(9876543210)].reverse();
|
|
418
|
+
return new RegExp(`[${numerals.join('')}]`, 'g');
|
|
419
|
+
}, /* @ts-ignore */
|
|
420
|
+
...(ngDevMode ? [{ debugName: "_numeral" }] : /* istanbul ignore next */ []));
|
|
421
|
+
numberFormat = computed(() => {
|
|
422
|
+
const options = this.getOptions();
|
|
423
|
+
// Remove any properties with undefined or invalid values to let Intl.NumberFormat use defaults
|
|
424
|
+
const cleanOptions = Object.fromEntries(Object.entries(options).filter(([_key, value]) => value !== undefined));
|
|
425
|
+
return new Intl.NumberFormat(this.locale(), cleanOptions);
|
|
426
|
+
}, /* @ts-ignore */
|
|
427
|
+
...(ngDevMode ? [{ debugName: "numberFormat" }] : /* istanbul ignore next */ []));
|
|
428
|
+
_decimal = computed(() => this.getDecimalExpression(), /* @ts-ignore */
|
|
429
|
+
...(ngDevMode ? [{ debugName: "_decimal" }] : /* istanbul ignore next */ []));
|
|
430
|
+
_decimalChar = computed(() => this.getDecimalChar(), /* @ts-ignore */
|
|
431
|
+
...(ngDevMode ? [{ debugName: "_decimalChar" }] : /* istanbul ignore next */ []));
|
|
432
|
+
_group = computed(() => this.getGroupingExpression(), /* @ts-ignore */
|
|
433
|
+
...(ngDevMode ? [{ debugName: "_group" }] : /* istanbul ignore next */ []));
|
|
434
|
+
_minusSign = computed(() => this.getMinusSignExpression(), /* @ts-ignore */
|
|
435
|
+
...(ngDevMode ? [{ debugName: "_minusSign" }] : /* istanbul ignore next */ []));
|
|
436
|
+
_currency = computed(() => this.getCurrencyExpression(), /* @ts-ignore */
|
|
437
|
+
...(ngDevMode ? [{ debugName: "_currency" }] : /* istanbul ignore next */ []));
|
|
438
|
+
_prefix = computed(() => this.getPrefixExpression(), /* @ts-ignore */
|
|
439
|
+
...(ngDevMode ? [{ debugName: "_prefix" }] : /* istanbul ignore next */ []));
|
|
440
|
+
_suffix = computed(() => this.getSuffixExpression(), /* @ts-ignore */
|
|
441
|
+
...(ngDevMode ? [{ debugName: "_suffix" }] : /* istanbul ignore next */ []));
|
|
442
|
+
_index = computed(() => {
|
|
443
|
+
const numerals = [...new Intl.NumberFormat(this.locale(), { useGrouping: false }).format(9876543210)].reverse();
|
|
444
|
+
const index = new Map(numerals.map((d, i) => [d, i]));
|
|
445
|
+
return (d) => index.get(d);
|
|
446
|
+
}, /* @ts-ignore */
|
|
447
|
+
...(ngDevMode ? [{ debugName: "_index" }] : /* istanbul ignore next */ []));
|
|
448
|
+
ngControl = signal(null, /* @ts-ignore */
|
|
449
|
+
...(ngDevMode ? [{ debugName: "ngControl" }] : /* istanbul ignore next */ []));
|
|
450
|
+
onInit() {
|
|
451
|
+
this.ngControl.set(this.injector.get(NgControl, null, { optional: true }));
|
|
398
452
|
}
|
|
399
|
-
getOptions() {
|
|
453
|
+
getOptions = computed(() => {
|
|
400
454
|
// Validate fraction digits according to Intl.NumberFormat specifications
|
|
401
455
|
// Handle potential NaN, Infinity, or invalid values
|
|
402
456
|
const validateFractionDigits = (value, min, max) => {
|
|
@@ -405,42 +459,21 @@ class InputNumber extends BaseInput {
|
|
|
405
459
|
}
|
|
406
460
|
return Math.max(min, Math.min(max, Math.floor(value)));
|
|
407
461
|
};
|
|
408
|
-
const minFractionDigits = validateFractionDigits(this.minFractionDigits, 0, 20);
|
|
409
|
-
const maxFractionDigits = validateFractionDigits(this.maxFractionDigits, 0, 100);
|
|
462
|
+
const minFractionDigits = validateFractionDigits(this.minFractionDigits(), 0, 20);
|
|
463
|
+
const maxFractionDigits = validateFractionDigits(this.maxFractionDigits(), 0, 100);
|
|
410
464
|
// Ensure minFractionDigits <= maxFractionDigits
|
|
411
465
|
const validatedMinFractionDigits = minFractionDigits != null && maxFractionDigits != null && minFractionDigits > maxFractionDigits ? maxFractionDigits : minFractionDigits;
|
|
412
466
|
return {
|
|
413
|
-
localeMatcher: this.localeMatcher,
|
|
414
|
-
style: this.mode,
|
|
415
|
-
currency: this.currency,
|
|
416
|
-
currencyDisplay: this.currencyDisplay,
|
|
417
|
-
useGrouping: this.useGrouping,
|
|
467
|
+
localeMatcher: this.localeMatcher(),
|
|
468
|
+
style: this.mode(),
|
|
469
|
+
currency: this.currency(),
|
|
470
|
+
currencyDisplay: this.currencyDisplay(),
|
|
471
|
+
useGrouping: this.useGrouping(),
|
|
418
472
|
minimumFractionDigits: validatedMinFractionDigits,
|
|
419
473
|
maximumFractionDigits: maxFractionDigits
|
|
420
474
|
};
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
const options = this.getOptions();
|
|
424
|
-
// Remove any properties with undefined or invalid values to let Intl.NumberFormat use defaults
|
|
425
|
-
const cleanOptions = Object.fromEntries(Object.entries(options).filter(([_key, value]) => value !== undefined));
|
|
426
|
-
this.numberFormat = new Intl.NumberFormat(this.locale, cleanOptions);
|
|
427
|
-
const numerals = [...new Intl.NumberFormat(this.locale, { useGrouping: false }).format(9876543210)].reverse();
|
|
428
|
-
const index = new Map(numerals.map((d, i) => [d, i]));
|
|
429
|
-
this._numeral = new RegExp(`[${numerals.join('')}]`, 'g');
|
|
430
|
-
this._group = this.getGroupingExpression();
|
|
431
|
-
this._minusSign = this.getMinusSignExpression();
|
|
432
|
-
this._currency = this.getCurrencyExpression();
|
|
433
|
-
this._decimal = this.getDecimalExpression();
|
|
434
|
-
this._decimalChar = this.getDecimalChar();
|
|
435
|
-
this._suffix = this.getSuffixExpression();
|
|
436
|
-
this._prefix = this.getPrefixExpression();
|
|
437
|
-
this._index = (d) => index.get(d);
|
|
438
|
-
}
|
|
439
|
-
updateConstructParser() {
|
|
440
|
-
if (this.initialized) {
|
|
441
|
-
this.constructParser();
|
|
442
|
-
}
|
|
443
|
-
}
|
|
475
|
+
}, /* @ts-ignore */
|
|
476
|
+
...(ngDevMode ? [{ debugName: "getOptions" }] : /* istanbul ignore next */ []));
|
|
444
477
|
escapeRegExp(text) {
|
|
445
478
|
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
|
|
446
479
|
}
|
|
@@ -449,64 +482,38 @@ class InputNumber extends BaseInput {
|
|
|
449
482
|
return new RegExp(`[${decimalChar}]`, 'g');
|
|
450
483
|
}
|
|
451
484
|
getDecimalChar() {
|
|
452
|
-
const formatter = new Intl.NumberFormat(this.locale, { ...this.getOptions(), useGrouping: false });
|
|
485
|
+
const formatter = new Intl.NumberFormat(this.locale(), { ...this.getOptions(), useGrouping: false });
|
|
453
486
|
return formatter
|
|
454
487
|
.format(1.1)
|
|
455
|
-
.replace(this._currency, '')
|
|
488
|
+
.replace(this._currency(), '')
|
|
456
489
|
.trim()
|
|
457
|
-
.replace(this._numeral, '');
|
|
490
|
+
.replace(this._numeral(), '');
|
|
458
491
|
}
|
|
459
492
|
getGroupingExpression() {
|
|
460
|
-
|
|
461
|
-
this.groupChar = formatter.format(1000000).trim().replace(this._numeral, '').charAt(0);
|
|
462
|
-
return new RegExp(`[${this.groupChar}]`, 'g');
|
|
493
|
+
return new RegExp(`[${this.groupChar()}]`, 'g');
|
|
463
494
|
}
|
|
464
495
|
getMinusSignExpression() {
|
|
465
|
-
const formatter = new Intl.NumberFormat(this.locale, { useGrouping: false });
|
|
466
|
-
return new RegExp(`[${formatter.format(-1).trim().replace(this._numeral, '')}]`, 'g');
|
|
496
|
+
const formatter = new Intl.NumberFormat(this.locale(), { useGrouping: false });
|
|
497
|
+
return new RegExp(`[${formatter.format(-1).trim().replace(this._numeral(), '')}]`, 'g');
|
|
467
498
|
}
|
|
468
499
|
getCurrencyExpression() {
|
|
469
|
-
if (this.currency) {
|
|
470
|
-
const formatter = new Intl.NumberFormat(this.locale, {
|
|
500
|
+
if (this.currency()) {
|
|
501
|
+
const formatter = new Intl.NumberFormat(this.locale(), {
|
|
471
502
|
style: 'currency',
|
|
472
|
-
currency: this.currency,
|
|
473
|
-
currencyDisplay: this.currencyDisplay,
|
|
503
|
+
currency: this.currency(),
|
|
504
|
+
currencyDisplay: this.currencyDisplay(),
|
|
474
505
|
minimumFractionDigits: 0,
|
|
475
506
|
maximumFractionDigits: 0
|
|
476
507
|
});
|
|
477
|
-
return new RegExp(`[${formatter.format(1).replace(/\s/g, '').replace(this._numeral, '').replace(this._group, '')}]`, 'g');
|
|
508
|
+
return new RegExp(`[${formatter.format(1).replace(/\s/g, '').replace(this._numeral(), '').replace(this._group(), '')}]`, 'g');
|
|
478
509
|
}
|
|
479
510
|
return new RegExp(`[]`, 'g');
|
|
480
511
|
}
|
|
481
512
|
getPrefixExpression() {
|
|
482
|
-
|
|
483
|
-
this.prefixChar = this.prefix;
|
|
484
|
-
}
|
|
485
|
-
else {
|
|
486
|
-
const formatter = new Intl.NumberFormat(this.locale, {
|
|
487
|
-
style: this.mode,
|
|
488
|
-
currency: this.currency,
|
|
489
|
-
currencyDisplay: this.currencyDisplay
|
|
490
|
-
});
|
|
491
|
-
this.prefixChar = formatter.format(1).split('1')[0];
|
|
492
|
-
}
|
|
493
|
-
return new RegExp(`${this.escapeRegExp(this.prefixChar || '')}`, 'g');
|
|
513
|
+
return new RegExp(`${this.escapeRegExp(this.prefixChar() || '')}`, 'g');
|
|
494
514
|
}
|
|
495
515
|
getSuffixExpression() {
|
|
496
|
-
|
|
497
|
-
this.suffixChar = this.suffix;
|
|
498
|
-
}
|
|
499
|
-
else {
|
|
500
|
-
const formatter = new Intl.NumberFormat(this.locale, {
|
|
501
|
-
style: this.mode,
|
|
502
|
-
currency: this.currency,
|
|
503
|
-
currencyDisplay: this.currencyDisplay,
|
|
504
|
-
minimumFractionDigits: 0,
|
|
505
|
-
maximumFractionDigits: 0
|
|
506
|
-
});
|
|
507
|
-
this.suffixChar = formatter.format(1).split('1')[1];
|
|
508
|
-
}
|
|
509
|
-
return new RegExp(`${this.escapeRegExp(this.suffixChar || '')}`, 'g');
|
|
516
|
+
return new RegExp(`${this.escapeRegExp(this.suffixChar() || '')}`, 'g');
|
|
510
517
|
}
|
|
511
518
|
formatValue(value) {
|
|
512
519
|
if (value != null) {
|
|
@@ -514,14 +521,14 @@ class InputNumber extends BaseInput {
|
|
|
514
521
|
// Minus sign
|
|
515
522
|
return value;
|
|
516
523
|
}
|
|
517
|
-
if (this.format) {
|
|
518
|
-
let formatter = new Intl.NumberFormat(this.locale, this.getOptions());
|
|
524
|
+
if (this.format()) {
|
|
525
|
+
let formatter = new Intl.NumberFormat(this.locale(), this.getOptions());
|
|
519
526
|
let formattedValue = formatter.format(value);
|
|
520
|
-
if (this.prefix && value != this.prefix) {
|
|
521
|
-
formattedValue = this.prefix + formattedValue;
|
|
527
|
+
if (this.prefix() && value != this.prefix()) {
|
|
528
|
+
formattedValue = this.prefix() + formattedValue;
|
|
522
529
|
}
|
|
523
|
-
if (this.suffix && value != this.suffix) {
|
|
524
|
-
formattedValue = formattedValue + this.suffix;
|
|
530
|
+
if (this.suffix() && value != this.suffix()) {
|
|
531
|
+
formattedValue = formattedValue + this.suffix();
|
|
525
532
|
}
|
|
526
533
|
return formattedValue;
|
|
527
534
|
}
|
|
@@ -530,19 +537,19 @@ class InputNumber extends BaseInput {
|
|
|
530
537
|
return '';
|
|
531
538
|
}
|
|
532
539
|
parseValue(text) {
|
|
533
|
-
const suffixRegex = this._suffix ? new RegExp(this._suffix, '') : /(?:)/;
|
|
534
|
-
const prefixRegex = this._prefix ? new RegExp(this._prefix, '') : /(?:)/;
|
|
535
|
-
const currencyRegex = this._currency ? new RegExp(this._currency, '') : /(?:)/;
|
|
540
|
+
const suffixRegex = this._suffix() ? new RegExp(this._suffix(), '') : /(?:)/;
|
|
541
|
+
const prefixRegex = this._prefix() ? new RegExp(this._prefix(), '') : /(?:)/;
|
|
542
|
+
const currencyRegex = this._currency() ? new RegExp(this._currency(), '') : /(?:)/;
|
|
536
543
|
let filteredText = text
|
|
537
544
|
.replace(suffixRegex, '')
|
|
538
545
|
.replace(prefixRegex, '')
|
|
539
546
|
.trim()
|
|
540
547
|
.replace(/\s/g, '')
|
|
541
548
|
.replace(currencyRegex, '')
|
|
542
|
-
.replace(this._group, '')
|
|
543
|
-
.replace(this._minusSign, '-')
|
|
544
|
-
.replace(this._decimal, '.')
|
|
545
|
-
.replace(this._numeral, this._index);
|
|
549
|
+
.replace(this._group(), '')
|
|
550
|
+
.replace(this._minusSign(), '-')
|
|
551
|
+
.replace(this._decimal(), '.')
|
|
552
|
+
.replace(this._numeral(), this._index());
|
|
546
553
|
if (filteredText) {
|
|
547
554
|
if (filteredText === '-')
|
|
548
555
|
// Minus sign
|
|
@@ -553,14 +560,14 @@ class InputNumber extends BaseInput {
|
|
|
553
560
|
return null;
|
|
554
561
|
}
|
|
555
562
|
repeat(event, interval, dir) {
|
|
556
|
-
if (this.readonly) {
|
|
563
|
+
if (this.readonly()) {
|
|
557
564
|
return;
|
|
558
565
|
}
|
|
559
566
|
let i = interval || 500;
|
|
560
567
|
this.clearTimer();
|
|
561
|
-
this.timer
|
|
568
|
+
this.timer.set(setTimeout(() => {
|
|
562
569
|
this.repeat(event, 40, dir);
|
|
563
|
-
}, i);
|
|
570
|
+
}, i));
|
|
564
571
|
this.spin(event, dir);
|
|
565
572
|
}
|
|
566
573
|
spin(event, dir) {
|
|
@@ -576,8 +583,8 @@ class InputNumber extends BaseInput {
|
|
|
576
583
|
this.handleOnInput(event, currentValue, newValue);
|
|
577
584
|
}
|
|
578
585
|
clear() {
|
|
579
|
-
this.value
|
|
580
|
-
this.onModelChange(this.value);
|
|
586
|
+
this.value.set(null);
|
|
587
|
+
this.onModelChange(this.value());
|
|
581
588
|
this.onClear.emit();
|
|
582
589
|
}
|
|
583
590
|
onUpButtonMouseDown(event) {
|
|
@@ -643,21 +650,21 @@ class InputNumber extends BaseInput {
|
|
|
643
650
|
}
|
|
644
651
|
}
|
|
645
652
|
onUserInput(event) {
|
|
646
|
-
if (this.readonly) {
|
|
653
|
+
if (this.readonly()) {
|
|
647
654
|
return;
|
|
648
655
|
}
|
|
649
|
-
if (this.isSpecialChar) {
|
|
650
|
-
event.target.value = this.lastValue;
|
|
656
|
+
if (this.isSpecialChar()) {
|
|
657
|
+
event.target.value = this.lastValue();
|
|
651
658
|
}
|
|
652
|
-
this.isSpecialChar
|
|
659
|
+
this.isSpecialChar.set(false);
|
|
653
660
|
}
|
|
654
661
|
onInputKeyDown(event) {
|
|
655
|
-
if (this.readonly) {
|
|
662
|
+
if (this.readonly()) {
|
|
656
663
|
return;
|
|
657
664
|
}
|
|
658
|
-
this.lastValue
|
|
665
|
+
this.lastValue.set(event.target.value);
|
|
659
666
|
if (event.shiftKey || event.altKey) {
|
|
660
|
-
this.isSpecialChar
|
|
667
|
+
this.isSpecialChar.set(true);
|
|
661
668
|
return;
|
|
662
669
|
}
|
|
663
670
|
let selectionStart = event.target.selectionStart;
|
|
@@ -704,19 +711,19 @@ class InputNumber extends BaseInput {
|
|
|
704
711
|
case 'Backspace': {
|
|
705
712
|
event.preventDefault();
|
|
706
713
|
if (selectionStart === selectionEnd) {
|
|
707
|
-
if ((selectionStart == 1 && this.prefix) || (selectionStart == inputValue.length && this.suffix)) {
|
|
714
|
+
if ((selectionStart == 1 && this.prefix()) || (selectionStart == inputValue.length && this.suffix())) {
|
|
708
715
|
break;
|
|
709
716
|
}
|
|
710
717
|
const deleteChar = inputValue.charAt(selectionStart - 1);
|
|
711
718
|
const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
|
|
712
719
|
if (this.isNumeralChar(deleteChar)) {
|
|
713
720
|
const decimalLength = this.getDecimalLength(inputValue);
|
|
714
|
-
if (this._group.test(deleteChar)) {
|
|
715
|
-
this._group.lastIndex = 0;
|
|
721
|
+
if (this._group().test(deleteChar)) {
|
|
722
|
+
this._group().lastIndex = 0;
|
|
716
723
|
newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
|
|
717
724
|
}
|
|
718
|
-
else if (this._decimal.test(deleteChar)) {
|
|
719
|
-
this._decimal.lastIndex = 0;
|
|
725
|
+
else if (this._decimal().test(deleteChar)) {
|
|
726
|
+
this._decimal().lastIndex = 0;
|
|
720
727
|
if (decimalLength) {
|
|
721
728
|
this.input().nativeElement.setSelectionRange(selectionStart - 1, selectionStart - 1);
|
|
722
729
|
}
|
|
@@ -725,7 +732,7 @@ class InputNumber extends BaseInput {
|
|
|
725
732
|
}
|
|
726
733
|
}
|
|
727
734
|
else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
728
|
-
const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
|
|
735
|
+
const insertedText = this.isDecimalMode() && (this.minFractionDigits() || 0) < decimalLength ? '' : '0';
|
|
729
736
|
newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);
|
|
730
737
|
}
|
|
731
738
|
else if (decimalCharIndexWithoutPrefix === 1) {
|
|
@@ -736,7 +743,7 @@ class InputNumber extends BaseInput {
|
|
|
736
743
|
newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
|
|
737
744
|
}
|
|
738
745
|
}
|
|
739
|
-
else if (this.mode === 'currency' && this._currency && deleteChar.search(this._currency) != -1) {
|
|
746
|
+
else if (this.mode() === 'currency' && this._currency() && deleteChar.search(this._currency()) != -1) {
|
|
740
747
|
newValueStr = inputValue.slice(1);
|
|
741
748
|
}
|
|
742
749
|
this.updateValue(event, newValueStr, null, 'delete-single');
|
|
@@ -750,19 +757,19 @@ class InputNumber extends BaseInput {
|
|
|
750
757
|
case 'Delete':
|
|
751
758
|
event.preventDefault();
|
|
752
759
|
if (selectionStart === selectionEnd) {
|
|
753
|
-
if ((selectionStart == 0 && this.prefix) || (selectionStart == inputValue.length - 1 && this.suffix)) {
|
|
760
|
+
if ((selectionStart == 0 && this.prefix()) || (selectionStart == inputValue.length - 1 && this.suffix())) {
|
|
754
761
|
break;
|
|
755
762
|
}
|
|
756
763
|
const deleteChar = inputValue.charAt(selectionStart);
|
|
757
764
|
const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
|
|
758
765
|
if (this.isNumeralChar(deleteChar)) {
|
|
759
766
|
const decimalLength = this.getDecimalLength(inputValue);
|
|
760
|
-
if (this._group.test(deleteChar)) {
|
|
761
|
-
this._group.lastIndex = 0;
|
|
767
|
+
if (this._group().test(deleteChar)) {
|
|
768
|
+
this._group().lastIndex = 0;
|
|
762
769
|
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
|
|
763
770
|
}
|
|
764
|
-
else if (this._decimal.test(deleteChar)) {
|
|
765
|
-
this._decimal.lastIndex = 0;
|
|
771
|
+
else if (this._decimal().test(deleteChar)) {
|
|
772
|
+
this._decimal().lastIndex = 0;
|
|
766
773
|
if (decimalLength) {
|
|
767
774
|
this.input().nativeElement.setSelectionRange(selectionStart + 1, selectionStart + 1);
|
|
768
775
|
}
|
|
@@ -771,7 +778,7 @@ class InputNumber extends BaseInput {
|
|
|
771
778
|
}
|
|
772
779
|
}
|
|
773
780
|
else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
774
|
-
const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
|
|
781
|
+
const insertedText = this.isDecimalMode() && (this.minFractionDigits() || 0) < decimalLength ? '' : '0';
|
|
775
782
|
newValueStr = inputValue.slice(0, selectionStart) + insertedText + inputValue.slice(selectionStart + 1);
|
|
776
783
|
}
|
|
777
784
|
else if (decimalCharIndexWithoutPrefix === 1) {
|
|
@@ -807,7 +814,7 @@ class InputNumber extends BaseInput {
|
|
|
807
814
|
this.onKeyDown.emit(event);
|
|
808
815
|
}
|
|
809
816
|
onInputKeyPress(event) {
|
|
810
|
-
if (this.readonly) {
|
|
817
|
+
if (this.readonly()) {
|
|
811
818
|
return;
|
|
812
819
|
}
|
|
813
820
|
let code = event.which || event.keyCode;
|
|
@@ -820,7 +827,7 @@ class InputNumber extends BaseInput {
|
|
|
820
827
|
const isMinusSign = this.isMinusSign(char);
|
|
821
828
|
if (!isDecimalSign && event.code === 'NumpadDecimal') {
|
|
822
829
|
isDecimalSign = true;
|
|
823
|
-
char = this._decimalChar;
|
|
830
|
+
char = this._decimalChar();
|
|
824
831
|
code = char.charCodeAt(0);
|
|
825
832
|
}
|
|
826
833
|
const { value, selectionStart, selectionEnd } = this.input().nativeElement;
|
|
@@ -842,10 +849,10 @@ class InputNumber extends BaseInput {
|
|
|
842
849
|
}
|
|
843
850
|
}
|
|
844
851
|
onPaste(event) {
|
|
845
|
-
if (!this.$disabled() && !this.readonly) {
|
|
852
|
+
if (!this.$disabled() && !this.readonly()) {
|
|
846
853
|
event.preventDefault();
|
|
847
854
|
let data = (event.clipboardData || this.document.defaultView['clipboardData']).getData('Text');
|
|
848
|
-
if (this.inputId === 'integeronly' && /[^\d-]/.test(data)) {
|
|
855
|
+
if (this.inputId() === 'integeronly' && /[^\d-]/.test(data)) {
|
|
849
856
|
return;
|
|
850
857
|
}
|
|
851
858
|
if (data) {
|
|
@@ -859,53 +866,53 @@ class InputNumber extends BaseInput {
|
|
|
859
866
|
}
|
|
860
867
|
}
|
|
861
868
|
}
|
|
862
|
-
allowMinusSign() {
|
|
869
|
+
allowMinusSign = computed(() => {
|
|
863
870
|
const min = this.min();
|
|
864
871
|
return min == null || min < 0;
|
|
865
|
-
}
|
|
872
|
+
}, /* @ts-ignore */
|
|
873
|
+
...(ngDevMode ? [{ debugName: "allowMinusSign" }] : /* istanbul ignore next */ []));
|
|
866
874
|
isMinusSign(char) {
|
|
867
|
-
if (this._minusSign.test(char) || char === '-') {
|
|
868
|
-
this._minusSign.lastIndex = 0;
|
|
875
|
+
if (this._minusSign().test(char) || char === '-') {
|
|
876
|
+
this._minusSign().lastIndex = 0;
|
|
869
877
|
return true;
|
|
870
878
|
}
|
|
871
879
|
return false;
|
|
872
880
|
}
|
|
873
881
|
isDecimalSign(char) {
|
|
874
|
-
if (this._decimal.test(char)) {
|
|
875
|
-
this._decimal.lastIndex = 0;
|
|
882
|
+
if (this._decimal().test(char)) {
|
|
883
|
+
this._decimal().lastIndex = 0;
|
|
876
884
|
return true;
|
|
877
885
|
}
|
|
878
886
|
return false;
|
|
879
887
|
}
|
|
880
|
-
isDecimalMode()
|
|
881
|
-
|
|
882
|
-
}
|
|
888
|
+
isDecimalMode = computed(() => this.mode() === 'decimal', /* @ts-ignore */
|
|
889
|
+
...(ngDevMode ? [{ debugName: "isDecimalMode" }] : /* istanbul ignore next */ []));
|
|
883
890
|
getDecimalCharIndexes(val) {
|
|
884
|
-
let decimalCharIndex = val.search(this._decimal);
|
|
885
|
-
this._decimal.lastIndex = 0;
|
|
891
|
+
let decimalCharIndex = val.search(this._decimal());
|
|
892
|
+
this._decimal().lastIndex = 0;
|
|
886
893
|
const filteredVal = val
|
|
887
|
-
.replace(this._prefix, '')
|
|
894
|
+
.replace(this._prefix(), '')
|
|
888
895
|
.trim()
|
|
889
896
|
.replace(/\s/g, '')
|
|
890
|
-
.replace(this._currency, '');
|
|
891
|
-
const decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal);
|
|
892
|
-
this._decimal.lastIndex = 0;
|
|
897
|
+
.replace(this._currency(), '');
|
|
898
|
+
const decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal());
|
|
899
|
+
this._decimal().lastIndex = 0;
|
|
893
900
|
return { decimalCharIndex, decimalCharIndexWithoutPrefix };
|
|
894
901
|
}
|
|
895
902
|
getCharIndexes(val) {
|
|
896
|
-
const decimalCharIndex = val.search(this._decimal);
|
|
897
|
-
this._decimal.lastIndex = 0;
|
|
898
|
-
const minusCharIndex = val.search(this._minusSign);
|
|
899
|
-
this._minusSign.lastIndex = 0;
|
|
900
|
-
const suffixCharIndex = val.search(this._suffix);
|
|
901
|
-
this._suffix.lastIndex = 0;
|
|
902
|
-
const currencyCharIndex = val.search(this._currency);
|
|
903
|
-
this._currency.lastIndex = 0;
|
|
903
|
+
const decimalCharIndex = val.search(this._decimal());
|
|
904
|
+
this._decimal().lastIndex = 0;
|
|
905
|
+
const minusCharIndex = val.search(this._minusSign());
|
|
906
|
+
this._minusSign().lastIndex = 0;
|
|
907
|
+
const suffixCharIndex = val.search(this._suffix());
|
|
908
|
+
this._suffix().lastIndex = 0;
|
|
909
|
+
const currencyCharIndex = val.search(this._currency());
|
|
910
|
+
this._currency().lastIndex = 0;
|
|
904
911
|
return { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex };
|
|
905
912
|
}
|
|
906
913
|
insert(event, text, sign = { isDecimalSign: false, isMinusSign: false }) {
|
|
907
|
-
const minusCharIndexOnText = text.search(this._minusSign);
|
|
908
|
-
this._minusSign.lastIndex = 0;
|
|
914
|
+
const minusCharIndexOnText = text.search(this._minusSign());
|
|
915
|
+
this._minusSign().lastIndex = 0;
|
|
909
916
|
if (!this.allowMinusSign() && minusCharIndexOnText !== -1) {
|
|
910
917
|
return;
|
|
911
918
|
}
|
|
@@ -932,13 +939,13 @@ class InputNumber extends BaseInput {
|
|
|
932
939
|
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
933
940
|
this.updateValue(event, newValueStr, text, 'insert');
|
|
934
941
|
}
|
|
935
|
-
else if (decimalCharIndex === -1 && this.maxFractionDigits) {
|
|
942
|
+
else if (decimalCharIndex === -1 && this.maxFractionDigits()) {
|
|
936
943
|
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
937
944
|
this.updateValue(event, newValueStr, text, 'insert');
|
|
938
945
|
}
|
|
939
946
|
}
|
|
940
947
|
else {
|
|
941
|
-
const maxFractionDigits = this.numberFormat.resolvedOptions().maximumFractionDigits;
|
|
948
|
+
const maxFractionDigits = this.numberFormat().resolvedOptions().maximumFractionDigits;
|
|
942
949
|
const operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';
|
|
943
950
|
if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
944
951
|
if (selectionStart + text.length - (decimalCharIndex + 1) <= maxFractionDigits) {
|
|
@@ -956,8 +963,8 @@ class InputNumber extends BaseInput {
|
|
|
956
963
|
insertText(value, text, start, end) {
|
|
957
964
|
let textSplit = text === '.' ? text : text.split('.');
|
|
958
965
|
if (textSplit.length === 2) {
|
|
959
|
-
const decimalCharIndex = value.slice(start, end).search(this._decimal);
|
|
960
|
-
this._decimal.lastIndex = 0;
|
|
966
|
+
const decimalCharIndex = value.slice(start, end).search(this._decimal());
|
|
967
|
+
this._decimal().lastIndex = 0;
|
|
961
968
|
return decimalCharIndex > 0 ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : value || this.formatValue(text);
|
|
962
969
|
}
|
|
963
970
|
else if (end - start === value.length) {
|
|
@@ -993,8 +1000,8 @@ class InputNumber extends BaseInput {
|
|
|
993
1000
|
let valueLength = inputValue.length;
|
|
994
1001
|
let index = null;
|
|
995
1002
|
// remove prefix
|
|
996
|
-
let prefixLength = (this.prefixChar || '').length;
|
|
997
|
-
inputValue = inputValue.replace(this._prefix, '');
|
|
1003
|
+
let prefixLength = (this.prefixChar() || '').length;
|
|
1004
|
+
inputValue = inputValue.replace(this._prefix(), '');
|
|
998
1005
|
// Will allow selecting whole prefix. But not a part of it.
|
|
999
1006
|
// Negative values will trigger clauses after this to fix the cursor position.
|
|
1000
1007
|
if (selectionStart === selectionEnd || selectionStart !== 0 || selectionEnd < prefixLength) {
|
|
@@ -1039,29 +1046,29 @@ class InputNumber extends BaseInput {
|
|
|
1039
1046
|
}
|
|
1040
1047
|
onInputClick() {
|
|
1041
1048
|
const currentValue = this.input().nativeElement.value;
|
|
1042
|
-
if (!this.readonly && currentValue !== getSelection()) {
|
|
1049
|
+
if (!this.readonly() && currentValue !== getSelection()) {
|
|
1043
1050
|
this.initCursor();
|
|
1044
1051
|
}
|
|
1045
1052
|
}
|
|
1046
1053
|
isNumeralChar(char) {
|
|
1047
|
-
if (char.length === 1 && (this._numeral.test(char) || this._decimal.test(char) || this._group.test(char) || this._minusSign.test(char))) {
|
|
1054
|
+
if (char.length === 1 && (this._numeral().test(char) || this._decimal().test(char) || this._group().test(char) || this._minusSign().test(char))) {
|
|
1048
1055
|
this.resetRegex();
|
|
1049
1056
|
return true;
|
|
1050
1057
|
}
|
|
1051
1058
|
return false;
|
|
1052
1059
|
}
|
|
1053
1060
|
resetRegex() {
|
|
1054
|
-
this._numeral.lastIndex = 0;
|
|
1055
|
-
this._decimal.lastIndex = 0;
|
|
1056
|
-
this._group.lastIndex = 0;
|
|
1057
|
-
this._minusSign.lastIndex = 0;
|
|
1061
|
+
this._numeral().lastIndex = 0;
|
|
1062
|
+
this._decimal().lastIndex = 0;
|
|
1063
|
+
this._group().lastIndex = 0;
|
|
1064
|
+
this._minusSign().lastIndex = 0;
|
|
1058
1065
|
}
|
|
1059
1066
|
updateValue(event, valueStr, insertedValueStr, operation) {
|
|
1060
1067
|
let currentValue = this.input().nativeElement.value;
|
|
1061
1068
|
let newValue = null;
|
|
1062
1069
|
if (valueStr != null) {
|
|
1063
1070
|
newValue = this.parseValue(valueStr);
|
|
1064
|
-
newValue = !newValue && !this.allowEmpty ? 0 : newValue;
|
|
1071
|
+
newValue = !newValue && !this.allowEmpty() ? 0 : newValue;
|
|
1065
1072
|
this.updateInput(newValue, insertedValueStr, operation, valueStr);
|
|
1066
1073
|
this.handleOnInput(event, currentValue, newValue);
|
|
1067
1074
|
}
|
|
@@ -1131,10 +1138,10 @@ class InputNumber extends BaseInput {
|
|
|
1131
1138
|
if (operation === 'range-insert') {
|
|
1132
1139
|
const startValue = this.parseValue((inputValue || '').slice(0, selectionStart));
|
|
1133
1140
|
const startValueStr = startValue !== null ? startValue.toString() : '';
|
|
1134
|
-
const startExpr = startValueStr.split('').join(`(${this.groupChar})?`);
|
|
1141
|
+
const startExpr = startValueStr.split('').join(`(${this.groupChar()})?`);
|
|
1135
1142
|
const sRegex = new RegExp(startExpr, 'g');
|
|
1136
1143
|
sRegex.test(newValue);
|
|
1137
|
-
const tExpr = insertedValueStr.split('').join(`(${this.groupChar})?`);
|
|
1144
|
+
const tExpr = insertedValueStr.split('').join(`(${this.groupChar()})?`);
|
|
1138
1145
|
const tRegex = new RegExp(tExpr, 'g');
|
|
1139
1146
|
tRegex.test(newValue.slice(sRegex.lastIndex));
|
|
1140
1147
|
selectionEnd = sRegex.lastIndex + tRegex.lastIndex;
|
|
@@ -1152,14 +1159,14 @@ class InputNumber extends BaseInput {
|
|
|
1152
1159
|
let prevChar = inputValue.charAt(selectionEnd - 1);
|
|
1153
1160
|
let nextChar = inputValue.charAt(selectionEnd);
|
|
1154
1161
|
let diff = currentLength - newLength;
|
|
1155
|
-
let isGroupChar = this._group.test(nextChar);
|
|
1162
|
+
let isGroupChar = this._group().test(nextChar);
|
|
1156
1163
|
if (isGroupChar && diff === 1) {
|
|
1157
1164
|
selectionEnd += 1;
|
|
1158
1165
|
}
|
|
1159
1166
|
else if (!isGroupChar && this.isNumeralChar(prevChar)) {
|
|
1160
1167
|
selectionEnd += -1 * diff + 1;
|
|
1161
1168
|
}
|
|
1162
|
-
this._group.lastIndex = 0;
|
|
1169
|
+
this._group().lastIndex = 0;
|
|
1163
1170
|
input.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
|
|
1164
1171
|
}
|
|
1165
1172
|
else if (inputValue === '-' && operation === 'insert') {
|
|
@@ -1177,36 +1184,36 @@ class InputNumber extends BaseInput {
|
|
|
1177
1184
|
}
|
|
1178
1185
|
concatValues(val1, val2) {
|
|
1179
1186
|
if (val1 && val2) {
|
|
1180
|
-
let decimalCharIndex = val2.search(this._decimal);
|
|
1181
|
-
this._decimal.lastIndex = 0;
|
|
1182
|
-
if (this.suffixChar) {
|
|
1183
|
-
return decimalCharIndex !== -1 ? val1.replace(this.suffixChar, '').split(this._decimal)[0] + val2.replace(this.suffixChar, '').slice(decimalCharIndex) + this.suffixChar : val1;
|
|
1187
|
+
let decimalCharIndex = val2.search(this._decimal());
|
|
1188
|
+
this._decimal().lastIndex = 0;
|
|
1189
|
+
if (this.suffixChar()) {
|
|
1190
|
+
return decimalCharIndex !== -1 ? val1.replace(this.suffixChar(), '').split(this._decimal())[0] + val2.replace(this.suffixChar(), '').slice(decimalCharIndex) + this.suffixChar() : val1;
|
|
1184
1191
|
}
|
|
1185
1192
|
else {
|
|
1186
|
-
return decimalCharIndex !== -1 ? val1.split(this._decimal)[0] + val2.slice(decimalCharIndex) : val1;
|
|
1193
|
+
return decimalCharIndex !== -1 ? val1.split(this._decimal())[0] + val2.slice(decimalCharIndex) : val1;
|
|
1187
1194
|
}
|
|
1188
1195
|
}
|
|
1189
1196
|
return val1;
|
|
1190
1197
|
}
|
|
1191
1198
|
getDecimalLength(value) {
|
|
1192
1199
|
if (value) {
|
|
1193
|
-
const valueSplit = value.split(this._decimal);
|
|
1200
|
+
const valueSplit = value.split(this._decimal());
|
|
1194
1201
|
if (valueSplit.length === 2) {
|
|
1195
1202
|
return valueSplit[1]
|
|
1196
|
-
.replace(this._suffix, '')
|
|
1203
|
+
.replace(this._suffix(), '')
|
|
1197
1204
|
.trim()
|
|
1198
1205
|
.replace(/\s/g, '')
|
|
1199
|
-
.replace(this._currency, '').length;
|
|
1206
|
+
.replace(this._currency(), '').length;
|
|
1200
1207
|
}
|
|
1201
1208
|
}
|
|
1202
1209
|
return 0;
|
|
1203
1210
|
}
|
|
1204
1211
|
onInputFocus(event) {
|
|
1205
|
-
this.focused
|
|
1212
|
+
this.focused.set(true);
|
|
1206
1213
|
this.onFocus.emit(event);
|
|
1207
1214
|
}
|
|
1208
1215
|
onInputBlur(event) {
|
|
1209
|
-
this.focused
|
|
1216
|
+
this.focused.set(false);
|
|
1210
1217
|
const newValueNumber = this.validateValue(this.parseValue(this.input().nativeElement.value));
|
|
1211
1218
|
const newValueString = newValueNumber?.toString();
|
|
1212
1219
|
this.input().nativeElement.value = this.formatValue(newValueString);
|
|
@@ -1215,15 +1222,16 @@ class InputNumber extends BaseInput {
|
|
|
1215
1222
|
this.onModelTouched();
|
|
1216
1223
|
this.onBlur.emit(event);
|
|
1217
1224
|
}
|
|
1218
|
-
formattedValue() {
|
|
1219
|
-
const val = !this.value && !this.allowEmpty ? 0 : this.value;
|
|
1225
|
+
formattedValue = computed(() => {
|
|
1226
|
+
const val = !this.value() && !this.allowEmpty() ? 0 : this.value();
|
|
1220
1227
|
return this.formatValue(val);
|
|
1221
|
-
}
|
|
1228
|
+
}, /* @ts-ignore */
|
|
1229
|
+
...(ngDevMode ? [{ debugName: "formattedValue" }] : /* istanbul ignore next */ []));
|
|
1222
1230
|
updateModel(event, value) {
|
|
1223
|
-
const isBlurUpdateOnMode = this.ngControl?.control?.updateOn === 'blur';
|
|
1224
|
-
if (this.value !== value) {
|
|
1225
|
-
this.value
|
|
1226
|
-
if (!(isBlurUpdateOnMode && this.focused)) {
|
|
1231
|
+
const isBlurUpdateOnMode = this.ngControl()?.control?.updateOn === 'blur';
|
|
1232
|
+
if (this.value() !== value) {
|
|
1233
|
+
this.value.set(value);
|
|
1234
|
+
if (!(isBlurUpdateOnMode && this.focused())) {
|
|
1227
1235
|
this.onModelChange(value);
|
|
1228
1236
|
}
|
|
1229
1237
|
}
|
|
@@ -1238,60 +1246,58 @@ class InputNumber extends BaseInput {
|
|
|
1238
1246
|
* Writes the value to the control.
|
|
1239
1247
|
*/
|
|
1240
1248
|
writeControlValue(value, setModelValue) {
|
|
1241
|
-
this.value
|
|
1249
|
+
this.value.set(value ? Number(value) : value);
|
|
1242
1250
|
setModelValue(value);
|
|
1243
|
-
this.cd.markForCheck();
|
|
1244
1251
|
}
|
|
1245
1252
|
clearTimer() {
|
|
1246
|
-
if (this.timer) {
|
|
1247
|
-
clearInterval(this.timer);
|
|
1248
|
-
}
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
}
|
|
1262
|
-
static
|
|
1263
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: InputNumber, isStandalone: true, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: { showButtons: ["showButtons", "showButtons", booleanAttribute], format: ["format", "format", booleanAttribute], buttonLayout: "buttonLayout", inputId: "inputId", styleClass: "styleClass", placeholder: "placeholder", tabindex: ["tabindex", "tabindex", numberAttribute], title: "title", ariaLabelledBy: "ariaLabelledBy", ariaDescribedBy: "ariaDescribedBy", ariaLabel: "ariaLabel", ariaRequired: ["ariaRequired", "ariaRequired", booleanAttribute], autocomplete: "autocomplete", incrementButtonClass: "incrementButtonClass", decrementButtonClass: "decrementButtonClass", incrementButtonIcon: "incrementButtonIcon", decrementButtonIcon: "decrementButtonIcon", readonly: ["readonly", "readonly", booleanAttribute], allowEmpty: ["allowEmpty", "allowEmpty", booleanAttribute], locale: "locale", localeMatcher: "localeMatcher", mode: "mode", currency: "currency", currencyDisplay: "currencyDisplay", useGrouping: ["useGrouping", "useGrouping", booleanAttribute], minFractionDigits: ["minFractionDigits", "minFractionDigits", (value) => numberAttribute(value, undefined)], maxFractionDigits: ["maxFractionDigits", "maxFractionDigits", (value) => numberAttribute(value, undefined)], prefix: "prefix", suffix: "suffix", inputStyle: "inputStyle", inputStyleClass: "inputStyleClass", showClear: ["showClear", "showClear", booleanAttribute], autofocus: ["autofocus", "autofocus", booleanAttribute] }, outputs: { onInput: "onInput", onFocus: "onFocus", onBlur: "onBlur", onKeyDown: "onKeyDown", onClear: "onClear" }, host: { properties: { "class": "cn(cx('root'), styleClass)", "attr.data-p": "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: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
1253
|
+
if (this.timer()) {
|
|
1254
|
+
clearInterval(this.timer());
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
dataP = computed(() => this.cn({
|
|
1258
|
+
invalid: this.invalid(),
|
|
1259
|
+
disabled: this.$disabled(),
|
|
1260
|
+
focus: this.focused(),
|
|
1261
|
+
fluid: this.hasFluid,
|
|
1262
|
+
filled: this.$variant() === 'filled',
|
|
1263
|
+
empty: !this.$filled(),
|
|
1264
|
+
[this.size()]: this.size(),
|
|
1265
|
+
[this.buttonLayout()]: this.showButtons() && this.buttonLayout()
|
|
1266
|
+
}), /* @ts-ignore */
|
|
1267
|
+
...(ngDevMode ? [{ debugName: "dataP" }] : /* istanbul ignore next */ []));
|
|
1268
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InputNumber, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1269
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: InputNumber, isStandalone: true, selector: "p-inputNumber, p-inputnumber, p-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 }, 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": "cx('root')", "attr.data-p": "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: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
1264
1270
|
<input
|
|
1265
1271
|
pInputText
|
|
1266
1272
|
#input
|
|
1267
|
-
[attr.id]="inputId"
|
|
1273
|
+
[attr.id]="inputId()"
|
|
1268
1274
|
role="spinbutton"
|
|
1269
|
-
[class]="cn(cx('pcInputText'), inputStyleClass)"
|
|
1275
|
+
[class]="cn(cx('pcInputText'), inputStyleClass())"
|
|
1270
1276
|
[value]="formattedValue()"
|
|
1271
|
-
[ngStyle]="inputStyle"
|
|
1277
|
+
[ngStyle]="inputStyle()"
|
|
1272
1278
|
[variant]="$variant()"
|
|
1273
1279
|
[invalid]="invalid()"
|
|
1274
1280
|
[attr.aria-valuemin]="min()"
|
|
1275
1281
|
[attr.aria-valuemax]="max()"
|
|
1276
|
-
[attr.aria-valuenow]="value"
|
|
1277
|
-
[attr.placeholder]="placeholder"
|
|
1278
|
-
[attr.aria-label]="ariaLabel"
|
|
1279
|
-
[attr.aria-labelledby]="ariaLabelledBy"
|
|
1280
|
-
[attr.aria-describedby]="ariaDescribedBy"
|
|
1281
|
-
[attr.title]="title"
|
|
1282
|
+
[attr.aria-valuenow]="value()"
|
|
1283
|
+
[attr.placeholder]="placeholder()"
|
|
1284
|
+
[attr.aria-label]="ariaLabel()"
|
|
1285
|
+
[attr.aria-labelledby]="ariaLabelledBy()"
|
|
1286
|
+
[attr.aria-describedby]="ariaDescribedBy()"
|
|
1287
|
+
[attr.title]="title()"
|
|
1282
1288
|
[pSize]="size()"
|
|
1283
1289
|
[attr.size]="inputSize()"
|
|
1284
1290
|
[attr.name]="name()"
|
|
1285
|
-
[attr.autocomplete]="autocomplete"
|
|
1291
|
+
[attr.autocomplete]="autocomplete()"
|
|
1286
1292
|
[attr.maxlength]="maxlength()"
|
|
1287
1293
|
[attr.minlength]="minlength()"
|
|
1288
|
-
[attr.tabindex]="tabindex"
|
|
1289
|
-
[attr.aria-required]="ariaRequired"
|
|
1294
|
+
[attr.tabindex]="tabindex()"
|
|
1295
|
+
[attr.aria-required]="ariaRequired()"
|
|
1290
1296
|
[attr.min]="min()"
|
|
1291
1297
|
[attr.max]="max()"
|
|
1292
1298
|
[attr.step]="step() ?? 1"
|
|
1293
1299
|
[attr.required]="required() ? '' : undefined"
|
|
1294
|
-
[attr.readonly]="readonly ? '' : undefined"
|
|
1300
|
+
[attr.readonly]="readonly() ? '' : undefined"
|
|
1295
1301
|
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1296
1302
|
inputmode="decimal"
|
|
1297
1303
|
(input)="onUserInput($event)"
|
|
@@ -1303,26 +1309,26 @@ class InputNumber extends BaseInput {
|
|
|
1303
1309
|
(blur)="onInputBlur($event)"
|
|
1304
1310
|
[pt]="ptm('pcInputText')"
|
|
1305
1311
|
[unstyled]="unstyled()"
|
|
1306
|
-
[pAutoFocus]="autofocus"
|
|
1312
|
+
[pAutoFocus]="autofocus()"
|
|
1307
1313
|
[fluid]="hasFluid"
|
|
1308
|
-
[attr.data-p]="dataP"
|
|
1314
|
+
[attr.data-p]="dataP()"
|
|
1309
1315
|
/>
|
|
1310
|
-
@if (buttonLayout != 'vertical' && showClear && value) {
|
|
1311
|
-
@if (!clearIconTemplate() && !_clearIconTemplate) {
|
|
1316
|
+
@if (buttonLayout() != 'vertical' && showClear() && value()) {
|
|
1317
|
+
@if (!clearIconTemplate() && !_clearIconTemplate()) {
|
|
1312
1318
|
<svg data-p-icon="times" [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear()" />
|
|
1313
1319
|
}
|
|
1314
|
-
@if (clearIconTemplate() || _clearIconTemplate) {
|
|
1320
|
+
@if (clearIconTemplate() || _clearIconTemplate()) {
|
|
1315
1321
|
<span [pBind]="ptm('clearIcon')" (click)="clear()" [class]="cx('clearIcon')">
|
|
1316
|
-
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate"></ng-template>
|
|
1322
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate()"></ng-template>
|
|
1317
1323
|
</span>
|
|
1318
1324
|
}
|
|
1319
1325
|
}
|
|
1320
|
-
@if (showButtons && buttonLayout === 'stacked') {
|
|
1321
|
-
<span [pBind]="ptm('buttonGroup')" [class]="cx('buttonGroup')" [attr.data-p]="dataP">
|
|
1326
|
+
@if (showButtons() && buttonLayout() === 'stacked') {
|
|
1327
|
+
<span [pBind]="ptm('buttonGroup')" [class]="cx('buttonGroup')" [attr.data-p]="dataP()">
|
|
1322
1328
|
<button
|
|
1323
1329
|
type="button"
|
|
1324
1330
|
[pBind]="ptm('incrementButton')"
|
|
1325
|
-
[class]="cn(cx('incrementButton'), incrementButtonClass)"
|
|
1331
|
+
[class]="cn(cx('incrementButton'), incrementButtonClass())"
|
|
1326
1332
|
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1327
1333
|
tabindex="-1"
|
|
1328
1334
|
(mousedown)="onUpButtonMouseDown($event)"
|
|
@@ -1331,22 +1337,22 @@ class InputNumber extends BaseInput {
|
|
|
1331
1337
|
(keydown)="onUpButtonKeyDown($event)"
|
|
1332
1338
|
(keyup)="onUpButtonKeyUp()"
|
|
1333
1339
|
[attr.aria-hidden]="true"
|
|
1334
|
-
[attr.data-p]="dataP"
|
|
1340
|
+
[attr.data-p]="dataP()"
|
|
1335
1341
|
>
|
|
1336
|
-
@if (incrementButtonIcon) {
|
|
1337
|
-
<span [pBind]="ptm('incrementButtonIcon')" [ngClass]="incrementButtonIcon"></span>
|
|
1342
|
+
@if (incrementButtonIcon()) {
|
|
1343
|
+
<span [pBind]="ptm('incrementButtonIcon')" [ngClass]="incrementButtonIcon()"></span>
|
|
1338
1344
|
}
|
|
1339
|
-
@if (!incrementButtonIcon) {
|
|
1340
|
-
@if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {
|
|
1345
|
+
@if (!incrementButtonIcon()) {
|
|
1346
|
+
@if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate()) {
|
|
1341
1347
|
<svg data-p-icon="angle-up" [pBind]="ptm('incrementButtonIcon')" />
|
|
1342
1348
|
}
|
|
1343
|
-
<ng-template *ngTemplateOutlet="incrementButtonIconTemplate() || _incrementButtonIconTemplate"></ng-template>
|
|
1349
|
+
<ng-template *ngTemplateOutlet="incrementButtonIconTemplate() || _incrementButtonIconTemplate()"></ng-template>
|
|
1344
1350
|
}
|
|
1345
1351
|
</button>
|
|
1346
1352
|
<button
|
|
1347
1353
|
type="button"
|
|
1348
1354
|
[pBind]="ptm('decrementButton')"
|
|
1349
|
-
[class]="cn(cx('decrementButton'), decrementButtonClass)"
|
|
1355
|
+
[class]="cn(cx('decrementButton'), decrementButtonClass())"
|
|
1350
1356
|
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1351
1357
|
tabindex="-1"
|
|
1352
1358
|
[attr.aria-hidden]="true"
|
|
@@ -1355,25 +1361,25 @@ class InputNumber extends BaseInput {
|
|
|
1355
1361
|
(mouseleave)="onDownButtonMouseLeave()"
|
|
1356
1362
|
(keydown)="onDownButtonKeyDown($event)"
|
|
1357
1363
|
(keyup)="onDownButtonKeyUp()"
|
|
1358
|
-
[attr.data-p]="dataP"
|
|
1364
|
+
[attr.data-p]="dataP()"
|
|
1359
1365
|
>
|
|
1360
|
-
@if (decrementButtonIcon) {
|
|
1361
|
-
<span [pBind]="ptm('decrementButtonIcon')" [ngClass]="decrementButtonIcon"></span>
|
|
1366
|
+
@if (decrementButtonIcon()) {
|
|
1367
|
+
<span [pBind]="ptm('decrementButtonIcon')" [ngClass]="decrementButtonIcon()"></span>
|
|
1362
1368
|
}
|
|
1363
|
-
@if (!decrementButtonIcon) {
|
|
1364
|
-
@if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {
|
|
1369
|
+
@if (!decrementButtonIcon()) {
|
|
1370
|
+
@if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate()) {
|
|
1365
1371
|
<svg data-p-icon="angle-down" [pBind]="ptm('decrementButtonIcon')" />
|
|
1366
1372
|
}
|
|
1367
|
-
<ng-template *ngTemplateOutlet="decrementButtonIconTemplate() || _decrementButtonIconTemplate"></ng-template>
|
|
1373
|
+
<ng-template *ngTemplateOutlet="decrementButtonIconTemplate() || _decrementButtonIconTemplate()"></ng-template>
|
|
1368
1374
|
}
|
|
1369
1375
|
</button>
|
|
1370
1376
|
</span>
|
|
1371
1377
|
}
|
|
1372
|
-
@if (showButtons && buttonLayout !== 'stacked') {
|
|
1378
|
+
@if (showButtons() && buttonLayout() !== 'stacked') {
|
|
1373
1379
|
<button
|
|
1374
1380
|
type="button"
|
|
1375
1381
|
[pBind]="ptm('incrementButton')"
|
|
1376
|
-
[class]="cn(cx('incrementButton'), incrementButtonClass)"
|
|
1382
|
+
[class]="cn(cx('incrementButton'), incrementButtonClass())"
|
|
1377
1383
|
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1378
1384
|
tabindex="-1"
|
|
1379
1385
|
[attr.aria-hidden]="true"
|
|
@@ -1382,24 +1388,24 @@ class InputNumber extends BaseInput {
|
|
|
1382
1388
|
(mouseleave)="onUpButtonMouseLeave()"
|
|
1383
1389
|
(keydown)="onUpButtonKeyDown($event)"
|
|
1384
1390
|
(keyup)="onUpButtonKeyUp()"
|
|
1385
|
-
[attr.data-p]="dataP"
|
|
1391
|
+
[attr.data-p]="dataP()"
|
|
1386
1392
|
>
|
|
1387
|
-
@if (incrementButtonIcon) {
|
|
1388
|
-
<span [pBind]="ptm('incrementButtonIcon')" [ngClass]="incrementButtonIcon"></span>
|
|
1393
|
+
@if (incrementButtonIcon()) {
|
|
1394
|
+
<span [pBind]="ptm('incrementButtonIcon')" [ngClass]="incrementButtonIcon()"></span>
|
|
1389
1395
|
}
|
|
1390
|
-
@if (!incrementButtonIcon) {
|
|
1391
|
-
@if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {
|
|
1396
|
+
@if (!incrementButtonIcon()) {
|
|
1397
|
+
@if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate()) {
|
|
1392
1398
|
<svg data-p-icon="angle-up" [pBind]="ptm('incrementButtonIcon')" />
|
|
1393
1399
|
}
|
|
1394
|
-
<ng-template *ngTemplateOutlet="incrementButtonIconTemplate() || _incrementButtonIconTemplate"></ng-template>
|
|
1400
|
+
<ng-template *ngTemplateOutlet="incrementButtonIconTemplate() || _incrementButtonIconTemplate()"></ng-template>
|
|
1395
1401
|
}
|
|
1396
1402
|
</button>
|
|
1397
1403
|
}
|
|
1398
|
-
@if (showButtons && buttonLayout !== 'stacked') {
|
|
1404
|
+
@if (showButtons() && buttonLayout() !== 'stacked') {
|
|
1399
1405
|
<button
|
|
1400
1406
|
type="button"
|
|
1401
1407
|
[pBind]="ptm('decrementButton')"
|
|
1402
|
-
[class]="cn(cx('decrementButton'), decrementButtonClass)"
|
|
1408
|
+
[class]="cn(cx('decrementButton'), decrementButtonClass())"
|
|
1403
1409
|
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1404
1410
|
tabindex="-1"
|
|
1405
1411
|
[attr.aria-hidden]="true"
|
|
@@ -1408,16 +1414,16 @@ class InputNumber extends BaseInput {
|
|
|
1408
1414
|
(mouseleave)="onDownButtonMouseLeave()"
|
|
1409
1415
|
(keydown)="onDownButtonKeyDown($event)"
|
|
1410
1416
|
(keyup)="onDownButtonKeyUp()"
|
|
1411
|
-
[attr.data-p]="dataP"
|
|
1417
|
+
[attr.data-p]="dataP()"
|
|
1412
1418
|
>
|
|
1413
|
-
@if (decrementButtonIcon) {
|
|
1414
|
-
<span [pBind]="ptm('decrementButtonIcon')" [ngClass]="decrementButtonIcon"></span>
|
|
1419
|
+
@if (decrementButtonIcon()) {
|
|
1420
|
+
<span [pBind]="ptm('decrementButtonIcon')" [ngClass]="decrementButtonIcon()"></span>
|
|
1415
1421
|
}
|
|
1416
|
-
@if (!decrementButtonIcon) {
|
|
1417
|
-
@if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {
|
|
1422
|
+
@if (!decrementButtonIcon()) {
|
|
1423
|
+
@if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate()) {
|
|
1418
1424
|
<svg data-p-icon="angle-down" [pBind]="ptm('decrementButtonIcon')" />
|
|
1419
1425
|
}
|
|
1420
|
-
<ng-template *ngTemplateOutlet="decrementButtonIconTemplate() || _decrementButtonIconTemplate"></ng-template>
|
|
1426
|
+
<ng-template *ngTemplateOutlet="decrementButtonIconTemplate() || _decrementButtonIconTemplate()"></ng-template>
|
|
1421
1427
|
}
|
|
1422
1428
|
</button>
|
|
1423
1429
|
}
|
|
@@ -1427,40 +1433,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1427
1433
|
type: Component,
|
|
1428
1434
|
args: [{
|
|
1429
1435
|
selector: 'p-inputNumber, p-inputnumber, p-input-number',
|
|
1430
|
-
standalone: true,
|
|
1431
1436
|
imports: [CommonModule, InputText, AutoFocus, TimesIcon, AngleUpIcon, AngleDownIcon, SharedModule, BindModule],
|
|
1432
1437
|
template: `
|
|
1433
1438
|
<input
|
|
1434
1439
|
pInputText
|
|
1435
1440
|
#input
|
|
1436
|
-
[attr.id]="inputId"
|
|
1441
|
+
[attr.id]="inputId()"
|
|
1437
1442
|
role="spinbutton"
|
|
1438
|
-
[class]="cn(cx('pcInputText'), inputStyleClass)"
|
|
1443
|
+
[class]="cn(cx('pcInputText'), inputStyleClass())"
|
|
1439
1444
|
[value]="formattedValue()"
|
|
1440
|
-
[ngStyle]="inputStyle"
|
|
1445
|
+
[ngStyle]="inputStyle()"
|
|
1441
1446
|
[variant]="$variant()"
|
|
1442
1447
|
[invalid]="invalid()"
|
|
1443
1448
|
[attr.aria-valuemin]="min()"
|
|
1444
1449
|
[attr.aria-valuemax]="max()"
|
|
1445
|
-
[attr.aria-valuenow]="value"
|
|
1446
|
-
[attr.placeholder]="placeholder"
|
|
1447
|
-
[attr.aria-label]="ariaLabel"
|
|
1448
|
-
[attr.aria-labelledby]="ariaLabelledBy"
|
|
1449
|
-
[attr.aria-describedby]="ariaDescribedBy"
|
|
1450
|
-
[attr.title]="title"
|
|
1450
|
+
[attr.aria-valuenow]="value()"
|
|
1451
|
+
[attr.placeholder]="placeholder()"
|
|
1452
|
+
[attr.aria-label]="ariaLabel()"
|
|
1453
|
+
[attr.aria-labelledby]="ariaLabelledBy()"
|
|
1454
|
+
[attr.aria-describedby]="ariaDescribedBy()"
|
|
1455
|
+
[attr.title]="title()"
|
|
1451
1456
|
[pSize]="size()"
|
|
1452
1457
|
[attr.size]="inputSize()"
|
|
1453
1458
|
[attr.name]="name()"
|
|
1454
|
-
[attr.autocomplete]="autocomplete"
|
|
1459
|
+
[attr.autocomplete]="autocomplete()"
|
|
1455
1460
|
[attr.maxlength]="maxlength()"
|
|
1456
1461
|
[attr.minlength]="minlength()"
|
|
1457
|
-
[attr.tabindex]="tabindex"
|
|
1458
|
-
[attr.aria-required]="ariaRequired"
|
|
1462
|
+
[attr.tabindex]="tabindex()"
|
|
1463
|
+
[attr.aria-required]="ariaRequired()"
|
|
1459
1464
|
[attr.min]="min()"
|
|
1460
1465
|
[attr.max]="max()"
|
|
1461
1466
|
[attr.step]="step() ?? 1"
|
|
1462
1467
|
[attr.required]="required() ? '' : undefined"
|
|
1463
|
-
[attr.readonly]="readonly ? '' : undefined"
|
|
1468
|
+
[attr.readonly]="readonly() ? '' : undefined"
|
|
1464
1469
|
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1465
1470
|
inputmode="decimal"
|
|
1466
1471
|
(input)="onUserInput($event)"
|
|
@@ -1472,26 +1477,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1472
1477
|
(blur)="onInputBlur($event)"
|
|
1473
1478
|
[pt]="ptm('pcInputText')"
|
|
1474
1479
|
[unstyled]="unstyled()"
|
|
1475
|
-
[pAutoFocus]="autofocus"
|
|
1480
|
+
[pAutoFocus]="autofocus()"
|
|
1476
1481
|
[fluid]="hasFluid"
|
|
1477
|
-
[attr.data-p]="dataP"
|
|
1482
|
+
[attr.data-p]="dataP()"
|
|
1478
1483
|
/>
|
|
1479
|
-
@if (buttonLayout != 'vertical' && showClear && value) {
|
|
1480
|
-
@if (!clearIconTemplate() && !_clearIconTemplate) {
|
|
1484
|
+
@if (buttonLayout() != 'vertical' && showClear() && value()) {
|
|
1485
|
+
@if (!clearIconTemplate() && !_clearIconTemplate()) {
|
|
1481
1486
|
<svg data-p-icon="times" [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear()" />
|
|
1482
1487
|
}
|
|
1483
|
-
@if (clearIconTemplate() || _clearIconTemplate) {
|
|
1488
|
+
@if (clearIconTemplate() || _clearIconTemplate()) {
|
|
1484
1489
|
<span [pBind]="ptm('clearIcon')" (click)="clear()" [class]="cx('clearIcon')">
|
|
1485
|
-
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate"></ng-template>
|
|
1490
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate()"></ng-template>
|
|
1486
1491
|
</span>
|
|
1487
1492
|
}
|
|
1488
1493
|
}
|
|
1489
|
-
@if (showButtons && buttonLayout === 'stacked') {
|
|
1490
|
-
<span [pBind]="ptm('buttonGroup')" [class]="cx('buttonGroup')" [attr.data-p]="dataP">
|
|
1494
|
+
@if (showButtons() && buttonLayout() === 'stacked') {
|
|
1495
|
+
<span [pBind]="ptm('buttonGroup')" [class]="cx('buttonGroup')" [attr.data-p]="dataP()">
|
|
1491
1496
|
<button
|
|
1492
1497
|
type="button"
|
|
1493
1498
|
[pBind]="ptm('incrementButton')"
|
|
1494
|
-
[class]="cn(cx('incrementButton'), incrementButtonClass)"
|
|
1499
|
+
[class]="cn(cx('incrementButton'), incrementButtonClass())"
|
|
1495
1500
|
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1496
1501
|
tabindex="-1"
|
|
1497
1502
|
(mousedown)="onUpButtonMouseDown($event)"
|
|
@@ -1500,22 +1505,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1500
1505
|
(keydown)="onUpButtonKeyDown($event)"
|
|
1501
1506
|
(keyup)="onUpButtonKeyUp()"
|
|
1502
1507
|
[attr.aria-hidden]="true"
|
|
1503
|
-
[attr.data-p]="dataP"
|
|
1508
|
+
[attr.data-p]="dataP()"
|
|
1504
1509
|
>
|
|
1505
|
-
@if (incrementButtonIcon) {
|
|
1506
|
-
<span [pBind]="ptm('incrementButtonIcon')" [ngClass]="incrementButtonIcon"></span>
|
|
1510
|
+
@if (incrementButtonIcon()) {
|
|
1511
|
+
<span [pBind]="ptm('incrementButtonIcon')" [ngClass]="incrementButtonIcon()"></span>
|
|
1507
1512
|
}
|
|
1508
|
-
@if (!incrementButtonIcon) {
|
|
1509
|
-
@if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {
|
|
1513
|
+
@if (!incrementButtonIcon()) {
|
|
1514
|
+
@if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate()) {
|
|
1510
1515
|
<svg data-p-icon="angle-up" [pBind]="ptm('incrementButtonIcon')" />
|
|
1511
1516
|
}
|
|
1512
|
-
<ng-template *ngTemplateOutlet="incrementButtonIconTemplate() || _incrementButtonIconTemplate"></ng-template>
|
|
1517
|
+
<ng-template *ngTemplateOutlet="incrementButtonIconTemplate() || _incrementButtonIconTemplate()"></ng-template>
|
|
1513
1518
|
}
|
|
1514
1519
|
</button>
|
|
1515
1520
|
<button
|
|
1516
1521
|
type="button"
|
|
1517
1522
|
[pBind]="ptm('decrementButton')"
|
|
1518
|
-
[class]="cn(cx('decrementButton'), decrementButtonClass)"
|
|
1523
|
+
[class]="cn(cx('decrementButton'), decrementButtonClass())"
|
|
1519
1524
|
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1520
1525
|
tabindex="-1"
|
|
1521
1526
|
[attr.aria-hidden]="true"
|
|
@@ -1524,25 +1529,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1524
1529
|
(mouseleave)="onDownButtonMouseLeave()"
|
|
1525
1530
|
(keydown)="onDownButtonKeyDown($event)"
|
|
1526
1531
|
(keyup)="onDownButtonKeyUp()"
|
|
1527
|
-
[attr.data-p]="dataP"
|
|
1532
|
+
[attr.data-p]="dataP()"
|
|
1528
1533
|
>
|
|
1529
|
-
@if (decrementButtonIcon) {
|
|
1530
|
-
<span [pBind]="ptm('decrementButtonIcon')" [ngClass]="decrementButtonIcon"></span>
|
|
1534
|
+
@if (decrementButtonIcon()) {
|
|
1535
|
+
<span [pBind]="ptm('decrementButtonIcon')" [ngClass]="decrementButtonIcon()"></span>
|
|
1531
1536
|
}
|
|
1532
|
-
@if (!decrementButtonIcon) {
|
|
1533
|
-
@if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {
|
|
1537
|
+
@if (!decrementButtonIcon()) {
|
|
1538
|
+
@if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate()) {
|
|
1534
1539
|
<svg data-p-icon="angle-down" [pBind]="ptm('decrementButtonIcon')" />
|
|
1535
1540
|
}
|
|
1536
|
-
<ng-template *ngTemplateOutlet="decrementButtonIconTemplate() || _decrementButtonIconTemplate"></ng-template>
|
|
1541
|
+
<ng-template *ngTemplateOutlet="decrementButtonIconTemplate() || _decrementButtonIconTemplate()"></ng-template>
|
|
1537
1542
|
}
|
|
1538
1543
|
</button>
|
|
1539
1544
|
</span>
|
|
1540
1545
|
}
|
|
1541
|
-
@if (showButtons && buttonLayout !== 'stacked') {
|
|
1546
|
+
@if (showButtons() && buttonLayout() !== 'stacked') {
|
|
1542
1547
|
<button
|
|
1543
1548
|
type="button"
|
|
1544
1549
|
[pBind]="ptm('incrementButton')"
|
|
1545
|
-
[class]="cn(cx('incrementButton'), incrementButtonClass)"
|
|
1550
|
+
[class]="cn(cx('incrementButton'), incrementButtonClass())"
|
|
1546
1551
|
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1547
1552
|
tabindex="-1"
|
|
1548
1553
|
[attr.aria-hidden]="true"
|
|
@@ -1551,24 +1556,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1551
1556
|
(mouseleave)="onUpButtonMouseLeave()"
|
|
1552
1557
|
(keydown)="onUpButtonKeyDown($event)"
|
|
1553
1558
|
(keyup)="onUpButtonKeyUp()"
|
|
1554
|
-
[attr.data-p]="dataP"
|
|
1559
|
+
[attr.data-p]="dataP()"
|
|
1555
1560
|
>
|
|
1556
|
-
@if (incrementButtonIcon) {
|
|
1557
|
-
<span [pBind]="ptm('incrementButtonIcon')" [ngClass]="incrementButtonIcon"></span>
|
|
1561
|
+
@if (incrementButtonIcon()) {
|
|
1562
|
+
<span [pBind]="ptm('incrementButtonIcon')" [ngClass]="incrementButtonIcon()"></span>
|
|
1558
1563
|
}
|
|
1559
|
-
@if (!incrementButtonIcon) {
|
|
1560
|
-
@if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {
|
|
1564
|
+
@if (!incrementButtonIcon()) {
|
|
1565
|
+
@if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate()) {
|
|
1561
1566
|
<svg data-p-icon="angle-up" [pBind]="ptm('incrementButtonIcon')" />
|
|
1562
1567
|
}
|
|
1563
|
-
<ng-template *ngTemplateOutlet="incrementButtonIconTemplate() || _incrementButtonIconTemplate"></ng-template>
|
|
1568
|
+
<ng-template *ngTemplateOutlet="incrementButtonIconTemplate() || _incrementButtonIconTemplate()"></ng-template>
|
|
1564
1569
|
}
|
|
1565
1570
|
</button>
|
|
1566
1571
|
}
|
|
1567
|
-
@if (showButtons && buttonLayout !== 'stacked') {
|
|
1572
|
+
@if (showButtons() && buttonLayout() !== 'stacked') {
|
|
1568
1573
|
<button
|
|
1569
1574
|
type="button"
|
|
1570
1575
|
[pBind]="ptm('decrementButton')"
|
|
1571
|
-
[class]="cn(cx('decrementButton'), decrementButtonClass)"
|
|
1576
|
+
[class]="cn(cx('decrementButton'), decrementButtonClass())"
|
|
1572
1577
|
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1573
1578
|
tabindex="-1"
|
|
1574
1579
|
[attr.aria-hidden]="true"
|
|
@@ -1577,16 +1582,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1577
1582
|
(mouseleave)="onDownButtonMouseLeave()"
|
|
1578
1583
|
(keydown)="onDownButtonKeyDown($event)"
|
|
1579
1584
|
(keyup)="onDownButtonKeyUp()"
|
|
1580
|
-
[attr.data-p]="dataP"
|
|
1585
|
+
[attr.data-p]="dataP()"
|
|
1581
1586
|
>
|
|
1582
|
-
@if (decrementButtonIcon) {
|
|
1583
|
-
<span [pBind]="ptm('decrementButtonIcon')" [ngClass]="decrementButtonIcon"></span>
|
|
1587
|
+
@if (decrementButtonIcon()) {
|
|
1588
|
+
<span [pBind]="ptm('decrementButtonIcon')" [ngClass]="decrementButtonIcon()"></span>
|
|
1584
1589
|
}
|
|
1585
|
-
@if (!decrementButtonIcon) {
|
|
1586
|
-
@if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {
|
|
1590
|
+
@if (!decrementButtonIcon()) {
|
|
1591
|
+
@if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate()) {
|
|
1587
1592
|
<svg data-p-icon="angle-down" [pBind]="ptm('decrementButtonIcon')" />
|
|
1588
1593
|
}
|
|
1589
|
-
<ng-template *ngTemplateOutlet="decrementButtonIconTemplate() || _decrementButtonIconTemplate"></ng-template>
|
|
1594
|
+
<ng-template *ngTemplateOutlet="decrementButtonIconTemplate() || _decrementButtonIconTemplate()"></ng-template>
|
|
1590
1595
|
}
|
|
1591
1596
|
</button>
|
|
1592
1597
|
}
|
|
@@ -1595,89 +1600,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1595
1600
|
providers: [INPUTNUMBER_VALUE_ACCESSOR, InputNumberStyle, { provide: INPUTNUMBER_INSTANCE, useExisting: InputNumber }, { provide: PARENT_INSTANCE, useExisting: InputNumber }],
|
|
1596
1601
|
encapsulation: ViewEncapsulation.None,
|
|
1597
1602
|
host: {
|
|
1598
|
-
'[class]': "
|
|
1599
|
-
'[attr.data-p]': 'dataP'
|
|
1603
|
+
'[class]': "cx('root')",
|
|
1604
|
+
'[attr.data-p]': 'dataP()'
|
|
1600
1605
|
},
|
|
1601
1606
|
hostDirectives: [Bind]
|
|
1602
1607
|
}]
|
|
1603
|
-
}], propDecorators: { showButtons: [{
|
|
1604
|
-
type: Input,
|
|
1605
|
-
args: [{ transform: booleanAttribute }]
|
|
1606
|
-
}], format: [{
|
|
1607
|
-
type: Input,
|
|
1608
|
-
args: [{ transform: booleanAttribute }]
|
|
1609
|
-
}], buttonLayout: [{
|
|
1610
|
-
type: Input
|
|
1611
|
-
}], inputId: [{
|
|
1612
|
-
type: Input
|
|
1613
|
-
}], styleClass: [{
|
|
1614
|
-
type: Input
|
|
1615
|
-
}], placeholder: [{
|
|
1616
|
-
type: Input
|
|
1617
|
-
}], tabindex: [{
|
|
1618
|
-
type: Input,
|
|
1619
|
-
args: [{ transform: numberAttribute }]
|
|
1620
|
-
}], title: [{
|
|
1621
|
-
type: Input
|
|
1622
|
-
}], ariaLabelledBy: [{
|
|
1623
|
-
type: Input
|
|
1624
|
-
}], ariaDescribedBy: [{
|
|
1625
|
-
type: Input
|
|
1626
|
-
}], ariaLabel: [{
|
|
1627
|
-
type: Input
|
|
1628
|
-
}], ariaRequired: [{
|
|
1629
|
-
type: Input,
|
|
1630
|
-
args: [{ transform: booleanAttribute }]
|
|
1631
|
-
}], autocomplete: [{
|
|
1632
|
-
type: Input
|
|
1633
|
-
}], incrementButtonClass: [{
|
|
1634
|
-
type: Input
|
|
1635
|
-
}], decrementButtonClass: [{
|
|
1636
|
-
type: Input
|
|
1637
|
-
}], incrementButtonIcon: [{
|
|
1638
|
-
type: Input
|
|
1639
|
-
}], decrementButtonIcon: [{
|
|
1640
|
-
type: Input
|
|
1641
|
-
}], readonly: [{
|
|
1642
|
-
type: Input,
|
|
1643
|
-
args: [{ transform: booleanAttribute }]
|
|
1644
|
-
}], allowEmpty: [{
|
|
1645
|
-
type: Input,
|
|
1646
|
-
args: [{ transform: booleanAttribute }]
|
|
1647
|
-
}], locale: [{
|
|
1648
|
-
type: Input
|
|
1649
|
-
}], localeMatcher: [{
|
|
1650
|
-
type: Input
|
|
1651
|
-
}], mode: [{
|
|
1652
|
-
type: Input
|
|
1653
|
-
}], currency: [{
|
|
1654
|
-
type: Input
|
|
1655
|
-
}], currencyDisplay: [{
|
|
1656
|
-
type: Input
|
|
1657
|
-
}], useGrouping: [{
|
|
1658
|
-
type: Input,
|
|
1659
|
-
args: [{ transform: booleanAttribute }]
|
|
1660
|
-
}], minFractionDigits: [{
|
|
1661
|
-
type: Input,
|
|
1662
|
-
args: [{ transform: (value) => numberAttribute(value, undefined) }]
|
|
1663
|
-
}], maxFractionDigits: [{
|
|
1664
|
-
type: Input,
|
|
1665
|
-
args: [{ transform: (value) => numberAttribute(value, undefined) }]
|
|
1666
|
-
}], prefix: [{
|
|
1667
|
-
type: Input
|
|
1668
|
-
}], suffix: [{
|
|
1669
|
-
type: Input
|
|
1670
|
-
}], inputStyle: [{
|
|
1671
|
-
type: Input
|
|
1672
|
-
}], inputStyleClass: [{
|
|
1673
|
-
type: Input
|
|
1674
|
-
}], showClear: [{
|
|
1675
|
-
type: Input,
|
|
1676
|
-
args: [{ transform: booleanAttribute }]
|
|
1677
|
-
}], autofocus: [{
|
|
1678
|
-
type: Input,
|
|
1679
|
-
args: [{ transform: booleanAttribute }]
|
|
1680
|
-
}], 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(() => PrimeTemplate), { isSignal: true }] }], input: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }] } });
|
|
1608
|
+
}], ctorParameters: () => [], 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 }] }], 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(() => PrimeTemplate), { isSignal: true }] }], input: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }] } });
|
|
1681
1609
|
class InputNumberModule {
|
|
1682
1610
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1683
1611
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: InputNumberModule, imports: [InputNumber, SharedModule], exports: [InputNumber, SharedModule] });
|