@gravionlabs/helix-core 22.1.1 → 22.1.3

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.
Files changed (820) hide show
  1. package/fesm2022/gravionlabs-helix-core-accordion.mjs +994 -541
  2. package/fesm2022/gravionlabs-helix-core-accordion.mjs.map +1 -1
  3. package/fesm2022/gravionlabs-helix-core-animateonscroll.mjs +265 -166
  4. package/fesm2022/gravionlabs-helix-core-animateonscroll.mjs.map +1 -1
  5. package/fesm2022/gravionlabs-helix-core-api.mjs +926 -836
  6. package/fesm2022/gravionlabs-helix-core-api.mjs.map +1 -1
  7. package/fesm2022/gravionlabs-helix-core-autocomplete.mjs +2603 -1611
  8. package/fesm2022/gravionlabs-helix-core-autocomplete.mjs.map +1 -1
  9. package/fesm2022/gravionlabs-helix-core-autofocus.mjs +115 -79
  10. package/fesm2022/gravionlabs-helix-core-autofocus.mjs.map +1 -1
  11. package/fesm2022/gravionlabs-helix-core-avatar.mjs +356 -180
  12. package/fesm2022/gravionlabs-helix-core-avatar.mjs.map +1 -1
  13. package/fesm2022/gravionlabs-helix-core-avatargroup.mjs +200 -84
  14. package/fesm2022/gravionlabs-helix-core-avatargroup.mjs.map +1 -1
  15. package/fesm2022/gravionlabs-helix-core-badge.mjs +671 -390
  16. package/fesm2022/gravionlabs-helix-core-badge.mjs.map +1 -1
  17. package/fesm2022/gravionlabs-helix-core-base.mjs +113 -103
  18. package/fesm2022/gravionlabs-helix-core-base.mjs.map +1 -1
  19. package/fesm2022/gravionlabs-helix-core-basecomponent.mjs +498 -444
  20. package/fesm2022/gravionlabs-helix-core-basecomponent.mjs.map +1 -1
  21. package/fesm2022/gravionlabs-helix-core-baseeditableholder.mjs +131 -69
  22. package/fesm2022/gravionlabs-helix-core-baseeditableholder.mjs.map +1 -1
  23. package/fesm2022/gravionlabs-helix-core-baseinput.mjs +210 -94
  24. package/fesm2022/gravionlabs-helix-core-baseinput.mjs.map +1 -1
  25. package/fesm2022/gravionlabs-helix-core-basemodelholder.mjs +39 -26
  26. package/fesm2022/gravionlabs-helix-core-basemodelholder.mjs.map +1 -1
  27. package/fesm2022/gravionlabs-helix-core-bind.mjs +136 -98
  28. package/fesm2022/gravionlabs-helix-core-bind.mjs.map +1 -1
  29. package/fesm2022/gravionlabs-helix-core-blockui.mjs +390 -224
  30. package/fesm2022/gravionlabs-helix-core-blockui.mjs.map +1 -1
  31. package/fesm2022/gravionlabs-helix-core-breadcrumb.mjs +473 -212
  32. package/fesm2022/gravionlabs-helix-core-breadcrumb.mjs.map +1 -1
  33. package/fesm2022/gravionlabs-helix-core-button.mjs +1739 -825
  34. package/fesm2022/gravionlabs-helix-core-button.mjs.map +1 -1
  35. package/fesm2022/gravionlabs-helix-core-buttongroup.mjs +116 -64
  36. package/fesm2022/gravionlabs-helix-core-buttongroup.mjs.map +1 -1
  37. package/fesm2022/gravionlabs-helix-core-card.mjs +454 -205
  38. package/fesm2022/gravionlabs-helix-core-card.mjs.map +1 -1
  39. package/fesm2022/gravionlabs-helix-core-carousel.mjs +1238 -898
  40. package/fesm2022/gravionlabs-helix-core-carousel.mjs.map +1 -1
  41. package/fesm2022/gravionlabs-helix-core-cascadeselect.mjs +2373 -1337
  42. package/fesm2022/gravionlabs-helix-core-cascadeselect.mjs.map +1 -1
  43. package/fesm2022/gravionlabs-helix-core-chart.mjs +407 -214
  44. package/fesm2022/gravionlabs-helix-core-chart.mjs.map +1 -1
  45. package/fesm2022/gravionlabs-helix-core-checkbox.mjs +704 -346
  46. package/fesm2022/gravionlabs-helix-core-checkbox.mjs.map +1 -1
  47. package/fesm2022/gravionlabs-helix-core-chip.mjs +489 -251
  48. package/fesm2022/gravionlabs-helix-core-chip.mjs.map +1 -1
  49. package/fesm2022/gravionlabs-helix-core-classnames.mjs +95 -48
  50. package/fesm2022/gravionlabs-helix-core-classnames.mjs.map +1 -1
  51. package/fesm2022/gravionlabs-helix-core-colorpicker.mjs +975 -667
  52. package/fesm2022/gravionlabs-helix-core-colorpicker.mjs.map +1 -1
  53. package/fesm2022/gravionlabs-helix-core-config.mjs +395 -306
  54. package/fesm2022/gravionlabs-helix-core-config.mjs.map +1 -1
  55. package/fesm2022/gravionlabs-helix-core-confirmdialog.mjs +1222 -546
  56. package/fesm2022/gravionlabs-helix-core-confirmdialog.mjs.map +1 -1
  57. package/fesm2022/gravionlabs-helix-core-confirmpopup.mjs +878 -524
  58. package/fesm2022/gravionlabs-helix-core-confirmpopup.mjs.map +1 -1
  59. package/fesm2022/gravionlabs-helix-core-contextmenu.mjs +1917 -1031
  60. package/fesm2022/gravionlabs-helix-core-contextmenu.mjs.map +1 -1
  61. package/fesm2022/gravionlabs-helix-core-dataview.mjs +1075 -522
  62. package/fesm2022/gravionlabs-helix-core-dataview.mjs.map +1 -1
  63. package/fesm2022/gravionlabs-helix-core-datepicker.mjs +3797 -3313
  64. package/fesm2022/gravionlabs-helix-core-datepicker.mjs.map +1 -1
  65. package/fesm2022/gravionlabs-helix-core-dialog.mjs +1852 -1047
  66. package/fesm2022/gravionlabs-helix-core-dialog.mjs.map +1 -1
  67. package/fesm2022/gravionlabs-helix-core-divider.mjs +288 -136
  68. package/fesm2022/gravionlabs-helix-core-divider.mjs.map +1 -1
  69. package/fesm2022/gravionlabs-helix-core-dock.mjs +655 -387
  70. package/fesm2022/gravionlabs-helix-core-dock.mjs.map +1 -1
  71. package/fesm2022/gravionlabs-helix-core-dom.mjs +589 -760
  72. package/fesm2022/gravionlabs-helix-core-dom.mjs.map +1 -1
  73. package/fesm2022/gravionlabs-helix-core-dragdrop.mjs +457 -302
  74. package/fesm2022/gravionlabs-helix-core-dragdrop.mjs.map +1 -1
  75. package/fesm2022/gravionlabs-helix-core-drawer.mjs +986 -507
  76. package/fesm2022/gravionlabs-helix-core-drawer.mjs.map +1 -1
  77. package/fesm2022/gravionlabs-helix-core-dynamicdialog.mjs +849 -923
  78. package/fesm2022/gravionlabs-helix-core-dynamicdialog.mjs.map +1 -1
  79. package/fesm2022/gravionlabs-helix-core-editor.mjs +578 -383
  80. package/fesm2022/gravionlabs-helix-core-editor.mjs.map +1 -1
  81. package/fesm2022/gravionlabs-helix-core-fieldset.mjs +593 -280
  82. package/fesm2022/gravionlabs-helix-core-fieldset.mjs.map +1 -1
  83. package/fesm2022/gravionlabs-helix-core-fileupload.mjs +1882 -994
  84. package/fesm2022/gravionlabs-helix-core-fileupload.mjs.map +1 -1
  85. package/fesm2022/gravionlabs-helix-core-firsterror.mjs +41 -23
  86. package/fesm2022/gravionlabs-helix-core-firsterror.mjs.map +1 -1
  87. package/fesm2022/gravionlabs-helix-core-floatlabel.mjs +197 -94
  88. package/fesm2022/gravionlabs-helix-core-floatlabel.mjs.map +1 -1
  89. package/fesm2022/gravionlabs-helix-core-fluid.mjs +149 -74
  90. package/fesm2022/gravionlabs-helix-core-fluid.mjs.map +1 -1
  91. package/fesm2022/gravionlabs-helix-core-focustrap.mjs +141 -104
  92. package/fesm2022/gravionlabs-helix-core-focustrap.mjs.map +1 -1
  93. package/fesm2022/gravionlabs-helix-core-galleria.mjs +2800 -1449
  94. package/fesm2022/gravionlabs-helix-core-galleria.mjs.map +1 -1
  95. package/fesm2022/gravionlabs-helix-core-iconfield.mjs +214 -98
  96. package/fesm2022/gravionlabs-helix-core-iconfield.mjs.map +1 -1
  97. package/fesm2022/gravionlabs-helix-core-icons-angledoubledown.mjs +43 -24
  98. package/fesm2022/gravionlabs-helix-core-icons-angledoubledown.mjs.map +1 -1
  99. package/fesm2022/gravionlabs-helix-core-icons-angledoubleleft.mjs +43 -24
  100. package/fesm2022/gravionlabs-helix-core-icons-angledoubleleft.mjs.map +1 -1
  101. package/fesm2022/gravionlabs-helix-core-icons-angledoubleright.mjs +43 -24
  102. package/fesm2022/gravionlabs-helix-core-icons-angledoubleright.mjs.map +1 -1
  103. package/fesm2022/gravionlabs-helix-core-icons-angledoubleup.mjs +43 -24
  104. package/fesm2022/gravionlabs-helix-core-icons-angledoubleup.mjs.map +1 -1
  105. package/fesm2022/gravionlabs-helix-core-icons-angledown.mjs +43 -24
  106. package/fesm2022/gravionlabs-helix-core-icons-angledown.mjs.map +1 -1
  107. package/fesm2022/gravionlabs-helix-core-icons-angleleft.mjs +43 -24
  108. package/fesm2022/gravionlabs-helix-core-icons-angleleft.mjs.map +1 -1
  109. package/fesm2022/gravionlabs-helix-core-icons-angleright.mjs +43 -24
  110. package/fesm2022/gravionlabs-helix-core-icons-angleright.mjs.map +1 -1
  111. package/fesm2022/gravionlabs-helix-core-icons-angleup.mjs +43 -24
  112. package/fesm2022/gravionlabs-helix-core-icons-angleup.mjs.map +1 -1
  113. package/fesm2022/gravionlabs-helix-core-icons-arrowdown.mjs +48 -29
  114. package/fesm2022/gravionlabs-helix-core-icons-arrowdown.mjs.map +1 -1
  115. package/fesm2022/gravionlabs-helix-core-icons-arrowdownleft.mjs +43 -24
  116. package/fesm2022/gravionlabs-helix-core-icons-arrowdownleft.mjs.map +1 -1
  117. package/fesm2022/gravionlabs-helix-core-icons-arrowdownright.mjs +43 -24
  118. package/fesm2022/gravionlabs-helix-core-icons-arrowdownright.mjs.map +1 -1
  119. package/fesm2022/gravionlabs-helix-core-icons-arrowleft.mjs +48 -29
  120. package/fesm2022/gravionlabs-helix-core-icons-arrowleft.mjs.map +1 -1
  121. package/fesm2022/gravionlabs-helix-core-icons-arrowright.mjs +43 -24
  122. package/fesm2022/gravionlabs-helix-core-icons-arrowright.mjs.map +1 -1
  123. package/fesm2022/gravionlabs-helix-core-icons-arrowup.mjs +48 -29
  124. package/fesm2022/gravionlabs-helix-core-icons-arrowup.mjs.map +1 -1
  125. package/fesm2022/gravionlabs-helix-core-icons-ban.mjs +48 -29
  126. package/fesm2022/gravionlabs-helix-core-icons-ban.mjs.map +1 -1
  127. package/fesm2022/gravionlabs-helix-core-icons-bars.mjs +43 -24
  128. package/fesm2022/gravionlabs-helix-core-icons-bars.mjs.map +1 -1
  129. package/fesm2022/gravionlabs-helix-core-icons-baseicon.mjs +120 -64
  130. package/fesm2022/gravionlabs-helix-core-icons-baseicon.mjs.map +1 -1
  131. package/fesm2022/gravionlabs-helix-core-icons-blank.mjs +42 -23
  132. package/fesm2022/gravionlabs-helix-core-icons-blank.mjs.map +1 -1
  133. package/fesm2022/gravionlabs-helix-core-icons-calendar.mjs +43 -24
  134. package/fesm2022/gravionlabs-helix-core-icons-calendar.mjs.map +1 -1
  135. package/fesm2022/gravionlabs-helix-core-icons-caretleft.mjs +43 -24
  136. package/fesm2022/gravionlabs-helix-core-icons-caretleft.mjs.map +1 -1
  137. package/fesm2022/gravionlabs-helix-core-icons-caretright.mjs +43 -24
  138. package/fesm2022/gravionlabs-helix-core-icons-caretright.mjs.map +1 -1
  139. package/fesm2022/gravionlabs-helix-core-icons-check.mjs +43 -24
  140. package/fesm2022/gravionlabs-helix-core-icons-check.mjs.map +1 -1
  141. package/fesm2022/gravionlabs-helix-core-icons-chevrondown.mjs +43 -24
  142. package/fesm2022/gravionlabs-helix-core-icons-chevrondown.mjs.map +1 -1
  143. package/fesm2022/gravionlabs-helix-core-icons-chevronleft.mjs +43 -24
  144. package/fesm2022/gravionlabs-helix-core-icons-chevronleft.mjs.map +1 -1
  145. package/fesm2022/gravionlabs-helix-core-icons-chevronright.mjs +43 -24
  146. package/fesm2022/gravionlabs-helix-core-icons-chevronright.mjs.map +1 -1
  147. package/fesm2022/gravionlabs-helix-core-icons-chevronup.mjs +43 -24
  148. package/fesm2022/gravionlabs-helix-core-icons-chevronup.mjs.map +1 -1
  149. package/fesm2022/gravionlabs-helix-core-icons-exclamationtriangle.mjs +48 -29
  150. package/fesm2022/gravionlabs-helix-core-icons-exclamationtriangle.mjs.map +1 -1
  151. package/fesm2022/gravionlabs-helix-core-icons-eye.mjs +43 -24
  152. package/fesm2022/gravionlabs-helix-core-icons-eye.mjs.map +1 -1
  153. package/fesm2022/gravionlabs-helix-core-icons-eyeslash.mjs +48 -29
  154. package/fesm2022/gravionlabs-helix-core-icons-eyeslash.mjs.map +1 -1
  155. package/fesm2022/gravionlabs-helix-core-icons-filter.mjs +48 -29
  156. package/fesm2022/gravionlabs-helix-core-icons-filter.mjs.map +1 -1
  157. package/fesm2022/gravionlabs-helix-core-icons-filterfill.mjs +43 -24
  158. package/fesm2022/gravionlabs-helix-core-icons-filterfill.mjs.map +1 -1
  159. package/fesm2022/gravionlabs-helix-core-icons-filterslash.mjs +48 -29
  160. package/fesm2022/gravionlabs-helix-core-icons-filterslash.mjs.map +1 -1
  161. package/fesm2022/gravionlabs-helix-core-icons-home.mjs +48 -29
  162. package/fesm2022/gravionlabs-helix-core-icons-home.mjs.map +1 -1
  163. package/fesm2022/gravionlabs-helix-core-icons-infocircle.mjs +48 -29
  164. package/fesm2022/gravionlabs-helix-core-icons-infocircle.mjs.map +1 -1
  165. package/fesm2022/gravionlabs-helix-core-icons-minus.mjs +43 -24
  166. package/fesm2022/gravionlabs-helix-core-icons-minus.mjs.map +1 -1
  167. package/fesm2022/gravionlabs-helix-core-icons-pencil.mjs +48 -29
  168. package/fesm2022/gravionlabs-helix-core-icons-pencil.mjs.map +1 -1
  169. package/fesm2022/gravionlabs-helix-core-icons-plus.mjs +48 -29
  170. package/fesm2022/gravionlabs-helix-core-icons-plus.mjs.map +1 -1
  171. package/fesm2022/gravionlabs-helix-core-icons-refresh.mjs +48 -29
  172. package/fesm2022/gravionlabs-helix-core-icons-refresh.mjs.map +1 -1
  173. package/fesm2022/gravionlabs-helix-core-icons-search.mjs +48 -29
  174. package/fesm2022/gravionlabs-helix-core-icons-search.mjs.map +1 -1
  175. package/fesm2022/gravionlabs-helix-core-icons-searchminus.mjs +48 -29
  176. package/fesm2022/gravionlabs-helix-core-icons-searchminus.mjs.map +1 -1
  177. package/fesm2022/gravionlabs-helix-core-icons-searchplus.mjs +48 -29
  178. package/fesm2022/gravionlabs-helix-core-icons-searchplus.mjs.map +1 -1
  179. package/fesm2022/gravionlabs-helix-core-icons-sortalt.mjs +48 -29
  180. package/fesm2022/gravionlabs-helix-core-icons-sortalt.mjs.map +1 -1
  181. package/fesm2022/gravionlabs-helix-core-icons-sortamountdown.mjs +48 -29
  182. package/fesm2022/gravionlabs-helix-core-icons-sortamountdown.mjs.map +1 -1
  183. package/fesm2022/gravionlabs-helix-core-icons-sortamountupalt.mjs +48 -29
  184. package/fesm2022/gravionlabs-helix-core-icons-sortamountupalt.mjs.map +1 -1
  185. package/fesm2022/gravionlabs-helix-core-icons-spinner.mjs +48 -29
  186. package/fesm2022/gravionlabs-helix-core-icons-spinner.mjs.map +1 -1
  187. package/fesm2022/gravionlabs-helix-core-icons-star.mjs +48 -29
  188. package/fesm2022/gravionlabs-helix-core-icons-star.mjs.map +1 -1
  189. package/fesm2022/gravionlabs-helix-core-icons-starfill.mjs +48 -29
  190. package/fesm2022/gravionlabs-helix-core-icons-starfill.mjs.map +1 -1
  191. package/fesm2022/gravionlabs-helix-core-icons-thlarge.mjs +48 -29
  192. package/fesm2022/gravionlabs-helix-core-icons-thlarge.mjs.map +1 -1
  193. package/fesm2022/gravionlabs-helix-core-icons-times.mjs +43 -24
  194. package/fesm2022/gravionlabs-helix-core-icons-times.mjs.map +1 -1
  195. package/fesm2022/gravionlabs-helix-core-icons-timescircle.mjs +48 -29
  196. package/fesm2022/gravionlabs-helix-core-icons-timescircle.mjs.map +1 -1
  197. package/fesm2022/gravionlabs-helix-core-icons-trash.mjs +48 -29
  198. package/fesm2022/gravionlabs-helix-core-icons-trash.mjs.map +1 -1
  199. package/fesm2022/gravionlabs-helix-core-icons-undo.mjs +48 -29
  200. package/fesm2022/gravionlabs-helix-core-icons-undo.mjs.map +1 -1
  201. package/fesm2022/gravionlabs-helix-core-icons-upload.mjs +48 -29
  202. package/fesm2022/gravionlabs-helix-core-icons-upload.mjs.map +1 -1
  203. package/fesm2022/gravionlabs-helix-core-icons-windowmaximize.mjs +48 -29
  204. package/fesm2022/gravionlabs-helix-core-icons-windowmaximize.mjs.map +1 -1
  205. package/fesm2022/gravionlabs-helix-core-icons-windowminimize.mjs +48 -29
  206. package/fesm2022/gravionlabs-helix-core-icons-windowminimize.mjs.map +1 -1
  207. package/fesm2022/gravionlabs-helix-core-icons.mjs +53 -63
  208. package/fesm2022/gravionlabs-helix-core-iftalabel.mjs +175 -81
  209. package/fesm2022/gravionlabs-helix-core-iftalabel.mjs.map +1 -1
  210. package/fesm2022/gravionlabs-helix-core-image.mjs +1089 -552
  211. package/fesm2022/gravionlabs-helix-core-image.mjs.map +1 -1
  212. package/fesm2022/gravionlabs-helix-core-imagecompare.mjs +348 -165
  213. package/fesm2022/gravionlabs-helix-core-imagecompare.mjs.map +1 -1
  214. package/fesm2022/gravionlabs-helix-core-inplace.mjs +591 -249
  215. package/fesm2022/gravionlabs-helix-core-inplace.mjs.map +1 -1
  216. package/fesm2022/gravionlabs-helix-core-inputgroup.mjs +175 -91
  217. package/fesm2022/gravionlabs-helix-core-inputgroup.mjs.map +1 -1
  218. package/fesm2022/gravionlabs-helix-core-inputgroupaddon.mjs +196 -73
  219. package/fesm2022/gravionlabs-helix-core-inputgroupaddon.mjs.map +1 -1
  220. package/fesm2022/gravionlabs-helix-core-inputicon.mjs +207 -70
  221. package/fesm2022/gravionlabs-helix-core-inputicon.mjs.map +1 -1
  222. package/fesm2022/gravionlabs-helix-core-inputmask.mjs +1581 -1330
  223. package/fesm2022/gravionlabs-helix-core-inputmask.mjs.map +1 -1
  224. package/fesm2022/gravionlabs-helix-core-inputnumber.mjs +1696 -1294
  225. package/fesm2022/gravionlabs-helix-core-inputnumber.mjs.map +1 -1
  226. package/fesm2022/gravionlabs-helix-core-inputotp.mjs +576 -363
  227. package/fesm2022/gravionlabs-helix-core-inputotp.mjs.map +1 -1
  228. package/fesm2022/gravionlabs-helix-core-inputtext.mjs +344 -183
  229. package/fesm2022/gravionlabs-helix-core-inputtext.mjs.map +1 -1
  230. package/fesm2022/gravionlabs-helix-core-keyfilter.mjs +291 -252
  231. package/fesm2022/gravionlabs-helix-core-keyfilter.mjs.map +1 -1
  232. package/fesm2022/gravionlabs-helix-core-knob.mjs +642 -396
  233. package/fesm2022/gravionlabs-helix-core-knob.mjs.map +1 -1
  234. package/fesm2022/gravionlabs-helix-core-listbox.mjs +2354 -1401
  235. package/fesm2022/gravionlabs-helix-core-listbox.mjs.map +1 -1
  236. package/fesm2022/gravionlabs-helix-core-megamenu.mjs +1913 -1052
  237. package/fesm2022/gravionlabs-helix-core-megamenu.mjs.map +1 -1
  238. package/fesm2022/gravionlabs-helix-core-menu.mjs +1392 -767
  239. package/fesm2022/gravionlabs-helix-core-menu.mjs.map +1 -1
  240. package/fesm2022/gravionlabs-helix-core-menubar.mjs +1857 -984
  241. package/fesm2022/gravionlabs-helix-core-menubar.mjs.map +1 -1
  242. package/fesm2022/gravionlabs-helix-core-message.mjs +605 -288
  243. package/fesm2022/gravionlabs-helix-core-message.mjs.map +1 -1
  244. package/fesm2022/gravionlabs-helix-core-metergroup.mjs +719 -323
  245. package/fesm2022/gravionlabs-helix-core-metergroup.mjs.map +1 -1
  246. package/fesm2022/gravionlabs-helix-core-motion.mjs +1178 -694
  247. package/fesm2022/gravionlabs-helix-core-motion.mjs.map +1 -1
  248. package/fesm2022/gravionlabs-helix-core-multiselect.mjs +3437 -1839
  249. package/fesm2022/gravionlabs-helix-core-multiselect.mjs.map +1 -1
  250. package/fesm2022/gravionlabs-helix-core-orderlist.mjs +1426 -753
  251. package/fesm2022/gravionlabs-helix-core-orderlist.mjs.map +1 -1
  252. package/fesm2022/gravionlabs-helix-core-organizationchart.mjs +755 -371
  253. package/fesm2022/gravionlabs-helix-core-organizationchart.mjs.map +1 -1
  254. package/fesm2022/gravionlabs-helix-core-overlay.mjs +984 -600
  255. package/fesm2022/gravionlabs-helix-core-overlay.mjs.map +1 -1
  256. package/fesm2022/gravionlabs-helix-core-overlaybadge.mjs +310 -107
  257. package/fesm2022/gravionlabs-helix-core-overlaybadge.mjs.map +1 -1
  258. package/fesm2022/gravionlabs-helix-core-paginator.mjs +1076 -564
  259. package/fesm2022/gravionlabs-helix-core-paginator.mjs.map +1 -1
  260. package/fesm2022/gravionlabs-helix-core-panel.mjs +759 -364
  261. package/fesm2022/gravionlabs-helix-core-panel.mjs.map +1 -1
  262. package/fesm2022/gravionlabs-helix-core-panelmenu.mjs +1909 -888
  263. package/fesm2022/gravionlabs-helix-core-panelmenu.mjs.map +1 -1
  264. package/fesm2022/gravionlabs-helix-core-passthrough.mjs +10 -18
  265. package/fesm2022/gravionlabs-helix-core-passthrough.mjs.map +1 -1
  266. package/fesm2022/gravionlabs-helix-core-password.mjs +1624 -894
  267. package/fesm2022/gravionlabs-helix-core-password.mjs.map +1 -1
  268. package/fesm2022/gravionlabs-helix-core-picklist.mjs +2415 -1359
  269. package/fesm2022/gravionlabs-helix-core-picklist.mjs.map +1 -1
  270. package/fesm2022/gravionlabs-helix-core-popover.mjs +708 -442
  271. package/fesm2022/gravionlabs-helix-core-popover.mjs.map +1 -1
  272. package/fesm2022/gravionlabs-helix-core-progressbar.mjs +380 -170
  273. package/fesm2022/gravionlabs-helix-core-progressbar.mjs.map +1 -1
  274. package/fesm2022/gravionlabs-helix-core-progressspinner.mjs +276 -121
  275. package/fesm2022/gravionlabs-helix-core-progressspinner.mjs.map +1 -1
  276. package/fesm2022/gravionlabs-helix-core-radiobutton.mjs +525 -291
  277. package/fesm2022/gravionlabs-helix-core-radiobutton.mjs.map +1 -1
  278. package/fesm2022/gravionlabs-helix-core-rating.mjs +529 -286
  279. package/fesm2022/gravionlabs-helix-core-rating.mjs.map +1 -1
  280. package/fesm2022/gravionlabs-helix-core-ripple.mjs +194 -175
  281. package/fesm2022/gravionlabs-helix-core-ripple.mjs.map +1 -1
  282. package/fesm2022/gravionlabs-helix-core-scroller.mjs +1384 -977
  283. package/fesm2022/gravionlabs-helix-core-scroller.mjs.map +1 -1
  284. package/fesm2022/gravionlabs-helix-core-scrollpanel.mjs +605 -458
  285. package/fesm2022/gravionlabs-helix-core-scrollpanel.mjs.map +1 -1
  286. package/fesm2022/gravionlabs-helix-core-scrolltop.mjs +565 -261
  287. package/fesm2022/gravionlabs-helix-core-scrolltop.mjs.map +1 -1
  288. package/fesm2022/gravionlabs-helix-core-select.mjs +2959 -1644
  289. package/fesm2022/gravionlabs-helix-core-select.mjs.map +1 -1
  290. package/fesm2022/gravionlabs-helix-core-selectbutton.mjs +644 -335
  291. package/fesm2022/gravionlabs-helix-core-selectbutton.mjs.map +1 -1
  292. package/fesm2022/gravionlabs-helix-core-skeleton.mjs +315 -160
  293. package/fesm2022/gravionlabs-helix-core-skeleton.mjs.map +1 -1
  294. package/fesm2022/gravionlabs-helix-core-slider.mjs +839 -630
  295. package/fesm2022/gravionlabs-helix-core-slider.mjs.map +1 -1
  296. package/fesm2022/gravionlabs-helix-core-speeddial.mjs +1183 -700
  297. package/fesm2022/gravionlabs-helix-core-speeddial.mjs.map +1 -1
  298. package/fesm2022/gravionlabs-helix-core-splitbutton.mjs +977 -375
  299. package/fesm2022/gravionlabs-helix-core-splitbutton.mjs.map +1 -1
  300. package/fesm2022/gravionlabs-helix-core-splitter.mjs +737 -509
  301. package/fesm2022/gravionlabs-helix-core-splitter.mjs.map +1 -1
  302. package/fesm2022/gravionlabs-helix-core-stepper.mjs +1397 -628
  303. package/fesm2022/gravionlabs-helix-core-stepper.mjs.map +1 -1
  304. package/fesm2022/gravionlabs-helix-core-steps.mjs +457 -272
  305. package/fesm2022/gravionlabs-helix-core-steps.mjs.map +1 -1
  306. package/fesm2022/gravionlabs-helix-core-styleclass.mjs +466 -344
  307. package/fesm2022/gravionlabs-helix-core-styleclass.mjs.map +1 -1
  308. package/fesm2022/gravionlabs-helix-core-table.mjs +9728 -5590
  309. package/fesm2022/gravionlabs-helix-core-table.mjs.map +1 -1
  310. package/fesm2022/gravionlabs-helix-core-tabs.mjs +1350 -735
  311. package/fesm2022/gravionlabs-helix-core-tabs.mjs.map +1 -1
  312. package/fesm2022/gravionlabs-helix-core-tag.mjs +343 -154
  313. package/fesm2022/gravionlabs-helix-core-tag.mjs.map +1 -1
  314. package/fesm2022/gravionlabs-helix-core-terminal.mjs +384 -214
  315. package/fesm2022/gravionlabs-helix-core-terminal.mjs.map +1 -1
  316. package/fesm2022/gravionlabs-helix-core-textarea.mjs +347 -209
  317. package/fesm2022/gravionlabs-helix-core-textarea.mjs.map +1 -1
  318. package/fesm2022/gravionlabs-helix-core-themes-aura.mjs +4846 -5618
  319. package/fesm2022/gravionlabs-helix-core-themes-aura.mjs.map +1 -1
  320. package/fesm2022/gravionlabs-helix-core-themes-lara.mjs +4961 -5809
  321. package/fesm2022/gravionlabs-helix-core-themes-lara.mjs.map +1 -1
  322. package/fesm2022/gravionlabs-helix-core-themes-nora.mjs +4780 -5567
  323. package/fesm2022/gravionlabs-helix-core-themes-nora.mjs.map +1 -1
  324. package/fesm2022/gravionlabs-helix-core-themes-types.mjs +0 -700
  325. package/fesm2022/gravionlabs-helix-core-themes.mjs +4 -9
  326. package/fesm2022/gravionlabs-helix-core-themes.mjs.map +1 -1
  327. package/fesm2022/gravionlabs-helix-core-tieredmenu.mjs +1967 -1048
  328. package/fesm2022/gravionlabs-helix-core-tieredmenu.mjs.map +1 -1
  329. package/fesm2022/gravionlabs-helix-core-timeline.mjs +370 -185
  330. package/fesm2022/gravionlabs-helix-core-timeline.mjs.map +1 -1
  331. package/fesm2022/gravionlabs-helix-core-toast.mjs +1083 -526
  332. package/fesm2022/gravionlabs-helix-core-toast.mjs.map +1 -1
  333. package/fesm2022/gravionlabs-helix-core-togglebutton.mjs +609 -315
  334. package/fesm2022/gravionlabs-helix-core-togglebutton.mjs.map +1 -1
  335. package/fesm2022/gravionlabs-helix-core-toggleswitch.mjs +504 -246
  336. package/fesm2022/gravionlabs-helix-core-toggleswitch.mjs.map +1 -1
  337. package/fesm2022/gravionlabs-helix-core-toolbar.mjs +350 -149
  338. package/fesm2022/gravionlabs-helix-core-toolbar.mjs.map +1 -1
  339. package/fesm2022/gravionlabs-helix-core-tooltip.mjs +1035 -795
  340. package/fesm2022/gravionlabs-helix-core-tooltip.mjs.map +1 -1
  341. package/fesm2022/gravionlabs-helix-core-tree.mjs +2673 -1668
  342. package/fesm2022/gravionlabs-helix-core-tree.mjs.map +1 -1
  343. package/fesm2022/gravionlabs-helix-core-treeselect.mjs +1773 -976
  344. package/fesm2022/gravionlabs-helix-core-treeselect.mjs.map +1 -1
  345. package/fesm2022/gravionlabs-helix-core-treetable.mjs +5963 -3647
  346. package/fesm2022/gravionlabs-helix-core-treetable.mjs.map +1 -1
  347. package/fesm2022/gravionlabs-helix-core-ts-helpers.mjs +0 -4
  348. package/fesm2022/gravionlabs-helix-core-types-accordion.mjs +0 -4
  349. package/fesm2022/gravionlabs-helix-core-types-autocomplete.mjs +0 -4
  350. package/fesm2022/gravionlabs-helix-core-types-avatar.mjs +0 -4
  351. package/fesm2022/gravionlabs-helix-core-types-avatargroup.mjs +0 -4
  352. package/fesm2022/gravionlabs-helix-core-types-badge.mjs +0 -4
  353. package/fesm2022/gravionlabs-helix-core-types-blockui.mjs +0 -4
  354. package/fesm2022/gravionlabs-helix-core-types-breadcrumb.mjs +0 -4
  355. package/fesm2022/gravionlabs-helix-core-types-button.mjs +0 -4
  356. package/fesm2022/gravionlabs-helix-core-types-card.mjs +0 -4
  357. package/fesm2022/gravionlabs-helix-core-types-carousel.mjs +0 -4
  358. package/fesm2022/gravionlabs-helix-core-types-cascadeselect.mjs +0 -4
  359. package/fesm2022/gravionlabs-helix-core-types-chart.mjs +0 -4
  360. package/fesm2022/gravionlabs-helix-core-types-checkbox.mjs +0 -4
  361. package/fesm2022/gravionlabs-helix-core-types-chip.mjs +0 -4
  362. package/fesm2022/gravionlabs-helix-core-types-colorpicker.mjs +0 -4
  363. package/fesm2022/gravionlabs-helix-core-types-confirmdialog.mjs +0 -4
  364. package/fesm2022/gravionlabs-helix-core-types-confirmpopup.mjs +0 -4
  365. package/fesm2022/gravionlabs-helix-core-types-contextmenu.mjs +0 -4
  366. package/fesm2022/gravionlabs-helix-core-types-dataview.mjs +0 -4
  367. package/fesm2022/gravionlabs-helix-core-types-datepicker.mjs +0 -4
  368. package/fesm2022/gravionlabs-helix-core-types-dialog.mjs +0 -4
  369. package/fesm2022/gravionlabs-helix-core-types-divider.mjs +0 -4
  370. package/fesm2022/gravionlabs-helix-core-types-dock.mjs +0 -4
  371. package/fesm2022/gravionlabs-helix-core-types-drawer.mjs +0 -4
  372. package/fesm2022/gravionlabs-helix-core-types-editor.mjs +0 -4
  373. package/fesm2022/gravionlabs-helix-core-types-fieldset.mjs +0 -4
  374. package/fesm2022/gravionlabs-helix-core-types-fileupload.mjs +0 -4
  375. package/fesm2022/gravionlabs-helix-core-types-floatlabel.mjs +0 -4
  376. package/fesm2022/gravionlabs-helix-core-types-fluid.mjs +0 -4
  377. package/fesm2022/gravionlabs-helix-core-types-galleria.mjs +0 -4
  378. package/fesm2022/gravionlabs-helix-core-types-iconfield.mjs +0 -4
  379. package/fesm2022/gravionlabs-helix-core-types-iftalabel.mjs +0 -4
  380. package/fesm2022/gravionlabs-helix-core-types-image.mjs +0 -4
  381. package/fesm2022/gravionlabs-helix-core-types-imagecompare.mjs +0 -4
  382. package/fesm2022/gravionlabs-helix-core-types-inplace.mjs +0 -4
  383. package/fesm2022/gravionlabs-helix-core-types-inputgroup.mjs +0 -4
  384. package/fesm2022/gravionlabs-helix-core-types-inputgroupaddon.mjs +0 -4
  385. package/fesm2022/gravionlabs-helix-core-types-inputicon.mjs +0 -4
  386. package/fesm2022/gravionlabs-helix-core-types-inputmask.mjs +0 -4
  387. package/fesm2022/gravionlabs-helix-core-types-inputnumber.mjs +0 -4
  388. package/fesm2022/gravionlabs-helix-core-types-inputotp.mjs +0 -4
  389. package/fesm2022/gravionlabs-helix-core-types-inputtext.mjs +0 -4
  390. package/fesm2022/gravionlabs-helix-core-types-knob.mjs +0 -4
  391. package/fesm2022/gravionlabs-helix-core-types-listbox.mjs +0 -4
  392. package/fesm2022/gravionlabs-helix-core-types-megamenu.mjs +0 -4
  393. package/fesm2022/gravionlabs-helix-core-types-menu.mjs +0 -4
  394. package/fesm2022/gravionlabs-helix-core-types-menubar.mjs +0 -4
  395. package/fesm2022/gravionlabs-helix-core-types-message.mjs +0 -4
  396. package/fesm2022/gravionlabs-helix-core-types-metergroup.mjs +0 -4
  397. package/fesm2022/gravionlabs-helix-core-types-motion.mjs +0 -4
  398. package/fesm2022/gravionlabs-helix-core-types-multiselect.mjs +0 -4
  399. package/fesm2022/gravionlabs-helix-core-types-orderlist.mjs +0 -4
  400. package/fesm2022/gravionlabs-helix-core-types-organizationchart.mjs +0 -4
  401. package/fesm2022/gravionlabs-helix-core-types-overlay.mjs +0 -4
  402. package/fesm2022/gravionlabs-helix-core-types-overlaybadge.mjs +0 -4
  403. package/fesm2022/gravionlabs-helix-core-types-paginator.mjs +0 -4
  404. package/fesm2022/gravionlabs-helix-core-types-panel.mjs +0 -4
  405. package/fesm2022/gravionlabs-helix-core-types-panelmenu.mjs +0 -4
  406. package/fesm2022/gravionlabs-helix-core-types-password.mjs +0 -4
  407. package/fesm2022/gravionlabs-helix-core-types-picklist.mjs +0 -4
  408. package/fesm2022/gravionlabs-helix-core-types-popover.mjs +0 -4
  409. package/fesm2022/gravionlabs-helix-core-types-progressbar.mjs +0 -4
  410. package/fesm2022/gravionlabs-helix-core-types-progressspinner.mjs +0 -4
  411. package/fesm2022/gravionlabs-helix-core-types-radiobutton.mjs +0 -4
  412. package/fesm2022/gravionlabs-helix-core-types-rating.mjs +0 -4
  413. package/fesm2022/gravionlabs-helix-core-types-scroller.mjs +0 -4
  414. package/fesm2022/gravionlabs-helix-core-types-scrollpanel.mjs +0 -4
  415. package/fesm2022/gravionlabs-helix-core-types-scrolltop.mjs +0 -4
  416. package/fesm2022/gravionlabs-helix-core-types-select.mjs +0 -4
  417. package/fesm2022/gravionlabs-helix-core-types-selectbutton.mjs +0 -4
  418. package/fesm2022/gravionlabs-helix-core-types-skeleton.mjs +0 -4
  419. package/fesm2022/gravionlabs-helix-core-types-slider.mjs +0 -4
  420. package/fesm2022/gravionlabs-helix-core-types-speeddial.mjs +0 -4
  421. package/fesm2022/gravionlabs-helix-core-types-splitbutton.mjs +0 -4
  422. package/fesm2022/gravionlabs-helix-core-types-splitter.mjs +0 -4
  423. package/fesm2022/gravionlabs-helix-core-types-stepper.mjs +0 -4
  424. package/fesm2022/gravionlabs-helix-core-types-table.mjs +0 -4
  425. package/fesm2022/gravionlabs-helix-core-types-tabs.mjs +0 -4
  426. package/fesm2022/gravionlabs-helix-core-types-tag.mjs +0 -4
  427. package/fesm2022/gravionlabs-helix-core-types-terminal.mjs +0 -4
  428. package/fesm2022/gravionlabs-helix-core-types-textarea.mjs +0 -4
  429. package/fesm2022/gravionlabs-helix-core-types-tieredmenu.mjs +0 -4
  430. package/fesm2022/gravionlabs-helix-core-types-timeline.mjs +0 -4
  431. package/fesm2022/gravionlabs-helix-core-types-toast.mjs +0 -4
  432. package/fesm2022/gravionlabs-helix-core-types-togglebutton.mjs +0 -4
  433. package/fesm2022/gravionlabs-helix-core-types-toggleswitch.mjs +0 -4
  434. package/fesm2022/gravionlabs-helix-core-types-toolbar.mjs +0 -4
  435. package/fesm2022/gravionlabs-helix-core-types-tooltip.mjs +0 -4
  436. package/fesm2022/gravionlabs-helix-core-types-tree.mjs +0 -4
  437. package/fesm2022/gravionlabs-helix-core-types-treeselect.mjs +0 -4
  438. package/fesm2022/gravionlabs-helix-core-types-treetable.mjs +0 -4
  439. package/fesm2022/gravionlabs-helix-core-uix-motion.mjs +192 -282
  440. package/fesm2022/gravionlabs-helix-core-uix-motion.mjs.map +1 -1
  441. package/fesm2022/gravionlabs-helix-core-uix-styled.mjs +827 -813
  442. package/fesm2022/gravionlabs-helix-core-uix-styled.mjs.map +1 -1
  443. package/fesm2022/gravionlabs-helix-core-uix-utils.mjs +967 -1558
  444. package/fesm2022/gravionlabs-helix-core-uix-utils.mjs.map +1 -1
  445. package/fesm2022/gravionlabs-helix-core-usestyle.mjs +62 -52
  446. package/fesm2022/gravionlabs-helix-core-usestyle.mjs.map +1 -1
  447. package/fesm2022/gravionlabs-helix-core-utils.mjs +272 -366
  448. package/fesm2022/gravionlabs-helix-core-utils.mjs.map +1 -1
  449. package/fesm2022/gravionlabs-helix-core-validators.mjs +86 -93
  450. package/fesm2022/gravionlabs-helix-core-validators.mjs.map +1 -1
  451. package/fesm2022/gravionlabs-helix-core.mjs +1 -5
  452. package/fesm2022/gravionlabs-helix-core.mjs.map +1 -1
  453. package/package.json +1 -1
  454. package/types/gravionlabs-helix-core-accordion.d.ts +317 -246
  455. package/types/gravionlabs-helix-core-animateonscroll.d.ts +89 -61
  456. package/types/gravionlabs-helix-core-api.d.ts +1743 -1777
  457. package/types/gravionlabs-helix-core-autocomplete.d.ts +1070 -750
  458. package/types/gravionlabs-helix-core-autofocus.d.ts +29 -26
  459. package/types/gravionlabs-helix-core-avatar.d.ts +165 -123
  460. package/types/gravionlabs-helix-core-avatargroup.d.ts +58 -48
  461. package/types/gravionlabs-helix-core-badge.d.ts +243 -162
  462. package/types/gravionlabs-helix-core-base.d.ts +46 -49
  463. package/types/gravionlabs-helix-core-basecomponent.d.ts +187 -170
  464. package/types/gravionlabs-helix-core-baseeditableholder.d.ts +63 -45
  465. package/types/gravionlabs-helix-core-baseinput.d.ts +121 -73
  466. package/types/gravionlabs-helix-core-basemodelholder.d.ts +9 -12
  467. package/types/gravionlabs-helix-core-bind.d.ts +36 -33
  468. package/types/gravionlabs-helix-core-blockui.d.ts +114 -90
  469. package/types/gravionlabs-helix-core-breadcrumb.d.ts +158 -132
  470. package/types/gravionlabs-helix-core-button.d.ts +716 -443
  471. package/types/gravionlabs-helix-core-buttongroup.d.ts +28 -33
  472. package/types/gravionlabs-helix-core-card.d.ts +156 -136
  473. package/types/gravionlabs-helix-core-carousel.d.ts +461 -361
  474. package/types/gravionlabs-helix-core-cascadeselect.d.ts +880 -604
  475. package/types/gravionlabs-helix-core-chart.d.ts +162 -115
  476. package/types/gravionlabs-helix-core-checkbox.d.ts +310 -211
  477. package/types/gravionlabs-helix-core-chip.d.ts +202 -147
  478. package/types/gravionlabs-helix-core-classnames.d.ts +23 -21
  479. package/types/gravionlabs-helix-core-colorpicker.d.ts +359 -290
  480. package/types/gravionlabs-helix-core-config.d.ts +249 -259
  481. package/types/gravionlabs-helix-core-confirmdialog.d.ts +498 -325
  482. package/types/gravionlabs-helix-core-confirmpopup.d.ts +273 -218
  483. package/types/gravionlabs-helix-core-contextmenu.d.ts +509 -351
  484. package/types/gravionlabs-helix-core-dataview.d.ts +507 -349
  485. package/types/gravionlabs-helix-core-datepicker.d.ts +1267 -954
  486. package/types/gravionlabs-helix-core-dialog.d.ts +758 -515
  487. package/types/gravionlabs-helix-core-divider.d.ts +126 -106
  488. package/types/gravionlabs-helix-core-dock.d.ts +219 -181
  489. package/types/gravionlabs-helix-core-dom.d.ts +97 -100
  490. package/types/gravionlabs-helix-core-dragdrop.d.ts +149 -107
  491. package/types/gravionlabs-helix-core-drawer.d.ts +382 -278
  492. package/types/gravionlabs-helix-core-dynamicdialog.d.ts +512 -519
  493. package/types/gravionlabs-helix-core-editor.d.ts +225 -173
  494. package/types/gravionlabs-helix-core-fieldset.d.ts +209 -170
  495. package/types/gravionlabs-helix-core-fileupload.d.ts +764 -533
  496. package/types/gravionlabs-helix-core-firsterror.d.ts +8 -11
  497. package/types/gravionlabs-helix-core-floatlabel.d.ts +57 -52
  498. package/types/gravionlabs-helix-core-fluid.d.ts +38 -39
  499. package/types/gravionlabs-helix-core-focustrap.d.ts +33 -30
  500. package/types/gravionlabs-helix-core-galleria.d.ts +957 -628
  501. package/types/gravionlabs-helix-core-iconfield.d.ts +72 -57
  502. package/types/gravionlabs-helix-core-icons-angledoubledown.d.ts +6 -9
  503. package/types/gravionlabs-helix-core-icons-angledoubleleft.d.ts +6 -9
  504. package/types/gravionlabs-helix-core-icons-angledoubleright.d.ts +6 -9
  505. package/types/gravionlabs-helix-core-icons-angledoubleup.d.ts +6 -9
  506. package/types/gravionlabs-helix-core-icons-angledown.d.ts +6 -9
  507. package/types/gravionlabs-helix-core-icons-angleleft.d.ts +6 -9
  508. package/types/gravionlabs-helix-core-icons-angleright.d.ts +6 -9
  509. package/types/gravionlabs-helix-core-icons-angleup.d.ts +6 -9
  510. package/types/gravionlabs-helix-core-icons-arrowdown.d.ts +8 -11
  511. package/types/gravionlabs-helix-core-icons-arrowdownleft.d.ts +6 -9
  512. package/types/gravionlabs-helix-core-icons-arrowdownright.d.ts +6 -9
  513. package/types/gravionlabs-helix-core-icons-arrowleft.d.ts +8 -11
  514. package/types/gravionlabs-helix-core-icons-arrowright.d.ts +6 -9
  515. package/types/gravionlabs-helix-core-icons-arrowup.d.ts +8 -11
  516. package/types/gravionlabs-helix-core-icons-ban.d.ts +8 -11
  517. package/types/gravionlabs-helix-core-icons-bars.d.ts +6 -9
  518. package/types/gravionlabs-helix-core-icons-baseicon.d.ts +25 -24
  519. package/types/gravionlabs-helix-core-icons-blank.d.ts +6 -9
  520. package/types/gravionlabs-helix-core-icons-calendar.d.ts +6 -9
  521. package/types/gravionlabs-helix-core-icons-caretleft.d.ts +6 -9
  522. package/types/gravionlabs-helix-core-icons-caretright.d.ts +6 -9
  523. package/types/gravionlabs-helix-core-icons-check.d.ts +6 -9
  524. package/types/gravionlabs-helix-core-icons-chevrondown.d.ts +6 -9
  525. package/types/gravionlabs-helix-core-icons-chevronleft.d.ts +6 -9
  526. package/types/gravionlabs-helix-core-icons-chevronright.d.ts +6 -9
  527. package/types/gravionlabs-helix-core-icons-chevronup.d.ts +6 -9
  528. package/types/gravionlabs-helix-core-icons-exclamationtriangle.d.ts +8 -11
  529. package/types/gravionlabs-helix-core-icons-eye.d.ts +6 -9
  530. package/types/gravionlabs-helix-core-icons-eyeslash.d.ts +8 -11
  531. package/types/gravionlabs-helix-core-icons-filter.d.ts +8 -11
  532. package/types/gravionlabs-helix-core-icons-filterfill.d.ts +6 -9
  533. package/types/gravionlabs-helix-core-icons-filterslash.d.ts +8 -11
  534. package/types/gravionlabs-helix-core-icons-home.d.ts +8 -11
  535. package/types/gravionlabs-helix-core-icons-infocircle.d.ts +8 -11
  536. package/types/gravionlabs-helix-core-icons-minus.d.ts +6 -9
  537. package/types/gravionlabs-helix-core-icons-pencil.d.ts +8 -11
  538. package/types/gravionlabs-helix-core-icons-plus.d.ts +8 -11
  539. package/types/gravionlabs-helix-core-icons-refresh.d.ts +8 -11
  540. package/types/gravionlabs-helix-core-icons-search.d.ts +8 -11
  541. package/types/gravionlabs-helix-core-icons-searchminus.d.ts +8 -11
  542. package/types/gravionlabs-helix-core-icons-searchplus.d.ts +8 -11
  543. package/types/gravionlabs-helix-core-icons-sortalt.d.ts +8 -11
  544. package/types/gravionlabs-helix-core-icons-sortamountdown.d.ts +8 -11
  545. package/types/gravionlabs-helix-core-icons-sortamountupalt.d.ts +8 -11
  546. package/types/gravionlabs-helix-core-icons-spinner.d.ts +8 -11
  547. package/types/gravionlabs-helix-core-icons-star.d.ts +8 -11
  548. package/types/gravionlabs-helix-core-icons-starfill.d.ts +8 -11
  549. package/types/gravionlabs-helix-core-icons-thlarge.d.ts +8 -11
  550. package/types/gravionlabs-helix-core-icons-times.d.ts +6 -9
  551. package/types/gravionlabs-helix-core-icons-timescircle.d.ts +8 -11
  552. package/types/gravionlabs-helix-core-icons-trash.d.ts +8 -11
  553. package/types/gravionlabs-helix-core-icons-undo.d.ts +8 -11
  554. package/types/gravionlabs-helix-core-icons-upload.d.ts +8 -11
  555. package/types/gravionlabs-helix-core-icons-windowmaximize.d.ts +8 -11
  556. package/types/gravionlabs-helix-core-icons-windowminimize.d.ts +8 -11
  557. package/types/gravionlabs-helix-core-icons.d.ts +53 -53
  558. package/types/gravionlabs-helix-core-iftalabel.d.ts +42 -43
  559. package/types/gravionlabs-helix-core-image.d.ts +440 -331
  560. package/types/gravionlabs-helix-core-imagecompare.d.ts +99 -84
  561. package/types/gravionlabs-helix-core-inplace.d.ts +188 -149
  562. package/types/gravionlabs-helix-core-inputgroup.d.ts +55 -50
  563. package/types/gravionlabs-helix-core-inputgroupaddon.d.ts +54 -43
  564. package/types/gravionlabs-helix-core-inputicon.d.ts +49 -38
  565. package/types/gravionlabs-helix-core-inputmask.d.ts +499 -353
  566. package/types/gravionlabs-helix-core-inputnumber.d.ts +581 -410
  567. package/types/gravionlabs-helix-core-inputotp.d.ts +206 -158
  568. package/types/gravionlabs-helix-core-inputtext.d.ts +142 -102
  569. package/types/gravionlabs-helix-core-keyfilter.d.ts +62 -53
  570. package/types/gravionlabs-helix-core-knob.d.ts +265 -188
  571. package/types/gravionlabs-helix-core-listbox.d.ts +897 -638
  572. package/types/gravionlabs-helix-core-megamenu.d.ts +512 -365
  573. package/types/gravionlabs-helix-core-menu.d.ts +441 -343
  574. package/types/gravionlabs-helix-core-menubar.d.ts +499 -361
  575. package/types/gravionlabs-helix-core-message.d.ts +267 -195
  576. package/types/gravionlabs-helix-core-metergroup.d.ts +256 -190
  577. package/types/gravionlabs-helix-core-motion.d.ts +602 -385
  578. package/types/gravionlabs-helix-core-multiselect.d.ts +1256 -855
  579. package/types/gravionlabs-helix-core-orderlist.d.ts +504 -351
  580. package/types/gravionlabs-helix-core-organizationchart.d.ts +264 -203
  581. package/types/gravionlabs-helix-core-overlay.d.ts +417 -307
  582. package/types/gravionlabs-helix-core-overlaybadge.d.ts +107 -71
  583. package/types/gravionlabs-helix-core-paginator.d.ts +445 -336
  584. package/types/gravionlabs-helix-core-panel.d.ts +285 -225
  585. package/types/gravionlabs-helix-core-panelmenu.d.ts +499 -340
  586. package/types/gravionlabs-helix-core-passthrough.d.ts +5 -7
  587. package/types/gravionlabs-helix-core-password.d.ts +657 -463
  588. package/types/gravionlabs-helix-core-picklist.d.ts +938 -647
  589. package/types/gravionlabs-helix-core-popover.d.ts +259 -190
  590. package/types/gravionlabs-helix-core-progressbar.d.ts +141 -106
  591. package/types/gravionlabs-helix-core-progressspinner.d.ts +101 -76
  592. package/types/gravionlabs-helix-core-radiobutton.d.ts +228 -174
  593. package/types/gravionlabs-helix-core-rating.d.ts +217 -178
  594. package/types/gravionlabs-helix-core-ripple.d.ts +43 -48
  595. package/types/gravionlabs-helix-core-scroller.d.ts +505 -371
  596. package/types/gravionlabs-helix-core-scrollpanel.d.ts +151 -141
  597. package/types/gravionlabs-helix-core-scrolltop.d.ts +195 -140
  598. package/types/gravionlabs-helix-core-select.d.ts +1095 -749
  599. package/types/gravionlabs-helix-core-selectbutton.d.ts +238 -165
  600. package/types/gravionlabs-helix-core-skeleton.d.ts +123 -88
  601. package/types/gravionlabs-helix-core-slider.d.ts +259 -201
  602. package/types/gravionlabs-helix-core-speeddial.d.ts +511 -390
  603. package/types/gravionlabs-helix-core-splitbutton.d.ts +422 -267
  604. package/types/gravionlabs-helix-core-splitter.d.ts +246 -192
  605. package/types/gravionlabs-helix-core-stepper.d.ts +428 -269
  606. package/types/gravionlabs-helix-core-steps.d.ts +162 -134
  607. package/types/gravionlabs-helix-core-styleclass.d.ts +165 -107
  608. package/types/gravionlabs-helix-core-table.d.ts +2908 -1935
  609. package/types/gravionlabs-helix-core-tabs.d.ts +471 -311
  610. package/types/gravionlabs-helix-core-tag.d.ts +123 -98
  611. package/types/gravionlabs-helix-core-terminal.d.ts +142 -124
  612. package/types/gravionlabs-helix-core-textarea.d.ts +147 -110
  613. package/types/gravionlabs-helix-core-themes-aura.d.ts +957 -942
  614. package/types/gravionlabs-helix-core-themes-lara.d.ts +968 -953
  615. package/types/gravionlabs-helix-core-themes-nora.d.ts +954 -939
  616. package/types/gravionlabs-helix-core-themes-types.d.ts +17940 -18746
  617. package/types/gravionlabs-helix-core-themes.d.ts +8 -11
  618. package/types/gravionlabs-helix-core-tieredmenu.d.ts +583 -398
  619. package/types/gravionlabs-helix-core-timeline.d.ts +145 -125
  620. package/types/gravionlabs-helix-core-toast.d.ts +408 -275
  621. package/types/gravionlabs-helix-core-togglebutton.d.ts +264 -188
  622. package/types/gravionlabs-helix-core-toggleswitch.d.ts +202 -150
  623. package/types/gravionlabs-helix-core-toolbar.d.ts +100 -90
  624. package/types/gravionlabs-helix-core-tooltip.d.ts +362 -256
  625. package/types/gravionlabs-helix-core-tree.d.ts +902 -630
  626. package/types/gravionlabs-helix-core-treeselect.d.ts +770 -559
  627. package/types/gravionlabs-helix-core-treetable.d.ts +1715 -1205
  628. package/types/gravionlabs-helix-core-ts-helpers.d.ts +4 -6
  629. package/types/gravionlabs-helix-core-types-accordion.d.ts +42 -45
  630. package/types/gravionlabs-helix-core-types-autocomplete.d.ts +230 -233
  631. package/types/gravionlabs-helix-core-types-avatar.d.ts +23 -26
  632. package/types/gravionlabs-helix-core-types-avatargroup.d.ts +11 -14
  633. package/types/gravionlabs-helix-core-types-badge.d.ts +11 -14
  634. package/types/gravionlabs-helix-core-types-blockui.d.ts +18 -21
  635. package/types/gravionlabs-helix-core-types-breadcrumb.d.ts +65 -68
  636. package/types/gravionlabs-helix-core-types-button.d.ts +90 -93
  637. package/types/gravionlabs-helix-core-types-card.d.ts +54 -57
  638. package/types/gravionlabs-helix-core-types-carousel.d.ts +107 -110
  639. package/types/gravionlabs-helix-core-types-cascadeselect.d.ts +151 -157
  640. package/types/gravionlabs-helix-core-types-chart.d.ts +15 -18
  641. package/types/gravionlabs-helix-core-types-checkbox.d.ts +48 -51
  642. package/types/gravionlabs-helix-core-types-chip.d.ts +49 -52
  643. package/types/gravionlabs-helix-core-types-colorpicker.d.ts +58 -61
  644. package/types/gravionlabs-helix-core-types-confirmdialog.d.ts +116 -119
  645. package/types/gravionlabs-helix-core-types-confirmpopup.d.ts +74 -77
  646. package/types/gravionlabs-helix-core-types-contextmenu.d.ts +71 -74
  647. package/types/gravionlabs-helix-core-types-dataview.d.ts +178 -181
  648. package/types/gravionlabs-helix-core-types-datepicker.d.ts +436 -439
  649. package/types/gravionlabs-helix-core-types-dialog.d.ts +86 -89
  650. package/types/gravionlabs-helix-core-types-divider.d.ts +11 -14
  651. package/types/gravionlabs-helix-core-types-dock.d.ts +44 -47
  652. package/types/gravionlabs-helix-core-types-drawer.d.ts +61 -64
  653. package/types/gravionlabs-helix-core-types-editor.d.ts +143 -146
  654. package/types/gravionlabs-helix-core-types-fieldset.d.ts +69 -73
  655. package/types/gravionlabs-helix-core-types-fileupload.d.ts +260 -265
  656. package/types/gravionlabs-helix-core-types-floatlabel.d.ts +11 -14
  657. package/types/gravionlabs-helix-core-types-fluid.d.ts +11 -14
  658. package/types/gravionlabs-helix-core-types-galleria.d.ts +204 -207
  659. package/types/gravionlabs-helix-core-types-iconfield.d.ts +11 -14
  660. package/types/gravionlabs-helix-core-types-iftalabel.d.ts +11 -14
  661. package/types/gravionlabs-helix-core-types-image.d.ts +113 -116
  662. package/types/gravionlabs-helix-core-types-imagecompare.d.ts +22 -25
  663. package/types/gravionlabs-helix-core-types-inplace.d.ts +46 -49
  664. package/types/gravionlabs-helix-core-types-inputgroup.d.ts +11 -14
  665. package/types/gravionlabs-helix-core-types-inputgroupaddon.d.ts +11 -14
  666. package/types/gravionlabs-helix-core-types-inputicon.d.ts +11 -14
  667. package/types/gravionlabs-helix-core-types-inputmask.d.ts +30 -33
  668. package/types/gravionlabs-helix-core-types-inputnumber.d.ts +68 -71
  669. package/types/gravionlabs-helix-core-types-inputotp.d.ts +67 -70
  670. package/types/gravionlabs-helix-core-types-inputtext.d.ts +7 -10
  671. package/types/gravionlabs-helix-core-types-knob.d.ts +23 -26
  672. package/types/gravionlabs-helix-core-types-listbox.d.ts +262 -266
  673. package/types/gravionlabs-helix-core-types-megamenu.d.ts +112 -115
  674. package/types/gravionlabs-helix-core-types-menu.d.ts +83 -86
  675. package/types/gravionlabs-helix-core-types-menubar.d.ts +98 -101
  676. package/types/gravionlabs-helix-core-types-message.d.ts +61 -64
  677. package/types/gravionlabs-helix-core-types-metergroup.d.ts +135 -138
  678. package/types/gravionlabs-helix-core-types-motion.d.ts +11 -14
  679. package/types/gravionlabs-helix-core-types-multiselect.d.ts +302 -306
  680. package/types/gravionlabs-helix-core-types-orderlist.d.ts +125 -128
  681. package/types/gravionlabs-helix-core-types-organizationchart.d.ts +90 -96
  682. package/types/gravionlabs-helix-core-types-overlay.d.ts +31 -34
  683. package/types/gravionlabs-helix-core-types-overlaybadge.d.ts +17 -20
  684. package/types/gravionlabs-helix-core-types-paginator.d.ts +131 -134
  685. package/types/gravionlabs-helix-core-types-panel.d.ts +89 -93
  686. package/types/gravionlabs-helix-core-types-panelmenu.d.ts +105 -108
  687. package/types/gravionlabs-helix-core-types-password.d.ts +94 -97
  688. package/types/gravionlabs-helix-core-types-picklist.d.ts +240 -250
  689. package/types/gravionlabs-helix-core-types-popover.d.ts +33 -36
  690. package/types/gravionlabs-helix-core-types-progressbar.d.ts +32 -35
  691. package/types/gravionlabs-helix-core-types-progressspinner.d.ts +19 -22
  692. package/types/gravionlabs-helix-core-types-radiobutton.d.ts +29 -32
  693. package/types/gravionlabs-helix-core-types-rating.d.ts +62 -65
  694. package/types/gravionlabs-helix-core-types-scroller.d.ts +142 -146
  695. package/types/gravionlabs-helix-core-types-scrollpanel.d.ts +30 -33
  696. package/types/gravionlabs-helix-core-types-scrolltop.d.ts +35 -38
  697. package/types/gravionlabs-helix-core-types-select.d.ts +245 -248
  698. package/types/gravionlabs-helix-core-types-selectbutton.d.ts +56 -59
  699. package/types/gravionlabs-helix-core-types-skeleton.d.ts +11 -14
  700. package/types/gravionlabs-helix-core-types-slider.d.ts +50 -53
  701. package/types/gravionlabs-helix-core-types-speeddial.d.ts +69 -72
  702. package/types/gravionlabs-helix-core-types-splitbutton.d.ts +41 -44
  703. package/types/gravionlabs-helix-core-types-splitter.d.ts +36 -40
  704. package/types/gravionlabs-helix-core-types-stepper.d.ts +68 -71
  705. package/types/gravionlabs-helix-core-types-table.d.ts +721 -727
  706. package/types/gravionlabs-helix-core-types-tabs.d.ts +51 -54
  707. package/types/gravionlabs-helix-core-types-tag.d.ts +26 -29
  708. package/types/gravionlabs-helix-core-types-terminal.d.ts +43 -46
  709. package/types/gravionlabs-helix-core-types-textarea.d.ts +11 -14
  710. package/types/gravionlabs-helix-core-types-tieredmenu.d.ts +69 -72
  711. package/types/gravionlabs-helix-core-types-timeline.d.ts +58 -61
  712. package/types/gravionlabs-helix-core-types-toast.d.ts +86 -89
  713. package/types/gravionlabs-helix-core-types-togglebutton.d.ts +51 -54
  714. package/types/gravionlabs-helix-core-types-toggleswitch.d.ts +41 -44
  715. package/types/gravionlabs-helix-core-types-toolbar.d.ts +34 -37
  716. package/types/gravionlabs-helix-core-types-tooltip.d.ts +15 -18
  717. package/types/gravionlabs-helix-core-types-tree.d.ts +230 -239
  718. package/types/gravionlabs-helix-core-types-treeselect.d.ts +195 -199
  719. package/types/gravionlabs-helix-core-types-treetable.d.ts +486 -491
  720. package/types/gravionlabs-helix-core-uix-motion.d.ts +177 -190
  721. package/types/gravionlabs-helix-core-uix-styled.d.ts +254 -277
  722. package/types/gravionlabs-helix-core-uix-utils.d.ts +39 -176
  723. package/types/gravionlabs-helix-core-usestyle.d.ts +12 -15
  724. package/types/gravionlabs-helix-core-utils.d.ts +45 -50
  725. package/types/gravionlabs-helix-core-validators.d.ts +29 -34
  726. package/types/gravionlabs-helix-core.d.ts +2 -2
  727. package/fesm2022/gravionlabs-helix-core-icons.mjs.map +0 -1
  728. package/fesm2022/gravionlabs-helix-core-themes-types.mjs.map +0 -1
  729. package/fesm2022/gravionlabs-helix-core-ts-helpers.mjs.map +0 -1
  730. package/fesm2022/gravionlabs-helix-core-types-accordion.mjs.map +0 -1
  731. package/fesm2022/gravionlabs-helix-core-types-autocomplete.mjs.map +0 -1
  732. package/fesm2022/gravionlabs-helix-core-types-avatar.mjs.map +0 -1
  733. package/fesm2022/gravionlabs-helix-core-types-avatargroup.mjs.map +0 -1
  734. package/fesm2022/gravionlabs-helix-core-types-badge.mjs.map +0 -1
  735. package/fesm2022/gravionlabs-helix-core-types-blockui.mjs.map +0 -1
  736. package/fesm2022/gravionlabs-helix-core-types-breadcrumb.mjs.map +0 -1
  737. package/fesm2022/gravionlabs-helix-core-types-button.mjs.map +0 -1
  738. package/fesm2022/gravionlabs-helix-core-types-card.mjs.map +0 -1
  739. package/fesm2022/gravionlabs-helix-core-types-carousel.mjs.map +0 -1
  740. package/fesm2022/gravionlabs-helix-core-types-cascadeselect.mjs.map +0 -1
  741. package/fesm2022/gravionlabs-helix-core-types-chart.mjs.map +0 -1
  742. package/fesm2022/gravionlabs-helix-core-types-checkbox.mjs.map +0 -1
  743. package/fesm2022/gravionlabs-helix-core-types-chip.mjs.map +0 -1
  744. package/fesm2022/gravionlabs-helix-core-types-colorpicker.mjs.map +0 -1
  745. package/fesm2022/gravionlabs-helix-core-types-confirmdialog.mjs.map +0 -1
  746. package/fesm2022/gravionlabs-helix-core-types-confirmpopup.mjs.map +0 -1
  747. package/fesm2022/gravionlabs-helix-core-types-contextmenu.mjs.map +0 -1
  748. package/fesm2022/gravionlabs-helix-core-types-dataview.mjs.map +0 -1
  749. package/fesm2022/gravionlabs-helix-core-types-datepicker.mjs.map +0 -1
  750. package/fesm2022/gravionlabs-helix-core-types-dialog.mjs.map +0 -1
  751. package/fesm2022/gravionlabs-helix-core-types-divider.mjs.map +0 -1
  752. package/fesm2022/gravionlabs-helix-core-types-dock.mjs.map +0 -1
  753. package/fesm2022/gravionlabs-helix-core-types-drawer.mjs.map +0 -1
  754. package/fesm2022/gravionlabs-helix-core-types-editor.mjs.map +0 -1
  755. package/fesm2022/gravionlabs-helix-core-types-fieldset.mjs.map +0 -1
  756. package/fesm2022/gravionlabs-helix-core-types-fileupload.mjs.map +0 -1
  757. package/fesm2022/gravionlabs-helix-core-types-floatlabel.mjs.map +0 -1
  758. package/fesm2022/gravionlabs-helix-core-types-fluid.mjs.map +0 -1
  759. package/fesm2022/gravionlabs-helix-core-types-galleria.mjs.map +0 -1
  760. package/fesm2022/gravionlabs-helix-core-types-iconfield.mjs.map +0 -1
  761. package/fesm2022/gravionlabs-helix-core-types-iftalabel.mjs.map +0 -1
  762. package/fesm2022/gravionlabs-helix-core-types-image.mjs.map +0 -1
  763. package/fesm2022/gravionlabs-helix-core-types-imagecompare.mjs.map +0 -1
  764. package/fesm2022/gravionlabs-helix-core-types-inplace.mjs.map +0 -1
  765. package/fesm2022/gravionlabs-helix-core-types-inputgroup.mjs.map +0 -1
  766. package/fesm2022/gravionlabs-helix-core-types-inputgroupaddon.mjs.map +0 -1
  767. package/fesm2022/gravionlabs-helix-core-types-inputicon.mjs.map +0 -1
  768. package/fesm2022/gravionlabs-helix-core-types-inputmask.mjs.map +0 -1
  769. package/fesm2022/gravionlabs-helix-core-types-inputnumber.mjs.map +0 -1
  770. package/fesm2022/gravionlabs-helix-core-types-inputotp.mjs.map +0 -1
  771. package/fesm2022/gravionlabs-helix-core-types-inputtext.mjs.map +0 -1
  772. package/fesm2022/gravionlabs-helix-core-types-knob.mjs.map +0 -1
  773. package/fesm2022/gravionlabs-helix-core-types-listbox.mjs.map +0 -1
  774. package/fesm2022/gravionlabs-helix-core-types-megamenu.mjs.map +0 -1
  775. package/fesm2022/gravionlabs-helix-core-types-menu.mjs.map +0 -1
  776. package/fesm2022/gravionlabs-helix-core-types-menubar.mjs.map +0 -1
  777. package/fesm2022/gravionlabs-helix-core-types-message.mjs.map +0 -1
  778. package/fesm2022/gravionlabs-helix-core-types-metergroup.mjs.map +0 -1
  779. package/fesm2022/gravionlabs-helix-core-types-motion.mjs.map +0 -1
  780. package/fesm2022/gravionlabs-helix-core-types-multiselect.mjs.map +0 -1
  781. package/fesm2022/gravionlabs-helix-core-types-orderlist.mjs.map +0 -1
  782. package/fesm2022/gravionlabs-helix-core-types-organizationchart.mjs.map +0 -1
  783. package/fesm2022/gravionlabs-helix-core-types-overlay.mjs.map +0 -1
  784. package/fesm2022/gravionlabs-helix-core-types-overlaybadge.mjs.map +0 -1
  785. package/fesm2022/gravionlabs-helix-core-types-paginator.mjs.map +0 -1
  786. package/fesm2022/gravionlabs-helix-core-types-panel.mjs.map +0 -1
  787. package/fesm2022/gravionlabs-helix-core-types-panelmenu.mjs.map +0 -1
  788. package/fesm2022/gravionlabs-helix-core-types-password.mjs.map +0 -1
  789. package/fesm2022/gravionlabs-helix-core-types-picklist.mjs.map +0 -1
  790. package/fesm2022/gravionlabs-helix-core-types-popover.mjs.map +0 -1
  791. package/fesm2022/gravionlabs-helix-core-types-progressbar.mjs.map +0 -1
  792. package/fesm2022/gravionlabs-helix-core-types-progressspinner.mjs.map +0 -1
  793. package/fesm2022/gravionlabs-helix-core-types-radiobutton.mjs.map +0 -1
  794. package/fesm2022/gravionlabs-helix-core-types-rating.mjs.map +0 -1
  795. package/fesm2022/gravionlabs-helix-core-types-scroller.mjs.map +0 -1
  796. package/fesm2022/gravionlabs-helix-core-types-scrollpanel.mjs.map +0 -1
  797. package/fesm2022/gravionlabs-helix-core-types-scrolltop.mjs.map +0 -1
  798. package/fesm2022/gravionlabs-helix-core-types-select.mjs.map +0 -1
  799. package/fesm2022/gravionlabs-helix-core-types-selectbutton.mjs.map +0 -1
  800. package/fesm2022/gravionlabs-helix-core-types-skeleton.mjs.map +0 -1
  801. package/fesm2022/gravionlabs-helix-core-types-slider.mjs.map +0 -1
  802. package/fesm2022/gravionlabs-helix-core-types-speeddial.mjs.map +0 -1
  803. package/fesm2022/gravionlabs-helix-core-types-splitbutton.mjs.map +0 -1
  804. package/fesm2022/gravionlabs-helix-core-types-splitter.mjs.map +0 -1
  805. package/fesm2022/gravionlabs-helix-core-types-stepper.mjs.map +0 -1
  806. package/fesm2022/gravionlabs-helix-core-types-table.mjs.map +0 -1
  807. package/fesm2022/gravionlabs-helix-core-types-tabs.mjs.map +0 -1
  808. package/fesm2022/gravionlabs-helix-core-types-tag.mjs.map +0 -1
  809. package/fesm2022/gravionlabs-helix-core-types-terminal.mjs.map +0 -1
  810. package/fesm2022/gravionlabs-helix-core-types-textarea.mjs.map +0 -1
  811. package/fesm2022/gravionlabs-helix-core-types-tieredmenu.mjs.map +0 -1
  812. package/fesm2022/gravionlabs-helix-core-types-timeline.mjs.map +0 -1
  813. package/fesm2022/gravionlabs-helix-core-types-toast.mjs.map +0 -1
  814. package/fesm2022/gravionlabs-helix-core-types-togglebutton.mjs.map +0 -1
  815. package/fesm2022/gravionlabs-helix-core-types-toggleswitch.mjs.map +0 -1
  816. package/fesm2022/gravionlabs-helix-core-types-toolbar.mjs.map +0 -1
  817. package/fesm2022/gravionlabs-helix-core-types-tooltip.mjs.map +0 -1
  818. package/fesm2022/gravionlabs-helix-core-types-tree.mjs.map +0 -1
  819. package/fesm2022/gravionlabs-helix-core-types-treeselect.mjs.map +0 -1
  820. package/fesm2022/gravionlabs-helix-core-types-treetable.mjs.map +0 -1
