@ngstarter-ui/components 22.3.6 → 22.4.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 (476) hide show
  1. package/README.md +27 -0
  2. package/ai/component-registry.json +186 -101
  3. package/fesm2022/attachment-block-BK9QxVjq.mjs +163 -0
  4. package/fesm2022/attachment-block-BK9QxVjq.mjs.map +1 -0
  5. package/fesm2022/callout-block-Bl4GZYz8.mjs +196 -0
  6. package/fesm2022/callout-block-Bl4GZYz8.mjs.map +1 -0
  7. package/fesm2022/code-block.component-DCRD-9iP.mjs +393 -0
  8. package/fesm2022/code-block.component-DCRD-9iP.mjs.map +1 -0
  9. package/fesm2022/content-builder.store-D622mHxt.mjs +328 -0
  10. package/fesm2022/content-builder.store-D622mHxt.mjs.map +1 -0
  11. package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs +1110 -0
  12. package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs.map +1 -0
  13. package/fesm2022/cursor-controller-DKfBII1n.mjs +55 -0
  14. package/fesm2022/cursor-controller-DKfBII1n.mjs.map +1 -0
  15. package/fesm2022/default-converters-9oSKDsXP.mjs +140 -0
  16. package/fesm2022/default-converters-9oSKDsXP.mjs.map +1 -0
  17. package/fesm2022/divider-block.component-Dvgeq_D0.mjs +148 -0
  18. package/fesm2022/divider-block.component-Dvgeq_D0.mjs.map +1 -0
  19. package/fesm2022/embed-block-CYkOv4Wt.mjs +565 -0
  20. package/fesm2022/embed-block-CYkOv4Wt.mjs.map +1 -0
  21. package/fesm2022/extra-block-defs-Cn_hfM3c.mjs +122 -0
  22. package/fesm2022/extra-block-defs-Cn_hfM3c.mjs.map +1 -0
  23. package/fesm2022/gallery-block-DT3uIURY.mjs +365 -0
  24. package/fesm2022/gallery-block-DT3uIURY.mjs.map +1 -0
  25. package/fesm2022/grid-block-ZVDT3m8-.mjs +504 -0
  26. package/fesm2022/grid-block-ZVDT3m8-.mjs.map +1 -0
  27. package/fesm2022/heading-block.component-iCpJGTMh.mjs +274 -0
  28. package/fesm2022/heading-block.component-iCpJGTMh.mjs.map +1 -0
  29. package/fesm2022/html-utils-DywL8gGa.mjs +24 -0
  30. package/fesm2022/html-utils-DywL8gGa.mjs.map +1 -0
  31. package/fesm2022/image-block.component-DJ7-HCR8.mjs +285 -0
  32. package/fesm2022/image-block.component-DJ7-HCR8.mjs.map +1 -0
  33. package/fesm2022/list-block.component-qFIebEBO.mjs +312 -0
  34. package/fesm2022/list-block.component-qFIebEBO.mjs.map +1 -0
  35. package/fesm2022/nested-blocks-CXhgXJ1H.mjs +345 -0
  36. package/fesm2022/nested-blocks-CXhgXJ1H.mjs.map +1 -0
  37. package/fesm2022/ngstarter-ui-components-action-required.mjs +150 -45
  38. package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -1
  39. package/fesm2022/ngstarter-ui-components-alert.mjs +318 -133
  40. package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -1
  41. package/fesm2022/ngstarter-ui-components-announcement.mjs +280 -88
  42. package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -1
  43. package/fesm2022/ngstarter-ui-components-autocomplete.mjs +647 -386
  44. package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -1
  45. package/fesm2022/ngstarter-ui-components-avatar.mjs +715 -482
  46. package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -1
  47. package/fesm2022/ngstarter-ui-components-badge.mjs +308 -97
  48. package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -1
  49. package/fesm2022/ngstarter-ui-components-block-loader.mjs +164 -47
  50. package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -1
  51. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +278 -315
  52. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs.map +1 -1
  53. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +707 -205
  54. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -1
  55. package/fesm2022/ngstarter-ui-components-button-toggle.mjs +518 -175
  56. package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -1
  57. package/fesm2022/ngstarter-ui-components-button.mjs +294 -68
  58. package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
  59. package/fesm2022/ngstarter-ui-components-calendar.mjs +442 -250
  60. package/fesm2022/ngstarter-ui-components-calendar.mjs.map +1 -1
  61. package/fesm2022/ngstarter-ui-components-card-overlay.mjs +159 -47
  62. package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -1
  63. package/fesm2022/ngstarter-ui-components-card.mjs +619 -194
  64. package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -1
  65. package/fesm2022/ngstarter-ui-components-carousel.mjs +1012 -634
  66. package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -1
  67. package/fesm2022/ngstarter-ui-components-checkbox.mjs +715 -308
  68. package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -1
  69. package/fesm2022/ngstarter-ui-components-chips.mjs +1397 -667
  70. package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -1
  71. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +519 -357
  72. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -1
  73. package/fesm2022/ngstarter-ui-components-color-picker.mjs +1218 -604
  74. package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -1
  75. package/fesm2022/ngstarter-ui-components-color-scheme.mjs +265 -134
  76. package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -1
  77. package/fesm2022/ngstarter-ui-components-color-switcher.mjs +190 -71
  78. package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -1
  79. package/fesm2022/ngstarter-ui-components-command-bar.mjs +197 -58
  80. package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -1
  81. package/fesm2022/ngstarter-ui-components-comment-editor.mjs +2212 -1128
  82. package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -1
  83. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +269 -183
  84. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -1
  85. package/fesm2022/ngstarter-ui-components-confirm.mjs +164 -86
  86. package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -1
  87. package/fesm2022/ngstarter-ui-components-content-editor.mjs +6240 -2
  88. package/fesm2022/ngstarter-ui-components-content-editor.mjs.map +1 -1
  89. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +244 -108
  90. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -1
  91. package/fesm2022/ngstarter-ui-components-core.mjs +2110 -1592
  92. package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
  93. package/fesm2022/ngstarter-ui-components-country-select.mjs +1970 -588
  94. package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -1
  95. package/fesm2022/ngstarter-ui-components-crop.mjs +249 -191
  96. package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -1
  97. package/fesm2022/ngstarter-ui-components-currency-select.mjs +1658 -452
  98. package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -1
  99. package/fesm2022/ngstarter-ui-components-data-view.mjs +4538 -2497
  100. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
  101. package/fesm2022/ngstarter-ui-components-date-format-select.mjs +357 -157
  102. package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -1
  103. package/fesm2022/ngstarter-ui-components-datepicker.mjs +2587 -1264
  104. package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
  105. package/fesm2022/ngstarter-ui-components-dialog.mjs +681 -385
  106. package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -1
  107. package/fesm2022/ngstarter-ui-components-digit-roller.mjs +1000 -750
  108. package/fesm2022/ngstarter-ui-components-digit-roller.mjs.map +1 -1
  109. package/fesm2022/ngstarter-ui-components-divider.mjs +164 -41
  110. package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -1
  111. package/fesm2022/ngstarter-ui-components-drawer.mjs +218 -143
  112. package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -1
  113. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +345 -247
  114. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -1
  115. package/fesm2022/ngstarter-ui-components-empty-state.mjs +244 -74
  116. package/fesm2022/ngstarter-ui-components-empty-state.mjs.map +1 -1
  117. package/fesm2022/ngstarter-ui-components-events.mjs +467 -126
  118. package/fesm2022/ngstarter-ui-components-events.mjs.map +1 -1
  119. package/fesm2022/ngstarter-ui-components-expand.mjs +191 -59
  120. package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -1
  121. package/fesm2022/ngstarter-ui-components-expansion.mjs +529 -193
  122. package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -1
  123. package/fesm2022/ngstarter-ui-components-file-type.mjs +270 -171
  124. package/fesm2022/ngstarter-ui-components-file-type.mjs.map +1 -1
  125. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +741 -352
  126. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
  127. package/fesm2022/ngstarter-ui-components-form-builder.mjs +9032 -6964
  128. package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
  129. package/fesm2022/ngstarter-ui-components-form-field.mjs +741 -276
  130. package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -1
  131. package/fesm2022/ngstarter-ui-components-gauge.mjs +155 -43
  132. package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -1
  133. package/fesm2022/ngstarter-ui-components-grid.mjs +197 -81
  134. package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -1
  135. package/fesm2022/ngstarter-ui-components-guided-tour.mjs +881 -740
  136. package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -1
  137. package/fesm2022/ngstarter-ui-components-headless-editor.mjs +3573 -3656
  138. package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
  139. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +277 -204
  140. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -1
  141. package/fesm2022/ngstarter-ui-components-icon.mjs +209 -182
  142. package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -1
  143. package/fesm2022/ngstarter-ui-components-image-designer.mjs +5096 -4066
  144. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
  145. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +45 -19
  146. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -1
  147. package/fesm2022/ngstarter-ui-components-image-resizer.mjs +333 -154
  148. package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -1
  149. package/fesm2022/ngstarter-ui-components-image-viewer.mjs +564 -358
  150. package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -1
  151. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +246 -167
  152. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -1
  153. package/fesm2022/ngstarter-ui-components-incidents.mjs +732 -258
  154. package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -1
  155. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +244 -182
  156. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -1
  157. package/fesm2022/ngstarter-ui-components-input-mask.mjs +314 -174
  158. package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -1
  159. package/fesm2022/ngstarter-ui-components-input-validator.mjs +45 -69
  160. package/fesm2022/ngstarter-ui-components-input-validator.mjs.map +1 -1
  161. package/fesm2022/ngstarter-ui-components-input.mjs +303 -161
  162. package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -1
  163. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +504 -159
  164. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
  165. package/fesm2022/ngstarter-ui-components-kbd.mjs +86 -30
  166. package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -1
  167. package/fesm2022/ngstarter-ui-components-layout.mjs +681 -220
  168. package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -1
  169. package/fesm2022/ngstarter-ui-components-list.mjs +968 -281
  170. package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -1
  171. package/fesm2022/ngstarter-ui-components-logo.mjs +181 -51
  172. package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -1
  173. package/fesm2022/ngstarter-ui-components-marquee.mjs +226 -147
  174. package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -1
  175. package/fesm2022/ngstarter-ui-components-menu.mjs +1686 -1091
  176. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
  177. package/fesm2022/ngstarter-ui-components-micro-chart.mjs +1541 -943
  178. package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -1
  179. package/fesm2022/ngstarter-ui-components-navigation.mjs +1035 -455
  180. package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -1
  181. package/fesm2022/ngstarter-ui-components-notifications.mjs +678 -230
  182. package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -1
  183. package/fesm2022/ngstarter-ui-components-number-input.mjs +616 -316
  184. package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -1
  185. package/fesm2022/ngstarter-ui-components-option.mjs +405 -163
  186. package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -1
  187. package/fesm2022/ngstarter-ui-components-overlay.mjs +107 -111
  188. package/fesm2022/ngstarter-ui-components-overlay.mjs.map +1 -1
  189. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +131 -76
  190. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -1
  191. package/fesm2022/ngstarter-ui-components-paginator.mjs +543 -295
  192. package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -1
  193. package/fesm2022/ngstarter-ui-components-password-strength.mjs +785 -340
  194. package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -1
  195. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +3705 -2695
  196. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
  197. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs +1179 -851
  198. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs.map +1 -1
  199. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +2973 -2070
  200. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
  201. package/fesm2022/ngstarter-ui-components-phone-input.mjs +2081 -770
  202. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
  203. package/fesm2022/ngstarter-ui-components-pin-input.mjs +366 -198
  204. package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -1
  205. package/fesm2022/ngstarter-ui-components-popover.mjs +558 -308
  206. package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -1
  207. package/fesm2022/ngstarter-ui-components-progress-bar.mjs +178 -73
  208. package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -1
  209. package/fesm2022/ngstarter-ui-components-radio-card.mjs +301 -105
  210. package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -1
  211. package/fesm2022/ngstarter-ui-components-radio.mjs +417 -157
  212. package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -1
  213. package/fesm2022/ngstarter-ui-components-rail-nav.mjs +208 -88
  214. package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -1
  215. package/fesm2022/ngstarter-ui-components-resizable-container.mjs +123 -74
  216. package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -1
  217. package/fesm2022/ngstarter-ui-components-screen-loader.mjs +197 -95
  218. package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -1
  219. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +383 -245
  220. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -1
  221. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +705 -581
  222. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -1
  223. package/fesm2022/ngstarter-ui-components-segmented.mjs +422 -220
  224. package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -1
  225. package/fesm2022/ngstarter-ui-components-select.mjs +1862 -1159
  226. package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -1
  227. package/fesm2022/ngstarter-ui-components-side-panel.mjs +313 -118
  228. package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -1
  229. package/fesm2022/ngstarter-ui-components-sidebar.mjs +1239 -470
  230. package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -1
  231. package/fesm2022/ngstarter-ui-components-sidenav.mjs +664 -354
  232. package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -1
  233. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1092 -643
  234. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
  235. package/fesm2022/ngstarter-ui-components-skeleton.mjs +153 -43
  236. package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -1
  237. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +425 -108
  238. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -1
  239. package/fesm2022/ngstarter-ui-components-slider.mjs +645 -487
  240. package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -1
  241. package/fesm2022/ngstarter-ui-components-snack-bar.mjs +372 -354
  242. package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -1
  243. package/fesm2022/ngstarter-ui-components-sort.mjs +378 -147
  244. package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
  245. package/fesm2022/ngstarter-ui-components-spinner.mjs +242 -76
  246. package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -1
  247. package/fesm2022/ngstarter-ui-components-splash-screen.mjs +142 -91
  248. package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -1
  249. package/fesm2022/ngstarter-ui-components-split.mjs +1067 -929
  250. package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -1
  251. package/fesm2022/ngstarter-ui-components-step-tracker.mjs +617 -331
  252. package/fesm2022/ngstarter-ui-components-step-tracker.mjs.map +1 -1
  253. package/fesm2022/ngstarter-ui-components-stepper.mjs +357 -126
  254. package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -1
  255. package/fesm2022/ngstarter-ui-components-suggestions.mjs +259 -72
  256. package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -1
  257. package/fesm2022/ngstarter-ui-components-tab-panel.mjs +674 -267
  258. package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -1
  259. package/fesm2022/ngstarter-ui-components-table.mjs +1144 -662
  260. package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
  261. package/fesm2022/ngstarter-ui-components-tabs.mjs +1236 -615
  262. package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -1
  263. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +414 -216
  264. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -1
  265. package/fesm2022/ngstarter-ui-components-tiles.mjs +939 -647
  266. package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -1
  267. package/fesm2022/ngstarter-ui-components-timeline.mjs +418 -122
  268. package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -1
  269. package/fesm2022/ngstarter-ui-components-timepicker.mjs +870 -508
  270. package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -1
  271. package/fesm2022/ngstarter-ui-components-timezone-select.mjs +651 -371
  272. package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -1
  273. package/fesm2022/ngstarter-ui-components-toolbar.mjs +727 -320
  274. package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -1
  275. package/fesm2022/ngstarter-ui-components-tooltip.mjs +601 -521
  276. package/fesm2022/ngstarter-ui-components-tooltip.mjs.map +1 -1
  277. package/fesm2022/ngstarter-ui-components-tree-select.mjs +1197 -434
  278. package/fesm2022/ngstarter-ui-components-tree-select.mjs.map +1 -1
  279. package/fesm2022/ngstarter-ui-components-tree.mjs +1821 -1262
  280. package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -1
  281. package/fesm2022/ngstarter-ui-components-upload.mjs +1059 -345
  282. package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -1
  283. package/fesm2022/ngstarter-ui-components-video-player.mjs +763 -533
  284. package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -1
  285. package/fesm2022/ngstarter-ui-components-video-viewer.mjs +630 -229
  286. package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -1
  287. package/fesm2022/ngstarter-ui-components-visual-builder.mjs +40 -17
  288. package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -1
  289. package/fesm2022/ngstarter-ui-components-whiteboard.mjs +3039 -1803
  290. package/fesm2022/ngstarter-ui-components-whiteboard.mjs.map +1 -1
  291. package/fesm2022/ngstarter-ui-components.mjs +3 -5
  292. package/fesm2022/ngstarter-ui-components.mjs.map +1 -1
  293. package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs +264 -0
  294. package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs.map +1 -0
  295. package/fesm2022/plain-text-settings-BnxCxLhA.mjs +354 -0
  296. package/fesm2022/plain-text-settings-BnxCxLhA.mjs.map +1 -0
  297. package/fesm2022/quote-block.component-tRmrU97F.mjs +309 -0
  298. package/fesm2022/quote-block.component-tRmrU97F.mjs.map +1 -0
  299. package/fesm2022/table-block.component-BuzRRggv.mjs +1859 -0
  300. package/fesm2022/table-block.component-BuzRRggv.mjs.map +1 -0
  301. package/fesm2022/toggle-block-C5Jo2YDf.mjs +150 -0
  302. package/fesm2022/toggle-block-C5Jo2YDf.mjs.map +1 -0
  303. package/fesm2022/upload-status-tZ0x0BUB.mjs +107 -0
  304. package/fesm2022/upload-status-tZ0x0BUB.mjs.map +1 -0
  305. package/fesm2022/video-block.component-CpAXibm6.mjs +312 -0
  306. package/fesm2022/video-block.component-CpAXibm6.mjs.map +1 -0
  307. package/package.json +11 -10
  308. package/styles/_tokens.scss +1 -0
  309. package/types/ngstarter-ui-components-action-required.d.ts +34 -14
  310. package/types/ngstarter-ui-components-alert.d.ts +53 -44
  311. package/types/ngstarter-ui-components-announcement.d.ts +74 -53
  312. package/types/ngstarter-ui-components-autocomplete.d.ts +141 -84
  313. package/types/ngstarter-ui-components-avatar.d.ts +113 -66
  314. package/types/ngstarter-ui-components-badge.d.ts +73 -37
  315. package/types/ngstarter-ui-components-block-loader.d.ts +32 -20
  316. package/types/ngstarter-ui-components-bottom-sheet.d.ts +125 -132
  317. package/types/ngstarter-ui-components-breadcrumbs.d.ts +93 -88
  318. package/types/ngstarter-ui-components-button-toggle.d.ts +124 -54
  319. package/types/ngstarter-ui-components-button.d.ts +69 -27
  320. package/types/ngstarter-ui-components-calendar.d.ts +123 -71
  321. package/types/ngstarter-ui-components-card-overlay.d.ts +31 -19
  322. package/types/ngstarter-ui-components-card.d.ts +75 -71
  323. package/types/ngstarter-ui-components-carousel.d.ts +115 -69
  324. package/types/ngstarter-ui-components-checkbox.d.ts +183 -86
  325. package/types/ngstarter-ui-components-chips.d.ts +288 -195
  326. package/types/ngstarter-ui-components-code-highlighter.d.ts +71 -28
  327. package/types/ngstarter-ui-components-color-picker.d.ts +140 -89
  328. package/types/ngstarter-ui-components-color-scheme.d.ts +43 -52
  329. package/types/ngstarter-ui-components-color-switcher.d.ts +46 -26
  330. package/types/ngstarter-ui-components-command-bar.d.ts +40 -26
  331. package/types/ngstarter-ui-components-comment-editor.d.ts +311 -235
  332. package/types/ngstarter-ui-components-comparison-slider.d.ts +41 -40
  333. package/types/ngstarter-ui-components-confirm.d.ts +24 -29
  334. package/types/ngstarter-ui-components-content-editor.d.ts +1482 -998
  335. package/types/ngstarter-ui-components-cookie-popup.d.ts +43 -38
  336. package/types/ngstarter-ui-components-core.d.ts +513 -467
  337. package/types/ngstarter-ui-components-country-select.d.ts +170 -97
  338. package/types/ngstarter-ui-components-crop.d.ts +67 -52
  339. package/types/ngstarter-ui-components-currency-select.d.ts +127 -90
  340. package/types/ngstarter-ui-components-data-view.d.ts +811 -567
  341. package/types/ngstarter-ui-components-date-format-select.d.ts +90 -58
  342. package/types/ngstarter-ui-components-datepicker.d.ts +589 -373
  343. package/types/ngstarter-ui-components-dialog.d.ts +138 -116
  344. package/types/ngstarter-ui-components-digit-roller.d.ts +228 -131
  345. package/types/ngstarter-ui-components-divider.d.ts +29 -17
  346. package/types/ngstarter-ui-components-drawer.d.ts +39 -30
  347. package/types/ngstarter-ui-components-emoji-picker.d.ts +69 -47
  348. package/types/ngstarter-ui-components-empty-state.d.ts +20 -28
  349. package/types/ngstarter-ui-components-events.d.ts +73 -57
  350. package/types/ngstarter-ui-components-expand.d.ts +55 -25
  351. package/types/ngstarter-ui-components-expansion.d.ts +93 -64
  352. package/types/ngstarter-ui-components-file-type.d.ts +53 -27
  353. package/types/ngstarter-ui-components-filter-builder.d.ts +131 -100
  354. package/types/ngstarter-ui-components-form-builder.d.ts +1094 -881
  355. package/types/ngstarter-ui-components-form-field.d.ts +116 -105
  356. package/types/ngstarter-ui-components-gauge.d.ts +32 -20
  357. package/types/ngstarter-ui-components-grid.d.ts +66 -50
  358. package/types/ngstarter-ui-components-guided-tour.d.ts +250 -222
  359. package/types/ngstarter-ui-components-headless-editor.d.ts +708 -658
  360. package/types/ngstarter-ui-components-headless-stepper.d.ts +84 -64
  361. package/types/ngstarter-ui-components-icon.d.ts +39 -38
  362. package/types/ngstarter-ui-components-image-designer.d.ts +422 -341
  363. package/types/ngstarter-ui-components-image-placeholder.d.ts +5 -8
  364. package/types/ngstarter-ui-components-image-resizer.d.ts +40 -33
  365. package/types/ngstarter-ui-components-image-viewer.d.ts +67 -54
  366. package/types/ngstarter-ui-components-image-zoom-viewer.d.ts +29 -33
  367. package/types/ngstarter-ui-components-incidents.d.ts +97 -104
  368. package/types/ngstarter-ui-components-inline-text-edit.d.ts +54 -39
  369. package/types/ngstarter-ui-components-input-mask.d.ts +54 -34
  370. package/types/ngstarter-ui-components-input-validator.d.ts +7 -11
  371. package/types/ngstarter-ui-components-input.d.ts +82 -54
  372. package/types/ngstarter-ui-components-kanban-board.d.ts +76 -63
  373. package/types/ngstarter-ui-components-kbd.d.ts +8 -12
  374. package/types/ngstarter-ui-components-layout.d.ts +131 -87
  375. package/types/ngstarter-ui-components-list.d.ts +123 -88
  376. package/types/ngstarter-ui-components-logo.d.ts +21 -21
  377. package/types/ngstarter-ui-components-marquee.d.ts +41 -34
  378. package/types/ngstarter-ui-components-menu.d.ts +329 -221
  379. package/types/ngstarter-ui-components-micro-chart.d.ts +385 -186
  380. package/types/ngstarter-ui-components-navigation.d.ts +186 -125
  381. package/types/ngstarter-ui-components-notifications.d.ts +104 -89
  382. package/types/ngstarter-ui-components-number-input.d.ts +138 -96
  383. package/types/ngstarter-ui-components-option.d.ts +102 -68
  384. package/types/ngstarter-ui-components-overlay.d.ts +7 -12
  385. package/types/ngstarter-ui-components-page-loading-bar.d.ts +23 -20
  386. package/types/ngstarter-ui-components-paginator.d.ts +171 -129
  387. package/types/ngstarter-ui-components-password-strength.d.ts +217 -102
  388. package/types/ngstarter-ui-components-pdf-builder.d.ts +717 -649
  389. package/types/ngstarter-ui-components-pdf-signer.d.ts +202 -142
  390. package/types/ngstarter-ui-components-pdf-viewer.d.ts +544 -385
  391. package/types/ngstarter-ui-components-phone-input.d.ts +175 -115
  392. package/types/ngstarter-ui-components-pin-input.d.ts +83 -45
  393. package/types/ngstarter-ui-components-popover.d.ts +128 -89
  394. package/types/ngstarter-ui-components-progress-bar.d.ts +49 -30
  395. package/types/ngstarter-ui-components-radio-card.d.ts +50 -34
  396. package/types/ngstarter-ui-components-radio.d.ts +100 -47
  397. package/types/ngstarter-ui-components-rail-nav.d.ts +36 -29
  398. package/types/ngstarter-ui-components-resizable-container.d.ts +30 -25
  399. package/types/ngstarter-ui-components-screen-loader.d.ts +38 -32
  400. package/types/ngstarter-ui-components-scroll-spy.d.ts +56 -60
  401. package/types/ngstarter-ui-components-scrollbar-area.d.ts +116 -86
  402. package/types/ngstarter-ui-components-segmented.d.ts +93 -61
  403. package/types/ngstarter-ui-components-select.d.ts +366 -266
  404. package/types/ngstarter-ui-components-side-panel.d.ts +59 -40
  405. package/types/ngstarter-ui-components-sidebar.d.ts +208 -154
  406. package/types/ngstarter-ui-components-sidenav.d.ts +136 -78
  407. package/types/ngstarter-ui-components-signature-pad.d.ts +165 -92
  408. package/types/ngstarter-ui-components-skeleton.d.ts +18 -17
  409. package/types/ngstarter-ui-components-slide-toggle.d.ts +113 -44
  410. package/types/ngstarter-ui-components-slider.d.ts +123 -82
  411. package/types/ngstarter-ui-components-snack-bar.d.ts +126 -134
  412. package/types/ngstarter-ui-components-sort.d.ts +99 -63
  413. package/types/ngstarter-ui-components-spinner.d.ts +49 -27
  414. package/types/ngstarter-ui-components-splash-screen.d.ts +34 -29
  415. package/types/ngstarter-ui-components-split.d.ts +276 -195
  416. package/types/ngstarter-ui-components-step-tracker.d.ts +102 -83
  417. package/types/ngstarter-ui-components-stepper.d.ts +57 -43
  418. package/types/ngstarter-ui-components-suggestions.d.ts +41 -28
  419. package/types/ngstarter-ui-components-tab-panel.d.ts +110 -83
  420. package/types/ngstarter-ui-components-table.d.ts +256 -228
  421. package/types/ngstarter-ui-components-tabs.d.ts +231 -138
  422. package/types/ngstarter-ui-components-thumbnail-maker.d.ts +40 -34
  423. package/types/ngstarter-ui-components-tiles.d.ts +166 -104
  424. package/types/ngstarter-ui-components-timeline.d.ts +45 -57
  425. package/types/ngstarter-ui-components-timepicker.d.ts +166 -111
  426. package/types/ngstarter-ui-components-timezone-select.d.ts +110 -70
  427. package/types/ngstarter-ui-components-toolbar.d.ts +89 -72
  428. package/types/ngstarter-ui-components-tooltip.d.ts +89 -52
  429. package/types/ngstarter-ui-components-tree-select.d.ts +182 -105
  430. package/types/ngstarter-ui-components-tree.d.ts +355 -229
  431. package/types/ngstarter-ui-components-upload.d.ts +216 -131
  432. package/types/ngstarter-ui-components-video-player.d.ts +130 -67
  433. package/types/ngstarter-ui-components-video-viewer.d.ts +140 -91
  434. package/types/ngstarter-ui-components-visual-builder.d.ts +5 -8
  435. package/types/ngstarter-ui-components-whiteboard.d.ts +412 -339
  436. package/types/ngstarter-ui-components.d.ts +2 -2
  437. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-BgKuFsDy.mjs +0 -35
  438. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-BgKuFsDy.mjs.map +0 -1
  439. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs +0 -26
  440. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs.map +0 -1
  441. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.mjs +0 -220
  442. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.mjs.map +0 -1
  443. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs +0 -99
  444. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs.map +0 -1
  445. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs +0 -40
  446. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs.map +0 -1
  447. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-Bo3irEeG.mjs +0 -375
  448. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-Bo3irEeG.mjs.map +0 -1
  449. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs +0 -80
  450. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs.map +0 -1
  451. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs +0 -65
  452. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs.map +0 -1
  453. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs +0 -137
  454. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs.map +0 -1
  455. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs +0 -113
  456. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs.map +0 -1
  457. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs +0 -188
  458. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs.map +0 -1
  459. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs +0 -117
  460. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs.map +0 -1
  461. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs +0 -4464
  462. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs.map +0 -1
  463. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs +0 -132
  464. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs.map +0 -1
  465. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs +0 -171
  466. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs.map +0 -1
  467. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs +0 -1653
  468. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs.map +0 -1
  469. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.mjs +0 -20
  470. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.mjs.map +0 -1
  471. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs +0 -19
  472. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs.map +0 -1
  473. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-laP7DTyq.mjs +0 -134
  474. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-laP7DTyq.mjs.map +0 -1
  475. package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs +0 -159
  476. package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs.map +0 -1
