@gravionlabs/helix-core 22.1.2 → 22.1.4

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,20 @@
1
- export * from '@gravionlabs/helix-core/types/inputmask';
2
- import * as i2 from '@angular/common';
3
- import { isPlatformBrowser, CommonModule } from '@angular/common';
4
- import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, inject, input, booleanAttribute, output, effect, Directive, forwardRef, computed, contentChild, contentChildren, viewChild, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
7
- import { getUserAgent, isClient } from '@gravionlabs/helix-core/uix/utils';
8
- import { HelixTemplate, SharedModule } from '@gravionlabs/helix-core/api';
9
- import { AutoFocus } from '@gravionlabs/helix-core/autofocus';
10
- import { BaseComponent, PARENT_INSTANCE } from '@gravionlabs/helix-core/basecomponent';
11
- import { BaseInput } from '@gravionlabs/helix-core/baseinput';
12
- import * as i1 from '@gravionlabs/helix-core/bind';
13
- import { Bind, BindModule } from '@gravionlabs/helix-core/bind';
14
- import { TimesIcon } from '@gravionlabs/helix-core/icons';
15
- import { InputText } from '@gravionlabs/helix-core/inputtext';
16
- import { BaseStyle } from '@gravionlabs/helix-core/base';
17
-
18
- const style = /*css*/ `
1
+ import * as i2 from "@angular/common";
2
+ import { CommonModule, isPlatformBrowser } from "@angular/common";
3
+ import * as i0 from "@angular/core";
4
+ import { ChangeDetectionStrategy, Component, Directive, Injectable, InjectionToken, NgModule, ViewEncapsulation, booleanAttribute, computed, contentChild, contentChildren, effect, forwardRef, inject, input, output, viewChild } from "@angular/core";
5
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
6
+ import { getUserAgent, isClient } 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 { BaseComponent, 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 } 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/inputmask";
17
+ const style = `
19
18
  /* For Helix */
20
19
  h-inputmask {
21
20
  position: relative;
@@ -55,1321 +54,1573 @@ const style = /*css*/ `
55
54
  }
56
55
  `;
57
56
  const classes = {
58
- root: ({ instance }) => [
59
- 'h-inputmask h-component h-inputwrapper',
60
- {
61
- 'h-variant-filled': instance.$variant() === 'filled'
62
- }
63
- ],
64
- clearIcon: 'h-inputmask-clear-icon'
57
+ root: ({ instance }) => ["h-inputmask h-component h-inputwrapper", { "h-variant-filled": instance.$variant() === "filled" }],
58
+ clearIcon: "h-inputmask-clear-icon"
59
+ };
60
+ var InputMaskStyle = class InputMaskStyle extends BaseStyle {
61
+ name = "inputmask";
62
+ style = style;
63
+ classes = classes;
64
+ static ɵfac = i0.ɵɵngDeclareFactory({
65
+ minVersion: "12.0.0",
66
+ version: "22.2.1",
67
+ ngImport: i0,
68
+ type: InputMaskStyle,
69
+ deps: null,
70
+ target: i0.ɵɵFactoryTarget.Injectable
71
+ });
72
+ static ɵprov = i0.ɵɵngDeclareInjectable({
73
+ minVersion: "12.0.0",
74
+ version: "22.2.1",
75
+ ngImport: i0,
76
+ type: InputMaskStyle
77
+ });
65
78
  };
66
- class InputMaskStyle extends BaseStyle {
67
- name = 'inputmask';
68
- style = style;
69
- classes = classes;
70
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputMaskStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
71
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputMaskStyle });
72
- }
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputMaskStyle, decorators: [{
74
- type: Injectable
75
- }] });
76
- /**
77
- *
78
- * InputMask component is used to enter input in a certain format such as numeric, date, currency, email and phone.
79
- *
80
- * [Live Demo](https://www.primeng.org/inputmask/)
81
- *
82
- * @module inputmaskstyle
83
- *
84
- */
79
+ i0.ɵɵngDeclareClassMetadata({
80
+ minVersion: "12.0.0",
81
+ version: "22.2.1",
82
+ ngImport: i0,
83
+ type: InputMaskStyle,
84
+ decorators: [{ type: Injectable }]
85
+ });
85
86
  var InputMaskClasses;
