@ngstarter-ui/components 1.0.21

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 (415) hide show
  1. package/README.md +0 -0
  2. package/fesm2022/ngstarter-ui-components-action-required.mjs +42 -0
  3. package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -0
  4. package/fesm2022/ngstarter-ui-components-alert.mjs +132 -0
  5. package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -0
  6. package/fesm2022/ngstarter-ui-components-announcement.mjs +86 -0
  7. package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -0
  8. package/fesm2022/ngstarter-ui-components-autocomplete.mjs +360 -0
  9. package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -0
  10. package/fesm2022/ngstarter-ui-components-avatar.mjs +235 -0
  11. package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -0
  12. package/fesm2022/ngstarter-ui-components-badge.mjs +97 -0
  13. package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -0
  14. package/fesm2022/ngstarter-ui-components-block-loader.mjs +48 -0
  15. package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -0
  16. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +327 -0
  17. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs.map +1 -0
  18. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +209 -0
  19. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -0
  20. package/fesm2022/ngstarter-ui-components-button-toggle.mjs +175 -0
  21. package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -0
  22. package/fesm2022/ngstarter-ui-components-button.mjs +70 -0
  23. package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -0
  24. package/fesm2022/ngstarter-ui-components-card-overlay.mjs +49 -0
  25. package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -0
  26. package/fesm2022/ngstarter-ui-components-card.mjs +199 -0
  27. package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -0
  28. package/fesm2022/ngstarter-ui-components-carousel.mjs +614 -0
  29. package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -0
  30. package/fesm2022/ngstarter-ui-components-checkbox.mjs +300 -0
  31. package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -0
  32. package/fesm2022/ngstarter-ui-components-chips.mjs +589 -0
  33. package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -0
  34. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +347 -0
  35. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -0
  36. package/fesm2022/ngstarter-ui-components-color-picker.mjs +713 -0
  37. package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -0
  38. package/fesm2022/ngstarter-ui-components-color-scheme.mjs +106 -0
  39. package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -0
  40. package/fesm2022/ngstarter-ui-components-color-switcher.mjs +72 -0
  41. package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -0
  42. package/fesm2022/ngstarter-ui-components-command-bar.mjs +57 -0
  43. package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -0
  44. package/fesm2022/ngstarter-ui-components-comment-editor.mjs +1024 -0
  45. package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -0
  46. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +177 -0
  47. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -0
  48. package/fesm2022/ngstarter-ui-components-confirm.mjs +85 -0
  49. package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -0
  50. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-Bk6QTli8.mjs +173 -0
  51. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-Bk6QTli8.mjs.map +1 -0
  52. package/fesm2022/ngstarter-ui-components-content-editor-content-editor-content-editable.directive-Bvfa2dqh.mjs +124 -0
  53. package/fesm2022/ngstarter-ui-components-content-editor-content-editor-content-editable.directive-Bvfa2dqh.mjs.map +1 -0
  54. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs +99 -0
  55. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs.map +1 -0
  56. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-C_iRTCPH.mjs +33 -0
  57. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-C_iRTCPH.mjs.map +1 -0
  58. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-BbkC_t86.mjs +354 -0
  59. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-BbkC_t86.mjs.map +1 -0
  60. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-D9_CxTY1.mjs +114 -0
  61. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-D9_CxTY1.mjs.map +1 -0
  62. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-B4zJyUg1.mjs +146 -0
  63. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-B4zJyUg1.mjs.map +1 -0
  64. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-Cv6wx5Xe.mjs +215 -0
  65. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-Cv6wx5Xe.mjs.map +1 -0
  66. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-1Zi2nAX5.mjs +2548 -0
  67. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-1Zi2nAX5.mjs.map +1 -0
  68. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-C9bQvDYU.mjs +110 -0
  69. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-C9bQvDYU.mjs.map +1 -0
  70. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BbHds2r2.mjs +141 -0
  71. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BbHds2r2.mjs.map +1 -0
  72. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-DlDh7Fnn.mjs +1604 -0
  73. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-DlDh7Fnn.mjs.map +1 -0
  74. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-m4DTihP2.mjs +175 -0
  75. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-m4DTihP2.mjs.map +1 -0
  76. package/fesm2022/ngstarter-ui-components-content-editor.mjs +2 -0
  77. package/fesm2022/ngstarter-ui-components-content-editor.mjs.map +1 -0
  78. package/fesm2022/ngstarter-ui-components-content-fade.mjs +35 -0
  79. package/fesm2022/ngstarter-ui-components-content-fade.mjs.map +1 -0
  80. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +107 -0
  81. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -0
  82. package/fesm2022/ngstarter-ui-components-core.mjs +1330 -0
  83. package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -0
  84. package/fesm2022/ngstarter-ui-components-country-select.mjs +489 -0
  85. package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -0
  86. package/fesm2022/ngstarter-ui-components-crop.mjs +183 -0
  87. package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -0
  88. package/fesm2022/ngstarter-ui-components-currency-select.mjs +397 -0
  89. package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -0
  90. package/fesm2022/ngstarter-ui-components-data-view.mjs +1494 -0
  91. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -0
  92. package/fesm2022/ngstarter-ui-components-date-format-select.mjs +154 -0
  93. package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -0
  94. package/fesm2022/ngstarter-ui-components-datepicker.mjs +1159 -0
  95. package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -0
  96. package/fesm2022/ngstarter-ui-components-dialog.mjs +357 -0
  97. package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -0
  98. package/fesm2022/ngstarter-ui-components-divider.mjs +42 -0
  99. package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -0
  100. package/fesm2022/ngstarter-ui-components-drawer.mjs +132 -0
  101. package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -0
  102. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +245 -0
  103. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -0
  104. package/fesm2022/ngstarter-ui-components-empty-state.mjs +75 -0
  105. package/fesm2022/ngstarter-ui-components-empty-state.mjs.map +1 -0
  106. package/fesm2022/ngstarter-ui-components-expand.mjs +56 -0
  107. package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -0
  108. package/fesm2022/ngstarter-ui-components-expansion.mjs +193 -0
  109. package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -0
  110. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +333 -0
  111. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -0
  112. package/fesm2022/ngstarter-ui-components-form-field.mjs +230 -0
  113. package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -0
  114. package/fesm2022/ngstarter-ui-components-form-renderer-autocomplete-many-field-BKQVlZHV.mjs +124 -0
  115. package/fesm2022/ngstarter-ui-components-form-renderer-autocomplete-many-field-BKQVlZHV.mjs.map +1 -0
  116. package/fesm2022/ngstarter-ui-components-form-renderer-checkbox-field-CoyKdvhV.mjs +22 -0
  117. package/fesm2022/ngstarter-ui-components-form-renderer-checkbox-field-CoyKdvhV.mjs.map +1 -0
  118. package/fesm2022/ngstarter-ui-components-form-renderer-datepicker-field-Bzc0TPO9.mjs +44 -0
  119. package/fesm2022/ngstarter-ui-components-form-renderer-datepicker-field-Bzc0TPO9.mjs.map +1 -0
  120. package/fesm2022/ngstarter-ui-components-form-renderer-divider-content-CwGzDCZv.mjs +17 -0
  121. package/fesm2022/ngstarter-ui-components-form-renderer-divider-content-CwGzDCZv.mjs.map +1 -0
  122. package/fesm2022/ngstarter-ui-components-form-renderer-image-content-ICTwkZPa.mjs +17 -0
  123. package/fesm2022/ngstarter-ui-components-form-renderer-image-content-ICTwkZPa.mjs.map +1 -0
  124. package/fesm2022/ngstarter-ui-components-form-renderer-input-field-RYxi-Mpw.mjs +35 -0
  125. package/fesm2022/ngstarter-ui-components-form-renderer-input-field-RYxi-Mpw.mjs.map +1 -0
  126. package/fesm2022/ngstarter-ui-components-form-renderer-radio-group-field-Cv3AGpoq.mjs +38 -0
  127. package/fesm2022/ngstarter-ui-components-form-renderer-radio-group-field-Cv3AGpoq.mjs.map +1 -0
  128. package/fesm2022/ngstarter-ui-components-form-renderer-select-field-eLcwI-BY.mjs +39 -0
  129. package/fesm2022/ngstarter-ui-components-form-renderer-select-field-eLcwI-BY.mjs.map +1 -0
  130. package/fesm2022/ngstarter-ui-components-form-renderer-text-content-BjzH_M3-.mjs +24 -0
  131. package/fesm2022/ngstarter-ui-components-form-renderer-text-content-BjzH_M3-.mjs.map +1 -0
  132. package/fesm2022/ngstarter-ui-components-form-renderer-textarea-field-4zH7FTQ1.mjs +37 -0
  133. package/fesm2022/ngstarter-ui-components-form-renderer-textarea-field-4zH7FTQ1.mjs.map +1 -0
  134. package/fesm2022/ngstarter-ui-components-form-renderer-timezone-field-BpH65Hd-.mjs +35 -0
  135. package/fesm2022/ngstarter-ui-components-form-renderer-timezone-field-BpH65Hd-.mjs.map +1 -0
  136. package/fesm2022/ngstarter-ui-components-form-renderer-toggle-field-iyqUrWxt.mjs +22 -0
  137. package/fesm2022/ngstarter-ui-components-form-renderer-toggle-field-iyqUrWxt.mjs.map +1 -0
  138. package/fesm2022/ngstarter-ui-components-form-renderer.mjs +317 -0
  139. package/fesm2022/ngstarter-ui-components-form-renderer.mjs.map +1 -0
  140. package/fesm2022/ngstarter-ui-components-gauge.mjs +44 -0
  141. package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -0
  142. package/fesm2022/ngstarter-ui-components-grid.mjs +78 -0
  143. package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -0
  144. package/fesm2022/ngstarter-ui-components-guided-tour.mjs +736 -0
  145. package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -0
  146. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +192 -0
  147. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -0
  148. package/fesm2022/ngstarter-ui-components-icon.mjs +61 -0
  149. package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -0
  150. package/fesm2022/ngstarter-ui-components-image-designer.mjs +4016 -0
  151. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -0
  152. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +20 -0
  153. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -0
  154. package/fesm2022/ngstarter-ui-components-image-resizer.mjs +151 -0
  155. package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -0
  156. package/fesm2022/ngstarter-ui-components-image-viewer.mjs +349 -0
  157. package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -0
  158. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +162 -0
  159. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -0
  160. package/fesm2022/ngstarter-ui-components-incidents.mjs +257 -0
  161. package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -0
  162. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +179 -0
  163. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -0
  164. package/fesm2022/ngstarter-ui-components-input-mask.mjs +180 -0
  165. package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -0
  166. package/fesm2022/ngstarter-ui-components-input-validator.mjs +24 -0
  167. package/fesm2022/ngstarter-ui-components-input-validator.mjs.map +1 -0
  168. package/fesm2022/ngstarter-ui-components-input.mjs +152 -0
  169. package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -0
  170. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +156 -0
  171. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -0
  172. package/fesm2022/ngstarter-ui-components-kbd.mjs +31 -0
  173. package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -0
  174. package/fesm2022/ngstarter-ui-components-layout.mjs +199 -0
  175. package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -0
  176. package/fesm2022/ngstarter-ui-components-list.mjs +279 -0
  177. package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -0
  178. package/fesm2022/ngstarter-ui-components-logo.mjs +51 -0
  179. package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -0
  180. package/fesm2022/ngstarter-ui-components-marquee.mjs +76 -0
  181. package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -0
  182. package/fesm2022/ngstarter-ui-components-menu.mjs +851 -0
  183. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -0
  184. package/fesm2022/ngstarter-ui-components-micro-chart.mjs +928 -0
  185. package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -0
  186. package/fesm2022/ngstarter-ui-components-navigation.mjs +439 -0
  187. package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -0
  188. package/fesm2022/ngstarter-ui-components-notifications.mjs +181 -0
  189. package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -0
  190. package/fesm2022/ngstarter-ui-components-number-input.mjs +293 -0
  191. package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -0
  192. package/fesm2022/ngstarter-ui-components-option.mjs +157 -0
  193. package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -0
  194. package/fesm2022/ngstarter-ui-components-overlay.mjs +112 -0
  195. package/fesm2022/ngstarter-ui-components-overlay.mjs.map +1 -0
  196. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +77 -0
  197. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -0
  198. package/fesm2022/ngstarter-ui-components-paginator.mjs +297 -0
  199. package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -0
  200. package/fesm2022/ngstarter-ui-components-panel.mjs +123 -0
  201. package/fesm2022/ngstarter-ui-components-panel.mjs.map +1 -0
  202. package/fesm2022/ngstarter-ui-components-password-strength.mjs +335 -0
  203. package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -0
  204. package/fesm2022/ngstarter-ui-components-phone-input.mjs +651 -0
  205. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -0
  206. package/fesm2022/ngstarter-ui-components-pin-input.mjs +193 -0
  207. package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -0
  208. package/fesm2022/ngstarter-ui-components-popover.mjs +302 -0
  209. package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -0
  210. package/fesm2022/ngstarter-ui-components-progress-bar.mjs +68 -0
  211. package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -0
  212. package/fesm2022/ngstarter-ui-components-radio-card.mjs +102 -0
  213. package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -0
  214. package/fesm2022/ngstarter-ui-components-radio.mjs +147 -0
  215. package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -0
  216. package/fesm2022/ngstarter-ui-components-rail-nav.mjs +87 -0
  217. package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -0
  218. package/fesm2022/ngstarter-ui-components-resizable-container.mjs +74 -0
  219. package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -0
  220. package/fesm2022/ngstarter-ui-components-screen-loader.mjs +95 -0
  221. package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -0
  222. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +219 -0
  223. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -0
  224. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +459 -0
  225. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -0
  226. package/fesm2022/ngstarter-ui-components-segmented.mjs +218 -0
  227. package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -0
  228. package/fesm2022/ngstarter-ui-components-select.mjs +496 -0
  229. package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -0
  230. package/fesm2022/ngstarter-ui-components-side-panel.mjs +107 -0
  231. package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -0
  232. package/fesm2022/ngstarter-ui-components-sidebar.mjs +435 -0
  233. package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -0
  234. package/fesm2022/ngstarter-ui-components-sidenav.mjs +354 -0
  235. package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -0
  236. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +452 -0
  237. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -0
  238. package/fesm2022/ngstarter-ui-components-skeleton.mjs +22 -0
  239. package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -0
  240. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +93 -0
  241. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -0
  242. package/fesm2022/ngstarter-ui-components-slider.mjs +481 -0
  243. package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -0
  244. package/fesm2022/ngstarter-ui-components-snack-bar.mjs +354 -0
  245. package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -0
  246. package/fesm2022/ngstarter-ui-components-sort.mjs +140 -0
  247. package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -0
  248. package/fesm2022/ngstarter-ui-components-spinner.mjs +75 -0
  249. package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -0
  250. package/fesm2022/ngstarter-ui-components-splash-screen.mjs +93 -0
  251. package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -0
  252. package/fesm2022/ngstarter-ui-components-split.mjs +948 -0
  253. package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -0
  254. package/fesm2022/ngstarter-ui-components-stepper.mjs +103 -0
  255. package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -0
  256. package/fesm2022/ngstarter-ui-components-suggestions.mjs +72 -0
  257. package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -0
  258. package/fesm2022/ngstarter-ui-components-tab-panel.mjs +265 -0
  259. package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -0
  260. package/fesm2022/ngstarter-ui-components-table.mjs +648 -0
  261. package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -0
  262. package/fesm2022/ngstarter-ui-components-tabs.mjs +591 -0
  263. package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -0
  264. package/fesm2022/ngstarter-ui-components-text-editor.mjs +1012 -0
  265. package/fesm2022/ngstarter-ui-components-text-editor.mjs.map +1 -0
  266. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +212 -0
  267. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -0
  268. package/fesm2022/ngstarter-ui-components-tiles.mjs +634 -0
  269. package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -0
  270. package/fesm2022/ngstarter-ui-components-timeline.mjs +122 -0
  271. package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -0
  272. package/fesm2022/ngstarter-ui-components-timepicker.mjs +486 -0
  273. package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -0
  274. package/fesm2022/ngstarter-ui-components-timezone-select.mjs +371 -0
  275. package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -0
  276. package/fesm2022/ngstarter-ui-components-toolbar.mjs +299 -0
  277. package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -0
  278. package/fesm2022/ngstarter-ui-components-tooltip.mjs +506 -0
  279. package/fesm2022/ngstarter-ui-components-tooltip.mjs.map +1 -0
  280. package/fesm2022/ngstarter-ui-components-tree.mjs +200 -0
  281. package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -0
  282. package/fesm2022/ngstarter-ui-components-upload.mjs +330 -0
  283. package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -0
  284. package/fesm2022/ngstarter-ui-components-video-player.mjs +516 -0
  285. package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -0
  286. package/fesm2022/ngstarter-ui-components-video-viewer.mjs +218 -0
  287. package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -0
  288. package/fesm2022/ngstarter-ui-components-visual-builder.mjs +18 -0
  289. package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -0
  290. package/fesm2022/ngstarter-ui-components.mjs +6 -0
  291. package/fesm2022/ngstarter-ui-components.mjs.map +1 -0
  292. package/package.json +535 -0
  293. package/styles/_common.scss +456 -0
  294. package/styles/_global.scss +91 -0
  295. package/styles/themes/default.scss +2 -0
  296. package/types/ngstarter-ui-components-action-required.d.ts +14 -0
  297. package/types/ngstarter-ui-components-alert.d.ts +50 -0
  298. package/types/ngstarter-ui-components-announcement.d.ts +59 -0
  299. package/types/ngstarter-ui-components-autocomplete.d.ts +83 -0
  300. package/types/ngstarter-ui-components-avatar.d.ts +69 -0
  301. package/types/ngstarter-ui-components-badge.d.ts +38 -0
  302. package/types/ngstarter-ui-components-block-loader.d.ts +21 -0
  303. package/types/ngstarter-ui-components-bottom-sheet.d.ts +149 -0
  304. package/types/ngstarter-ui-components-breadcrumbs.d.ts +104 -0
  305. package/types/ngstarter-ui-components-button-toggle.d.ts +54 -0
  306. package/types/ngstarter-ui-components-button.d.ts +27 -0
  307. package/types/ngstarter-ui-components-card-overlay.d.ts +20 -0
  308. package/types/ngstarter-ui-components-card.d.ts +85 -0
  309. package/types/ngstarter-ui-components-carousel.d.ts +76 -0
  310. package/types/ngstarter-ui-components-checkbox.d.ts +94 -0
  311. package/types/ngstarter-ui-components-chips.d.ts +189 -0
  312. package/types/ngstarter-ui-components-code-highlighter.d.ts +28 -0
  313. package/types/ngstarter-ui-components-color-picker.d.ts +92 -0
  314. package/types/ngstarter-ui-components-color-scheme.d.ts +44 -0
  315. package/types/ngstarter-ui-components-color-switcher.d.ts +26 -0
  316. package/types/ngstarter-ui-components-command-bar.d.ts +28 -0
  317. package/types/ngstarter-ui-components-comment-editor.d.ts +194 -0
  318. package/types/ngstarter-ui-components-comparison-slider.d.ts +42 -0
  319. package/types/ngstarter-ui-components-confirm.d.ts +34 -0
  320. package/types/ngstarter-ui-components-content-editor.d.ts +321 -0
  321. package/types/ngstarter-ui-components-content-fade.d.ts +17 -0
  322. package/types/ngstarter-ui-components-cookie-popup.d.ts +41 -0
  323. package/types/ngstarter-ui-components-core.d.ts +421 -0
  324. package/types/ngstarter-ui-components-country-select.d.ts +78 -0
  325. package/types/ngstarter-ui-components-crop.d.ts +59 -0
  326. package/types/ngstarter-ui-components-currency-select.d.ts +82 -0
  327. package/types/ngstarter-ui-components-data-view.d.ts +391 -0
  328. package/types/ngstarter-ui-components-date-format-select.d.ts +59 -0
  329. package/types/ngstarter-ui-components-datepicker.d.ts +384 -0
  330. package/types/ngstarter-ui-components-dialog.d.ts +115 -0
  331. package/types/ngstarter-ui-components-divider.d.ts +18 -0
  332. package/types/ngstarter-ui-components-drawer.d.ts +32 -0
  333. package/types/ngstarter-ui-components-emoji-picker.d.ts +49 -0
  334. package/types/ngstarter-ui-components-empty-state.d.ts +33 -0
  335. package/types/ngstarter-ui-components-expand.d.ts +26 -0
  336. package/types/ngstarter-ui-components-expansion.d.ts +68 -0
  337. package/types/ngstarter-ui-components-filter-builder.d.ts +106 -0
  338. package/types/ngstarter-ui-components-form-field.d.ts +107 -0
  339. package/types/ngstarter-ui-components-form-renderer.d.ts +121 -0
  340. package/types/ngstarter-ui-components-gauge.d.ts +21 -0
  341. package/types/ngstarter-ui-components-grid.d.ts +45 -0
  342. package/types/ngstarter-ui-components-guided-tour.d.ts +227 -0
  343. package/types/ngstarter-ui-components-headless-stepper.d.ts +65 -0
  344. package/types/ngstarter-ui-components-icon.d.ts +17 -0
  345. package/types/ngstarter-ui-components-image-designer.d.ts +357 -0
  346. package/types/ngstarter-ui-components-image-placeholder.d.ts +8 -0
  347. package/types/ngstarter-ui-components-image-resizer.d.ts +35 -0
  348. package/types/ngstarter-ui-components-image-viewer.d.ts +63 -0
  349. package/types/ngstarter-ui-components-image-zoom-viewer.d.ts +34 -0
  350. package/types/ngstarter-ui-components-incidents.d.ts +119 -0
  351. package/types/ngstarter-ui-components-inline-text-edit.d.ts +39 -0
  352. package/types/ngstarter-ui-components-input-mask.d.ts +36 -0
  353. package/types/ngstarter-ui-components-input-validator.d.ts +5 -0
  354. package/types/ngstarter-ui-components-input.d.ts +53 -0
  355. package/types/ngstarter-ui-components-kanban-board.d.ts +68 -0
  356. package/types/ngstarter-ui-components-kbd.d.ts +13 -0
  357. package/types/ngstarter-ui-components-layout.d.ts +83 -0
  358. package/types/ngstarter-ui-components-list.d.ts +98 -0
  359. package/types/ngstarter-ui-components-logo.d.ts +26 -0
  360. package/types/ngstarter-ui-components-marquee.d.ts +27 -0
  361. package/types/ngstarter-ui-components-menu.d.ts +199 -0
  362. package/types/ngstarter-ui-components-micro-chart.d.ts +195 -0
  363. package/types/ngstarter-ui-components-navigation.d.ts +136 -0
  364. package/types/ngstarter-ui-components-notifications.d.ts +84 -0
  365. package/types/ngstarter-ui-components-number-input.d.ts +99 -0
  366. package/types/ngstarter-ui-components-option.d.ts +61 -0
  367. package/types/ngstarter-ui-components-overlay.d.ts +12 -0
  368. package/types/ngstarter-ui-components-page-loading-bar.d.ts +20 -0
  369. package/types/ngstarter-ui-components-paginator.d.ts +145 -0
  370. package/types/ngstarter-ui-components-panel.d.ts +59 -0
  371. package/types/ngstarter-ui-components-password-strength.d.ts +109 -0
  372. package/types/ngstarter-ui-components-phone-input.d.ts +103 -0
  373. package/types/ngstarter-ui-components-pin-input.d.ts +48 -0
  374. package/types/ngstarter-ui-components-popover.d.ts +94 -0
  375. package/types/ngstarter-ui-components-progress-bar.d.ts +30 -0
  376. package/types/ngstarter-ui-components-radio-card.d.ts +37 -0
  377. package/types/ngstarter-ui-components-radio.d.ts +45 -0
  378. package/types/ngstarter-ui-components-rail-nav.d.ts +36 -0
  379. package/types/ngstarter-ui-components-resizable-container.d.ts +25 -0
  380. package/types/ngstarter-ui-components-screen-loader.d.ts +34 -0
  381. package/types/ngstarter-ui-components-scroll-spy.d.ts +63 -0
  382. package/types/ngstarter-ui-components-scrollbar-area.d.ts +67 -0
  383. package/types/ngstarter-ui-components-segmented.d.ts +65 -0
  384. package/types/ngstarter-ui-components-select.d.ts +126 -0
  385. package/types/ngstarter-ui-components-side-panel.d.ts +42 -0
  386. package/types/ngstarter-ui-components-sidebar.d.ts +143 -0
  387. package/types/ngstarter-ui-components-sidenav.d.ts +86 -0
  388. package/types/ngstarter-ui-components-signature-pad.d.ts +49 -0
  389. package/types/ngstarter-ui-components-skeleton.d.ts +9 -0
  390. package/types/ngstarter-ui-components-slide-toggle.d.ts +41 -0
  391. package/types/ngstarter-ui-components-slider.d.ts +85 -0
  392. package/types/ngstarter-ui-components-snack-bar.d.ts +142 -0
  393. package/types/ngstarter-ui-components-sort.d.ts +66 -0
  394. package/types/ngstarter-ui-components-spinner.d.ts +28 -0
  395. package/types/ngstarter-ui-components-splash-screen.d.ts +31 -0
  396. package/types/ngstarter-ui-components-split.d.ts +210 -0
  397. package/types/ngstarter-ui-components-stepper.d.ts +44 -0
  398. package/types/ngstarter-ui-components-suggestions.d.ts +32 -0
  399. package/types/ngstarter-ui-components-tab-panel.d.ts +96 -0
  400. package/types/ngstarter-ui-components-table.d.ts +277 -0
  401. package/types/ngstarter-ui-components-tabs.d.ts +145 -0
  402. package/types/ngstarter-ui-components-text-editor.d.ts +191 -0
  403. package/types/ngstarter-ui-components-thumbnail-maker.d.ts +35 -0
  404. package/types/ngstarter-ui-components-tiles.d.ts +109 -0
  405. package/types/ngstarter-ui-components-timeline.d.ts +57 -0
  406. package/types/ngstarter-ui-components-timepicker.d.ts +115 -0
  407. package/types/ngstarter-ui-components-timezone-select.d.ts +75 -0
  408. package/types/ngstarter-ui-components-toolbar.d.ts +74 -0
  409. package/types/ngstarter-ui-components-tooltip.d.ts +52 -0
  410. package/types/ngstarter-ui-components-tree.d.ts +60 -0
  411. package/types/ngstarter-ui-components-upload.d.ts +134 -0
  412. package/types/ngstarter-ui-components-video-player.d.ts +67 -0
  413. package/types/ngstarter-ui-components-video-viewer.d.ts +98 -0
  414. package/types/ngstarter-ui-components-visual-builder.d.ts +8 -0
  415. package/types/ngstarter-ui-components.d.ts +2 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngstarter-ui-components-incidents.mjs","sources":["../../../projects/components/incidents/src/properties.ts","../../../projects/components/incidents/src/incidents/incidents.ts","../../../projects/components/incidents/src/incidents/incidents.html","../../../projects/components/incidents/src/incidents-bar/incidents-bar.ts","../../../projects/components/incidents/src/incidents-bar/incidents-bar.html","../../../projects/components/incidents/src/incidents-list/incidents-list.ts","../../../projects/components/incidents/src/incidents-list/incidents-list.html","../../../projects/components/incidents/src/incidents.store.ts","../../../projects/components/incidents/src/incident/incident.ts","../../../projects/components/incidents/src/incident/incident.html","../../../projects/components/incidents/src/incident-title/incident-title.ts","../../../projects/components/incidents/src/incident-title/incident-title.html","../../../projects/components/incidents/src/incident-details/incident-details.ts","../../../projects/components/incidents/src/incident-details/incident-details.html","../../../projects/components/incidents/src/incident-button.directive.ts","../../../projects/components/incidents/src/incidents-title/incidents-title.ts","../../../projects/components/incidents/src/incidents-title/incidents-title.html","../../../projects/components/incidents/src/incidents-description/incidents-description.ts","../../../projects/components/incidents/src/incidents-description/incidents-description.html","../../../projects/components/incidents/src/incidents-toggle-icon.directive.ts","../../../projects/components/incidents/src/incident-close.directive.ts","../../../projects/components/incidents/src/incidents-container/incidents-container.ts","../../../projects/components/incidents/src/incidents-container/incidents-container.html","../../../projects/components/incidents/src/incident-icon.directive.ts","../../../projects/components/incidents/ngstarter-ui-components-incidents.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const INCIDENTS = new InjectionToken('INCIDENTS');\n","import {\n Component\n} from '@angular/core';\nimport { INCIDENTS } from '../properties';\n\n@Component({\n selector: 'ngs-incidents',\n exportAs: 'ngsIncidents',\n templateUrl: './incidents.html',\n styleUrl: './incidents.scss',\n providers: [\n {\n provide: INCIDENTS,\n useExisting: Incidents\n }\n ],\n host: {\n 'class': 'ngs-incidents',\n '[class.is-visible]': 'isVisible',\n }\n})\nexport class Incidents {\n isVisible = false;\n\n toggleVisibility() {\n this.isVisible = !this.isVisible;\n }\n}\n","<ng-content select=\"ngs-incidents-bar\" />\n<ng-content select=\"ngs-incidents-list\" />\n","import { Component, inject } from '@angular/core';\nimport { INCIDENTS } from '../properties';\nimport { Incidents } from '../incidents/incidents';\nimport { Button } from '@ngstarter-ui/components/button';\n\n@Component({\n selector: 'ngs-incidents-bar',\n exportAs: 'ngsIncidentsBar',\n imports: [\n\n Button\n ],\n templateUrl: './incidents-bar.html',\n styleUrl: './incidents-bar.scss',\n host: {\n 'class': 'ngs-incidents-bar',\n '(click)': '_handleClick($event)'\n }\n})\nexport class IncidentsBar {\n private _parent = inject<Incidents>(INCIDENTS, { optional: true });\n\n _handleClick(_event?: Event) {\n this._parent?.toggleVisibility();\n }\n}\n","<div class=\"flex flex-col gap-0.5\">\n <ng-content select=\"ngs-incidents-title\"/>\n <ng-content select=\"ngs-incidents-description\"/>\n</div>\n<button ngsIconButton class=\"ms-auto toggle-icon\">\n <ng-content select=\"[ngsIncidentsToggleIcon]\"/>\n</button>\n","import { booleanAttribute, Component, inject, input } from '@angular/core';\nimport { Incidents } from '../incidents/incidents';\nimport { INCIDENTS } from '../properties';\n\n@Component({\n selector: 'ngs-incidents-list',\n exportAs: 'ngs-incidents-list',\n templateUrl: './incidents-list.html',\n styleUrl: './incidents-list.scss',\n host: {\n 'class': 'ngs-incidents-list',\n '[class.is-fixed]': 'fixed()',\n '(click)': '_handleClick($event)'\n }\n})\nexport class IncidentsList {\n private _parent = inject<Incidents>(INCIDENTS, { optional: true });\n\n fixed = input(false, {\n transform: booleanAttribute\n });\n\n _handleClick(event: MouseEvent) {\n const target = event.target as HTMLElement;\n\n if (target.closest('.ngs-incident') === null) {\n this._parent?.toggleVisibility();\n }\n }\n}\n","<div class=\"container\">\n <ng-content select=\"ngs-incident\"/>\n</div>\n","import { patchState, signalStore, withMethods, withState } from '@ngrx/signals';\nimport { Incident } from './types';\n\nexport interface IncidentsState {\n incidents: Incident[],\n title: string;\n description: string;\n}\n\nconst initialState: IncidentsState = {\n incidents: [],\n title: '',\n description: '',\n};\n\nexport const IncidentsStore = signalStore(\n { providedIn: 'root' },\n withState(initialState),\n withMethods((store) => ({\n show(state: IncidentsState): void {\n patchState(store, {\n ...state\n });\n },\n hide(): void {\n patchState(store, {\n incidents: []\n });\n }\n }))\n);\n","import { Component, inject, input } from '@angular/core';\nimport { IncidentsStore } from '../incidents.store';\nimport { Button } from '@ngstarter-ui/components/button';\n\nlet incidentId = 0;\n\n@Component({\n selector: 'ngs-incident,[ngs-incident]',\n exportAs: 'ngsIncident',\n imports: [\n\n Button\n ],\n templateUrl: './incident.html',\n styleUrl: './incident.scss',\n host: {\n 'class': 'ngs-incident'\n }\n})\nexport class Incident {\n private _incidentsStore = inject(IncidentsStore);\n\n incidentId = input(`incident-${incidentId++}`);\n\n close() {\n this._incidentsStore.hide();\n }\n}\n","<div class=\"icon\">\n <ng-content select=\"[ngsIncidentIcon]\"/>\n</div>\n<div class=\"content\">\n <div class=\"data\">\n <ng-content select=\"ngs-incident-title\"/>\n <ng-content select=\"ngs-incident-details\"/>\n </div>\n <ng-content select=\"[ngsIncidentButton]\"/>\n</div>\n<button ngsIconButton class=\"close -ms-2\" (click)=\"close()\">\n <ng-content select=\"[ngsIncidentClose]\"/>\n</button>\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-incident-title',\n exportAs: 'ngsIncidentTitle',\n templateUrl: './incident-title.html',\n styleUrl: './incident-title.scss',\n host: {\n 'class': 'ngs-incident-title',\n }\n})\nexport class IncidentTitle {\n\n}\n","<ng-content />\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-incident-details',\n exportAs: 'ngsIncidentDetails',\n templateUrl: './incident-details.html',\n styleUrl: './incident-details.scss',\n host: {\n 'class': 'ngs-incident-details',\n }\n})\nexport class IncidentDetails {\n\n}\n","<ng-content />\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngsIncidentButton]',\n exportAs: 'ngsIncidentButton',\n host: {\n 'class': 'ngs-incident-button',\n }\n})\nexport class IncidentButtonDirective {\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-incidents-title',\n exportAs: 'ngsIncidentTitle',\n templateUrl: './incidents-title.html',\n styleUrl: './incidents-title.scss',\n host: {\n 'class': 'ngs-incidents-title',\n }\n})\nexport class IncidentsTitle {\n\n}\n","<ng-content />\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-incidents-description',\n exportAs: 'ngsIncidentsDescription',\n templateUrl: './incidents-description.html',\n styleUrl: './incidents-description.scss',\n host: {\n 'class': 'ngs-incidents-description'\n }\n})\nexport class IncidentsDescription {\n\n}\n","<ng-content />\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngsIncidentsToggleIcon]',\n exportAs: 'ngsIncidentsToggleIcon',\n host: {\n 'class': 'ngs-incidents-toggle-icon',\n }\n})\nexport class IncidentsToggleIconDirective {\n\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngsIncidentClose]',\n exportAs: 'ngsIncidentClose',\n host: {\n 'class': 'ngs-incident-close'\n }\n})\nexport class IncidentCloseDirective {\n\n}\n","import { Component, computed, inject } from '@angular/core';\nimport { IncidentsStore } from '../incidents.store';\nimport { Incidents } from '../incidents/incidents';\nimport { Icon } from '@ngstarter-ui/components/icon';\nimport { IncidentsTitle } from '../incidents-title/incidents-title';\nimport { IncidentDetails } from '../incident-details/incident-details';\nimport { IncidentsBar } from '../incidents-bar/incidents-bar';\nimport { IncidentsDescription } from '../incidents-description/incidents-description';\nimport { IncidentsToggleIconDirective } from '../incidents-toggle-icon.directive';\nimport { IncidentTitle } from '../incident-title/incident-title';\nimport { IncidentCloseDirective } from '../incident-close.directive';\nimport { Incident } from '../incident/incident';\nimport { IncidentsList } from '../incidents-list/incidents-list';\n\n@Component({\n selector: 'ngs-incidents-container,ngs-incidents-global',\n exportAs: 'ngsIncidentsGlobal',\n imports: [\n Incidents,\n Icon,\n IncidentsTitle,\n IncidentDetails,\n IncidentsBar,\n IncidentsDescription,\n IncidentsToggleIconDirective,\n IncidentTitle,\n IncidentsList,\n IncidentCloseDirective,\n Incident\n ],\n templateUrl: './incidents-container.html',\n styleUrl: './incidents-container.scss',\n host: {\n 'class': 'ngs-incidents-global',\n '[class.is-active]': 'hasIncidents()'\n }\n})\nexport class IncidentsContainer {\n protected _incidentsStore = inject(IncidentsStore);\n\n hasIncidents = computed<boolean>(() => {\n return this._incidentsStore.incidents().length > 0;\n });\n title = computed(() => {\n return this._incidentsStore.title();\n });\n description = computed(() => {\n return this._incidentsStore.description();\n });\n incidents = computed(() => {\n return this._incidentsStore.incidents();\n });\n}\n","@if (hasIncidents()) {\n <ngs-incidents>\n <ngs-incidents-bar>\n <ngs-incidents-title>{{ title() }}</ngs-incidents-title>\n @if (description()) {\n <ngs-incidents-description>{{ description() }}</ngs-incidents-description>\n }\n <ngs-icon name=\"fluent:chevron-down-24-regular\" ngsIncidentsToggleIcon/>\n </ngs-incidents-bar>\n <ngs-incidents-list fixed>\n @for (incident of incidents(); track incident) {\n <ngs-incident>\n <ngs-icon name=\"fluent:info-24-regular\" ngsIncidentIcon/>\n <ngs-icon name=\"fluent:dismiss-24-regular\" ngsIncidentClose/>\n <ngs-incident-title>{{ incident.title }}</ngs-incident-title>\n @if (incident.details) {\n <ngs-incident-details>{{ incident.details }}</ngs-incident-details>\n }\n </ngs-incident>\n }\n </ngs-incidents-list>\n </ngs-incidents>\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngsIncidentIcon]',\n exportAs: 'ngsIncidentIcon',\n host: {\n 'class': 'ngs-incident-icon'\n }\n})\nexport class IncidentIconDirective {\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAEO,MAAM,SAAS,GAAG,IAAI,cAAc,CAAC,WAAW,CAAC;;MCmB3C,SAAS,CAAA;IACpB,SAAS,GAAG,KAAK;IAEjB,gBAAgB,GAAA;AACd,QAAA,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,CAAC,SAAS;IAClC;uGALW,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAT,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,SAAS,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,kBAAA,EAAA,WAAA,EAAA,EAAA,cAAA,EAAA,eAAA,EAAA,EAAA,SAAA,EAXT;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,SAAS;AAClB,gBAAA,WAAW,EAAE;AACd;AACF,SAAA,EAAA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECfH,6FAEA,EAAA,MAAA,EAAA,CAAA,inDAAA,CAAA,EAAA,CAAA;;2FDmBa,SAAS,EAAA,UAAA,EAAA,CAAA;kBAhBrB,SAAS;+BACE,eAAe,EAAA,QAAA,EACf,cAAc,EAAA,SAAA,EAGb;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,SAAS;AAClB,4BAAA,WAAW,EAAA;AACZ;qBACF,EAAA,IAAA,EACK;AACJ,wBAAA,OAAO,EAAE,eAAe;AACxB,wBAAA,oBAAoB,EAAE,WAAW;AAClC,qBAAA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, ElementRef, Renderer2, afterNextRender, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { isPlatformServer } from '@angular/common';
