@exhaustive-ui/core 3.0.0-alpha.0 → 3.0.0-alpha.1

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 (265) hide show
  1. package/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
  2. package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
  4. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-api.mjs +6 -13
  6. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +485 -683
  8. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
  10. package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
  12. package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
  13. package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
  14. package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
  15. package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
  16. package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
  17. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
  18. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  19. package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
  20. package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
  21. package/fesm2022/exhaustive-ui-core-carousel.mjs +379 -451
  22. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  23. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
  24. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
  26. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
  28. package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
  30. package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
  32. package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +157 -332
  34. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +187 -210
  36. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +315 -361
  38. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
  40. package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-datepicker.mjs +1012 -1157
  42. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-dialog.mjs +370 -507
  44. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
  46. package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
  48. package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
  50. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
  52. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
  54. package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
  56. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-fileupload.mjs +486 -541
  58. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
  60. package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
  62. package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
  64. package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
  66. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
  68. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
  70. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
  72. package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-inplace.mjs +64 -98
  74. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
  76. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
  78. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
  80. package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
  82. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
  84. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
  86. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
  88. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
  90. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
  92. package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-listbox.mjs +365 -546
  94. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-megamenu.mjs +320 -371
  96. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
  98. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
  100. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
  102. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-multiselect.mjs +647 -835
  104. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
  106. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
  108. package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
  110. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
  112. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
  114. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
  116. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
  118. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-picklist.mjs +557 -655
  120. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
  122. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
  124. package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
  126. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
  128. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
  130. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-select.mjs +581 -784
  132. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
  134. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
  136. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
  138. package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
  140. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
  142. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
  144. package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
  146. package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-table.mjs +2213 -2543
  148. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
  150. package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
  151. package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
  152. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  153. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +318 -394
  154. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  155. package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
  156. package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
  157. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
  158. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  159. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
  160. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  161. package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
  162. package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
  163. package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
  164. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  165. package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
  166. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  167. package/fesm2022/exhaustive-ui-core-treeselect.mjs +327 -421
  168. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  169. package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
  170. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  171. package/package.json +5 -5
  172. package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
  173. package/schematics/migrations/renamed-inputs/migration.js +97 -0
  174. package/schematics/migrations/styleclass-to-class/migration.js +92 -1
  175. package/schematics/migrations.json +7 -2
  176. package/schematics/utils/removed-inputs.js +0 -0
  177. package/schematics/utils/renamed-inputs.js +175 -0
  178. package/schematics/utils/styleclass.js +24 -8
  179. package/schematics/utils/versions.json +8 -8
  180. package/types/exhaustive-ui-core-accordion.d.ts +8 -24
  181. package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
  182. package/types/exhaustive-ui-core-api.d.ts +2 -3
  183. package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
  184. package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
  185. package/types/exhaustive-ui-core-avatar.d.ts +18 -25
  186. package/types/exhaustive-ui-core-badge.d.ts +13 -27
  187. package/types/exhaustive-ui-core-blockui.d.ts +18 -30
  188. package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
  189. package/types/exhaustive-ui-core-button.d.ts +57 -89
  190. package/types/exhaustive-ui-core-carousel.d.ts +56 -82
  191. package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
  192. package/types/exhaustive-ui-core-chart.d.ts +21 -29
  193. package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
  194. package/types/exhaustive-ui-core-chip.d.ts +31 -38
  195. package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
  196. package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
  197. package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
  198. package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
  199. package/types/exhaustive-ui-core-dataview.d.ts +42 -65
  200. package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
  201. package/types/exhaustive-ui-core-dialog.d.ts +73 -123
  202. package/types/exhaustive-ui-core-dock.d.ts +16 -25
  203. package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
  204. package/types/exhaustive-ui-core-drawer.d.ts +32 -64
  205. package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
  206. package/types/exhaustive-ui-core-editor.d.ts +15 -25
  207. package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
  208. package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
  209. package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
  210. package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
  211. package/types/exhaustive-ui-core-galleria.d.ts +124 -194
  212. package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
  213. package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
  214. package/types/exhaustive-ui-core-image.d.ts +35 -68
  215. package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
  216. package/types/exhaustive-ui-core-inplace.d.ts +30 -42
  217. package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
  218. package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
  219. package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
  220. package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
  221. package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
  222. package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
  223. package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
  224. package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
  225. package/types/exhaustive-ui-core-knob.d.ts +45 -60
  226. package/types/exhaustive-ui-core-listbox.d.ts +90 -126
  227. package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
  228. package/types/exhaustive-ui-core-menu.d.ts +33 -53
  229. package/types/exhaustive-ui-core-menubar.d.ts +38 -85
  230. package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
  231. package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
  232. package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
  233. package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
  234. package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
  235. package/types/exhaustive-ui-core-paginator.d.ts +41 -69
  236. package/types/exhaustive-ui-core-panel.d.ts +18 -45
  237. package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
  238. package/types/exhaustive-ui-core-password.d.ts +56 -93
  239. package/types/exhaustive-ui-core-picklist.d.ts +107 -121
  240. package/types/exhaustive-ui-core-popover.d.ts +23 -47
  241. package/types/exhaustive-ui-core-rating.d.ts +18 -26
  242. package/types/exhaustive-ui-core-scroller.d.ts +90 -120
  243. package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
  244. package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
  245. package/types/exhaustive-ui-core-select.d.ts +137 -188
  246. package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
  247. package/types/exhaustive-ui-core-slider.d.ts +52 -67
  248. package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
  249. package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
  250. package/types/exhaustive-ui-core-splitter.d.ts +47 -59
  251. package/types/exhaustive-ui-core-steps.d.ts +24 -31
  252. package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
  253. package/types/exhaustive-ui-core-table.d.ts +349 -453
  254. package/types/exhaustive-ui-core-terminal.d.ts +10 -22
  255. package/types/exhaustive-ui-core-textarea.d.ts +7 -10
  256. package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
  257. package/types/exhaustive-ui-core-timeline.d.ts +20 -28
  258. package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
  259. package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
  260. package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
  261. package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
  262. package/types/exhaustive-ui-core-tree.d.ts +82 -119
  263. package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
  264. package/types/exhaustive-ui-core-treetable.d.ts +203 -280
  265. package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
@@ -2,7 +2,7 @@ export * from '@exhaustive-ui/core/types/inputmask';
2
2
  import * as i2 from '@angular/common';
