@ngstarter-ui/components 22.3.5 → 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-8OmuepvH.mjs +0 -35
  438. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-8OmuepvH.mjs.map +0 -1
  439. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Dp5tISk3.mjs +0 -26
  440. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Dp5tISk3.mjs.map +0 -1
  441. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbBs-R_y.mjs +0 -220
  442. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbBs-R_y.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-DGCCeU-Y.mjs +0 -375
  448. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DGCCeU-Y.mjs.map +0 -1
  449. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-BJfRgtaA.mjs +0 -80
  450. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-BJfRgtaA.mjs.map +0 -1
  451. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-C_L7hF2G.mjs +0 -65
  452. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-C_L7hF2G.mjs.map +0 -1
  453. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-durrPUhm.mjs +0 -137
  454. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-durrPUhm.mjs.map +0 -1
  455. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-BoL1jZpT.mjs +0 -113
  456. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-BoL1jZpT.mjs.map +0 -1
  457. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-ChZpgXO5.mjs +0 -235
  458. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-ChZpgXO5.mjs.map +0 -1
  459. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DwyNFnII.mjs +0 -117
  460. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DwyNFnII.mjs.map +0 -1
  461. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-BWpJv6CO.mjs +0 -4464
  462. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-BWpJv6CO.mjs.map +0 -1
  463. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-BvNvkqTO.mjs +0 -132
  464. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-BvNvkqTO.mjs.map +0 -1
  465. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-tgNKltfK.mjs +0 -171
  466. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-tgNKltfK.mjs.map +0 -1
  467. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-BcAlqmh8.mjs +0 -1653
  468. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-BcAlqmh8.mjs.map +0 -1
  469. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-S474I51r.mjs +0 -20
  470. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-S474I51r.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-Dj82fxTI.mjs +0 -134
  474. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-Dj82fxTI.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,311 +1,718 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, NgZone, input, booleanAttribute, numberAttribute, model, linkedSignal, output, viewChild, effect, untracked, forwardRef, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
3
- import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
4
- import { _IdGenerator } from '@angular/cdk/a11y';
5
- import { Ripple } from '@ngstarter-ui/components/core';
6
-
7
- /**
8
- * Represents the different states that require custom transitions between them.
9
- * @docs-private
10
- */
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Directive, NgZone, booleanAttribute, computed, effect, inject, input, linkedSignal, model, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
3
+ import { Ripple } from "@ngstarter-ui/components/core";
4
+ import { NG_VALIDATORS } from "@angular/forms";
5
+ import { _IdGenerator } from "@angular/cdk/a11y";
11
6
  var TransitionCheckState;