86
- (function (InputMaskClasses) {
87
- /**
88
- * Class name of the root element
89
- */
90
- InputMaskClasses["root"] = "h-inputmask";
91
- /**
92
- * Class name of the clear icon element
93
- */
94
- InputMaskClasses["clearIcon"] = "h-inputmask-clear-icon";
87
+ (function(InputMaskClasses) {
88
+ InputMaskClasses["root"] = "h-inputmask";
89
+ InputMaskClasses["clearIcon"] = "h-inputmask-clear-icon";
95
90
  })(InputMaskClasses || (InputMaskClasses = {}));
96
-
97
- /*
98
- Port of jQuery MaskedInput by DigitalBush as a Native Angular2 Component in Typescript without jQuery
99
- https://github.com/digitalBush/jquery.maskedinput/
100
-
101
- Copyright (c) 2007-2014 Josh Bush (digitalbush.com)
102
-
103
- Permission is hereby granted, free of charge, to any person
104
- obtaining a copy of this software and associated documentation
105
- files (the "Software"), to deal in the Software without
106
- restriction, including without limitation the rights to use,
107
- copy, modify, merge, publish, distribute, sublicense, and/or sell
108
- copies of the Software, and to permit persons to whom the
109
- Software is furnished to do so, subject to the following
110
- conditions:
111
-
112
- The above copyright notice and this permission notice shall be
113
- included in all copies or substantial portions of the Software.
114
-
115
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
116
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
117
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
118
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
119
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
120
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
121
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
122
- OTHER DEALINGS IN THE SOFTWARE.
123
- */
124
- const INPUTMASK_INSTANCE = new InjectionToken('INPUTMASK_INSTANCE');
125
- const INPUTMASK_DIRECTIVE_INSTANCE = new InjectionToken('INPUTMASK_DIRECTIVE_INSTANCE');
126
- /**
127
- * InputMask directive is applied directly to input elements to enable masked input.
128
- * @group Components
129
- */
130
- class InputMaskDirective extends BaseComponent {
131
- $pcInputMaskDirective = inject(INPUTMASK_DIRECTIVE_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
132
- _componentStyle = inject(InputMaskStyle);
133
- /**
134
- * Used to pass attributes to DOM elements inside the InputMask directive.
135
- * @defaultValue undefined
136
- * @group Props
137
- */
138
- pInputMaskPT = input(/* @ts-ignore */
139
- ...(ngDevMode ? [undefined, { debugName: "pInputMaskPT" }] : /* istanbul ignore next */ []));
140
- /**
141
- * Indicates whether the component should be rendered without styles.
142
- * @defaultValue undefined
143
- * @group Props
144
- */
145
- pInputMaskUnstyled = input(/* @ts-ignore */
146
- ...(ngDevMode ? [undefined, { debugName: "pInputMaskUnstyled" }] : /* istanbul ignore next */ []));
147
- /**
148
- * Mask pattern.
149
- * @group Props
150
- */
151
- hInputMask = input(/* @ts-ignore */
152
- ...(ngDevMode ? [undefined, { debugName: "hInputMask" }] : /* istanbul ignore next */ []));
153
- /**
154
- * Placeholder character in mask, default is underscore.
155
- * @group Props
156
- */
157
- slotChar = input('_', /* @ts-ignore */
158
- ...(ngDevMode ? [{ debugName: "slotChar" }] : /* istanbul ignore next */ []));
159
- /**
160
- * Clears the incomplete value on blur.
161
- * @group Props
162
- */
163
- autoClear = input(true, { ...(ngDevMode ? { debugName: "autoClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
164
- /**
165
- * Regex pattern for alpha characters.
166
- * @group Props
167
- */
168
- characterPattern = input('[A-Za-z]', /* @ts-ignore */
169
- ...(ngDevMode ? [{ debugName: "characterPattern" }] : /* istanbul ignore next */ []));
170
- /**
171
- * When present, it specifies that whether to clean buffer value from model.
172
- * @group Props
173
- */
174
- keepBuffer = input(false, { ...(ngDevMode ? { debugName: "keepBuffer" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
175
- /**
176
- * Callback to invoke when the mask is completed.
177
- * @group Emits
178
- */
179
- onCompleteEvent = output({ alias: 'onComplete' });
180
- /**
181
- * Callback to invoke when value changes, emits unmasked value.
182
- * @group Emits
183
- */
184
- onUnmaskedChange = output();
185
- defs;
186
- tests;
187
- partialPosition;
188
- firstNonMaskPos;
189
- lastRequiredNonMaskPos;
190
- len;
191
- oldVal;
192
- buffer;
193
- defaultBuffer;
194
- focusText;
195
- caretTimeoutId;
196
- androidChrome = true;
197
- focused;
198
- _inputElement = null;
199
- _listeners = [];
200
- isInputVisible(input) {
201
- const style = getComputedStyle(input);
202
- return style.display !== 'none' && style.visibility !== 'hidden';
203
- }
204
- get inputElement() {
205
- if (!this._inputElement) {
206
- const host = this.el.nativeElement;
207
- this._inputElement = host.querySelector('[data-h-maskable]') || Array.from(host.querySelectorAll('input')).find((input) => this.isInputVisible(input)) || host;
208
- }
209
- return this._inputElement;
210
- }
211
- constructor() {
212
- super();
213
- effect(() => {
214
- const pt = this.pInputMaskPT();
215
- pt && this.directivePT.set(pt);
216
- });
217
- effect(() => {
218
- this.pInputMaskUnstyled() && this.directiveUnstyled.set(this.pInputMaskUnstyled());
219
- });
220
- effect(() => {
221
- const maskValue = this.hInputMask();
222
- if (maskValue) {
223
- this.initMask();
224
- }
225
- });
226
- if (isPlatformBrowser(this.platformId)) {
227
- const ua = navigator.userAgent;
228
- this.androidChrome = /chrome/i.test(ua) && /android/i.test(ua);
229
- }
230
- }
231
- onAfterViewInit() {
232
- if (isPlatformBrowser(this.platformId) && this.inputElement) {
233
- const events = [
234
- ['focus', (e) => this.onInputFocus(e)],
235
- ['blur', (e) => this.onInputBlur(e)],
236
- ['keydown', (e) => this.onInputKeydown(e)],
237
- ['keypress', (e) => this.onKeyPress(e)],
238
- ['input', (e) => this.onInputChange(e)],
239
- ['paste', (e) => this.onPaste(e)]
240
- ];
241
- events.forEach(([event, handler]) => {
242
- this.inputElement.addEventListener(event, handler);
243
- this._listeners.push(() => this.inputElement.removeEventListener(event, handler));
244
- });
245
- }
246
- }
247
- onDestroy() {
248
- this._listeners.forEach((unlisten) => unlisten());
249
- }
250
- initMask() {
251
- const maskValue = this.hInputMask();
252
- if (!maskValue) {
253
- return;
254
- }
255
- this.tests = [];
256
- this.partialPosition = maskValue.length;
257
- this.len = maskValue.length;
258
- this.firstNonMaskPos = null;
259
- this.defs = {
260
- '9': '[0-9]',
261
- a: this.characterPattern(),
262
- '*': `${this.characterPattern()}|[0-9]`
263
- };
264
- const maskTokens = maskValue.split('');
265
- for (let i = 0; i < maskTokens.length; i++) {
266
- const c = maskTokens[i];
267
- if (c == '?') {
268
- this.len--;
269
- this.partialPosition = i;
270
- }
271
- else if (this.defs[c]) {
272
- this.tests.push(new RegExp(this.defs[c]));
273
- if (this.firstNonMaskPos === null) {
274
- this.firstNonMaskPos = this.tests.length - 1;
275
- }
276
- if (i < this.partialPosition) {
277
- this.lastRequiredNonMaskPos = this.tests.length - 1;
278
- }
279
- }
280
- else {
281
- this.tests.push(null);
282
- }
283
- }
284
- this.buffer = [];
285
- for (let i = 0; i < maskTokens.length; i++) {
286
- const c = maskTokens[i];
287
- if (c != '?') {
288
- if (this.defs[c])
289
- this.buffer.push(this.getPlaceholder(i));
290
- else
291
- this.buffer.push(c);
292
- }
293
- }
294
- this.defaultBuffer = this.buffer.join('');
295
- }
296
- onInputFocus(event) {
297
- if (this.inputElement.readOnly || !this.hInputMask()) {
298
- return;
299
- }
300
- this.focused = true;
301
- this.focusText = this.inputElement.value;
302
- clearTimeout(this.caretTimeoutId);
303
- const pos = this.checkVal();
304
- this.caretTimeoutId = setTimeout(() => {
305
- if (this.inputElement !== this.inputElement.ownerDocument.activeElement) {
306
- return;
307
- }
308
- this.writeBuffer();
309
- if (pos == this.hInputMask()?.replace('?', '').length) {
310
- this.caret(0, pos);
311
- }
312
- else {
313
- this.caret(pos);
314
- }
315
- }, 10);
316
- }
317
- onInputBlur(e) {
318
- if (!this.hInputMask()) {
319
- return;
320
- }
321
- this.focused = false;
322
- // Validate/finalize value on blur (clear incomplete if autoClear)
323
- if (!this.keepBuffer()) {
324
- const valueBefore = this.inputElement.value;
325
- this.checkVal();
326
- // If value changed, dispatch input event so ngModel gets updated
327
- if (this.inputElement.value !== valueBefore) {
328
- this.dispatchInputEvent();
329
- }
330
- }
331
- }
332
- onInputKeydown(e) {
333
- if (this.inputElement.readOnly || !this.hInputMask()) {
334
- return;
335
- }
336
- const k = e.which || e.keyCode;
337
- let pos;
338
- let begin;
339
- let end;
340
- let iPhone = false;
341
- if (isPlatformBrowser(this.platformId)) {
342
- iPhone = /iphone/i.test(getUserAgent());
343
- }
344
- this.oldVal = this.inputElement.value;
345
- // backspace, delete, and escape get special treatment
346
- if (k === 8 || k === 46 || (iPhone && k === 127)) {
347
- pos = this.caret();
348
- begin = pos.begin;
349
- end = pos.end;
350
- if (end - begin === 0) {
351
- begin = k !== 46 ? this.seekPrev(begin) : (end = this.seekNext(begin - 1));
352
- end = k === 46 ? this.seekNext(end) : end;
353
- }
354
- this.clearBuffer(begin, end);
355
- if (this.keepBuffer()) {
356
- this.shiftL(begin, end - 2);
357
- }
358
- else {
359
- this.shiftL(begin, end - 1);
360
- }
361
- // Dispatch input event to notify parent components (like DatePicker)
362
- this.dispatchInputEvent();
363
- e.preventDefault();
364
- }
365
- else if (k === 13) {
366
- // enter
367
- this.onInputBlur(e);
368
- }
369
- else if (k === 27) {
370
- // escape
371
- this.inputElement.value = this.focusText;
372
- this.caret(0, this.checkVal());
373
- e.preventDefault();
374
- }
375
- }
376
- onKeyPress(e) {
377
- if (this.inputElement.readOnly || !this.hInputMask()) {
378
- return;
379
- }
380
- const k = e.which || e.keyCode;
381
- const pos = this.caret();
382
- let p;
383
- let c;
384
- let next;
385
- let completed;
386
- if (e.ctrlKey || e.altKey || e.metaKey || k < 32 || (k > 34 && k < 41)) {
387
- return;
388
- }
389
- else if (k && k !== 13) {
390
- if (pos.end - pos.begin !== 0) {
391
- this.clearBuffer(pos.begin, pos.end);
392
- this.shiftL(pos.begin, pos.end - 1);
393
- }
394
- p = this.seekNext(pos.begin - 1);
395
- if (p < this.len) {
396
- c = String.fromCharCode(k);
397
- if (this.tests[p].test(c)) {
398
- this.shiftR(p);
399
- this.buffer[p] = c;
400
- this.writeBuffer();
401
- // Dispatch input event to notify parent components (like DatePicker)
402
- this.dispatchInputEvent();
403
- next = this.seekNext(p);
404
- if (isClient() && /android/i.test(getUserAgent())) {
405
- const proxy = () => {
406
- this.caret(next);
407
- };
408
- setTimeout(proxy, 0);
409
- }
410
- else {
411
- this.caret(next);
412
- }
413
- if (pos.begin <= this.lastRequiredNonMaskPos) {
414
- completed = this.isCompleted();
415
- }
416
- }
417
- }
418
- e.preventDefault();
419
- }
420
- if (completed) {
421
- this.onCompleteEvent.emit();
422
- }
423
- }
424
- onInputChange(event) {
425
- if (!this.hInputMask()) {
426
- return;
427
- }
428
- // Skip synthetic events dispatched by dispatchInputEvent() to avoid re-processing
429
- if (!event.isTrusted) {
430
- return;
431
- }
432
- if (this.androidChrome)
433
- this.handleAndroidInput(event);
434
- else
435
- this.handleInputChange(event);
436
- }
437
- onPaste(event) {
438
- if (!this.hInputMask()) {
439
- return;
440
- }
441
- this.handleInputChange(event);
442
- }
443
- // Helper methods
444
- caret(first, last) {
445
- let range;
446
- let begin;
447
- let end;
448
- if (!this.inputElement.offsetParent || this.inputElement !== this.inputElement.ownerDocument.activeElement) {
449
- return;
450
- }
451
- if (typeof first == 'number') {
452
- begin = first;
453
- end = typeof last === 'number' ? last : begin;
454
- if (typeof this.inputElement.setSelectionRange === 'function') {
455
- this.inputElement.setSelectionRange(begin, end);
456
- }
457
- else if (this.inputElement['createTextRange']) {
458
- range = this.inputElement['createTextRange']();
459
- range.collapse(true);
460
- range.moveEnd('character', end);
461
- range.moveStart('character', begin);
462
- range.select();
463
- }
464
- }
465
- else {
466
- if (typeof this.inputElement.setSelectionRange === 'function') {
467
- begin = this.inputElement.selectionStart;
468
- end = this.inputElement.selectionEnd;
469
- }
470
- else if (this.document['selection'] && this.document['selection'].createRange) {
471
- range = this.document['selection'].createRange();
472
- begin = 0 - range.duplicate().moveStart('character', -100000);
473
- end = begin + range.text.length;
474
- }
475
- return { begin: begin, end: end };
476
- }
477
- }
478
- isCompleted() {
479
- for (let i = this.firstNonMaskPos; i <= this.lastRequiredNonMaskPos; i++) {
480
- if (this.tests[i] && this.buffer[i] === this.getPlaceholder(i)) {
481
- return false;
482
- }
483
- }
484
- return true;
485
- }
486
- getPlaceholder(i) {
487
- const slotCharValue = this.slotChar();
488
- if (i < slotCharValue.length) {
489
- return slotCharValue.charAt(i);
490
- }
491
- return slotCharValue.charAt(0);
492
- }
493
- seekNext(pos) {
494
- while (++pos < this.len && !this.tests[pos])
495
- ;
496
- return pos;
497
- }
498
- seekPrev(pos) {
499
- while (--pos >= 0 && !this.tests[pos])
500
- ;
501
- return pos;
502
- }
503
- shiftL(begin, end) {
504
- let i, j;
505
- if (begin < 0) {
506
- return;
507
- }
508
- for (i = begin, j = this.seekNext(end); i < this.len; i++) {
509
- if (this.tests[i]) {
510
- if (j < this.len && this.tests[i].test(this.buffer[j])) {
511
- this.buffer[i] = this.buffer[j];
512
- this.buffer[j] = this.getPlaceholder(j);
513
- }
514
- else {
515
- break;
516
- }
517
- j = this.seekNext(j);
518
- }
519
- }
520
- this.writeBuffer();
521
- this.caret(Math.max(this.firstNonMaskPos, begin));
522
- }
523
- shiftR(pos) {
524
- let i, c, j, t;
525
- for (i = pos, c = this.getPlaceholder(pos); i < this.len; i++) {
526
- if (this.tests[i]) {
527
- j = this.seekNext(i);
528
- t = this.buffer[i];
529
- this.buffer[i] = c;
530
- if (j < this.len && this.tests[j].test(t)) {
531
- c = t;
532
- }
533
- else {
534
- break;
535
- }
536
- }
537
- }
538
- }
539
- handleAndroidInput(e) {
540
- const curVal = this.inputElement.value;
541
- const pos = this.caret();
542
- if (this.oldVal && this.oldVal.length && this.oldVal.length > curVal.length) {
543
- // a deletion or backspace happened
544
- this.checkVal(true);
545
- while (pos.begin > 0 && !this.tests[pos.begin - 1])
546
- pos.begin--;
547
- if (pos.begin === 0) {
548
- while (pos.begin < this.firstNonMaskPos && !this.tests[pos.begin])
549
- pos.begin++;
550
- }
551
- setTimeout(() => {
552
- this.caret(pos.begin, pos.begin);
553
- this.onUnmaskedChange.emit(this.getUnmaskedValue());
554
- if (this.isCompleted()) {
555
- this.onCompleteEvent.emit();
556
- }
557
- }, 0);
558
- }
559
- else {
560
- this.checkVal(true);
561
- while (pos.begin < this.len && !this.tests[pos.begin])
562
- pos.begin++;
563
- setTimeout(() => {
564
- this.caret(pos.begin, pos.begin);
565
- this.onUnmaskedChange.emit(this.getUnmaskedValue());
566
- if (this.isCompleted()) {
567
- this.onCompleteEvent.emit();
568
- }
569
- }, 0);
570
- }
571
- }
572
- handleInputChange(event) {
573
- if (this.inputElement.readOnly) {
574
- return;
575
- }
576
- setTimeout(() => {
577
- const pos = this.checkVal(true);
578
- this.caret(pos);
579
- this.onUnmaskedChange.emit(this.getUnmaskedValue());
580
- if (this.isCompleted()) {
581
- this.onCompleteEvent.emit();
582
- }
583
- }, 0);
584
- }
585
- clearBuffer(start, end) {
586
- if (!this.keepBuffer()) {
587
- let i;
588
- for (i = start; i < end && i < this.len; i++) {
589
- if (this.tests[i]) {
590
- this.buffer[i] = this.getPlaceholder(i);
591
- }
592
- }
593
- }
594
- }
595
- writeBuffer() {
596
- if (this.buffer && this.inputElement) {
597
- this.inputElement.value = this.buffer.join('');
598
- }
599
- }
600
- /**
601
- * Dispatches an input event on the host element.
602
- * This is needed to notify parent components of value changes
603
- * since programmatic value changes don't trigger native input events.
604
- */
605
- dispatchInputEvent() {
606
- const event = new Event('input', { bubbles: true, cancelable: true });
607
- this.inputElement.dispatchEvent(event);
608
- this.onUnmaskedChange.emit(this.getUnmaskedValue());
609
- }
610
- checkVal(allow) {
611
- // try to place characters where they belong
612
- const test = this.inputElement.value;
613
- let lastMatch = -1;
614
- let i;
615
- let c;
616
- let pos;
617
- for (i = 0, pos = 0; i < this.len; i++) {
618
- if (this.tests[i]) {
619
- this.buffer[i] = this.getPlaceholder(i);
620
- while (pos++ < test.length) {
621
- c = test.charAt(pos - 1);
622
- if (this.tests[i].test(c)) {
623
- if (!this.keepBuffer()) {
624
- this.buffer[i] = c;
625
- }
626
- lastMatch = i;
627
- break;
628
- }
629
- }
630
- if (pos > test.length) {
631
- this.clearBuffer(i + 1, this.len);
632
- break;
633
- }
634
- }
635
- else {
636
- if (this.buffer[i] === test.charAt(pos)) {
637
- pos++;
638
- }
639
- if (i < this.partialPosition) {
640
- lastMatch = i;
641
- }
642
- }
643
- }
644
- if (allow) {
645
- this.writeBuffer();
646
- }
647
- else if (lastMatch + 1 < this.partialPosition) {
648
- if (this.autoClear() || this.buffer.join('') === this.defaultBuffer) {
649
- // Invalid value. Remove it and replace it with the
650
- // mask, which is the default behavior.
651
- if (this.inputElement.value)
652
- this.inputElement.value = '';
653
- this.clearBuffer(0, this.len);
654
- }
655
- else {
656
- // Invalid value, but we opt to show the value to the
657
- // user and allow them to correct their mistake.
658
- this.writeBuffer();
659
- }
660
- }
661
- else {
662
- this.writeBuffer();
663
- this.inputElement.value = this.inputElement.value.substring(0, lastMatch + 1);
664
- }
665
- return (this.partialPosition ? i : this.firstNonMaskPos);
666
- }
667
- getUnmaskedValue() {
668
- const unmaskedBuffer = [];
669
- for (let i = 0; i < this.buffer.length; i++) {
670
- const c = this.buffer[i];
671
- if (this.tests[i] && c != this.getPlaceholder(i)) {
672
- unmaskedBuffer.push(c);
673
- }
674
- }
675
- return unmaskedBuffer.join('');
676
- }
677
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputMaskDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
678
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.6", type: InputMaskDirective, isStandalone: true, selector: "[hInputMask]", inputs: { pInputMaskPT: { classPropertyName: "pInputMaskPT", publicName: "pInputMaskPT", isSignal: true, isRequired: false, transformFunction: null }, pInputMaskUnstyled: { classPropertyName: "pInputMaskUnstyled", publicName: "pInputMaskUnstyled", isSignal: true, isRequired: false, transformFunction: null }, hInputMask: { classPropertyName: "hInputMask", publicName: "hInputMask", isSignal: true, isRequired: false, transformFunction: null }, slotChar: { classPropertyName: "slotChar", publicName: "slotChar", isSignal: true, isRequired: false, transformFunction: null }, autoClear: { classPropertyName: "autoClear", publicName: "autoClear", isSignal: true, isRequired: false, transformFunction: null }, characterPattern: { classPropertyName: "characterPattern", publicName: "characterPattern", isSignal: true, isRequired: false, transformFunction: null }, keepBuffer: { classPropertyName: "keepBuffer", publicName: "keepBuffer", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onCompleteEvent: "onComplete", onUnmaskedChange: "onUnmaskedChange" }, host: { properties: { "class.h-inputmask": "!$unstyled()" } }, providers: [InputMaskStyle, { provide: INPUTMASK_DIRECTIVE_INSTANCE, useExisting: InputMaskDirective }, { provide: PARENT_INSTANCE, useExisting: InputMaskDirective }], usesInheritance: true, ngImport: i0 });
679
- }
680
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputMaskDirective, decorators: [{
681
- type: Directive,
682
- args: [{
683
- selector: '[hInputMask]',
684
- standalone: true,
685
- providers: [InputMaskStyle, { provide: INPUTMASK_DIRECTIVE_INSTANCE, useExisting: InputMaskDirective }, { provide: PARENT_INSTANCE, useExisting: InputMaskDirective }],
686
- host: {
687
- '[class.h-inputmask]': '!$unstyled()'
688
- }
689
- }]
690
- }], ctorParameters: () => [], propDecorators: { pInputMaskPT: [{ type: i0.Input, args: [{ isSignal: true, alias: "pInputMaskPT", required: false }] }], pInputMaskUnstyled: [{ type: i0.Input, args: [{ isSignal: true, alias: "pInputMaskUnstyled", required: false }] }], hInputMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "hInputMask", required: false }] }], slotChar: [{ type: i0.Input, args: [{ isSignal: true, alias: "slotChar", required: false }] }], autoClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoClear", required: false }] }], characterPattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "characterPattern", required: false }] }], keepBuffer: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepBuffer", required: false }] }], onCompleteEvent: [{ type: i0.Output, args: ["onComplete"] }], onUnmaskedChange: [{ type: i0.Output, args: ["onUnmaskedChange"] }] } });
91
+ const INPUTMASK_INSTANCE = new InjectionToken("INPUTMASK_INSTANCE");
92
+ const INPUTMASK_DIRECTIVE_INSTANCE = new InjectionToken("INPUTMASK_DIRECTIVE_INSTANCE");
93
+ var InputMaskDirective = class InputMaskDirective extends BaseComponent {
94
+ $pcInputMaskDirective = inject(INPUTMASK_DIRECTIVE_INSTANCE, {
95
+ optional: true,
96
+ skipSelf: true
97
+ }) ?? void 0;
98
+ _componentStyle = inject(InputMaskStyle);
99
+ pInputMaskPT = input(...ngDevMode ? [void 0, { debugName: "pInputMaskPT" }] : /* istanbul ignore next */ []);
100
+ pInputMaskUnstyled = input(...ngDevMode ? [void 0, { debugName: "pInputMaskUnstyled" }] : /* istanbul ignore next */ []);
101
+ hInputMask = input(...ngDevMode ? [void 0, { debugName: "hInputMask" }] : /* istanbul ignore next */ []);
102
+ slotChar = input("_", ...ngDevMode ? [{ debugName: "slotChar" }] : /* istanbul ignore next */ []);
103
+ autoClear = input(true, {
104
+ ...ngDevMode ? { debugName: "autoClear" } : /* istanbul ignore next */ {},
105
+ transform: booleanAttribute
106
+ });
107
+ characterPattern = input("[A-Za-z]", ...ngDevMode ? [{ debugName: "characterPattern" }] : /* istanbul ignore next */ []);
108
+ keepBuffer = input(false, {
109
+ ...ngDevMode ? { debugName: "keepBuffer" } : /* istanbul ignore next */ {},
110
+ transform: booleanAttribute
111
+ });
112
+ onCompleteEvent = output({ alias: "onComplete" });
113
+ onUnmaskedChange = output();
114
+ defs;
115
+ tests;
116
+ partialPosition;
117
+ firstNonMaskPos;
118
+ lastRequiredNonMaskPos;
119
+ len;
120
+ oldVal;
121
+ buffer;
122
+ defaultBuffer;
123
+ focusText;
124
+ caretTimeoutId;
125
+ androidChrome = true;
126
+ focused;
127
+ _inputElement = null;
128
+ _listeners = [];
129
+ isInputVisible(input) {
130
+ const style = getComputedStyle(input);
131
+ return style.display !== "none" && style.visibility !== "hidden";
132
+ }
133
+ get inputElement() {
134
+ if (!this._inputElement) {
135
+ const host = this.el.nativeElement;
136
+ this._inputElement = host.querySelector("[data-h-maskable]") || Array.from(host.querySelectorAll("input")).find((input) => this.isInputVisible(input)) || host;
137
+ }
138
+ return this._inputElement;
139
+ }
140
+ constructor() {
141
+ super();
142
+ effect(() => {
143
+ const pt = this.pInputMaskPT();
144
+ pt && this.directivePT.set(pt);
145
+ });
146
+ effect(() => {
147
+ this.pInputMaskUnstyled() && this.directiveUnstyled.set(this.pInputMaskUnstyled());
148
+ });
149
+ effect(() => {
150
+ if (this.hInputMask()) this.initMask();
151
+ });
152
+ if (isPlatformBrowser(this.platformId)) {
153
+ const ua = navigator.userAgent;
154
+ this.androidChrome = /chrome/i.test(ua) && /android/i.test(ua);
155
+ }
156
+ }
157
+ onAfterViewInit() {
158
+ if (isPlatformBrowser(this.platformId) && this.inputElement) [
159
+ ["focus", (e) => this.onInputFocus(e)],
160
+ ["blur", (e) => this.onInputBlur(e)],
161
+ ["keydown", (e) => this.onInputKeydown(e)],
162
+ ["keypress", (e) => this.onKeyPress(e)],
163
+ ["input", (e) => this.onInputChange(e)],
164
+ ["paste", (e) => this.onPaste(e)]
165
+ ].forEach(([event, handler]) => {
166
+ this.inputElement.addEventListener(event, handler);
167
+ this._listeners.push(() => this.inputElement.removeEventListener(event, handler));
168
+ });
169
+ }
170
+ onDestroy() {
171
+ this._listeners.forEach((unlisten) => unlisten());
172
+ }
173
+ initMask() {
174
+ const maskValue = this.hInputMask();
175
+ if (!maskValue) return;
176
+ this.tests = [];
177
+ this.partialPosition = maskValue.length;
178
+ this.len = maskValue.length;
179
+ this.firstNonMaskPos = null;
180
+ this.defs = {
181
+ "9": "[0-9]",
182
+ a: this.characterPattern(),
183
+ "*": `${this.characterPattern()}|[0-9]`
184
+ };
185
+ const maskTokens = maskValue.split("");
186
+ for (let i = 0; i < maskTokens.length; i++) {
187
+ const c = maskTokens[i];
188
+ if (c == "?") {
189
+ this.len--;
190
+ this.partialPosition = i;
191
+ } else if (this.defs[c]) {
192
+ this.tests.push(new RegExp(this.defs[c]));
193
+ if (this.firstNonMaskPos === null) this.firstNonMaskPos = this.tests.length - 1;
194
+ if (i < this.partialPosition) this.lastRequiredNonMaskPos = this.tests.length - 1;
195
+ } else this.tests.push(null);
196
+ }
197
+ this.buffer = [];
198
+ for (let i = 0; i < maskTokens.length; i++) {
199
+ const c = maskTokens[i];
200
+ if (c != "?") if (this.defs[c]) this.buffer.push(this.getPlaceholder(i));
201
+ else this.buffer.push(c);
202
+ }
203
+ this.defaultBuffer = this.buffer.join("");
204
+ }
205
+ onInputFocus(event) {
206
+ if (this.inputElement.readOnly || !this.hInputMask()) return;
207
+ this.focused = true;
208
+ this.focusText = this.inputElement.value;
209
+ clearTimeout(this.caretTimeoutId);
210
+ const pos = this.checkVal();
211
+ this.caretTimeoutId = setTimeout(() => {
212
+ if (this.inputElement !== this.inputElement.ownerDocument.activeElement) return;
213
+ this.writeBuffer();
214
+ if (pos == this.hInputMask()?.replace("?", "").length) this.caret(0, pos);
215
+ else this.caret(pos);
216
+ }, 10);
217
+ }
218
+ onInputBlur(e) {
219
+ if (!this.hInputMask()) return;
220
+ this.focused = false;
221
+ if (!this.keepBuffer()) {
222
+ const valueBefore = this.inputElement.value;
223
+ this.checkVal();
224
+ if (this.inputElement.value !== valueBefore) this.dispatchInputEvent();
225
+ }
226
+ }
227
+ onInputKeydown(e) {
228
+ if (this.inputElement.readOnly || !this.hInputMask()) return;
229
+ const k = e.which || e.keyCode;
230
+ let pos;
231
+ let begin;
232
+ let end;
233
+ let iPhone = false;
234
+ if (isPlatformBrowser(this.platformId)) iPhone = /iphone/i.test(getUserAgent());
235
+ this.oldVal = this.inputElement.value;
236
+ if (k === 8 || k === 46 || iPhone && k === 127) {
237
+ pos = this.caret();
238
+ begin = pos.begin;
239
+ end = pos.end;
240
+ if (end - begin === 0) {
241
+ begin = k !== 46 ? this.seekPrev(begin) : end = this.seekNext(begin - 1);
242
+ end = k === 46 ? this.seekNext(end) : end;
243
+ }
244
+ this.clearBuffer(begin, end);
245
+ if (this.keepBuffer()) this.shiftL(begin, end - 2);
246
+ else this.shiftL(begin, end - 1);
247
+ this.dispatchInputEvent();
248
+ e.preventDefault();
249
+ } else if (k === 13) this.onInputBlur(e);
250
+ else if (k === 27) {
251
+ this.inputElement.value = this.focusText;
252
+ this.caret(0, this.checkVal());
253
+ e.preventDefault();
254
+ }
255
+ }
256
+ onKeyPress(e) {
257
+ if (this.inputElement.readOnly || !this.hInputMask()) return;
258
+ const k = e.which || e.keyCode;
259
+ const pos = this.caret();
260
+ let p;
261
+ let c;
262
+ let next;
263
+ let completed;
264
+ if (e.ctrlKey || e.altKey || e.metaKey || k < 32 || k > 34 && k < 41) return;
265
+ else if (k && k !== 13) {
266
+ if (pos.end - pos.begin !== 0) {
267
+ this.clearBuffer(pos.begin, pos.end);
268
+ this.shiftL(pos.begin, pos.end - 1);
269
+ }
270
+ p = this.seekNext(pos.begin - 1);
271
+ if (p < this.len) {
272
+ c = String.fromCharCode(k);
273
+ if (this.tests[p].test(c)) {
274
+ this.shiftR(p);
275
+ this.buffer[p] = c;
276
+ this.writeBuffer();
277
+ this.dispatchInputEvent();
278
+ next = this.seekNext(p);
279
+ if (isClient() && /android/i.test(getUserAgent())) {
280
+ const proxy = () => {
281
+ this.caret(next);
282
+ };
283
+ setTimeout(proxy, 0);
284
+ } else this.caret(next);
285
+ if (pos.begin <= this.lastRequiredNonMaskPos) completed = this.isCompleted();
286
+ }
287
+ }
288
+ e.preventDefault();
289
+ }
290
+ if (completed) this.onCompleteEvent.emit();
291
+ }
292
+ onInputChange(event) {
293
+ if (!this.hInputMask()) return;
294
+ if (!event.isTrusted) return;
295
+ if (this.androidChrome) this.handleAndroidInput(event);
296
+ else this.handleInputChange(event);
297
+ }
298
+ onPaste(event) {
299
+ if (!this.hInputMask()) return;
300
+ this.handleInputChange(event);
301
+ }
302
+ caret(first, last) {
303
+ let range;
304
+ let begin;
305
+ let end;
306
+ if (!this.inputElement.offsetParent || this.inputElement !== this.inputElement.ownerDocument.activeElement) return;
307
+ if (typeof first == "number") {
308
+ begin = first;
309
+ end = typeof last === "number" ? last : begin;
310
+ if (typeof this.inputElement.setSelectionRange === "function") this.inputElement.setSelectionRange(begin, end);
311
+ else if (this.inputElement["createTextRange"]) {
312
+ range = this.inputElement["createTextRange"]();
313
+ range.collapse(true);
314
+ range.moveEnd("character", end);
315
+ range.moveStart("character", begin);
316
+ range.select();
317
+ }
318
+ } else {
319
+ if (typeof this.inputElement.setSelectionRange === "function") {
320
+ begin = this.inputElement.selectionStart;
321
+ end = this.inputElement.selectionEnd;
322
+ } else if (this.document["selection"] && this.document["selection"].createRange) {
323
+ range = this.document["selection"].createRange();
324
+ begin = 0 - range.duplicate().moveStart("character", -1e5);
325
+ end = begin + range.text.length;
326
+ }
327
+ return {
328
+ begin,
329
+ end
330
+ };
331
+ }
332
+ }
333
+ isCompleted() {
334
+ for (let i = this.firstNonMaskPos; i <= this.lastRequiredNonMaskPos; i++) if (this.tests[i] && this.buffer[i] === this.getPlaceholder(i)) return false;
335
+ return true;
336
+ }
337
+ getPlaceholder(i) {
338
+ const slotCharValue = this.slotChar();
339
+ if (i < slotCharValue.length) return slotCharValue.charAt(i);
340
+ return slotCharValue.charAt(0);
341
+ }
342
+ seekNext(pos) {
343
+ while (++pos < this.len && !this.tests[pos]);
344
+ return pos;
345
+ }
346
+ seekPrev(pos) {
347
+ while (--pos >= 0 && !this.tests[pos]);
348
+ return pos;
349
+ }
350
+ shiftL(begin, end) {
351
+ let i, j;
352
+ if (begin < 0) return;
353
+ for (i = begin, j = this.seekNext(end); i < this.len; i++) if (this.tests[i]) {
354
+ if (j < this.len && this.tests[i].test(this.buffer[j])) {
355
+ this.buffer[i] = this.buffer[j];
356
+ this.buffer[j] = this.getPlaceholder(j);
357
+ } else break;
358
+ j = this.seekNext(j);
359
+ }
360
+ this.writeBuffer();
361
+ this.caret(Math.max(this.firstNonMaskPos, begin));
362
+ }
363
+ shiftR(pos) {
364
+ let i, c, j, t;
365
+ for (i = pos, c = this.getPlaceholder(pos); i < this.len; i++) if (this.tests[i]) {
366
+ j = this.seekNext(i);
367
+ t = this.buffer[i];
368
+ this.buffer[i] = c;
369
+ if (j < this.len && this.tests[j].test(t)) c = t;
370
+ else break;
371
+ }
372
+ }
373
+ handleAndroidInput(e) {
374
+ const curVal = this.inputElement.value;
375
+ const pos = this.caret();
376
+ if (this.oldVal && this.oldVal.length && this.oldVal.length > curVal.length) {
377
+ this.checkVal(true);
378
+ while (pos.begin > 0 && !this.tests[pos.begin - 1]) pos.begin--;
379
+ if (pos.begin === 0) while (pos.begin < this.firstNonMaskPos && !this.tests[pos.begin]) pos.begin++;
380
+ setTimeout(() => {
381
+ this.caret(pos.begin, pos.begin);
382
+ this.onUnmaskedChange.emit(this.getUnmaskedValue());
383
+ if (this.isCompleted()) this.onCompleteEvent.emit();
384
+ }, 0);
385
+ } else {
386
+ this.checkVal(true);
387
+ while (pos.begin < this.len && !this.tests[pos.begin]) pos.begin++;
388
+ setTimeout(() => {
389
+ this.caret(pos.begin, pos.begin);
390
+ this.onUnmaskedChange.emit(this.getUnmaskedValue());
391
+ if (this.isCompleted()) this.onCompleteEvent.emit();
392
+ }, 0);
393
+ }
394
+ }
395
+ handleInputChange(event) {
396
+ if (this.inputElement.readOnly) return;
397
+ setTimeout(() => {
398
+ const pos = this.checkVal(true);
399
+ this.caret(pos);
400
+ this.onUnmaskedChange.emit(this.getUnmaskedValue());
401
+ if (this.isCompleted()) this.onCompleteEvent.emit();
402
+ }, 0);
403
+ }
404
+ clearBuffer(start, end) {
405
+ if (!this.keepBuffer()) {
406
+ let i;
407
+ for (i = start; i < end && i < this.len; i++) if (this.tests[i]) this.buffer[i] = this.getPlaceholder(i);
408
+ }
409
+ }
410
+ writeBuffer() {
411
+ if (this.buffer && this.inputElement) this.inputElement.value = this.buffer.join("");
412
+ }
413
+ dispatchInputEvent() {
414
+ const event = new Event("input", {
415
+ bubbles: true,
416
+ cancelable: true
417
+ });
418
+ this.inputElement.dispatchEvent(event);
419
+ this.onUnmaskedChange.emit(this.getUnmaskedValue());
420
+ }
421
+ checkVal(allow) {
422
+ const test = this.inputElement.value;
423
+ let lastMatch = -1;
424
+ let i;
425
+ let c;
426
+ let pos;
427
+ for (i = 0, pos = 0; i < this.len; i++) if (this.tests[i]) {
428
+ this.buffer[i] = this.getPlaceholder(i);
429
+ while (pos++ < test.length) {
430
+ c = test.charAt(pos - 1);
431
+ if (this.tests[i].test(c)) {
432
+ if (!this.keepBuffer()) this.buffer[i] = c;
433
+ lastMatch = i;
434
+ break;
435
+ }
436
+ }
437
+ if (pos > test.length) {
438
+ this.clearBuffer(i + 1, this.len);
439
+ break;
440
+ }
441
+ } else {
442
+ if (this.buffer[i] === test.charAt(pos)) pos++;
443
+ if (i < this.partialPosition) lastMatch = i;
444
+ }
445
+ if (allow) this.writeBuffer();
446
+ else if (lastMatch + 1 < this.partialPosition) if (this.autoClear() || this.buffer.join("") === this.defaultBuffer) {
447
+ if (this.inputElement.value) this.inputElement.value = "";
448
+ this.clearBuffer(0, this.len);
449
+ } else this.writeBuffer();
450
+ else {
451
+ this.writeBuffer();
452
+ this.inputElement.value = this.inputElement.value.substring(0, lastMatch + 1);
453
+ }
454
+ return this.partialPosition ? i : this.firstNonMaskPos;
455
+ }
456
+ getUnmaskedValue() {
457
+ const unmaskedBuffer = [];
458
+ for (let i = 0; i < this.buffer.length; i++) {
459
+ const c = this.buffer[i];
460
+ if (this.tests[i] && c != this.getPlaceholder(i)) unmaskedBuffer.push(c);
461
+ }
462
+ return unmaskedBuffer.join("");
463
+ }
464
+ static ɵfac = i0.ɵɵngDeclareFactory({
465
+ minVersion: "12.0.0",
466
+ version: "22.2.1",
467
+ ngImport: i0,
468
+ type: InputMaskDirective,
469
+ deps: [],
470
+ target: i0.ɵɵFactoryTarget.Directive
471
+ });
472
+ static ɵdir = i0.ɵɵngDeclareDirective({
473
+ minVersion: "17.1.0",
474
+ version: "22.2.1",
475
+ type: InputMaskDirective,
476
+ isStandalone: true,
477
+ selector: "[hInputMask]",
478
+ inputs: {
479
+ pInputMaskPT: {
480
+ classPropertyName: "pInputMaskPT",
481
+ publicName: "pInputMaskPT",
482
+ isSignal: true,
483
+ isRequired: false,
484
+ transformFunction: null
485
+ },
486
+ pInputMaskUnstyled: {
487
+ classPropertyName: "pInputMaskUnstyled",
488
+ publicName: "pInputMaskUnstyled",
489
+ isSignal: true,
490
+ isRequired: false,
491
+ transformFunction: null
492
+ },
493
+ hInputMask: {
494
+ classPropertyName: "hInputMask",
495
+ publicName: "hInputMask",
496
+ isSignal: true,
497
+ isRequired: false,
498
+ transformFunction: null
499
+ },
500
+ slotChar: {
501
+ classPropertyName: "slotChar",
502
+ publicName: "slotChar",
503
+ isSignal: true,
504
+ isRequired: false,
505
+ transformFunction: null
506
+ },
507
+ autoClear: {
508
+ classPropertyName: "autoClear",
509
+ publicName: "autoClear",
510
+ isSignal: true,
511
+ isRequired: false,
512
+ transformFunction: null
513
+ },
514
+ characterPattern: {
515
+ classPropertyName: "characterPattern",
516
+ publicName: "characterPattern",
517
+ isSignal: true,
518
+ isRequired: false,
519
+ transformFunction: null
520
+ },
521
+ keepBuffer: {
522
+ classPropertyName: "keepBuffer",
523
+ publicName: "keepBuffer",
524
+ isSignal: true,
525
+ isRequired: false,
526
+ transformFunction: null
527
+ }
528
+ },
529
+ outputs: {
530
+ onCompleteEvent: "onComplete",
531
+ onUnmaskedChange: "onUnmaskedChange"
532
+ },
533
+ host: { properties: { "class.h-inputmask": "!$unstyled()" } },
534
+ providers: [
535
+ InputMaskStyle,
536
+ {
537
+ provide: INPUTMASK_DIRECTIVE_INSTANCE,
538
+ useExisting: InputMaskDirective
539
+ },
540
+ {
541
+ provide: PARENT_INSTANCE,
542
+ useExisting: InputMaskDirective
543
+ }
544
+ ],
545
+ usesInheritance: true,
546
+ ngImport: i0
547
+ });
548
+ };
549
+ i0.ɵɵngDeclareClassMetadata({
550
+ minVersion: "12.0.0",
551
+ version: "22.2.1",
552
+ ngImport: i0,
553
+ type: InputMaskDirective,
554
+ decorators: [{
555
+ type: Directive,
556
+ args: [{
557
+ selector: "[hInputMask]",
558
+ standalone: true,
559
+ providers: [
560
+ InputMaskStyle,
561
+ {
562
+ provide: INPUTMASK_DIRECTIVE_INSTANCE,
563
+ useExisting: InputMaskDirective
564
+ },
565
+ {
566
+ provide: PARENT_INSTANCE,
567
+ useExisting: InputMaskDirective
568
+ }
569
+ ],
570
+ host: { "[class.h-inputmask]": "!$unstyled()" }
571
+ }]
572
+ }],
573
+ ctorParameters: () => [],
574
+ propDecorators: {
575
+ pInputMaskPT: [{
576
+ type: i0.Input,
577
+ args: [{
578
+ isSignal: true,
579
+ alias: "pInputMaskPT",
580
+ required: false
581
+ }]
582
+ }],
583
+ pInputMaskUnstyled: [{
584
+ type: i0.Input,
585
+ args: [{
586
+ isSignal: true,
587
+ alias: "pInputMaskUnstyled",
588
+ required: false
589
+ }]
590
+ }],
591
+ hInputMask: [{
592
+ type: i0.Input,
593
+ args: [{
594
+ isSignal: true,
595
+ alias: "hInputMask",
596
+ required: false
597
+ }]
598
+ }],
599
+ slotChar: [{
600
+ type: i0.Input,
601
+ args: [{
602
+ isSignal: true,
603
+ alias: "slotChar",
604
+ required: false
605
+ }]
606
+ }],
607
+ autoClear: [{
608
+ type: i0.Input,
609
+ args: [{
610
+ isSignal: true,
611
+ alias: "autoClear",
612
+ required: false
613
+ }]
614
+ }],
615
+ characterPattern: [{
616
+ type: i0.Input,
617
+ args: [{
618
+ isSignal: true,
619
+ alias: "characterPattern",
620
+ required: false
621
+ }]
622
+ }],
623
+ keepBuffer: [{
624
+ type: i0.Input,
625
+ args: [{
626
+ isSignal: true,
627
+ alias: "keepBuffer",
628
+ required: false
629
+ }]
630
+ }],
631
+ onCompleteEvent: [{
632
+ type: i0.Output,
633
+ args: ["onComplete"]
634
+ }],
635
+ onUnmaskedChange: [{
636
+ type: i0.Output,
637
+ args: ["onUnmaskedChange"]
638
+ }]
639
+ }
640
+ });
691
641
  const INPUTMASK_VALUE_ACCESSOR = {
692
- provide: NG_VALUE_ACCESSOR,
693
- useExisting: forwardRef(() => InputMask),
694
- multi: true
642
+ provide: NG_VALUE_ACCESSOR,
643
+ useExisting: forwardRef(() => InputMask),
644
+ multi: true
695
645
  };
696
- /**
697
- * InputMask component is used to enter input in a certain format such as numeric, date, currency, email and phone.
698
- * @group Components
699
- */
700
- class InputMask extends BaseInput {
701
- componentName = 'InputMask';
702
- _componentStyle = inject(InputMaskStyle);
703
- $pcInputMask = inject(INPUTMASK_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
704
- bindDirectiveInstance = inject(Bind, { self: true });
705
- onAfterViewChecked() {
706
- this.bindDirectiveInstance.setAttrs(this.ptms(['root', 'host']));
707
- }
708
- ptmParams = computed(() => ({ context: { filled: this.$variant() === 'filled' } }), /* @ts-ignore */
709
- ...(ngDevMode ? [{ debugName: "ptmParams" }] : /* istanbul ignore next */ []));
710
- /**
711
- * HTML5 input type.
712
- * @group Props
713
- */
714
- type = input('text', /* @ts-ignore */
715
- ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
716
- /**
717
- * Placeholder character in mask, default is underscore.
718
- * @group Props
719
- */
720
- slotChar = input('_', /* @ts-ignore */
721
- ...(ngDevMode ? [{ debugName: "slotChar" }] : /* istanbul ignore next */ []));
722
- /**
723
- * Clears the incomplete value on blur.
724
- * @group Props
725
- */
726
- autoClear = input(true, { ...(ngDevMode ? { debugName: "autoClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
727
- /**
728
- * When enabled, a clear icon is displayed to clear the value.
729
- * @group Props
730
- */
731
- showClear = input(false, { ...(ngDevMode ? { debugName: "showClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
732
- /**
733
- * Inline style of the input field.
734
- * @group Props
735
- */
736
- style = input(/* @ts-ignore */
737
- ...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
738
- /**
739
- * Identifier of the focus input to match a label defined for the component.
740
- * @group Props
741
- */
742
- inputId = input(/* @ts-ignore */
743
- ...(ngDevMode ? [undefined, { debugName: "inputId" }] : /* istanbul ignore next */ []));
744
- /**
745
- * Style class of the input field.
746
- * @group Props
747
- */
748
- styleClass = input(/* @ts-ignore */
749
- ...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
750
- /**
751
- * Advisory information to display on input.
752
- * @group Props
753
- */
754
- placeholder = input(/* @ts-ignore */
755
- ...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
756
- /**
757
- * Specifies tab order of the element.
758
- * @group Props
759
- */
760
- tabindex = input(/* @ts-ignore */
761
- ...(ngDevMode ? [undefined, { debugName: "tabindex" }] : /* istanbul ignore next */ []));
762
- /**
763
- * Title text of the input text.
764
- * @group Props
765
- */
766
- title = input(/* @ts-ignore */
767
- ...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
768
- /**
769
- * Used to define a string that labels the input element.
770
- * @group Props
771
- */
772
- ariaLabel = input(/* @ts-ignore */
773
- ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
774
- /**
775
- * Establishes relationships between the component and label(s) where its value should be one or more element IDs.
776
- * @group Props
777
- */
778
- ariaLabelledBy = input(/* @ts-ignore */
779
- ...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
780
- /**
781
- * Used to indicate that user input is required on an element before a form can be submitted.
782
- * @group Props
783
- */
784
- ariaRequired = input(undefined, { ...(ngDevMode ? { debugName: "ariaRequired" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
785
- /**
786
- * When present, it specifies that an input field is read-only.
787
- * @group Props
788
- */
789
- readonly = input(undefined, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
790
- /**
791
- * Defines if ngModel sets the raw unmasked value to bound value or the formatted mask value.
792
- * @group Props
793
- */
794
- unmask = input(undefined, { ...(ngDevMode ? { debugName: "unmask" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
795
- /**
796
- * Regex pattern for alpha characters
797
- * @group Props
798
- */
799
- characterPattern = input('[A-Za-z]', /* @ts-ignore */
800
- ...(ngDevMode ? [{ debugName: "characterPattern" }] : /* istanbul ignore next */ []));
801
- /**
802
- * When present, the input gets a focus automatically on load.
803
- * @group Props
804
- */
805
- autofocus = input(undefined, { ...(ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
806
- /**
807
- * Used to define a string that autocomplete attribute the current element.
808
- * @group Props
809
- */
810
- autocomplete = input(/* @ts-ignore */
811
- ...(ngDevMode ? [undefined, { debugName: "autocomplete" }] : /* istanbul ignore next */ []));
812
- /**
813
- * When present, it specifies that whether to clean buffer value from model.
814
- * @group Props
815
- */
816
- keepBuffer = input(false, { ...(ngDevMode ? { debugName: "keepBuffer" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
817
- /**
818
- * Mask pattern.
819
- * @group Props
820
- */
821
- mask = input(/* @ts-ignore */
822
- ...(ngDevMode ? [undefined, { debugName: "mask" }] : /* istanbul ignore next */ []));
823
- /**
824
- * Callback to invoke when the mask is completed.
825
- * @group Emits
826
- */
827
- onComplete = output();
828
- /**
829
- * Callback to invoke when the component receives focus.
830
- * @param {Event} event - Browser event.
831
- * @group Emits
832
- */
833
- onFocus = output();
834
- /**
835
- * Callback to invoke when the component loses focus.
836
- * @param {Event} event - Browser event.
837
- * @group Emits
838
- */
839
- onBlur = output();
840
- /**
841
- * Callback to invoke on input.
842
- * @param {Event} event - Browser event.
843
- * @group Emits
844
- */
845
- onInput = output();
846
- /**
847
- * Callback to invoke on input key press.
848
- * @param {Event} event - Browser event.
849
- * @group Emits
850
- */
851
- onKeydown = output();
852
- /**
853
- * Callback to invoke when input field is cleared.
854
- * @group Emits
855
- */
856
- onClear = output();
857
- /**
858
- * Custom clear icon template.
859
- * @group Templates
860
- */
861
- clearIconTemplate = contentChild('clearicon', { ...(ngDevMode ? { debugName: "clearIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
862
- templates = contentChildren(HelixTemplate, /* @ts-ignore */
863
- ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
864
- inputViewChild = viewChild('input', /* @ts-ignore */
865
- ...(ngDevMode ? [{ debugName: "inputViewChild" }] : /* istanbul ignore next */ []));
866
- value;
867
- input;
868
- defs;
869
- tests;
870
- partialPosition;
871
- firstNonMaskPos;
872
- lastRequiredNonMaskPos;
873
- len;
874
- oldVal;
875
- buffer;
876
- defaultBuffer;
877
- focusText;
878
- caretTimeoutId;
879
- androidChrome = true;
880
- focused;
881
- constructor() {
882
- super();
883
- effect(() => {
884
- this.mask();
885
- this.initMask();
886
- this.writeValue('');
887
- this.onModelChange(this.value);
888
- });
889
- }
890
- onInit() {
891
- if (isPlatformBrowser(this.platformId)) {
892
- let ua = navigator.userAgent;
893
- this.androidChrome = /chrome/i.test(ua) && /android/i.test(ua);
894
- }
895
- this.initMask();
896
- }
897
- _clearIconTemplate;
898
- onAfterContentInit() {
899
- this.templates().forEach((item) => {
900
- switch (item.getType()) {
901
- case 'clearicon':
902
- this._clearIconTemplate = item.template;
903
- break;
904
- }
905
- });
906
- }
907
- initMask() {
908
- if (!this.mask()) {
909
- return;
910
- }
911
- this.tests = [];
912
- this.partialPosition = this.mask().length;
913
- this.len = this.mask().length;
914
- this.firstNonMaskPos = null;
915
- this.defs = {
916
- '9': '[0-9]',
917
- a: this.characterPattern(),
918
- '*': `${this.characterPattern()}|[0-9]`
919
- };
920
- let maskTokens = this.mask().split('');
921
- for (let i = 0; i < maskTokens.length; i++) {
922
- let c = maskTokens[i];
923
- if (c == '?') {
924
- this.len--;
925
- this.partialPosition = i;
926
- }
927
- else if (this.defs[c]) {
928
- this.tests.push(new RegExp(this.defs[c]));
929
- if (this.firstNonMaskPos === null) {
930
- this.firstNonMaskPos = this.tests.length - 1;
931
- }
932
- if (i < this.partialPosition) {
933
- this.lastRequiredNonMaskPos = this.tests.length - 1;
934
- }
935
- }
936
- else {
937
- this.tests.push(null);
938
- }
939
- }
940
- this.buffer = [];
941
- for (let i = 0; i < maskTokens.length; i++) {
942
- let c = maskTokens[i];
943
- if (c != '?') {
944
- if (this.defs[c])
945
- this.buffer.push(this.getPlaceholder(i));
946
- else
947
- this.buffer.push(c);
948
- }
949
- }
950
- this.defaultBuffer = this.buffer.join('');
951
- }
952
- caret(first, last) {
953
- let range, begin, end;
954
- const inputViewChild = this.inputViewChild();
955
- if (!inputViewChild?.nativeElement.offsetParent || inputViewChild.nativeElement !== inputViewChild.nativeElement.ownerDocument.activeElement) {
956
- return;
957
- }
958
- if (typeof first == 'number') {
959
- begin = first;
960
- end = typeof last === 'number' ? last : begin;
961
- if (inputViewChild.nativeElement.setSelectionRange) {
962
- inputViewChild.nativeElement.setSelectionRange(begin, end);
963
- }
964
- else if (inputViewChild.nativeElement['createTextRange']) {
965
- range = inputViewChild.nativeElement['createTextRange']();
966
- range.collapse(true);
967
- range.moveEnd('character', end);
968
- range.moveStart('character', begin);
969
- range.select();
970
- }
971
- }
972
- else {
973
- if (inputViewChild.nativeElement.setSelectionRange) {
974
- begin = inputViewChild.nativeElement.selectionStart;
975
- end = inputViewChild.nativeElement.selectionEnd;
976
- }
977
- else if (this.document && this.document['selection'].createRange) {
978
- range = this.document.createRange();
979
- begin = 0 - range.duplicate().moveStart('character', -100000);
980
- end = begin + range.text.length;
981
- }
982
- return { begin: begin, end: end };
983
- }
984
- }
985
- isCompleted() {
986
- let completed;
987
- for (let i = this.firstNonMaskPos; i <= this.lastRequiredNonMaskPos; i++) {
988
- if (this.tests[i] && this.buffer[i] === this.getPlaceholder(i)) {
989
- return false;
990
- }
991
- }
992
- return true;
993
- }
994
- getPlaceholder(i) {
995
- if (i < this.slotChar().length) {
996
- return this.slotChar().charAt(i);
997
- }
998
- return this.slotChar().charAt(0);
999
- }
1000
- seekNext(pos) {
1001
- while (++pos < this.len && !this.tests[pos])
1002
- ;
1003
- return pos;
1004
- }
1005
- seekPrev(pos) {
1006
- while (--pos >= 0 && !this.tests[pos])
1007
- ;
1008
- return pos;
1009
- }
1010
- shiftL(begin, end) {
1011
- let i, j;
1012
- if (begin < 0) {
1013
- return;
1014
- }
1015
- for (i = begin, j = this.seekNext(end); i < this.len; i++) {
1016
- if (this.tests[i]) {
1017
- if (j < this.len && this.tests[i].test(this.buffer[j])) {
1018
- this.buffer[i] = this.buffer[j];
1019
- this.buffer[j] = this.getPlaceholder(j);
1020
- }
1021
- else {
1022
- break;
1023
- }
1024
- j = this.seekNext(j);
1025
- }
1026
- }
1027
- this.writeBuffer();
1028
- this.caret(Math.max(this.firstNonMaskPos, begin));
1029
- }
1030
- shiftR(pos) {
1031
- let i, c, j, t;
1032
- for (i = pos, c = this.getPlaceholder(pos); i < this.len; i++) {
1033
- if (this.tests[i]) {
1034
- j = this.seekNext(i);
1035
- t = this.buffer[i];
1036
- this.buffer[i] = c;
1037
- if (j < this.len && this.tests[j].test(t)) {
1038
- c = t;
1039
- }
1040
- else {
1041
- break;
1042
- }
1043
- }
1044
- }
1045
- }
1046
- handleAndroidInput(e) {
1047
- var curVal = this.inputViewChild()?.nativeElement.value;
1048
- var pos = this.caret();
1049
- if (this.oldVal && this.oldVal.length && this.oldVal.length > curVal.length) {
1050
- // a deletion or backspace happened
1051
- this.checkVal(true);
1052
- while (pos.begin > 0 && !this.tests[pos.begin - 1])
1053
- pos.begin--;
1054
- if (pos.begin === 0) {
1055
- while (pos.begin < this.firstNonMaskPos && !this.tests[pos.begin])
1056
- pos.begin++;
1057
- }
1058
- setTimeout(() => {
1059
- this.caret(pos.begin, pos.begin);
1060
- this.updateModel(e);
1061
- if (this.isCompleted()) {
1062
- this.onComplete.emit();
1063
- }
1064
- }, 0);
1065
- }
1066
- else {
1067
- this.checkVal(true);
1068
- while (pos.begin < this.len && !this.tests[pos.begin])
1069
- pos.begin++;
1070
- setTimeout(() => {
1071
- this.caret(pos.begin, pos.begin);
1072
- this.updateModel(e);
1073
- if (this.isCompleted()) {
1074
- this.onComplete.emit();
1075
- }
1076
- }, 0);
1077
- }
1078
- }
1079
- onInputBlur(e) {
1080
- this.focused = false;
1081
- this.onModelTouched();
1082
- if (!this.keepBuffer()) {
1083
- this.checkVal();
1084
- }
1085
- this.onBlur.emit(e);
1086
- if (this.modelValue() != this.focusText || this.modelValue() != this.value) {
1087
- this.updateModel(e);
1088
- let event = this.document.createEvent('HTMLEvents');
1089
- event.initEvent('change', true, false);
1090
- this.inputViewChild()?.nativeElement.dispatchEvent(event);
1091
- }
1092
- }
1093
- onInputKeydown(e) {
1094
- if (this.readonly()) {
1095
- return;
1096
- }
1097
- let k = e.which || e.keyCode, pos, begin, end;
1098
- let iPhone;
1099
- if (isPlatformBrowser(this.platformId)) {
1100
- iPhone = /iphone/i.test(getUserAgent());
1101
- }
1102
- const inputViewChild = this.inputViewChild();
1103
- this.oldVal = inputViewChild?.nativeElement.value;
1104
- this.onKeydown.emit(e);
1105
- //backspace, delete, and escape get special treatment
1106
- if (k === 8 || k === 46 || (iPhone && k === 127)) {
1107
- pos = this.caret();
1108
- begin = pos.begin;
1109
- end = pos.end;
1110
- if (end - begin === 0) {
1111
- begin = k !== 46 ? this.seekPrev(begin) : (end = this.seekNext(begin - 1));
1112
- end = k === 46 ? this.seekNext(end) : end;
1113
- }
1114
- this.clearBuffer(begin, end);
1115
- if (this.keepBuffer()) {
1116
- this.shiftL(begin, end - 2);
1117
- }
1118
- else {
1119
- this.shiftL(begin, end - 1);
1120
- }
1121
- this.updateModel(e);
1122
- this.onInput.emit(e);
1123
- e.preventDefault();
1124
- }
1125
- else if (k === 13) {
1126
- // enter
1127
- this.onInputBlur(e);
1128
- this.updateModel(e);
1129
- }
1130
- else if (k === 27) {
1131
- // escape
1132
- inputViewChild.nativeElement.value = this.focusText;
1133
- this.caret(0, this.checkVal());
1134
- this.updateModel(e);
1135
- e.preventDefault();
1136
- }
1137
- }
1138
- onKeyPress(e) {
1139
- if (this.readonly()) {
1140
- return;
1141
- }
1142
- var k = e.which || e.keyCode, pos = this.caret(), p, c, next, completed;
1143
- if (e.ctrlKey || e.altKey || e.metaKey || k < 32 || (k > 34 && k < 41)) {
1144
- //Ignore
1145
- return;
1146
- }
1147
- else if (k && k !== 13) {
1148
- if (pos.end - pos.begin !== 0) {
1149
- this.clearBuffer(pos.begin, pos.end);
1150
- this.shiftL(pos.begin, pos.end - 1);
1151
- }
1152
- p = this.seekNext(pos.begin - 1);
1153
- if (p < this.len) {
1154
- c = String.fromCharCode(k);
1155
- if (this.tests[p].test(c)) {
1156
- this.shiftR(p);
1157
- this.buffer[p] = c;
1158
- this.writeBuffer();
1159
- next = this.seekNext(p);
1160
- if (isClient() && /android/i.test(getUserAgent())) {
1161
- let proxy = () => {
1162
- this.caret(next);
1163
- };
1164
- setTimeout(proxy, 0);
1165
- }
1166
- else {
1167
- this.caret(next);
1168
- }
1169
- if (pos.begin <= this.lastRequiredNonMaskPos) {
1170
- completed = this.isCompleted();
1171
- }
1172
- this.onInput.emit(e);
1173
- }
1174
- }
1175
- e.preventDefault();
1176
- }
1177
- this.updateModel(e);
1178
- if (completed) {
1179
- this.onComplete.emit();
1180
- }
1181
- }
1182
- clearBuffer(start, end) {
1183
- if (!this.keepBuffer()) {
1184
- let i;
1185
- for (i = start; i < end && i < this.len; i++) {
1186
- if (this.tests[i]) {
1187
- this.buffer[i] = this.getPlaceholder(i);
1188
- }
1189
- }
1190
- }
1191
- }
1192
- writeBuffer() {
1193
- const inputViewChild = this.inputViewChild();
1194
- if (this.buffer && inputViewChild?.nativeElement) {
1195
- inputViewChild.nativeElement.value = this.buffer.join('');
1196
- }
1197
- }
1198
- checkVal(allow) {
1199
- //try to place characters where they belong
1200
- const inputViewChild = this.inputViewChild();
1201
- let test = inputViewChild?.nativeElement.value, lastMatch = -1, i, c, pos;
1202
- for (i = 0, pos = 0; i < this.len; i++) {
1203
- if (this.tests[i]) {
1204
- this.buffer[i] = this.getPlaceholder(i);
1205
- while (pos++ < test.length) {
1206
- c = test.charAt(pos - 1);
1207
- if (this.tests[i].test(c)) {
1208
- if (!this.keepBuffer()) {
1209
- this.buffer[i] = c;
1210
- }
1211
- lastMatch = i;
1212
- break;
1213
- }
1214
- }
1215
- if (pos > test.length) {
1216
- this.clearBuffer(i + 1, this.len);
1217
- break;
1218
- }
1219
- }
1220
- else {
1221
- if (this.buffer[i] === test.charAt(pos)) {
1222
- pos++;
1223
- }
1224
- if (i < this.partialPosition) {
1225
- lastMatch = i;
1226
- }
1227
- }
1228
- }
1229
- if (allow) {
1230
- this.writeBuffer();
1231
- }
1232
- else if (lastMatch + 1 < this.partialPosition) {
1233
- if (this.autoClear() || this.buffer.join('') === this.defaultBuffer) {
1234
- // Invalid value. Remove it and replace it with the
1235
- // mask, which is the default behavior.
1236
- if (inputViewChild?.nativeElement.value)
1237
- inputViewChild.nativeElement.value = '';
1238
- this.clearBuffer(0, this.len);
1239
- }
1240
- else {
1241
- // Invalid value, but we opt to show the value to the
1242
- // user and allow them to correct their mistake.
1243
- this.writeBuffer();
1244
- }
1245
- }
1246
- else {
1247
- this.writeBuffer();
1248
- inputViewChild.nativeElement.value = inputViewChild?.nativeElement.value.substring(0, lastMatch + 1);
1249
- }
1250
- return (this.partialPosition ? i : this.firstNonMaskPos);
1251
- }
1252
- onInputFocus(event) {
1253
- if (this.readonly()) {
1254
- return;
1255
- }
1256
- this.focused = true;
1257
- clearTimeout(this.caretTimeoutId);
1258
- let pos;
1259
- const inputViewChild = this.inputViewChild();
1260
- this.focusText = inputViewChild?.nativeElement.value;
1261
- pos = this.keepBuffer() ? inputViewChild?.nativeElement.value.length : this.checkVal();
1262
- this.caretTimeoutId = setTimeout(() => {
1263
- const inputViewChildValue = this.inputViewChild();
1264
- if (inputViewChildValue?.nativeElement !== inputViewChildValue?.nativeElement.ownerDocument.activeElement) {
1265
- return;
1266
- }
1267
- this.writeBuffer();
1268
- if (pos == this.mask()?.replace('?', '').length) {
1269
- this.caret(0, pos);
1270
- }
1271
- else {
1272
- this.caret(pos);
1273
- }
1274
- }, 10);
1275
- this.onFocus.emit(event);
1276
- }
1277
- onInputChange(event) {
1278
- if (this.androidChrome)
1279
- this.handleAndroidInput(event);
1280
- else
1281
- this.handleInputChange(event);
1282
- this.onInput.emit(event);
1283
- }
1284
- handleInputChange(event) {
1285
- if (this.readonly()) {
1286
- return;
1287
- }
1288
- setTimeout(() => {
1289
- var pos = this.checkVal(true);
1290
- this.caret(pos);
1291
- this.updateModel(event);
1292
- if (this.isCompleted()) {
1293
- this.onComplete.emit();
1294
- }
1295
- }, 0);
1296
- }
1297
- getUnmaskedValue() {
1298
- let unmaskedBuffer = [];
1299
- for (let i = 0; i < this.buffer.length; i++) {
1300
- let c = this.buffer[i];
1301
- if (this.tests[i] && c != this.getPlaceholder(i)) {
1302
- unmaskedBuffer.push(c);
1303
- }
1304
- }
1305
- return unmaskedBuffer.join('');
1306
- }
1307
- updateModel(e) {
1308
- const target = e.target;
1309
- if (!target) {
1310
- return;
1311
- }
1312
- const updatedValue = this.unmask() ? this.getUnmaskedValue() : target.value;
1313
- if (updatedValue !== null && updatedValue !== undefined) {
1314
- this.value = updatedValue;
1315
- this.writeModelValue(this.value);
1316
- this.onModelChange(this.value);
1317
- }
1318
- }
1319
- focus() {
1320
- this.inputViewChild()?.nativeElement.focus();
1321
- }
1322
- clear() {
1323
- this.inputViewChild().nativeElement.value = '';
1324
- this.value = null;
1325
- this.onModelChange(this.value);
1326
- this.onClear.emit();
1327
- }
1328
- /**
1329
- * @override
1330
- *
1331
- * @see {@link BaseEditableHolder.writeControlValue}
1332
- * Writes the value to the control.
1333
- */
1334
- writeControlValue(value, setModelValue) {
1335
- this.value = value;
1336
- setModelValue(this.value);
1337
- const inputViewChild = this.inputViewChild();
1338
- if (inputViewChild && inputViewChild.nativeElement) {
1339
- if (this.value == undefined || this.value == null)
1340
- inputViewChild.nativeElement.value = '';
1341
- else
1342
- inputViewChild.nativeElement.value = this.value;
1343
- this.checkVal();
1344
- this.focusText = inputViewChild.nativeElement.value;
1345
- }
1346
- this.cd.markForCheck();
1347
- }
1348
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputMask, deps: [], target: i0.ɵɵFactoryTarget.Component });
1349
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: InputMask, isStandalone: true, selector: "h-inputmask, h-inputMask, h-input-mask", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, slotChar: { classPropertyName: "slotChar", publicName: "slotChar", isSignal: true, isRequired: false, transformFunction: null }, autoClear: { classPropertyName: "autoClear", publicName: "autoClear", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", 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 }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, ariaRequired: { classPropertyName: "ariaRequired", publicName: "ariaRequired", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, unmask: { classPropertyName: "unmask", publicName: "unmask", isSignal: true, isRequired: false, transformFunction: null }, characterPattern: { classPropertyName: "characterPattern", publicName: "characterPattern", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, keepBuffer: { classPropertyName: "keepBuffer", publicName: "keepBuffer", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onComplete: "onComplete", onFocus: "onFocus", onBlur: "onBlur", onInput: "onInput", onKeydown: "onKeydown", onClear: "onClear" }, host: { properties: { "class": "cx('root')" } }, providers: [INPUTMASK_VALUE_ACCESSOR, InputMaskStyle, { provide: INPUTMASK_INSTANCE, useExisting: InputMask }, { provide: PARENT_INSTANCE, useExisting: InputMask }], queries: [{ propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"], isSignal: true }, { propertyName: "templates", predicate: HelixTemplate, isSignal: true }], viewQueries: [{ propertyName: "inputViewChild", first: true, predicate: ["input"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: "<input\n #input\n hInputText\n [pt]=\"ptm('pcInputText', ptmParams())\"\n [unstyled]=\"unstyled()\"\n [attr.id]=\"inputId()\"\n [attr.type]=\"type()\"\n [attr.name]=\"name()\"\n [invalid]=\"invalid()\"\n [class]=\"styleClass()\"\n [ngStyle]=\"style()\"\n [attr.placeholder]=\"placeholder()\"\n [attr.title]=\"title()\"\n [pSize]=\"size()\"\n [attr.size]=\"inputSize()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.minlength]=\"minlength()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledBy]=\"ariaLabelledBy()\"\n [attr.aria-required]=\"ariaRequired()\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (keydown)=\"onInputKeydown($event)\"\n (keypress)=\"onKeyPress($event)\"\n [variant]=\"$variant()\"\n [hAutoFocus]=\"autofocus()\"\n (input)=\"onInputChange($event)\"\n (paste)=\"handleInputChange($event)\"\n [fluid]=\"hasFluid\"\n />\n@if (value != null && $filled() && showClear() && !$disabled()) {\n @if (!clearIconTemplate() && !_clearIconTemplate) {\n <svg data-h-icon=\"times\" [class]=\"cx('clearIcon')\" [hBind]=\"ptm('clearIcon')\" (click)=\"clear()\" />\n }\n @if (clearIconTemplate() || _clearIconTemplate) {\n <span [class]=\"cx('clearIcon')\" [hBind]=\"ptm('clearIcon')\" (click)=\"clear()\">\n <ng-template *ngTemplateOutlet=\"clearIconTemplate() || _clearIconTemplate\"></ng-template>\n </span>\n }\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[hBind]", inputs: ["hBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1350
- }
1351
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputMask, decorators: [{
1352
- type: Component,
1353
- args: [{ selector: 'h-inputmask, h-inputMask, h-input-mask', standalone: true, imports: [CommonModule, InputText, AutoFocus, TimesIcon, SharedModule, BindModule], providers: [INPUTMASK_VALUE_ACCESSOR, InputMaskStyle, { provide: INPUTMASK_INSTANCE, useExisting: InputMask }, { provide: PARENT_INSTANCE, useExisting: InputMask }], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, hostDirectives: [Bind], host: {
1354
- '[class]': "cx('root')"
1355
- }, template: "<input\n #input\n hInputText\n [pt]=\"ptm('pcInputText', ptmParams())\"\n [unstyled]=\"unstyled()\"\n [attr.id]=\"inputId()\"\n [attr.type]=\"type()\"\n [attr.name]=\"name()\"\n [invalid]=\"invalid()\"\n [class]=\"styleClass()\"\n [ngStyle]=\"style()\"\n [attr.placeholder]=\"placeholder()\"\n [attr.title]=\"title()\"\n [pSize]=\"size()\"\n [attr.size]=\"inputSize()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.minlength]=\"minlength()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledBy]=\"ariaLabelledBy()\"\n [attr.aria-required]=\"ariaRequired()\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (keydown)=\"onInputKeydown($event)\"\n (keypress)=\"onKeyPress($event)\"\n [variant]=\"$variant()\"\n [hAutoFocus]=\"autofocus()\"\n (input)=\"onInputChange($event)\"\n (paste)=\"handleInputChange($event)\"\n [fluid]=\"hasFluid\"\n />\n@if (value != null && $filled() && showClear() && !$disabled()) {\n @if (!clearIconTemplate() && !_clearIconTemplate) {\n <svg data-h-icon=\"times\" [class]=\"cx('clearIcon')\" [hBind]=\"ptm('clearIcon')\" (click)=\"clear()\" />\n }\n @if (clearIconTemplate() || _clearIconTemplate) {\n <span [class]=\"cx('clearIcon')\" [hBind]=\"ptm('clearIcon')\" (click)=\"clear()\">\n <ng-template *ngTemplateOutlet=\"clearIconTemplate() || _clearIconTemplate\"></ng-template>\n </span>\n }\n}\n" }]
1356
- }], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], slotChar: [{ type: i0.Input, args: [{ isSignal: true, alias: "slotChar", required: false }] }], autoClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoClear", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", 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 }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaRequired: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaRequired", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], unmask: [{ type: i0.Input, args: [{ isSignal: true, alias: "unmask", required: false }] }], characterPattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "characterPattern", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], keepBuffer: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepBuffer", required: false }] }], mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: false }] }], onComplete: [{ type: i0.Output, args: ["onComplete"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onInput: [{ type: i0.Output, args: ["onInput"] }], onKeydown: [{ type: i0.Output, args: ["onKeydown"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], clearIconTemplate: [{ type: i0.ContentChild, args: ['clearicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => HelixTemplate), { isSignal: true }] }], inputViewChild: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }] } });
1357
- class InputMaskModule {
1358
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1359
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.6", ngImport: i0, type: InputMaskModule, imports: [InputMask, InputMaskDirective, SharedModule], exports: [InputMask, InputMaskDirective, SharedModule] });
1360
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputMaskModule, imports: [InputMask, SharedModule, SharedModule] });
1361
- }
1362
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: InputMaskModule, decorators: [{
1363
- type: NgModule,
1364
- args: [{
1365
- imports: [InputMask, InputMaskDirective, SharedModule],
1366
- exports: [InputMask, InputMaskDirective, SharedModule]
1367
- }]
1368
- }] });
1369
-
1370
- /**
1371
- * Generated bundle index. Do not edit.
1372
- */
1373
-
646
+ var InputMask = class InputMask extends BaseInput {
647
+ componentName = "InputMask";
648
+ _componentStyle = inject(InputMaskStyle);
649
+ $pcInputMask = inject(INPUTMASK_INSTANCE, {
650
+ optional: true,
651
+ skipSelf: true
652
+ }) ?? void 0;
653
+ bindDirectiveInstance = inject(Bind, { self: true });
654
+ onAfterViewChecked() {
655
+ this.bindDirectiveInstance.setAttrs(this.ptms(["root", "host"]));
656
+ }
657
+ ptmParams = computed(() => ({ context: { filled: this.$variant() === "filled" } }), ...ngDevMode ? [{ debugName: "ptmParams" }] : /* istanbul ignore next */ []);
658
+ type = input("text", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
659
+ slotChar = input("_", ...ngDevMode ? [{ debugName: "slotChar" }] : /* istanbul ignore next */ []);
660
+ autoClear = input(true, {
661
+ ...ngDevMode ? { debugName: "autoClear" } : /* istanbul ignore next */ {},
662
+ transform: booleanAttribute
663
+ });
664
+ showClear = input(false, {
665
+ ...ngDevMode ? { debugName: "showClear" } : /* istanbul ignore next */ {},
666
+ transform: booleanAttribute
667
+ });
668
+ style = input(...ngDevMode ? [void 0, { debugName: "style" }] : /* istanbul ignore next */ []);
669
+ inputId = input(...ngDevMode ? [void 0, { debugName: "inputId" }] : /* istanbul ignore next */ []);
670
+ styleClass = input(...ngDevMode ? [void 0, { debugName: "styleClass" }] : /* istanbul ignore next */ []);
671
+ placeholder = input(...ngDevMode ? [void 0, { debugName: "placeholder" }] : /* istanbul ignore next */ []);
672
+ tabindex = input(...ngDevMode ? [void 0, { debugName: "tabindex" }] : /* istanbul ignore next */ []);
673
+ title = input(...ngDevMode ? [void 0, { debugName: "title" }] : /* istanbul ignore next */ []);
674
+ ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
675
+ ariaLabelledBy = input(...ngDevMode ? [void 0, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
676
+ ariaRequired = input(void 0, {
677
+ ...ngDevMode ? { debugName: "ariaRequired" } : /* istanbul ignore next */ {},
678
+ transform: booleanAttribute
679
+ });
680
+ readonly = input(void 0, {
681
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
682
+ transform: booleanAttribute
683
+ });
684
+ unmask = input(void 0, {
685
+ ...ngDevMode ? { debugName: "unmask" } : /* istanbul ignore next */ {},
686
+ transform: booleanAttribute
687
+ });
688
+ characterPattern = input("[A-Za-z]", ...ngDevMode ? [{ debugName: "characterPattern" }] : /* istanbul ignore next */ []);
689
+ autofocus = input(void 0, {
690
+ ...ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {},
691
+ transform: booleanAttribute
692
+ });
693
+ autocomplete = input(...ngDevMode ? [void 0, { debugName: "autocomplete" }] : /* istanbul ignore next */ []);
694
+ keepBuffer = input(false, {
695
+ ...ngDevMode ? { debugName: "keepBuffer" } : /* istanbul ignore next */ {},
696
+ transform: booleanAttribute
697
+ });
698
+ mask = input(...ngDevMode ? [void 0, { debugName: "mask" }] : /* istanbul ignore next */ []);
699
+ onComplete = output();
700
+ onFocus = output();
701
+ onBlur = output();
702
+ onInput = output();
703
+ onKeydown = output();
704
+ onClear = output();
705
+ clearIconTemplate = contentChild("clearicon", {
706
+ ...ngDevMode ? { debugName: "clearIconTemplate" } : /* istanbul ignore next */ {},
707
+ descendants: false
708
+ });
709
+ templates = contentChildren(HelixTemplate, ...ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []);
710
+ inputViewChild = viewChild("input", ...ngDevMode ? [{ debugName: "inputViewChild" }] : /* istanbul ignore next */ []);
711
+ value;
712
+ input;
713
+ defs;
714
+ tests;
715
+ partialPosition;
716
+ firstNonMaskPos;
717
+ lastRequiredNonMaskPos;
718
+ len;
719
+ oldVal;
720
+ buffer;
721
+ defaultBuffer;
722
+ focusText;
723
+ caretTimeoutId;
724
+ androidChrome = true;
725
+ focused;
726
+ constructor() {
727
+ super();
728
+ effect(() => {
729
+ this.mask();
730
+ this.initMask();
731
+ this.writeValue("");
732
+ this.onModelChange(this.value);
733
+ });
734
+ }
735
+ onInit() {
736
+ if (isPlatformBrowser(this.platformId)) {
737
+ let ua = navigator.userAgent;
738
+ this.androidChrome = /chrome/i.test(ua) && /android/i.test(ua);
739
+ }
740
+ this.initMask();
741
+ }
742
+ _clearIconTemplate;
743
+ onAfterContentInit() {
744
+ this.templates().forEach((item) => {
745
+ switch (item.getType()) {
746
+ case "clearicon":
747
+ this._clearIconTemplate = item.template;
748
+ break;
749
+ }
750
+ });
751
+ }
752
+ initMask() {
753
+ if (!this.mask()) return;
754
+ this.tests = [];
755
+ this.partialPosition = this.mask().length;
756
+ this.len = this.mask().length;
757
+ this.firstNonMaskPos = null;
758
+ this.defs = {
759
+ "9": "[0-9]",
760
+ a: this.characterPattern(),
761
+ "*": `${this.characterPattern()}|[0-9]`
762
+ };
763
+ let maskTokens = this.mask().split("");
764
+ for (let i = 0; i < maskTokens.length; i++) {
765
+ let c = maskTokens[i];
766
+ if (c == "?") {
767
+ this.len--;
768
+ this.partialPosition = i;
769
+ } else if (this.defs[c]) {
770
+ this.tests.push(new RegExp(this.defs[c]));
771
+ if (this.firstNonMaskPos === null) this.firstNonMaskPos = this.tests.length - 1;
772
+ if (i < this.partialPosition) this.lastRequiredNonMaskPos = this.tests.length - 1;
773
+ } else this.tests.push(null);
774
+ }
775
+ this.buffer = [];
776
+ for (let i = 0; i < maskTokens.length; i++) {
777
+ let c = maskTokens[i];
778
+ if (c != "?") if (this.defs[c]) this.buffer.push(this.getPlaceholder(i));
779
+ else this.buffer.push(c);
780
+ }
781
+ this.defaultBuffer = this.buffer.join("");
782
+ }
783
+ caret(first, last) {
784
+ let range, begin, end;
785
+ const inputViewChild = this.inputViewChild();
786
+ if (!inputViewChild?.nativeElement.offsetParent || inputViewChild.nativeElement !== inputViewChild.nativeElement.ownerDocument.activeElement) return;
787
+ if (typeof first == "number") {
788
+ begin = first;
789
+ end = typeof last === "number" ? last : begin;
790
+ if (inputViewChild.nativeElement.setSelectionRange) inputViewChild.nativeElement.setSelectionRange(begin, end);
791
+ else if (inputViewChild.nativeElement["createTextRange"]) {
792
+ range = inputViewChild.nativeElement["createTextRange"]();
793
+ range.collapse(true);
794
+ range.moveEnd("character", end);
795
+ range.moveStart("character", begin);
796
+ range.select();
797
+ }
798
+ } else {
799
+ if (inputViewChild.nativeElement.setSelectionRange) {
800
+ begin = inputViewChild.nativeElement.selectionStart;
801
+ end = inputViewChild.nativeElement.selectionEnd;
802
+ } else if (this.document && this.document["selection"].createRange) {
803
+ range = this.document.createRange();
804
+ begin = 0 - range.duplicate().moveStart("character", -1e5);
805
+ end = begin + range.text.length;
806
+ }
807
+ return {
808
+ begin,
809
+ end
810
+ };
811
+ }
812
+ }
813
+ isCompleted() {
814
+ for (let i = this.firstNonMaskPos; i <= this.lastRequiredNonMaskPos; i++) if (this.tests[i] && this.buffer[i] === this.getPlaceholder(i)) return false;
815
+ return true;
816
+ }
817
+ getPlaceholder(i) {
818
+ if (i < this.slotChar().length) return this.slotChar().charAt(i);
819
+ return this.slotChar().charAt(0);
820
+ }
821
+ seekNext(pos) {
822
+ while (++pos < this.len && !this.tests[pos]);
823
+ return pos;
824
+ }
825
+ seekPrev(pos) {
826
+ while (--pos >= 0 && !this.tests[pos]);
827
+ return pos;
828
+ }
829
+ shiftL(begin, end) {
830
+ let i, j;
831
+ if (begin < 0) return;
832
+ for (i = begin, j = this.seekNext(end); i < this.len; i++) if (this.tests[i]) {
833
+ if (j < this.len && this.tests[i].test(this.buffer[j])) {
834
+ this.buffer[i] = this.buffer[j];
835
+ this.buffer[j] = this.getPlaceholder(j);
836
+ } else break;
837
+ j = this.seekNext(j);
838
+ }
839
+ this.writeBuffer();
840
+ this.caret(Math.max(this.firstNonMaskPos, begin));
841
+ }
842
+ shiftR(pos) {
843
+ let i, c, j, t;
844
+ for (i = pos, c = this.getPlaceholder(pos); i < this.len; i++) if (this.tests[i]) {
845
+ j = this.seekNext(i);
846
+ t = this.buffer[i];
847
+ this.buffer[i] = c;
848
+ if (j < this.len && this.tests[j].test(t)) c = t;
849
+ else break;
850
+ }
851
+ }
852
+ handleAndroidInput(e) {
853
+ var curVal = this.inputViewChild()?.nativeElement.value;
854
+ var pos = this.caret();
855
+ if (this.oldVal && this.oldVal.length && this.oldVal.length > curVal.length) {
856
+ this.checkVal(true);
857
+ while (pos.begin > 0 && !this.tests[pos.begin - 1]) pos.begin--;
858
+ if (pos.begin === 0) while (pos.begin < this.firstNonMaskPos && !this.tests[pos.begin]) pos.begin++;
859
+ setTimeout(() => {
860
+ this.caret(pos.begin, pos.begin);
861
+ this.updateModel(e);
862
+ if (this.isCompleted()) this.onComplete.emit();
863
+ }, 0);
864
+ } else {
865
+ this.checkVal(true);
866
+ while (pos.begin < this.len && !this.tests[pos.begin]) pos.begin++;
867
+ setTimeout(() => {
868
+ this.caret(pos.begin, pos.begin);
869
+ this.updateModel(e);
870
+ if (this.isCompleted()) this.onComplete.emit();
871
+ }, 0);
872
+ }
873
+ }
874
+ onInputBlur(e) {
875
+ this.focused = false;
876
+ this.onModelTouched();
877
+ if (!this.keepBuffer()) this.checkVal();
878
+ this.onBlur.emit(e);
879
+ if (this.modelValue() != this.focusText || this.modelValue() != this.value) {
880
+ this.updateModel(e);
881
+ let event = this.document.createEvent("HTMLEvents");
882
+ event.initEvent("change", true, false);
883
+ this.inputViewChild()?.nativeElement.dispatchEvent(event);
884
+ }
885
+ }
886
+ onInputKeydown(e) {
887
+ if (this.readonly()) return;
888
+ let k = e.which || e.keyCode, pos, begin, end;
889
+ let iPhone;
890
+ if (isPlatformBrowser(this.platformId)) iPhone = /iphone/i.test(getUserAgent());
891
+ const inputViewChild = this.inputViewChild();
892
+ this.oldVal = inputViewChild?.nativeElement.value;
893
+ this.onKeydown.emit(e);
894
+ if (k === 8 || k === 46 || iPhone && k === 127) {
895
+ pos = this.caret();
896
+ begin = pos.begin;
897
+ end = pos.end;
898
+ if (end - begin === 0) {
899
+ begin = k !== 46 ? this.seekPrev(begin) : end = this.seekNext(begin - 1);
900
+ end = k === 46 ? this.seekNext(end) : end;
901
+ }
902
+ this.clearBuffer(begin, end);
903
+ if (this.keepBuffer()) this.shiftL(begin, end - 2);
904
+ else this.shiftL(begin, end - 1);
905
+ this.updateModel(e);
906
+ this.onInput.emit(e);
907
+ e.preventDefault();
908
+ } else if (k === 13) {
909
+ this.onInputBlur(e);
910
+ this.updateModel(e);
911
+ } else if (k === 27) {
912
+ inputViewChild.nativeElement.value = this.focusText;
913
+ this.caret(0, this.checkVal());
914
+ this.updateModel(e);
915
+ e.preventDefault();
916
+ }
917
+ }
918
+ onKeyPress(e) {
919
+ if (this.readonly()) return;
920
+ var k = e.which || e.keyCode, pos = this.caret(), p, c, next, completed;
921
+ if (e.ctrlKey || e.altKey || e.metaKey || k < 32 || k > 34 && k < 41) return;
922
+ else if (k && k !== 13) {
923
+ if (pos.end - pos.begin !== 0) {
924
+ this.clearBuffer(pos.begin, pos.end);
925
+ this.shiftL(pos.begin, pos.end - 1);
926
+ }
927
+ p = this.seekNext(pos.begin - 1);
928
+ if (p < this.len) {
929
+ c = String.fromCharCode(k);
930
+ if (this.tests[p].test(c)) {
931
+ this.shiftR(p);
932
+ this.buffer[p] = c;
933
+ this.writeBuffer();
934
+ next = this.seekNext(p);
935
+ if (isClient() && /android/i.test(getUserAgent())) {
936
+ let proxy = () => {
937
+ this.caret(next);
938
+ };
939
+ setTimeout(proxy, 0);
940
+ } else this.caret(next);
941
+ if (pos.begin <= this.lastRequiredNonMaskPos) completed = this.isCompleted();
942
+ this.onInput.emit(e);
943
+ }
944
+ }
945
+ e.preventDefault();
946
+ }
947
+ this.updateModel(e);
948
+ if (completed) this.onComplete.emit();
949
+ }
950
+ clearBuffer(start, end) {
951
+ if (!this.keepBuffer()) {
952
+ let i;
953
+ for (i = start; i < end && i < this.len; i++) if (this.tests[i]) this.buffer[i] = this.getPlaceholder(i);
954
+ }
955
+ }
956
+ writeBuffer() {
957
+ const inputViewChild = this.inputViewChild();
958
+ if (this.buffer && inputViewChild?.nativeElement) inputViewChild.nativeElement.value = this.buffer.join("");
959
+ }
960
+ checkVal(allow) {
961
+ const inputViewChild = this.inputViewChild();
962
+ let test = inputViewChild?.nativeElement.value, lastMatch = -1, i, c, pos;
963
+ for (i = 0, pos = 0; i < this.len; i++) if (this.tests[i]) {
964
+ this.buffer[i] = this.getPlaceholder(i);
965
+ while (pos++ < test.length) {
966
+ c = test.charAt(pos - 1);
967
+ if (this.tests[i].test(c)) {
968
+ if (!this.keepBuffer()) this.buffer[i] = c;
969
+ lastMatch = i;
970
+ break;
971
+ }
972
+ }
973
+ if (pos > test.length) {
974
+ this.clearBuffer(i + 1, this.len);
975
+ break;
976
+ }
977
+ } else {
978
+ if (this.buffer[i] === test.charAt(pos)) pos++;
979
+ if (i < this.partialPosition) lastMatch = i;
980
+ }
981
+ if (allow) this.writeBuffer();
982
+ else if (lastMatch + 1 < this.partialPosition) if (this.autoClear() || this.buffer.join("") === this.defaultBuffer) {
983
+ if (inputViewChild?.nativeElement.value) inputViewChild.nativeElement.value = "";
984
+ this.clearBuffer(0, this.len);
985
+ } else this.writeBuffer();
986
+ else {
987
+ this.writeBuffer();
988
+ inputViewChild.nativeElement.value = inputViewChild?.nativeElement.value.substring(0, lastMatch + 1);
989
+ }
990
+ return this.partialPosition ? i : this.firstNonMaskPos;
991
+ }
992
+ onInputFocus(event) {
993
+ if (this.readonly()) return;
994
+ this.focused = true;
995
+ clearTimeout(this.caretTimeoutId);
996
+ let pos;
997
+ const inputViewChild = this.inputViewChild();
998
+ this.focusText = inputViewChild?.nativeElement.value;
999
+ pos = this.keepBuffer() ? inputViewChild?.nativeElement.value.length : this.checkVal();
1000
+ this.caretTimeoutId = setTimeout(() => {
1001
+ const inputViewChildValue = this.inputViewChild();
1002
+ if (inputViewChildValue?.nativeElement !== inputViewChildValue?.nativeElement.ownerDocument.activeElement) return;
1003
+ this.writeBuffer();
1004
+ if (pos == this.mask()?.replace("?", "").length) this.caret(0, pos);
1005
+ else this.caret(pos);
1006
+ }, 10);
1007
+ this.onFocus.emit(event);
1008
+ }
1009
+ onInputChange(event) {
1010
+ if (this.androidChrome) this.handleAndroidInput(event);
1011
+ else this.handleInputChange(event);
1012
+ this.onInput.emit(event);
1013
+ }
1014
+ handleInputChange(event) {
1015
+ if (this.readonly()) return;
1016
+ setTimeout(() => {
1017
+ var pos = this.checkVal(true);
1018
+ this.caret(pos);
1019
+ this.updateModel(event);
1020
+ if (this.isCompleted()) this.onComplete.emit();
1021
+ }, 0);
1022
+ }
1023
+ getUnmaskedValue() {
1024
+ let unmaskedBuffer = [];
1025
+ for (let i = 0; i < this.buffer.length; i++) {
1026
+ let c = this.buffer[i];
1027
+ if (this.tests[i] && c != this.getPlaceholder(i)) unmaskedBuffer.push(c);
1028
+ }
1029
+ return unmaskedBuffer.join("");
1030
+ }
1031
+ updateModel(e) {
1032
+ const target = e.target;
1033
+ if (!target) return;
1034
+ const updatedValue = this.unmask() ? this.getUnmaskedValue() : target.value;
1035
+ if (updatedValue !== null && updatedValue !== void 0) {
1036
+ this.value = updatedValue;
1037
+ this.writeModelValue(this.value);
1038
+ this.onModelChange(this.value);
1039
+ }
1040
+ }
1041
+ focus() {
1042
+ this.inputViewChild()?.nativeElement.focus();
1043
+ }
1044
+ clear() {
1045
+ this.inputViewChild().nativeElement.value = "";
1046
+ this.value = null;
1047
+ this.onModelChange(this.value);
1048
+ this.onClear.emit();
1049
+ }
1050
+ writeControlValue(value, setModelValue) {
1051
+ this.value = value;
1052
+ setModelValue(this.value);
1053
+ const inputViewChild = this.inputViewChild();
1054
+ if (inputViewChild && inputViewChild.nativeElement) {
1055
+ if (this.value == void 0 || this.value == null) inputViewChild.nativeElement.value = "";
1056
+ else inputViewChild.nativeElement.value = this.value;
1057
+ this.checkVal();
1058
+ this.focusText = inputViewChild.nativeElement.value;
1059
+ }
1060
+ this.cd.markForCheck();
1061
+ }
1062
+ static ɵfac = i0.ɵɵngDeclareFactory({
1063
+ minVersion: "12.0.0",
1064
+ version: "22.2.1",
1065
+ ngImport: i0,
1066
+ type: InputMask,
1067
+ deps: [],
1068
+ target: i0.ɵɵFactoryTarget.Component
1069
+ });
1070
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1071
+ minVersion: "17.0.0",
1072
+ version: "22.2.1",
1073
+ type: InputMask,
1074
+ isStandalone: true,
1075
+ selector: "h-inputmask, h-inputMask, h-input-mask",
1076
+ inputs: {
1077
+ type: {
1078
+ classPropertyName: "type",
1079
+ publicName: "type",
1080
+ isSignal: true,
1081
+ isRequired: false,
1082
+ transformFunction: null
1083
+ },
1084
+ slotChar: {
1085
+ classPropertyName: "slotChar",
1086
+ publicName: "slotChar",
1087
+ isSignal: true,
1088
+ isRequired: false,
1089
+ transformFunction: null
1090
+ },
1091
+ autoClear: {
1092
+ classPropertyName: "autoClear",
1093
+ publicName: "autoClear",
1094
+ isSignal: true,
1095
+ isRequired: false,
1096
+ transformFunction: null
1097
+ },
1098
+ showClear: {
1099
+ classPropertyName: "showClear",
1100
+ publicName: "showClear",
1101
+ isSignal: true,
1102
+ isRequired: false,
1103
+ transformFunction: null
1104
+ },
1105
+ style: {
1106
+ classPropertyName: "style",
1107
+ publicName: "style",
1108
+ isSignal: true,
1109
+ isRequired: false,
1110
+ transformFunction: null
1111
+ },
1112
+ inputId: {
1113
+ classPropertyName: "inputId",
1114
+ publicName: "inputId",
1115
+ isSignal: true,
1116
+ isRequired: false,
1117
+ transformFunction: null
1118
+ },
1119
+ styleClass: {
1120
+ classPropertyName: "styleClass",
1121
+ publicName: "styleClass",
1122
+ isSignal: true,
1123
+ isRequired: false,
1124
+ transformFunction: null
1125
+ },
1126
+ placeholder: {
1127
+ classPropertyName: "placeholder",
1128
+ publicName: "placeholder",
1129
+ isSignal: true,
1130
+ isRequired: false,
1131
+ transformFunction: null
1132
+ },
1133
+ tabindex: {
1134
+ classPropertyName: "tabindex",
1135
+ publicName: "tabindex",
1136
+ isSignal: true,
1137
+ isRequired: false,
1138
+ transformFunction: null
1139
+ },
1140
+ title: {
1141
+ classPropertyName: "title",
1142
+ publicName: "title",
1143
+ isSignal: true,
1144
+ isRequired: false,
1145
+ transformFunction: null
1146
+ },
1147
+ ariaLabel: {
1148
+ classPropertyName: "ariaLabel",
1149
+ publicName: "ariaLabel",
1150
+ isSignal: true,
1151
+ isRequired: false,
1152
+ transformFunction: null
1153
+ },
1154
+ ariaLabelledBy: {
1155
+ classPropertyName: "ariaLabelledBy",
1156
+ publicName: "ariaLabelledBy",
1157
+ isSignal: true,
1158
+ isRequired: false,
1159
+ transformFunction: null
1160
+ },
1161
+ ariaRequired: {
1162
+ classPropertyName: "ariaRequired",
1163
+ publicName: "ariaRequired",
1164
+ isSignal: true,
1165
+ isRequired: false,
1166
+ transformFunction: null
1167
+ },
1168
+ readonly: {
1169
+ classPropertyName: "readonly",
1170
+ publicName: "readonly",
1171
+ isSignal: true,
1172
+ isRequired: false,
1173
+ transformFunction: null
1174
+ },
1175
+ unmask: {
1176
+ classPropertyName: "unmask",
1177
+ publicName: "unmask",
1178
+ isSignal: true,
1179
+ isRequired: false,
1180
+ transformFunction: null
1181
+ },
1182
+ characterPattern: {
1183
+ classPropertyName: "characterPattern",
1184
+ publicName: "characterPattern",
1185
+ isSignal: true,
1186
+ isRequired: false,
1187
+ transformFunction: null
1188
+ },
1189
+ autofocus: {
1190
+ classPropertyName: "autofocus",
1191
+ publicName: "autofocus",
1192
+ isSignal: true,
1193
+ isRequired: false,
1194
+ transformFunction: null
1195
+ },
1196
+ autocomplete: {
1197
+ classPropertyName: "autocomplete",
1198
+ publicName: "autocomplete",
1199
+ isSignal: true,
1200
+ isRequired: false,
1201
+ transformFunction: null
1202
+ },
1203
+ keepBuffer: {
1204
+ classPropertyName: "keepBuffer",
1205
+ publicName: "keepBuffer",
1206
+ isSignal: true,
1207
+ isRequired: false,
1208
+ transformFunction: null
1209
+ },
1210
+ mask: {
1211
+ classPropertyName: "mask",
1212
+ publicName: "mask",
1213
+ isSignal: true,
1214
+ isRequired: false,
1215
+ transformFunction: null
1216
+ }
1217
+ },
1218
+ outputs: {
1219
+ onComplete: "onComplete",
1220
+ onFocus: "onFocus",
1221
+ onBlur: "onBlur",
1222
+ onInput: "onInput",
1223
+ onKeydown: "onKeydown",
1224
+ onClear: "onClear"
1225
+ },
1226
+ host: { properties: { "class": "cx('root')" } },
1227
+ providers: [
1228
+ INPUTMASK_VALUE_ACCESSOR,
1229
+ InputMaskStyle,
1230
+ {
1231
+ provide: INPUTMASK_INSTANCE,
1232
+ useExisting: InputMask
1233
+ },
1234
+ {
1235
+ provide: PARENT_INSTANCE,
1236
+ useExisting: InputMask
1237
+ }
1238
+ ],
1239
+ queries: [{
1240
+ propertyName: "clearIconTemplate",
1241
+ first: true,
1242
+ predicate: ["clearicon"],
1243
+ isSignal: true
1244
+ }, {
1245
+ propertyName: "templates",
1246
+ predicate: HelixTemplate,
1247
+ isSignal: true
1248
+ }],
1249
+ viewQueries: [{
1250
+ propertyName: "inputViewChild",
1251
+ first: true,
1252
+ predicate: ["input"],
1253
+ descendants: true,
1254
+ isSignal: true
1255
+ }],
1256
+ usesInheritance: true,
1257
+ hostDirectives: [{ directive: i1.Bind }],
1258
+ ngImport: i0,
1259
+ template: "<input\n #input\n hInputText\n [pt]=\"ptm('pcInputText', ptmParams())\"\n [unstyled]=\"unstyled()\"\n [attr.id]=\"inputId()\"\n [attr.type]=\"type()\"\n [attr.name]=\"name()\"\n [invalid]=\"invalid()\"\n [class]=\"styleClass()\"\n [ngStyle]=\"style()\"\n [attr.placeholder]=\"placeholder()\"\n [attr.title]=\"title()\"\n [pSize]=\"size()\"\n [attr.size]=\"inputSize()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.minlength]=\"minlength()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledBy]=\"ariaLabelledBy()\"\n [attr.aria-required]=\"ariaRequired()\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (keydown)=\"onInputKeydown($event)\"\n (keypress)=\"onKeyPress($event)\"\n [variant]=\"$variant()\"\n [hAutoFocus]=\"autofocus()\"\n (input)=\"onInputChange($event)\"\n (paste)=\"handleInputChange($event)\"\n [fluid]=\"hasFluid\"\n />\n@if (value != null && $filled() && showClear() && !$disabled()) {\n @if (!clearIconTemplate() && !_clearIconTemplate) {\n <svg data-h-icon=\"times\" [class]=\"cx('clearIcon')\" [hBind]=\"ptm('clearIcon')\" (click)=\"clear()\" />\n }\n @if (clearIconTemplate() || _clearIconTemplate) {\n <span [class]=\"cx('clearIcon')\" [hBind]=\"ptm('clearIcon')\" (click)=\"clear()\">\n <ng-template *ngTemplateOutlet=\"clearIconTemplate() || _clearIconTemplate\"></ng-template>\n </span>\n }\n}\n",
1260
+ dependencies: [
1261
+ {
1262
+ kind: "ngmodule",
1263
+ type: CommonModule
1264
+ },
1265
+ {
1266
+ kind: "directive",
1267
+ type: i2.NgTemplateOutlet,
1268
+ selector: "[ngTemplateOutlet]",
1269
+ inputs: [
1270
+ "ngTemplateOutletContext",
1271
+ "ngTemplateOutlet",
1272
+ "ngTemplateOutletInjector"
1273
+ ]
1274
+ },
1275
+ {
1276
+ kind: "directive",
1277
+ type: i2.NgStyle,
1278
+ selector: "[ngStyle]",
1279
+ inputs: ["ngStyle"]
1280
+ },
1281
+ {
1282
+ kind: "directive",
1283
+ type: InputText,
1284
+ selector: "[hInputText]",
1285
+ inputs: [
1286
+ "hostName",
1287
+ "ptInputText",
1288
+ "pInputTextPT",
1289
+ "pInputTextUnstyled",
1290
+ "pSize",
1291
+ "variant",
1292
+ "fluid",
1293
+ "invalid"
1294
+ ]
1295
+ },
1296
+ {
1297
+ kind: "directive",
1298
+ type: AutoFocus,
1299
+ selector: "[hAutoFocus]",
1300
+ inputs: ["hAutoFocus"]
1301
+ },
1302
+ {
1303
+ kind: "component",
1304
+ type: TimesIcon,
1305
+ selector: "[data-h-icon=\"times\"]"
1306
+ },
1307
+ {
1308
+ kind: "ngmodule",
1309
+ type: SharedModule
1310
+ },
1311
+ {
1312
+ kind: "ngmodule",
1313
+ type: BindModule
1314
+ },
1315
+ {
1316
+ kind: "directive",
1317
+ type: i1.Bind,
1318
+ selector: "[hBind]",
1319
+ inputs: ["hBind"]
1320
+ }
1321
+ ],
1322
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1323
+ encapsulation: i0.ViewEncapsulation.None
1324
+ });
1325
+ };
1326
+ i0.ɵɵngDeclareClassMetadata({
1327
+ minVersion: "12.0.0",
1328
+ version: "22.2.1",
1329
+ ngImport: i0,
1330
+ type: InputMask,
1331
+ decorators: [{
1332
+ type: Component,
1333
+ args: [{
1334
+ selector: "h-inputmask, h-inputMask, h-input-mask",
1335
+ standalone: true,
1336
+ imports: [
1337
+ CommonModule,
1338
+ InputText,
1339
+ AutoFocus,
1340
+ TimesIcon,
1341
+ SharedModule,
1342
+ BindModule
1343
+ ],
1344
+ providers: [
1345
+ INPUTMASK_VALUE_ACCESSOR,
1346
+ InputMaskStyle,
1347
+ {
1348
+ provide: INPUTMASK_INSTANCE,
1349
+ useExisting: InputMask
1350
+ },
1351
+ {
1352
+ provide: PARENT_INSTANCE,
1353
+ useExisting: InputMask
1354
+ }
1355
+ ],
1356
+ changeDetection: ChangeDetectionStrategy.OnPush,
1357
+ encapsulation: ViewEncapsulation.None,
1358
+ hostDirectives: [Bind],
1359
+ host: { "[class]": "cx('root')" },
1360
+ template: "<input\n #input\n hInputText\n [pt]=\"ptm('pcInputText', ptmParams())\"\n [unstyled]=\"unstyled()\"\n [attr.id]=\"inputId()\"\n [attr.type]=\"type()\"\n [attr.name]=\"name()\"\n [invalid]=\"invalid()\"\n [class]=\"styleClass()\"\n [ngStyle]=\"style()\"\n [attr.placeholder]=\"placeholder()\"\n [attr.title]=\"title()\"\n [pSize]=\"size()\"\n [attr.size]=\"inputSize()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.minlength]=\"minlength()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledBy]=\"ariaLabelledBy()\"\n [attr.aria-required]=\"ariaRequired()\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (keydown)=\"onInputKeydown($event)\"\n (keypress)=\"onKeyPress($event)\"\n [variant]=\"$variant()\"\n [hAutoFocus]=\"autofocus()\"\n (input)=\"onInputChange($event)\"\n (paste)=\"handleInputChange($event)\"\n [fluid]=\"hasFluid\"\n />\n@if (value != null && $filled() && showClear() && !$disabled()) {\n @if (!clearIconTemplate() && !_clearIconTemplate) {\n <svg data-h-icon=\"times\" [class]=\"cx('clearIcon')\" [hBind]=\"ptm('clearIcon')\" (click)=\"clear()\" />\n }\n @if (clearIconTemplate() || _clearIconTemplate) {\n <span [class]=\"cx('clearIcon')\" [hBind]=\"ptm('clearIcon')\" (click)=\"clear()\">\n <ng-template *ngTemplateOutlet=\"clearIconTemplate() || _clearIconTemplate\"></ng-template>\n </span>\n }\n}\n"
1361
+ }]
1362
+ }],
1363
+ ctorParameters: () => [],
1364
+ propDecorators: {
1365
+ type: [{
1366
+ type: i0.Input,
1367
+ args: [{
1368
+ isSignal: true,
1369
+ alias: "type",
1370
+ required: false
1371
+ }]
1372
+ }],
1373
+ slotChar: [{
1374
+ type: i0.Input,
1375
+ args: [{
1376
+ isSignal: true,
1377
+ alias: "slotChar",
1378
+ required: false
1379
+ }]
1380
+ }],
1381
+ autoClear: [{
1382
+ type: i0.Input,
1383
+ args: [{
1384
+ isSignal: true,
1385
+ alias: "autoClear",
1386
+ required: false
1387
+ }]
1388
+ }],
1389
+ showClear: [{
1390
+ type: i0.Input,
1391
+ args: [{
1392
+ isSignal: true,
1393
+ alias: "showClear",
1394
+ required: false
1395
+ }]
1396
+ }],
1397
+ style: [{
1398
+ type: i0.Input,
1399
+ args: [{
1400
+ isSignal: true,
1401
+ alias: "style",
1402
+ required: false
1403
+ }]
1404
+ }],
1405
+ inputId: [{
1406
+ type: i0.Input,
1407
+ args: [{
1408
+ isSignal: true,
1409
+ alias: "inputId",
1410
+ required: false
1411
+ }]
1412
+ }],
1413
+ styleClass: [{
1414
+ type: i0.Input,
1415
+ args: [{
1416
+ isSignal: true,
1417
+ alias: "styleClass",
1418
+ required: false
1419
+ }]
1420
+ }],
1421
+ placeholder: [{
1422
+ type: i0.Input,
1423
+ args: [{
1424
+ isSignal: true,
1425
+ alias: "placeholder",
1426
+ required: false
1427
+ }]
1428
+ }],
1429
+ tabindex: [{
1430
+ type: i0.Input,
1431
+ args: [{
1432
+ isSignal: true,
1433
+ alias: "tabindex",
1434
+ required: false
1435
+ }]
1436
+ }],
1437
+ title: [{
1438
+ type: i0.Input,
1439
+ args: [{
1440
+ isSignal: true,
1441
+ alias: "title",
1442
+ required: false
1443
+ }]
1444
+ }],
1445
+ ariaLabel: [{
1446
+ type: i0.Input,
1447
+ args: [{
1448
+ isSignal: true,
1449
+ alias: "ariaLabel",
1450
+ required: false
1451
+ }]
1452
+ }],
1453
+ ariaLabelledBy: [{
1454
+ type: i0.Input,
1455
+ args: [{
1456
+ isSignal: true,
1457
+ alias: "ariaLabelledBy",
1458
+ required: false
1459
+ }]
1460
+ }],
1461
+ ariaRequired: [{
1462
+ type: i0.Input,
1463
+ args: [{
1464
+ isSignal: true,
1465
+ alias: "ariaRequired",
1466
+ required: false
1467
+ }]
1468
+ }],
1469
+ readonly: [{
1470
+ type: i0.Input,
1471
+ args: [{
1472
+ isSignal: true,
1473
+ alias: "readonly",
1474
+ required: false
1475
+ }]
1476
+ }],
1477
+ unmask: [{
1478
+ type: i0.Input,
1479
+ args: [{
1480
+ isSignal: true,
1481
+ alias: "unmask",
1482
+ required: false
1483
+ }]
1484
+ }],
1485
+ characterPattern: [{
1486
+ type: i0.Input,
1487
+ args: [{
1488
+ isSignal: true,
1489
+ alias: "characterPattern",
1490
+ required: false
1491
+ }]
1492
+ }],
1493
+ autofocus: [{
1494
+ type: i0.Input,
1495
+ args: [{
1496
+ isSignal: true,
1497
+ alias: "autofocus",
1498
+ required: false
1499
+ }]
1500
+ }],
1501
+ autocomplete: [{
1502
+ type: i0.Input,
1503
+ args: [{
1504
+ isSignal: true,
1505
+ alias: "autocomplete",
1506
+ required: false
1507
+ }]
1508
+ }],
1509
+ keepBuffer: [{
1510
+ type: i0.Input,
1511
+ args: [{
1512
+ isSignal: true,
1513
+ alias: "keepBuffer",
1514
+ required: false
1515
+ }]
1516
+ }],
1517
+ mask: [{
1518
+ type: i0.Input,
1519
+ args: [{
1520
+ isSignal: true,
1521
+ alias: "mask",
1522
+ required: false
1523
+ }]
1524
+ }],
1525
+ onComplete: [{
1526
+ type: i0.Output,
1527
+ args: ["onComplete"]
1528
+ }],
1529
+ onFocus: [{
1530
+ type: i0.Output,
1531
+ args: ["onFocus"]
1532
+ }],
1533
+ onBlur: [{
1534
+ type: i0.Output,
1535
+ args: ["onBlur"]
1536
+ }],
1537
+ onInput: [{
1538
+ type: i0.Output,
1539
+ args: ["onInput"]
1540
+ }],
1541
+ onKeydown: [{
1542
+ type: i0.Output,
1543
+ args: ["onKeydown"]
1544
+ }],
1545
+ onClear: [{
1546
+ type: i0.Output,
1547
+ args: ["onClear"]
1548
+ }],
1549
+ clearIconTemplate: [{
1550
+ type: i0.ContentChild,
1551
+ args: ["clearicon", {
1552
+ descendants: false,
1553
+ isSignal: true
1554
+ }]
1555
+ }],
1556
+ templates: [{
1557
+ type: i0.ContentChildren,
1558
+ args: [i0.forwardRef(() => HelixTemplate), { isSignal: true }]
1559
+ }],
1560
+ inputViewChild: [{
1561
+ type: i0.ViewChild,
1562
+ args: ["input", { isSignal: true }]
1563
+ }]
1564
+ }
1565
+ });
1566
+ var InputMaskModule = class InputMaskModule {
1567
+ static ɵfac = i0.ɵɵngDeclareFactory({
1568
+ minVersion: "12.0.0",
1569
+ version: "22.2.1",
1570
+ ngImport: i0,
1571
+ type: InputMaskModule,
1572
+ deps: [],
1573
+ target: i0.ɵɵFactoryTarget.NgModule
1574
+ });
1575
+ static ɵmod = i0.ɵɵngDeclareNgModule({
1576
+ minVersion: "14.0.0",
1577
+ version: "22.2.1",
1578
+ ngImport: i0,
1579
+ type: InputMaskModule,
1580
+ imports: [
1581
+ InputMask,
1582
+ InputMaskDirective,
1583
+ SharedModule
1584
+ ],
1585
+ exports: [
1586
+ InputMask,
1587
+ InputMaskDirective,
1588
+ SharedModule
1589
+ ]
1590
+ });
1591
+ static ɵinj = i0.ɵɵngDeclareInjector({
1592
+ minVersion: "12.0.0",
1593
+ version: "22.2.1",
1594
+ ngImport: i0,
1595
+ type: InputMaskModule,
1596
+ imports: [
1597
+ InputMask,
1598
+ SharedModule,
1599
+ SharedModule
1600
+ ]
1601
+ });
1602
+ };
1603
+ i0.ɵɵngDeclareClassMetadata({
1604
+ minVersion: "12.0.0",
1605
+ version: "22.2.1",
1606
+ ngImport: i0,
1607
+ type: InputMaskModule,
1608
+ decorators: [{
1609
+ type: NgModule,
1610
+ args: [{
1611
+ imports: [
1612
+ InputMask,
1613
+ InputMaskDirective,
1614
+ SharedModule
1615
+ ],
1616
+ exports: [
1617
+ InputMask,
1618
+ InputMaskDirective,
1619
+ SharedModule
1620
+ ]
1621
+ }]
1622
+ }]
1623
+ });
1374
1624
  export { INPUTMASK_VALUE_ACCESSOR, InputMask, InputMaskClasses, InputMaskDirective, InputMaskModule, InputMaskStyle };
1375
- //# sourceMappingURL=gravionlabs-helix-core-inputmask.mjs.map
1625
+
1626
+ //# sourceMappingURL=gravionlabs-helix-core-inputmask.mjs.map