3
3
  import { isPlatformBrowser, CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, inject, input, booleanAttribute, output, effect, Directive, forwardRef, computed, contentChild, contentChildren, viewChild, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, InjectionToken, inject, input, booleanAttribute, output, computed, signal, linkedSignal, effect, afterNextRender, Directive, forwardRef, untracked, afterEveryRender, contentChild, contentChildren, viewChild, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
7
7
  import { getUserAgent, isClient } from '@exhaustive-ui/utils';
8
8
  import { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
@@ -182,81 +182,17 @@ class InputMaskDirective extends BaseComponent {
182
182
  * @group Emits
183
183
  */
184
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-p-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.pInputMask();
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() {
185
+ parsedMask = computed(() => {
251
186
  const maskValue = this.pInputMask();
252
187
  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 = {
188
+ return { defs: undefined, tests: undefined, partialPosition: undefined, firstNonMaskPos: undefined, lastRequiredNonMaskPos: undefined, len: undefined, buffer: undefined, defaultBuffer: undefined };
189
+ }
190
+ const tests = [];
191
+ let partialPosition = maskValue.length;
192
+ let len = maskValue.length;
193
+ let firstNonMaskPos = null;
194
+ let lastRequiredNonMaskPos;
195
+ const defs = {
260
196
  '9': '[0-9]',
261
197
  a: this.characterPattern(),
262
198
  '*': `${this.characterPattern()}|[0-9]`
@@ -265,43 +201,114 @@ class InputMaskDirective extends BaseComponent {
265
201
  for (let i = 0; i < maskTokens.length; i++) {
266
202
  const c = maskTokens[i];
267
203
  if (c == '?') {
268
- this.len--;
269
- this.partialPosition = i;
204
+ len--;
205
+ partialPosition = i;
270
206
  }
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;
207
+ else if (defs[c]) {
208
+ tests.push(new RegExp(defs[c]));
209
+ if (firstNonMaskPos === null) {
210
+ firstNonMaskPos = tests.length - 1;
275
211
  }
276
- if (i < this.partialPosition) {
277
- this.lastRequiredNonMaskPos = this.tests.length - 1;
212
+ if (i < partialPosition) {
213
+ lastRequiredNonMaskPos = tests.length - 1;
278
214
  }
279
215
  }
280
216
  else {
281
- this.tests.push(null);
217
+ tests.push(null);
282
218
  }
283
219
  }
284
- this.buffer = [];
220
+ const buffer = [];
285
221
  for (let i = 0; i < maskTokens.length; i++) {
286
222
  const c = maskTokens[i];
287
223
  if (c != '?') {
288
- if (this.defs[c])
289
- this.buffer.push(this.getPlaceholder(i));
224
+ if (defs[c])
225
+ buffer.push(this.getPlaceholder(i));
290
226
  else
291
- this.buffer.push(c);
227
+ buffer.push(c);
292
228
  }
293
229
  }
294
- this.defaultBuffer = this.buffer.join('');
230
+ const defaultBuffer = buffer.join('');
231
+ return { defs, tests, partialPosition, firstNonMaskPos, lastRequiredNonMaskPos, len, buffer, defaultBuffer };
232
+ }, /* @ts-ignore */
233
+ ...(ngDevMode ? [{ debugName: "parsedMask" }] : /* istanbul ignore next */ []));
234
+ defs = computed(() => this.parsedMask().defs, /* @ts-ignore */
235
+ ...(ngDevMode ? [{ debugName: "defs" }] : /* istanbul ignore next */ []));
236
+ tests = computed(() => this.parsedMask().tests, /* @ts-ignore */
237
+ ...(ngDevMode ? [{ debugName: "tests" }] : /* istanbul ignore next */ []));
238
+ partialPosition = computed(() => this.parsedMask().partialPosition, /* @ts-ignore */
239
+ ...(ngDevMode ? [{ debugName: "partialPosition" }] : /* istanbul ignore next */ []));
240
+ firstNonMaskPos = computed(() => this.parsedMask().firstNonMaskPos, /* @ts-ignore */
241
+ ...(ngDevMode ? [{ debugName: "firstNonMaskPos" }] : /* istanbul ignore next */ []));
242
+ lastRequiredNonMaskPos = computed(() => this.parsedMask().lastRequiredNonMaskPos, /* @ts-ignore */
243
+ ...(ngDevMode ? [{ debugName: "lastRequiredNonMaskPos" }] : /* istanbul ignore next */ []));
244
+ len = computed(() => this.parsedMask().len, /* @ts-ignore */
245
+ ...(ngDevMode ? [{ debugName: "len" }] : /* istanbul ignore next */ []));
246
+ oldVal = signal(undefined, /* @ts-ignore */
247
+ ...(ngDevMode ? [{ debugName: "oldVal" }] : /* istanbul ignore next */ []));
248
+ buffer = linkedSignal(() => this.parsedMask().buffer, /* @ts-ignore */
249
+ ...(ngDevMode ? [{ debugName: "buffer" }] : /* istanbul ignore next */ []));
250
+ defaultBuffer = computed(() => this.parsedMask().defaultBuffer, /* @ts-ignore */
251
+ ...(ngDevMode ? [{ debugName: "defaultBuffer" }] : /* istanbul ignore next */ []));
252
+ focusText = signal(undefined, /* @ts-ignore */
253
+ ...(ngDevMode ? [{ debugName: "focusText" }] : /* istanbul ignore next */ []));
254
+ caretTimeoutId = signal(undefined, /* @ts-ignore */
255
+ ...(ngDevMode ? [{ debugName: "caretTimeoutId" }] : /* istanbul ignore next */ []));
256
+ androidChrome = isPlatformBrowser(this.platformId) ? /chrome/i.test(navigator.userAgent) && /android/i.test(navigator.userAgent) : true;
257
+ focused = signal(undefined, /* @ts-ignore */
258
+ ...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
259
+ _inputElement = signal(null, /* @ts-ignore */
260
+ ...(ngDevMode ? [{ debugName: "_inputElement" }] : /* istanbul ignore next */ []));
261
+ _listeners = signal([], /* @ts-ignore */
262
+ ...(ngDevMode ? [{ debugName: "_listeners" }] : /* istanbul ignore next */ []));
263
+ isInputVisible(input) {
264
+ const style = getComputedStyle(input);
265
+ return style.display !== 'none' && style.visibility !== 'hidden';
266
+ }
267
+ get inputElement() {
268
+ if (!this._inputElement()) {
269
+ const host = this.el.nativeElement;
270
+ this._inputElement.set(host.querySelector('[data-p-maskable]') || Array.from(host.querySelectorAll('input')).find((input) => this.isInputVisible(input)) || host);
271
+ }
272
+ return this._inputElement();
273
+ }
274
+ constructor() {
275
+ super();
276
+ effect(() => {
277
+ const pt = this.pInputMaskPT();
278
+ pt && this.directivePT.set(pt);
279
+ });
280
+ effect(() => {
281
+ this.pInputMaskUnstyled() && this.directiveUnstyled.set(this.pInputMaskUnstyled());
282
+ });
283
+ afterNextRender(() => {
284
+ if (isPlatformBrowser(this.platformId) && this.inputElement) {
285
+ const events = [
286
+ ['focus', (e) => this.onInputFocus(e)],
287
+ ['blur', (e) => this.onInputBlur(e)],
288
+ ['keydown', (e) => this.onInputKeydown(e)],
289
+ ['keypress', (e) => this.onKeyPress(e)],
290
+ ['input', (e) => this.onInputChange(e)],
291
+ ['paste', (e) => this.onPaste(e)]
292
+ ];
293
+ events.forEach(([event, handler]) => {
294
+ this.inputElement.addEventListener(event, handler);
295
+ this._listeners.update((listeners) => [...listeners, () => this.inputElement.removeEventListener(event, handler)]);
296
+ });
297
+ }
298
+ });
299
+ }
300
+ onDestroy() {
301
+ this._listeners().forEach((unlisten) => unlisten());
295
302
  }
296
303
  onInputFocus(event) {
297
304
  if (this.inputElement.readOnly || !this.pInputMask()) {
298
305
  return;
299
306
  }
300
- this.focused = true;
301
- this.focusText = this.inputElement.value;
302
- clearTimeout(this.caretTimeoutId);
307
+ this.focused.set(true);
308
+ this.focusText.set(this.inputElement.value);
309
+ clearTimeout(this.caretTimeoutId());
303
310
  const pos = this.checkVal();
304
- this.caretTimeoutId = setTimeout(() => {
311
+ this.caretTimeoutId.set(setTimeout(() => {
305
312
  if (this.inputElement !== this.inputElement.ownerDocument.activeElement) {
306
313
  return;
307
314
  }
@@ -312,13 +319,13 @@ class InputMaskDirective extends BaseComponent {
312
319
  else {
313
320
  this.caret(pos);
314
321
  }
315
- }, 10);
322
+ }, 10));
316
323
  }
317
324
  onInputBlur(e) {
318
325
  if (!this.pInputMask()) {
319
326
  return;
320
327
  }
321
- this.focused = false;
328
+ this.focused.set(false);
322
329
  // Validate/finalize value on blur (clear incomplete if autoClear)
323
330
  if (!this.keepBuffer()) {
324
331
  const valueBefore = this.inputElement.value;
@@ -341,7 +348,7 @@ class InputMaskDirective extends BaseComponent {
341
348
  if (isPlatformBrowser(this.platformId)) {
342
349
  iPhone = /iphone/i.test(getUserAgent());
343
350
  }
344
- this.oldVal = this.inputElement.value;
351
+ this.oldVal.set(this.inputElement.value);
345
352
  // backspace, delete, and escape get special treatment
346
353
  if (k === 8 || k === 46 || (iPhone && k === 127)) {
347
354
  pos = this.caret();
@@ -368,7 +375,7 @@ class InputMaskDirective extends BaseComponent {
368
375
  }
369
376
  else if (k === 27) {
370
377
  // escape
371
- this.inputElement.value = this.focusText;
378
+ this.inputElement.value = this.focusText();
372
379
  this.caret(0, this.checkVal());
373
380
  e.preventDefault();
374
381
  }
@@ -392,11 +399,15 @@ class InputMaskDirective extends BaseComponent {
392
399
  this.shiftL(pos.begin, pos.end - 1);
393
400
  }
394
401
  p = this.seekNext(pos.begin - 1);
395
- if (p < this.len) {
402
+ if (p < this.len()) {
396
403
  c = String.fromCharCode(k);
397
- if (this.tests[p].test(c)) {
404
+ if (this.tests()[p].test(c)) {
398
405
  this.shiftR(p);
399
- this.buffer[p] = c;
406
+ this.buffer.update((buffer) => {
407
+ const next = [...buffer];
408
+ next[p] = c;
409
+ return next;
410
+ });
400
411
  this.writeBuffer();
401
412
  // Dispatch input event to notify parent components (like DatePicker)
402
413
  this.dispatchInputEvent();
@@ -410,7 +421,7 @@ class InputMaskDirective extends BaseComponent {
410
421
  else {
411
422
  this.caret(next);
412
423
  }
413
- if (pos.begin <= this.lastRequiredNonMaskPos) {
424
+ if (pos.begin <= this.lastRequiredNonMaskPos()) {
414
425
  completed = this.isCompleted();
415
426
  }
416
427
  }
@@ -476,8 +487,8 @@ class InputMaskDirective extends BaseComponent {
476
487
  }
477
488
  }
478
489
  isCompleted() {
479
- for (let i = this.firstNonMaskPos; i <= this.lastRequiredNonMaskPos; i++) {
480
- if (this.tests[i] && this.buffer[i] === this.getPlaceholder(i)) {
490
+ for (let i = this.firstNonMaskPos(); i <= this.lastRequiredNonMaskPos(); i++) {
491
+ if (this.tests()[i] && this.buffer()[i] === this.getPlaceholder(i)) {
481
492
  return false;
482
493
  }
483
494
  }
@@ -491,12 +502,12 @@ class InputMaskDirective extends BaseComponent {
491
502
  return slotCharValue.charAt(0);
492
503
  }
493
504
  seekNext(pos) {
494
- while (++pos < this.len && !this.tests[pos])
505
+ while (++pos < this.len() && !this.tests()[pos])
495
506
  ;
496
507
  return pos;
497
508
  }
498
509
  seekPrev(pos) {
499
- while (--pos >= 0 && !this.tests[pos])
510
+ while (--pos >= 0 && !this.tests()[pos])
500
511
  ;
501
512
  return pos;
502
513
  }
@@ -505,11 +516,15 @@ class InputMaskDirective extends BaseComponent {
505
516
  if (begin < 0) {
506
517
  return;
507
518
  }
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);
519
+ for (i = begin, j = this.seekNext(end); i < this.len(); i++) {
520
+ if (this.tests()[i]) {
521
+ if (j < this.len() && this.tests()[i].test(this.buffer()[j])) {
522
+ this.buffer.update((buffer) => {
523
+ const next = [...buffer];
524
+ next[i] = buffer[j];
525
+ next[j] = this.getPlaceholder(j);
526
+ return next;
527
+ });
513
528
  }
514
529
  else {
515
530
  break;
@@ -518,16 +533,20 @@ class InputMaskDirective extends BaseComponent {
518
533
  }
519
534
  }
520
535
  this.writeBuffer();
521
- this.caret(Math.max(this.firstNonMaskPos, begin));
536
+ this.caret(Math.max(this.firstNonMaskPos(), begin));
522
537
  }
523
538
  shiftR(pos) {
524
539
  let i, c, j, t;
525
- for (i = pos, c = this.getPlaceholder(pos); i < this.len; i++) {
526
- if (this.tests[i]) {
540
+ for (i = pos, c = this.getPlaceholder(pos); i < this.len(); i++) {
541
+ if (this.tests()[i]) {
527
542
  j = this.seekNext(i);
528
- t = this.buffer[i];
529
- this.buffer[i] = c;
530
- if (j < this.len && this.tests[j].test(t)) {
543
+ t = this.buffer()[i];
544
+ this.buffer.update((buffer) => {
545
+ const next = [...buffer];
546
+ next[i] = c;
547
+ return next;
548
+ });
549
+ if (j < this.len() && this.tests()[j].test(t)) {
531
550
  c = t;
532
551
  }
533
552
  else {
@@ -539,13 +558,14 @@ class InputMaskDirective extends BaseComponent {
539
558
  handleAndroidInput(e) {
540
559
  const curVal = this.inputElement.value;
541
560
  const pos = this.caret();
542
- if (this.oldVal && this.oldVal.length && this.oldVal.length > curVal.length) {
561
+ const oldVal = this.oldVal();
562
+ if (oldVal && oldVal.length && oldVal.length > curVal.length) {
543
563
  // a deletion or backspace happened
544
564
  this.checkVal(true);
545
- while (pos.begin > 0 && !this.tests[pos.begin - 1])
565
+ while (pos.begin > 0 && !this.tests()[pos.begin - 1])
546
566
  pos.begin--;
547
567
  if (pos.begin === 0) {
548
- while (pos.begin < this.firstNonMaskPos && !this.tests[pos.begin])
568
+ while (pos.begin < this.firstNonMaskPos() && !this.tests()[pos.begin])
549
569
  pos.begin++;
550
570
  }
551
571
  setTimeout(() => {
@@ -558,7 +578,7 @@ class InputMaskDirective extends BaseComponent {
558
578
  }
559
579
  else {
560
580
  this.checkVal(true);
561
- while (pos.begin < this.len && !this.tests[pos.begin])
581
+ while (pos.begin < this.len() && !this.tests()[pos.begin])
562
582
  pos.begin++;
563
583
  setTimeout(() => {
564
584
  this.caret(pos.begin, pos.begin);
@@ -585,16 +605,21 @@ class InputMaskDirective extends BaseComponent {
585
605
  clearBuffer(start, end) {
586
606
  if (!this.keepBuffer()) {
587
607
  let i;
588
- for (i = start; i < end && i < this.len; i++) {
589
- if (this.tests[i]) {
590
- this.buffer[i] = this.getPlaceholder(i);
608
+ for (i = start; i < end && i < this.len(); i++) {
609
+ if (this.tests()[i]) {
610
+ this.buffer.update((buffer) => {
611
+ const next = [...buffer];
612
+ next[i] = this.getPlaceholder(i);
613
+ return next;
614
+ });
591
615
  }
592
616
  }
593
617
  }
594
618
  }
595
619
  writeBuffer() {
596
- if (this.buffer && this.inputElement) {
597
- this.inputElement.value = this.buffer.join('');
620
+ const buffer = this.buffer();
621
+ if (buffer && this.inputElement) {
622
+ this.inputElement.value = buffer.join('');
598
623
  }
599
624
  }
600
625
  /**
@@ -614,29 +639,37 @@ class InputMaskDirective extends BaseComponent {
614
639
  let i;
615
640
  let c;
616
641
  let pos;
617
- for (i = 0, pos = 0; i < this.len; i++) {
618
- if (this.tests[i]) {
619
- this.buffer[i] = this.getPlaceholder(i);
642
+ for (i = 0, pos = 0; i < this.len(); i++) {
643
+ if (this.tests()[i]) {
644
+ this.buffer.update((buffer) => {
645
+ const next = [...buffer];
646
+ next[i] = this.getPlaceholder(i);
647
+ return next;
648
+ });
620
649
  while (pos++ < test.length) {
621
650
  c = test.charAt(pos - 1);
622
- if (this.tests[i].test(c)) {
651
+ if (this.tests()[i].test(c)) {
623
652
  if (!this.keepBuffer()) {
624
- this.buffer[i] = c;
653
+ this.buffer.update((buffer) => {
654
+ const next = [...buffer];
655
+ next[i] = c;
656
+ return next;
657
+ });
625
658
  }
626
659
  lastMatch = i;
627
660
  break;
628
661
  }
629
662
  }
630
663
  if (pos > test.length) {
631
- this.clearBuffer(i + 1, this.len);
664
+ this.clearBuffer(i + 1, this.len());
632
665
  break;
633
666
  }
634
667
  }
635
668
  else {
636
- if (this.buffer[i] === test.charAt(pos)) {
669
+ if (this.buffer()[i] === test.charAt(pos)) {
637
670
  pos++;
638
671
  }
639
- if (i < this.partialPosition) {
672
+ if (i < this.partialPosition()) {
640
673
  lastMatch = i;
641
674
  }
642
675
  }
@@ -644,13 +677,13 @@ class InputMaskDirective extends BaseComponent {
644
677
  if (allow) {
645
678
  this.writeBuffer();
646
679
  }
647
- else if (lastMatch + 1 < this.partialPosition) {
648
- if (this.autoClear() || this.buffer.join('') === this.defaultBuffer) {
680
+ else if (lastMatch + 1 < this.partialPosition()) {
681
+ if (this.autoClear() || this.buffer().join('') === this.defaultBuffer()) {
649
682
  // Invalid value. Remove it and replace it with the
650
683
  // mask, which is the default behavior.
651
684
  if (this.inputElement.value)
652
685
  this.inputElement.value = '';
653
- this.clearBuffer(0, this.len);
686
+ this.clearBuffer(0, this.len());
654
687
  }
655
688
  else {
656
689
  // Invalid value, but we opt to show the value to the
@@ -662,13 +695,14 @@ class InputMaskDirective extends BaseComponent {
662
695
  this.writeBuffer();
663
696
  this.inputElement.value = this.inputElement.value.substring(0, lastMatch + 1);
664
697
  }
665
- return (this.partialPosition ? i : this.firstNonMaskPos);
698
+ return (this.partialPosition() ? i : this.firstNonMaskPos());
666
699
  }
667
700
  getUnmaskedValue() {
668
701
  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)) {
702
+ const buffer = this.buffer();
703
+ for (let i = 0; i < buffer.length; i++) {
704
+ const c = buffer[i];
705
+ if (this.tests()[i] && c != this.getPlaceholder(i)) {
672
706
  unmaskedBuffer.push(c);
673
707
  }
674
708
  }
@@ -681,7 +715,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
681
715
  type: Directive,
682
716
  args: [{
683
717
  selector: '[pInputMask]',
684
- standalone: true,
685
718
  providers: [InputMaskStyle, { provide: INPUTMASK_DIRECTIVE_INSTANCE, useExisting: InputMaskDirective }, { provide: PARENT_INSTANCE, useExisting: InputMaskDirective }],
686
719
  host: {
687
720
  '[class.p-inputmask]': '!$unstyled()'
@@ -702,8 +735,20 @@ class InputMask extends BaseInput {
702
735
  _componentStyle = inject(InputMaskStyle);
703
736
  $pcInputMask = inject(INPUTMASK_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
704
737
  bindDirectiveInstance = inject(Bind, { self: true });
705
- onAfterViewChecked() {
706
- this.bindDirectiveInstance.setAttrs(this.ptms(['root', 'host']));
738
+ constructor() {
739
+ super();
740
+ let maskBound = false;
741
+ effect(() => {
742
+ this.mask();
743
+ if (maskBound) {
744
+ untracked(() => {
745
+ this.writeValue('');
746
+ this.onModelChange(this.value());
747
+ });
748
+ }
749
+ maskBound = true;
750
+ });
751
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
707
752
  }
708
753
  ptmParams = computed(() => ({ context: { filled: this.$variant() === 'filled' } }), /* @ts-ignore */
709
754
  ...(ngDevMode ? [{ debugName: "ptmParams" }] : /* istanbul ignore next */ []));
@@ -711,110 +756,115 @@ class InputMask extends BaseInput {
711
756
  * HTML5 input type.
712
757
  * @group Props
713
758
  */
714
- type = 'text';
759
+ type = input('text', /* @ts-ignore */
760
+ ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
715
761
  /**
716
762
  * Placeholder character in mask, default is underscore.
717
763
  * @group Props
718
764
  */
719
- slotChar = '_';
765
+ slotChar = input('_', /* @ts-ignore */
766
+ ...(ngDevMode ? [{ debugName: "slotChar" }] : /* istanbul ignore next */ []));
720
767
  /**
721
768
  * Clears the incomplete value on blur.
722
769
  * @group Props
723
770
  */
724
- autoClear = true;
771
+ autoClear = input(true, { ...(ngDevMode ? { debugName: "autoClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
725
772
  /**
726
773
  * When enabled, a clear icon is displayed to clear the value.
727
774
  * @group Props
728
775
  */
729
- showClear = false;
776
+ showClear = input(false, { ...(ngDevMode ? { debugName: "showClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
730
777
  /**
731
778
  * Inline style of the input field.
732
779
  * @group Props
733
780
  */
734
- style;
781
+ style = input(/* @ts-ignore */
782
+ ...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
735
783
  /**
736
784
  * Identifier of the focus input to match a label defined for the component.
737
785
  * @group Props
738
786
  */
739
- inputId;
787
+ inputId = input(/* @ts-ignore */
788
+ ...(ngDevMode ? [undefined, { debugName: "inputId" }] : /* istanbul ignore next */ []));
740
789
  /**
741
790
  * Style class of the input field.
742
791
  * @group Props
743
792
  */
744
- styleClass;
793
+ styleClass = input(/* @ts-ignore */
794
+ ...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
745
795
  /**
746
796
  * Advisory information to display on input.
747
797
  * @group Props
748
798
  */
749
- placeholder;
799
+ placeholder = input(/* @ts-ignore */
800
+ ...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
750
801
  /**
751
802
  * Specifies tab order of the element.
752
803
  * @group Props
753
804
  */
754
- tabindex;
805
+ tabindex = input(/* @ts-ignore */
806
+ ...(ngDevMode ? [undefined, { debugName: "tabindex" }] : /* istanbul ignore next */ []));
755
807
  /**
756
808
  * Title text of the input text.
757
809
  * @group Props
758
810
  */
759
- title;
811
+ title = input(/* @ts-ignore */
812
+ ...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
760
813
  /**
761
814
  * Used to define a string that labels the input element.
762
815
  * @group Props
763
816
  */
764
- ariaLabel;
817
+ ariaLabel = input(/* @ts-ignore */
818
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
765
819
  /**
766
820
  * Establishes relationships between the component and label(s) where its value should be one or more element IDs.
767
821
  * @group Props
768
822
  */
769
- ariaLabelledBy;
823
+ ariaLabelledBy = input(/* @ts-ignore */
824
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
770
825
  /**
771
826
  * Used to indicate that user input is required on an element before a form can be submitted.
772
827
  * @group Props
773
828
  */
774
- ariaRequired;
829
+ ariaRequired = input(undefined, { ...(ngDevMode ? { debugName: "ariaRequired" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
775
830
  /**
776
831
  * When present, it specifies that an input field is read-only.
777
832
  * @group Props
778
833
  */
779
- readonly;
834
+ readonly = input(undefined, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
780
835
  /**
781
836
  * Defines if ngModel sets the raw unmasked value to bound value or the formatted mask value.
782
837
  * @group Props
783
838
  */
784
- unmask;
839
+ unmask = input(undefined, { ...(ngDevMode ? { debugName: "unmask" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
785
840
  /**
786
841
  * Regex pattern for alpha characters
787
842
  * @group Props
788
843
  */
789
- characterPattern = '[A-Za-z]';
844
+ characterPattern = input('[A-Za-z]', /* @ts-ignore */
845
+ ...(ngDevMode ? [{ debugName: "characterPattern" }] : /* istanbul ignore next */ []));
790
846
  /**
791
847
  * When present, the input gets a focus automatically on load.
792
848
  * @group Props
793
849
  */
794
- autofocus;
850
+ autofocus = input(undefined, { ...(ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
795
851
  /**
796
852
  * Used to define a string that autocomplete attribute the current element.
797
853
  * @group Props
798
854
  */
799
- autocomplete;
855
+ autocomplete = input(/* @ts-ignore */
856
+ ...(ngDevMode ? [undefined, { debugName: "autocomplete" }] : /* istanbul ignore next */ []));
800
857
  /**
801
858
  * When present, it specifies that whether to clean buffer value from model.
802
859
  * @group Props
803
860
  */
804
- keepBuffer = false;
861
+ keepBuffer = input(false, { ...(ngDevMode ? { debugName: "keepBuffer" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
805
862
  /**
806
863
  * Mask pattern.
807
864
  * @group Props
808
865
  */
809
- get mask() {
810
- return this._mask;
811
- }
812
- set mask(val) {
813
- this._mask = val;
814
- this.initMask();
815
- this.writeValue('');
816
- this.onModelChange(this.value);
817
- }
866
+ mask = input(/* @ts-ignore */
867
+ ...(ngDevMode ? [undefined, { debugName: "mask" }] : /* istanbul ignore next */ []));
818
868
  /**
819
869
  * Callback to invoke when the mask is completed.
820
870
  * @group Emits
@@ -858,84 +908,86 @@ class InputMask extends BaseInput {
858
908
  ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
859
909
  inputViewChild = viewChild('input', /* @ts-ignore */
860
910
  ...(ngDevMode ? [{ debugName: "inputViewChild" }] : /* istanbul ignore next */ []));
861
- value;
862
- _mask;
863
- input;
864
- defs;
865
- tests;
866
- partialPosition;
867
- firstNonMaskPos;
868
- lastRequiredNonMaskPos;
869
- len;
870
- oldVal;
871
- buffer;
872
- defaultBuffer;
873
- focusText;
874
- caretTimeoutId;
875
- androidChrome = true;
876
- focused;
877
- onInit() {
878
- if (isPlatformBrowser(this.platformId)) {
879
- let ua = navigator.userAgent;
880
- this.androidChrome = /chrome/i.test(ua) && /android/i.test(ua);
881
- }
882
- this.initMask();
883
- }
884
- _clearIconTemplate;
885
- onAfterContentInit() {
886
- this.templates().forEach((item) => {
887
- switch (item.getType()) {
888
- case 'clearicon':
889
- this._clearIconTemplate = item.template;
890
- break;
891
- }
892
- });
893
- }
894
- initMask() {
895
- if (!this.mask) {
896
- return;
897
- }
898
- this.tests = [];
899
- this.partialPosition = this.mask.length;
900
- this.len = this.mask.length;
901
- this.firstNonMaskPos = null;
902
- this.defs = {
911
+ value = signal(undefined, /* @ts-ignore */
912
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
913
+ parsedMask = computed(() => {
914
+ const mask = this.mask();
915
+ if (!mask) {
916
+ return { defs: undefined, tests: undefined, partialPosition: undefined, firstNonMaskPos: undefined, lastRequiredNonMaskPos: undefined, len: undefined, buffer: undefined, defaultBuffer: undefined };
917
+ }
918
+ const tests = [];
919
+ let partialPosition = mask.length;
920
+ let len = mask.length;
921
+ let firstNonMaskPos = null;
922
+ let lastRequiredNonMaskPos;
923
+ const defs = {
903
924
  '9': '[0-9]',
904
- a: this.characterPattern,
905
- '*': `${this.characterPattern}|[0-9]`
925
+ a: this.characterPattern(),
926
+ '*': `${this.characterPattern()}|[0-9]`
906
927
  };
907
- let maskTokens = this.mask.split('');
928
+ let maskTokens = mask.split('');
908
929
  for (let i = 0; i < maskTokens.length; i++) {
909
930
  let c = maskTokens[i];
910
931
  if (c == '?') {
911
- this.len--;
912
- this.partialPosition = i;
932
+ len--;
933
+ partialPosition = i;
913
934
  }
914
- else if (this.defs[c]) {
915
- this.tests.push(new RegExp(this.defs[c]));
916
- if (this.firstNonMaskPos === null) {
917
- this.firstNonMaskPos = this.tests.length - 1;
935
+ else if (defs[c]) {
936
+ tests.push(new RegExp(defs[c]));
937
+ if (firstNonMaskPos === null) {
938
+ firstNonMaskPos = tests.length - 1;
918
939
  }
919
- if (i < this.partialPosition) {
920
- this.lastRequiredNonMaskPos = this.tests.length - 1;
940
+ if (i < partialPosition) {
941
+ lastRequiredNonMaskPos = tests.length - 1;
921
942
  }
922
943
  }
923
944
  else {
924
- this.tests.push(null);
945
+ tests.push(null);
925
946
  }
926
947
  }
927
- this.buffer = [];
948
+ const buffer = [];
928
949
  for (let i = 0; i < maskTokens.length; i++) {
929
950
  let c = maskTokens[i];
930
951
  if (c != '?') {
931
- if (this.defs[c])
932
- this.buffer.push(this.getPlaceholder(i));
952
+ if (defs[c])
953
+ buffer.push(this.getPlaceholder(i));
933
954
  else
934
- this.buffer.push(c);
955
+ buffer.push(c);
935
956
  }
936
957
  }
937
- this.defaultBuffer = this.buffer.join('');
938
- }
958
+ const defaultBuffer = buffer.join('');
959
+ return { defs, tests, partialPosition, firstNonMaskPos, lastRequiredNonMaskPos, len, buffer, defaultBuffer };
960
+ }, /* @ts-ignore */
961
+ ...(ngDevMode ? [{ debugName: "parsedMask" }] : /* istanbul ignore next */ []));
962
+ defs = computed(() => this.parsedMask().defs, /* @ts-ignore */
963
+ ...(ngDevMode ? [{ debugName: "defs" }] : /* istanbul ignore next */ []));
964
+ tests = computed(() => this.parsedMask().tests, /* @ts-ignore */
965
+ ...(ngDevMode ? [{ debugName: "tests" }] : /* istanbul ignore next */ []));
966
+ partialPosition = computed(() => this.parsedMask().partialPosition, /* @ts-ignore */
967
+ ...(ngDevMode ? [{ debugName: "partialPosition" }] : /* istanbul ignore next */ []));
968
+ firstNonMaskPos = computed(() => this.parsedMask().firstNonMaskPos, /* @ts-ignore */
969
+ ...(ngDevMode ? [{ debugName: "firstNonMaskPos" }] : /* istanbul ignore next */ []));
970
+ lastRequiredNonMaskPos = computed(() => this.parsedMask().lastRequiredNonMaskPos, /* @ts-ignore */
971
+ ...(ngDevMode ? [{ debugName: "lastRequiredNonMaskPos" }] : /* istanbul ignore next */ []));
972
+ len = computed(() => this.parsedMask().len, /* @ts-ignore */
973
+ ...(ngDevMode ? [{ debugName: "len" }] : /* istanbul ignore next */ []));
974
+ oldVal = signal(undefined, /* @ts-ignore */
975
+ ...(ngDevMode ? [{ debugName: "oldVal" }] : /* istanbul ignore next */ []));
976
+ buffer = linkedSignal(() => this.parsedMask().buffer, /* @ts-ignore */
977
+ ...(ngDevMode ? [{ debugName: "buffer" }] : /* istanbul ignore next */ []));
978
+ defaultBuffer = computed(() => this.parsedMask().defaultBuffer, /* @ts-ignore */
979
+ ...(ngDevMode ? [{ debugName: "defaultBuffer" }] : /* istanbul ignore next */ []));
980
+ focusText = signal(undefined, /* @ts-ignore */
981
+ ...(ngDevMode ? [{ debugName: "focusText" }] : /* istanbul ignore next */ []));
982
+ caretTimeoutId = signal(undefined, /* @ts-ignore */
983
+ ...(ngDevMode ? [{ debugName: "caretTimeoutId" }] : /* istanbul ignore next */ []));
984
+ androidChrome = isPlatformBrowser(this.platformId) ? /chrome/i.test(navigator.userAgent) && /android/i.test(navigator.userAgent) : true;
985
+ focused = signal(undefined, /* @ts-ignore */
986
+ ...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
987
+ _clearIconTemplate = computed(() => this.templates()
988
+ .filter((item) => item.getType() === 'clearicon')
989
+ .at(-1)?.template, /* @ts-ignore */
990
+ ...(ngDevMode ? [{ debugName: "_clearIconTemplate" }] : /* istanbul ignore next */ []));
939
991
  caret(first, last) {
940
992
  let range, begin, end;
941
993
  const inputViewChild = this.inputViewChild();
@@ -971,26 +1023,27 @@ class InputMask extends BaseInput {
971
1023
  }
972
1024
  isCompleted() {
973
1025
  let completed;
974
- for (let i = this.firstNonMaskPos; i <= this.lastRequiredNonMaskPos; i++) {
975
- if (this.tests[i] && this.buffer[i] === this.getPlaceholder(i)) {
1026
+ for (let i = this.firstNonMaskPos(); i <= this.lastRequiredNonMaskPos(); i++) {
1027
+ if (this.tests()[i] && this.buffer()[i] === this.getPlaceholder(i)) {
976
1028
  return false;
977
1029
  }
978
1030
  }
979
1031
  return true;
980
1032
  }
981
1033
  getPlaceholder(i) {
982
- if (i < this.slotChar.length) {
983
- return this.slotChar.charAt(i);
1034
+ const slotChar = this.slotChar();
1035
+ if (i < slotChar.length) {
1036
+ return slotChar.charAt(i);
984
1037
  }
985
- return this.slotChar.charAt(0);
1038
+ return slotChar.charAt(0);
986
1039
  }
987
1040
  seekNext(pos) {
988
- while (++pos < this.len && !this.tests[pos])
1041
+ while (++pos < this.len() && !this.tests()[pos])
989
1042
  ;
990
1043
  return pos;
991
1044
  }
992
1045
  seekPrev(pos) {
993
- while (--pos >= 0 && !this.tests[pos])
1046
+ while (--pos >= 0 && !this.tests()[pos])
994
1047
  ;
995
1048
  return pos;
996
1049
  }
@@ -999,11 +1052,15 @@ class InputMask extends BaseInput {
999
1052
  if (begin < 0) {
1000
1053
  return;
1001
1054
  }
1002
- for (i = begin, j = this.seekNext(end); i < this.len; i++) {
1003
- if (this.tests[i]) {
1004
- if (j < this.len && this.tests[i].test(this.buffer[j])) {
1005
- this.buffer[i] = this.buffer[j];
1006
- this.buffer[j] = this.getPlaceholder(j);
1055
+ for (i = begin, j = this.seekNext(end); i < this.len(); i++) {
1056
+ if (this.tests()[i]) {
1057
+ if (j < this.len() && this.tests()[i].test(this.buffer()[j])) {
1058
+ this.buffer.update((buffer) => {
1059
+ const next = [...buffer];
1060
+ next[i] = buffer[j];
1061
+ next[j] = this.getPlaceholder(j);
1062
+ return next;
1063
+ });
1007
1064
  }
1008
1065
  else {
1009
1066
  break;
@@ -1012,16 +1069,20 @@ class InputMask extends BaseInput {
1012
1069
  }
1013
1070
  }
1014
1071
  this.writeBuffer();
1015
- this.caret(Math.max(this.firstNonMaskPos, begin));
1072
+ this.caret(Math.max(this.firstNonMaskPos(), begin));
1016
1073
  }
1017
1074
  shiftR(pos) {
1018
1075
  let i, c, j, t;
1019
- for (i = pos, c = this.getPlaceholder(pos); i < this.len; i++) {
1020
- if (this.tests[i]) {
1076
+ for (i = pos, c = this.getPlaceholder(pos); i < this.len(); i++) {
1077
+ if (this.tests()[i]) {
1021
1078
  j = this.seekNext(i);
1022
- t = this.buffer[i];
1023
- this.buffer[i] = c;
1024
- if (j < this.len && this.tests[j].test(t)) {
1079
+ t = this.buffer()[i];
1080
+ this.buffer.update((buffer) => {
1081
+ const next = [...buffer];
1082
+ next[i] = c;
1083
+ return next;
1084
+ });
1085
+ if (j < this.len() && this.tests()[j].test(t)) {
1025
1086
  c = t;
1026
1087
  }
1027
1088
  else {
@@ -1033,13 +1094,14 @@ class InputMask extends BaseInput {
1033
1094
  handleAndroidInput(e) {
1034
1095
  var curVal = this.inputViewChild()?.nativeElement.value;
1035
1096
  var pos = this.caret();
1036
- if (this.oldVal && this.oldVal.length && this.oldVal.length > curVal.length) {
1097
+ const oldVal = this.oldVal();
1098
+ if (oldVal && oldVal.length && oldVal.length > curVal.length) {
1037
1099
  // a deletion or backspace happened
1038
1100
  this.checkVal(true);
1039
- while (pos.begin > 0 && !this.tests[pos.begin - 1])
1101
+ while (pos.begin > 0 && !this.tests()[pos.begin - 1])
1040
1102
  pos.begin--;
1041
1103
  if (pos.begin === 0) {
1042
- while (pos.begin < this.firstNonMaskPos && !this.tests[pos.begin])
1104
+ while (pos.begin < this.firstNonMaskPos() && !this.tests()[pos.begin])
1043
1105
  pos.begin++;
1044
1106
  }
1045
1107
  setTimeout(() => {
@@ -1052,7 +1114,7 @@ class InputMask extends BaseInput {
1052
1114
  }
1053
1115
  else {
1054
1116
  this.checkVal(true);
1055
- while (pos.begin < this.len && !this.tests[pos.begin])
1117
+ while (pos.begin < this.len() && !this.tests()[pos.begin])
1056
1118
  pos.begin++;
1057
1119
  setTimeout(() => {
1058
1120
  this.caret(pos.begin, pos.begin);
@@ -1064,13 +1126,13 @@ class InputMask extends BaseInput {
1064
1126
  }
1065
1127
  }
1066
1128
  onInputBlur(e) {
1067
- this.focused = false;
1129
+ this.focused.set(false);
1068
1130
  this.onModelTouched();
1069
- if (!this.keepBuffer) {
1131
+ if (!this.keepBuffer()) {
1070
1132
  this.checkVal();
1071
1133
  }
1072
1134
  this.onBlur.emit(e);
1073
- if (this.modelValue() != this.focusText || this.modelValue() != this.value) {
1135
+ if (this.modelValue() != this.focusText() || this.modelValue() != this.value()) {
1074
1136
  this.updateModel(e);
1075
1137
  let event = this.document.createEvent('HTMLEvents');
1076
1138
  event.initEvent('change', true, false);
@@ -1078,7 +1140,7 @@ class InputMask extends BaseInput {
1078
1140
  }
1079
1141
  }
1080
1142
  onInputKeydown(e) {
1081
- if (this.readonly) {
1143
+ if (this.readonly()) {
1082
1144
  return;
1083
1145
  }
1084
1146
  let k = e.which || e.keyCode, pos, begin, end;
@@ -1087,7 +1149,7 @@ class InputMask extends BaseInput {
1087
1149
  iPhone = /iphone/i.test(getUserAgent());
1088
1150
  }
1089
1151
  const inputViewChild = this.inputViewChild();
1090
- this.oldVal = inputViewChild?.nativeElement.value;
1152
+ this.oldVal.set(inputViewChild?.nativeElement.value);
1091
1153
  this.onKeydown.emit(e);
1092
1154
  //backspace, delete, and escape get special treatment
1093
1155
  if (k === 8 || k === 46 || (iPhone && k === 127)) {
@@ -1099,7 +1161,7 @@ class InputMask extends BaseInput {
1099
1161
  end = k === 46 ? this.seekNext(end) : end;
1100
1162
  }
1101
1163
  this.clearBuffer(begin, end);
1102
- if (this.keepBuffer) {
1164
+ if (this.keepBuffer()) {
1103
1165
  this.shiftL(begin, end - 2);
1104
1166
  }
1105
1167
  else {
@@ -1116,14 +1178,14 @@ class InputMask extends BaseInput {
1116
1178
  }
1117
1179
  else if (k === 27) {
1118
1180
  // escape
1119
- inputViewChild.nativeElement.value = this.focusText;
1181
+ inputViewChild.nativeElement.value = this.focusText();
1120
1182
  this.caret(0, this.checkVal());
1121
1183
  this.updateModel(e);
1122
1184
  e.preventDefault();
1123
1185
  }
1124
1186
  }
1125
1187
  onKeyPress(e) {
1126
- if (this.readonly) {
1188
+ if (this.readonly()) {
1127
1189
  return;
1128
1190
  }
1129
1191
  var k = e.which || e.keyCode, pos = this.caret(), p, c, next, completed;
@@ -1137,11 +1199,15 @@ class InputMask extends BaseInput {
1137
1199
  this.shiftL(pos.begin, pos.end - 1);
1138
1200
  }
1139
1201
  p = this.seekNext(pos.begin - 1);
1140
- if (p < this.len) {
1202
+ if (p < this.len()) {
1141
1203
  c = String.fromCharCode(k);
1142
- if (this.tests[p].test(c)) {
1204
+ if (this.tests()[p].test(c)) {
1143
1205
  this.shiftR(p);
1144
- this.buffer[p] = c;
1206
+ this.buffer.update((buffer) => {
1207
+ const next = [...buffer];
1208
+ next[p] = c;
1209
+ return next;
1210
+ });
1145
1211
  this.writeBuffer();
1146
1212
  next = this.seekNext(p);
1147
1213
  if (isClient() && /android/i.test(getUserAgent())) {
@@ -1153,7 +1219,7 @@ class InputMask extends BaseInput {
1153
1219
  else {
1154
1220
  this.caret(next);
1155
1221
  }
1156
- if (pos.begin <= this.lastRequiredNonMaskPos) {
1222
+ if (pos.begin <= this.lastRequiredNonMaskPos()) {
1157
1223
  completed = this.isCompleted();
1158
1224
  }
1159
1225
  this.onInput.emit(e);
@@ -1167,48 +1233,61 @@ class InputMask extends BaseInput {
1167
1233
  }
1168
1234
  }
1169
1235
  clearBuffer(start, end) {
1170
- if (!this.keepBuffer) {
1236
+ if (!this.keepBuffer()) {
1171
1237
  let i;
1172
- for (i = start; i < end && i < this.len; i++) {
1173
- if (this.tests[i]) {
1174
- this.buffer[i] = this.getPlaceholder(i);
1238
+ for (i = start; i < end && i < this.len(); i++) {
1239
+ if (this.tests()[i]) {
1240
+ this.buffer.update((buffer) => {
1241
+ const next = [...buffer];
1242
+ next[i] = this.getPlaceholder(i);
1243
+ return next;
1244
+ });
1175
1245
  }
1176
1246
  }
1177
1247
  }
1178
1248
  }
1179
1249
  writeBuffer() {
1180
1250
  const inputViewChild = this.inputViewChild();
1181
- if (this.buffer && inputViewChild?.nativeElement) {
1182
- inputViewChild.nativeElement.value = this.buffer.join('');
1251
+ const buffer = this.buffer();
1252
+ if (buffer && inputViewChild?.nativeElement) {
1253
+ inputViewChild.nativeElement.value = buffer.join('');
1183
1254
  }
1184
1255
  }
1185
1256
  checkVal(allow) {
1186
1257
  //try to place characters where they belong
1187
1258
  const inputViewChild = this.inputViewChild();
1188
1259
  let test = inputViewChild?.nativeElement.value, lastMatch = -1, i, c, pos;
1189
- for (i = 0, pos = 0; i < this.len; i++) {
1190
- if (this.tests[i]) {
1191
- this.buffer[i] = this.getPlaceholder(i);
1260
+ for (i = 0, pos = 0; i < this.len(); i++) {
1261
+ if (this.tests()[i]) {
1262
+ this.buffer.update((buffer) => {
1263
+ const next = [...buffer];
1264
+ next[i] = this.getPlaceholder(i);
1265
+ return next;
1266
+ });
1192
1267
  while (pos++ < test.length) {
1193
1268
  c = test.charAt(pos - 1);
1194
- if (this.tests[i].test(c)) {
1195
- if (!this.keepBuffer) {
1196
- this.buffer[i] = c;
1269
+ if (this.tests()[i].test(c)) {
1270
+ if (!this.keepBuffer()) {
1271
+ this.buffer.update((buffer) => {
1272
+ const next = [...buffer];
1273
+ next[i] = c;
1274
+ return next;
1275
+ });
1197
1276
  }
1198
1277
  lastMatch = i;
1199
1278
  break;
1200
1279
  }
1201
1280
  }
1202
1281
  if (pos > test.length) {
1203
- this.clearBuffer(i + 1, this.len);
1282
+ this.clearBuffer(i + 1, this.len());
1204
1283
  break;
1205
1284
  }
1206
1285
  }
1207
1286
  else {
1208
- if (this.buffer[i] === test.charAt(pos)) {
1287
+ if (this.buffer()[i] === test.charAt(pos)) {
1209
1288
  pos++;
1210
1289
  }
1211
- if (i < this.partialPosition) {
1290
+ if (i < this.partialPosition()) {
1212
1291
  lastMatch = i;
1213
1292
  }
1214
1293
  }
@@ -1216,13 +1295,13 @@ class InputMask extends BaseInput {
1216
1295
  if (allow) {
1217
1296
  this.writeBuffer();
1218
1297
  }
1219
- else if (lastMatch + 1 < this.partialPosition) {
1220
- if (this.autoClear || this.buffer.join('') === this.defaultBuffer) {
1298
+ else if (lastMatch + 1 < this.partialPosition()) {
1299
+ if (this.autoClear() || this.buffer().join('') === this.defaultBuffer()) {
1221
1300
  // Invalid value. Remove it and replace it with the
1222
1301
  // mask, which is the default behavior.
1223
1302
  if (inputViewChild?.nativeElement.value)
1224
1303
  inputViewChild.nativeElement.value = '';
1225
- this.clearBuffer(0, this.len);
1304
+ this.clearBuffer(0, this.len());
1226
1305
  }
1227
1306
  else {
1228
1307
  // Invalid value, but we opt to show the value to the
@@ -1234,31 +1313,31 @@ class InputMask extends BaseInput {
1234
1313
  this.writeBuffer();
1235
1314
  inputViewChild.nativeElement.value = inputViewChild?.nativeElement.value.substring(0, lastMatch + 1);
1236
1315
  }
1237
- return (this.partialPosition ? i : this.firstNonMaskPos);
1316
+ return (this.partialPosition() ? i : this.firstNonMaskPos());
1238
1317
  }
1239
1318
  onInputFocus(event) {
1240
- if (this.readonly) {
1319
+ if (this.readonly()) {
1241
1320
  return;
1242
1321
  }
1243
- this.focused = true;
1244
- clearTimeout(this.caretTimeoutId);
1322
+ this.focused.set(true);
1323
+ clearTimeout(this.caretTimeoutId());
1245
1324
  let pos;
1246
1325
  const inputViewChild = this.inputViewChild();
1247
- this.focusText = inputViewChild?.nativeElement.value;
1248
- pos = this.keepBuffer ? inputViewChild?.nativeElement.value.length : this.checkVal();
1249
- this.caretTimeoutId = setTimeout(() => {
1326
+ this.focusText.set(inputViewChild?.nativeElement.value);
1327
+ pos = this.keepBuffer() ? inputViewChild?.nativeElement.value.length : this.checkVal();
1328
+ this.caretTimeoutId.set(setTimeout(() => {
1250
1329
  const inputViewChildValue = this.inputViewChild();
1251
1330
  if (inputViewChildValue?.nativeElement !== inputViewChildValue?.nativeElement.ownerDocument.activeElement) {
1252
1331
  return;
1253
1332
  }
1254
1333
  this.writeBuffer();
1255
- if (pos == this.mask?.replace('?', '').length) {
1334
+ if (pos == this.mask()?.replace('?', '').length) {
1256
1335
  this.caret(0, pos);
1257
1336
  }
1258
1337
  else {
1259
1338
  this.caret(pos);
1260
1339
  }
1261
- }, 10);
1340
+ }, 10));
1262
1341
  this.onFocus.emit(event);
1263
1342
  }
1264
1343
  onInputChange(event) {
@@ -1269,7 +1348,7 @@ class InputMask extends BaseInput {
1269
1348
  this.onInput.emit(event);
1270
1349
  }
1271
1350
  handleInputChange(event) {
1272
- if (this.readonly) {
1351
+ if (this.readonly()) {
1273
1352
  return;
1274
1353
  }
1275
1354
  setTimeout(() => {
@@ -1283,9 +1362,10 @@ class InputMask extends BaseInput {
1283
1362
  }
1284
1363
  getUnmaskedValue() {
1285
1364
  let unmaskedBuffer = [];
1286
- for (let i = 0; i < this.buffer.length; i++) {
1287
- let c = this.buffer[i];
1288
- if (this.tests[i] && c != this.getPlaceholder(i)) {
1365
+ const buffer = this.buffer();
1366
+ for (let i = 0; i < buffer.length; i++) {
1367
+ let c = buffer[i];
1368
+ if (this.tests()[i] && c != this.getPlaceholder(i)) {
1289
1369
  unmaskedBuffer.push(c);
1290
1370
  }
1291
1371
  }
@@ -1296,11 +1376,11 @@ class InputMask extends BaseInput {
1296
1376
  if (!target) {
1297
1377
  return;
1298
1378
  }
1299
- const updatedValue = this.unmask ? this.getUnmaskedValue() : target.value;
1379
+ const updatedValue = this.unmask() ? this.getUnmaskedValue() : target.value;
1300
1380
  if (updatedValue !== null && updatedValue !== undefined) {
1301
- this.value = updatedValue;
1302
- this.writeModelValue(this.value);
1303
- this.onModelChange(this.value);
1381
+ this.value.set(updatedValue);
1382
+ this.writeModelValue(this.value());
1383
+ this.onModelChange(this.value());
1304
1384
  }
1305
1385
  }
1306
1386
  focus() {
@@ -1308,8 +1388,8 @@ class InputMask extends BaseInput {
1308
1388
  }
1309
1389
  clear() {
1310
1390
  this.inputViewChild().nativeElement.value = '';
1311
- this.value = null;
1312
- this.onModelChange(this.value);
1391
+ this.value.set(null);
1392
+ this.onModelChange(this.value());
1313
1393
  this.onClear.emit();
1314
1394
  }
1315
1395
  /**
@@ -1319,63 +1399,62 @@ class InputMask extends BaseInput {
1319
1399
  * Writes the value to the control.
1320
1400
  */
1321
1401
  writeControlValue(value, setModelValue) {
1322
- this.value = value;
1323
- setModelValue(this.value);
1402
+ this.value.set(value);
1403
+ setModelValue(this.value());
1324
1404
  const inputViewChild = this.inputViewChild();
1325
1405
  if (inputViewChild && inputViewChild.nativeElement) {
1326
- if (this.value == undefined || this.value == null)
1406
+ if (this.value() == undefined || this.value() == null)
1327
1407
  inputViewChild.nativeElement.value = '';
1328
1408
  else
1329
- inputViewChild.nativeElement.value = this.value;
1409
+ inputViewChild.nativeElement.value = this.value();
1330
1410
  this.checkVal();
1331
- this.focusText = inputViewChild.nativeElement.value;
1411
+ this.focusText.set(inputViewChild.nativeElement.value);
1332
1412
  }
1333
- this.cd.markForCheck();
1334
1413
  }
1335
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InputMask, deps: null, target: i0.ɵɵFactoryTarget.Component });
1336
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: InputMask, isStandalone: true, selector: "p-inputmask, p-inputMask, p-input-mask", inputs: { type: "type", slotChar: "slotChar", autoClear: ["autoClear", "autoClear", booleanAttribute], showClear: ["showClear", "showClear", booleanAttribute], style: "style", inputId: "inputId", styleClass: "styleClass", placeholder: "placeholder", tabindex: "tabindex", title: "title", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", ariaRequired: ["ariaRequired", "ariaRequired", booleanAttribute], readonly: ["readonly", "readonly", booleanAttribute], unmask: ["unmask", "unmask", booleanAttribute], characterPattern: "characterPattern", autofocus: ["autofocus", "autofocus", booleanAttribute], autocomplete: "autocomplete", keepBuffer: ["keepBuffer", "keepBuffer", booleanAttribute], mask: "mask" }, 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: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "inputViewChild", first: true, predicate: ["input"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
1414
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InputMask, deps: [], target: i0.ɵɵFactoryTarget.Component });
1415
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: InputMask, isStandalone: true, selector: "p-inputmask, p-inputMask, p-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: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "inputViewChild", first: true, predicate: ["input"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
1337
1416
  <input
1338
1417
  #input
1339
1418
  pInputText
1340
1419
  [pt]="ptm('pcInputText', ptmParams())"
1341
1420
  [unstyled]="unstyled()"
1342
- [attr.id]="inputId"
1343
- [attr.type]="type"
1421
+ [attr.id]="inputId()"
1422
+ [attr.type]="type()"
1344
1423
  [attr.name]="name()"
1345
1424
  [invalid]="invalid()"
1346
- [class]="styleClass"
1347
- [ngStyle]="style"
1348
- [attr.placeholder]="placeholder"
1349
- [attr.title]="title"
1425
+ [class]="styleClass()"
1426
+ [ngStyle]="style()"
1427
+ [attr.placeholder]="placeholder()"
1428
+ [attr.title]="title()"
1350
1429
  [pSize]="size()"
1351
1430
  [attr.size]="inputSize()"
1352
- [attr.autocomplete]="autocomplete"
1431
+ [attr.autocomplete]="autocomplete()"
1353
1432
  [attr.maxlength]="maxlength()"
1354
1433
  [attr.minlength]="minlength()"
1355
- [attr.tabindex]="tabindex"
1356
- [attr.aria-label]="ariaLabel"
1357
- [attr.aria-labelledBy]="ariaLabelledBy"
1358
- [attr.aria-required]="ariaRequired"
1434
+ [attr.tabindex]="tabindex()"
1435
+ [attr.aria-label]="ariaLabel()"
1436
+ [attr.aria-labelledBy]="ariaLabelledBy()"
1437
+ [attr.aria-required]="ariaRequired()"
1359
1438
  [attr.required]="required() ? '' : undefined"
1360
- [attr.readonly]="readonly ? '' : undefined"
1439
+ [attr.readonly]="readonly() ? '' : undefined"
1361
1440
  [attr.disabled]="$disabled() ? '' : undefined"
1362
1441
  (focus)="onInputFocus($event)"
1363
1442
  (blur)="onInputBlur($event)"
1364
1443
  (keydown)="onInputKeydown($event)"
1365
1444
  (keypress)="onKeyPress($event)"
1366
1445
  [variant]="$variant()"
1367
- [pAutoFocus]="autofocus"
1446
+ [pAutoFocus]="autofocus()"
1368
1447
  (input)="onInputChange($event)"
1369
1448
  (paste)="handleInputChange($event)"
1370
1449
  [fluid]="hasFluid"
1371
1450
  />
1372
- @if (value != null && $filled() && showClear && !$disabled()) {
1373
- @if (!clearIconTemplate() && !_clearIconTemplate) {
1451
+ @if (value() != null && $filled() && showClear() && !$disabled()) {
1452
+ @if (!clearIconTemplate() && !_clearIconTemplate()) {
1374
1453
  <svg data-p-icon="times" [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear()" />
1375
1454
  }
1376
- @if (clearIconTemplate() || _clearIconTemplate) {
1455
+ @if (clearIconTemplate() || _clearIconTemplate()) {
1377
1456
  <span [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear()">
1378
- <ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate"></ng-template>
1457
+ <ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate()"></ng-template>
1379
1458
  </span>
1380
1459
  }
1381
1460
  }
@@ -1385,7 +1464,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1385
1464
  type: Component,
1386
1465
  args: [{
1387
1466
  selector: 'p-inputmask, p-inputMask, p-input-mask',
1388
- standalone: true,
1389
1467
  imports: [CommonModule, InputText, AutoFocus, TimesIcon, SharedModule, BindModule],
1390
1468
  template: `
1391
1469
  <input
@@ -1393,43 +1471,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1393
1471
  pInputText
1394
1472
  [pt]="ptm('pcInputText', ptmParams())"
1395
1473
  [unstyled]="unstyled()"
1396
- [attr.id]="inputId"
1397
- [attr.type]="type"
1474
+ [attr.id]="inputId()"
1475
+ [attr.type]="type()"
1398
1476
  [attr.name]="name()"
1399
1477
  [invalid]="invalid()"
1400
- [class]="styleClass"
1401
- [ngStyle]="style"
1402
- [attr.placeholder]="placeholder"
1403
- [attr.title]="title"
1478
+ [class]="styleClass()"
1479
+ [ngStyle]="style()"
1480
+ [attr.placeholder]="placeholder()"
1481
+ [attr.title]="title()"
1404
1482
  [pSize]="size()"
1405
1483
  [attr.size]="inputSize()"
1406
- [attr.autocomplete]="autocomplete"
1484
+ [attr.autocomplete]="autocomplete()"
1407
1485
  [attr.maxlength]="maxlength()"
1408
1486
  [attr.minlength]="minlength()"
1409
- [attr.tabindex]="tabindex"
1410
- [attr.aria-label]="ariaLabel"
1411
- [attr.aria-labelledBy]="ariaLabelledBy"
1412
- [attr.aria-required]="ariaRequired"
1487
+ [attr.tabindex]="tabindex()"
1488
+ [attr.aria-label]="ariaLabel()"
1489
+ [attr.aria-labelledBy]="ariaLabelledBy()"
1490
+ [attr.aria-required]="ariaRequired()"
1413
1491
  [attr.required]="required() ? '' : undefined"
1414
- [attr.readonly]="readonly ? '' : undefined"
1492
+ [attr.readonly]="readonly() ? '' : undefined"
1415
1493
  [attr.disabled]="$disabled() ? '' : undefined"
1416
1494
  (focus)="onInputFocus($event)"
1417
1495
  (blur)="onInputBlur($event)"
1418
1496
  (keydown)="onInputKeydown($event)"
1419
1497
  (keypress)="onKeyPress($event)"
1420
1498
  [variant]="$variant()"
1421
- [pAutoFocus]="autofocus"
1499
+ [pAutoFocus]="autofocus()"
1422
1500
  (input)="onInputChange($event)"
1423
1501
  (paste)="handleInputChange($event)"
1424
1502
  [fluid]="hasFluid"
1425
1503
  />
1426
- @if (value != null && $filled() && showClear && !$disabled()) {
1427
- @if (!clearIconTemplate() && !_clearIconTemplate) {
1504
+ @if (value() != null && $filled() && showClear() && !$disabled()) {
1505
+ @if (!clearIconTemplate() && !_clearIconTemplate()) {
1428
1506
  <svg data-p-icon="times" [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear()" />
1429
1507
  }
1430
- @if (clearIconTemplate() || _clearIconTemplate) {
1508
+ @if (clearIconTemplate() || _clearIconTemplate()) {
1431
1509
  <span [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear()">
1432
- <ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate"></ng-template>
1510
+ <ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate()"></ng-template>
1433
1511
  </span>
1434
1512
  }
1435
1513
  }
@@ -1442,54 +1520,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1442
1520
  '[class]': "cx('root')"
1443
1521
  }
1444
1522
  }]
1445
- }], propDecorators: { type: [{
1446
- type: Input
1447
- }], slotChar: [{
1448
- type: Input
1449
- }], autoClear: [{
1450
- type: Input,
1451
- args: [{ transform: booleanAttribute }]
1452
- }], showClear: [{
1453
- type: Input,
1454
- args: [{ transform: booleanAttribute }]
1455
- }], style: [{
1456
- type: Input
1457
- }], inputId: [{
1458
- type: Input
1459
- }], styleClass: [{
1460
- type: Input
1461
- }], placeholder: [{
1462
- type: Input
1463
- }], tabindex: [{
1464
- type: Input
1465
- }], title: [{
1466
- type: Input
1467
- }], ariaLabel: [{
1468
- type: Input
1469
- }], ariaLabelledBy: [{
1470
- type: Input
1471
- }], ariaRequired: [{
1472
- type: Input,
1473
- args: [{ transform: booleanAttribute }]
1474
- }], readonly: [{
1475
- type: Input,
1476
- args: [{ transform: booleanAttribute }]
1477
- }], unmask: [{
1478
- type: Input,
1479
- args: [{ transform: booleanAttribute }]
1480
- }], characterPattern: [{
1481
- type: Input
1482
- }], autofocus: [{
1483
- type: Input,
1484
- args: [{ transform: booleanAttribute }]
1485
- }], autocomplete: [{
1486
- type: Input
1487
- }], keepBuffer: [{
1488
- type: Input,
1489
- args: [{ transform: booleanAttribute }]
1490
- }], mask: [{
1491
- type: Input
1492
- }], 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(() => PrimeTemplate), { isSignal: true }] }], inputViewChild: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }] } });
1523
+ }], 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(() => PrimeTemplate), { isSignal: true }] }], inputViewChild: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }] } });
1493
1524
  class InputMaskModule {
1494
1525
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InputMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1495
1526
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: InputMaskModule, imports: [InputMask, InputMaskDirective, SharedModule], exports: [InputMask, InputMaskDirective, SharedModule] });