12
- (function (TransitionCheckState) {
13
- /** The initial state of the component before any user interaction. */
14
- TransitionCheckState[TransitionCheckState["Init"] = 0] = "Init";
15
- /** The state representing the component when it's becoming checked. */
16
- TransitionCheckState[TransitionCheckState["Checked"] = 1] = "Checked";
17
- /** The state representing the component when it's becoming unchecked. */
18
- TransitionCheckState[TransitionCheckState["Unchecked"] = 2] = "Unchecked";
19
- /** The state representing the component when it's becoming indeterminate. */
20
- TransitionCheckState[TransitionCheckState["Indeterminate"] = 3] = "Indeterminate";
7
+ (function(TransitionCheckState) {
8
+ TransitionCheckState[TransitionCheckState["Init"] = 0] = "Init";
9
+ TransitionCheckState[TransitionCheckState["Checked"] = 1] = "Checked";
10
+ TransitionCheckState[TransitionCheckState["Unchecked"] = 2] = "Unchecked";
11
+ TransitionCheckState[TransitionCheckState["Indeterminate"] = 3] = "Indeterminate";
21
12
  })(TransitionCheckState || (TransitionCheckState = {}));
22
- /** Change event object emitted by checkbox. */
23
- class CheckboxChange {
24
- /** The source checkbox of the event. */
25
- source;
26
- /** The new `checked` value of the checkbox. */
27
- checked;
28
- }
29
- class Checkbox {
30
- _ngZone = inject(NgZone);
31
- _idGenerator = inject(_IdGenerator);
32
- ariaLabel = input('', { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
33
- ariaLabelledby = input(null, { ...(ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
34
- ariaDescribedby = input('', { ...(ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {}), alias: 'aria-describedby' });
35
- ariaExpanded = input(undefined, { ...(ngDevMode ? { debugName: "ariaExpanded" } : /* istanbul ignore next */ {}), alias: 'aria-expanded', transform: booleanAttribute });
36
- ariaControls = input('', { ...(ngDevMode ? { debugName: "ariaControls" } : /* istanbul ignore next */ {}), alias: 'aria-controls' });
37
- ariaOwns = input('', { ...(ngDevMode ? { debugName: "ariaOwns" } : /* istanbul ignore next */ {}), alias: 'aria-owns' });
38
- id = input(this._idGenerator.getId('ngs-checkbox-'), /* @ts-ignore */
39
- ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
40
- required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
41
- labelPosition = input('after', /* @ts-ignore */
42
- ...(ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []));
43
- name = input(null, /* @ts-ignore */
44
- ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
45
- value = input('', /* @ts-ignore */
46
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
47
- disableRipple = input(false, { ...(ngDevMode ? { debugName: "disableRipple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
48
- tabIndex = input(0, { ...(ngDevMode ? { debugName: "tabIndex" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? 0 : numberAttribute(value)) });
49
- color = input(undefined, /* @ts-ignore */
50
- ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
51
- disabledInteractive = input(false, { ...(ngDevMode ? { debugName: "disabledInteractive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
52
- checked = model(false, /* @ts-ignore */
53
- ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
54
- disabled = model(false, /* @ts-ignore */
55
- ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
56
- indeterminateInput = input(false, { ...(ngDevMode ? { debugName: "indeterminateInput" } : /* istanbul ignore next */ {}), alias: 'indeterminate' });
57
- indeterminate = linkedSignal(this.indeterminateInput, /* @ts-ignore */
58
- ...(ngDevMode ? [{ debugName: "indeterminate" }] : /* istanbul ignore next */ []));
59
- change = output();
60
- indeterminateChange = output();
61
- _inputElement = viewChild('input', /* @ts-ignore */
62
- ...(ngDevMode ? [{ debugName: "_inputElement" }] : /* istanbul ignore next */ []));
63
- _labelElement = viewChild('label', /* @ts-ignore */
64
- ...(ngDevMode ? [{ debugName: "_labelElement" }] : /* istanbul ignore next */ []));
65
- _currentAnimationClass = '';
66
- _currentCheckState = TransitionCheckState.Init;
67
- _controlValueAccessorChangeFn = (value) => { };
68
- _validatorChangeFn = () => { };
69
- _onTouched = () => { };
70
- _animationClasses = {
71
- uncheckedToChecked: 'ngs-checkbox--anim-unchecked-checked',
72
- uncheckedToIndeterminate: 'ngs-checkbox--anim-unchecked-indeterminate',
73
- checkedToUnchecked: 'ngs-checkbox--anim-checked-unchecked',
74
- checkedToIndeterminate: 'ngs-checkbox--anim-checked-indeterminate',
75
- indeterminateToChecked: 'ngs-checkbox--anim-indeterminate-checked',
76
- indeterminateToUnchecked: 'ngs-checkbox--anim-indeterminate-unchecked',
77
- };
78
- constructor() {
79
- effect(() => {
80
- this.required();
81
- untracked(() => this._validatorChangeFn());
82
- });
83
- effect(() => {
84
- const indeterminate = this.indeterminate();
85
- untracked(() => {
86
- if (this._currentCheckState === TransitionCheckState.Init) {
87
- return;
88
- }
89
- if (indeterminate) {
90
- this._transitionCheckState(TransitionCheckState.Indeterminate);
91
- }
92
- else {
93
- this._transitionCheckState(this.checked() ? TransitionCheckState.Checked : TransitionCheckState.Unchecked);
94
- }
95
- this._syncIndeterminate(indeterminate);
96
- });
97
- });
98
- effect(() => {
99
- const checked = this.checked();
100
- untracked(() => {
101
- if (this._currentCheckState === TransitionCheckState.Init) {
102
- return;
103
- }
104
- if (!this.indeterminate()) {
105
- this._transitionCheckState(checked ? TransitionCheckState.Checked : TransitionCheckState.Unchecked);
106
- }
107
- });
108
- });
109
- }
110
- get inputId() {
111
- return `${this.id()}-input`;
112
- }
113
- ngAfterViewInit() {
114
- this._syncIndeterminate(this.indeterminate());
115
- }
116
- focus() {
117
- this._inputElement()?.nativeElement.focus();
118
- }
119
- writeValue(value) {
120
- this.checked.set(!!value);
121
- }
122
- registerOnChange(fn) {
123
- this._controlValueAccessorChangeFn = fn;
124
- }
125
- registerOnTouched(fn) {
126
- this._onTouched = fn;
127
- }
128
- setDisabledState(isDisabled) {
129
- this.disabled.set(isDisabled);
130
- }
131
- validate(control) {
132
- return this.required() && control.value !== true ? { 'required': true } : null;
133
- }
134
- registerOnValidatorChange(fn) {
135
- this._validatorChangeFn = fn;
136
- }
137
- toggle() {
138
- this.checked.set(!this.checked());
139
- this._controlValueAccessorChangeFn(this.checked());
140
- }
141
- _handleInputClick() {
142
- if (!this.disabled()) {
143
- if (this.indeterminate()) {
144
- this.indeterminate.set(false);
145
- }
146
- this.checked.set(!this.checked());
147
- this._emitChangeEvent();
148
- }
149
- }
150
- _emitChangeEvent() {
151
- this._controlValueAccessorChangeFn(this.checked());
152
- this.change.emit(this._createChangeEvent(this.checked()));
153
- const inputElement = this._inputElement();
154
- if (inputElement) {
155
- inputElement.nativeElement.checked = this.checked();
156
- }
157
- }
158
- _createChangeEvent(isChecked) {
159
- const event = new CheckboxChange();
160
- event.source = this;
161
- event.checked = isChecked;
162
- return event;
163
- }
164
- _onInteractionEvent(event) {
165
- event.stopPropagation();
166
- }
167
- _onBlur() {
168
- this._onTouched();
169
- }
170
- _transitionCheckState(newState) {
171
- let oldState = this._currentCheckState;
172
- let element = this._inputElement()?.nativeElement;
173
- if (oldState === newState || !element) {
174
- return;
175
- }
176
- if (this._currentAnimationClass) {
177
- element.classList.remove(this._currentAnimationClass);
178
- }
179
- this._currentAnimationClass = this._getAnimationClassForCheckStateTransition(oldState, newState);
180
- this._currentCheckState = newState;
181
- if (this._currentAnimationClass.length > 0) {
182
- element.classList.add(this._currentAnimationClass);
183
- const animationClass = this._currentAnimationClass;
184
- this._ngZone.runOutsideAngular(() => {
185
- setTimeout(() => {
186
- element.classList.remove(animationClass);
187
- }, 1000);
188
- });
189
- }
190
- }
191
- _getAnimationClassForCheckStateTransition(oldState, newState) {
192
- switch (oldState) {
193
- case TransitionCheckState.Init:
194
- if (newState === TransitionCheckState.Checked) {
195
- return this._animationClasses.uncheckedToChecked;
196
- }
197
- else if (newState == TransitionCheckState.Indeterminate) {
198
- return this.checked()
199
- ? this._animationClasses.checkedToIndeterminate
200
- : this._animationClasses.uncheckedToIndeterminate;
201
- }
202
- break;
203
- case TransitionCheckState.Unchecked:
204
- return newState === TransitionCheckState.Checked
205
- ? this._animationClasses.uncheckedToChecked
206
- : this._animationClasses.uncheckedToIndeterminate;
207
- case TransitionCheckState.Checked:
208
- return newState === TransitionCheckState.Unchecked
209
- ? this._animationClasses.checkedToUnchecked
210
- : this._animationClasses.checkedToIndeterminate;
211
- case TransitionCheckState.Indeterminate:
212
- return newState === TransitionCheckState.Checked
213
- ? this._animationClasses.indeterminateToChecked
214
- : this._animationClasses.indeterminateToUnchecked;
215
- }
216
- return '';
217
- }
218
- _syncIndeterminate(value) {
219
- const inputElement = this._inputElement();
220
- if (inputElement) {
221
- inputElement.nativeElement.indeterminate = value;
222
- }
223
- }
224
- _onInputClick() {
225
- this._handleInputClick();
226
- }
227
- _onTouchTargetClick() {
228
- this._handleInputClick();
229
- const inputElement = this._inputElement();
230
- if (!this.disabled() && inputElement) {
231
- inputElement.nativeElement.focus();
232
- }
233
- }
234
- _preventBubblingFromLabel(event) {
235
- const labelElement = this._labelElement();
236
- if (!!event.target && labelElement && labelElement.nativeElement.contains(event.target)) {
237
- event.stopPropagation();
238
- }
239
- }
240
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Checkbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
241
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: Checkbox, isStandalone: true, selector: "ngs-checkbox", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, ariaExpanded: { classPropertyName: "ariaExpanded", publicName: "aria-expanded", isSignal: true, isRequired: false, transformFunction: null }, ariaControls: { classPropertyName: "ariaControls", publicName: "aria-controls", isSignal: true, isRequired: false, transformFunction: null }, ariaOwns: { classPropertyName: "ariaOwns", publicName: "aria-owns", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null }, tabIndex: { classPropertyName: "tabIndex", publicName: "tabIndex", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, disabledInteractive: { classPropertyName: "disabledInteractive", publicName: "disabledInteractive", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indeterminateInput: { classPropertyName: "indeterminateInput", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", disabled: "disabledChange", change: "change", indeterminateChange: "indeterminateChange" }, host: { properties: { "attr.tabindex": "null", "attr.aria-label": "null", "attr.aria-labelledby": "null", "class.ngs-checkbox-disabled": "disabled()", "class.ngs-checkbox-checked": "checked()", "class.ngs-checkbox-indeterminate": "indeterminate()", "class.ngs-checkbox-disabled-interactive": "disabledInteractive()", "class": "color() ? \"ngs-\" + color() : \"ngs-primary\"" }, classAttribute: "ngs-checkbox" }, providers: [
242
- {
243
- provide: NG_VALUE_ACCESSOR,
244
- useExisting: forwardRef(() => Checkbox),
245
- multi: true,
246
- },
247
- {
248
- provide: NG_VALIDATORS,
249
- useExisting: Checkbox,
250
- multi: true,
251
- },
252
- ], viewQueries: [{ propertyName: "_inputElement", first: true, predicate: ["input"], descendants: true, isSignal: true }, { propertyName: "_labelElement", first: true, predicate: ["label"], descendants: true, isSignal: true }], exportAs: ["ngsCheckbox"], ngImport: i0, template: "<div class=\"ngs-checkbox-layout\" [class.ngs-checkbox-label-before]=\"labelPosition() === 'before'\"\n (click)=\"_preventBubblingFromLabel($event)\">\n <div #checkbox class=\"ngs-checkbox-frame\">\n <div class=\"ngs-checkbox-touch-target\" (click)=\"_onTouchTargetClick()\"></div>\n <input #input\n type=\"checkbox\"\n class=\"ngs-checkbox-native-control\"\n [class.ngs-checkbox--selected]=\"checked()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-describedby]=\"ariaDescribedby()\"\n [attr.aria-checked]=\"indeterminate() ? 'mixed' : null\"\n [attr.aria-controls]=\"ariaControls()\"\n [attr.aria-disabled]=\"disabled() && disabledInteractive() ? true : null\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-owns]=\"ariaOwns()\"\n [attr.name]=\"name()\"\n [attr.value]=\"value()\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate()\"\n [disabled]=\"disabled() && !disabledInteractive()\"\n [id]=\"inputId\"\n [required]=\"required()\"\n [tabIndex]=\"disabled() && !disabledInteractive() ? -1 : tabIndex()\"\n (blur)=\"_onBlur()\"\n (click)=\"_onInputClick()\"\n (change)=\"_onInteractionEvent($event)\"/>\n <div class=\"ngs-checkbox-ripple-container\"></div>\n <div class=\"ngs-checkbox-background\">\n @if (indeterminate()) {\n <div class=\"ngs-checkbox-mixedmark\"></div>\n } @else if (checked()) {\n <svg class=\"ngs-checkbox-checkmark\"\n focusable=\"false\"\n viewBox=\"0 0 24 24\"\n aria-hidden=\"true\">\n <path class=\"ngs-checkbox-checkmark-path\"\n fill=\"none\"\n d=\"M1.73,12.91 8.1,19.28 22.79,4.59\"/>\n </svg>\n }\n </div>\n <div class=\"ngs-checkbox-ripple\" ngsRipple\n [ngsRippleTrigger]=\"checkbox\"\n [ngsRippleDisabled]=\"disableRipple() || disabled()\"\n [ngsRippleCentered]=\"true\"></div>\n </div>\n <label class=\"ngs-checkbox-label\" #label [for]=\"inputId\">\n <span class=\"content\"><ng-content /></span>\n <span class=\"description\">\n <ng-content select=\"[ngsCheckboxDecription]\" />\n </span>\n </label>\n</div>\n", styles: [":host{--ngs-checkbox-size: 19px;--ngs-checkbox-checked-color: var(--ngs-color-primary);--ngs-checkbox-unchecked-color: var(--ngs-field-border-color);--ngs-checkbox-disabled-color: var(--ngs-color-on-surface-variant);--ngs-checkbox-checkmark-color: var(--ngs-color-on-primary);--ngs-checkbox-description-font-size: var(--ngs-font-size-sm);--ngs-checkbox-description-color: var(--ngs-color-neutral-500);--ngs-checkbox-gap: calc(var(--spacing, .25rem) * 2.5);--ngs-checkbox-label-font-size: var(--ngs-font-size-md);display:inline-block;position:relative}:host .description{font-size:var(--ngs-checkbox-description-font-size);color:var(--ngs-checkbox-description-color)}:host .description:empty{display:none}:host .content{font-size:var(--ngs-checkbox-label-font-size)}:host .ngs-checkbox-layout{display:flex;align-items:center;gap:var(--ngs-checkbox-gap);cursor:pointer}:host .ngs-checkbox-layout.ngs-checkbox-label-before{flex-direction:row-reverse}:host:has(.description:not(:empty)) .ngs-checkbox-layout{align-items:start}:host:has(.description:not(:empty)) .ngs-checkbox-frame{position:relative;top:calc(var(--spacing, .25rem) * 1.1)}:host .ngs-checkbox-frame{width:var(--ngs-checkbox-size);height:var(--ngs-checkbox-size);position:relative;display:flex;align-items:center;justify-content:center;flex:none}:host .ngs-checkbox-native-control{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}:host .ngs-checkbox-background{width:100%;height:100%;border:1px solid var(--ngs-checkbox-unchecked-color);border-radius:3px;background:transparent;transition:background-color 90ms cubic-bezier(0,0,.2,1),border-color 90ms cubic-bezier(0,0,.2,1);box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:2px}:host .ngs-checkbox-checkmark{width:100%;height:100%}:host .ngs-checkbox-checkmark-path{stroke:var(--ngs-checkbox-checkmark-color);stroke-width:3.12px;stroke-dasharray:29.7833385;stroke-dashoffset:0}:host .ngs-checkbox-mixedmark{width:12px;height:2px;background:var(--ngs-checkbox-checkmark-color)}:host.ngs-checkbox-checked .ngs-checkbox-background,:host.ngs-checkbox-indeterminate .ngs-checkbox-background{background:var(--ngs-checkbox-checked-color);border-color:var(--ngs-checkbox-checked-color)}:host.ngs-checkbox-disabled{cursor:default;color:var(--ngs-color-on-surface)}@supports (color: color-mix(in lab,red,red)){:host.ngs-checkbox-disabled{color:color-mix(in srgb,var(--ngs-color-on-surface),transparent 62%)}}:host.ngs-checkbox-disabled .ngs-checkbox-layout{cursor:default}:host.ngs-checkbox-disabled .ngs-checkbox-background{border-color:var(--ngs-color-on-surface);background:transparent}@supports (color: color-mix(in lab,red,red)){:host.ngs-checkbox-disabled .ngs-checkbox-background{border-color:color-mix(in srgb,var(--ngs-color-on-surface),transparent 62%)}}:host.ngs-checkbox-disabled.ngs-checkbox-checked .ngs-checkbox-background,:host.ngs-checkbox-disabled.ngs-checkbox-indeterminate .ngs-checkbox-background{background:var(--ngs-color-on-surface);border-color:transparent}@supports (color: color-mix(in lab,red,red)){:host.ngs-checkbox-disabled.ngs-checkbox-checked .ngs-checkbox-background,:host.ngs-checkbox-disabled.ngs-checkbox-indeterminate .ngs-checkbox-background{background:color-mix(in srgb,var(--ngs-color-on-surface),transparent 62%)}}:host .ngs-checkbox-ripple{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:40px;height:40px;border-radius:50%;pointer-events:none;overflow:hidden}:host .ngs-checkbox-label{cursor:inherit}:host .ngs-checkbox-label:has(.description:empty):has(.content:empty){display:none}:host.ngs-accent{--ngs-checkbox-checked-color: var(--ngs-color-secondary);--ngs-checkbox-checkmark-color: var(--ngs-color-on-secondary)}:host.ngs-warn{--ngs-checkbox-checked-color: var(--ngs-color-danger);--ngs-checkbox-checkmark-color: var(--ngs-color-on-danger)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: Ripple, selector: "[ngsRipple]", inputs: ["ngsRippleColor", "ngsRippleUnbounded", "ngsRippleCentered", "ngsRippleRadius", "ngsRippleAnimation", "ngsRippleDisabled", "ngsRippleTrigger"], outputs: ["ngsRippleCenteredChange", "ngsRippleDisabledChange", "ngsRippleTriggerChange"], exportAs: ["ngsRipple"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
253
- }
254
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Checkbox, decorators: [{
255
- type: Component,
256
- args: [{ selector: 'ngs-checkbox', imports: [
257
- Ripple
258
- ], host: {
259
- 'class': 'ngs-checkbox',
260
- '[attr.tabindex]': 'null',
261
- '[attr.aria-label]': 'null',
262
- '[attr.aria-labelledby]': 'null',
263
- '[class.ngs-checkbox-disabled]': 'disabled()',
264
- '[class.ngs-checkbox-checked]': 'checked()',
265
- '[class.ngs-checkbox-indeterminate]': 'indeterminate()',
266
- '[class.ngs-checkbox-disabled-interactive]': 'disabledInteractive()',
267
- '[class]': 'color() ? "ngs-" + color() : "ngs-primary"',
268
- }, providers: [
269
- {
270
- provide: NG_VALUE_ACCESSOR,
271
- useExisting: forwardRef(() => Checkbox),
272
- multi: true,
273
- },
274
- {
275
- provide: NG_VALIDATORS,
276
- useExisting: Checkbox,
277
- multi: true,
278
- },
279
- ], exportAs: 'ngsCheckbox', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ngs-checkbox-layout\" [class.ngs-checkbox-label-before]=\"labelPosition() === 'before'\"\n (click)=\"_preventBubblingFromLabel($event)\">\n <div #checkbox class=\"ngs-checkbox-frame\">\n <div class=\"ngs-checkbox-touch-target\" (click)=\"_onTouchTargetClick()\"></div>\n <input #input\n type=\"checkbox\"\n class=\"ngs-checkbox-native-control\"\n [class.ngs-checkbox--selected]=\"checked()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-describedby]=\"ariaDescribedby()\"\n [attr.aria-checked]=\"indeterminate() ? 'mixed' : null\"\n [attr.aria-controls]=\"ariaControls()\"\n [attr.aria-disabled]=\"disabled() && disabledInteractive() ? true : null\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-owns]=\"ariaOwns()\"\n [attr.name]=\"name()\"\n [attr.value]=\"value()\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate()\"\n [disabled]=\"disabled() && !disabledInteractive()\"\n [id]=\"inputId\"\n [required]=\"required()\"\n [tabIndex]=\"disabled() && !disabledInteractive() ? -1 : tabIndex()\"\n (blur)=\"_onBlur()\"\n (click)=\"_onInputClick()\"\n (change)=\"_onInteractionEvent($event)\"/>\n <div class=\"ngs-checkbox-ripple-container\"></div>\n <div class=\"ngs-checkbox-background\">\n @if (indeterminate()) {\n <div class=\"ngs-checkbox-mixedmark\"></div>\n } @else if (checked()) {\n <svg class=\"ngs-checkbox-checkmark\"\n focusable=\"false\"\n viewBox=\"0 0 24 24\"\n aria-hidden=\"true\">\n <path class=\"ngs-checkbox-checkmark-path\"\n fill=\"none\"\n d=\"M1.73,12.91 8.1,19.28 22.79,4.59\"/>\n </svg>\n }\n </div>\n <div class=\"ngs-checkbox-ripple\" ngsRipple\n [ngsRippleTrigger]=\"checkbox\"\n [ngsRippleDisabled]=\"disableRipple() || disabled()\"\n [ngsRippleCentered]=\"true\"></div>\n </div>\n <label class=\"ngs-checkbox-label\" #label [for]=\"inputId\">\n <span class=\"content\"><ng-content /></span>\n <span class=\"description\">\n <ng-content select=\"[ngsCheckboxDecription]\" />\n </span>\n </label>\n</div>\n", styles: [":host{--ngs-checkbox-size: 19px;--ngs-checkbox-checked-color: var(--ngs-color-primary);--ngs-checkbox-unchecked-color: var(--ngs-field-border-color);--ngs-checkbox-disabled-color: var(--ngs-color-on-surface-variant);--ngs-checkbox-checkmark-color: var(--ngs-color-on-primary);--ngs-checkbox-description-font-size: var(--ngs-font-size-sm);--ngs-checkbox-description-color: var(--ngs-color-neutral-500);--ngs-checkbox-gap: calc(var(--spacing, .25rem) * 2.5);--ngs-checkbox-label-font-size: var(--ngs-font-size-md);display:inline-block;position:relative}:host .description{font-size:var(--ngs-checkbox-description-font-size);color:var(--ngs-checkbox-description-color)}:host .description:empty{display:none}:host .content{font-size:var(--ngs-checkbox-label-font-size)}:host .ngs-checkbox-layout{display:flex;align-items:center;gap:var(--ngs-checkbox-gap);cursor:pointer}:host .ngs-checkbox-layout.ngs-checkbox-label-before{flex-direction:row-reverse}:host:has(.description:not(:empty)) .ngs-checkbox-layout{align-items:start}:host:has(.description:not(:empty)) .ngs-checkbox-frame{position:relative;top:calc(var(--spacing, .25rem) * 1.1)}:host .ngs-checkbox-frame{width:var(--ngs-checkbox-size);height:var(--ngs-checkbox-size);position:relative;display:flex;align-items:center;justify-content:center;flex:none}:host .ngs-checkbox-native-control{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}:host .ngs-checkbox-background{width:100%;height:100%;border:1px solid var(--ngs-checkbox-unchecked-color);border-radius:3px;background:transparent;transition:background-color 90ms cubic-bezier(0,0,.2,1),border-color 90ms cubic-bezier(0,0,.2,1);box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:2px}:host .ngs-checkbox-checkmark{width:100%;height:100%}:host .ngs-checkbox-checkmark-path{stroke:var(--ngs-checkbox-checkmark-color);stroke-width:3.12px;stroke-dasharray:29.7833385;stroke-dashoffset:0}:host .ngs-checkbox-mixedmark{width:12px;height:2px;background:var(--ngs-checkbox-checkmark-color)}:host.ngs-checkbox-checked .ngs-checkbox-background,:host.ngs-checkbox-indeterminate .ngs-checkbox-background{background:var(--ngs-checkbox-checked-color);border-color:var(--ngs-checkbox-checked-color)}:host.ngs-checkbox-disabled{cursor:default;color:var(--ngs-color-on-surface)}@supports (color: color-mix(in lab,red,red)){:host.ngs-checkbox-disabled{color:color-mix(in srgb,var(--ngs-color-on-surface),transparent 62%)}}:host.ngs-checkbox-disabled .ngs-checkbox-layout{cursor:default}:host.ngs-checkbox-disabled .ngs-checkbox-background{border-color:var(--ngs-color-on-surface);background:transparent}@supports (color: color-mix(in lab,red,red)){:host.ngs-checkbox-disabled .ngs-checkbox-background{border-color:color-mix(in srgb,var(--ngs-color-on-surface),transparent 62%)}}:host.ngs-checkbox-disabled.ngs-checkbox-checked .ngs-checkbox-background,:host.ngs-checkbox-disabled.ngs-checkbox-indeterminate .ngs-checkbox-background{background:var(--ngs-color-on-surface);border-color:transparent}@supports (color: color-mix(in lab,red,red)){:host.ngs-checkbox-disabled.ngs-checkbox-checked .ngs-checkbox-background,:host.ngs-checkbox-disabled.ngs-checkbox-indeterminate .ngs-checkbox-background{background:color-mix(in srgb,var(--ngs-color-on-surface),transparent 62%)}}:host .ngs-checkbox-ripple{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:40px;height:40px;border-radius:50%;pointer-events:none;overflow:hidden}:host .ngs-checkbox-label{cursor:inherit}:host .ngs-checkbox-label:has(.description:empty):has(.content:empty){display:none}:host.ngs-accent{--ngs-checkbox-checked-color: var(--ngs-color-secondary);--ngs-checkbox-checkmark-color: var(--ngs-color-on-secondary)}:host.ngs-warn{--ngs-checkbox-checked-color: var(--ngs-color-danger);--ngs-checkbox-checkmark-color: var(--ngs-color-on-danger)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
280
- }], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-describedby", required: false }] }], ariaExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-expanded", required: false }] }], ariaControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-controls", required: false }] }], ariaOwns: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-owns", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], disableRipple: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableRipple", required: false }] }], tabIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabIndex", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], disabledInteractive: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledInteractive", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], indeterminateInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], change: [{ type: i0.Output, args: ["change"] }], indeterminateChange: [{ type: i0.Output, args: ["indeterminateChange"] }], _inputElement: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }], _labelElement: [{ type: i0.ViewChild, args: ['label', { isSignal: true }] }] } });
281
-
282
- class CheckboxDescription {
283
- constructor() { }
284
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: CheckboxDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
285
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: CheckboxDescription, isStandalone: true, selector: "[ngsCheckboxDescription]", ngImport: i0 });
286
- }
287
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: CheckboxDescription, decorators: [{
288
- type: Directive,
289
- args: [{
290
- selector: '[ngsCheckboxDescription]',
291
- }]
292
- }], ctorParameters: () => [] });
293
-
294
- class CheckboxGroup {
295
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: CheckboxGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
296
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: CheckboxGroup, isStandalone: true, selector: "ngs-checkbox-group", host: { attributes: { "role": "group" }, classAttribute: "ngs-checkbox-group" }, ngImport: i0, template: "<ng-content />\n", styles: [":host{--ngs-checkbox-group-gap: calc(var(--spacing, .25rem) * 4);display:flex;flex-direction:column;gap:var(--ngs-checkbox-group-gap)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
297
- }
298
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: CheckboxGroup, decorators: [{
299
- type: Component,
300
- args: [{ selector: 'ngs-checkbox-group', imports: [], host: {
301
- 'class': 'ngs-checkbox-group',
302
- 'role': 'group',
303
- }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content />\n", styles: [":host{--ngs-checkbox-group-gap: calc(var(--spacing, .25rem) * 4);display:flex;flex-direction:column;gap:var(--ngs-checkbox-group-gap)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
304
- }] });
305
-
306
- /**
307
- * Generated bundle index. Do not edit.
308
- */
309
-
13
+ var CheckboxChange = class {
14
+ source;
15
+ checked;
16
+ };
17
+ var Checkbox = class Checkbox {
18
+ _ngZone = inject(NgZone);
19
+ _idGenerator = inject(_IdGenerator);
20
+ ariaLabel = input("", {
21
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
22
+ alias: "aria-label"
23
+ });
24
+ ariaLabelledby = input(null, {
25
+ ...ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {},
26
+ alias: "aria-labelledby"
27
+ });
28
+ ariaDescribedby = input("", {
29
+ ...ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {},
30
+ alias: "aria-describedby"
31
+ });
32
+ ariaExpanded = input(void 0, {
33
+ ...ngDevMode ? { debugName: "ariaExpanded" } : /* istanbul ignore next */ {},
34
+ alias: "aria-expanded",
35
+ transform: booleanAttribute
36
+ });
37
+ ariaControls = input("", {
38
+ ...ngDevMode ? { debugName: "ariaControls" } : /* istanbul ignore next */ {},
39
+ alias: "aria-controls"
40
+ });
41
+ ariaOwns = input("", {
42
+ ...ngDevMode ? { debugName: "ariaOwns" } : /* istanbul ignore next */ {},
43
+ alias: "aria-owns"
44
+ });
45
+ id = input(this._idGenerator.getId("ngs-checkbox-"), ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
46
+ required = input(false, {
47
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
48
+ transform: booleanAttribute
49
+ });
50
+ labelPosition = input("after", ...ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []);
51
+ name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
52
+ submittedValue = input("", {
53
+ ...ngDevMode ? { debugName: "submittedValue" } : /* istanbul ignore next */ {},
54
+ alias: "value"
55
+ });
56
+ disableRipple = input(false, {
57
+ ...ngDevMode ? { debugName: "disableRipple" } : /* istanbul ignore next */ {},
58
+ transform: booleanAttribute
59
+ });
60
+ tabIndex = input(0, {
61
+ ...ngDevMode ? { debugName: "tabIndex" } : /* istanbul ignore next */ {},
62
+ transform: (value) => value == null ? 0 : numberAttribute(value)
63
+ });
64
+ color = input(void 0, ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
65
+ disabledInteractive = input(false, {
66
+ ...ngDevMode ? { debugName: "disabledInteractive" } : /* istanbul ignore next */ {},
67
+ transform: booleanAttribute
68
+ });
69
+ checked = model(false, ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
70
+ disabled = input(false, {
71
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
72
+ transform: booleanAttribute
73
+ });
74
+ interactiveDisabled = signal(false, ...ngDevMode ? [{ debugName: "interactiveDisabled" }] : /* istanbul ignore next */ []);
75
+ isDisabled = computed(() => this.disabled() || this.interactiveDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
76
+ setInteractiveDisabled(disabled) {
77
+ this.interactiveDisabled.set(disabled);
78
+ }
79
+ readonly = input(false, {
80
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
81
+ transform: booleanAttribute
82
+ });
83
+ touch = output();
84
+ indeterminateInput = input(false, {
85
+ ...ngDevMode ? { debugName: "indeterminateInput" } : /* istanbul ignore next */ {},
86
+ alias: "indeterminate"
87
+ });
88
+ indeterminate = linkedSignal(this.indeterminateInput, ...ngDevMode ? [{ debugName: "indeterminate" }] : /* istanbul ignore next */ []);
89
+ change = output();
90
+ indeterminateChange = output();
91
+ _inputElement = viewChild("input", ...ngDevMode ? [{ debugName: "_inputElement" }] : /* istanbul ignore next */ []);
92
+ _labelElement = viewChild("label", ...ngDevMode ? [{ debugName: "_labelElement" }] : /* istanbul ignore next */ []);
93
+ _currentAnimationClass = "";
94
+ _currentCheckState = TransitionCheckState.Init;
95
+ _validatorChangeFn = () => {};
96
+ _animationClasses = {
97
+ uncheckedToChecked: "ngs-checkbox--anim-unchecked-checked",
98
+ uncheckedToIndeterminate: "ngs-checkbox--anim-unchecked-indeterminate",
99
+ checkedToUnchecked: "ngs-checkbox--anim-checked-unchecked",
100
+ checkedToIndeterminate: "ngs-checkbox--anim-checked-indeterminate",
101
+ indeterminateToChecked: "ngs-checkbox--anim-indeterminate-checked",
102
+ indeterminateToUnchecked: "ngs-checkbox--anim-indeterminate-unchecked"
103
+ };
104
+ constructor() {
105
+ effect(() => {
106
+ this.required();
107
+ untracked(() => this._validatorChangeFn());
108
+ });
109
+ effect(() => {
110
+ const indeterminate = this.indeterminate();
111
+ untracked(() => {
112
+ if (this._currentCheckState === TransitionCheckState.Init) return;
113
+ if (indeterminate) this._transitionCheckState(TransitionCheckState.Indeterminate);
114
+ else this._transitionCheckState(this.checked() ? TransitionCheckState.Checked : TransitionCheckState.Unchecked);
115
+ this._syncIndeterminate(indeterminate);
116
+ });
117
+ });
118
+ effect(() => {
119
+ const checked = this.checked();
120
+ untracked(() => {
121
+ if (this._currentCheckState === TransitionCheckState.Init) return;
122
+ if (!this.indeterminate()) this._transitionCheckState(checked ? TransitionCheckState.Checked : TransitionCheckState.Unchecked);
123
+ });
124
+ });
125
+ }
126
+ get inputId() {
127
+ return `${this.id()}-input`;
128
+ }
129
+ ngAfterViewInit() {
130
+ this._syncIndeterminate(this.indeterminate());
131
+ }
132
+ focus(options) {
133
+ this._inputElement()?.nativeElement.focus(options);
134
+ }
135
+ validate(control) {
136
+ return this.required() && control.value !== true ? { "required": true } : null;
137
+ }
138
+ registerOnValidatorChange(fn) {
139
+ this._validatorChangeFn = fn;
140
+ }
141
+ toggle() {
142
+ if (!this.isDisabled() && !this.readonly()) this.checked.update((checked) => !checked);
143
+ }
144
+ _handleInputClick() {
145
+ if (!this.isDisabled() && !this.readonly()) {
146
+ if (this.indeterminate()) this.indeterminate.set(false);
147
+ this.checked.set(!this.checked());
148
+ this._emitChangeEvent();
149
+ }
150
+ }
151
+ _emitChangeEvent() {
152
+ this.change.emit(this._createChangeEvent(this.checked()));
153
+ const inputElement = this._inputElement();
154
+ if (inputElement) inputElement.nativeElement.checked = this.checked();
155
+ }
156
+ _createChangeEvent(isChecked) {
157
+ const event = new CheckboxChange();
158
+ event.source = this;
159
+ event.checked = isChecked;
160
+ return event;
161
+ }
162
+ _onInteractionEvent(event) {
163
+ event.stopPropagation();
164
+ }
165
+ _onBlur() {
166
+ this.touch.emit();
167
+ }
168
+ _transitionCheckState(newState) {
169
+ let oldState = this._currentCheckState;
170
+ let element = this._inputElement()?.nativeElement;
171
+ if (oldState === newState || !element) return;
172
+ if (this._currentAnimationClass) element.classList.remove(this._currentAnimationClass);
173
+ this._currentAnimationClass = this._getAnimationClassForCheckStateTransition(oldState, newState);
174
+ this._currentCheckState = newState;
175
+ if (this._currentAnimationClass.length > 0) {
176
+ element.classList.add(this._currentAnimationClass);
177
+ const animationClass = this._currentAnimationClass;
178
+ this._ngZone.runOutsideAngular(() => {
179
+ setTimeout(() => {
180
+ element.classList.remove(animationClass);
181
+ }, 1e3);
182
+ });
183
+ }
184
+ }
185
+ _getAnimationClassForCheckStateTransition(oldState, newState) {
186
+ switch (oldState) {
187
+ case TransitionCheckState.Init:
188
+ if (newState === TransitionCheckState.Checked) return this._animationClasses.uncheckedToChecked;
189
+ else if (newState == TransitionCheckState.Indeterminate) return this.checked() ? this._animationClasses.checkedToIndeterminate : this._animationClasses.uncheckedToIndeterminate;
190
+ break;
191
+ case TransitionCheckState.Unchecked: return newState === TransitionCheckState.Checked ? this._animationClasses.uncheckedToChecked : this._animationClasses.uncheckedToIndeterminate;
192
+ case TransitionCheckState.Checked: return newState === TransitionCheckState.Unchecked ? this._animationClasses.checkedToUnchecked : this._animationClasses.checkedToIndeterminate;
193
+ case TransitionCheckState.Indeterminate: return newState === TransitionCheckState.Checked ? this._animationClasses.indeterminateToChecked : this._animationClasses.indeterminateToUnchecked;
194
+ }
195
+ return "";
196
+ }
197
+ _syncIndeterminate(value) {
198
+ const inputElement = this._inputElement();
199
+ if (inputElement) inputElement.nativeElement.indeterminate = value;
200
+ }
201
+ _onInputClick(event) {
202
+ if (this.readonly()) {
203
+ event.preventDefault();
204
+ return;
205
+ }
206
+ this._handleInputClick();
207
+ }
208
+ _onTouchTargetClick() {
209
+ this._handleInputClick();
210
+ const inputElement = this._inputElement();
211
+ if (!this.isDisabled() && inputElement) inputElement.nativeElement.focus();
212
+ }
213
+ _preventBubblingFromLabel(event) {
214
+ const labelElement = this._labelElement();
215
+ if (!!event.target && labelElement && labelElement.nativeElement.contains(event.target)) event.stopPropagation();
216
+ }
217
+ static ɵfac = i0.ɵɵngDeclareFactory({
218
+ minVersion: "12.0.0",
219
+ version: "22.3.0",
220
+ ngImport: i0,
221
+ type: Checkbox,
222
+ deps: [],
223
+ target: i0.ɵɵFactoryTarget.Component
224
+ });
225
+ static ɵcmp = i0.ɵɵngDeclareComponent({
226
+ minVersion: "17.0.0",
227
+ version: "22.3.0",
228
+ type: Checkbox,
229
+ isStandalone: true,
230
+ selector: "ngs-checkbox",
231
+ inputs: {
232
+ ariaLabel: {
233
+ classPropertyName: "ariaLabel",
234
+ publicName: "aria-label",
235
+ isSignal: true,
236
+ isRequired: false,
237
+ transformFunction: null
238
+ },
239
+ ariaLabelledby: {
240
+ classPropertyName: "ariaLabelledby",
241
+ publicName: "aria-labelledby",
242
+ isSignal: true,
243
+ isRequired: false,
244
+ transformFunction: null
245
+ },
246
+ ariaDescribedby: {
247
+ classPropertyName: "ariaDescribedby",
248
+ publicName: "aria-describedby",
249
+ isSignal: true,
250
+ isRequired: false,
251
+ transformFunction: null
252
+ },
253
+ ariaExpanded: {
254
+ classPropertyName: "ariaExpanded",
255
+ publicName: "aria-expanded",
256
+ isSignal: true,
257
+ isRequired: false,
258
+ transformFunction: null
259
+ },
260
+ ariaControls: {
261
+ classPropertyName: "ariaControls",
262
+ publicName: "aria-controls",
263
+ isSignal: true,
264
+ isRequired: false,
265
+ transformFunction: null
266
+ },
267
+ ariaOwns: {
268
+ classPropertyName: "ariaOwns",
269
+ publicName: "aria-owns",
270
+ isSignal: true,
271
+ isRequired: false,
272
+ transformFunction: null
273
+ },
274
+ id: {
275
+ classPropertyName: "id",
276
+ publicName: "id",
277
+ isSignal: true,
278
+ isRequired: false,
279
+ transformFunction: null
280
+ },
281
+ required: {
282
+ classPropertyName: "required",
283
+ publicName: "required",
284
+ isSignal: true,
285
+ isRequired: false,
286
+ transformFunction: null
287
+ },
288
+ labelPosition: {
289
+ classPropertyName: "labelPosition",
290
+ publicName: "labelPosition",
291
+ isSignal: true,
292
+ isRequired: false,
293
+ transformFunction: null
294
+ },
295
+ name: {
296
+ classPropertyName: "name",
297
+ publicName: "name",
298
+ isSignal: true,
299
+ isRequired: false,
300
+ transformFunction: null
301
+ },
302
+ submittedValue: {
303
+ classPropertyName: "submittedValue",
304
+ publicName: "value",
305
+ isSignal: true,
306
+ isRequired: false,
307
+ transformFunction: null
308
+ },
309
+ disableRipple: {
310
+ classPropertyName: "disableRipple",
311
+ publicName: "disableRipple",
312
+ isSignal: true,
313
+ isRequired: false,
314
+ transformFunction: null
315
+ },
316
+ tabIndex: {
317
+ classPropertyName: "tabIndex",
318
+ publicName: "tabIndex",
319
+ isSignal: true,
320
+ isRequired: false,
321
+ transformFunction: null
322
+ },
323
+ color: {
324
+ classPropertyName: "color",
325
+ publicName: "color",
326
+ isSignal: true,
327
+ isRequired: false,
328
+ transformFunction: null
329
+ },
330
+ disabledInteractive: {
331
+ classPropertyName: "disabledInteractive",
332
+ publicName: "disabledInteractive",
333
+ isSignal: true,
334
+ isRequired: false,
335
+ transformFunction: null
336
+ },
337
+ checked: {
338
+ classPropertyName: "checked",
339
+ publicName: "checked",
340
+ isSignal: true,
341
+ isRequired: false,
342
+ transformFunction: null
343
+ },
344
+ disabled: {
345
+ classPropertyName: "disabled",
346
+ publicName: "disabled",
347
+ isSignal: true,
348
+ isRequired: false,
349
+ transformFunction: null
350
+ },
351
+ readonly: {
352
+ classPropertyName: "readonly",
353
+ publicName: "readonly",
354
+ isSignal: true,
355
+ isRequired: false,
356
+ transformFunction: null
357
+ },
358
+ indeterminateInput: {
359
+ classPropertyName: "indeterminateInput",
360
+ publicName: "indeterminate",
361
+ isSignal: true,
362
+ isRequired: false,
363
+ transformFunction: null
364
+ }
365
+ },
366
+ outputs: {
367
+ checked: "checkedChange",
368
+ touch: "touch",
369
+ change: "change",
370
+ indeterminateChange: "indeterminateChange"
371
+ },
372
+ host: {
373
+ properties: {
374
+ "attr.tabindex": "null",
375
+ "attr.aria-label": "null",
376
+ "attr.aria-labelledby": "null",
377
+ "class.ngs-checkbox-disabled": "isDisabled()",
378
+ "class.ngs-checkbox-checked": "checked()",
379
+ "class.ngs-checkbox-indeterminate": "indeterminate()",
380
+ "class.ngs-checkbox-disabled-interactive": "disabledInteractive()",
381
+ "class": "color() ? \"ngs-\" + color() : \"ngs-primary\""
382
+ },
383
+ classAttribute: "ngs-checkbox"
384
+ },
385
+ providers: [{
386
+ provide: NG_VALIDATORS,
387
+ useExisting: Checkbox,
388
+ multi: true
389
+ }],
390
+ viewQueries: [{
391
+ propertyName: "_inputElement",
392
+ first: true,
393
+ predicate: ["input"],
394
+ descendants: true,
395
+ isSignal: true
396
+ }, {
397
+ propertyName: "_labelElement",
398
+ first: true,
399
+ predicate: ["label"],
400
+ descendants: true,
401
+ isSignal: true
402
+ }],
403
+ exportAs: ["ngsCheckbox"],
404
+ ngImport: i0,
405
+ template: "<div class=\"ngs-checkbox-layout\" [class.ngs-checkbox-label-before]=\"labelPosition() === 'before'\"\n (click)=\"_preventBubblingFromLabel($event)\">\n <div #checkbox class=\"ngs-checkbox-frame\">\n <div class=\"ngs-checkbox-touch-target\" (click)=\"_onTouchTargetClick()\"></div>\n <input #input\n type=\"checkbox\"\n class=\"ngs-checkbox-native-control\"\n [class.ngs-checkbox--selected]=\"checked()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-describedby]=\"ariaDescribedby()\"\n [attr.aria-checked]=\"indeterminate() ? 'mixed' : null\"\n [attr.aria-controls]=\"ariaControls()\"\n [attr.aria-disabled]=\"isDisabled() && disabledInteractive() ? true : null\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-owns]=\"ariaOwns()\"\n [attr.name]=\"name()\"\n [attr.value]=\"submittedValue()\"\n [attr.aria-readonly]=\"readonly() || null\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate()\"\n [disabled]=\"isDisabled() && !disabledInteractive()\"\n [id]=\"inputId\"\n [required]=\"required()\"\n [tabIndex]=\"isDisabled() && !disabledInteractive() ? -1 : tabIndex()\"\n (blur)=\"_onBlur()\"\n (click)=\"_onInputClick($event)\"\n (change)=\"_onInteractionEvent($event)\"/>\n <div class=\"ngs-checkbox-ripple-container\"></div>\n <div class=\"ngs-checkbox-background\">\n @if (indeterminate()) {\n <div class=\"ngs-checkbox-mixedmark\"></div>\n } @else if (checked()) {\n <svg class=\"ngs-checkbox-checkmark\"\n focusable=\"false\"\n viewBox=\"0 0 24 24\"\n aria-hidden=\"true\">\n <path class=\"ngs-checkbox-checkmark-path\"\n fill=\"none\"\n d=\"M1.73,12.91 8.1,19.28 22.79,4.59\"/>\n </svg>\n }\n </div>\n <div class=\"ngs-checkbox-ripple\" ngsRipple\n [ngsRippleTrigger]=\"checkbox\"\n [ngsRippleDisabled]=\"disableRipple() || isDisabled()\"\n [ngsRippleCentered]=\"true\"></div>\n </div>\n <label class=\"ngs-checkbox-label\" #label [for]=\"inputId\">\n <span class=\"content\"><ng-content /></span>\n <span class=\"description\">\n <ng-content select=\"[ngsCheckboxDecription]\" />\n </span>\n </label>\n</div>\n",
406
+ styles: [":host{--ngs-checkbox-size: 19px;--ngs-checkbox-checked-color: var(--ngs-color-primary);--ngs-checkbox-unchecked-color: var(--ngs-field-border-color);--ngs-checkbox-disabled-color: var(--ngs-color-on-surface-variant);--ngs-checkbox-checkmark-color: var(--ngs-color-on-primary);--ngs-checkbox-description-font-size: var(--ngs-font-size-sm);--ngs-checkbox-description-color: var(--ngs-color-neutral-500);--ngs-checkbox-gap: calc(var(--spacing, .25rem) * 2.5);--ngs-checkbox-label-font-size: var(--ngs-font-size-md);display:inline-block;position:relative}:host .description{font-size:var(--ngs-checkbox-description-font-size);color:var(--ngs-checkbox-description-color)}:host .description:empty{display:none}:host .content{font-size:var(--ngs-checkbox-label-font-size)}:host .ngs-checkbox-layout{display:flex;align-items:center;gap:var(--ngs-checkbox-gap);cursor:pointer}:host .ngs-checkbox-layout.ngs-checkbox-label-before{flex-direction:row-reverse}:host:has(.description:not(:empty)) .ngs-checkbox-layout{align-items:start}:host:has(.description:not(:empty)) .ngs-checkbox-frame{position:relative;top:calc(var(--spacing, .25rem) * 1.1)}:host .ngs-checkbox-frame{width:var(--ngs-checkbox-size);height:var(--ngs-checkbox-size);position:relative;display:flex;align-items:center;justify-content:center;flex:none}:host .ngs-checkbox-native-control{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}:host .ngs-checkbox-background{width:100%;height:100%;border:1px solid var(--ngs-checkbox-unchecked-color);border-radius:3px;background:transparent;transition:background-color 90ms cubic-bezier(0,0,.2,1),border-color 90ms cubic-bezier(0,0,.2,1);box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:2px}:host .ngs-checkbox-checkmark{width:100%;height:100%}:host .ngs-checkbox-checkmark-path{stroke:var(--ngs-checkbox-checkmark-color);stroke-width:3.12px;stroke-dasharray:29.7833385;stroke-dashoffset:0}:host .ngs-checkbox-mixedmark{width:12px;height:2px;background:var(--ngs-checkbox-checkmark-color)}:host.ngs-checkbox-checked .ngs-checkbox-background,:host.ngs-checkbox-indeterminate .ngs-checkbox-background{background:var(--ngs-checkbox-checked-color);border-color:var(--ngs-checkbox-checked-color)}:host.ngs-checkbox-disabled{cursor:default;color:var(--ngs-color-on-surface)}@supports (color: color-mix(in lab,red,red)){:host.ngs-checkbox-disabled{color:color-mix(in srgb,var(--ngs-color-on-surface),transparent 62%)}}:host.ngs-checkbox-disabled .ngs-checkbox-layout{cursor:default}:host.ngs-checkbox-disabled .ngs-checkbox-background{border-color:var(--ngs-color-on-surface);background:transparent}@supports (color: color-mix(in lab,red,red)){:host.ngs-checkbox-disabled .ngs-checkbox-background{border-color:color-mix(in srgb,var(--ngs-color-on-surface),transparent 62%)}}:host.ngs-checkbox-disabled.ngs-checkbox-checked .ngs-checkbox-background,:host.ngs-checkbox-disabled.ngs-checkbox-indeterminate .ngs-checkbox-background{background:var(--ngs-color-on-surface);border-color:transparent}@supports (color: color-mix(in lab,red,red)){:host.ngs-checkbox-disabled.ngs-checkbox-checked .ngs-checkbox-background,:host.ngs-checkbox-disabled.ngs-checkbox-indeterminate .ngs-checkbox-background{background:color-mix(in srgb,var(--ngs-color-on-surface),transparent 62%)}}:host .ngs-checkbox-ripple{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:40px;height:40px;border-radius:50%;pointer-events:none;overflow:hidden}:host .ngs-checkbox-label{cursor:inherit}:host .ngs-checkbox-label:has(.description:empty):has(.content:empty){display:none}:host.ngs-accent{--ngs-checkbox-checked-color: var(--ngs-color-secondary);--ngs-checkbox-checkmark-color: var(--ngs-color-on-secondary)}:host.ngs-warn{--ngs-checkbox-checked-color: var(--ngs-color-danger);--ngs-checkbox-checkmark-color: var(--ngs-color-on-danger)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
407
+ dependencies: [{
408
+ kind: "directive",
409
+ type: Ripple,
410
+ selector: "[ngsRipple]",
411
+ inputs: [
412
+ "ngsRippleColor",
413
+ "ngsRippleUnbounded",
414
+ "ngsRippleCentered",
415
+ "ngsRippleRadius",
416
+ "ngsRippleAnimation",
417
+ "ngsRippleDisabled",
418
+ "ngsRippleTrigger"
419
+ ],
420
+ outputs: [
421
+ "ngsRippleCenteredChange",
422
+ "ngsRippleDisabledChange",
423
+ "ngsRippleTriggerChange"
424
+ ],
425
+ exportAs: ["ngsRipple"]
426
+ }],
427
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
428
+ });
429
+ };
430
+ i0.ɵɵngDeclareClassMetadata({
431
+ minVersion: "12.0.0",
432
+ version: "22.3.0",
433
+ ngImport: i0,
434
+ type: Checkbox,
435
+ decorators: [{
436
+ type: Component,
437
+ args: [{
438
+ selector: "ngs-checkbox",
439
+ imports: [Ripple],
440
+ host: {
441
+ "class": "ngs-checkbox",
442
+ "[attr.tabindex]": "null",
443
+ "[attr.aria-label]": "null",
444
+ "[attr.aria-labelledby]": "null",
445
+ "[class.ngs-checkbox-disabled]": "isDisabled()",
446
+ "[class.ngs-checkbox-checked]": "checked()",
447
+ "[class.ngs-checkbox-indeterminate]": "indeterminate()",
448
+ "[class.ngs-checkbox-disabled-interactive]": "disabledInteractive()",
449
+ "[class]": "color() ? \"ngs-\" + color() : \"ngs-primary\""
450
+ },
451
+ providers: [{
452
+ provide: NG_VALIDATORS,
453
+ useExisting: Checkbox,
454
+ multi: true
455
+ }],
456
+ exportAs: "ngsCheckbox",
457
+ changeDetection: ChangeDetectionStrategy.OnPush,
458
+ template: "<div class=\"ngs-checkbox-layout\" [class.ngs-checkbox-label-before]=\"labelPosition() === 'before'\"\n (click)=\"_preventBubblingFromLabel($event)\">\n <div #checkbox class=\"ngs-checkbox-frame\">\n <div class=\"ngs-checkbox-touch-target\" (click)=\"_onTouchTargetClick()\"></div>\n <input #input\n type=\"checkbox\"\n class=\"ngs-checkbox-native-control\"\n [class.ngs-checkbox--selected]=\"checked()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-describedby]=\"ariaDescribedby()\"\n [attr.aria-checked]=\"indeterminate() ? 'mixed' : null\"\n [attr.aria-controls]=\"ariaControls()\"\n [attr.aria-disabled]=\"isDisabled() && disabledInteractive() ? true : null\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-owns]=\"ariaOwns()\"\n [attr.name]=\"name()\"\n [attr.value]=\"submittedValue()\"\n [attr.aria-readonly]=\"readonly() || null\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate()\"\n [disabled]=\"isDisabled() && !disabledInteractive()\"\n [id]=\"inputId\"\n [required]=\"required()\"\n [tabIndex]=\"isDisabled() && !disabledInteractive() ? -1 : tabIndex()\"\n (blur)=\"_onBlur()\"\n (click)=\"_onInputClick($event)\"\n (change)=\"_onInteractionEvent($event)\"/>\n <div class=\"ngs-checkbox-ripple-container\"></div>\n <div class=\"ngs-checkbox-background\">\n @if (indeterminate()) {\n <div class=\"ngs-checkbox-mixedmark\"></div>\n } @else if (checked()) {\n <svg class=\"ngs-checkbox-checkmark\"\n focusable=\"false\"\n viewBox=\"0 0 24 24\"\n aria-hidden=\"true\">\n <path class=\"ngs-checkbox-checkmark-path\"\n fill=\"none\"\n d=\"M1.73,12.91 8.1,19.28 22.79,4.59\"/>\n </svg>\n }\n </div>\n <div class=\"ngs-checkbox-ripple\" ngsRipple\n [ngsRippleTrigger]=\"checkbox\"\n [ngsRippleDisabled]=\"disableRipple() || isDisabled()\"\n [ngsRippleCentered]=\"true\"></div>\n </div>\n <label class=\"ngs-checkbox-label\" #label [for]=\"inputId\">\n <span class=\"content\"><ng-content /></span>\n <span class=\"description\">\n <ng-content select=\"[ngsCheckboxDecription]\" />\n </span>\n </label>\n</div>\n",
459
+ styles: [":host{--ngs-checkbox-size: 19px;--ngs-checkbox-checked-color: var(--ngs-color-primary);--ngs-checkbox-unchecked-color: var(--ngs-field-border-color);--ngs-checkbox-disabled-color: var(--ngs-color-on-surface-variant);--ngs-checkbox-checkmark-color: var(--ngs-color-on-primary);--ngs-checkbox-description-font-size: var(--ngs-font-size-sm);--ngs-checkbox-description-color: var(--ngs-color-neutral-500);--ngs-checkbox-gap: calc(var(--spacing, .25rem) * 2.5);--ngs-checkbox-label-font-size: var(--ngs-font-size-md);display:inline-block;position:relative}:host .description{font-size:var(--ngs-checkbox-description-font-size);color:var(--ngs-checkbox-description-color)}:host .description:empty{display:none}:host .content{font-size:var(--ngs-checkbox-label-font-size)}:host .ngs-checkbox-layout{display:flex;align-items:center;gap:var(--ngs-checkbox-gap);cursor:pointer}:host .ngs-checkbox-layout.ngs-checkbox-label-before{flex-direction:row-reverse}:host:has(.description:not(:empty)) .ngs-checkbox-layout{align-items:start}:host:has(.description:not(:empty)) .ngs-checkbox-frame{position:relative;top:calc(var(--spacing, .25rem) * 1.1)}:host .ngs-checkbox-frame{width:var(--ngs-checkbox-size);height:var(--ngs-checkbox-size);position:relative;display:flex;align-items:center;justify-content:center;flex:none}:host .ngs-checkbox-native-control{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}:host .ngs-checkbox-background{width:100%;height:100%;border:1px solid var(--ngs-checkbox-unchecked-color);border-radius:3px;background:transparent;transition:background-color 90ms cubic-bezier(0,0,.2,1),border-color 90ms cubic-bezier(0,0,.2,1);box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:2px}:host .ngs-checkbox-checkmark{width:100%;height:100%}:host .ngs-checkbox-checkmark-path{stroke:var(--ngs-checkbox-checkmark-color);stroke-width:3.12px;stroke-dasharray:29.7833385;stroke-dashoffset:0}:host .ngs-checkbox-mixedmark{width:12px;height:2px;background:var(--ngs-checkbox-checkmark-color)}:host.ngs-checkbox-checked .ngs-checkbox-background,:host.ngs-checkbox-indeterminate .ngs-checkbox-background{background:var(--ngs-checkbox-checked-color);border-color:var(--ngs-checkbox-checked-color)}:host.ngs-checkbox-disabled{cursor:default;color:var(--ngs-color-on-surface)}@supports (color: color-mix(in lab,red,red)){:host.ngs-checkbox-disabled{color:color-mix(in srgb,var(--ngs-color-on-surface),transparent 62%)}}:host.ngs-checkbox-disabled .ngs-checkbox-layout{cursor:default}:host.ngs-checkbox-disabled .ngs-checkbox-background{border-color:var(--ngs-color-on-surface);background:transparent}@supports (color: color-mix(in lab,red,red)){:host.ngs-checkbox-disabled .ngs-checkbox-background{border-color:color-mix(in srgb,var(--ngs-color-on-surface),transparent 62%)}}:host.ngs-checkbox-disabled.ngs-checkbox-checked .ngs-checkbox-background,:host.ngs-checkbox-disabled.ngs-checkbox-indeterminate .ngs-checkbox-background{background:var(--ngs-color-on-surface);border-color:transparent}@supports (color: color-mix(in lab,red,red)){:host.ngs-checkbox-disabled.ngs-checkbox-checked .ngs-checkbox-background,:host.ngs-checkbox-disabled.ngs-checkbox-indeterminate .ngs-checkbox-background{background:color-mix(in srgb,var(--ngs-color-on-surface),transparent 62%)}}:host .ngs-checkbox-ripple{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:40px;height:40px;border-radius:50%;pointer-events:none;overflow:hidden}:host .ngs-checkbox-label{cursor:inherit}:host .ngs-checkbox-label:has(.description:empty):has(.content:empty){display:none}:host.ngs-accent{--ngs-checkbox-checked-color: var(--ngs-color-secondary);--ngs-checkbox-checkmark-color: var(--ngs-color-on-secondary)}:host.ngs-warn{--ngs-checkbox-checked-color: var(--ngs-color-danger);--ngs-checkbox-checkmark-color: var(--ngs-color-on-danger)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
460
+ }]
461
+ }],
462
+ ctorParameters: () => [],
463
+ propDecorators: {
464
+ ariaLabel: [{
465
+ type: i0.Input,
466
+ args: [{
467
+ isSignal: true,
468
+ alias: "aria-label",
469
+ required: false
470
+ }]
471
+ }],
472
+ ariaLabelledby: [{
473
+ type: i0.Input,
474
+ args: [{
475
+ isSignal: true,
476
+ alias: "aria-labelledby",
477
+ required: false
478
+ }]
479
+ }],
480
+ ariaDescribedby: [{
481
+ type: i0.Input,
482
+ args: [{
483
+ isSignal: true,
484
+ alias: "aria-describedby",
485
+ required: false
486
+ }]
487
+ }],
488
+ ariaExpanded: [{
489
+ type: i0.Input,
490
+ args: [{
491
+ isSignal: true,
492
+ alias: "aria-expanded",
493
+ required: false
494
+ }]
495
+ }],
496
+ ariaControls: [{
497
+ type: i0.Input,
498
+ args: [{
499
+ isSignal: true,
500
+ alias: "aria-controls",
501
+ required: false
502
+ }]
503
+ }],
504
+ ariaOwns: [{
505
+ type: i0.Input,
506
+ args: [{
507
+ isSignal: true,
508
+ alias: "aria-owns",
509
+ required: false
510
+ }]
511
+ }],
512
+ id: [{
513
+ type: i0.Input,
514
+ args: [{
515
+ isSignal: true,
516
+ alias: "id",
517
+ required: false
518
+ }]
519
+ }],
520
+ required: [{
521
+ type: i0.Input,
522
+ args: [{
523
+ isSignal: true,
524
+ alias: "required",
525
+ required: false
526
+ }]
527
+ }],
528
+ labelPosition: [{
529
+ type: i0.Input,
530
+ args: [{
531
+ isSignal: true,
532
+ alias: "labelPosition",
533
+ required: false
534
+ }]
535
+ }],
536
+ name: [{
537
+ type: i0.Input,
538
+ args: [{
539
+ isSignal: true,
540
+ alias: "name",
541
+ required: false
542
+ }]
543
+ }],
544
+ submittedValue: [{
545
+ type: i0.Input,
546
+ args: [{
547
+ isSignal: true,
548
+ alias: "value",
549
+ required: false
550
+ }]
551
+ }],
552
+ disableRipple: [{
553
+ type: i0.Input,
554
+ args: [{
555
+ isSignal: true,
556
+ alias: "disableRipple",
557
+ required: false
558
+ }]
559
+ }],
560
+ tabIndex: [{
561
+ type: i0.Input,
562
+ args: [{
563
+ isSignal: true,
564
+ alias: "tabIndex",
565
+ required: false
566
+ }]
567
+ }],
568
+ color: [{
569
+ type: i0.Input,
570
+ args: [{
571
+ isSignal: true,
572
+ alias: "color",
573
+ required: false
574
+ }]
575
+ }],
576
+ disabledInteractive: [{
577
+ type: i0.Input,
578
+ args: [{
579
+ isSignal: true,
580
+ alias: "disabledInteractive",
581
+ required: false
582
+ }]
583
+ }],
584
+ checked: [{
585
+ type: i0.Input,
586
+ args: [{
587
+ isSignal: true,
588
+ alias: "checked",
589
+ required: false
590
+ }]
591
+ }, {
592
+ type: i0.Output,
593
+ args: ["checkedChange"]
594
+ }],
595
+ disabled: [{
596
+ type: i0.Input,
597
+ args: [{
598
+ isSignal: true,
599
+ alias: "disabled",
600
+ required: false
601
+ }]
602
+ }],
603
+ readonly: [{
604
+ type: i0.Input,
605
+ args: [{
606
+ isSignal: true,
607
+ alias: "readonly",
608
+ required: false
609
+ }]
610
+ }],
611
+ touch: [{
612
+ type: i0.Output,
613
+ args: ["touch"]
614
+ }],
615
+ indeterminateInput: [{
616
+ type: i0.Input,
617
+ args: [{
618
+ isSignal: true,
619
+ alias: "indeterminate",
620
+ required: false
621
+ }]
622
+ }],
623
+ change: [{
624
+ type: i0.Output,
625
+ args: ["change"]
626
+ }],
627
+ indeterminateChange: [{
628
+ type: i0.Output,
629
+ args: ["indeterminateChange"]
630
+ }],
631
+ _inputElement: [{
632
+ type: i0.ViewChild,
633
+ args: ["input", { isSignal: true }]
634
+ }],
635
+ _labelElement: [{
636
+ type: i0.ViewChild,
637
+ args: ["label", { isSignal: true }]
638
+ }]
639
+ }
640
+ });
641
+ var CheckboxDescription = class CheckboxDescription {
642
+ constructor() {}
643
+ static ɵfac = i0.ɵɵngDeclareFactory({
644
+ minVersion: "12.0.0",
645
+ version: "22.3.0",
646
+ ngImport: i0,
647
+ type: CheckboxDescription,
648
+ deps: [],
649
+ target: i0.ɵɵFactoryTarget.Directive
650
+ });
651
+ static ɵdir = i0.ɵɵngDeclareDirective({
652
+ minVersion: "14.0.0",
653
+ version: "22.3.0",
654
+ type: CheckboxDescription,
655
+ isStandalone: true,
656
+ selector: "[ngsCheckboxDescription]",
657
+ ngImport: i0
658
+ });
659
+ };
660
+ i0.ɵɵngDeclareClassMetadata({
661
+ minVersion: "12.0.0",
662
+ version: "22.3.0",
663
+ ngImport: i0,
664
+ type: CheckboxDescription,
665
+ decorators: [{
666
+ type: Directive,
667
+ args: [{ selector: "[ngsCheckboxDescription]" }]
668
+ }],
669
+ ctorParameters: () => []
670
+ });
671
+ var CheckboxGroup = class CheckboxGroup {
672
+ static ɵfac = i0.ɵɵngDeclareFactory({
673
+ minVersion: "12.0.0",
674
+ version: "22.3.0",
675
+ ngImport: i0,
676
+ type: CheckboxGroup,
677
+ deps: [],
678
+ target: i0.ɵɵFactoryTarget.Component
679
+ });
680
+ static ɵcmp = i0.ɵɵngDeclareComponent({
681
+ minVersion: "14.0.0",
682
+ version: "22.3.0",
683
+ type: CheckboxGroup,
684
+ isStandalone: true,
685
+ selector: "ngs-checkbox-group",
686
+ host: {
687
+ attributes: { "role": "group" },
688
+ classAttribute: "ngs-checkbox-group"
689
+ },
690
+ ngImport: i0,
691
+ template: "<ng-content />\n",
692
+ styles: [":host{--ngs-checkbox-group-gap: calc(var(--spacing, .25rem) * 4);display:flex;flex-direction:column;gap:var(--ngs-checkbox-group-gap)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
693
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
694
+ });
695
+ };
696
+ i0.ɵɵngDeclareClassMetadata({
697
+ minVersion: "12.0.0",
698
+ version: "22.3.0",
699
+ ngImport: i0,
700
+ type: CheckboxGroup,
701
+ decorators: [{
702
+ type: Component,
703
+ args: [{
704
+ selector: "ngs-checkbox-group",
705
+ imports: [],
706
+ host: {
707
+ "class": "ngs-checkbox-group",
708
+ "role": "group"
709
+ },
710
+ changeDetection: ChangeDetectionStrategy.OnPush,
711
+ template: "<ng-content />\n",
712
+ styles: [":host{--ngs-checkbox-group-gap: calc(var(--spacing, .25rem) * 4);display:flex;flex-direction:column;gap:var(--ngs-checkbox-group-gap)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
713
+ }]
714
+ }]
715
+ });
310
716
  export { Checkbox, CheckboxChange, CheckboxDescription, CheckboxGroup, TransitionCheckState };
311
- //# sourceMappingURL=ngstarter-ui-components-checkbox.mjs.map
717
+
718
+ //# sourceMappingURL=ngstarter-ui-components-checkbox.mjs.map