4
+
5
+ class InlineTextEdit {
6
+ platformId = inject(PLATFORM_ID);
7
+ document = inject(DOCUMENT);
8
+ enabled = input(true, ...(ngDevMode ? [{ debugName: "enabled" }] : /* istanbul ignore next */ []));
9
+ placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
10
+ delay = input(0, { ...(ngDevMode ? { debugName: "delay" } : /* istanbul ignore next */ {}), transform: numberAttribute });
11
+ contentChanged = output();
12
+ isEditing = signal(false, ...(ngDevMode ? [{ debugName: "isEditing" }] : /* istanbul ignore next */ []));
13
+ isFocused = signal(false, ...(ngDevMode ? [{ debugName: "isFocused" }] : /* istanbul ignore next */ []));
14
+ previousValue = '';
15
+ minHeightSet = false;
16
+ elementRef = inject((ElementRef));
17
+ renderer = inject(Renderer2);
18
+ emitTimeoutId = null;
19
+ constructor() {
20
+ afterNextRender(() => {
21
+ this.setInitialMinHeight();
22
+ });
23
+ }
24
+ ngAfterViewInit() {
25
+ this.previousValue = this.elementRef.nativeElement.textContent;
26
+ }
27
+ get isContentEditable() {
28
+ return true;
29
+ }
30
+ ngAfterContentChecked() {
31
+ if (isPlatformServer(this.platformId)) {
32
+ return;
33
+ }
34
+ this.setInitialMinHeight();
35
+ }
36
+ ngOnDestroy() {
37
+ this.clearPendingEmission();
38
+ }
39
+ setInitialMinHeight() {
40
+ if (this.minHeightSet) {
41
+ return;
42
+ }
43
+ const el = this.elementRef.nativeElement;
44
+ let height = el.getBoundingClientRect().height;
45
+ if (!height || height < 1) {
46
+ const cs = getComputedStyle(el);
47
+ let lh = parseFloat(cs.lineHeight);
48
+ if (isNaN(lh) || lh <= 0) {
49
+ const fs = parseFloat(cs.fontSize) || 16;
50
+ lh = fs * 1.5;
51
+ }
52
+ height = lh;
53
+ }
54
+ if (height && height > 0) {
55
+ this.renderer.setStyle(el, 'min-height', `${Math.ceil(height)}px`);
56
+ this.minHeightSet = true;
57
+ }
58
+ }
59
+ onFocus() {
60
+ this.isFocused.set(true);
61
+ }
62
+ onBlur() {
63
+ this.isFocused.set(false);
64
+ this.finishEdit();
65
+ }
66
+ onEnter(event) {
67
+ event.preventDefault();
68
+ this.finishEdit();
69
+ }
70
+ onEscape() {
71
+ this.cancelEdit();
72
+ }
73
+ onPaste(event) {
74
+ event.preventDefault();
75
+ const text = event.clipboardData?.getData('text/plain') ?? '';
76
+ this.document.execCommand('insertText', false, text);
77
+ }
78
+ onInput() {
79
+ this.isEditing.set(true);
80
+ // Track live changes and normalize empty content.
81
+ // Browsers may insert a <br> (or wrappers like <div><br></div>) in empty contenteditable elements.
82
+ const el = this.elementRef.nativeElement;
83
+ const html = (el.innerHTML ?? '').trim().toLowerCase();
84
+ const text = (el.textContent ?? '').trim();
85
+ const isEffectivelyEmpty = text.length === 0 ||
86
+ html === '' ||
87
+ html === '<br>' ||
88
+ html === '<br/>' ||
89
+ html === '<div><br></div>';
90
+ if (isEffectivelyEmpty && el.innerHTML !== '') {
91
+ // Clear to a truly empty state so placeholders and styling work correctly.
92
+ el.innerHTML = '';
93
+ }
94
+ }
95
+ finishEdit() {
96
+ if (!this.isEditing()) {
97
+ return;
98
+ }
99
+ const newValue = this.elementRef.nativeElement.textContent?.trim() ?? '';
100
+ if (newValue !== this.previousValue) {
101
+ this.previousValue = newValue;
102
+ this.emitWithDelay(newValue);
103
+ }
104
+ this.isEditing.set(false);
105
+ }
106
+ cancelEdit() {
107
+ if (!this.isEditing()) {
108
+ return;
109
+ }
110
+ this.elementRef.nativeElement.textContent = this.previousValue;
111
+ // Keep focus and move caret to the end of the restored content for better UX.
112
+ this.placeCaretAtEnd();
113
+ this.isEditing.set(false);
114
+ // Cancel any pending emission since the edit was canceled.
115
+ this.clearPendingEmission();
116
+ }
117
+ placeCaretAtEnd() {
118
+ if (isPlatformServer(this.platformId)) {
119
+ return;
120
+ }
121
+ const el = this.elementRef.nativeElement;
122
+ // Ensure the host is focused so caret positioning is visible.
123
+ el.focus();
124
+ const selection = this.document.getSelection?.();
125
+ if (!selection) {
126
+ return;
127
+ }
128
+ const range = this.document.createRange();
129
+ range.selectNodeContents(el);
130
+ range.collapse(false); // collapse to end
131
+ selection.removeAllRanges();
132
+ selection.addRange(range);
133
+ }
134
+ emitWithDelay(value) {
135
+ const d = this.delay();
136
+ // Always clear a previous scheduled emission to ensure only the latest value is emitted
137
+ this.clearPendingEmission();
138
+ if (d > 0) {
139
+ this.emitTimeoutId = setTimeout(() => {
140
+ this.emitTimeoutId = null;
141
+ this.contentChanged.emit(value);
142
+ }, d);
143
+ }
144
+ else {
145
+ this.contentChanged.emit(value);
146
+ }
147
+ }
148
+ clearPendingEmission() {
149
+ if (this.emitTimeoutId) {
150
+ clearTimeout(this.emitTimeoutId);
151
+ this.emitTimeoutId = null;
152
+ }
153
+ }
154
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: InlineTextEdit, deps: [], target: i0.ɵɵFactoryTarget.Component });
155
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", type: InlineTextEdit, isStandalone: true, selector: "ngs-inline-text-edit,[ngs-inline-text-edit]", inputs: { enabled: { classPropertyName: "enabled", publicName: "enabled", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { contentChanged: "contentChanged" }, host: { listeners: { "focus": "onFocus()", "blur": "onBlur()", "keydown.enter": "onEnter($event)", "keydown.escape": "onEscape()", "paste": "onPaste($event)", "input": "onInput()" }, properties: { "attr.contenteditable": "isContentEditable", "attr.data-placeholder": "placeholder()", "class.editing": "isEditing()", "class.focused": "isFocused()" }, classAttribute: "ngs-inline-text-edit" }, ngImport: i0, template: "<ng-content/>\n", styles: [":host{display:block;padding:4px 10px;position:relative;transition:border-color .15s cubic-bezier(.25,.8,.25,1);border:var(--ngs-form-field-outlined-outline-width, 1px) solid transparent;outline:none;border-radius:var(--input-radius);cursor:text;margin-left:-10px;margin-right:-10px;word-wrap:break-word}:host:hover{border-color:var(--ngs-form-field-outlined-outline-color, var(--color-outline))}:host.editing{color:var(--ngs-form-field-outlined-input-text-color, var(--color-on-surface));caret-color:var(--ngs-form-field-outlined-caret-color, var(--color-primary))}:host.focused{border-color:var(--color-primary);outline:1px solid var(--color-primary)}:host:empty:before{position:absolute;content:attr(data-placeholder);inset:0;z-index:0;color:var(--color-neutral-500);font-size:inherit;padding:inherit;word-wrap:break-word}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
156
+ }
157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: InlineTextEdit, decorators: [{
158
+ type: Component,
159
+ args: [{ selector: 'ngs-inline-text-edit,[ngs-inline-text-edit]', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: {
160
+ 'class': 'ngs-inline-text-edit',
161
+ '[attr.contenteditable]': 'isContentEditable',
162
+ '[attr.data-placeholder]': 'placeholder()',
163
+ '[class.editing]': 'isEditing()',
164
+ '[class.focused]': 'isFocused()',
165
+ '(focus)': 'onFocus()',
166
+ '(blur)': 'onBlur()',
167
+ '(keydown.enter)': 'onEnter($event)',
168
+ '(keydown.escape)': 'onEscape()',
169
+ '(paste)': 'onPaste($event)',
170
+ '(input)': 'onInput()',
171
+ }, template: "<ng-content/>\n", styles: [":host{display:block;padding:4px 10px;position:relative;transition:border-color .15s cubic-bezier(.25,.8,.25,1);border:var(--ngs-form-field-outlined-outline-width, 1px) solid transparent;outline:none;border-radius:var(--input-radius);cursor:text;margin-left:-10px;margin-right:-10px;word-wrap:break-word}:host:hover{border-color:var(--ngs-form-field-outlined-outline-color, var(--color-outline))}:host.editing{color:var(--ngs-form-field-outlined-input-text-color, var(--color-on-surface));caret-color:var(--ngs-form-field-outlined-caret-color, var(--color-primary))}:host.focused{border-color:var(--color-primary);outline:1px solid var(--color-primary)}:host:empty:before{position:absolute;content:attr(data-placeholder);inset:0;z-index:0;color:var(--color-neutral-500);font-size:inherit;padding:inherit;word-wrap:break-word}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
172
+ }], ctorParameters: () => [], propDecorators: { enabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "enabled", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], contentChanged: [{ type: i0.Output, args: ["contentChanged"] }] } });
173
+
174
+ /**
175
+ * Generated bundle index. Do not edit.
176
+ */
177
+
178
+ export { InlineTextEdit };
179
+ //# sourceMappingURL=ngstarter-ui-components-inline-text-edit.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngstarter-ui-components-inline-text-edit.mjs","sources":["../../../projects/components/inline-text-edit/src/inline-text-edit/inline-text-edit.ts","../../../projects/components/inline-text-edit/src/inline-text-edit/inline-text-edit.html","../../../projects/components/inline-text-edit/ngstarter-ui-components-inline-text-edit.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n inject,\n input,\n output,\n signal,\n Renderer2,\n PLATFORM_ID,\n AfterContentChecked,\n OnDestroy,\n afterNextRender, DOCUMENT, numberAttribute, AfterViewInit,\n} from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\n\n@Component({\n selector: 'ngs-inline-text-edit,[ngs-inline-text-edit]',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './inline-text-edit.html',\n styleUrl: './inline-text-edit.scss',\n host: {\n 'class': 'ngs-inline-text-edit',\n '[attr.contenteditable]': 'isContentEditable',\n '[attr.data-placeholder]': 'placeholder()',\n '[class.editing]': 'isEditing()',\n '[class.focused]': 'isFocused()',\n '(focus)': 'onFocus()',\n '(blur)': 'onBlur()',\n '(keydown.enter)': 'onEnter($event)',\n '(keydown.escape)': 'onEscape()',\n '(paste)': 'onPaste($event)',\n '(input)': 'onInput()',\n },\n})\nexport class InlineTextEdit implements AfterViewInit, AfterContentChecked, OnDestroy {\n private platformId = inject(PLATFORM_ID);\n private document = inject(DOCUMENT);\n\n enabled = input(true);\n placeholder = input('');\n delay = input(0, {\n transform: numberAttribute\n });\n\n readonly contentChanged = output<string>();\n\n isEditing = signal(false);\n isFocused = signal(false);\n\n private previousValue = '';\n private minHeightSet = false;\n private elementRef = inject(ElementRef<HTMLElement>);\n private renderer = inject(Renderer2);\n private emitTimeoutId: ReturnType<typeof setTimeout> | null = null;\n\n constructor() {\n afterNextRender(() => {\n this.setInitialMinHeight();\n });\n }\n\n ngAfterViewInit() {\n this.previousValue = this.elementRef.nativeElement.textContent;\n }\n\n get isContentEditable() {\n return true;\n }\n\n ngAfterContentChecked() {\n if (isPlatformServer(this.platformId)) {\n return;\n }\n\n this.setInitialMinHeight();\n }\n\n ngOnDestroy(): void {\n this.clearPendingEmission();\n }\n\n private setInitialMinHeight(): void {\n if (this.minHeightSet) {\n return;\n }\n\n const el = this.elementRef.nativeElement;\n let height = el.getBoundingClientRect().height;\n\n if (!height || height < 1) {\n const cs = getComputedStyle(el);\n let lh = parseFloat(cs.lineHeight);\n\n if (isNaN(lh) || lh <= 0) {\n const fs = parseFloat(cs.fontSize) || 16;\n lh = fs * 1.5;\n }\n\n height = lh;\n }\n\n if (height && height > 0) {\n this.renderer.setStyle(el, 'min-height', `${Math.ceil(height)}px`);\n this.minHeightSet = true;\n }\n }\n\n onFocus(): void {\n this.isFocused.set(true);\n }\n\n onBlur(): void {\n this.isFocused.set(false);\n this.finishEdit();\n }\n\n onEnter(event: Event): void {\n event.preventDefault();\n this.finishEdit();\n }\n\n onEscape(): void {\n this.cancelEdit();\n }\n\n onPaste(event: ClipboardEvent): void {\n event.preventDefault();\n const text = event.clipboardData?.getData('text/plain') ?? '';\n this.document.execCommand('insertText', false, text);\n }\n\n onInput(): void {\n this.isEditing.set(true);\n // Track live changes and normalize empty content.\n // Browsers may insert a <br> (or wrappers like <div><br></div>) in empty contenteditable elements.\n const el = this.elementRef.nativeElement;\n const html = (el.innerHTML ?? '').trim().toLowerCase();\n const text = (el.textContent ?? '').trim();\n\n const isEffectivelyEmpty =\n text.length === 0 ||\n html === '' ||\n html === '<br>' ||\n html === '<br/>' ||\n html === '<div><br></div>';\n\n if (isEffectivelyEmpty && el.innerHTML !== '') {\n // Clear to a truly empty state so placeholders and styling work correctly.\n el.innerHTML = '';\n }\n }\n\n private finishEdit(): void {\n if (!this.isEditing()) {\n return;\n }\n\n const newValue = this.elementRef.nativeElement.textContent?.trim() ?? '';\n\n if (newValue !== this.previousValue) {\n this.previousValue = newValue;\n this.emitWithDelay(newValue);\n }\n\n this.isEditing.set(false);\n }\n\n private cancelEdit(): void {\n if (!this.isEditing()) {\n return;\n }\n\n this.elementRef.nativeElement.textContent = this.previousValue;\n // Keep focus and move caret to the end of the restored content for better UX.\n this.placeCaretAtEnd();\n this.isEditing.set(false);\n // Cancel any pending emission since the edit was canceled.\n this.clearPendingEmission();\n }\n\n private placeCaretAtEnd(): void {\n if (isPlatformServer(this.platformId)) {\n return;\n }\n\n const el = this.elementRef.nativeElement;\n // Ensure the host is focused so caret positioning is visible.\n el.focus();\n\n const selection = this.document.getSelection?.();\n if (!selection) {\n return;\n }\n\n const range = this.document.createRange();\n range.selectNodeContents(el);\n range.collapse(false); // collapse to end\n selection.removeAllRanges();\n selection.addRange(range);\n }\n\n private emitWithDelay(value: string): void {\n const d = this.delay();\n // Always clear a previous scheduled emission to ensure only the latest value is emitted\n this.clearPendingEmission();\n\n if (d > 0) {\n this.emitTimeoutId = setTimeout(() => {\n this.emitTimeoutId = null;\n this.contentChanged.emit(value);\n }, d);\n } else {\n this.contentChanged.emit(value);\n }\n }\n\n private clearPendingEmission(): void {\n if (this.emitTimeoutId) {\n clearTimeout(this.emitTimeoutId);\n this.emitTimeoutId = null;\n }\n }\n}\n","<ng-content/>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAoCa,cAAc,CAAA;AACjB,IAAA,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC;AAChC,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAEnC,IAAA,OAAO,GAAG,KAAK,CAAC,IAAI,8EAAC;AACrB,IAAA,WAAW,GAAG,KAAK,CAAC,EAAE,kFAAC;IACvB,KAAK,GAAG,KAAK,CAAC,CAAC,6EACb,SAAS,EAAE,eAAe,EAAA,CAC1B;IAEO,cAAc,GAAG,MAAM,EAAU;AAE1C,IAAA,SAAS,GAAG,MAAM,CAAC,KAAK,gFAAC;AACzB,IAAA,SAAS,GAAG,MAAM,CAAC,KAAK,gFAAC;IAEjB,aAAa,GAAG,EAAE;IAClB,YAAY,GAAG,KAAK;AACpB,IAAA,UAAU,GAAG,MAAM,EAAC,UAAuB,EAAC;AAC5C,IAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC;IAC5B,aAAa,GAAyC,IAAI;AAElE,IAAA,WAAA,GAAA;QACE,eAAe,CAAC,MAAK;YACnB,IAAI,CAAC,mBAAmB,EAAE;AAC5B,QAAA,CAAC,CAAC;IACJ;IAEA,eAAe,GAAA;QACb,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW;IAChE;AAEA,IAAA,IAAI,iBAAiB,GAAA;AACnB,QAAA,OAAO,IAAI;IACb;IAEA,qBAAqB,GAAA;AACnB,QAAA,IAAI,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;YACrC;QACF;QAEA,IAAI,CAAC,mBAAmB,EAAE;IAC5B;IAEA,WAAW,GAAA;QACT,IAAI,CAAC,oBAAoB,EAAE;IAC7B;IAEQ,mBAAmB,G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
+ 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
+
5
+ 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(' ') ?? '';
10
+ };
11
+ class CreditCardNumberMaskDirective {
12
+ ngControl = inject(NgControl, { self: true, optional: true });
13
+ hostElement = inject(ElementRef);
14
+ placeholder = input('0000 0000 0000 0000', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
15
+ onInput(event) {
16
+ const input = event.target;
17
+ const selectionStart = input.selectionStart;
18
+ const previousValue = input.value;
19
+ const formattedValue = formatCreditCardNumber(input.value);
20
+ if (this.ngControl) {
21
+ this.ngControl.control?.setValue(formattedValue.replace(/\s/g, ''), { emitEvent: false });
22
+ this.ngControl.control?.updateValueAndValidity();
23
+ }
24
+ this.hostElement.nativeElement.value = formattedValue;
25
+ if (selectionStart !== null) {
26
+ const newCursorPosition = selectionStart + (formattedValue.length - previousValue.length);
27
+ input.setSelectionRange(newCursorPosition, newCursorPosition);
28
+ }
29
+ }
30
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CreditCardNumberMaskDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
31
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.4", 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 });
32
+ }
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CreditCardNumberMaskDirective, decorators: [{
34
+ type: Directive,
35
+ args: [{
36
+ selector: '[ngsCreditCardNumberMask]',
37
+ exportAs: 'ngsCreditCardNumberMask',
38
+ host: {
39
+ '(input)': 'onInput($event)',
40
+ '[attr.type]': '"tel"', // Use ‘tel’ to call up the numeric keypad
41
+ '[attr.autocomplete]': '"cc-number"',
42
+ '[attr.inputmode]': '"numeric"',
43
+ '[attr.placeholder]': 'placeholder()',
44
+ },
45
+ }]
46
+ }], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
47
+
48
+ const formatOnInput = (value) => {
49
+ const cleaned = value.replace(/\D/g, '').substring(0, 4);
50
+ let month = cleaned.substring(0, 2);
51
+ const year = cleaned.substring(2, 4);
52
+ if (month.length === 2) {
53
+ const monthInt = parseInt(month, 10);
54
+ if (monthInt > 12)
55
+ month = '12';
56
+ if (monthInt === 0)
57
+ month = '01';
58
+ }
59
+ return cleaned.length > 2 ? `${month}/${year}` : month;
60
+ };
61
+ const formatOnBlur = (value) => {
62
+ if (!value)
63
+ return '';
64
+ const parts = value.split('/');
65
+ const month = parts[0] || '';
66
+ let year = parts[1] || '';
67
+ if (year && year.length === 1) {
68
+ year = `0${year}`;
69
+ }
70
+ return year ? `${month}/${year}` : month;
71
+ };
72
+ class CreditCardExpiryDateMaskDirective {
73
+ elementRef = inject(ElementRef);
74
+ placeholder = input('MM/YY', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
75
+ onChange = (_) => { };
76
+ onTouched = () => { };
77
+ writeValue(value) {
78
+ const formattedValue = formatOnInput(value || '');
79
+ this.elementRef.nativeElement.value = formattedValue;
80
+ }
81
+ registerOnChange(fn) {
82
+ this.onChange = fn;
83
+ }
84
+ registerOnTouched(fn) {
85
+ this.onTouched = fn;
86
+ }
87
+ onInput(event) {
88
+ const target = event.target;
89
+ if (!target)
90
+ return;
91
+ const selectionStart = target.selectionStart;
92
+ const previousValue = target.value;
93
+ const formattedValue = formatOnInput(target.value);
94
+ this.onChange(formattedValue.replace(/\//g, ''));
95
+ target.value = formattedValue;
96
+ if (selectionStart !== null) {
97
+ const newCursorPosition = selectionStart + (formattedValue.length - previousValue.length);
98
+ target.setSelectionRange(newCursorPosition, newCursorPosition);
99
+ }
100
+ }
101
+ onBlur(event) {
102
+ this.onTouched();
103
+ const target = event.target;
104
+ if (!target)
105
+ return;
106
+ const formattedValue = formatOnBlur(target.value);
107
+ const modelValue = formattedValue.replace(/\//g, '');
108
+ this.onChange(modelValue);
109
+ target.value = formattedValue;
110
+ }
111
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CreditCardExpiryDateMaskDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
112
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.4", 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: [
113
+ {
114
+ provide: NG_VALUE_ACCESSOR,
115
+ useExisting: forwardRef(() => CreditCardExpiryDateMaskDirective),
116
+ multi: true,
117
+ },
118
+ ], exportAs: ["ngsCreditCardExpiryDateMask"], ngImport: i0 });
119
+ }
120
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CreditCardExpiryDateMaskDirective, decorators: [{
121
+ type: Directive,
122
+ args: [{
123
+ selector: '[ngsCreditCardExpiryDateMask]',
124
+ exportAs: 'ngsCreditCardExpiryDateMask',
125
+ providers: [
126
+ {
127
+ provide: NG_VALUE_ACCESSOR,
128
+ useExisting: forwardRef(() => CreditCardExpiryDateMaskDirective),
129
+ multi: true,
130
+ },
131
+ ],
132
+ host: {
133
+ '(input)': 'onInput($event)',
134
+ '(blur)': 'onBlur($event)',
135
+ '[attr.placeholder]': 'placeholder()',
136
+ }
137
+ }]
138
+ }], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
139
+
140
+ const formatCvv = (value) => {
141
+ const cleaned = value.replace(/\D/g, '');
142
+ return cleaned.substring(0, 4);
143
+ };
144
+ class CreditCardCvvMaskDirective {
145
+ ngControl = inject(NgControl, { self: true, optional: true });
146
+ hostElement = inject(ElementRef);
147
+ placeholder = input('•••', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
148
+ onInput(event) {
149
+ const input = event.target;
150
+ const formattedValue = formatCvv(input.value);
151
+ if (this.ngControl) {
152
+ this.ngControl.control?.setValue(formattedValue, { emitEvent: false });
153
+ this.ngControl.control?.updateValueAndValidity();
154
+ }
155
+ this.hostElement.nativeElement.value = formattedValue;
156
+ }
157
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CreditCardCvvMaskDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
158
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.4", 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 });
159
+ }
160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CreditCardCvvMaskDirective, decorators: [{
161
+ type: Directive,
162
+ args: [{
163
+ selector: '[ngsCreditCardCvvMask]',
164
+ exportAs: 'ngsCreditCardCvvMask',
165
+ host: {
166
+ '(input)': 'onInput($event)',
167
+ '[attr.type]': '"tel"', // Use ‘tel’ to call up the numeric keypad
168
+ '[attr.inputmode]': '"numeric"',
169
+ '[attr.autocomplete]': '"cc-csc"',
170
+ '[attr.placeholder]': 'placeholder()',
171
+ },
172
+ }]
173
+ }], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
174
+
175
+ /**
176
+ * Generated bundle index. Do not edit.
177
+ */
178
+
179
+ export { CreditCardCvvMaskDirective, CreditCardExpiryDateMaskDirective, CreditCardNumberMaskDirective };
180
+ //# sourceMappingURL=ngstarter-ui-components-input-mask.mjs.map
@@ -0,0 +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.h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AA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,MAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,iBAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,aAAA,EAAA,mBAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,eAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,sBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAXtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,iBAAiB;wBAC5B,aAAa,EAAE,OAAO;AACtB,wBAAA,kBAAkB,EAAE,WAAW;AAC/B,wBAAA,qBAAqB,EAAE,UAAU;AACjC,wBAAA,oBAAoB,EAAE,eAAe;AACtC,qBAAA;AACF,iBAAA;;;AClBD;;AAEG;;;;"}
@@ -0,0 +1,24 @@
1
+ function expiryDateValidator() {
2
+ return (control) => {
3
+ const value = control.value;
4
+ if (!value || value.length !== 4) {
5
+ return null;
6
+ }
7
+ const month = parseInt(value.substring(0, 2), 10);
8
+ const year = parseInt(value.substring(2, 4), 10);
9
+ const currentDate = new Date();
10
+ const currentMonth = currentDate.getMonth() + 1;
11
+ const currentYear = parseInt(currentDate.getFullYear().toString().substring(2, 4));
12
+ if (year < currentYear || (year === currentYear && month < currentMonth)) {
13
+ return { expiryDateInPast: true };
14
+ }
15
+ return null;
16
+ };
17
+ }
18
+
19
+ /**
20
+ * Generated bundle index. Do not edit.
21
+ */
22
+
23
+ export { expiryDateValidator };
24
+ //# sourceMappingURL=ngstarter-ui-components-input-validator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngstarter-ui-components-input-validator.mjs","sources":["../../../projects/components/input-validator/src/expiry-date-validator.ts","../../../projects/components/input-validator/ngstarter-ui-components-input-validator.ts"],"sourcesContent":["import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';\n\nexport function expiryDateValidator(): ValidatorFn {\n return (control: AbstractControl): ValidationErrors | null => {\n const value = control.value as string;\n\n if (!value || value.length !== 4) {\n return null;\n }\n\n const month = parseInt(value.substring(0, 2), 10);\n const year = parseInt(value.substring(2, 4), 10);\n const currentDate = new Date();\n const currentMonth = currentDate.getMonth() + 1;\n const currentYear = parseInt(currentDate.getFullYear().toString().substring(2, 4));\n\n if (year < currentYear || (year === currentYear && month < currentMonth)) {\n return { expiryDateInPast: true };\n }\n\n return null;\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"SAEgB,mBAAmB,GAAA;IACjC,OAAO,CAAC,OAAwB,KAA6B;AAC3D,QAAA,MAAM,KAAK,GAAG,OAAO,CAAC,KAAe;QAErC,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AAChC,YAAA,OAAO,IAAI;QACb;AAEA,QAAA,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;AACjD,QAAA,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;AAChD,QAAA,MAAM,WAAW,GAAG,IAAI,IAAI,EAAE;QAC9B,MAAM,YAAY,GAAG,WAAW,CAAC,QAAQ,EAAE,GAAG,CAAC;AAC/C,QAAA,MAAM,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAElF,QAAA,IAAI,IAAI,GAAG,WAAW,KAAK,IAAI,KAAK,WAAW,IAAI,KAAK,GAAG,YAAY,CAAC,EAAE;AACxE,YAAA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE;QACnC;AAEA,QAAA,OAAO,IAAI;AACb,IAAA,CAAC;AACH;;ACtBA;;AAEG;;;;"}