@@ -1,21 +1,21 @@
1
- import * as i2 from '@angular/common';
2
- import { CommonModule } from '@angular/common';
3
- import * as i0 from '@angular/core';
4
- import { Injectable, InjectionToken, forwardRef, inject, input, booleanAttribute, numberAttribute, output, contentChild, contentChildren, viewChild, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
- import { NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
6
- import { getSelection } from '@gravionlabs/helix-core/uix/utils';
7
- import { HelixTemplate, SharedModule } from '@gravionlabs/helix-core/api';
8
- import { AutoFocus } from '@gravionlabs/helix-core/autofocus';
9
- import { PARENT_INSTANCE } from '@gravionlabs/helix-core/basecomponent';
10
- import { BaseInput } from '@gravionlabs/helix-core/baseinput';
11
- import * as i1 from '@gravionlabs/helix-core/bind';
12
- import { Bind, BindModule } from '@gravionlabs/helix-core/bind';
13
- import { TimesIcon, AngleUpIcon, AngleDownIcon } from '@gravionlabs/helix-core/icons';
14
- import { InputText } from '@gravionlabs/helix-core/inputtext';
15
- import { BaseStyle } from '@gravionlabs/helix-core/base';
16
- export * from '@gravionlabs/helix-core/types/inputnumber';
17
-
18
- const style$1 = /*css*/ `
1
+ import * as i2 from "@angular/common";
2
+ import { CommonModule } from "@angular/common";
3
+ import * as i0 from "@angular/core";
4
+ import { ChangeDetectionStrategy, Component, Injectable, InjectionToken, NgModule, ViewEncapsulation, booleanAttribute, contentChild, contentChildren, forwardRef, inject, input, numberAttribute, output, viewChild } from "@angular/core";
5
+ import { NG_VALUE_ACCESSOR, NgControl } from "@angular/forms";
6
+ import { getSelection } from "@gravionlabs/helix-core/uix/utils";
7
+ import { HelixTemplate, SharedModule } from "@gravionlabs/helix-core/api";
8
+ import { AutoFocus } from "@gravionlabs/helix-core/autofocus";
9
+ import { PARENT_INSTANCE } from "@gravionlabs/helix-core/basecomponent";
10
+ import { BaseInput } from "@gravionlabs/helix-core/baseinput";
11
+ import * as i1 from "@gravionlabs/helix-core/bind";
12
+ import { Bind, BindModule } from "@gravionlabs/helix-core/bind";
13
+ import { AngleDownIcon, AngleUpIcon, TimesIcon } from "@gravionlabs/helix-core/icons";
14
+ import { InputText } from "@gravionlabs/helix-core/inputtext";
15
+ import { BaseStyle } from "@gravionlabs/helix-core/base";
16
+ export * from "@gravionlabs/helix-core/types/inputnumber";
17
+ const style = `
18
+
19
19
  .h-inputnumber {
20
20
  display: inline-flex;
21
21
  position: relative;
@@ -207,10 +207,7 @@ const style$1 = /*css*/ `
207
207
  .h-inputnumber-horizontal .h-inputnumber-clear-icon {
208
208
  inset-inline-end: calc(dt('inputnumber.button.width') + dt('form.field.padding.x'));
209
209
  }
210
- `;
211
210
 
212
- const style = /*css*/ `
213
- ${style$1}
214
211
 
215
212
  /* For Helix */
216
213
  h-inputNumber.ng-invalid.ng-dirty > .h-inputtext,
@@ -232,1282 +229,1687 @@ const style = /*css*/ `
232
229
  }
233
230
  `;
234
231
  const classes = {
235
- root: ({ instance }) => [
236
- 'h-inputnumber h-component h-inputwrapper',
237
- {
238
- 'h-inputwrapper-filled': instance.$filled() || instance.allowEmpty() === false,
239
- 'h-inputwrapper-focus': instance.focused,
240
- 'h-inputnumber-stacked': instance.showButtons() && instance.buttonLayout() === 'stacked',
241
- 'h-inputnumber-horizontal': instance.showButtons() && instance.buttonLayout() === 'horizontal',
242
- 'h-inputnumber-vertical': instance.showButtons() && instance.buttonLayout() === 'vertical',
243
- 'h-inputnumber-fluid': instance.hasFluid,
244
- 'h-invalid': instance.invalid()
245
- }
246
- ],
247
- pcInputText: 'h-inputnumber-input',
248
- buttonGroup: 'h-inputnumber-button-group',
249
- incrementButton: ({ instance }) => [
250
- 'h-inputnumber-button h-inputnumber-increment-button',
251
- {
252
- 'h-disabled': instance.showButtons() && instance.max() != null && instance.maxlength()
253
- }
254
- ],
255
- decrementButton: ({ instance }) => [
256
- 'h-inputnumber-button h-inputnumber-decrement-button',
257
- {
258
- 'h-disabled': instance.showButtons() && instance.min() != null && instance.minlength()
259
- }
260
- ],
261
- clearIcon: 'h-inputnumber-clear-icon'
232
+ root: ({ instance }) => ["h-inputnumber h-component h-inputwrapper", {
233
+ "h-inputwrapper-filled": instance.$filled() || instance.allowEmpty() === false,
234
+ "h-inputwrapper-focus": instance.focused,
235
+ "h-inputnumber-stacked": instance.showButtons() && instance.buttonLayout() === "stacked",
236
+ "h-inputnumber-horizontal": instance.showButtons() && instance.buttonLayout() === "horizontal",
237
+ "h-inputnumber-vertical": instance.showButtons() && instance.buttonLayout() === "vertical",
238
+ "h-inputnumber-fluid": instance.hasFluid,
239
+ "h-invalid": instance.invalid()
240
+ }],
241
+ pcInputText: "h-inputnumber-input",
242
+ buttonGroup: "h-inputnumber-button-group",
243
+ incrementButton: ({ instance }) => ["h-inputnumber-button h-inputnumber-increment-button", { "h-disabled": instance.showButtons() && instance.max() != null && instance.maxlength() }],
244
+ decrementButton: ({ instance }) => ["h-inputnumber-button h-inputnumber-decrement-button", { "h-disabled": instance.showButtons() && instance.min() != null && instance.minlength() }],
245
+ clearIcon: "h-inputnumber-clear-icon"
246
+ };
247
+ var InputNumberStyle = class InputNumberStyle extends BaseStyle {
248
+ name = "inputnumber";
249
+ style = style;
250
+ classes = classes;
251
+ static ɵfac = i0.ɵɵngDeclareFactory({
252
+ minVersion: "12.0.0",
253
+ version: "22.2.1",
254
+ ngImport: i0,
255
+ type: InputNumberStyle,
256
+ deps: null,
257
+ target: i0.ɵɵFactoryTarget.Injectable
258
+ });
259
+ static ɵprov = i0.ɵɵngDeclareInjectable({
260
+ minVersion: "12.0.0",
261
+ version: "22.2.1",
262
+ ngImport: i0,
263
+ type: InputNumberStyle
264
+ });
262
265
  };
263
- class InputNumberStyle extends BaseStyle {
264
- name = 'inputnumber';
265
- style = style;
266
- classes = classes;
267
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumberStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
268
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumberStyle });
269
- }
270
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumberStyle, decorators: [{
271
- type: Injectable
272
- }] });
273
- /**
274
- *
275
- * InputNumber is an input component to provide numerical input.
276
- *
277
- * [Live Demo](https://www.primeng.org/inputnumber/)
278
- *
279
- * @module inputnumberstyle
280
- *
281
- */
266
+ i0.ɵɵngDeclareClassMetadata({
267
+ minVersion: "12.0.0",
268
+ version: "22.2.1",
269
+ ngImport: i0,
270
+ type: InputNumberStyle,
271
+ decorators: [{ type: Injectable }]
272
+ });
282
273
  var InputNumberClasses;
283
- (function (InputNumberClasses) {
284
- /**
285
- * Class name of the root element
286
- */
287
- InputNumberClasses["root"] = "h-inputnumber";
288
- /**
289
- * Class name of the input element
290
- */
291
- InputNumberClasses["pcInputText"] = "h-inputnumber-input";
292
- /**
293
- * Class name of the button group element
294
- */
295
- InputNumberClasses["buttonGroup"] = "h-inputnumber-button-group";
296
- /**
297
- * Class name of the increment button element
298
- */
299
- InputNumberClasses["incrementButton"] = "h-inputnumber-increment-button";
300
- /**
301
- * Class name of the decrement button element
302
- */
303
- InputNumberClasses["decrementButton"] = "h-inputnumber-decrement-button";
304
- /**
305
- * Class name of the clear icon
306
- */
307
- InputNumberClasses["clearIcon"] = "h-autocomplete-clear-icon";
274
+ (function(InputNumberClasses) {
275
+ InputNumberClasses["root"] = "h-inputnumber";
276
+ InputNumberClasses["pcInputText"] = "h-inputnumber-input";
277
+ InputNumberClasses["buttonGroup"] = "h-inputnumber-button-group";
278
+ InputNumberClasses["incrementButton"] = "h-inputnumber-increment-button";
279
+ InputNumberClasses["decrementButton"] = "h-inputnumber-decrement-button";
280
+ InputNumberClasses["clearIcon"] = "h-autocomplete-clear-icon";
308
281
  })(InputNumberClasses || (InputNumberClasses = {}));
309
-
310
- const INPUTNUMBER_INSTANCE = new InjectionToken('INPUTNUMBER_INSTANCE');
282
+ const INPUTNUMBER_INSTANCE = new InjectionToken("INPUTNUMBER_INSTANCE");
311
283
  const INPUTNUMBER_VALUE_ACCESSOR = {
312
- provide: NG_VALUE_ACCESSOR,
313
- useExisting: forwardRef(() => InputNumber),
314
- multi: true
284
+ provide: NG_VALUE_ACCESSOR,
285
+ useExisting: forwardRef(() => InputNumber),
286
+ multi: true
315
287
  };
316
- /**
317
- * InputNumber is an input component to provide numerical input.
318
- * @group Components
319
- */
320
- class InputNumber extends BaseInput {
321
- injector;
322
- componentName = 'InputNumber';
323
- $pcInputNumber = inject(INPUTNUMBER_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
324
- _componentStyle = inject(InputNumberStyle);
325
- bindDirectiveInstance = inject(Bind, { self: true });
326
- onAfterViewChecked() {
327
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
328
- }
329
- /**
330
- * Displays spinner buttons.
331
- * @group Props
332
- */
333
- showButtons = input(false, { ...(ngDevMode ? { debugName: "showButtons" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
334
- /**
335
- * Whether to format the value.
336
- * @group Props
337
- */
338
- format = input(true, { ...(ngDevMode ? { debugName: "format" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
339
- /**
340
- * Layout of the buttons, valid values are "stacked" (default), "horizontal" and "vertical".
341
- * @group Props
342
- */
343
- buttonLayout = input('stacked', /* @ts-ignore */
344
- ...(ngDevMode ? [{ debugName: "buttonLayout" }] : /* istanbul ignore next */ []));
345
- /**
346
- * Identifier of the focus input to match a label defined for the component.
347
- * @group Props
348
- */
349
- inputId = input(/* @ts-ignore */
350
- ...(ngDevMode ? [undefined, { debugName: "inputId" }] : /* istanbul ignore next */ []));
351
- /**
352
- * Style class of the component.
353
- * @deprecated since v20.0.0, use `class` instead.
354
- * @group Props
355
- */
356
- styleClass = input(/* @ts-ignore */
357
- ...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
358
- /**
359
- * Advisory information to display on input.
360
- * @group Props
361
- */
362
- placeholder = input(/* @ts-ignore */
363
- ...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
364
- /**
365
- * Specifies tab order of the element.
366
- * @group Props
367
- */
368
- tabindex = input(undefined, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
369
- /**
370
- * Title text of the input text.
371
- * @group Props
372
- */
373
- title = input(/* @ts-ignore */
374
- ...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
375
- /**
376
- * Specifies one or more IDs in the DOM that labels the input field.
377
- * @group Props
378
- */
379
- ariaLabelledBy = input(/* @ts-ignore */
380
- ...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
381
- /**
382
- * Specifies one or more IDs in the DOM that describes the input field.
383
- * @group Props
384
- */
385
- ariaDescribedBy = input(/* @ts-ignore */
386
- ...(ngDevMode ? [undefined, { debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []));
387
- /**
388
- * Used to define a string that labels the input element.
389
- * @group Props
390
- */
391
- ariaLabel = input(/* @ts-ignore */
392
- ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
393
- /**
394
- * Used to indicate that user input is required on an element before a form can be submitted.
395
- * @group Props
396
- */
397
- ariaRequired = input(undefined, { ...(ngDevMode ? { debugName: "ariaRequired" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
398
- /**
399
- * Used to define a string that autocomplete attribute the current element.
400
- * @group Props
401
- */
402
- autocomplete = input(/* @ts-ignore */
403
- ...(ngDevMode ? [undefined, { debugName: "autocomplete" }] : /* istanbul ignore next */ []));
404
- /**
405
- * Style class of the increment button.
406
- * @group Props
407
- */
408
- incrementButtonClass = input(/* @ts-ignore */
409
- ...(ngDevMode ? [undefined, { debugName: "incrementButtonClass" }] : /* istanbul ignore next */ []));
410
- /**
411
- * Style class of the decrement button.
412
- * @group Props
413
- */
414
- decrementButtonClass = input(/* @ts-ignore */
415
- ...(ngDevMode ? [undefined, { debugName: "decrementButtonClass" }] : /* istanbul ignore next */ []));
416
- /**
417
- * Style class of the increment button.
418
- * @group Props
419
- */
420
- incrementButtonIcon = input(/* @ts-ignore */
421
- ...(ngDevMode ? [undefined, { debugName: "incrementButtonIcon" }] : /* istanbul ignore next */ []));
422
- /**
423
- * Style class of the decrement button.
424
- * @group Props
425
- */
426
- decrementButtonIcon = input(/* @ts-ignore */
427
- ...(ngDevMode ? [undefined, { debugName: "decrementButtonIcon" }] : /* istanbul ignore next */ []));
428
- /**
429
- * When present, it specifies that an input field is read-only.
430
- * @group Props
431
- */
432
- readonly = input(undefined, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
433
- /**
434
- * Determines whether the input field is empty.
435
- * @group Props
436
- */
437
- allowEmpty = input(true, { ...(ngDevMode ? { debugName: "allowEmpty" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
438
- /**
439
- * Locale to be used in formatting.
440
- * @group Props
441
- */
442
- locale = input(/* @ts-ignore */
443
- ...(ngDevMode ? [undefined, { debugName: "locale" }] : /* istanbul ignore next */ []));
444
- /**
445
- * The locale matching algorithm to use. Possible values are "lookup" and "best fit"; the default is "best fit". See Locale Negotiation for details.
446
- * @group Props
447
- */
448
- localeMatcher = input(/* @ts-ignore */
449
- ...(ngDevMode ? [undefined, { debugName: "localeMatcher" }] : /* istanbul ignore next */ []));
450
- /**
451
- * Defines the behavior of the component, valid values are "decimal" and "currency".
452
- * @group Props
453
- */
454
- mode = input('decimal', /* @ts-ignore */
455
- ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
456
- /**
457
- * The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB. There is no default value; if the style is "currency", the currency property must be provided.
458
- * @group Props
459
- */
460
- currency = input(/* @ts-ignore */
461
- ...(ngDevMode ? [undefined, { debugName: "currency" }] : /* istanbul ignore next */ []));
462
- /**
463
- * How to display the currency in currency formatting. Possible values are "symbol" to use a localized currency symbol such as €, ü"code" to use the ISO currency code, "name" to use a localized currency name such as "dollar"; the default is "symbol".
464
- * @group Props
465
- */
466
- currencyDisplay = input(/* @ts-ignore */
467
- ...(ngDevMode ? [undefined, { debugName: "currencyDisplay" }] : /* istanbul ignore next */ []));
468
- /**
469
- * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.
470
- * @group Props
471
- */
472
- useGrouping = input(true, { ...(ngDevMode ? { debugName: "useGrouping" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
473
- /**
474
- * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the ISO 4217 currency code list (2 if the list doesn't provide that information).
475
- * @group Props
476
- */
477
- minFractionDigits = input(undefined, { ...(ngDevMode ? { debugName: "minFractionDigits" } : /* istanbul ignore next */ {}), transform: (value) => numberAttribute(value, undefined) });
478
- /**
479
- * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the ISO 4217 currency code list (2 if the list doesn't provide that information).
480
- * @group Props
481
- */
482
- maxFractionDigits = input(undefined, { ...(ngDevMode ? { debugName: "maxFractionDigits" } : /* istanbul ignore next */ {}), transform: (value) => numberAttribute(value, undefined) });
483
- /**
484
- * Text to display before the value.
485
- * @group Props
486
- */
487
- prefix = input(/* @ts-ignore */
488
- ...(ngDevMode ? [undefined, { debugName: "prefix" }] : /* istanbul ignore next */ []));
489
- /**
490
- * Text to display after the value.
491
- * @group Props
492
- */
493
- suffix = input(/* @ts-ignore */
494
- ...(ngDevMode ? [undefined, { debugName: "suffix" }] : /* istanbul ignore next */ []));
495
- /**
496
- * Inline style of the input field.
497
- * @group Props
498
- */
499
- inputStyle = input(/* @ts-ignore */
500
- ...(ngDevMode ? [undefined, { debugName: "inputStyle" }] : /* istanbul ignore next */ []));
501
- /**
502
- * Style class of the input field.
503
- * @group Props
504
- */
505
- inputStyleClass = input(/* @ts-ignore */
506
- ...(ngDevMode ? [undefined, { debugName: "inputStyleClass" }] : /* istanbul ignore next */ []));
507
- /**
508
- * When enabled, a clear icon is displayed to clear the value.
509
- * @group Props
510
- */
511
- showClear = input(false, { ...(ngDevMode ? { debugName: "showClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
512
- /**
513
- * When present, it specifies that the component should automatically get focus on load.
514
- * @group Props
515
- */
516
- autofocus = input(undefined, { ...(ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
517
- /**
518
- * Callback to invoke on input.
519
- * @param {InputNumberInputEvent} event - Custom input event.
520
- * @group Emits
521
- */
522
- onInput = output();
523
- /**
524
- * Callback to invoke when the component receives focus.
525
- * @param {Event} event - Browser event.
526
- * @group Emits
527
- */
528
- onFocus = output();
529
- /**
530
- * Callback to invoke when the component loses focus.
531
- * @param {Event} event - Browser event.
532
- * @group Emits
533
- */
534
- onBlur = output();
535
- /**
536
- * Callback to invoke on input key press.
537
- * @param {KeyboardEvent} event - Keyboard event.
538
- * @group Emits
539
- */
540
- onKeyDown = output();
541
- /**
542
- * Callback to invoke when clear token is clicked.
543
- * @group Emits
544
- */
545
- onClear = output();
546
- /**
547
- * Custom clear icon template.
548
- * @group Templates
549
- */
550
- clearIconTemplate = contentChild('clearicon', { ...(ngDevMode ? { debugName: "clearIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
551
- /**
552
- * Custom increment button icon template.
553
- * @group Templates
554
- */
555
- incrementButtonIconTemplate = contentChild('incrementbuttonicon', { ...(ngDevMode ? { debugName: "incrementButtonIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
556
- /**
557
- * Custom decrement button icon template.
558
- * @group Templates
559
- */
560
- decrementButtonIconTemplate = contentChild('decrementbuttonicon', { ...(ngDevMode ? { debugName: "decrementButtonIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
561
- templates = contentChildren(HelixTemplate, /* @ts-ignore */
562
- ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
563
- input = viewChild.required('input', /* @ts-ignore */
564
- ...(ngDevMode ? [{ debugName: "input" }] : /* istanbul ignore next */ []));
565
- _clearIconTemplate;
566
- _incrementButtonIconTemplate;
567
- _decrementButtonIconTemplate;
568
- value;
569
- focused;
570
- initialized;
571
- groupChar = '';
572
- prefixChar = '';
573
- suffixChar = '';
574
- isSpecialChar;
575
- timer;
576
- lastValue;
577
- _numeral;
578
- numberFormat;
579
- _decimal;
580
- _decimalChar = '';
581
- _group;
582
- _minusSign;
583
- _currency;
584
- _prefix;
585
- _suffix;
586
- _index;
587
- ngControl = null;
588
- constructor(injector) {
589
- super();
590
- this.injector = injector;
591
- }
592
- onChanges(simpleChange) {
593
- const props = ['locale', 'localeMatcher', 'mode', 'currency', 'currencyDisplay', 'useGrouping', 'minFractionDigits', 'maxFractionDigits', 'prefix', 'suffix'];
594
- if (props.some((p) => !!simpleChange[p])) {
595
- this.updateConstructParser();
596
- }
597
- }
598
- onInit() {
599
- this.ngControl = this.injector.get(NgControl, null, { optional: true });
600
- this.constructParser();
601
- this.initialized = true;
602
- }
603
- onAfterContentInit() {
604
- this.templates().forEach((item) => {
605
- switch (item.getType()) {
606
- case 'clearicon':
607
- this._clearIconTemplate = item.template;
608
- break;
609
- case 'incrementbuttonicon':
610
- this._incrementButtonIconTemplate = item.template;
611
- break;
612
- case 'decrementbuttonicon':
613
- this._decrementButtonIconTemplate = item.template;
614
- break;
615
- }
616
- });
617
- }
618
- getOptions() {
619
- // Validate fraction digits according to Intl.NumberFormat specifications
620
- // Handle potential NaN, Infinity, or invalid values
621
- const validateFractionDigits = (value, min, max) => {
622
- if (value == null || isNaN(value) || !isFinite(value)) {
623
- return undefined;
624
- }
625
- return Math.max(min, Math.min(max, Math.floor(value)));
626
- };
627
- const minFractionDigits = validateFractionDigits(this.minFractionDigits(), 0, 20);
628
- const maxFractionDigits = validateFractionDigits(this.maxFractionDigits(), 0, 100);
629
- // Ensure minFractionDigits <= maxFractionDigits
630
- const validatedMinFractionDigits = minFractionDigits != null && maxFractionDigits != null && minFractionDigits > maxFractionDigits ? maxFractionDigits : minFractionDigits;
631
- return {
632
- localeMatcher: this.localeMatcher(),
633
- style: this.mode(),
634
- currency: this.currency(),
635
- currencyDisplay: this.currencyDisplay(),
636
- useGrouping: this.useGrouping(),
637
- minimumFractionDigits: validatedMinFractionDigits,
638
- maximumFractionDigits: maxFractionDigits
639
- };
640
- }
641
- constructParser() {
642
- const options = this.getOptions();
643
- // Remove any properties with undefined or invalid values to let Intl.NumberFormat use defaults
644
- const cleanOptions = Object.fromEntries(Object.entries(options).filter(([_key, value]) => value !== undefined));
645
- this.numberFormat = new Intl.NumberFormat(this.locale(), cleanOptions);
646
- const numerals = [...new Intl.NumberFormat(this.locale(), { useGrouping: false }).format(9876543210)].reverse();
647
- const index = new Map(numerals.map((d, i) => [d, i]));
648
- this._numeral = new RegExp(`[${numerals.join('')}]`, 'g');
649
- this._group = this.getGroupingExpression();
650
- this._minusSign = this.getMinusSignExpression();
651
- this._currency = this.getCurrencyExpression();
652
- this._decimal = this.getDecimalExpression();
653
- this._decimalChar = this.getDecimalChar();
654
- this._suffix = this.getSuffixExpression();
655
- this._prefix = this.getPrefixExpression();
656
- this._index = (d) => index.get(d);
657
- }
658
- updateConstructParser() {
659
- if (this.initialized) {
660
- this.constructParser();
661
- }
662
- }
663
- escapeRegExp(text) {
664
- return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
665
- }
666
- getDecimalExpression() {
667
- const decimalChar = this.getDecimalChar();
668
- return new RegExp(`[${decimalChar}]`, 'g');
669
- }
670
- getDecimalChar() {
671
- const formatter = new Intl.NumberFormat(this.locale(), { ...this.getOptions(), useGrouping: false });
672
- return formatter
673
- .format(1.1)
674
- .replace(this._currency, '')
675
- .trim()
676
- .replace(this._numeral, '');
677
- }
678
- getGroupingExpression() {
679
- const formatter = new Intl.NumberFormat(this.locale(), { useGrouping: true });
680
- this.groupChar = formatter.format(1000000).trim().replace(this._numeral, '').charAt(0);
681
- return new RegExp(`[${this.groupChar}]`, 'g');
682
- }
683
- getMinusSignExpression() {
684
- const formatter = new Intl.NumberFormat(this.locale(), { useGrouping: false });
685
- return new RegExp(`[${formatter.format(-1).trim().replace(this._numeral, '')}]`, 'g');
686
- }
687
- getCurrencyExpression() {
688
- const currency = this.currency();
689
- if (currency) {
690
- const formatter = new Intl.NumberFormat(this.locale(), {
691
- style: 'currency',
692
- currency: currency,
693
- currencyDisplay: this.currencyDisplay(),
694
- minimumFractionDigits: 0,
695
- maximumFractionDigits: 0
696
- });
697
- return new RegExp(`[${formatter.format(1).replace(/\s/g, '').replace(this._numeral, '').replace(this._group, '')}]`, 'g');
698
- }
699
- return new RegExp(`[]`, 'g');
700
- }
701
- getPrefixExpression() {
702
- const prefix = this.prefix();
703
- if (prefix) {
704
- this.prefixChar = prefix;
705
- }
706
- else {
707
- const formatter = new Intl.NumberFormat(this.locale(), {
708
- style: this.mode(),
709
- currency: this.currency(),
710
- currencyDisplay: this.currencyDisplay()
711
- });
712
- this.prefixChar = formatter.format(1).split('1')[0];
713
- }
714
- return new RegExp(`${this.escapeRegExp(this.prefixChar || '')}`, 'g');
715
- }
716
- getSuffixExpression() {
717
- const suffix = this.suffix();
718
- if (suffix) {
719
- this.suffixChar = suffix;
720
- }
721
- else {
722
- const formatter = new Intl.NumberFormat(this.locale(), {
723
- style: this.mode(),
724
- currency: this.currency(),
725
- currencyDisplay: this.currencyDisplay(),
726
- minimumFractionDigits: 0,
727
- maximumFractionDigits: 0
728
- });
729
- this.suffixChar = formatter.format(1).split('1')[1];
730
- }
731
- return new RegExp(`${this.escapeRegExp(this.suffixChar || '')}`, 'g');
732
- }
733
- formatValue(value) {
734
- if (value != null) {
735
- if (value === '-') {
736
- // Minus sign
737
- return value;
738
- }
739
- if (this.format()) {
740
- let formatter = new Intl.NumberFormat(this.locale(), this.getOptions());
741
- let formattedValue = formatter.format(value);
742
- const prefix = this.prefix();
743
- if (prefix && value != prefix) {
744
- formattedValue = prefix + formattedValue;
745
- }
746
- const suffix = this.suffix();
747
- if (suffix && value != suffix) {
748
- formattedValue = formattedValue + suffix;
749
- }
750
- return formattedValue;
751
- }
752
- return value.toString();
753
- }
754
- return '';
755
- }
756
- parseValue(text) {
757
- const suffixRegex = this._suffix ? new RegExp(this._suffix, '') : /(?:)/;
758
- const prefixRegex = this._prefix ? new RegExp(this._prefix, '') : /(?:)/;
759
- const currencyRegex = this._currency ? new RegExp(this._currency, '') : /(?:)/;
760
- let filteredText = text
761
- .replace(suffixRegex, '')
762
- .replace(prefixRegex, '')
763
- .trim()
764
- .replace(/\s/g, '')
765
- .replace(currencyRegex, '')
766
- .replace(this._group, '')
767
- .replace(this._minusSign, '-')
768
- .replace(this._decimal, '.')
769
- .replace(this._numeral, this._index);
770
- if (filteredText) {
771
- if (filteredText === '-')
772
- // Minus sign
773
- return filteredText;
774
- let parsedValue = +filteredText;
775
- return isNaN(parsedValue) ? null : parsedValue;
776
- }
777
- return null;
778
- }
779
- repeat(event, interval, dir) {
780
- if (this.readonly()) {
781
- return;
782
- }
783
- let i = interval || 500;
784
- this.clearTimer();
785
- this.timer = setTimeout(() => {
786
- this.repeat(event, 40, dir);
787
- }, i);
788
- this.spin(event, dir);
789
- }
790
- spin(event, dir) {
791
- let step = (this.step() ?? 1) * dir;
792
- let currentValue = this.parseValue(this.input()?.nativeElement.value) || 0;
793
- let newValue = this.validateValue(currentValue + step);
794
- const max = this.maxlength();
795
- if (max && max < this.formatValue(newValue).length) {
796
- return;
797
- }
798
- this.updateInput(newValue, null, 'spin', null);
799
- this.updateModel(event, newValue);
800
- this.handleOnInput(event, currentValue, newValue);
801
- }
802
- clear() {
803
- this.value = null;
804
- this.onModelChange(this.value);
805
- this.onClear.emit();
806
- }
807
- onUpButtonMouseDown(event) {
808
- if (event.button === 2) {
809
- this.clearTimer();
810
- return;
811
- }
812
- if (!this.$disabled()) {
813
- this.input()?.nativeElement.focus();
814
- this.repeat(event, null, 1);
815
- event.preventDefault();
816
- }
817
- }
818
- onUpButtonMouseUp() {
819
- if (!this.$disabled()) {
820
- this.clearTimer();
821
- }
822
- }
823
- onUpButtonMouseLeave() {
824
- if (!this.$disabled()) {
825
- this.clearTimer();
826
- }
827
- }
828
- onUpButtonKeyDown(event) {
829
- if (event.keyCode === 32 || event.keyCode === 13) {
830
- this.repeat(event, null, 1);
831
- }
832
- }
833
- onUpButtonKeyUp() {
834
- if (!this.$disabled()) {
835
- this.clearTimer();
836
- }
837
- }
838
- onDownButtonMouseDown(event) {
839
- if (event.button === 2) {
840
- this.clearTimer();
841
- return;
842
- }
843
- if (!this.$disabled()) {
844
- this.input()?.nativeElement.focus();
845
- this.repeat(event, null, -1);
846
- event.preventDefault();
847
- }
848
- }
849
- onDownButtonMouseUp() {
850
- if (!this.$disabled()) {
851
- this.clearTimer();
852
- }
853
- }
854
- onDownButtonMouseLeave() {
855
- if (!this.$disabled()) {
856
- this.clearTimer();
857
- }
858
- }
859
- onDownButtonKeyUp() {
860
- if (!this.$disabled()) {
861
- this.clearTimer();
862
- }
863
- }
864
- onDownButtonKeyDown(event) {
865
- if (event.keyCode === 32 || event.keyCode === 13) {
866
- this.repeat(event, null, -1);
867
- }
868
- }
869
- onUserInput(event) {
870
- if (this.readonly()) {
871
- return;
872
- }
873
- if (this.isSpecialChar) {
874
- event.target.value = this.lastValue;
875
- }
876
- this.isSpecialChar = false;
877
- }
878
- onInputKeyDown(event) {
879
- if (this.readonly()) {
880
- return;
881
- }
882
- this.lastValue = event.target.value;
883
- if (event.shiftKey || event.altKey) {
884
- this.isSpecialChar = true;
885
- return;
886
- }
887
- let selectionStart = event.target.selectionStart;
888
- let selectionEnd = event.target.selectionEnd;
889
- let inputValue = event.target.value;
890
- let newValueStr = null;
891
- if (event.altKey) {
892
- event.preventDefault();
893
- }
894
- const inputVal = this.input();
895
- switch (event.key) {
896
- case 'ArrowUp':
897
- this.spin(event, 1);
898
- event.preventDefault();
899
- break;
900
- case 'ArrowDown':
901
- this.spin(event, -1);
902
- event.preventDefault();
903
- break;
904
- case 'ArrowLeft':
905
- for (let index = selectionStart; index <= inputValue.length; index++) {
906
- const previousCharIndex = index === 0 ? 0 : index - 1;
907
- if (this.isNumeralChar(inputValue.charAt(previousCharIndex))) {
908
- this.input().nativeElement.setSelectionRange(index, index);
909
- break;
910
- }
911
- }
912
- break;
913
- case 'ArrowRight':
914
- for (let index = selectionEnd; index >= 0; index--) {
915
- if (this.isNumeralChar(inputValue.charAt(index))) {
916
- this.input().nativeElement.setSelectionRange(index, index);
917
- break;
918
- }
919
- }
920
- break;
921
- case 'Tab':
922
- case 'Enter':
923
- newValueStr = this.validateValue(this.parseValue(this.input().nativeElement.value));
924
- inputVal.nativeElement.value = this.formatValue(newValueStr);
925
- inputVal.nativeElement.setAttribute('aria-valuenow', newValueStr);
926
- this.updateModel(event, newValueStr);
927
- break;
928
- case 'Backspace': {
929
- event.preventDefault();
930
- if (selectionStart === selectionEnd) {
931
- if ((selectionStart == 1 && this.prefix()) || (selectionStart == inputValue.length && this.suffix())) {
932
- break;
933
- }
934
- const deleteChar = inputValue.charAt(selectionStart - 1);
935
- const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
936
- if (this.isNumeralChar(deleteChar)) {
937
- const decimalLength = this.getDecimalLength(inputValue);
938
- if (this._group.test(deleteChar)) {
939
- this._group.lastIndex = 0;
940
- newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
941
- }
942
- else if (this._decimal.test(deleteChar)) {
943
- this._decimal.lastIndex = 0;
944
- if (decimalLength) {
945
- this.input()?.nativeElement.setSelectionRange(selectionStart - 1, selectionStart - 1);
946
- }
947
- else {
948
- newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
949
- }
950
- }
951
- else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
952
- const insertedText = this.isDecimalMode() && (this.minFractionDigits() || 0) < decimalLength ? '' : '0';
953
- newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);
954
- }
955
- else if (decimalCharIndexWithoutPrefix === 1) {
956
- newValueStr = inputValue.slice(0, selectionStart - 1) + '0' + inputValue.slice(selectionStart);
957
- newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
958
- }
959
- else {
960
- newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
961
- }
962
- }
963
- else if (this.mode() === 'currency' && this._currency && deleteChar.search(this._currency) != -1) {
964
- newValueStr = inputValue.slice(1);
965
- }
966
- this.updateValue(event, newValueStr, null, 'delete-single');
967
- }
968
- else {
969
- newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
970
- this.updateValue(event, newValueStr, null, 'delete-range');
971
- }
972
- break;
973
- }
974
- case 'Delete':
975
- event.preventDefault();
976
- if (selectionStart === selectionEnd) {
977
- if ((selectionStart == 0 && this.prefix()) || (selectionStart == inputValue.length - 1 && this.suffix())) {
978
- break;
979
- }
980
- const deleteChar = inputValue.charAt(selectionStart);
981
- const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
982
- if (this.isNumeralChar(deleteChar)) {
983
- const decimalLength = this.getDecimalLength(inputValue);
984
- if (this._group.test(deleteChar)) {
985
- this._group.lastIndex = 0;
986
- newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
987
- }
988
- else if (this._decimal.test(deleteChar)) {
989
- this._decimal.lastIndex = 0;
990
- if (decimalLength) {
991
- this.input()?.nativeElement.setSelectionRange(selectionStart + 1, selectionStart + 1);
992
- }
993
- else {
994
- newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
995
- }
996
- }
997
- else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
998
- const insertedText = this.isDecimalMode() && (this.minFractionDigits() || 0) < decimalLength ? '' : '0';
999
- newValueStr = inputValue.slice(0, selectionStart) + insertedText + inputValue.slice(selectionStart + 1);
1000
- }
1001
- else if (decimalCharIndexWithoutPrefix === 1) {
1002
- newValueStr = inputValue.slice(0, selectionStart) + '0' + inputValue.slice(selectionStart + 1);
1003
- newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
1004
- }
1005
- else {
1006
- newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
1007
- }
1008
- }
1009
- this.updateValue(event, newValueStr, null, 'delete-back-single');
1010
- }
1011
- else {
1012
- newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
1013
- this.updateValue(event, newValueStr, null, 'delete-range');
1014
- }
1015
- break;
1016
- case 'Home':
1017
- if (this.min()) {
1018
- this.updateModel(event, this.min());
1019
- event.preventDefault();
1020
- }
1021
- break;
1022
- case 'End':
1023
- if (this.max()) {
1024
- this.updateModel(event, this.max());
1025
- event.preventDefault();
1026
- }
1027
- break;
1028
- default:
1029
- break;
1030
- }
1031
- this.onKeyDown.emit(event);
1032
- }
1033
- onInputKeyPress(event) {
1034
- if (this.readonly()) {
1035
- return;
1036
- }
1037
- let code = event.which || event.keyCode;
1038
- let char = String.fromCharCode(code);
1039
- let isDecimalSign = this.isDecimalSign(char);
1040
- const isMinusSign = this.isMinusSign(char);
1041
- if (code != 13) {
1042
- event.preventDefault();
1043
- }
1044
- if (!isDecimalSign && event.code === 'NumpadDecimal') {
1045
- isDecimalSign = true;
1046
- char = this._decimalChar;
1047
- code = char.charCodeAt(0);
1048
- }
1049
- const { value, selectionStart, selectionEnd } = this.input().nativeElement;
1050
- const newValue = this.parseValue(value + char);
1051
- const newValueStr = newValue != null ? newValue.toString() : '';
1052
- const selectedValue = value.substring(selectionStart, selectionEnd);
1053
- const selectedValueParsed = this.parseValue(selectedValue);
1054
- const selectedValueStr = selectedValueParsed != null ? selectedValueParsed.toString() : '';
1055
- if (selectionStart !== selectionEnd && selectedValueStr.length > 0) {
1056
- this.insert(event, char, { isDecimalSign, isMinusSign });
1057
- return;
1058
- }
1059
- const max = this.maxlength();
1060
- if (max && newValueStr.length > max) {
1061
- return;
1062
- }
1063
- if ((48 <= code && code <= 57) || isMinusSign || isDecimalSign) {
1064
- this.insert(event, char, { isDecimalSign, isMinusSign });
1065
- }
1066
- }
1067
- onPaste(event) {
1068
- if (!this.$disabled() && !this.readonly()) {
1069
- event.preventDefault();
1070
- let data = (event.clipboardData || this.document.defaultView['clipboardData']).getData('Text');
1071
- if (this.inputId() === 'integeronly' && /[^\d-]/.test(data)) {
1072
- return;
1073
- }
1074
- if (data) {
1075
- if (this.maxlength()) {
1076
- data = data.toString().substring(0, this.maxlength());
1077
- }
1078
- let filteredData = this.parseValue(data);
1079
- if (filteredData != null) {
1080
- this.insert(event, filteredData.toString());
1081
- }
1082
- }
1083
- }
1084
- }
1085
- allowMinusSign() {
1086
- const min = this.min();
1087
- return min == null || min < 0;
1088
- }
1089
- isMinusSign(char) {
1090
- if (this._minusSign.test(char) || char === '-') {
1091
- this._minusSign.lastIndex = 0;
1092
- return true;
1093
- }
1094
- return false;
1095
- }
1096
- isDecimalSign(char) {
1097
- if (this._decimal.test(char)) {
1098
- this._decimal.lastIndex = 0;
1099
- return true;
1100
- }
1101
- return false;
1102
- }
1103
- isDecimalMode() {
1104
- return this.mode() === 'decimal';
1105
- }
1106
- getDecimalCharIndexes(val) {
1107
- let decimalCharIndex = val.search(this._decimal);
1108
- this._decimal.lastIndex = 0;
1109
- const filteredVal = val
1110
- .replace(this._prefix, '')
1111
- .trim()
1112
- .replace(/\s/g, '')
1113
- .replace(this._currency, '');
1114
- const decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal);
1115
- this._decimal.lastIndex = 0;
1116
- return { decimalCharIndex, decimalCharIndexWithoutPrefix };
1117
- }
1118
- getCharIndexes(val) {
1119
- const decimalCharIndex = val.search(this._decimal);
1120
- this._decimal.lastIndex = 0;
1121
- const minusCharIndex = val.search(this._minusSign);
1122
- this._minusSign.lastIndex = 0;
1123
- const suffixCharIndex = val.search(this._suffix);
1124
- this._suffix.lastIndex = 0;
1125
- const currencyCharIndex = val.search(this._currency);
1126
- this._currency.lastIndex = 0;
1127
- return { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex };
1128
- }
1129
- insert(event, text, sign = { isDecimalSign: false, isMinusSign: false }) {
1130
- const minusCharIndexOnText = text.search(this._minusSign);
1131
- this._minusSign.lastIndex = 0;
1132
- if (!this.allowMinusSign() && minusCharIndexOnText !== -1) {
1133
- return;
1134
- }
1135
- const inputVal = this.input();
1136
- let selectionStart = inputVal?.nativeElement.selectionStart;
1137
- let selectionEnd = inputVal?.nativeElement.selectionEnd;
1138
- let inputValue = inputVal?.nativeElement.value.trim();
1139
- const { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex } = this.getCharIndexes(inputValue);
1140
- let newValueStr;
1141
- if (sign.isMinusSign) {
1142
- if (selectionStart === 0) {
1143
- newValueStr = inputValue;
1144
- if (minusCharIndex === -1 || selectionEnd !== 0) {
1145
- newValueStr = this.insertText(inputValue, text, 0, selectionEnd);
1146
- }
1147
- this.updateValue(event, newValueStr, text, 'insert');
1148
- }
1149
- }
1150
- else if (sign.isDecimalSign) {
1151
- if (decimalCharIndex > 0 && selectionStart === decimalCharIndex) {
1152
- this.updateValue(event, inputValue, text, 'insert');
1153
- }
1154
- else if (decimalCharIndex > selectionStart && decimalCharIndex < selectionEnd) {
1155
- newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
1156
- this.updateValue(event, newValueStr, text, 'insert');
1157
- }
1158
- else if (decimalCharIndex === -1 && this.maxFractionDigits()) {
1159
- newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
1160
- this.updateValue(event, newValueStr, text, 'insert');
1161
- }
1162
- }
1163
- else {
1164
- const maxFractionDigits = this.numberFormat.resolvedOptions().maximumFractionDigits;
1165
- const operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';
1166
- if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
1167
- if (selectionStart + text.length - (decimalCharIndex + 1) <= maxFractionDigits) {
1168
- const charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length;
1169
- newValueStr = inputValue.slice(0, selectionStart) + text + inputValue.slice(selectionStart + text.length, charIndex) + inputValue.slice(charIndex);
1170
- this.updateValue(event, newValueStr, text, operation);
1171
- }
1172
- }
1173
- else {
1174
- newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
1175
- this.updateValue(event, newValueStr, text, operation);
1176
- }
1177
- }
1178
- }
1179
- insertText(value, text, start, end) {
1180
- let textSplit = text === '.' ? text : text.split('.');
1181
- if (textSplit.length === 2) {
1182
- const decimalCharIndex = value.slice(start, end).search(this._decimal);
1183
- this._decimal.lastIndex = 0;
1184
- return decimalCharIndex > 0 ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : value || this.formatValue(text);
1185
- }
1186
- else if (end - start === value.length) {
1187
- return this.formatValue(text);
1188
- }
1189
- else if (start === 0) {
1190
- return text + value.slice(end);
1191
- }
1192
- else if (end === value.length) {
1193
- return value.slice(0, start) + text;
1194
- }
1195
- else {
1196
- return value.slice(0, start) + text + value.slice(end);
1197
- }
1198
- }
1199
- deleteRange(value, start, end) {
1200
- let newValueStr;
1201
- if (end - start === value.length)
1202
- newValueStr = '';
1203
- else if (start === 0)
1204
- newValueStr = value.slice(end);
1205
- else if (end === value.length)
1206
- newValueStr = value.slice(0, start);
1207
- else
1208
- newValueStr = value.slice(0, start) + value.slice(end);
1209
- return newValueStr;
1210
- }
1211
- initCursor() {
1212
- const inputVal = this.input();
1213
- let selectionStart = inputVal?.nativeElement.selectionStart;
1214
- let selectionEnd = inputVal?.nativeElement.selectionEnd;
1215
- let inputValue = inputVal?.nativeElement.value;
1216
- let valueLength = inputValue.length;
1217
- let index = null;
1218
- // remove prefix
1219
- let prefixLength = (this.prefixChar || '').length;
1220
- inputValue = inputValue.replace(this._prefix, '');
1221
- // Will allow selecting whole prefix. But not a part of it.
1222
- // Negative values will trigger clauses after this to fix the cursor position.
1223
- if (selectionStart === selectionEnd || selectionStart !== 0 || selectionEnd < prefixLength) {
1224
- selectionStart -= prefixLength;
1225
- }
1226
- let char = inputValue.charAt(selectionStart);
1227
- if (this.isNumeralChar(char)) {
1228
- return selectionStart + prefixLength;
1229
- }
1230
- //left
1231
- let i = selectionStart - 1;
1232
- while (i >= 0) {
1233
- char = inputValue.charAt(i);
1234
- if (this.isNumeralChar(char)) {
1235
- index = i + prefixLength;
1236
- break;
1237
- }
1238
- else {
1239
- i--;
1240
- }
1241
- }
1242
- if (index !== null) {
1243
- inputVal?.nativeElement.setSelectionRange(index + 1, index + 1);
1244
- }
1245
- else {
1246
- i = selectionStart;
1247
- while (i < valueLength) {
1248
- char = inputValue.charAt(i);
1249
- if (this.isNumeralChar(char)) {
1250
- index = i + prefixLength;
1251
- break;
1252
- }
1253
- else {
1254
- i++;
1255
- }
1256
- }
1257
- if (index !== null) {
1258
- inputVal?.nativeElement.setSelectionRange(index, index);
1259
- }
1260
- }
1261
- return index || 0;
1262
- }
1263
- onInputClick() {
1264
- const currentValue = this.input()?.nativeElement.value;
1265
- if (!this.readonly() && currentValue !== getSelection()) {
1266
- this.initCursor();
1267
- }
1268
- }
1269
- isNumeralChar(char) {
1270
- if (char.length === 1 && (this._numeral.test(char) || this._decimal.test(char) || this._group.test(char) || this._minusSign.test(char))) {
1271
- this.resetRegex();
1272
- return true;
1273
- }
1274
- return false;
1275
- }
1276
- resetRegex() {
1277
- this._numeral.lastIndex = 0;
1278
- this._decimal.lastIndex = 0;
1279
- this._group.lastIndex = 0;
1280
- this._minusSign.lastIndex = 0;
1281
- }
1282
- updateValue(event, valueStr, insertedValueStr, operation) {
1283
- let currentValue = this.input()?.nativeElement.value;
1284
- let newValue = null;
1285
- if (valueStr != null) {
1286
- newValue = this.parseValue(valueStr);
1287
- newValue = !newValue && !this.allowEmpty() ? 0 : newValue;
1288
- this.updateInput(newValue, insertedValueStr, operation, valueStr);
1289
- this.handleOnInput(event, currentValue, newValue);
1290
- }
1291
- }
1292
- handleOnInput(event, currentValue, newValue) {
1293
- if (this.isValueChanged(currentValue, newValue)) {
1294
- this.input().nativeElement.value = this.formatValue(newValue);
1295
- this.input()?.nativeElement.setAttribute('aria-valuenow', newValue);
1296
- this.updateModel(event, newValue);
1297
- this.onInput.emit({ originalEvent: event, value: newValue, formattedValue: currentValue });
1298
- }
1299
- }
1300
- isValueChanged(currentValue, newValue) {
1301
- if (newValue === null && currentValue !== null) {
1302
- return true;
1303
- }
1304
- if (newValue != null) {
1305
- let parsedCurrentValue = typeof currentValue === 'string' ? this.parseValue(currentValue) : currentValue;
1306
- return newValue !== parsedCurrentValue;
1307
- }
1308
- return false;
1309
- }
1310
- validateValue(value) {
1311
- if (value === '-' || value == null) {
1312
- return null;
1313
- }
1314
- const min = this.min();
1315
- const max = this.max();
1316
- if (min != null && value < min) {
1317
- return this.min();
1318
- }
1319
- if (max != null && value > max) {
1320
- return max;
1321
- }
1322
- return value;
1323
- }
1324
- updateInput(value, insertedValueStr, operation, valueStr) {
1325
- insertedValueStr = insertedValueStr || '';
1326
- const inputVal = this.input();
1327
- let inputValue = inputVal?.nativeElement.value;
1328
- let newValue = this.formatValue(value);
1329
- let currentLength = inputValue.length;
1330
- if (newValue !== valueStr) {
1331
- newValue = this.concatValues(newValue, valueStr);
1332
- }
1333
- if (currentLength === 0) {
1334
- inputVal.nativeElement.value = newValue;
1335
- inputVal.nativeElement.setSelectionRange(0, 0);
1336
- const index = this.initCursor();
1337
- const selectionEnd = index + insertedValueStr.length;
1338
- inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
1339
- }
1340
- else {
1341
- let selectionStart = inputVal.nativeElement.selectionStart;
1342
- let selectionEnd = inputVal.nativeElement.selectionEnd;
1343
- const maxlength = this.maxlength();
1344
- if (maxlength && newValue.length > maxlength) {
1345
- newValue = newValue.slice(0, maxlength);
1346
- selectionStart = Math.min(selectionStart, maxlength);
1347
- selectionEnd = Math.min(selectionEnd, maxlength);
1348
- }
1349
- if (maxlength && maxlength < newValue.length) {
1350
- return;
1351
- }
1352
- inputVal.nativeElement.value = newValue;
1353
- let newLength = newValue.length;
1354
- if (operation === 'range-insert') {
1355
- const startValue = this.parseValue((inputValue || '').slice(0, selectionStart));
1356
- const startValueStr = startValue !== null ? startValue.toString() : '';
1357
- const startExpr = startValueStr.split('').join(`(${this.groupChar})?`);
1358
- const sRegex = new RegExp(startExpr, 'g');
1359
- sRegex.test(newValue);
1360
- const tExpr = insertedValueStr.split('').join(`(${this.groupChar})?`);
1361
- const tRegex = new RegExp(tExpr, 'g');
1362
- tRegex.test(newValue.slice(sRegex.lastIndex));
1363
- selectionEnd = sRegex.lastIndex + tRegex.lastIndex;
1364
- inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
1365
- }
1366
- else if (newLength === currentLength) {
1367
- if (operation === 'insert' || operation === 'delete-back-single')
1368
- inputVal.nativeElement.setSelectionRange(selectionEnd + 1, selectionEnd + 1);
1369
- else if (operation === 'delete-single')
1370
- inputVal.nativeElement.setSelectionRange(selectionEnd - 1, selectionEnd - 1);
1371
- else if (operation === 'delete-range' || operation === 'spin')
1372
- inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
1373
- }
1374
- else if (operation === 'delete-back-single') {
1375
- let prevChar = inputValue.charAt(selectionEnd - 1);
1376
- let nextChar = inputValue.charAt(selectionEnd);
1377
- let diff = currentLength - newLength;
1378
- let isGroupChar = this._group.test(nextChar);
1379
- if (isGroupChar && diff === 1) {
1380
- selectionEnd += 1;
1381
- }
1382
- else if (!isGroupChar && this.isNumeralChar(prevChar)) {
1383
- selectionEnd += -1 * diff + 1;
1384
- }
1385
- this._group.lastIndex = 0;
1386
- inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
1387
- }
1388
- else if (inputValue === '-' && operation === 'insert') {
1389
- inputVal.nativeElement.setSelectionRange(0, 0);
1390
- const index = this.initCursor();
1391
- const selectionEnd = index + insertedValueStr.length + 1;
1392
- inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
1393
- }
1394
- else {
1395
- selectionEnd = selectionEnd + (newLength - currentLength);
1396
- inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
1397
- }
1398
- }
1399
- inputVal.nativeElement.setAttribute('aria-valuenow', value);
1400
- }
1401
- concatValues(val1, val2) {
1402
- if (val1 && val2) {
1403
- let decimalCharIndex = val2.search(this._decimal);
1404
- this._decimal.lastIndex = 0;
1405
- if (this.suffixChar) {
1406
- return decimalCharIndex !== -1 ? val1.replace(this.suffixChar, '').split(this._decimal)[0] + val2.replace(this.suffixChar, '').slice(decimalCharIndex) + this.suffixChar : val1;
1407
- }
1408
- else {
1409
- return decimalCharIndex !== -1 ? val1.split(this._decimal)[0] + val2.slice(decimalCharIndex) : val1;
1410
- }
1411
- }
1412
- return val1;
1413
- }
1414
- getDecimalLength(value) {
1415
- if (value) {
1416
- const valueSplit = value.split(this._decimal);
1417
- if (valueSplit.length === 2) {
1418
- return valueSplit[1]
1419
- .replace(this._suffix, '')
1420
- .trim()
1421
- .replace(/\s/g, '')
1422
- .replace(this._currency, '').length;
1423
- }
1424
- }
1425
- return 0;
1426
- }
1427
- onInputFocus(event) {
1428
- this.focused = true;
1429
- this.onFocus.emit(event);
1430
- }
1431
- onInputBlur(event) {
1432
- this.focused = false;
1433
- const newValueNumber = this.validateValue(this.parseValue(this.input().nativeElement.value));
1434
- const newValueString = newValueNumber?.toString();
1435
- this.input().nativeElement.value = this.formatValue(newValueString);
1436
- this.input().nativeElement.setAttribute('aria-valuenow', newValueString);
1437
- this.updateModel(event, newValueNumber);
1438
- this.onModelTouched();
1439
- this.onBlur.emit(event);
1440
- }
1441
- formattedValue() {
1442
- const val = !this.value && !this.allowEmpty() ? 0 : this.value;
1443
- return this.formatValue(val);
1444
- }
1445
- updateModel(event, value) {
1446
- const isBlurUpdateOnMode = this.ngControl?.control?.updateOn === 'blur';
1447
- if (this.value !== value) {
1448
- this.value = value;
1449
- if (!(isBlurUpdateOnMode && this.focused)) {
1450
- this.onModelChange(value);
1451
- }
1452
- }
1453
- else if (isBlurUpdateOnMode) {
1454
- this.onModelChange(value);
1455
- }
1456
- }
1457
- /**
1458
- * @override
1459
- *
1460
- * @see {@link BaseEditableHolder.writeControlValue}
1461
- * Writes the value to the control.
1462
- */
1463
- writeControlValue(value, setModelValue) {
1464
- this.value = value ? Number(value) : value;
1465
- setModelValue(value);
1466
- this.cd.markForCheck();
1467
- }
1468
- clearTimer() {
1469
- if (this.timer) {
1470
- clearInterval(this.timer);
1471
- }
1472
- }
1473
- get dataP() {
1474
- return this.cn({
1475
- invalid: this.invalid(),
1476
- disabled: this.$disabled(),
1477
- focus: this.focused,
1478
- fluid: this.hasFluid,
1479
- filled: this.$variant() === 'filled',
1480
- empty: !this.$filled(),
1481
- [this.size()]: this.size(),
1482
- [this.buttonLayout()]: this.showButtons() && this.buttonLayout()
1483
- });
1484
- }
1485
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumber, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
1486
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: InputNumber, isStandalone: true, selector: "h-inputNumber, h-inputnumber, h-input-number", inputs: { showButtons: { classPropertyName: "showButtons", publicName: "showButtons", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, buttonLayout: { classPropertyName: "buttonLayout", publicName: "buttonLayout", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaRequired: { classPropertyName: "ariaRequired", publicName: "ariaRequired", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, incrementButtonClass: { classPropertyName: "incrementButtonClass", publicName: "incrementButtonClass", isSignal: true, isRequired: false, transformFunction: null }, decrementButtonClass: { classPropertyName: "decrementButtonClass", publicName: "decrementButtonClass", isSignal: true, isRequired: false, transformFunction: null }, incrementButtonIcon: { classPropertyName: "incrementButtonIcon", publicName: "incrementButtonIcon", isSignal: true, isRequired: false, transformFunction: null }, decrementButtonIcon: { classPropertyName: "decrementButtonIcon", publicName: "decrementButtonIcon", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, allowEmpty: { classPropertyName: "allowEmpty", publicName: "allowEmpty", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, localeMatcher: { classPropertyName: "localeMatcher", publicName: "localeMatcher", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, currencyDisplay: { classPropertyName: "currencyDisplay", publicName: "currencyDisplay", isSignal: true, isRequired: false, transformFunction: null }, useGrouping: { classPropertyName: "useGrouping", publicName: "useGrouping", isSignal: true, isRequired: false, transformFunction: null }, minFractionDigits: { classPropertyName: "minFractionDigits", publicName: "minFractionDigits", isSignal: true, isRequired: false, transformFunction: null }, maxFractionDigits: { classPropertyName: "maxFractionDigits", publicName: "maxFractionDigits", isSignal: true, isRequired: false, transformFunction: null }, prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, suffix: { classPropertyName: "suffix", publicName: "suffix", isSignal: true, isRequired: false, transformFunction: null }, inputStyle: { classPropertyName: "inputStyle", publicName: "inputStyle", isSignal: true, isRequired: false, transformFunction: null }, inputStyleClass: { classPropertyName: "inputStyleClass", publicName: "inputStyleClass", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onInput: "onInput", onFocus: "onFocus", onBlur: "onBlur", onKeyDown: "onKeyDown", onClear: "onClear" }, host: { properties: { "class": "cn(cx('root'), styleClass())", "attr.data-h": "dataP" } }, providers: [INPUTNUMBER_VALUE_ACCESSOR, InputNumberStyle, { provide: INPUTNUMBER_INSTANCE, useExisting: InputNumber }, { provide: PARENT_INSTANCE, useExisting: InputNumber }], queries: [{ propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"], isSignal: true }, { propertyName: "incrementButtonIconTemplate", first: true, predicate: ["incrementbuttonicon"], isSignal: true }, { propertyName: "decrementButtonIconTemplate", first: true, predicate: ["decrementbuttonicon"], isSignal: true }, { propertyName: "templates", predicate: HelixTemplate, isSignal: true }], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: "<input\n hInputText\n #input\n [attr.id]=\"inputId()\"\n role=\"spinbutton\"\n [class]=\"cn(cx('pcInputText'), inputStyleClass())\"\n [value]=\"formattedValue()\"\n [ngStyle]=\"inputStyle()\"\n [variant]=\"$variant()\"\n [invalid]=\"invalid()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"value\"\n [attr.placeholder]=\"placeholder()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.title]=\"title()\"\n [pSize]=\"size()\"\n [attr.size]=\"inputSize()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.minlength]=\"minlength()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-required]=\"ariaRequired()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step() ?? 1\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n inputmode=\"decimal\"\n (input)=\"onUserInput($event)\"\n (keydown)=\"onInputKeyDown($event)\"\n (keypress)=\"onInputKeyPress($event)\"\n (paste)=\"onPaste($event)\"\n (click)=\"onInputClick()\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n [pt]=\"ptm('pcInputText')\"\n [unstyled]=\"unstyled()\"\n [hAutoFocus]=\"autofocus()\"\n [fluid]=\"hasFluid\"\n [attr.data-h]=\"dataP\"\n />\n@if (buttonLayout() != 'vertical' && showClear() && value) {\n @if (!clearIconTemplate() && !_clearIconTemplate) {\n <svg data-h-icon=\"times\" [hBind]=\"ptm('clearIcon')\" [class]=\"cx('clearIcon')\" (click)=\"clear()\" />\n }\n @if (clearIconTemplate() || _clearIconTemplate) {\n <span [hBind]=\"ptm('clearIcon')\" (click)=\"clear()\" [class]=\"cx('clearIcon')\">\n <ng-template *ngTemplateOutlet=\"clearIconTemplate() || _clearIconTemplate\"></ng-template>\n </span>\n }\n}\n@if (showButtons() && buttonLayout() === 'stacked') {\n <span [hBind]=\"ptm('buttonGroup')\" [class]=\"cx('buttonGroup')\" [attr.data-h]=\"dataP\">\n <button\n type=\"button\"\n [hBind]=\"ptm('incrementButton')\"\n [class]=\"cn(cx('incrementButton'), incrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n (mousedown)=\"onUpButtonMouseDown($event)\"\n (mouseup)=\"onUpButtonMouseUp()\"\n (mouseleave)=\"onUpButtonMouseLeave()\"\n (keydown)=\"onUpButtonKeyDown($event)\"\n (keyup)=\"onUpButtonKeyUp()\"\n [attr.aria-hidden]=\"true\"\n [attr.data-h]=\"dataP\"\n >\n @if (incrementButtonIcon()) {\n <span [hBind]=\"ptm('incrementButtonIcon')\" [ngClass]=\"incrementButtonIcon()\"></span>\n }\n @if (!incrementButtonIcon()) {\n @if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-up\" [hBind]=\"ptm('incrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"incrementButtonIconTemplate() || _incrementButtonIconTemplate\"></ng-template>\n }\n </button>\n <button\n type=\"button\"\n [hBind]=\"ptm('decrementButton')\"\n [class]=\"cn(cx('decrementButton'), decrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onDownButtonMouseDown($event)\"\n (mouseup)=\"onDownButtonMouseUp()\"\n (mouseleave)=\"onDownButtonMouseLeave()\"\n (keydown)=\"onDownButtonKeyDown($event)\"\n (keyup)=\"onDownButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (decrementButtonIcon()) {\n <span [hBind]=\"ptm('decrementButtonIcon')\" [ngClass]=\"decrementButtonIcon()\"></span>\n }\n @if (!decrementButtonIcon()) {\n @if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-down\" [hBind]=\"ptm('decrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"decrementButtonIconTemplate() || _decrementButtonIconTemplate\"></ng-template>\n }\n </button>\n </span>\n}\n@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n [hBind]=\"ptm('incrementButton')\"\n [class]=\"cn(cx('incrementButton'), incrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onUpButtonMouseDown($event)\"\n (mouseup)=\"onUpButtonMouseUp()\"\n (mouseleave)=\"onUpButtonMouseLeave()\"\n (keydown)=\"onUpButtonKeyDown($event)\"\n (keyup)=\"onUpButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (incrementButtonIcon()) {\n <span [hBind]=\"ptm('incrementButtonIcon')\" [ngClass]=\"incrementButtonIcon()\"></span>\n }\n @if (!incrementButtonIcon()) {\n @if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-up\" [hBind]=\"ptm('incrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"incrementButtonIconTemplate() || _incrementButtonIconTemplate\"></ng-template>\n }\n </button>\n}\n@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n [hBind]=\"ptm('decrementButton')\"\n [class]=\"cn(cx('decrementButton'), decrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onDownButtonMouseDown($event)\"\n (mouseup)=\"onDownButtonMouseUp()\"\n (mouseleave)=\"onDownButtonMouseLeave()\"\n (keydown)=\"onDownButtonKeyDown($event)\"\n (keyup)=\"onDownButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (decrementButtonIcon()) {\n <span [hBind]=\"ptm('decrementButtonIcon')\" [ngClass]=\"decrementButtonIcon()\"></span>\n }\n @if (!decrementButtonIcon()) {\n @if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-down\" [hBind]=\"ptm('decrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"decrementButtonIconTemplate() || _decrementButtonIconTemplate\"></ng-template>\n }\n </button>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: InputText, selector: "[hInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "directive", type: AutoFocus, selector: "[hAutoFocus]", inputs: ["hAutoFocus"] }, { kind: "component", type: TimesIcon, selector: "[data-h-icon=\"times\"]" }, { kind: "component", type: AngleUpIcon, selector: "[data-h-icon=\"angle-up\"]" }, { kind: "component", type: AngleDownIcon, selector: "[data-h-icon=\"angle-down\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[hBind]", inputs: ["hBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1487
- }
1488
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumber, decorators: [{
1489
- type: Component,
1490
- args: [{ selector: 'h-inputNumber, h-inputnumber, h-input-number', standalone: true, imports: [CommonModule, InputText, AutoFocus, TimesIcon, AngleUpIcon, AngleDownIcon, SharedModule, BindModule], changeDetection: ChangeDetectionStrategy.OnPush, providers: [INPUTNUMBER_VALUE_ACCESSOR, InputNumberStyle, { provide: INPUTNUMBER_INSTANCE, useExisting: InputNumber }, { provide: PARENT_INSTANCE, useExisting: InputNumber }], encapsulation: ViewEncapsulation.None, host: {
1491
- '[class]': "cn(cx('root'), styleClass())",
1492
- '[attr.data-h]': 'dataP'
1493
- }, hostDirectives: [Bind], template: "<input\n hInputText\n #input\n [attr.id]=\"inputId()\"\n role=\"spinbutton\"\n [class]=\"cn(cx('pcInputText'), inputStyleClass())\"\n [value]=\"formattedValue()\"\n [ngStyle]=\"inputStyle()\"\n [variant]=\"$variant()\"\n [invalid]=\"invalid()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"value\"\n [attr.placeholder]=\"placeholder()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.title]=\"title()\"\n [pSize]=\"size()\"\n [attr.size]=\"inputSize()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.minlength]=\"minlength()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-required]=\"ariaRequired()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step() ?? 1\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n inputmode=\"decimal\"\n (input)=\"onUserInput($event)\"\n (keydown)=\"onInputKeyDown($event)\"\n (keypress)=\"onInputKeyPress($event)\"\n (paste)=\"onPaste($event)\"\n (click)=\"onInputClick()\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n [pt]=\"ptm('pcInputText')\"\n [unstyled]=\"unstyled()\"\n [hAutoFocus]=\"autofocus()\"\n [fluid]=\"hasFluid\"\n [attr.data-h]=\"dataP\"\n />\n@if (buttonLayout() != 'vertical' && showClear() && value) {\n @if (!clearIconTemplate() && !_clearIconTemplate) {\n <svg data-h-icon=\"times\" [hBind]=\"ptm('clearIcon')\" [class]=\"cx('clearIcon')\" (click)=\"clear()\" />\n }\n @if (clearIconTemplate() || _clearIconTemplate) {\n <span [hBind]=\"ptm('clearIcon')\" (click)=\"clear()\" [class]=\"cx('clearIcon')\">\n <ng-template *ngTemplateOutlet=\"clearIconTemplate() || _clearIconTemplate\"></ng-template>\n </span>\n }\n}\n@if (showButtons() && buttonLayout() === 'stacked') {\n <span [hBind]=\"ptm('buttonGroup')\" [class]=\"cx('buttonGroup')\" [attr.data-h]=\"dataP\">\n <button\n type=\"button\"\n [hBind]=\"ptm('incrementButton')\"\n [class]=\"cn(cx('incrementButton'), incrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n (mousedown)=\"onUpButtonMouseDown($event)\"\n (mouseup)=\"onUpButtonMouseUp()\"\n (mouseleave)=\"onUpButtonMouseLeave()\"\n (keydown)=\"onUpButtonKeyDown($event)\"\n (keyup)=\"onUpButtonKeyUp()\"\n [attr.aria-hidden]=\"true\"\n [attr.data-h]=\"dataP\"\n >\n @if (incrementButtonIcon()) {\n <span [hBind]=\"ptm('incrementButtonIcon')\" [ngClass]=\"incrementButtonIcon()\"></span>\n }\n @if (!incrementButtonIcon()) {\n @if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-up\" [hBind]=\"ptm('incrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"incrementButtonIconTemplate() || _incrementButtonIconTemplate\"></ng-template>\n }\n </button>\n <button\n type=\"button\"\n [hBind]=\"ptm('decrementButton')\"\n [class]=\"cn(cx('decrementButton'), decrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onDownButtonMouseDown($event)\"\n (mouseup)=\"onDownButtonMouseUp()\"\n (mouseleave)=\"onDownButtonMouseLeave()\"\n (keydown)=\"onDownButtonKeyDown($event)\"\n (keyup)=\"onDownButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (decrementButtonIcon()) {\n <span [hBind]=\"ptm('decrementButtonIcon')\" [ngClass]=\"decrementButtonIcon()\"></span>\n }\n @if (!decrementButtonIcon()) {\n @if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-down\" [hBind]=\"ptm('decrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"decrementButtonIconTemplate() || _decrementButtonIconTemplate\"></ng-template>\n }\n </button>\n </span>\n}\n@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n [hBind]=\"ptm('incrementButton')\"\n [class]=\"cn(cx('incrementButton'), incrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onUpButtonMouseDown($event)\"\n (mouseup)=\"onUpButtonMouseUp()\"\n (mouseleave)=\"onUpButtonMouseLeave()\"\n (keydown)=\"onUpButtonKeyDown($event)\"\n (keyup)=\"onUpButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (incrementButtonIcon()) {\n <span [hBind]=\"ptm('incrementButtonIcon')\" [ngClass]=\"incrementButtonIcon()\"></span>\n }\n @if (!incrementButtonIcon()) {\n @if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-up\" [hBind]=\"ptm('incrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"incrementButtonIconTemplate() || _incrementButtonIconTemplate\"></ng-template>\n }\n </button>\n}\n@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n [hBind]=\"ptm('decrementButton')\"\n [class]=\"cn(cx('decrementButton'), decrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onDownButtonMouseDown($event)\"\n (mouseup)=\"onDownButtonMouseUp()\"\n (mouseleave)=\"onDownButtonMouseLeave()\"\n (keydown)=\"onDownButtonKeyDown($event)\"\n (keyup)=\"onDownButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (decrementButtonIcon()) {\n <span [hBind]=\"ptm('decrementButtonIcon')\" [ngClass]=\"decrementButtonIcon()\"></span>\n }\n @if (!decrementButtonIcon()) {\n @if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-down\" [hBind]=\"ptm('decrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"decrementButtonIconTemplate() || _decrementButtonIconTemplate\"></ng-template>\n }\n </button>\n}\n" }]
1494
- }], ctorParameters: () => [{ type: i0.Injector }], propDecorators: { showButtons: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtons", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], buttonLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonLayout", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaRequired: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaRequired", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], incrementButtonClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "incrementButtonClass", required: false }] }], decrementButtonClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "decrementButtonClass", required: false }] }], incrementButtonIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "incrementButtonIcon", required: false }] }], decrementButtonIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "decrementButtonIcon", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], allowEmpty: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowEmpty", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], localeMatcher: [{ type: i0.Input, args: [{ isSignal: true, alias: "localeMatcher", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], currency: [{ type: i0.Input, args: [{ isSignal: true, alias: "currency", required: false }] }], currencyDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "currencyDisplay", required: false }] }], useGrouping: [{ type: i0.Input, args: [{ isSignal: true, alias: "useGrouping", required: false }] }], minFractionDigits: [{ type: i0.Input, args: [{ isSignal: true, alias: "minFractionDigits", required: false }] }], maxFractionDigits: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxFractionDigits", required: false }] }], prefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefix", required: false }] }], suffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "suffix", required: false }] }], inputStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyle", required: false }] }], inputStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyleClass", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], onInput: [{ type: i0.Output, args: ["onInput"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onKeyDown: [{ type: i0.Output, args: ["onKeyDown"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], clearIconTemplate: [{ type: i0.ContentChild, args: ['clearicon', { ...{ descendants: false }, isSignal: true }] }], incrementButtonIconTemplate: [{ type: i0.ContentChild, args: ['incrementbuttonicon', { ...{ descendants: false }, isSignal: true }] }], decrementButtonIconTemplate: [{ type: i0.ContentChild, args: ['decrementbuttonicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => HelixTemplate), { isSignal: true }] }], input: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }] } });
1495
- class InputNumberModule {
1496
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1497
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.6", ngImport: i0, type: InputNumberModule, imports: [InputNumber, SharedModule], exports: [InputNumber, SharedModule] });
1498
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumberModule, imports: [InputNumber, SharedModule, SharedModule] });
1499
- }
1500
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputNumberModule, decorators: [{
1501
- type: NgModule,
1502
- args: [{
1503
- imports: [InputNumber, SharedModule],
1504
- exports: [InputNumber, SharedModule]
1505
- }]
1506
- }] });
1507
-
1508
- /**
1509
- * Generated bundle index. Do not edit.
1510
- */
1511
-
288
+ var InputNumber = class InputNumber extends BaseInput {
289
+ injector;
290
+ componentName = "InputNumber";
291
+ $pcInputNumber = inject(INPUTNUMBER_INSTANCE, {
292
+ optional: true,
293
+ skipSelf: true
294
+ }) ?? void 0;
295
+ _componentStyle = inject(InputNumberStyle);
296
+ bindDirectiveInstance = inject(Bind, { self: true });
297
+ onAfterViewChecked() {
298
+ this.bindDirectiveInstance.setAttrs(this.ptms(["host", "root"]));
299
+ }
300
+ showButtons = input(false, {
301
+ ...ngDevMode ? { debugName: "showButtons" } : /* istanbul ignore next */ {},
302
+ transform: booleanAttribute
303
+ });
304
+ format = input(true, {
305
+ ...ngDevMode ? { debugName: "format" } : /* istanbul ignore next */ {},
306
+ transform: booleanAttribute
307
+ });
308
+ buttonLayout = input("stacked", ...ngDevMode ? [{ debugName: "buttonLayout" }] : /* istanbul ignore next */ []);
309
+ inputId = input(...ngDevMode ? [void 0, { debugName: "inputId" }] : /* istanbul ignore next */ []);
310
+ styleClass = input(...ngDevMode ? [void 0, { debugName: "styleClass" }] : /* istanbul ignore next */ []);
311
+ placeholder = input(...ngDevMode ? [void 0, { debugName: "placeholder" }] : /* istanbul ignore next */ []);
312
+ tabindex = input(void 0, {
313
+ ...ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {},
314
+ transform: numberAttribute
315
+ });
316
+ title = input(...ngDevMode ? [void 0, { debugName: "title" }] : /* istanbul ignore next */ []);
317
+ ariaLabelledBy = input(...ngDevMode ? [void 0, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
318
+ ariaDescribedBy = input(...ngDevMode ? [void 0, { debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
319
+ ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
320
+ ariaRequired = input(void 0, {
321
+ ...ngDevMode ? { debugName: "ariaRequired" } : /* istanbul ignore next */ {},
322
+ transform: booleanAttribute
323
+ });
324
+ autocomplete = input(...ngDevMode ? [void 0, { debugName: "autocomplete" }] : /* istanbul ignore next */ []);
325
+ incrementButtonClass = input(...ngDevMode ? [void 0, { debugName: "incrementButtonClass" }] : /* istanbul ignore next */ []);
326
+ decrementButtonClass = input(...ngDevMode ? [void 0, { debugName: "decrementButtonClass" }] : /* istanbul ignore next */ []);
327
+ incrementButtonIcon = input(...ngDevMode ? [void 0, { debugName: "incrementButtonIcon" }] : /* istanbul ignore next */ []);
328
+ decrementButtonIcon = input(...ngDevMode ? [void 0, { debugName: "decrementButtonIcon" }] : /* istanbul ignore next */ []);
329
+ readonly = input(void 0, {
330
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
331
+ transform: booleanAttribute
332
+ });
333
+ allowEmpty = input(true, {
334
+ ...ngDevMode ? { debugName: "allowEmpty" } : /* istanbul ignore next */ {},
335
+ transform: booleanAttribute
336
+ });
337
+ locale = input(...ngDevMode ? [void 0, { debugName: "locale" }] : /* istanbul ignore next */ []);
338
+ localeMatcher = input(...ngDevMode ? [void 0, { debugName: "localeMatcher" }] : /* istanbul ignore next */ []);
339
+ mode = input("decimal", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
340
+ currency = input(...ngDevMode ? [void 0, { debugName: "currency" }] : /* istanbul ignore next */ []);
341
+ currencyDisplay = input(...ngDevMode ? [void 0, { debugName: "currencyDisplay" }] : /* istanbul ignore next */ []);
342
+ useGrouping = input(true, {
343
+ ...ngDevMode ? { debugName: "useGrouping" } : /* istanbul ignore next */ {},
344
+ transform: booleanAttribute
345
+ });
346
+ minFractionDigits = input(void 0, {
347
+ ...ngDevMode ? { debugName: "minFractionDigits" } : /* istanbul ignore next */ {},
348
+ transform: (value) => numberAttribute(value, void 0)
349
+ });
350
+ maxFractionDigits = input(void 0, {
351
+ ...ngDevMode ? { debugName: "maxFractionDigits" } : /* istanbul ignore next */ {},
352
+ transform: (value) => numberAttribute(value, void 0)
353
+ });
354
+ prefix = input(...ngDevMode ? [void 0, { debugName: "prefix" }] : /* istanbul ignore next */ []);
355
+ suffix = input(...ngDevMode ? [void 0, { debugName: "suffix" }] : /* istanbul ignore next */ []);
356
+ inputStyle = input(...ngDevMode ? [void 0, { debugName: "inputStyle" }] : /* istanbul ignore next */ []);
357
+ inputStyleClass = input(...ngDevMode ? [void 0, { debugName: "inputStyleClass" }] : /* istanbul ignore next */ []);
358
+ showClear = input(false, {
359
+ ...ngDevMode ? { debugName: "showClear" } : /* istanbul ignore next */ {},
360
+ transform: booleanAttribute
361
+ });
362
+ autofocus = input(void 0, {
363
+ ...ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {},
364
+ transform: booleanAttribute
365
+ });
366
+ onInput = output();
367
+ onFocus = output();
368
+ onBlur = output();
369
+ onKeyDown = output();
370
+ onClear = output();
371
+ clearIconTemplate = contentChild("clearicon", {
372
+ ...ngDevMode ? { debugName: "clearIconTemplate" } : /* istanbul ignore next */ {},
373
+ descendants: false
374
+ });
375
+ incrementButtonIconTemplate = contentChild("incrementbuttonicon", {
376
+ ...ngDevMode ? { debugName: "incrementButtonIconTemplate" } : /* istanbul ignore next */ {},
377
+ descendants: false
378
+ });
379
+ decrementButtonIconTemplate = contentChild("decrementbuttonicon", {
380
+ ...ngDevMode ? { debugName: "decrementButtonIconTemplate" } : /* istanbul ignore next */ {},
381
+ descendants: false
382
+ });
383
+ templates = contentChildren(HelixTemplate, ...ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []);
384
+ input = viewChild.required("input", ...ngDevMode ? [{ debugName: "input" }] : /* istanbul ignore next */ []);
385
+ _clearIconTemplate;
386
+ _incrementButtonIconTemplate;
387
+ _decrementButtonIconTemplate;
388
+ value;
389
+ focused;
390
+ initialized;
391
+ groupChar = "";
392
+ prefixChar = "";
393
+ suffixChar = "";
394
+ isSpecialChar;
395
+ timer;
396
+ lastValue;
397
+ _numeral;
398
+ numberFormat;
399
+ _decimal;
400
+ _decimalChar = "";
401
+ _group;
402
+ _minusSign;
403
+ _currency;
404
+ _prefix;
405
+ _suffix;
406
+ _index;
407
+ ngControl = null;
408
+ constructor(injector) {
409
+ super();
410
+ this.injector = injector;
411
+ }
412
+ onChanges(simpleChange) {
413
+ if ([
414
+ "locale",
415
+ "localeMatcher",
416
+ "mode",
417
+ "currency",
418
+ "currencyDisplay",
419
+ "useGrouping",
420
+ "minFractionDigits",
421
+ "maxFractionDigits",
422
+ "prefix",
423
+ "suffix"
424
+ ].some((p) => !!simpleChange[p])) this.updateConstructParser();
425
+ }
426
+ onInit() {
427
+ this.ngControl = this.injector.get(NgControl, null, { optional: true });
428
+ this.constructParser();
429
+ this.initialized = true;
430
+ }
431
+ onAfterContentInit() {
432
+ this.templates().forEach((item) => {
433
+ switch (item.getType()) {
434
+ case "clearicon":
435
+ this._clearIconTemplate = item.template;
436
+ break;
437
+ case "incrementbuttonicon":
438
+ this._incrementButtonIconTemplate = item.template;
439
+ break;
440
+ case "decrementbuttonicon":
441
+ this._decrementButtonIconTemplate = item.template;
442
+ break;
443
+ }
444
+ });
445
+ }
446
+ getOptions() {
447
+ const validateFractionDigits = (value, min, max) => {
448
+ if (value == null || isNaN(value) || !isFinite(value)) return;
449
+ return Math.max(min, Math.min(max, Math.floor(value)));
450
+ };
451
+ const minFractionDigits = validateFractionDigits(this.minFractionDigits(), 0, 20);
452
+ const maxFractionDigits = validateFractionDigits(this.maxFractionDigits(), 0, 100);
453
+ const validatedMinFractionDigits = minFractionDigits != null && maxFractionDigits != null && minFractionDigits > maxFractionDigits ? maxFractionDigits : minFractionDigits;
454
+ return {
455
+ localeMatcher: this.localeMatcher(),
456
+ style: this.mode(),
457
+ currency: this.currency(),
458
+ currencyDisplay: this.currencyDisplay(),
459
+ useGrouping: this.useGrouping(),
460
+ minimumFractionDigits: validatedMinFractionDigits,
461
+ maximumFractionDigits: maxFractionDigits
462
+ };
463
+ }
464
+ constructParser() {
465
+ const options = this.getOptions();
466
+ const cleanOptions = Object.fromEntries(Object.entries(options).filter(([_key, value]) => value !== void 0));
467
+ this.numberFormat = new Intl.NumberFormat(this.locale(), cleanOptions);
468
+ const numerals = [...new Intl.NumberFormat(this.locale(), { useGrouping: false }).format(9876543210)].reverse();
469
+ const index = new Map(numerals.map((d, i) => [d, i]));
470
+ this._numeral = new RegExp(`[${numerals.join("")}]`, "g");
471
+ this._group = this.getGroupingExpression();
472
+ this._minusSign = this.getMinusSignExpression();
473
+ this._currency = this.getCurrencyExpression();
474
+ this._decimal = this.getDecimalExpression();
475
+ this._decimalChar = this.getDecimalChar();
476
+ this._suffix = this.getSuffixExpression();
477
+ this._prefix = this.getPrefixExpression();
478
+ this._index = (d) => index.get(d);
479
+ }
480
+ updateConstructParser() {
481
+ if (this.initialized) this.constructParser();
482
+ }
483
+ escapeRegExp(text) {
484
+ return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
485
+ }
486
+ getDecimalExpression() {
487
+ const decimalChar = this.getDecimalChar();
488
+ return new RegExp(`[${decimalChar}]`, "g");
489
+ }
490
+ getDecimalChar() {
491
+ return new Intl.NumberFormat(this.locale(), {
492
+ ...this.getOptions(),
493
+ useGrouping: false
494
+ }).format(1.1).replace(this._currency, "").trim().replace(this._numeral, "");
495
+ }
496
+ getGroupingExpression() {
497
+ const formatter = new Intl.NumberFormat(this.locale(), { useGrouping: true });
498
+ this.groupChar = formatter.format(1e6).trim().replace(this._numeral, "").charAt(0);
499
+ return new RegExp(`[${this.groupChar}]`, "g");
500
+ }
501
+ getMinusSignExpression() {
502
+ const formatter = new Intl.NumberFormat(this.locale(), { useGrouping: false });
503
+ return new RegExp(`[${formatter.format(-1).trim().replace(this._numeral, "")}]`, "g");
504
+ }
505
+ getCurrencyExpression() {
506
+ const currency = this.currency();
507
+ if (currency) {
508
+ const formatter = new Intl.NumberFormat(this.locale(), {
509
+ style: "currency",
510
+ currency,
511
+ currencyDisplay: this.currencyDisplay(),
512
+ minimumFractionDigits: 0,
513
+ maximumFractionDigits: 0
514
+ });
515
+ return new RegExp(`[${formatter.format(1).replace(/\s/g, "").replace(this._numeral, "").replace(this._group, "")}]`, "g");
516
+ }
517
+ return new RegExp(`[]`, "g");
518
+ }
519
+ getPrefixExpression() {
520
+ const prefix = this.prefix();
521
+ if (prefix) this.prefixChar = prefix;
522
+ else {
523
+ const formatter = new Intl.NumberFormat(this.locale(), {
524
+ style: this.mode(),
525
+ currency: this.currency(),
526
+ currencyDisplay: this.currencyDisplay()
527
+ });
528
+ this.prefixChar = formatter.format(1).split("1")[0];
529
+ }
530
+ return new RegExp(`${this.escapeRegExp(this.prefixChar || "")}`, "g");
531
+ }
532
+ getSuffixExpression() {
533
+ const suffix = this.suffix();
534
+ if (suffix) this.suffixChar = suffix;
535
+ else {
536
+ const formatter = new Intl.NumberFormat(this.locale(), {
537
+ style: this.mode(),
538
+ currency: this.currency(),
539
+ currencyDisplay: this.currencyDisplay(),
540
+ minimumFractionDigits: 0,
541
+ maximumFractionDigits: 0
542
+ });
543
+ this.suffixChar = formatter.format(1).split("1")[1];
544
+ }
545
+ return new RegExp(`${this.escapeRegExp(this.suffixChar || "")}`, "g");
546
+ }
547
+ formatValue(value) {
548
+ if (value != null) {
549
+ if (value === "-") return value;
550
+ if (this.format()) {
551
+ let formattedValue = new Intl.NumberFormat(this.locale(), this.getOptions()).format(value);
552
+ const prefix = this.prefix();
553
+ if (prefix && value != prefix) formattedValue = prefix + formattedValue;
554
+ const suffix = this.suffix();
555
+ if (suffix && value != suffix) formattedValue = formattedValue + suffix;
556
+ return formattedValue;
557
+ }
558
+ return value.toString();
559
+ }
560
+ return "";
561
+ }
562
+ parseValue(text) {
563
+ const suffixRegex = this._suffix ? new RegExp(this._suffix, "") : /(?:)/;
564
+ const prefixRegex = this._prefix ? new RegExp(this._prefix, "") : /(?:)/;
565
+ const currencyRegex = this._currency ? new RegExp(this._currency, "") : /(?:)/;
566
+ let filteredText = text.replace(suffixRegex, "").replace(prefixRegex, "").trim().replace(/\s/g, "").replace(currencyRegex, "").replace(this._group, "").replace(this._minusSign, "-").replace(this._decimal, ".").replace(this._numeral, this._index);
567
+ if (filteredText) {
568
+ if (filteredText === "-") return filteredText;
569
+ let parsedValue = +filteredText;
570
+ return isNaN(parsedValue) ? null : parsedValue;
571
+ }
572
+ return null;
573
+ }
574
+ repeat(event, interval, dir) {
575
+ if (this.readonly()) return;
576
+ let i = interval || 500;
577
+ this.clearTimer();
578
+ this.timer = setTimeout(() => {
579
+ this.repeat(event, 40, dir);
580
+ }, i);
581
+ this.spin(event, dir);
582
+ }
583
+ spin(event, dir) {
584
+ let step = (this.step() ?? 1) * dir;
585
+ let currentValue = this.parseValue(this.input()?.nativeElement.value) || 0;
586
+ let newValue = this.validateValue(currentValue + step);
587
+ const max = this.maxlength();
588
+ if (max && max < this.formatValue(newValue).length) return;
589
+ this.updateInput(newValue, null, "spin", null);
590
+ this.updateModel(event, newValue);
591
+ this.handleOnInput(event, currentValue, newValue);
592
+ }
593
+ clear() {
594
+ this.value = null;
595
+ this.onModelChange(this.value);
596
+ this.onClear.emit();
597
+ }
598
+ onUpButtonMouseDown(event) {
599
+ if (event.button === 2) {
600
+ this.clearTimer();
601
+ return;
602
+ }
603
+ if (!this.$disabled()) {
604
+ this.input()?.nativeElement.focus();
605
+ this.repeat(event, null, 1);
606
+ event.preventDefault();
607
+ }
608
+ }
609
+ onUpButtonMouseUp() {
610
+ if (!this.$disabled()) this.clearTimer();
611
+ }
612
+ onUpButtonMouseLeave() {
613
+ if (!this.$disabled()) this.clearTimer();
614
+ }
615
+ onUpButtonKeyDown(event) {
616
+ if (event.keyCode === 32 || event.keyCode === 13) this.repeat(event, null, 1);
617
+ }
618
+ onUpButtonKeyUp() {
619
+ if (!this.$disabled()) this.clearTimer();
620
+ }
621
+ onDownButtonMouseDown(event) {
622
+ if (event.button === 2) {
623
+ this.clearTimer();
624
+ return;
625
+ }
626
+ if (!this.$disabled()) {
627
+ this.input()?.nativeElement.focus();
628
+ this.repeat(event, null, -1);
629
+ event.preventDefault();
630
+ }
631
+ }
632
+ onDownButtonMouseUp() {
633
+ if (!this.$disabled()) this.clearTimer();
634
+ }
635
+ onDownButtonMouseLeave() {
636
+ if (!this.$disabled()) this.clearTimer();
637
+ }
638
+ onDownButtonKeyUp() {
639
+ if (!this.$disabled()) this.clearTimer();
640
+ }
641
+ onDownButtonKeyDown(event) {
642
+ if (event.keyCode === 32 || event.keyCode === 13) this.repeat(event, null, -1);
643
+ }
644
+ onUserInput(event) {
645
+ if (this.readonly()) return;
646
+ if (this.isSpecialChar) event.target.value = this.lastValue;
647
+ this.isSpecialChar = false;
648
+ }
649
+ onInputKeyDown(event) {
650
+ if (this.readonly()) return;
651
+ this.lastValue = event.target.value;
652
+ if (event.shiftKey || event.altKey) {
653
+ this.isSpecialChar = true;
654
+ return;
655
+ }
656
+ let selectionStart = event.target.selectionStart;
657
+ let selectionEnd = event.target.selectionEnd;
658
+ let inputValue = event.target.value;
659
+ let newValueStr = null;
660
+ if (event.altKey) event.preventDefault();
661
+ const inputVal = this.input();
662
+ switch (event.key) {
663
+ case "ArrowUp":
664
+ this.spin(event, 1);
665
+ event.preventDefault();
666
+ break;
667
+ case "ArrowDown":
668
+ this.spin(event, -1);
669
+ event.preventDefault();
670
+ break;
671
+ case "ArrowLeft":
672
+ for (let index = selectionStart; index <= inputValue.length; index++) {
673
+ const previousCharIndex = index === 0 ? 0 : index - 1;
674
+ if (this.isNumeralChar(inputValue.charAt(previousCharIndex))) {
675
+ this.input().nativeElement.setSelectionRange(index, index);
676
+ break;
677
+ }
678
+ }
679
+ break;
680
+ case "ArrowRight":
681
+ for (let index = selectionEnd; index >= 0; index--) if (this.isNumeralChar(inputValue.charAt(index))) {
682
+ this.input().nativeElement.setSelectionRange(index, index);
683
+ break;
684
+ }
685
+ break;
686
+ case "Tab":
687
+ case "Enter":
688
+ newValueStr = this.validateValue(this.parseValue(this.input().nativeElement.value));
689
+ inputVal.nativeElement.value = this.formatValue(newValueStr);
690
+ inputVal.nativeElement.setAttribute("aria-valuenow", newValueStr);
691
+ this.updateModel(event, newValueStr);
692
+ break;
693
+ case "Backspace":
694
+ event.preventDefault();
695
+ if (selectionStart === selectionEnd) {
696
+ if (selectionStart == 1 && this.prefix() || selectionStart == inputValue.length && this.suffix()) break;
697
+ const deleteChar = inputValue.charAt(selectionStart - 1);
698
+ const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
699
+ if (this.isNumeralChar(deleteChar)) {
700
+ const decimalLength = this.getDecimalLength(inputValue);
701
+ if (this._group.test(deleteChar)) {
702
+ this._group.lastIndex = 0;
703
+ newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
704
+ } else if (this._decimal.test(deleteChar)) {
705
+ this._decimal.lastIndex = 0;
706
+ if (decimalLength) this.input()?.nativeElement.setSelectionRange(selectionStart - 1, selectionStart - 1);
707
+ else newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
708
+ } else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
709
+ const insertedText = this.isDecimalMode() && (this.minFractionDigits() || 0) < decimalLength ? "" : "0";
710
+ newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);
711
+ } else if (decimalCharIndexWithoutPrefix === 1) {
712
+ newValueStr = inputValue.slice(0, selectionStart - 1) + "0" + inputValue.slice(selectionStart);
713
+ newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : "";
714
+ } else newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
715
+ } else if (this.mode() === "currency" && this._currency && deleteChar.search(this._currency) != -1) newValueStr = inputValue.slice(1);
716
+ this.updateValue(event, newValueStr, null, "delete-single");
717
+ } else {
718
+ newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
719
+ this.updateValue(event, newValueStr, null, "delete-range");
720
+ }
721
+ break;
722
+ case "Delete":
723
+ event.preventDefault();
724
+ if (selectionStart === selectionEnd) {
725
+ if (selectionStart == 0 && this.prefix() || selectionStart == inputValue.length - 1 && this.suffix()) break;
726
+ const deleteChar = inputValue.charAt(selectionStart);
727
+ const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
728
+ if (this.isNumeralChar(deleteChar)) {
729
+ const decimalLength = this.getDecimalLength(inputValue);
730
+ if (this._group.test(deleteChar)) {
731
+ this._group.lastIndex = 0;
732
+ newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
733
+ } else if (this._decimal.test(deleteChar)) {
734
+ this._decimal.lastIndex = 0;
735
+ if (decimalLength) this.input()?.nativeElement.setSelectionRange(selectionStart + 1, selectionStart + 1);
736
+ else newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
737
+ } else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
738
+ const insertedText = this.isDecimalMode() && (this.minFractionDigits() || 0) < decimalLength ? "" : "0";
739
+ newValueStr = inputValue.slice(0, selectionStart) + insertedText + inputValue.slice(selectionStart + 1);
740
+ } else if (decimalCharIndexWithoutPrefix === 1) {
741
+ newValueStr = inputValue.slice(0, selectionStart) + "0" + inputValue.slice(selectionStart + 1);
742
+ newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : "";
743
+ } else newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
744
+ }
745
+ this.updateValue(event, newValueStr, null, "delete-back-single");
746
+ } else {
747
+ newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
748
+ this.updateValue(event, newValueStr, null, "delete-range");
749
+ }
750
+ break;
751
+ case "Home":
752
+ if (this.min()) {
753
+ this.updateModel(event, this.min());
754
+ event.preventDefault();
755
+ }
756
+ break;
757
+ case "End":
758
+ if (this.max()) {
759
+ this.updateModel(event, this.max());
760
+ event.preventDefault();
761
+ }
762
+ break;
763
+ default: break;
764
+ }
765
+ this.onKeyDown.emit(event);
766
+ }
767
+ onInputKeyPress(event) {
768
+ if (this.readonly()) return;
769
+ let code = event.which || event.keyCode;
770
+ let char = String.fromCharCode(code);
771
+ let isDecimalSign = this.isDecimalSign(char);
772
+ const isMinusSign = this.isMinusSign(char);
773
+ if (code != 13) event.preventDefault();
774
+ if (!isDecimalSign && event.code === "NumpadDecimal") {
775
+ isDecimalSign = true;
776
+ char = this._decimalChar;
777
+ code = char.charCodeAt(0);
778
+ }
779
+ const { value, selectionStart, selectionEnd } = this.input().nativeElement;
780
+ const newValue = this.parseValue(value + char);
781
+ const newValueStr = newValue != null ? newValue.toString() : "";
782
+ const selectedValue = value.substring(selectionStart, selectionEnd);
783
+ const selectedValueParsed = this.parseValue(selectedValue);
784
+ const selectedValueStr = selectedValueParsed != null ? selectedValueParsed.toString() : "";
785
+ if (selectionStart !== selectionEnd && selectedValueStr.length > 0) {
786
+ this.insert(event, char, {
787
+ isDecimalSign,
788
+ isMinusSign
789
+ });
790
+ return;
791
+ }
792
+ const max = this.maxlength();
793
+ if (max && newValueStr.length > max) return;
794
+ if (48 <= code && code <= 57 || isMinusSign || isDecimalSign) this.insert(event, char, {
795
+ isDecimalSign,
796
+ isMinusSign
797
+ });
798
+ }
799
+ onPaste(event) {
800
+ if (!this.$disabled() && !this.readonly()) {
801
+ event.preventDefault();
802
+ let data = (event.clipboardData || this.document.defaultView["clipboardData"]).getData("Text");
803
+ if (this.inputId() === "integeronly" && /[^\d-]/.test(data)) return;
804
+ if (data) {
805
+ if (this.maxlength()) data = data.toString().substring(0, this.maxlength());
806
+ let filteredData = this.parseValue(data);
807
+ if (filteredData != null) this.insert(event, filteredData.toString());
808
+ }
809
+ }
810
+ }
811
+ allowMinusSign() {
812
+ const min = this.min();
813
+ return min == null || min < 0;
814
+ }
815
+ isMinusSign(char) {
816
+ if (this._minusSign.test(char) || char === "-") {
817
+ this._minusSign.lastIndex = 0;
818
+ return true;
819
+ }
820
+ return false;
821
+ }
822
+ isDecimalSign(char) {
823
+ if (this._decimal.test(char)) {
824
+ this._decimal.lastIndex = 0;
825
+ return true;
826
+ }
827
+ return false;
828
+ }
829
+ isDecimalMode() {
830
+ return this.mode() === "decimal";
831
+ }
832
+ getDecimalCharIndexes(val) {
833
+ let decimalCharIndex = val.search(this._decimal);
834
+ this._decimal.lastIndex = 0;
835
+ const decimalCharIndexWithoutPrefix = val.replace(this._prefix, "").trim().replace(/\s/g, "").replace(this._currency, "").search(this._decimal);
836
+ this._decimal.lastIndex = 0;
837
+ return {
838
+ decimalCharIndex,
839
+ decimalCharIndexWithoutPrefix
840
+ };
841
+ }
842
+ getCharIndexes(val) {
843
+ const decimalCharIndex = val.search(this._decimal);
844
+ this._decimal.lastIndex = 0;
845
+ const minusCharIndex = val.search(this._minusSign);
846
+ this._minusSign.lastIndex = 0;
847
+ const suffixCharIndex = val.search(this._suffix);
848
+ this._suffix.lastIndex = 0;
849
+ const currencyCharIndex = val.search(this._currency);
850
+ this._currency.lastIndex = 0;
851
+ return {
852
+ decimalCharIndex,
853
+ minusCharIndex,
854
+ suffixCharIndex,
855
+ currencyCharIndex
856
+ };
857
+ }
858
+ insert(event, text, sign = {
859
+ isDecimalSign: false,
860
+ isMinusSign: false
861
+ }) {
862
+ const minusCharIndexOnText = text.search(this._minusSign);
863
+ this._minusSign.lastIndex = 0;
864
+ if (!this.allowMinusSign() && minusCharIndexOnText !== -1) return;
865
+ const inputVal = this.input();
866
+ let selectionStart = inputVal?.nativeElement.selectionStart;
867
+ let selectionEnd = inputVal?.nativeElement.selectionEnd;
868
+ let inputValue = inputVal?.nativeElement.value.trim();
869
+ const { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex } = this.getCharIndexes(inputValue);
870
+ let newValueStr;
871
+ if (sign.isMinusSign) {
872
+ if (selectionStart === 0) {
873
+ newValueStr = inputValue;
874
+ if (minusCharIndex === -1 || selectionEnd !== 0) newValueStr = this.insertText(inputValue, text, 0, selectionEnd);
875
+ this.updateValue(event, newValueStr, text, "insert");
876
+ }
877
+ } else if (sign.isDecimalSign) {
878
+ if (decimalCharIndex > 0 && selectionStart === decimalCharIndex) this.updateValue(event, inputValue, text, "insert");
879
+ else if (decimalCharIndex > selectionStart && decimalCharIndex < selectionEnd) {
880
+ newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
881
+ this.updateValue(event, newValueStr, text, "insert");
882
+ } else if (decimalCharIndex === -1 && this.maxFractionDigits()) {
883
+ newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
884
+ this.updateValue(event, newValueStr, text, "insert");
885
+ }
886
+ } else {
887
+ const maxFractionDigits = this.numberFormat.resolvedOptions().maximumFractionDigits;
888
+ const operation = selectionStart !== selectionEnd ? "range-insert" : "insert";
889
+ if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
890
+ if (selectionStart + text.length - (decimalCharIndex + 1) <= maxFractionDigits) {
891
+ const charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length;
892
+ newValueStr = inputValue.slice(0, selectionStart) + text + inputValue.slice(selectionStart + text.length, charIndex) + inputValue.slice(charIndex);
893
+ this.updateValue(event, newValueStr, text, operation);
894
+ }
895
+ } else {
896
+ newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
897
+ this.updateValue(event, newValueStr, text, operation);
898
+ }
899
+ }
900
+ }
901
+ insertText(value, text, start, end) {
902
+ if ((text === "." ? text : text.split(".")).length === 2) {
903
+ const decimalCharIndex = value.slice(start, end).search(this._decimal);
904
+ this._decimal.lastIndex = 0;
905
+ return decimalCharIndex > 0 ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : value || this.formatValue(text);
906
+ } else if (end - start === value.length) return this.formatValue(text);
907
+ else if (start === 0) return text + value.slice(end);
908
+ else if (end === value.length) return value.slice(0, start) + text;
909
+ else return value.slice(0, start) + text + value.slice(end);
910
+ }
911
+ deleteRange(value, start, end) {
912
+ let newValueStr;
913
+ if (end - start === value.length) newValueStr = "";
914
+ else if (start === 0) newValueStr = value.slice(end);
915
+ else if (end === value.length) newValueStr = value.slice(0, start);
916
+ else newValueStr = value.slice(0, start) + value.slice(end);
917
+ return newValueStr;
918
+ }
919
+ initCursor() {
920
+ const inputVal = this.input();
921
+ let selectionStart = inputVal?.nativeElement.selectionStart;
922
+ let selectionEnd = inputVal?.nativeElement.selectionEnd;
923
+ let inputValue = inputVal?.nativeElement.value;
924
+ let valueLength = inputValue.length;
925
+ let index = null;
926
+ let prefixLength = (this.prefixChar || "").length;
927
+ inputValue = inputValue.replace(this._prefix, "");
928
+ if (selectionStart === selectionEnd || selectionStart !== 0 || selectionEnd < prefixLength) selectionStart -= prefixLength;
929
+ let char = inputValue.charAt(selectionStart);
930
+ if (this.isNumeralChar(char)) return selectionStart + prefixLength;
931
+ let i = selectionStart - 1;
932
+ while (i >= 0) {
933
+ char = inputValue.charAt(i);
934
+ if (this.isNumeralChar(char)) {
935
+ index = i + prefixLength;
936
+ break;
937
+ } else i--;
938
+ }
939
+ if (index !== null) inputVal?.nativeElement.setSelectionRange(index + 1, index + 1);
940
+ else {
941
+ i = selectionStart;
942
+ while (i < valueLength) {
943
+ char = inputValue.charAt(i);
944
+ if (this.isNumeralChar(char)) {
945
+ index = i + prefixLength;
946
+ break;
947
+ } else i++;
948
+ }
949
+ if (index !== null) inputVal?.nativeElement.setSelectionRange(index, index);
950
+ }
951
+ return index || 0;
952
+ }
953
+ onInputClick() {
954
+ const currentValue = this.input()?.nativeElement.value;
955
+ if (!this.readonly() && currentValue !== getSelection()) this.initCursor();
956
+ }
957
+ isNumeralChar(char) {
958
+ if (char.length === 1 && (this._numeral.test(char) || this._decimal.test(char) || this._group.test(char) || this._minusSign.test(char))) {
959
+ this.resetRegex();
960
+ return true;
961
+ }
962
+ return false;
963
+ }
964
+ resetRegex() {
965
+ this._numeral.lastIndex = 0;
966
+ this._decimal.lastIndex = 0;
967
+ this._group.lastIndex = 0;
968
+ this._minusSign.lastIndex = 0;
969
+ }
970
+ updateValue(event, valueStr, insertedValueStr, operation) {
971
+ let currentValue = this.input()?.nativeElement.value;
972
+ let newValue = null;
973
+ if (valueStr != null) {
974
+ newValue = this.parseValue(valueStr);
975
+ newValue = !newValue && !this.allowEmpty() ? 0 : newValue;
976
+ this.updateInput(newValue, insertedValueStr, operation, valueStr);
977
+ this.handleOnInput(event, currentValue, newValue);
978
+ }
979
+ }
980
+ handleOnInput(event, currentValue, newValue) {
981
+ if (this.isValueChanged(currentValue, newValue)) {
982
+ this.input().nativeElement.value = this.formatValue(newValue);
983
+ this.input()?.nativeElement.setAttribute("aria-valuenow", newValue);
984
+ this.updateModel(event, newValue);
985
+ this.onInput.emit({
986
+ originalEvent: event,
987
+ value: newValue,
988
+ formattedValue: currentValue
989
+ });
990
+ }
991
+ }
992
+ isValueChanged(currentValue, newValue) {
993
+ if (newValue === null && currentValue !== null) return true;
994
+ if (newValue != null) return newValue !== (typeof currentValue === "string" ? this.parseValue(currentValue) : currentValue);
995
+ return false;
996
+ }
997
+ validateValue(value) {
998
+ if (value === "-" || value == null) return null;
999
+ const min = this.min();
1000
+ const max = this.max();
1001
+ if (min != null && value < min) return this.min();
1002
+ if (max != null && value > max) return max;
1003
+ return value;
1004
+ }
1005
+ updateInput(value, insertedValueStr, operation, valueStr) {
1006
+ insertedValueStr = insertedValueStr || "";
1007
+ const inputVal = this.input();
1008
+ let inputValue = inputVal?.nativeElement.value;
1009
+ let newValue = this.formatValue(value);
1010
+ let currentLength = inputValue.length;
1011
+ if (newValue !== valueStr) newValue = this.concatValues(newValue, valueStr);
1012
+ if (currentLength === 0) {
1013
+ inputVal.nativeElement.value = newValue;
1014
+ inputVal.nativeElement.setSelectionRange(0, 0);
1015
+ const selectionEnd = this.initCursor() + insertedValueStr.length;
1016
+ inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
1017
+ } else {
1018
+ let selectionStart = inputVal.nativeElement.selectionStart;
1019
+ let selectionEnd = inputVal.nativeElement.selectionEnd;
1020
+ const maxlength = this.maxlength();
1021
+ if (maxlength && newValue.length > maxlength) {
1022
+ newValue = newValue.slice(0, maxlength);
1023
+ selectionStart = Math.min(selectionStart, maxlength);
1024
+ selectionEnd = Math.min(selectionEnd, maxlength);
1025
+ }
1026
+ if (maxlength && maxlength < newValue.length) return;
1027
+ inputVal.nativeElement.value = newValue;
1028
+ let newLength = newValue.length;
1029
+ if (operation === "range-insert") {
1030
+ const startValue = this.parseValue((inputValue || "").slice(0, selectionStart));
1031
+ const startExpr = (startValue !== null ? startValue.toString() : "").split("").join(`(${this.groupChar})?`);
1032
+ const sRegex = new RegExp(startExpr, "g");
1033
+ sRegex.test(newValue);
1034
+ const tExpr = insertedValueStr.split("").join(`(${this.groupChar})?`);
1035
+ const tRegex = new RegExp(tExpr, "g");
1036
+ tRegex.test(newValue.slice(sRegex.lastIndex));
1037
+ selectionEnd = sRegex.lastIndex + tRegex.lastIndex;
1038
+ inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
1039
+ } else if (newLength === currentLength) {
1040
+ if (operation === "insert" || operation === "delete-back-single") inputVal.nativeElement.setSelectionRange(selectionEnd + 1, selectionEnd + 1);
1041
+ else if (operation === "delete-single") inputVal.nativeElement.setSelectionRange(selectionEnd - 1, selectionEnd - 1);
1042
+ else if (operation === "delete-range" || operation === "spin") inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
1043
+ } else if (operation === "delete-back-single") {
1044
+ let prevChar = inputValue.charAt(selectionEnd - 1);
1045
+ let nextChar = inputValue.charAt(selectionEnd);
1046
+ let diff = currentLength - newLength;
1047
+ let isGroupChar = this._group.test(nextChar);
1048
+ if (isGroupChar && diff === 1) selectionEnd += 1;
1049
+ else if (!isGroupChar && this.isNumeralChar(prevChar)) selectionEnd += -1 * diff + 1;
1050
+ this._group.lastIndex = 0;
1051
+ inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
1052
+ } else if (inputValue === "-" && operation === "insert") {
1053
+ inputVal.nativeElement.setSelectionRange(0, 0);
1054
+ const selectionEnd = this.initCursor() + insertedValueStr.length + 1;
1055
+ inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
1056
+ } else {
1057
+ selectionEnd = selectionEnd + (newLength - currentLength);
1058
+ inputVal.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
1059
+ }
1060
+ }
1061
+ inputVal.nativeElement.setAttribute("aria-valuenow", value);
1062
+ }
1063
+ concatValues(val1, val2) {
1064
+ if (val1 && val2) {
1065
+ let decimalCharIndex = val2.search(this._decimal);
1066
+ this._decimal.lastIndex = 0;
1067
+ if (this.suffixChar) return decimalCharIndex !== -1 ? val1.replace(this.suffixChar, "").split(this._decimal)[0] + val2.replace(this.suffixChar, "").slice(decimalCharIndex) + this.suffixChar : val1;
1068
+ else return decimalCharIndex !== -1 ? val1.split(this._decimal)[0] + val2.slice(decimalCharIndex) : val1;
1069
+ }
1070
+ return val1;
1071
+ }
1072
+ getDecimalLength(value) {
1073
+ if (value) {
1074
+ const valueSplit = value.split(this._decimal);
1075
+ if (valueSplit.length === 2) return valueSplit[1].replace(this._suffix, "").trim().replace(/\s/g, "").replace(this._currency, "").length;
1076
+ }
1077
+ return 0;
1078
+ }
1079
+ onInputFocus(event) {
1080
+ this.focused = true;
1081
+ this.onFocus.emit(event);
1082
+ }
1083
+ onInputBlur(event) {
1084
+ this.focused = false;
1085
+ const newValueNumber = this.validateValue(this.parseValue(this.input().nativeElement.value));
1086
+ const newValueString = newValueNumber?.toString();
1087
+ this.input().nativeElement.value = this.formatValue(newValueString);
1088
+ this.input().nativeElement.setAttribute("aria-valuenow", newValueString);
1089
+ this.updateModel(event, newValueNumber);
1090
+ this.onModelTouched();
1091
+ this.onBlur.emit(event);
1092
+ }
1093
+ formattedValue() {
1094
+ const val = !this.value && !this.allowEmpty() ? 0 : this.value;
1095
+ return this.formatValue(val);
1096
+ }
1097
+ updateModel(event, value) {
1098
+ const isBlurUpdateOnMode = this.ngControl?.control?.updateOn === "blur";
1099
+ if (this.value !== value) {
1100
+ this.value = value;
1101
+ if (!(isBlurUpdateOnMode && this.focused)) this.onModelChange(value);
1102
+ } else if (isBlurUpdateOnMode) this.onModelChange(value);
1103
+ }
1104
+ writeControlValue(value, setModelValue) {
1105
+ this.value = value ? Number(value) : value;
1106
+ setModelValue(value);
1107
+ this.cd.markForCheck();
1108
+ }
1109
+ clearTimer() {
1110
+ if (this.timer) clearInterval(this.timer);
1111
+ }
1112
+ get dataP() {
1113
+ return this.cn({
1114
+ invalid: this.invalid(),
1115
+ disabled: this.$disabled(),
1116
+ focus: this.focused,
1117
+ fluid: this.hasFluid,
1118
+ filled: this.$variant() === "filled",
1119
+ empty: !this.$filled(),
1120
+ [this.size()]: this.size(),
1121
+ [this.buttonLayout()]: this.showButtons() && this.buttonLayout()
1122
+ });
1123
+ }
1124
+ static ɵfac = i0.ɵɵngDeclareFactory({
1125
+ minVersion: "12.0.0",
1126
+ version: "22.2.1",
1127
+ ngImport: i0,
1128
+ type: InputNumber,
1129
+ deps: [{ token: i0.Injector }],
1130
+ target: i0.ɵɵFactoryTarget.Component
1131
+ });
1132
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1133
+ minVersion: "17.0.0",
1134
+ version: "22.2.1",
1135
+ type: InputNumber,
1136
+ isStandalone: true,
1137
+ selector: "h-inputNumber, h-inputnumber, h-input-number",
1138
+ inputs: {
1139
+ showButtons: {
1140
+ classPropertyName: "showButtons",
1141
+ publicName: "showButtons",
1142
+ isSignal: true,
1143
+ isRequired: false,
1144
+ transformFunction: null
1145
+ },
1146
+ format: {
1147
+ classPropertyName: "format",
1148
+ publicName: "format",
1149
+ isSignal: true,
1150
+ isRequired: false,
1151
+ transformFunction: null
1152
+ },
1153
+ buttonLayout: {
1154
+ classPropertyName: "buttonLayout",
1155
+ publicName: "buttonLayout",
1156
+ isSignal: true,
1157
+ isRequired: false,
1158
+ transformFunction: null
1159
+ },
1160
+ inputId: {
1161
+ classPropertyName: "inputId",
1162
+ publicName: "inputId",
1163
+ isSignal: true,
1164
+ isRequired: false,
1165
+ transformFunction: null
1166
+ },
1167
+ styleClass: {
1168
+ classPropertyName: "styleClass",
1169
+ publicName: "styleClass",
1170
+ isSignal: true,
1171
+ isRequired: false,
1172
+ transformFunction: null
1173
+ },
1174
+ placeholder: {
1175
+ classPropertyName: "placeholder",
1176
+ publicName: "placeholder",
1177
+ isSignal: true,
1178
+ isRequired: false,
1179
+ transformFunction: null
1180
+ },
1181
+ tabindex: {
1182
+ classPropertyName: "tabindex",
1183
+ publicName: "tabindex",
1184
+ isSignal: true,
1185
+ isRequired: false,
1186
+ transformFunction: null
1187
+ },
1188
+ title: {
1189
+ classPropertyName: "title",
1190
+ publicName: "title",
1191
+ isSignal: true,
1192
+ isRequired: false,
1193
+ transformFunction: null
1194
+ },
1195
+ ariaLabelledBy: {
1196
+ classPropertyName: "ariaLabelledBy",
1197
+ publicName: "ariaLabelledBy",
1198
+ isSignal: true,
1199
+ isRequired: false,
1200
+ transformFunction: null
1201
+ },
1202
+ ariaDescribedBy: {
1203
+ classPropertyName: "ariaDescribedBy",
1204
+ publicName: "ariaDescribedBy",
1205
+ isSignal: true,
1206
+ isRequired: false,
1207
+ transformFunction: null
1208
+ },
1209
+ ariaLabel: {
1210
+ classPropertyName: "ariaLabel",
1211
+ publicName: "ariaLabel",
1212
+ isSignal: true,
1213
+ isRequired: false,
1214
+ transformFunction: null
1215
+ },
1216
+ ariaRequired: {
1217
+ classPropertyName: "ariaRequired",
1218
+ publicName: "ariaRequired",
1219
+ isSignal: true,
1220
+ isRequired: false,
1221
+ transformFunction: null
1222
+ },
1223
+ autocomplete: {
1224
+ classPropertyName: "autocomplete",
1225
+ publicName: "autocomplete",
1226
+ isSignal: true,
1227
+ isRequired: false,
1228
+ transformFunction: null
1229
+ },
1230
+ incrementButtonClass: {
1231
+ classPropertyName: "incrementButtonClass",
1232
+ publicName: "incrementButtonClass",
1233
+ isSignal: true,
1234
+ isRequired: false,
1235
+ transformFunction: null
1236
+ },
1237
+ decrementButtonClass: {
1238
+ classPropertyName: "decrementButtonClass",
1239
+ publicName: "decrementButtonClass",
1240
+ isSignal: true,
1241
+ isRequired: false,
1242
+ transformFunction: null
1243
+ },
1244
+ incrementButtonIcon: {
1245
+ classPropertyName: "incrementButtonIcon",
1246
+ publicName: "incrementButtonIcon",
1247
+ isSignal: true,
1248
+ isRequired: false,
1249
+ transformFunction: null
1250
+ },
1251
+ decrementButtonIcon: {
1252
+ classPropertyName: "decrementButtonIcon",
1253
+ publicName: "decrementButtonIcon",
1254
+ isSignal: true,
1255
+ isRequired: false,
1256
+ transformFunction: null
1257
+ },
1258
+ readonly: {
1259
+ classPropertyName: "readonly",
1260
+ publicName: "readonly",
1261
+ isSignal: true,
1262
+ isRequired: false,
1263
+ transformFunction: null
1264
+ },
1265
+ allowEmpty: {
1266
+ classPropertyName: "allowEmpty",
1267
+ publicName: "allowEmpty",
1268
+ isSignal: true,
1269
+ isRequired: false,
1270
+ transformFunction: null
1271
+ },
1272
+ locale: {
1273
+ classPropertyName: "locale",
1274
+ publicName: "locale",
1275
+ isSignal: true,
1276
+ isRequired: false,
1277
+ transformFunction: null
1278
+ },
1279
+ localeMatcher: {
1280
+ classPropertyName: "localeMatcher",
1281
+ publicName: "localeMatcher",
1282
+ isSignal: true,
1283
+ isRequired: false,
1284
+ transformFunction: null
1285
+ },
1286
+ mode: {
1287
+ classPropertyName: "mode",
1288
+ publicName: "mode",
1289
+ isSignal: true,
1290
+ isRequired: false,
1291
+ transformFunction: null
1292
+ },
1293
+ currency: {
1294
+ classPropertyName: "currency",
1295
+ publicName: "currency",
1296
+ isSignal: true,
1297
+ isRequired: false,
1298
+ transformFunction: null
1299
+ },
1300
+ currencyDisplay: {
1301
+ classPropertyName: "currencyDisplay",
1302
+ publicName: "currencyDisplay",
1303
+ isSignal: true,
1304
+ isRequired: false,
1305
+ transformFunction: null
1306
+ },
1307
+ useGrouping: {
1308
+ classPropertyName: "useGrouping",
1309
+ publicName: "useGrouping",
1310
+ isSignal: true,
1311
+ isRequired: false,
1312
+ transformFunction: null
1313
+ },
1314
+ minFractionDigits: {
1315
+ classPropertyName: "minFractionDigits",
1316
+ publicName: "minFractionDigits",
1317
+ isSignal: true,
1318
+ isRequired: false,
1319
+ transformFunction: null
1320
+ },
1321
+ maxFractionDigits: {
1322
+ classPropertyName: "maxFractionDigits",
1323
+ publicName: "maxFractionDigits",
1324
+ isSignal: true,
1325
+ isRequired: false,
1326
+ transformFunction: null
1327
+ },
1328
+ prefix: {
1329
+ classPropertyName: "prefix",
1330
+ publicName: "prefix",
1331
+ isSignal: true,
1332
+ isRequired: false,
1333
+ transformFunction: null
1334
+ },
1335
+ suffix: {
1336
+ classPropertyName: "suffix",
1337
+ publicName: "suffix",
1338
+ isSignal: true,
1339
+ isRequired: false,
1340
+ transformFunction: null
1341
+ },
1342
+ inputStyle: {
1343
+ classPropertyName: "inputStyle",
1344
+ publicName: "inputStyle",
1345
+ isSignal: true,
1346
+ isRequired: false,
1347
+ transformFunction: null
1348
+ },
1349
+ inputStyleClass: {
1350
+ classPropertyName: "inputStyleClass",
1351
+ publicName: "inputStyleClass",
1352
+ isSignal: true,
1353
+ isRequired: false,
1354
+ transformFunction: null
1355
+ },
1356
+ showClear: {
1357
+ classPropertyName: "showClear",
1358
+ publicName: "showClear",
1359
+ isSignal: true,
1360
+ isRequired: false,
1361
+ transformFunction: null
1362
+ },
1363
+ autofocus: {
1364
+ classPropertyName: "autofocus",
1365
+ publicName: "autofocus",
1366
+ isSignal: true,
1367
+ isRequired: false,
1368
+ transformFunction: null
1369
+ }
1370
+ },
1371
+ outputs: {
1372
+ onInput: "onInput",
1373
+ onFocus: "onFocus",
1374
+ onBlur: "onBlur",
1375
+ onKeyDown: "onKeyDown",
1376
+ onClear: "onClear"
1377
+ },
1378
+ host: { properties: {
1379
+ "class": "cn(cx('root'), styleClass())",
1380
+ "attr.data-h": "dataP"
1381
+ } },
1382
+ providers: [
1383
+ INPUTNUMBER_VALUE_ACCESSOR,
1384
+ InputNumberStyle,
1385
+ {
1386
+ provide: INPUTNUMBER_INSTANCE,
1387
+ useExisting: InputNumber
1388
+ },
1389
+ {
1390
+ provide: PARENT_INSTANCE,
1391
+ useExisting: InputNumber
1392
+ }
1393
+ ],
1394
+ queries: [
1395
+ {
1396
+ propertyName: "clearIconTemplate",
1397
+ first: true,
1398
+ predicate: ["clearicon"],
1399
+ isSignal: true
1400
+ },
1401
+ {
1402
+ propertyName: "incrementButtonIconTemplate",
1403
+ first: true,
1404
+ predicate: ["incrementbuttonicon"],
1405
+ isSignal: true
1406
+ },
1407
+ {
1408
+ propertyName: "decrementButtonIconTemplate",
1409
+ first: true,
1410
+ predicate: ["decrementbuttonicon"],
1411
+ isSignal: true
1412
+ },
1413
+ {
1414
+ propertyName: "templates",
1415
+ predicate: HelixTemplate,
1416
+ isSignal: true
1417
+ }
1418
+ ],
1419
+ viewQueries: [{
1420
+ propertyName: "input",
1421
+ first: true,
1422
+ predicate: ["input"],
1423
+ descendants: true,
1424
+ isSignal: true
1425
+ }],
1426
+ usesInheritance: true,
1427
+ hostDirectives: [{ directive: i1.Bind }],
1428
+ ngImport: i0,
1429
+ template: "<input\n hInputText\n #input\n [attr.id]=\"inputId()\"\n role=\"spinbutton\"\n [class]=\"cn(cx('pcInputText'), inputStyleClass())\"\n [value]=\"formattedValue()\"\n [ngStyle]=\"inputStyle()\"\n [variant]=\"$variant()\"\n [invalid]=\"invalid()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"value\"\n [attr.placeholder]=\"placeholder()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.title]=\"title()\"\n [pSize]=\"size()\"\n [attr.size]=\"inputSize()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.minlength]=\"minlength()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-required]=\"ariaRequired()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step() ?? 1\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n inputmode=\"decimal\"\n (input)=\"onUserInput($event)\"\n (keydown)=\"onInputKeyDown($event)\"\n (keypress)=\"onInputKeyPress($event)\"\n (paste)=\"onPaste($event)\"\n (click)=\"onInputClick()\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n [pt]=\"ptm('pcInputText')\"\n [unstyled]=\"unstyled()\"\n [hAutoFocus]=\"autofocus()\"\n [fluid]=\"hasFluid\"\n [attr.data-h]=\"dataP\"\n />\n@if (buttonLayout() != 'vertical' && showClear() && value) {\n @if (!clearIconTemplate() && !_clearIconTemplate) {\n <svg data-h-icon=\"times\" [hBind]=\"ptm('clearIcon')\" [class]=\"cx('clearIcon')\" (click)=\"clear()\" />\n }\n @if (clearIconTemplate() || _clearIconTemplate) {\n <span [hBind]=\"ptm('clearIcon')\" (click)=\"clear()\" [class]=\"cx('clearIcon')\">\n <ng-template *ngTemplateOutlet=\"clearIconTemplate() || _clearIconTemplate\"></ng-template>\n </span>\n }\n}\n@if (showButtons() && buttonLayout() === 'stacked') {\n <span [hBind]=\"ptm('buttonGroup')\" [class]=\"cx('buttonGroup')\" [attr.data-h]=\"dataP\">\n <button\n type=\"button\"\n [hBind]=\"ptm('incrementButton')\"\n [class]=\"cn(cx('incrementButton'), incrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n (mousedown)=\"onUpButtonMouseDown($event)\"\n (mouseup)=\"onUpButtonMouseUp()\"\n (mouseleave)=\"onUpButtonMouseLeave()\"\n (keydown)=\"onUpButtonKeyDown($event)\"\n (keyup)=\"onUpButtonKeyUp()\"\n [attr.aria-hidden]=\"true\"\n [attr.data-h]=\"dataP\"\n >\n @if (incrementButtonIcon()) {\n <span [hBind]=\"ptm('incrementButtonIcon')\" [ngClass]=\"incrementButtonIcon()\"></span>\n }\n @if (!incrementButtonIcon()) {\n @if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-up\" [hBind]=\"ptm('incrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"incrementButtonIconTemplate() || _incrementButtonIconTemplate\"></ng-template>\n }\n </button>\n <button\n type=\"button\"\n [hBind]=\"ptm('decrementButton')\"\n [class]=\"cn(cx('decrementButton'), decrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onDownButtonMouseDown($event)\"\n (mouseup)=\"onDownButtonMouseUp()\"\n (mouseleave)=\"onDownButtonMouseLeave()\"\n (keydown)=\"onDownButtonKeyDown($event)\"\n (keyup)=\"onDownButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (decrementButtonIcon()) {\n <span [hBind]=\"ptm('decrementButtonIcon')\" [ngClass]=\"decrementButtonIcon()\"></span>\n }\n @if (!decrementButtonIcon()) {\n @if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-down\" [hBind]=\"ptm('decrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"decrementButtonIconTemplate() || _decrementButtonIconTemplate\"></ng-template>\n }\n </button>\n </span>\n}\n@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n [hBind]=\"ptm('incrementButton')\"\n [class]=\"cn(cx('incrementButton'), incrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onUpButtonMouseDown($event)\"\n (mouseup)=\"onUpButtonMouseUp()\"\n (mouseleave)=\"onUpButtonMouseLeave()\"\n (keydown)=\"onUpButtonKeyDown($event)\"\n (keyup)=\"onUpButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (incrementButtonIcon()) {\n <span [hBind]=\"ptm('incrementButtonIcon')\" [ngClass]=\"incrementButtonIcon()\"></span>\n }\n @if (!incrementButtonIcon()) {\n @if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-up\" [hBind]=\"ptm('incrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"incrementButtonIconTemplate() || _incrementButtonIconTemplate\"></ng-template>\n }\n </button>\n}\n@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n [hBind]=\"ptm('decrementButton')\"\n [class]=\"cn(cx('decrementButton'), decrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onDownButtonMouseDown($event)\"\n (mouseup)=\"onDownButtonMouseUp()\"\n (mouseleave)=\"onDownButtonMouseLeave()\"\n (keydown)=\"onDownButtonKeyDown($event)\"\n (keyup)=\"onDownButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (decrementButtonIcon()) {\n <span [hBind]=\"ptm('decrementButtonIcon')\" [ngClass]=\"decrementButtonIcon()\"></span>\n }\n @if (!decrementButtonIcon()) {\n @if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-down\" [hBind]=\"ptm('decrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"decrementButtonIconTemplate() || _decrementButtonIconTemplate\"></ng-template>\n }\n </button>\n}\n",
1430
+ dependencies: [
1431
+ {
1432
+ kind: "ngmodule",
1433
+ type: CommonModule
1434
+ },
1435
+ {
1436
+ kind: "directive",
1437
+ type: i2.NgClass,
1438
+ selector: "[ngClass]",
1439
+ inputs: ["class", "ngClass"]
1440
+ },
1441
+ {
1442
+ kind: "directive",
1443
+ type: i2.NgTemplateOutlet,
1444
+ selector: "[ngTemplateOutlet]",
1445
+ inputs: [
1446
+ "ngTemplateOutletContext",
1447
+ "ngTemplateOutlet",
1448
+ "ngTemplateOutletInjector"
1449
+ ]
1450
+ },
1451
+ {
1452
+ kind: "directive",
1453
+ type: i2.NgStyle,
1454
+ selector: "[ngStyle]",
1455
+ inputs: ["ngStyle"]
1456
+ },
1457
+ {
1458
+ kind: "directive",
1459
+ type: InputText,
1460
+ selector: "[hInputText]",
1461
+ inputs: [
1462
+ "hostName",
1463
+ "ptInputText",
1464
+ "pInputTextPT",
1465
+ "pInputTextUnstyled",
1466
+ "pSize",
1467
+ "variant",
1468
+ "fluid",
1469
+ "invalid"
1470
+ ]
1471
+ },
1472
+ {
1473
+ kind: "directive",
1474
+ type: AutoFocus,
1475
+ selector: "[hAutoFocus]",
1476
+ inputs: ["hAutoFocus"]
1477
+ },
1478
+ {
1479
+ kind: "component",
1480
+ type: TimesIcon,
1481
+ selector: "[data-h-icon=\"times\"]"
1482
+ },
1483
+ {
1484
+ kind: "component",
1485
+ type: AngleUpIcon,
1486
+ selector: "[data-h-icon=\"angle-up\"]"
1487
+ },
1488
+ {
1489
+ kind: "component",
1490
+ type: AngleDownIcon,
1491
+ selector: "[data-h-icon=\"angle-down\"]"
1492
+ },
1493
+ {
1494
+ kind: "ngmodule",
1495
+ type: SharedModule
1496
+ },
1497
+ {
1498
+ kind: "ngmodule",
1499
+ type: BindModule
1500
+ },
1501
+ {
1502
+ kind: "directive",
1503
+ type: i1.Bind,
1504
+ selector: "[hBind]",
1505
+ inputs: ["hBind"]
1506
+ }
1507
+ ],
1508
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1509
+ encapsulation: i0.ViewEncapsulation.None
1510
+ });
1511
+ };
1512
+ i0.ɵɵngDeclareClassMetadata({
1513
+ minVersion: "12.0.0",
1514
+ version: "22.2.1",
1515
+ ngImport: i0,
1516
+ type: InputNumber,
1517
+ decorators: [{
1518
+ type: Component,
1519
+ args: [{
1520
+ selector: "h-inputNumber, h-inputnumber, h-input-number",
1521
+ standalone: true,
1522
+ imports: [
1523
+ CommonModule,
1524
+ InputText,
1525
+ AutoFocus,
1526
+ TimesIcon,
1527
+ AngleUpIcon,
1528
+ AngleDownIcon,
1529
+ SharedModule,
1530
+ BindModule
1531
+ ],
1532
+ changeDetection: ChangeDetectionStrategy.OnPush,
1533
+ providers: [
1534
+ INPUTNUMBER_VALUE_ACCESSOR,
1535
+ InputNumberStyle,
1536
+ {
1537
+ provide: INPUTNUMBER_INSTANCE,
1538
+ useExisting: InputNumber
1539
+ },
1540
+ {
1541
+ provide: PARENT_INSTANCE,
1542
+ useExisting: InputNumber
1543
+ }
1544
+ ],
1545
+ encapsulation: ViewEncapsulation.None,
1546
+ host: {
1547
+ "[class]": "cn(cx('root'), styleClass())",
1548
+ "[attr.data-h]": "dataP"
1549
+ },
1550
+ hostDirectives: [Bind],
1551
+ template: "<input\n hInputText\n #input\n [attr.id]=\"inputId()\"\n role=\"spinbutton\"\n [class]=\"cn(cx('pcInputText'), inputStyleClass())\"\n [value]=\"formattedValue()\"\n [ngStyle]=\"inputStyle()\"\n [variant]=\"$variant()\"\n [invalid]=\"invalid()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"value\"\n [attr.placeholder]=\"placeholder()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.title]=\"title()\"\n [pSize]=\"size()\"\n [attr.size]=\"inputSize()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.minlength]=\"minlength()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-required]=\"ariaRequired()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step() ?? 1\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n inputmode=\"decimal\"\n (input)=\"onUserInput($event)\"\n (keydown)=\"onInputKeyDown($event)\"\n (keypress)=\"onInputKeyPress($event)\"\n (paste)=\"onPaste($event)\"\n (click)=\"onInputClick()\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n [pt]=\"ptm('pcInputText')\"\n [unstyled]=\"unstyled()\"\n [hAutoFocus]=\"autofocus()\"\n [fluid]=\"hasFluid\"\n [attr.data-h]=\"dataP\"\n />\n@if (buttonLayout() != 'vertical' && showClear() && value) {\n @if (!clearIconTemplate() && !_clearIconTemplate) {\n <svg data-h-icon=\"times\" [hBind]=\"ptm('clearIcon')\" [class]=\"cx('clearIcon')\" (click)=\"clear()\" />\n }\n @if (clearIconTemplate() || _clearIconTemplate) {\n <span [hBind]=\"ptm('clearIcon')\" (click)=\"clear()\" [class]=\"cx('clearIcon')\">\n <ng-template *ngTemplateOutlet=\"clearIconTemplate() || _clearIconTemplate\"></ng-template>\n </span>\n }\n}\n@if (showButtons() && buttonLayout() === 'stacked') {\n <span [hBind]=\"ptm('buttonGroup')\" [class]=\"cx('buttonGroup')\" [attr.data-h]=\"dataP\">\n <button\n type=\"button\"\n [hBind]=\"ptm('incrementButton')\"\n [class]=\"cn(cx('incrementButton'), incrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n (mousedown)=\"onUpButtonMouseDown($event)\"\n (mouseup)=\"onUpButtonMouseUp()\"\n (mouseleave)=\"onUpButtonMouseLeave()\"\n (keydown)=\"onUpButtonKeyDown($event)\"\n (keyup)=\"onUpButtonKeyUp()\"\n [attr.aria-hidden]=\"true\"\n [attr.data-h]=\"dataP\"\n >\n @if (incrementButtonIcon()) {\n <span [hBind]=\"ptm('incrementButtonIcon')\" [ngClass]=\"incrementButtonIcon()\"></span>\n }\n @if (!incrementButtonIcon()) {\n @if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-up\" [hBind]=\"ptm('incrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"incrementButtonIconTemplate() || _incrementButtonIconTemplate\"></ng-template>\n }\n </button>\n <button\n type=\"button\"\n [hBind]=\"ptm('decrementButton')\"\n [class]=\"cn(cx('decrementButton'), decrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onDownButtonMouseDown($event)\"\n (mouseup)=\"onDownButtonMouseUp()\"\n (mouseleave)=\"onDownButtonMouseLeave()\"\n (keydown)=\"onDownButtonKeyDown($event)\"\n (keyup)=\"onDownButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (decrementButtonIcon()) {\n <span [hBind]=\"ptm('decrementButtonIcon')\" [ngClass]=\"decrementButtonIcon()\"></span>\n }\n @if (!decrementButtonIcon()) {\n @if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-down\" [hBind]=\"ptm('decrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"decrementButtonIconTemplate() || _decrementButtonIconTemplate\"></ng-template>\n }\n </button>\n </span>\n}\n@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n [hBind]=\"ptm('incrementButton')\"\n [class]=\"cn(cx('incrementButton'), incrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onUpButtonMouseDown($event)\"\n (mouseup)=\"onUpButtonMouseUp()\"\n (mouseleave)=\"onUpButtonMouseLeave()\"\n (keydown)=\"onUpButtonKeyDown($event)\"\n (keyup)=\"onUpButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (incrementButtonIcon()) {\n <span [hBind]=\"ptm('incrementButtonIcon')\" [ngClass]=\"incrementButtonIcon()\"></span>\n }\n @if (!incrementButtonIcon()) {\n @if (!incrementButtonIconTemplate() && !_incrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-up\" [hBind]=\"ptm('incrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"incrementButtonIconTemplate() || _incrementButtonIconTemplate\"></ng-template>\n }\n </button>\n}\n@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n [hBind]=\"ptm('decrementButton')\"\n [class]=\"cn(cx('decrementButton'), decrementButtonClass())\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n tabindex=\"-1\"\n [attr.aria-hidden]=\"true\"\n (mousedown)=\"onDownButtonMouseDown($event)\"\n (mouseup)=\"onDownButtonMouseUp()\"\n (mouseleave)=\"onDownButtonMouseLeave()\"\n (keydown)=\"onDownButtonKeyDown($event)\"\n (keyup)=\"onDownButtonKeyUp()\"\n [attr.data-h]=\"dataP\"\n >\n @if (decrementButtonIcon()) {\n <span [hBind]=\"ptm('decrementButtonIcon')\" [ngClass]=\"decrementButtonIcon()\"></span>\n }\n @if (!decrementButtonIcon()) {\n @if (!decrementButtonIconTemplate() && !_decrementButtonIconTemplate) {\n <svg data-h-icon=\"angle-down\" [hBind]=\"ptm('decrementButtonIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"decrementButtonIconTemplate() || _decrementButtonIconTemplate\"></ng-template>\n }\n </button>\n}\n"
1552
+ }]
1553
+ }],
1554
+ ctorParameters: () => [{ type: i0.Injector }],
1555
+ propDecorators: {
1556
+ showButtons: [{
1557
+ type: i0.Input,
1558
+ args: [{
1559
+ isSignal: true,
1560
+ alias: "showButtons",
1561
+ required: false
1562
+ }]
1563
+ }],
1564
+ format: [{
1565
+ type: i0.Input,
1566
+ args: [{
1567
+ isSignal: true,
1568
+ alias: "format",
1569
+ required: false
1570
+ }]
1571
+ }],
1572
+ buttonLayout: [{
1573
+ type: i0.Input,
1574
+ args: [{
1575
+ isSignal: true,
1576
+ alias: "buttonLayout",
1577
+ required: false
1578
+ }]
1579
+ }],
1580
+ inputId: [{
1581
+ type: i0.Input,
1582
+ args: [{
1583
+ isSignal: true,
1584
+ alias: "inputId",
1585
+ required: false
1586
+ }]
1587
+ }],
1588
+ styleClass: [{
1589
+ type: i0.Input,
1590
+ args: [{
1591
+ isSignal: true,
1592
+ alias: "styleClass",
1593
+ required: false
1594
+ }]
1595
+ }],
1596
+ placeholder: [{
1597
+ type: i0.Input,
1598
+ args: [{
1599
+ isSignal: true,
1600
+ alias: "placeholder",
1601
+ required: false
1602
+ }]
1603
+ }],
1604
+ tabindex: [{
1605
+ type: i0.Input,
1606
+ args: [{
1607
+ isSignal: true,
1608
+ alias: "tabindex",
1609
+ required: false
1610
+ }]
1611
+ }],
1612
+ title: [{
1613
+ type: i0.Input,
1614
+ args: [{
1615
+ isSignal: true,
1616
+ alias: "title",
1617
+ required: false
1618
+ }]
1619
+ }],
1620
+ ariaLabelledBy: [{
1621
+ type: i0.Input,
1622
+ args: [{
1623
+ isSignal: true,
1624
+ alias: "ariaLabelledBy",
1625
+ required: false
1626
+ }]
1627
+ }],
1628
+ ariaDescribedBy: [{
1629
+ type: i0.Input,
1630
+ args: [{
1631
+ isSignal: true,
1632
+ alias: "ariaDescribedBy",
1633
+ required: false
1634
+ }]
1635
+ }],
1636
+ ariaLabel: [{
1637
+ type: i0.Input,
1638
+ args: [{
1639
+ isSignal: true,
1640
+ alias: "ariaLabel",
1641
+ required: false
1642
+ }]
1643
+ }],
1644
+ ariaRequired: [{
1645
+ type: i0.Input,
1646
+ args: [{
1647
+ isSignal: true,
1648
+ alias: "ariaRequired",
1649
+ required: false
1650
+ }]
1651
+ }],
1652
+ autocomplete: [{
1653
+ type: i0.Input,
1654
+ args: [{
1655
+ isSignal: true,
1656
+ alias: "autocomplete",
1657
+ required: false
1658
+ }]
1659
+ }],
1660
+ incrementButtonClass: [{
1661
+ type: i0.Input,
1662
+ args: [{
1663
+ isSignal: true,
1664
+ alias: "incrementButtonClass",
1665
+ required: false
1666
+ }]
1667
+ }],
1668
+ decrementButtonClass: [{
1669
+ type: i0.Input,
1670
+ args: [{
1671
+ isSignal: true,
1672
+ alias: "decrementButtonClass",
1673
+ required: false
1674
+ }]
1675
+ }],
1676
+ incrementButtonIcon: [{
1677
+ type: i0.Input,
1678
+ args: [{
1679
+ isSignal: true,
1680
+ alias: "incrementButtonIcon",
1681
+ required: false
1682
+ }]
1683
+ }],
1684
+ decrementButtonIcon: [{
1685
+ type: i0.Input,
1686
+ args: [{
1687
+ isSignal: true,
1688
+ alias: "decrementButtonIcon",
1689
+ required: false
1690
+ }]
1691
+ }],
1692
+ readonly: [{
1693
+ type: i0.Input,
1694
+ args: [{
1695
+ isSignal: true,
1696
+ alias: "readonly",
1697
+ required: false
1698
+ }]
1699
+ }],
1700
+ allowEmpty: [{
1701
+ type: i0.Input,
1702
+ args: [{
1703
+ isSignal: true,
1704
+ alias: "allowEmpty",
1705
+ required: false
1706
+ }]
1707
+ }],
1708
+ locale: [{
1709
+ type: i0.Input,
1710
+ args: [{
1711
+ isSignal: true,
1712
+ alias: "locale",
1713
+ required: false
1714
+ }]
1715
+ }],
1716
+ localeMatcher: [{
1717
+ type: i0.Input,
1718
+ args: [{
1719
+ isSignal: true,
1720
+ alias: "localeMatcher",
1721
+ required: false
1722
+ }]
1723
+ }],
1724
+ mode: [{
1725
+ type: i0.Input,
1726
+ args: [{
1727
+ isSignal: true,
1728
+ alias: "mode",
1729
+ required: false
1730
+ }]
1731
+ }],
1732
+ currency: [{
1733
+ type: i0.Input,
1734
+ args: [{
1735
+ isSignal: true,
1736
+ alias: "currency",
1737
+ required: false
1738
+ }]
1739
+ }],
1740
+ currencyDisplay: [{
1741
+ type: i0.Input,
1742
+ args: [{
1743
+ isSignal: true,
1744
+ alias: "currencyDisplay",
1745
+ required: false
1746
+ }]
1747
+ }],
1748
+ useGrouping: [{
1749
+ type: i0.Input,
1750
+ args: [{
1751
+ isSignal: true,
1752
+ alias: "useGrouping",
1753
+ required: false
1754
+ }]
1755
+ }],
1756
+ minFractionDigits: [{
1757
+ type: i0.Input,
1758
+ args: [{
1759
+ isSignal: true,
1760
+ alias: "minFractionDigits",
1761
+ required: false
1762
+ }]
1763
+ }],
1764
+ maxFractionDigits: [{
1765
+ type: i0.Input,
1766
+ args: [{
1767
+ isSignal: true,
1768
+ alias: "maxFractionDigits",
1769
+ required: false
1770
+ }]
1771
+ }],
1772
+ prefix: [{
1773
+ type: i0.Input,
1774
+ args: [{
1775
+ isSignal: true,
1776
+ alias: "prefix",
1777
+ required: false
1778
+ }]
1779
+ }],
1780
+ suffix: [{
1781
+ type: i0.Input,
1782
+ args: [{
1783
+ isSignal: true,
1784
+ alias: "suffix",
1785
+ required: false
1786
+ }]
1787
+ }],
1788
+ inputStyle: [{
1789
+ type: i0.Input,
1790
+ args: [{
1791
+ isSignal: true,
1792
+ alias: "inputStyle",
1793
+ required: false
1794
+ }]
1795
+ }],
1796
+ inputStyleClass: [{
1797
+ type: i0.Input,
1798
+ args: [{
1799
+ isSignal: true,
1800
+ alias: "inputStyleClass",
1801
+ required: false
1802
+ }]
1803
+ }],
1804
+ showClear: [{
1805
+ type: i0.Input,
1806
+ args: [{
1807
+ isSignal: true,
1808
+ alias: "showClear",
1809
+ required: false
1810
+ }]
1811
+ }],
1812
+ autofocus: [{
1813
+ type: i0.Input,
1814
+ args: [{
1815
+ isSignal: true,
1816
+ alias: "autofocus",
1817
+ required: false
1818
+ }]
1819
+ }],
1820
+ onInput: [{
1821
+ type: i0.Output,
1822
+ args: ["onInput"]
1823
+ }],
1824
+ onFocus: [{
1825
+ type: i0.Output,
1826
+ args: ["onFocus"]
1827
+ }],
1828
+ onBlur: [{
1829
+ type: i0.Output,
1830
+ args: ["onBlur"]
1831
+ }],
1832
+ onKeyDown: [{
1833
+ type: i0.Output,
1834
+ args: ["onKeyDown"]
1835
+ }],
1836
+ onClear: [{
1837
+ type: i0.Output,
1838
+ args: ["onClear"]
1839
+ }],
1840
+ clearIconTemplate: [{
1841
+ type: i0.ContentChild,
1842
+ args: ["clearicon", {
1843
+ descendants: false,
1844
+ isSignal: true
1845
+ }]
1846
+ }],
1847
+ incrementButtonIconTemplate: [{
1848
+ type: i0.ContentChild,
1849
+ args: ["incrementbuttonicon", {
1850
+ descendants: false,
1851
+ isSignal: true
1852
+ }]
1853
+ }],
1854
+ decrementButtonIconTemplate: [{
1855
+ type: i0.ContentChild,
1856
+ args: ["decrementbuttonicon", {
1857
+ descendants: false,
1858
+ isSignal: true
1859
+ }]
1860
+ }],
1861
+ templates: [{
1862
+ type: i0.ContentChildren,
1863
+ args: [i0.forwardRef(() => HelixTemplate), { isSignal: true }]
1864
+ }],
1865
+ input: [{
1866
+ type: i0.ViewChild,
1867
+ args: ["input", { isSignal: true }]
1868
+ }]
1869
+ }
1870
+ });
1871
+ var InputNumberModule = class InputNumberModule {
1872
+ static ɵfac = i0.ɵɵngDeclareFactory({
1873
+ minVersion: "12.0.0",
1874
+ version: "22.2.1",
1875
+ ngImport: i0,
1876
+ type: InputNumberModule,
1877
+ deps: [],
1878
+ target: i0.ɵɵFactoryTarget.NgModule
1879
+ });
1880
+ static ɵmod = i0.ɵɵngDeclareNgModule({
1881
+ minVersion: "14.0.0",
1882
+ version: "22.2.1",
1883
+ ngImport: i0,
1884
+ type: InputNumberModule,
1885
+ imports: [InputNumber, SharedModule],
1886
+ exports: [InputNumber, SharedModule]
1887
+ });
1888
+ static ɵinj = i0.ɵɵngDeclareInjector({
1889
+ minVersion: "12.0.0",
1890
+ version: "22.2.1",
1891
+ ngImport: i0,
1892
+ type: InputNumberModule,
1893
+ imports: [
1894
+ InputNumber,
1895
+ SharedModule,
1896
+ SharedModule
1897
+ ]
1898
+ });
1899
+ };
1900
+ i0.ɵɵngDeclareClassMetadata({
1901
+ minVersion: "12.0.0",
1902
+ version: "22.2.1",
1903
+ ngImport: i0,
1904
+ type: InputNumberModule,
1905
+ decorators: [{
1906
+ type: NgModule,
1907
+ args: [{
1908
+ imports: [InputNumber, SharedModule],
1909
+ exports: [InputNumber, SharedModule]
1910
+ }]
1911
+ }]
1912
+ });
1512
1913
  export { INPUTNUMBER_VALUE_ACCESSOR, InputNumber, InputNumberClasses, InputNumberModule, InputNumberStyle };
1513
- //# sourceMappingURL=gravionlabs-helix-core-inputnumber.mjs.map
1914
+
1915
+ //# sourceMappingURL=gravionlabs-helix-core-inputnumber.mjs.map