@@ -1,183 +1,323 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, ElementRef, input, Directive, forwardRef } from '@angular/core';
3
- import { NgControl, NG_VALUE_ACCESSOR } from '@angular/forms';
4
-
1
+ import * as i0 from "@angular/core";
2
+ import { Directive, ElementRef, inject, input, model, output } from "@angular/core";
3
+ import { connectLegacyNativeFormControl } from "@ngstarter-ui/components/core";
4
+ import { NgControl } from "@angular/forms";
5
+ import { transformedValue } from "@angular/forms/signals";
5
6
  const formatCreditCardNumber = (value) => {
6
- const cleaned = value.replace(/\D/g, '');
7
- const trimmed = cleaned.substring(0, 16);
8
- const groups = trimmed.match(/.{1,4}/g);
9
- return groups?.join(' ') ?? '';
7
+ return value.replace(/\D/g, "").substring(0, 16).match(/.{1,4}/g)?.join(" ") ?? "";
10
8
  };
11
- class CreditCardNumberMaskDirective {
12
- ngControl = inject(NgControl, { self: true, optional: true });
13
- hostElement = inject(ElementRef);
14
- placeholder = input('0000 0000 0000 0000', /* @ts-ignore */
15
- ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
16
- onInput(event) {
17
- const input = event.target;
18
- const selectionStart = input.selectionStart;
19
- const previousValue = input.value;
20
- const formattedValue = formatCreditCardNumber(input.value);
21
- if (this.ngControl) {
22
- this.ngControl.control?.setValue(formattedValue.replace(/\s/g, ''), { emitEvent: false });
23
- this.ngControl.control?.updateValueAndValidity();
24
- }
25
- this.hostElement.nativeElement.value = formattedValue;
26
- if (selectionStart !== null) {
27
- const newCursorPosition = selectionStart + (formattedValue.length - previousValue.length);
28
- input.setSelectionRange(newCursorPosition, newCursorPosition);
29
- }
30
- }
31
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: CreditCardNumberMaskDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
32
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: CreditCardNumberMaskDirective, isStandalone: true, selector: "[ngsCreditCardNumberMask]", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "input": "onInput($event)" }, properties: { "attr.type": "\"tel\"", "attr.autocomplete": "\"cc-number\"", "attr.inputmode": "\"numeric\"", "attr.placeholder": "placeholder()" } }, exportAs: ["ngsCreditCardNumberMask"], ngImport: i0 });
33
- }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: CreditCardNumberMaskDirective, decorators: [{
35
- type: Directive,
36
- args: [{
37
- selector: '[ngsCreditCardNumberMask]',
38
- exportAs: 'ngsCreditCardNumberMask',
39
- host: {
40
- '(input)': 'onInput($event)',
41
- '[attr.type]': '"tel"', // Use ‘tel’ to call up the numeric keypad
42
- '[attr.autocomplete]': '"cc-number"',
43
- '[attr.inputmode]': '"numeric"',
44
- '[attr.placeholder]': 'placeholder()',
45
- },
46
- }]
47
- }], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
48
-
9
+ var CreditCardNumberMaskDirective = class CreditCardNumberMaskDirective {
10
+ ngControl = inject(NgControl, {
11
+ self: true,
12
+ optional: true
13
+ });
14
+ hostElement = inject(ElementRef);
15
+ placeholder = input("0000 0000 0000 0000", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
16
+ onInput(event) {
17
+ const input = event.target;
18
+ const selectionStart = input.selectionStart;
19
+ const previousValue = input.value;
20
+ const formattedValue = formatCreditCardNumber(input.value);
21
+ if (this.ngControl) {
22
+ this.ngControl.control?.setValue(formattedValue.replace(/\s/g, ""), { emitEvent: false });
23
+ this.ngControl.control?.updateValueAndValidity();
24
+ }
25
+ this.hostElement.nativeElement.value = formattedValue;
26
+ if (selectionStart !== null) {
27
+ const newCursorPosition = selectionStart + (formattedValue.length - previousValue.length);
28
+ input.setSelectionRange(newCursorPosition, newCursorPosition);
29
+ }
30
+ }
31
+ static ɵfac = i0.ɵɵngDeclareFactory({
32
+ minVersion: "12.0.0",
33
+ version: "22.3.0",
34
+ ngImport: i0,
35
+ type: CreditCardNumberMaskDirective,
36
+ deps: [],
37
+ target: i0.ɵɵFactoryTarget.Directive
38
+ });
39
+ static ɵdir = i0.ɵɵngDeclareDirective({
40
+ minVersion: "17.1.0",
41
+ version: "22.3.0",
42
+ type: CreditCardNumberMaskDirective,
43
+ isStandalone: true,
44
+ selector: "[ngsCreditCardNumberMask]",
45
+ inputs: { placeholder: {
46
+ classPropertyName: "placeholder",
47
+ publicName: "placeholder",
48
+ isSignal: true,
49
+ isRequired: false,
50
+ transformFunction: null
51
+ } },
52
+ host: {
53
+ listeners: { "input": "onInput($event)" },
54
+ properties: {
55
+ "attr.type": "\"tel\"",
56
+ "attr.autocomplete": "\"cc-number\"",
57
+ "attr.inputmode": "\"numeric\"",
58
+ "attr.placeholder": "placeholder()"
59
+ }
60
+ },
61
+ exportAs: ["ngsCreditCardNumberMask"],
62
+ ngImport: i0
63
+ });
64
+ };
65
+ i0.ɵɵngDeclareClassMetadata({
66
+ minVersion: "12.0.0",
67
+ version: "22.3.0",
68
+ ngImport: i0,
69
+ type: CreditCardNumberMaskDirective,
70
+ decorators: [{
71
+ type: Directive,
72
+ args: [{
73
+ selector: "[ngsCreditCardNumberMask]",
74
+ exportAs: "ngsCreditCardNumberMask",
75
+ host: {
76
+ "(input)": "onInput($event)",
77
+ "[attr.type]": "\"tel\"",
78
+ "[attr.autocomplete]": "\"cc-number\"",
79
+ "[attr.inputmode]": "\"numeric\"",
80
+ "[attr.placeholder]": "placeholder()"
81
+ }
82
+ }]
83
+ }],
84
+ propDecorators: { placeholder: [{
85
+ type: i0.Input,
86
+ args: [{
87
+ isSignal: true,
88
+ alias: "placeholder",
89
+ required: false
90
+ }]
91
+ }] }
92
+ });
49
93
  const formatOnInput = (value) => {
50
- const cleaned = value.replace(/\D/g, '').substring(0, 4);
51
- let month = cleaned.substring(0, 2);
52
- const year = cleaned.substring(2, 4);
53
- if (month.length === 2) {
54
- const monthInt = parseInt(month, 10);
55
- if (monthInt > 12)
56
- month = '12';
57
- if (monthInt === 0)
58
- month = '01';
59
- }
60
- return cleaned.length > 2 ? `${month}/${year}` : month;
94
+ const cleaned = value.replace(/\D/g, "").substring(0, 4);
95
+ let month = cleaned.substring(0, 2);
96
+ const year = cleaned.substring(2, 4);
97
+ if (month.length === 2) {
98
+ const monthInt = parseInt(month, 10);
99
+ if (monthInt > 12) month = "12";
100
+ if (monthInt === 0) month = "01";
101
+ }
102
+ return cleaned.length > 2 ? `${month}/${year}` : month;
61
103
  };
62
104
  const formatOnBlur = (value) => {
63
- if (!value)
64
- return '';
65
- const parts = value.split('/');
66
- const month = parts[0] || '';
67
- let year = parts[1] || '';
68
- if (year && year.length === 1) {
69
- year = `0${year}`;
70
- }
71
- return year ? `${month}/${year}` : month;
105
+ if (!value) return "";
106
+ const parts = value.split("/");
107
+ const month = parts[0] || "";
108
+ let year = parts[1] || "";
109
+ if (year && year.length === 1) year = `0${year}`;
110
+ return year ? `${month}/${year}` : month;
72
111
  };
73
- class CreditCardExpiryDateMaskDirective {
74
- elementRef = inject(ElementRef);
75
- placeholder = input('MM/YY', /* @ts-ignore */
76
- ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
77
- onChange = (_) => { };
78
- onTouched = () => { };
79
- writeValue(value) {
80
- const formattedValue = formatOnInput(value || '');
81
- this.elementRef.nativeElement.value = formattedValue;
82
- }
83
- registerOnChange(fn) {
84
- this.onChange = fn;
85
- }
86
- registerOnTouched(fn) {
87
- this.onTouched = fn;
88
- }
89
- onInput(event) {
90
- const target = event.target;
91
- if (!target)
92
- return;
93
- const selectionStart = target.selectionStart;
94
- const previousValue = target.value;
95
- const formattedValue = formatOnInput(target.value);
96
- this.onChange(formattedValue.replace(/\//g, ''));
97
- target.value = formattedValue;
98
- if (selectionStart !== null) {
99
- const newCursorPosition = selectionStart + (formattedValue.length - previousValue.length);
100
- target.setSelectionRange(newCursorPosition, newCursorPosition);
101
- }
102
- }
103
- onBlur(event) {
104
- this.onTouched();
105
- const target = event.target;
106
- if (!target)
107
- return;
108
- const formattedValue = formatOnBlur(target.value);
109
- const modelValue = formattedValue.replace(/\//g, '');
110
- this.onChange(modelValue);
111
- target.value = formattedValue;
112
- }
113
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: CreditCardExpiryDateMaskDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
114
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: CreditCardExpiryDateMaskDirective, isStandalone: true, selector: "[ngsCreditCardExpiryDateMask]", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "input": "onInput($event)", "blur": "onBlur($event)" }, properties: { "attr.placeholder": "placeholder()" } }, providers: [
115
- {
116
- provide: NG_VALUE_ACCESSOR,
117
- useExisting: forwardRef(() => CreditCardExpiryDateMaskDirective),
118
- multi: true,
119
- },
120
- ], exportAs: ["ngsCreditCardExpiryDateMask"], ngImport: i0 });
121
- }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: CreditCardExpiryDateMaskDirective, decorators: [{
123
- type: Directive,
124
- args: [{
125
- selector: '[ngsCreditCardExpiryDateMask]',
126
- exportAs: 'ngsCreditCardExpiryDateMask',
127
- providers: [
128
- {
129
- provide: NG_VALUE_ACCESSOR,
130
- useExisting: forwardRef(() => CreditCardExpiryDateMaskDirective),
131
- multi: true,
132
- },
133
- ],
134
- host: {
135
- '(input)': 'onInput($event)',
136
- '(blur)': 'onBlur($event)',
137
- '[attr.placeholder]': 'placeholder()',
138
- }
139
- }]
140
- }], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
141
-
112
+ var CreditCardExpiryDateMaskDirective = class CreditCardExpiryDateMaskDirective {
113
+ elementRef = inject(ElementRef);
114
+ placeholder = input("MM/YY", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
115
+ value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
116
+ touch = output();
117
+ rawValue = transformedValue(this.value, {
118
+ parse: (raw) => ({ value: raw.replace(/\D/g, "") }),
119
+ format: (value) => formatOnInput(value ?? "")
120
+ });
121
+ constructor() {
122
+ connectLegacyNativeFormControl(this.value, this.touch, (value) => this.value.set(value), (disabled) => {
123
+ this.elementRef.nativeElement.disabled = disabled;
124
+ });
125
+ }
126
+ onInput(event) {
127
+ const target = event.target;
128
+ if (!target) return;
129
+ const selectionStart = target.selectionStart;
130
+ const previousValue = target.value;
131
+ const formattedValue = formatOnInput(target.value);
132
+ this.rawValue.set(formattedValue);
133
+ target.value = formattedValue;
134
+ if (selectionStart !== null) {
135
+ const newCursorPosition = selectionStart + (formattedValue.length - previousValue.length);
136
+ target.setSelectionRange(newCursorPosition, newCursorPosition);
137
+ }
138
+ }
139
+ onBlur(event) {
140
+ const target = event.target;
141
+ if (!target) return;
142
+ const formattedValue = formatOnBlur(target.value);
143
+ this.rawValue.set(formattedValue);
144
+ this.touch.emit();
145
+ target.value = formattedValue;
146
+ }
147
+ static ɵfac = i0.ɵɵngDeclareFactory({
148
+ minVersion: "12.0.0",
149
+ version: "22.3.0",
150
+ ngImport: i0,
151
+ type: CreditCardExpiryDateMaskDirective,
152
+ deps: [],
153
+ target: i0.ɵɵFactoryTarget.Directive
154
+ });
155
+ static ɵdir = i0.ɵɵngDeclareDirective({
156
+ minVersion: "17.1.0",
157
+ version: "22.3.0",
158
+ type: CreditCardExpiryDateMaskDirective,
159
+ isStandalone: true,
160
+ selector: "input[ngsCreditCardExpiryDateMask]",
161
+ inputs: {
162
+ placeholder: {
163
+ classPropertyName: "placeholder",
164
+ publicName: "placeholder",
165
+ isSignal: true,
166
+ isRequired: false,
167
+ transformFunction: null
168
+ },
169
+ value: {
170
+ classPropertyName: "value",
171
+ publicName: "value",
172
+ isSignal: true,
173
+ isRequired: false,
174
+ transformFunction: null
175
+ }
176
+ },
177
+ outputs: {
178
+ value: "valueChange",
179
+ touch: "touch"
180
+ },
181
+ host: {
182
+ listeners: {
183
+ "input": "onInput($event)",
184
+ "blur": "onBlur($event)"
185
+ },
186
+ properties: {
187
+ "attr.placeholder": "placeholder()",
188
+ "value": "rawValue()"
189
+ }
190
+ },
191
+ exportAs: ["ngsCreditCardExpiryDateMask"],
192
+ ngImport: i0
193
+ });
194
+ };
195
+ i0.ɵɵngDeclareClassMetadata({
196
+ minVersion: "12.0.0",
197
+ version: "22.3.0",
198
+ ngImport: i0,
199
+ type: CreditCardExpiryDateMaskDirective,
200
+ decorators: [{
201
+ type: Directive,
202
+ args: [{
203
+ selector: "input[ngsCreditCardExpiryDateMask]",
204
+ exportAs: "ngsCreditCardExpiryDateMask",
205
+ host: {
206
+ "(input)": "onInput($event)",
207
+ "(blur)": "onBlur($event)",
208
+ "[attr.placeholder]": "placeholder()",
209
+ "[value]": "rawValue()"
210
+ }
211
+ }]
212
+ }],
213
+ ctorParameters: () => [],
214
+ propDecorators: {
215
+ placeholder: [{
216
+ type: i0.Input,
217
+ args: [{
218
+ isSignal: true,
219
+ alias: "placeholder",
220
+ required: false
221
+ }]
222
+ }],
223
+ value: [{
224
+ type: i0.Input,
225
+ args: [{
226
+ isSignal: true,
227
+ alias: "value",
228
+ required: false
229
+ }]
230
+ }, {
231
+ type: i0.Output,
232
+ args: ["valueChange"]
233
+ }],
234
+ touch: [{
235
+ type: i0.Output,
236
+ args: ["touch"]
237
+ }]
238
+ }
239
+ });
142
240
  const formatCvv = (value) => {
143
- const cleaned = value.replace(/\D/g, '');
144
- return cleaned.substring(0, 4);
241
+ return value.replace(/\D/g, "").substring(0, 4);
145
242
  };
146
- class CreditCardCvvMaskDirective {
147
- ngControl = inject(NgControl, { self: true, optional: true });
148
- hostElement = inject(ElementRef);
149
- placeholder = input('•••', /* @ts-ignore */
150
- ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
151
- onInput(event) {
152
- const input = event.target;
153
- const formattedValue = formatCvv(input.value);
154
- if (this.ngControl) {
155
- this.ngControl.control?.setValue(formattedValue, { emitEvent: false });
156
- this.ngControl.control?.updateValueAndValidity();
157
- }
158
- this.hostElement.nativeElement.value = formattedValue;
159
- }
160
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: CreditCardCvvMaskDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
161
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: CreditCardCvvMaskDirective, isStandalone: true, selector: "[ngsCreditCardCvvMask]", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "input": "onInput($event)" }, properties: { "attr.type": "\"tel\"", "attr.inputmode": "\"numeric\"", "attr.autocomplete": "\"cc-csc\"", "attr.placeholder": "placeholder()" } }, exportAs: ["ngsCreditCardCvvMask"], ngImport: i0 });
162
- }
163
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: CreditCardCvvMaskDirective, decorators: [{
164
- type: Directive,
165
- args: [{
166
- selector: '[ngsCreditCardCvvMask]',
167
- exportAs: 'ngsCreditCardCvvMask',
168
- host: {
169
- '(input)': 'onInput($event)',
170
- '[attr.type]': '"tel"', // Use ‘tel’ to call up the numeric keypad
171
- '[attr.inputmode]': '"numeric"',
172
- '[attr.autocomplete]': '"cc-csc"',
173
- '[attr.placeholder]': 'placeholder()',
174
- },
175
- }]
176
- }], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
177
-
178
- /**
179
- * Generated bundle index. Do not edit.
180
- */
181
-
243
+ var CreditCardCvvMaskDirective = class CreditCardCvvMaskDirective {
244
+ ngControl = inject(NgControl, {
245
+ self: true,
246
+ optional: true
247
+ });
248
+ hostElement = inject(ElementRef);
249
+ placeholder = input("•••", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
250
+ onInput(event) {
251
+ const input = event.target;
252
+ const formattedValue = formatCvv(input.value);
253
+ if (this.ngControl) {
254
+ this.ngControl.control?.setValue(formattedValue, { emitEvent: false });
255
+ this.ngControl.control?.updateValueAndValidity();
256
+ }
257
+ this.hostElement.nativeElement.value = formattedValue;
258
+ }
259
+ static ɵfac = i0.ɵɵngDeclareFactory({
260
+ minVersion: "12.0.0",
261
+ version: "22.3.0",
262
+ ngImport: i0,
263
+ type: CreditCardCvvMaskDirective,
264
+ deps: [],
265
+ target: i0.ɵɵFactoryTarget.Directive
266
+ });
267
+ static ɵdir = i0.ɵɵngDeclareDirective({
268
+ minVersion: "17.1.0",
269
+ version: "22.3.0",
270
+ type: CreditCardCvvMaskDirective,
271
+ isStandalone: true,
272
+ selector: "[ngsCreditCardCvvMask]",
273
+ inputs: { placeholder: {
274
+ classPropertyName: "placeholder",
275
+ publicName: "placeholder",
276
+ isSignal: true,
277
+ isRequired: false,
278
+ transformFunction: null
279
+ } },
280
+ host: {
281
+ listeners: { "input": "onInput($event)" },
282
+ properties: {
283
+ "attr.type": "\"tel\"",
284
+ "attr.inputmode": "\"numeric\"",
285
+ "attr.autocomplete": "\"cc-csc\"",
286
+ "attr.placeholder": "placeholder()"
287
+ }
288
+ },
289
+ exportAs: ["ngsCreditCardCvvMask"],
290
+ ngImport: i0
291
+ });
292
+ };
293
+ i0.ɵɵngDeclareClassMetadata({
294
+ minVersion: "12.0.0",
295
+ version: "22.3.0",
296
+ ngImport: i0,
297
+ type: CreditCardCvvMaskDirective,
298
+ decorators: [{
299
+ type: Directive,
300
+ args: [{
301
+ selector: "[ngsCreditCardCvvMask]",
302
+ exportAs: "ngsCreditCardCvvMask",
303
+ host: {
304
+ "(input)": "onInput($event)",
305
+ "[attr.type]": "\"tel\"",
306
+ "[attr.inputmode]": "\"numeric\"",
307
+ "[attr.autocomplete]": "\"cc-csc\"",
308
+ "[attr.placeholder]": "placeholder()"
309
+ }
310
+ }]
311
+ }],
312
+ propDecorators: { placeholder: [{
313
+ type: i0.Input,
314
+ args: [{
315
+ isSignal: true,
316
+ alias: "placeholder",
317
+ required: false
318
+ }]
319
+ }] }
320
+ });
182
321
  export { CreditCardCvvMaskDirective, CreditCardExpiryDateMaskDirective, CreditCardNumberMaskDirective };
183
- //# sourceMappingURL=ngstarter-ui-components-input-mask.mjs.map
322
+
323
+ //# sourceMappingURL=ngstarter-ui-components-input-mask.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngstarter-ui-components-input-mask.mjs","sources":["../../../projects/components/input-mask/src/credit-card-number-mask.directive.ts","../../../projects/components/input-mask/src/credit-card-expiry-date-mask.directive.ts","../../../projects/components/input-mask/src/credit-card-cvv-mask.directive.ts","../../../projects/components/input-mask/ngstarter-ui-components-input-mask.ts"],"sourcesContent":["import { Directive, ElementRef, inject, input } from '@angular/core';\nimport { NgControl } from '@angular/forms';\n\nconst formatCreditCardNumber = (value: string): string => {\n const cleaned = value.replace(/\\D/g, '');\n const trimmed = cleaned.substring(0, 16);\n const groups = trimmed.match(/.{1,4}/g);\n return groups?.join(' ') ?? '';\n};\n\n@Directive({\n selector: '[ngsCreditCardNumberMask]',\n exportAs: 'ngsCreditCardNumberMask',\n host: {\n '(input)': 'onInput($event)',\n '[attr.type]': '\"tel\"', // Use ‘tel’ to call up the numeric keypad\n '[attr.autocomplete]': '\"cc-number\"',\n '[attr.inputmode]': '\"numeric\"',\n '[attr.placeholder]': 'placeholder()',\n },\n})\nexport class CreditCardNumberMaskDirective {\n private readonly ngControl = inject(NgControl, { self: true, optional: true });\n private readonly hostElement = inject<ElementRef<HTMLInputElement>>(ElementRef);\n\n readonly placeholder = input('0000 0000 0000 0000');\n\n onInput(event: Event): void {\n const input = event.target as HTMLInputElement;\n const selectionStart = input.selectionStart;\n const previousValue = input.value;\n\n const formattedValue = formatCreditCardNumber(input.value);\n\n if (this.ngControl) {\n this.ngControl.control?.setValue(formattedValue.replace(/\\s/g, ''), { emitEvent: false });\n this.ngControl.control?.updateValueAndValidity();\n }\n\n this.hostElement.nativeElement.value = formattedValue;\n\n if (selectionStart !== null) {\n const newCursorPosition = selectionStart + (formattedValue.length - previousValue.length);\n input.setSelectionRange(newCursorPosition, newCursorPosition);\n }\n }\n}\n","import { Directive, ElementRef, inject, forwardRef, input } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nconst formatOnInput = (value: string): string => {\n const cleaned = value.replace(/\\D/g, '').substring(0, 4);\n let month = cleaned.substring(0, 2);\n const year = cleaned.substring(2, 4);\n\n if (month.length === 2) {\n const monthInt = parseInt(month, 10);\n if (monthInt > 12) month = '12';\n if (monthInt === 0) month = '01';\n }\n\n return cleaned.length > 2 ? `${month}/${year}` : month;\n};\n\nconst formatOnBlur = (value: string): string => {\n if (!value) return '';\n const parts = value.split('/');\n const month = parts[0] || '';\n let year = parts[1] || '';\n\n if (year && year.length === 1) {\n year = `0${year}`;\n }\n\n return year ? `${month}/${year}` : month;\n};\n\n\n@Directive({\n selector: '[ngsCreditCardExpiryDateMask]',\n exportAs: 'ngsCreditCardExpiryDateMask',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => CreditCardExpiryDateMaskDirective),\n multi: true,\n },\n ],\n host: {\n '(input)': 'onInput($event)',\n '(blur)': 'onBlur($event)',\n '[attr.placeholder]': 'placeholder()',\n }\n})\nexport class CreditCardExpiryDateMaskDirective implements ControlValueAccessor {\n private readonly elementRef = inject<ElementRef<HTMLInputElement>>(ElementRef);\n\n readonly placeholder = input('MM/YY');\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n writeValue(value: string | null): void {\n const formattedValue = formatOnInput(value || '');\n this.elementRef.nativeElement.value = formattedValue;\n }\n\n registerOnChange(fn: any): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: any): void {\n this.onTouched = fn;\n }\n\n protected onInput(event: Event): void {\n const target = event.target as HTMLInputElement | null;\n if (!target) return;\n\n const selectionStart = target.selectionStart;\n const previousValue = target.value;\n const formattedValue = formatOnInput(target.value);\n\n this.onChange(formattedValue.replace(/\\//g, ''));\n target.value = formattedValue;\n\n if (selectionStart !== null) {\n const newCursorPosition = selectionStart + (formattedValue.length - previousValue.length);\n target.setSelectionRange(newCursorPosition, newCursorPosition);\n }\n }\n\n onBlur(event: Event): void {\n this.onTouched();\n\n const target = event.target as HTMLInputElement | null;\n if (!target) return;\n\n const formattedValue = formatOnBlur(target.value);\n const modelValue = formattedValue.replace(/\\//g, '');\n\n this.onChange(modelValue);\n target.value = formattedValue;\n }\n}\n","import { Directive, ElementRef, inject, input } from '@angular/core';\nimport { NgControl } from '@angular/forms';\n\nconst formatCvv = (value: string): string => {\n const cleaned = value.replace(/\\D/g, '');\n return cleaned.substring(0, 4);\n};\n\n@Directive({\n selector: '[ngsCreditCardCvvMask]',\n exportAs: 'ngsCreditCardCvvMask',\n host: {\n '(input)': 'onInput($event)',\n '[attr.type]': '\"tel\"', // Use ‘tel’ to call up the numeric keypad\n '[attr.inputmode]': '\"numeric\"',\n '[attr.autocomplete]': '\"cc-csc\"',\n '[attr.placeholder]': 'placeholder()',\n },\n})\nexport class CreditCardCvvMaskDirective {\n private readonly ngControl = inject(NgControl, { self: true, optional: true });\n private readonly hostElement = inject<ElementRef<HTMLInputElement>>(ElementRef);\n\n readonly placeholder = input('•••');\n\n onInput(event: Event): void {\n const input = event.target as HTMLInputElement;\n const formattedValue = formatCvv(input.value);\n\n if (this.ngControl) {\n this.ngControl.control?.setValue(formattedValue, { emitEvent: false });\n this.ngControl.control?.updateValueAndValidity();\n }\n\n this.hostElement.nativeElement.value = formattedValue;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA,MAAM,sBAAsB,GAAG,CAAC,KAAa,KAAY;IACvD,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;IACxC,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC;IACxC,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC;IACvC,OAAO,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE;AAChC,CAAC;MAaY,6BAA6B,CAAA;AACvB,IAAA,SAAS,GAAG,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC7D,IAAA,WAAW,GAAG,MAAM,CAA+B,UAAU,CAAC;IAEtE,WAAW,GAAG,KAAK,CAAC,qBAAqB;oFAAC;AAEnD,IAAA,OAAO,CAAC,KAAY,EAAA;AAClB,QAAA,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B;AAC9C,QAAA,MAAM,cAAc,GAAG,KAAK,CAAC,cAAc;AAC3C,QAAA,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK;QAEjC,MAAM,cAAc,GAAG,sBAAsB,CAAC,KAAK,CAAC,KAAK,CAAC;AAE1D,QAAA,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,IAAI,CAAC,SAAS,CAA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ngstarter-ui-components-input-mask.mjs","names":[],"sources":["../../../projects/components/input-mask/src/credit-card-number-mask.directive.ts","../../../projects/components/input-mask/src/credit-card-expiry-date-mask.directive.ts","../../../projects/components/input-mask/src/credit-card-cvv-mask.directive.ts"],"sourcesContent":["import { Directive, ElementRef, inject, input } from '@angular/core';\nimport { NgControl } from '@angular/forms';\n\nconst formatCreditCardNumber = (value: string): string => {\n const cleaned = value.replace(/\\D/g, '');\n const trimmed = cleaned.substring(0, 16);\n const groups = trimmed.match(/.{1,4}/g);\n return groups?.join(' ') ?? '';\n};\n\n@Directive({\n selector: '[ngsCreditCardNumberMask]',\n exportAs: 'ngsCreditCardNumberMask',\n host: {\n '(input)': 'onInput($event)',\n '[attr.type]': '\"tel\"', // Use ‘tel’ to call up the numeric keypad\n '[attr.autocomplete]': '\"cc-number\"',\n '[attr.inputmode]': '\"numeric\"',\n '[attr.placeholder]': 'placeholder()',\n },\n})\nexport class CreditCardNumberMaskDirective {\n private readonly ngControl = inject(NgControl, { self: true, optional: true });\n private readonly hostElement = inject<ElementRef<HTMLInputElement>>(ElementRef);\n\n readonly placeholder = input('0000 0000 0000 0000');\n\n onInput(event: Event): void {\n const input = event.target as HTMLInputElement;\n const selectionStart = input.selectionStart;\n const previousValue = input.value;\n\n const formattedValue = formatCreditCardNumber(input.value);\n\n if (this.ngControl) {\n this.ngControl.control?.setValue(formattedValue.replace(/\\s/g, ''), { emitEvent: false });\n this.ngControl.control?.updateValueAndValidity();\n }\n\n this.hostElement.nativeElement.value = formattedValue;\n\n if (selectionStart !== null) {\n const newCursorPosition = selectionStart + (formattedValue.length - previousValue.length);\n input.setSelectionRange(newCursorPosition, newCursorPosition);\n }\n }\n}\n","import { Directive, ElementRef, inject, input, model, output } from '@angular/core';\nimport { FormValueControl, transformedValue } from '@angular/forms/signals';\nimport { connectLegacyNativeFormControl } from '@ngstarter-ui/components/core';\n\nconst formatOnInput = (value: string): string => {\n const cleaned = value.replace(/\\D/g, '').substring(0, 4);\n let month = cleaned.substring(0, 2);\n const year = cleaned.substring(2, 4);\n\n if (month.length === 2) {\n const monthInt = parseInt(month, 10);\n if (monthInt > 12) month = '12';\n if (monthInt === 0) month = '01';\n }\n\n return cleaned.length > 2 ? `${month}/${year}` : month;\n};\n\nconst formatOnBlur = (value: string): string => {\n if (!value) return '';\n const parts = value.split('/');\n const month = parts[0] || '';\n let year = parts[1] || '';\n\n if (year && year.length === 1) {\n year = `0${year}`;\n }\n\n return year ? `${month}/${year}` : month;\n};\n\n\n@Directive({\n selector: 'input[ngsCreditCardExpiryDateMask]',\n exportAs: 'ngsCreditCardExpiryDateMask',\n host: {\n '(input)': 'onInput($event)',\n '(blur)': 'onBlur($event)',\n '[attr.placeholder]': 'placeholder()',\n '[value]': 'rawValue()',\n }\n})\nexport class CreditCardExpiryDateMaskDirective implements FormValueControl<string | null> {\n private readonly elementRef = inject<ElementRef<HTMLInputElement>>(ElementRef);\n\n readonly placeholder = input('MM/YY');\n\n readonly value = model<string | null>(null);\n readonly touch = output<void>();\n protected readonly rawValue = transformedValue(this.value, {\n parse: (raw: string) => ({ value: raw.replace(/\\D/g, '') }),\n format: value => formatOnInput(value ?? ''),\n });\n\n constructor() {\n connectLegacyNativeFormControl(this.value, this.touch, value => this.value.set(value),\n disabled => { this.elementRef.nativeElement.disabled = disabled; });\n }\n\n protected onInput(event: Event): void {\n const target = event.target as HTMLInputElement | null;\n if (!target) return;\n\n const selectionStart = target.selectionStart;\n const previousValue = target.value;\n const formattedValue = formatOnInput(target.value);\n\n this.rawValue.set(formattedValue);\n target.value = formattedValue;\n\n if (selectionStart !== null) {\n const newCursorPosition = selectionStart + (formattedValue.length - previousValue.length);\n target.setSelectionRange(newCursorPosition, newCursorPosition);\n }\n }\n\n onBlur(event: Event): void {\n const target = event.target as HTMLInputElement | null;\n if (!target) return;\n\n const formattedValue = formatOnBlur(target.value);\n this.rawValue.set(formattedValue);\n this.touch.emit();\n target.value = formattedValue;\n }\n}\n","import { Directive, ElementRef, inject, input } from '@angular/core';\nimport { NgControl } from '@angular/forms';\n\nconst formatCvv = (value: string): string => {\n const cleaned = value.replace(/\\D/g, '');\n return cleaned.substring(0, 4);\n};\n\n@Directive({\n selector: '[ngsCreditCardCvvMask]',\n exportAs: 'ngsCreditCardCvvMask',\n host: {\n '(input)': 'onInput($event)',\n '[attr.type]': '\"tel\"', // Use ‘tel’ to call up the numeric keypad\n '[attr.inputmode]': '\"numeric\"',\n '[attr.autocomplete]': '\"cc-csc\"',\n '[attr.placeholder]': 'placeholder()',\n },\n})\nexport class CreditCardCvvMaskDirective {\n private readonly ngControl = inject(NgControl, { self: true, optional: true });\n private readonly hostElement = inject<ElementRef<HTMLInputElement>>(ElementRef);\n\n readonly placeholder = input('•••');\n\n onInput(event: Event): void {\n const input = event.target as HTMLInputElement;\n const formattedValue = formatCvv(input.value);\n\n if (this.ngControl) {\n this.ngControl.control?.setValue(formattedValue, { emitEvent: false });\n this.ngControl.control?.updateValueAndValidity();\n }\n\n this.hostElement.nativeElement.value = formattedValue;\n }\n}\n"],"mappings":";;;;;AAGA,MAAM,0BAA0B,UAAyB;CAIvD,OAHgB,MAAM,QAAQ,OAAO,EACrB,CAAA,CAAQ,UAAU,GAAG,EACtB,CAAA,CAAQ,MAAM,SACtB,CAAA,EAAQ,KAAK,GAAG,KAAK;AAC9B;AAaA,IAAa,gCAAb,MAAa,8BAA6B;CACvB,YAAY,OAAO,WAAW;EAAE,MAAM;EAAM,UAAU;CAAI,CAAE;CAC5D,cAAc,OAAqC,UAAU;CAErE,cAAc,MAAM,uBAAsB,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAEnD,QAAQ,OAAY;EAClB,MAAM,QAAQ,MAAM;EACpB,MAAM,iBAAiB,MAAM;EAC7B,MAAM,gBAAgB,MAAM;EAE5B,MAAM,iBAAiB,uBAAuB,MAAM,KAAK;EAEzD,IAAI,KAAK,WAAW;GAClB,KAAK,UAAU,SAAS,SAAS,eAAe,Q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