@ngstarter-ui/components 22.3.6 → 22.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (476) hide show
  1. package/README.md +27 -0
  2. package/ai/component-registry.json +186 -101
  3. package/fesm2022/attachment-block-BK9QxVjq.mjs +163 -0
  4. package/fesm2022/attachment-block-BK9QxVjq.mjs.map +1 -0
  5. package/fesm2022/callout-block-Bl4GZYz8.mjs +196 -0
  6. package/fesm2022/callout-block-Bl4GZYz8.mjs.map +1 -0
  7. package/fesm2022/code-block.component-DCRD-9iP.mjs +393 -0
  8. package/fesm2022/code-block.component-DCRD-9iP.mjs.map +1 -0
  9. package/fesm2022/content-builder.store-D622mHxt.mjs +328 -0
  10. package/fesm2022/content-builder.store-D622mHxt.mjs.map +1 -0
  11. package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs +1110 -0
  12. package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs.map +1 -0
  13. package/fesm2022/cursor-controller-DKfBII1n.mjs +55 -0
  14. package/fesm2022/cursor-controller-DKfBII1n.mjs.map +1 -0
  15. package/fesm2022/default-converters-9oSKDsXP.mjs +140 -0
  16. package/fesm2022/default-converters-9oSKDsXP.mjs.map +1 -0
  17. package/fesm2022/divider-block.component-Dvgeq_D0.mjs +148 -0
  18. package/fesm2022/divider-block.component-Dvgeq_D0.mjs.map +1 -0
  19. package/fesm2022/embed-block-CYkOv4Wt.mjs +565 -0
  20. package/fesm2022/embed-block-CYkOv4Wt.mjs.map +1 -0
  21. package/fesm2022/extra-block-defs-Cn_hfM3c.mjs +122 -0
  22. package/fesm2022/extra-block-defs-Cn_hfM3c.mjs.map +1 -0
  23. package/fesm2022/gallery-block-DT3uIURY.mjs +365 -0
  24. package/fesm2022/gallery-block-DT3uIURY.mjs.map +1 -0
  25. package/fesm2022/grid-block-ZVDT3m8-.mjs +504 -0
  26. package/fesm2022/grid-block-ZVDT3m8-.mjs.map +1 -0
  27. package/fesm2022/heading-block.component-iCpJGTMh.mjs +274 -0
  28. package/fesm2022/heading-block.component-iCpJGTMh.mjs.map +1 -0
  29. package/fesm2022/html-utils-DywL8gGa.mjs +24 -0
  30. package/fesm2022/html-utils-DywL8gGa.mjs.map +1 -0
  31. package/fesm2022/image-block.component-DJ7-HCR8.mjs +285 -0
  32. package/fesm2022/image-block.component-DJ7-HCR8.mjs.map +1 -0
  33. package/fesm2022/list-block.component-qFIebEBO.mjs +312 -0
  34. package/fesm2022/list-block.component-qFIebEBO.mjs.map +1 -0
  35. package/fesm2022/nested-blocks-CXhgXJ1H.mjs +345 -0
  36. package/fesm2022/nested-blocks-CXhgXJ1H.mjs.map +1 -0
  37. package/fesm2022/ngstarter-ui-components-action-required.mjs +150 -45
  38. package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -1
  39. package/fesm2022/ngstarter-ui-components-alert.mjs +318 -133
  40. package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -1
  41. package/fesm2022/ngstarter-ui-components-announcement.mjs +280 -88
  42. package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -1
  43. package/fesm2022/ngstarter-ui-components-autocomplete.mjs +647 -386
  44. package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -1
  45. package/fesm2022/ngstarter-ui-components-avatar.mjs +715 -482
  46. package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -1
  47. package/fesm2022/ngstarter-ui-components-badge.mjs +308 -97
  48. package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -1
  49. package/fesm2022/ngstarter-ui-components-block-loader.mjs +164 -47
  50. package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -1
  51. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +278 -315
  52. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs.map +1 -1
  53. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +707 -205
  54. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -1
  55. package/fesm2022/ngstarter-ui-components-button-toggle.mjs +518 -175
  56. package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -1
  57. package/fesm2022/ngstarter-ui-components-button.mjs +294 -68
  58. package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
  59. package/fesm2022/ngstarter-ui-components-calendar.mjs +442 -250
  60. package/fesm2022/ngstarter-ui-components-calendar.mjs.map +1 -1
  61. package/fesm2022/ngstarter-ui-components-card-overlay.mjs +159 -47
  62. package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -1
  63. package/fesm2022/ngstarter-ui-components-card.mjs +619 -194
  64. package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -1
  65. package/fesm2022/ngstarter-ui-components-carousel.mjs +1012 -634
  66. package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -1
  67. package/fesm2022/ngstarter-ui-components-checkbox.mjs +715 -308
  68. package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -1
  69. package/fesm2022/ngstarter-ui-components-chips.mjs +1397 -667
  70. package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -1
  71. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +519 -357
  72. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -1
  73. package/fesm2022/ngstarter-ui-components-color-picker.mjs +1218 -604
  74. package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -1
  75. package/fesm2022/ngstarter-ui-components-color-scheme.mjs +265 -134
  76. package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -1
  77. package/fesm2022/ngstarter-ui-components-color-switcher.mjs +190 -71
  78. package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -1
  79. package/fesm2022/ngstarter-ui-components-command-bar.mjs +197 -58
  80. package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -1
  81. package/fesm2022/ngstarter-ui-components-comment-editor.mjs +2212 -1128
  82. package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -1
  83. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +269 -183
  84. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -1
  85. package/fesm2022/ngstarter-ui-components-confirm.mjs +164 -86
  86. package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -1
  87. package/fesm2022/ngstarter-ui-components-content-editor.mjs +6240 -2
  88. package/fesm2022/ngstarter-ui-components-content-editor.mjs.map +1 -1
  89. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +244 -108
  90. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -1
  91. package/fesm2022/ngstarter-ui-components-core.mjs +2110 -1592
  92. package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
  93. package/fesm2022/ngstarter-ui-components-country-select.mjs +1970 -588
  94. package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -1
  95. package/fesm2022/ngstarter-ui-components-crop.mjs +249 -191
  96. package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -1
  97. package/fesm2022/ngstarter-ui-components-currency-select.mjs +1658 -452
  98. package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -1
  99. package/fesm2022/ngstarter-ui-components-data-view.mjs +4538 -2497
  100. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
  101. package/fesm2022/ngstarter-ui-components-date-format-select.mjs +357 -157
  102. package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -1
  103. package/fesm2022/ngstarter-ui-components-datepicker.mjs +2587 -1264
  104. package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
  105. package/fesm2022/ngstarter-ui-components-dialog.mjs +681 -385
  106. package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -1
  107. package/fesm2022/ngstarter-ui-components-digit-roller.mjs +1000 -750
  108. package/fesm2022/ngstarter-ui-components-digit-roller.mjs.map +1 -1
  109. package/fesm2022/ngstarter-ui-components-divider.mjs +164 -41
  110. package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -1
  111. package/fesm2022/ngstarter-ui-components-drawer.mjs +218 -143
  112. package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -1
  113. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +345 -247
  114. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -1
  115. package/fesm2022/ngstarter-ui-components-empty-state.mjs +244 -74
  116. package/fesm2022/ngstarter-ui-components-empty-state.mjs.map +1 -1
  117. package/fesm2022/ngstarter-ui-components-events.mjs +467 -126
  118. package/fesm2022/ngstarter-ui-components-events.mjs.map +1 -1
  119. package/fesm2022/ngstarter-ui-components-expand.mjs +191 -59
  120. package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -1
  121. package/fesm2022/ngstarter-ui-components-expansion.mjs +529 -193
  122. package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -1
  123. package/fesm2022/ngstarter-ui-components-file-type.mjs +270 -171
  124. package/fesm2022/ngstarter-ui-components-file-type.mjs.map +1 -1
  125. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +741 -352
  126. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
  127. package/fesm2022/ngstarter-ui-components-form-builder.mjs +9032 -6964
  128. package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
  129. package/fesm2022/ngstarter-ui-components-form-field.mjs +741 -276
  130. package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -1
  131. package/fesm2022/ngstarter-ui-components-gauge.mjs +155 -43
  132. package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -1
  133. package/fesm2022/ngstarter-ui-components-grid.mjs +197 -81
  134. package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -1
  135. package/fesm2022/ngstarter-ui-components-guided-tour.mjs +881 -740
  136. package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -1
  137. package/fesm2022/ngstarter-ui-components-headless-editor.mjs +3573 -3656
  138. package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
  139. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +277 -204
  140. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -1
  141. package/fesm2022/ngstarter-ui-components-icon.mjs +209 -182
  142. package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -1
  143. package/fesm2022/ngstarter-ui-components-image-designer.mjs +5096 -4066
  144. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
  145. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +45 -19
  146. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -1
  147. package/fesm2022/ngstarter-ui-components-image-resizer.mjs +333 -154
  148. package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -1
  149. package/fesm2022/ngstarter-ui-components-image-viewer.mjs +564 -358
  150. package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -1
  151. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +246 -167
  152. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -1
  153. package/fesm2022/ngstarter-ui-components-incidents.mjs +732 -258
  154. package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -1
  155. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +244 -182
  156. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -1
  157. package/fesm2022/ngstarter-ui-components-input-mask.mjs +314 -174
  158. package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -1
  159. package/fesm2022/ngstarter-ui-components-input-validator.mjs +45 -69
  160. package/fesm2022/ngstarter-ui-components-input-validator.mjs.map +1 -1
  161. package/fesm2022/ngstarter-ui-components-input.mjs +303 -161
  162. package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -1
  163. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +504 -159
  164. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
  165. package/fesm2022/ngstarter-ui-components-kbd.mjs +86 -30
  166. package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -1
  167. package/fesm2022/ngstarter-ui-components-layout.mjs +681 -220
  168. package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -1
  169. package/fesm2022/ngstarter-ui-components-list.mjs +968 -281
  170. package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -1
  171. package/fesm2022/ngstarter-ui-components-logo.mjs +181 -51
  172. package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -1
  173. package/fesm2022/ngstarter-ui-components-marquee.mjs +226 -147
  174. package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -1
  175. package/fesm2022/ngstarter-ui-components-menu.mjs +1686 -1091
  176. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
  177. package/fesm2022/ngstarter-ui-components-micro-chart.mjs +1541 -943
  178. package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -1
  179. package/fesm2022/ngstarter-ui-components-navigation.mjs +1035 -455
  180. package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -1
  181. package/fesm2022/ngstarter-ui-components-notifications.mjs +678 -230
  182. package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -1
  183. package/fesm2022/ngstarter-ui-components-number-input.mjs +616 -316
  184. package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -1
  185. package/fesm2022/ngstarter-ui-components-option.mjs +405 -163
  186. package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -1
  187. package/fesm2022/ngstarter-ui-components-overlay.mjs +107 -111
  188. package/fesm2022/ngstarter-ui-components-overlay.mjs.map +1 -1
  189. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +131 -76
  190. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -1
  191. package/fesm2022/ngstarter-ui-components-paginator.mjs +543 -295
  192. package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -1
  193. package/fesm2022/ngstarter-ui-components-password-strength.mjs +785 -340
  194. package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -1
  195. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +3705 -2695
  196. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
  197. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs +1179 -851
  198. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs.map +1 -1
  199. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +2973 -2070
  200. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
  201. package/fesm2022/ngstarter-ui-components-phone-input.mjs +2081 -770
  202. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
  203. package/fesm2022/ngstarter-ui-components-pin-input.mjs +366 -198
  204. package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -1
  205. package/fesm2022/ngstarter-ui-components-popover.mjs +558 -308
  206. package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -1
  207. package/fesm2022/ngstarter-ui-components-progress-bar.mjs +178 -73
  208. package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -1
  209. package/fesm2022/ngstarter-ui-components-radio-card.mjs +301 -105
  210. package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -1
  211. package/fesm2022/ngstarter-ui-components-radio.mjs +417 -157
  212. package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -1
  213. package/fesm2022/ngstarter-ui-components-rail-nav.mjs +208 -88
  214. package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -1
  215. package/fesm2022/ngstarter-ui-components-resizable-container.mjs +123 -74
  216. package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -1
  217. package/fesm2022/ngstarter-ui-components-screen-loader.mjs +197 -95
  218. package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -1
  219. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +383 -245
  220. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -1
  221. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +705 -581
  222. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -1
  223. package/fesm2022/ngstarter-ui-components-segmented.mjs +422 -220
  224. package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -1
  225. package/fesm2022/ngstarter-ui-components-select.mjs +1862 -1159
  226. package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -1
  227. package/fesm2022/ngstarter-ui-components-side-panel.mjs +313 -118
  228. package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -1
  229. package/fesm2022/ngstarter-ui-components-sidebar.mjs +1239 -470
  230. package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -1
  231. package/fesm2022/ngstarter-ui-components-sidenav.mjs +664 -354
  232. package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -1
  233. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1092 -643
  234. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
  235. package/fesm2022/ngstarter-ui-components-skeleton.mjs +153 -43
  236. package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -1
  237. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +425 -108
  238. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -1
  239. package/fesm2022/ngstarter-ui-components-slider.mjs +645 -487
  240. package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -1
  241. package/fesm2022/ngstarter-ui-components-snack-bar.mjs +372 -354
  242. package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -1
  243. package/fesm2022/ngstarter-ui-components-sort.mjs +378 -147
  244. package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
  245. package/fesm2022/ngstarter-ui-components-spinner.mjs +242 -76
  246. package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -1
  247. package/fesm2022/ngstarter-ui-components-splash-screen.mjs +142 -91
  248. package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -1
  249. package/fesm2022/ngstarter-ui-components-split.mjs +1067 -929
  250. package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -1
  251. package/fesm2022/ngstarter-ui-components-step-tracker.mjs +617 -331
  252. package/fesm2022/ngstarter-ui-components-step-tracker.mjs.map +1 -1
  253. package/fesm2022/ngstarter-ui-components-stepper.mjs +357 -126
  254. package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -1
  255. package/fesm2022/ngstarter-ui-components-suggestions.mjs +259 -72
  256. package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -1
  257. package/fesm2022/ngstarter-ui-components-tab-panel.mjs +674 -267
  258. package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -1
  259. package/fesm2022/ngstarter-ui-components-table.mjs +1144 -662
  260. package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
  261. package/fesm2022/ngstarter-ui-components-tabs.mjs +1236 -615
  262. package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -1
  263. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +414 -216
  264. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -1
  265. package/fesm2022/ngstarter-ui-components-tiles.mjs +939 -647
  266. package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -1
  267. package/fesm2022/ngstarter-ui-components-timeline.mjs +418 -122
  268. package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -1
  269. package/fesm2022/ngstarter-ui-components-timepicker.mjs +870 -508
  270. package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -1
  271. package/fesm2022/ngstarter-ui-components-timezone-select.mjs +651 -371
  272. package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -1
  273. package/fesm2022/ngstarter-ui-components-toolbar.mjs +727 -320
  274. package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -1
  275. package/fesm2022/ngstarter-ui-components-tooltip.mjs +601 -521
  276. package/fesm2022/ngstarter-ui-components-tooltip.mjs.map +1 -1
  277. package/fesm2022/ngstarter-ui-components-tree-select.mjs +1197 -434
  278. package/fesm2022/ngstarter-ui-components-tree-select.mjs.map +1 -1
  279. package/fesm2022/ngstarter-ui-components-tree.mjs +1821 -1262
  280. package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -1
  281. package/fesm2022/ngstarter-ui-components-upload.mjs +1059 -345
  282. package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -1
  283. package/fesm2022/ngstarter-ui-components-video-player.mjs +763 -533
  284. package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -1
  285. package/fesm2022/ngstarter-ui-components-video-viewer.mjs +630 -229
  286. package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -1
  287. package/fesm2022/ngstarter-ui-components-visual-builder.mjs +40 -17
  288. package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -1
  289. package/fesm2022/ngstarter-ui-components-whiteboard.mjs +3039 -1803
  290. package/fesm2022/ngstarter-ui-components-whiteboard.mjs.map +1 -1
  291. package/fesm2022/ngstarter-ui-components.mjs +3 -5
  292. package/fesm2022/ngstarter-ui-components.mjs.map +1 -1
  293. package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs +264 -0
  294. package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs.map +1 -0
  295. package/fesm2022/plain-text-settings-BnxCxLhA.mjs +354 -0
  296. package/fesm2022/plain-text-settings-BnxCxLhA.mjs.map +1 -0
  297. package/fesm2022/quote-block.component-tRmrU97F.mjs +309 -0
  298. package/fesm2022/quote-block.component-tRmrU97F.mjs.map +1 -0
  299. package/fesm2022/table-block.component-BuzRRggv.mjs +1859 -0
  300. package/fesm2022/table-block.component-BuzRRggv.mjs.map +1 -0
  301. package/fesm2022/toggle-block-C5Jo2YDf.mjs +150 -0
  302. package/fesm2022/toggle-block-C5Jo2YDf.mjs.map +1 -0
  303. package/fesm2022/upload-status-tZ0x0BUB.mjs +107 -0
  304. package/fesm2022/upload-status-tZ0x0BUB.mjs.map +1 -0
  305. package/fesm2022/video-block.component-CpAXibm6.mjs +312 -0
  306. package/fesm2022/video-block.component-CpAXibm6.mjs.map +1 -0
  307. package/package.json +11 -10
  308. package/styles/_tokens.scss +1 -0
  309. package/types/ngstarter-ui-components-action-required.d.ts +34 -14
  310. package/types/ngstarter-ui-components-alert.d.ts +53 -44
  311. package/types/ngstarter-ui-components-announcement.d.ts +74 -53
  312. package/types/ngstarter-ui-components-autocomplete.d.ts +141 -84
  313. package/types/ngstarter-ui-components-avatar.d.ts +113 -66
  314. package/types/ngstarter-ui-components-badge.d.ts +73 -37
  315. package/types/ngstarter-ui-components-block-loader.d.ts +32 -20
  316. package/types/ngstarter-ui-components-bottom-sheet.d.ts +125 -132
  317. package/types/ngstarter-ui-components-breadcrumbs.d.ts +93 -88
  318. package/types/ngstarter-ui-components-button-toggle.d.ts +124 -54
  319. package/types/ngstarter-ui-components-button.d.ts +69 -27
  320. package/types/ngstarter-ui-components-calendar.d.ts +123 -71
  321. package/types/ngstarter-ui-components-card-overlay.d.ts +31 -19
  322. package/types/ngstarter-ui-components-card.d.ts +75 -71
  323. package/types/ngstarter-ui-components-carousel.d.ts +115 -69
  324. package/types/ngstarter-ui-components-checkbox.d.ts +183 -86
  325. package/types/ngstarter-ui-components-chips.d.ts +288 -195
  326. package/types/ngstarter-ui-components-code-highlighter.d.ts +71 -28
  327. package/types/ngstarter-ui-components-color-picker.d.ts +140 -89
  328. package/types/ngstarter-ui-components-color-scheme.d.ts +43 -52
  329. package/types/ngstarter-ui-components-color-switcher.d.ts +46 -26
  330. package/types/ngstarter-ui-components-command-bar.d.ts +40 -26
  331. package/types/ngstarter-ui-components-comment-editor.d.ts +311 -235
  332. package/types/ngstarter-ui-components-comparison-slider.d.ts +41 -40
  333. package/types/ngstarter-ui-components-confirm.d.ts +24 -29
  334. package/types/ngstarter-ui-components-content-editor.d.ts +1482 -998
  335. package/types/ngstarter-ui-components-cookie-popup.d.ts +43 -38
  336. package/types/ngstarter-ui-components-core.d.ts +513 -467
  337. package/types/ngstarter-ui-components-country-select.d.ts +170 -97
  338. package/types/ngstarter-ui-components-crop.d.ts +67 -52
  339. package/types/ngstarter-ui-components-currency-select.d.ts +127 -90
  340. package/types/ngstarter-ui-components-data-view.d.ts +811 -567
  341. package/types/ngstarter-ui-components-date-format-select.d.ts +90 -58
  342. package/types/ngstarter-ui-components-datepicker.d.ts +589 -373
  343. package/types/ngstarter-ui-components-dialog.d.ts +138 -116
  344. package/types/ngstarter-ui-components-digit-roller.d.ts +228 -131
  345. package/types/ngstarter-ui-components-divider.d.ts +29 -17
  346. package/types/ngstarter-ui-components-drawer.d.ts +39 -30
  347. package/types/ngstarter-ui-components-emoji-picker.d.ts +69 -47
  348. package/types/ngstarter-ui-components-empty-state.d.ts +20 -28
  349. package/types/ngstarter-ui-components-events.d.ts +73 -57
  350. package/types/ngstarter-ui-components-expand.d.ts +55 -25
  351. package/types/ngstarter-ui-components-expansion.d.ts +93 -64
  352. package/types/ngstarter-ui-components-file-type.d.ts +53 -27
  353. package/types/ngstarter-ui-components-filter-builder.d.ts +131 -100
  354. package/types/ngstarter-ui-components-form-builder.d.ts +1094 -881
  355. package/types/ngstarter-ui-components-form-field.d.ts +116 -105
  356. package/types/ngstarter-ui-components-gauge.d.ts +32 -20
  357. package/types/ngstarter-ui-components-grid.d.ts +66 -50
  358. package/types/ngstarter-ui-components-guided-tour.d.ts +250 -222
  359. package/types/ngstarter-ui-components-headless-editor.d.ts +708 -658
  360. package/types/ngstarter-ui-components-headless-stepper.d.ts +84 -64
  361. package/types/ngstarter-ui-components-icon.d.ts +39 -38
  362. package/types/ngstarter-ui-components-image-designer.d.ts +422 -341
  363. package/types/ngstarter-ui-components-image-placeholder.d.ts +5 -8
  364. package/types/ngstarter-ui-components-image-resizer.d.ts +40 -33
  365. package/types/ngstarter-ui-components-image-viewer.d.ts +67 -54
  366. package/types/ngstarter-ui-components-image-zoom-viewer.d.ts +29 -33
  367. package/types/ngstarter-ui-components-incidents.d.ts +97 -104
  368. package/types/ngstarter-ui-components-inline-text-edit.d.ts +54 -39
  369. package/types/ngstarter-ui-components-input-mask.d.ts +54 -34
  370. package/types/ngstarter-ui-components-input-validator.d.ts +7 -11
  371. package/types/ngstarter-ui-components-input.d.ts +82 -54
  372. package/types/ngstarter-ui-components-kanban-board.d.ts +76 -63
  373. package/types/ngstarter-ui-components-kbd.d.ts +8 -12
  374. package/types/ngstarter-ui-components-layout.d.ts +131 -87
  375. package/types/ngstarter-ui-components-list.d.ts +123 -88
  376. package/types/ngstarter-ui-components-logo.d.ts +21 -21
  377. package/types/ngstarter-ui-components-marquee.d.ts +41 -34
  378. package/types/ngstarter-ui-components-menu.d.ts +329 -221
  379. package/types/ngstarter-ui-components-micro-chart.d.ts +385 -186
  380. package/types/ngstarter-ui-components-navigation.d.ts +186 -125
  381. package/types/ngstarter-ui-components-notifications.d.ts +104 -89
  382. package/types/ngstarter-ui-components-number-input.d.ts +138 -96
  383. package/types/ngstarter-ui-components-option.d.ts +102 -68
  384. package/types/ngstarter-ui-components-overlay.d.ts +7 -12
  385. package/types/ngstarter-ui-components-page-loading-bar.d.ts +23 -20
  386. package/types/ngstarter-ui-components-paginator.d.ts +171 -129
  387. package/types/ngstarter-ui-components-password-strength.d.ts +217 -102
  388. package/types/ngstarter-ui-components-pdf-builder.d.ts +717 -649
  389. package/types/ngstarter-ui-components-pdf-signer.d.ts +202 -142
  390. package/types/ngstarter-ui-components-pdf-viewer.d.ts +544 -385
  391. package/types/ngstarter-ui-components-phone-input.d.ts +175 -115
  392. package/types/ngstarter-ui-components-pin-input.d.ts +83 -45
  393. package/types/ngstarter-ui-components-popover.d.ts +128 -89
  394. package/types/ngstarter-ui-components-progress-bar.d.ts +49 -30
  395. package/types/ngstarter-ui-components-radio-card.d.ts +50 -34
  396. package/types/ngstarter-ui-components-radio.d.ts +100 -47
  397. package/types/ngstarter-ui-components-rail-nav.d.ts +36 -29
  398. package/types/ngstarter-ui-components-resizable-container.d.ts +30 -25
  399. package/types/ngstarter-ui-components-screen-loader.d.ts +38 -32
  400. package/types/ngstarter-ui-components-scroll-spy.d.ts +56 -60
  401. package/types/ngstarter-ui-components-scrollbar-area.d.ts +116 -86
  402. package/types/ngstarter-ui-components-segmented.d.ts +93 -61
  403. package/types/ngstarter-ui-components-select.d.ts +366 -266
  404. package/types/ngstarter-ui-components-side-panel.d.ts +59 -40
  405. package/types/ngstarter-ui-components-sidebar.d.ts +208 -154
  406. package/types/ngstarter-ui-components-sidenav.d.ts +136 -78
  407. package/types/ngstarter-ui-components-signature-pad.d.ts +165 -92
  408. package/types/ngstarter-ui-components-skeleton.d.ts +18 -17
  409. package/types/ngstarter-ui-components-slide-toggle.d.ts +113 -44
  410. package/types/ngstarter-ui-components-slider.d.ts +123 -82
  411. package/types/ngstarter-ui-components-snack-bar.d.ts +126 -134
  412. package/types/ngstarter-ui-components-sort.d.ts +99 -63
  413. package/types/ngstarter-ui-components-spinner.d.ts +49 -27
  414. package/types/ngstarter-ui-components-splash-screen.d.ts +34 -29
  415. package/types/ngstarter-ui-components-split.d.ts +276 -195
  416. package/types/ngstarter-ui-components-step-tracker.d.ts +102 -83
  417. package/types/ngstarter-ui-components-stepper.d.ts +57 -43
  418. package/types/ngstarter-ui-components-suggestions.d.ts +41 -28
  419. package/types/ngstarter-ui-components-tab-panel.d.ts +110 -83
  420. package/types/ngstarter-ui-components-table.d.ts +256 -228
  421. package/types/ngstarter-ui-components-tabs.d.ts +231 -138
  422. package/types/ngstarter-ui-components-thumbnail-maker.d.ts +40 -34
  423. package/types/ngstarter-ui-components-tiles.d.ts +166 -104
  424. package/types/ngstarter-ui-components-timeline.d.ts +45 -57
  425. package/types/ngstarter-ui-components-timepicker.d.ts +166 -111
  426. package/types/ngstarter-ui-components-timezone-select.d.ts +110 -70
  427. package/types/ngstarter-ui-components-toolbar.d.ts +89 -72
  428. package/types/ngstarter-ui-components-tooltip.d.ts +89 -52
  429. package/types/ngstarter-ui-components-tree-select.d.ts +182 -105
  430. package/types/ngstarter-ui-components-tree.d.ts +355 -229
  431. package/types/ngstarter-ui-components-upload.d.ts +216 -131
  432. package/types/ngstarter-ui-components-video-player.d.ts +130 -67
  433. package/types/ngstarter-ui-components-video-viewer.d.ts +140 -91
  434. package/types/ngstarter-ui-components-visual-builder.d.ts +5 -8
  435. package/types/ngstarter-ui-components-whiteboard.d.ts +412 -339
  436. package/types/ngstarter-ui-components.d.ts +2 -2
  437. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-BgKuFsDy.mjs +0 -35
  438. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-BgKuFsDy.mjs.map +0 -1
  439. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs +0 -26
  440. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs.map +0 -1
  441. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.mjs +0 -220
  442. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.mjs.map +0 -1
  443. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs +0 -99
  444. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs.map +0 -1
  445. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs +0 -40
  446. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs.map +0 -1
  447. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-Bo3irEeG.mjs +0 -375
  448. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-Bo3irEeG.mjs.map +0 -1
  449. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs +0 -80
  450. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs.map +0 -1
  451. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs +0 -65
  452. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs.map +0 -1
  453. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs +0 -137
  454. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs.map +0 -1
  455. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs +0 -113
  456. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs.map +0 -1
  457. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs +0 -188
  458. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs.map +0 -1
  459. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs +0 -117
  460. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs.map +0 -1
  461. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs +0 -4464
  462. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs.map +0 -1
  463. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs +0 -132
  464. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs.map +0 -1
  465. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs +0 -171
  466. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs.map +0 -1
  467. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs +0 -1653
  468. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs.map +0 -1
  469. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.mjs +0 -20
  470. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.mjs.map +0 -1
  471. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs +0 -19
  472. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs.map +0 -1
  473. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-laP7DTyq.mjs +0 -134
  474. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-laP7DTyq.mjs.map +0 -1
  475. package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs +0 -159
  476. package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs.map +0 -1
@@ -0,0 +1,345 @@
1
+ import { c as contentEditorCollection, i as cloneContentEditorValue, n as CONTENT_BUILDER, o as contentEditorBlockView, p as findContentEditorBlock, s as contentEditorChildCollections, t as ContentBuilderStore } from "./content-builder.store-D622mHxt.mjs";
2
+ import * as i0 from "@angular/core";
3
+ import { ChangeDetectionStrategy, Component, DestroyRef, EventEmitter, afterNextRender, computed, effect, forwardRef, inject, input, signal, viewChild } from "@angular/core";
4
+ import { Icon } from "@ngstarter-ui/components/icon";
5
+ import { Button } from "@ngstarter-ui/components/button";
6
+ import { AsyncPipe, DOCUMENT as DOCUMENT$1, NgComponentOutlet } from "@angular/common";
7
+ import { createNgsHeadlessEditorId } from "@ngstarter-ui/components/headless-editor";
8
+ import { Menu, MenuItem, MenuTrigger } from "@ngstarter-ui/components/menu";
9
+ import { CdkDrag, CdkDragHandle, CdkDropList } from "@angular/cdk/drag-drop";
10
+ var ContentEditorNestedBlocks = class ContentEditorNestedBlocks {
11
+ parent = inject(CONTENT_BUILDER, { skipSelf: true });
12
+ store = inject(ContentBuilderStore);
13
+ document = inject(DOCUMENT$1);
14
+ dropList = viewChild.required(CdkDropList, ...ngDevMode ? [{ debugName: "dropList" }] : /* istanbul ignore next */ []);
15
+ connectedDropLists = this.store.dropLists;
16
+ scope = input.required(...ngDevMode ? [{ debugName: "scope" }] : /* istanbul ignore next */ []);
17
+ emptyBlock = signal(this.rootBuilder.createBlockView("paragraph"), ...ngDevMode ? [{ debugName: "emptyBlock" }] : /* istanbul ignore next */ []);
18
+ focusChanged = new EventEmitter();
19
+ constructor() {
20
+ effect(() => {
21
+ if (this.blocks().some((block) => block.id === this.emptyBlock().id)) this.emptyBlock.set(this.rootBuilder.createBlockView("paragraph"));
22
+ });
23
+ let registered = null;
24
+ afterNextRender(() => {
25
+ registered = this.dropList();
26
+ this.store.registerDropList(registered);
27
+ });
28
+ inject(DestroyRef).onDestroy(() => {
29
+ if (registered) this.store.unregisterDropList(registered);
30
+ });
31
+ }
32
+ get rootBuilder() {
33
+ return this.parent.rootBuilder;
34
+ }
35
+ blocks = computed(() => contentEditorCollection(this.store.editor.document().blocks, this.scope()).map(contentEditorBlockView), ...ngDevMode ? [{ debugName: "blocks" }] : /* istanbul ignore next */ []);
36
+ renderedBlocks = computed(() => {
37
+ const blocks = this.blocks();
38
+ return blocks.length ? blocks : [this.emptyBlock()];
39
+ }, ...ngDevMode ? [{ debugName: "renderedBlocks" }] : /* istanbul ignore next */ []);
40
+ getBlockComponent(type) {
41
+ return this.rootBuilder.getBlockComponent(type);
42
+ }
43
+ getBlockDefOption(type, key) {
44
+ return this.rootBuilder.getBlockDefOption(type, key);
45
+ }
46
+ emitContentChangeEvent() {}
47
+ focusBlock(id) {
48
+ this.store.setFocusedBlockId(id);
49
+ this.focusChanged.emit();
50
+ }
51
+ insertEmptyBlock(index) {
52
+ this.addBlock("paragraph", {}, index + 1);
53
+ }
54
+ updateParagraph(id, data) {
55
+ if (this.blocks().some((block) => block.id === id)) this.store.updateBlock(id, data);
56
+ else if (id === this.emptyBlock().id) this.store.addBlock({
57
+ ...this.emptyBlock(),
58
+ ...data
59
+ }, this.blocks().length, this.scope());
60
+ }
61
+ addBlock(type, settings = {}, index = this.blocks().length) {
62
+ const block = this.rootBuilder.createBlockView(type, settings);
63
+ this.store.addBlock(block, index, this.scope());
64
+ this.focusBlock(block.id);
65
+ }
66
+ deleteBlock(id) {
67
+ const index = this.blocks().findIndex((block) => block.id === id);
68
+ if (index < 0) return;
69
+ this.store.deleteBlock(id, index);
70
+ this.focusBlock(this.blocks()[Math.max(0, index - 1)]?.id ?? null);
71
+ }
72
+ duplicateBlock(id) {
73
+ const index = this.blocks().findIndex((block) => block.id === id);
74
+ if (index < 0) return;
75
+ const block = cloneContentEditorValue(this.blocks()[index]);
76
+ const reidentify = (item) => {
77
+ item.id = createNgsHeadlessEditorId(item.type);
78
+ for (const children of contentEditorChildCollections(item)) for (const child of children) reidentify(child);
79
+ if (item.type === "grid") for (const cell of item.content.cells) cell.id = createNgsHeadlessEditorId("cell");
80
+ if (item.type === "gallery") for (const image of item.content.images) image.id = createNgsHeadlessEditorId("image");
81
+ };
82
+ reidentify(block);
83
+ this.store.addBlock(block, index + 1, this.scope());
84
+ }
85
+ drop(event) {
86
+ this.store.moveBetweenCollections(event.previousIndex, event.currentIndex, event.previousContainer.data, event.container.data);
87
+ }
88
+ onDragStarted() {
89
+ this.store.setDragging(true);
90
+ }
91
+ onDragEnded() {
92
+ this.store.setDragging(false);
93
+ }
94
+ canEnter = (drag, drop) => {
95
+ const pointer = this.store.dragPointer();
96
+ const nearest = pointer ? this.document.elementFromPoint(pointer.x, pointer.y)?.closest(".cdk-drop-list") : null;
97
+ if (nearest && nearest.id !== drop.id) return false;
98
+ const parentId = drop.data.parentId;
99
+ const block = findContentEditorBlock(this.store.editor.document().blocks, drag.data);
100
+ return !parentId || !block || !findContentEditorBlock([block], parentId);
101
+ };
102
+ onKeyDown(event) {
103
+ if (event.defaultPrevented) return;
104
+ if ((event.ctrlKey || event.metaKey) && ["z", "y"].includes(event.key.toLowerCase())) {
105
+ if (event.key.toLowerCase() === "y" || event.shiftKey ? this.store.editor.redo() : this.store.editor.undo()) event.preventDefault();
106
+ event.stopPropagation();
107
+ }
108
+ }
109
+ static ɵfac = i0.ɵɵngDeclareFactory({
110
+ minVersion: "12.0.0",
111
+ version: "22.3.0",
112
+ ngImport: i0,
113
+ type: ContentEditorNestedBlocks,
114
+ deps: [],
115
+ target: i0.ɵɵFactoryTarget.Component
116
+ });
117
+ static ɵcmp = i0.ɵɵngDeclareComponent({
118
+ minVersion: "17.0.0",
119
+ version: "22.3.0",
120
+ type: ContentEditorNestedBlocks,
121
+ isStandalone: true,
122
+ selector: "ngs-content-editor-nested-blocks",
123
+ inputs: { scope: {
124
+ classPropertyName: "scope",
125
+ publicName: "scope",
126
+ isSignal: true,
127
+ isRequired: true,
128
+ transformFunction: null
129
+ } },
130
+ host: { listeners: { "keydown": "onKeyDown($event)" } },
131
+ providers: [{
132
+ provide: CONTENT_BUILDER,
133
+ useExisting: forwardRef(() => ContentEditorNestedBlocks)
134
+ }],
135
+ viewQueries: [{
136
+ propertyName: "dropList",
137
+ first: true,
138
+ predicate: CdkDropList,
139
+ descendants: true,
140
+ isSignal: true
141
+ }],
142
+ ngImport: i0,
143
+ template: "<div cdkDropList [cdkDropListData]=\"scope()\" [cdkDropListConnectedTo]=\"connectedDropLists()\" [cdkDropListEnterPredicate]=\"canEnter\" (cdkDropListDropped)=\"drop($event)\" class=\"min-h-12\">\n @for (block of renderedBlocks(); track block.id) {\n <div cdkDrag [cdkDragData]=\"block.id\" (cdkDragStarted)=\"onDragStarted()\" (cdkDragEnded)=\"onDragEnded()\" class=\"nested-block relative min-w-0 py-2\" [attr.data-block-id]=\"block.id\">\n <div class=\"nested-controls block-controls absolute top-1/2 z-10 flex -translate-y-1/2 items-center\"\n [class.is-menu-open]=\"addTrigger.menuOpen() || actionsTrigger.menuOpen()\">\n <button ngsIconButton aria-label=\"Add block\" #addTrigger=\"ngsMenuTrigger\"\n [ngsMenuTriggerFor]=\"rootBuilder.blockMenu()\" [ngsMenuTriggerRestoreFocus]=\"false\"\n [ngsMenuTriggerData]=\"{target: {scope: scope(), afterId: block.id}}\">\n <ngs-icon name=\"fluent:add-24-regular\"/>\n </button>\n <button ngsIconButton cdkDragHandle [ngsMenuTriggerFor]=\"blockMenu\"\n #actionsTrigger=\"ngsMenuTrigger\" aria-label=\"Move block\"><ngs-icon name=\"fluent:re-order-dots-vertical-24-regular\"/></button>\n <ngs-menu #blockMenu>\n @if (block.type === 'table' && rootBuilder.tableWidthAction(block.id); as action) {\n <button ngs-menu-item (click)=\"rootBuilder.toggleTableWidth(block.id)\">{{ action }}</button>\n }\n @if (rootBuilder.canConvertBlock(block.id)) {\n <button ngs-menu-item [ngsMenuTriggerFor]=\"rootBuilder.conversionMenu()\" [ngsMenuTriggerData]=\"{blockId: block.id}\" [ngsMenuTriggerRestoreFocus]=\"false\">Turn into</button>\n }\n <button ngs-menu-item (click)=\"duplicateBlock(block.id)\">Duplicate</button>\n <button ngs-menu-item (click)=\"deleteBlock(block.id)\">Delete</button>\n </ngs-menu>\n </div>\n <div class=\"min-w-0\">\n <ng-container [ngComponentOutlet]=\"getBlockComponent(block.type) | async\"\n [ngComponentOutletInputs]=\"{id: block.id, content: block.content, settings: block.settings, props: block.props, index: $index}\"/>\n </div>\n </div>\n }\n</div>\n",
144
+ styles: [":host{--ngs-content-editor-nested-controls-offset: 0px;display:block;min-width:0}:host .nested-controls{--ngs-button-height: var(--ngs-content-editor-control-size, calc(var(--spacing, .25rem) * 8));right:100%;width:calc(calc(var(--spacing, .25rem) * 18) + var(--ngs-content-editor-nested-controls-offset));padding-left:calc(var(--spacing, .25rem) * 2);padding-right:calc(calc(var(--spacing, .25rem) * 2) + var(--ngs-content-editor-nested-controls-offset));opacity:0;pointer-events:none}:host .nested-controls.is-menu-open{opacity:1;pointer-events:auto}@media(hover:none){:host .nested-controls{opacity:1;pointer-events:auto}}:host .nested-block:hover .nested-controls,:host .nested-block:focus-within .nested-controls{opacity:1;pointer-events:auto}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
145
+ dependencies: [
146
+ {
147
+ kind: "directive",
148
+ type: NgComponentOutlet,
149
+ selector: "[ngComponentOutlet]",
150
+ inputs: [
151
+ "ngComponentOutlet",
152
+ "ngComponentOutletInputs",
153
+ "ngComponentOutletInjector",
154
+ "ngComponentOutletEnvironmentInjector",
155
+ "ngComponentOutletContent",
156
+ "ngComponentOutletNgModule"
157
+ ],
158
+ exportAs: ["ngComponentOutlet"]
159
+ },
160
+ {
161
+ kind: "directive",
162
+ type: CdkDrag,
163
+ selector: "[cdkDrag]",
164
+ inputs: [
165
+ "cdkDragData",
166
+ "cdkDragLockAxis",
167
+ "cdkDragRootElement",
168
+ "cdkDragBoundary",
169
+ "cdkDragStartDelay",
170
+ "cdkDragFreeDragPosition",
171
+ "cdkDragDisabled",
172
+ "cdkDragConstrainPosition",
173
+ "cdkDragPreviewClass",
174
+ "cdkDragPreviewContainer",
175
+ "cdkDragScale"
176
+ ],
177
+ outputs: [
178
+ "cdkDragStarted",
179
+ "cdkDragReleased",
180
+ "cdkDragEnded",
181
+ "cdkDragEntered",
182
+ "cdkDragExited",
183
+ "cdkDragDropped",
184
+ "cdkDragMoved"
185
+ ],
186
+ exportAs: ["cdkDrag"]
187
+ },
188
+ {
189
+ kind: "directive",
190
+ type: CdkDragHandle,
191
+ selector: "[cdkDragHandle]",
192
+ inputs: ["cdkDragHandleDisabled"]
193
+ },
194
+ {
195
+ kind: "directive",
196
+ type: CdkDropList,
197
+ selector: "[cdkDropList], cdk-drop-list",
198
+ inputs: [
199
+ "cdkDropListConnectedTo",
200
+ "cdkDropListData",
201
+ "cdkDropListOrientation",
202
+ "id",
203
+ "cdkDropListLockAxis",
204
+ "cdkDropListDisabled",
205
+ "cdkDropListSortingDisabled",
206
+ "cdkDropListEnterPredicate",
207
+ "cdkDropListSortPredicate",
208
+ "cdkDropListAutoScrollDisabled",
209
+ "cdkDropListAutoScrollStep",
210
+ "cdkDropListElementContainer",
211
+ "cdkDropListHasAnchor"
212
+ ],
213
+ outputs: [
214
+ "cdkDropListDropped",
215
+ "cdkDropListEntered",
216
+ "cdkDropListExited",
217
+ "cdkDropListSorted"
218
+ ],
219
+ exportAs: ["cdkDropList"]
220
+ },
221
+ {
222
+ kind: "component",
223
+ type: Button,
224
+ selector: "\n button[ngsButton], button[ngsIconButton],\n a[ngsButton], a[ngsIconButton]\n ",
225
+ inputs: [
226
+ "ngsButton",
227
+ "ngsIconButton",
228
+ "loading",
229
+ "disabled",
230
+ "disabledInteractive",
231
+ "disableRipple",
232
+ "reverse",
233
+ "fullWidth",
234
+ "hideTextOnMobile"
235
+ ],
236
+ exportAs: ["ngsButton"]
237
+ },
238
+ {
239
+ kind: "component",
240
+ type: Icon,
241
+ selector: "ngs-icon",
242
+ inputs: ["name"],
243
+ exportAs: ["ngsIcon"]
244
+ },
245
+ {
246
+ kind: "component",
247
+ type: Menu,
248
+ selector: "ngs-menu",
249
+ inputs: [
250
+ "themeSource",
251
+ "role",
252
+ "classList",
253
+ "xPosition",
254
+ "yPosition",
255
+ "pushIntoViewport"
256
+ ],
257
+ outputs: ["closed"],
258
+ exportAs: ["ngsMenu"]
259
+ },
260
+ {
261
+ kind: "component",
262
+ type: MenuItem,
263
+ selector: "ngs-menu-item, [ngs-menu-item]",
264
+ inputs: [
265
+ "disabled",
266
+ "role",
267
+ "selected"
268
+ ],
269
+ outputs: ["_triggered"],
270
+ exportAs: ["ngsMenuItem"]
271
+ },
272
+ {
273
+ kind: "directive",
274
+ type: MenuTrigger,
275
+ selector: "[ngsMenuTriggerFor]",
276
+ inputs: [
277
+ "ngsMenuTriggerFor",
278
+ "ngsMenuTriggerData",
279
+ "ngsMenuDisabled",
280
+ "xPosition",
281
+ "yPosition",
282
+ "ngsMenuTriggerRestoreFocus"
283
+ ],
284
+ outputs: ["menuOpened", "menuClosed"],
285
+ exportAs: ["ngsMenuTrigger"]
286
+ },
287
+ {
288
+ kind: "pipe",
289
+ type: AsyncPipe,
290
+ name: "async"
291
+ }
292
+ ],
293
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
294
+ });
295
+ };
296
+ i0.ɵɵngDeclareClassMetadata({
297
+ minVersion: "12.0.0",
298
+ version: "22.3.0",
299
+ ngImport: i0,
300
+ type: ContentEditorNestedBlocks,
301
+ decorators: [{
302
+ type: Component,
303
+ args: [{
304
+ selector: "ngs-content-editor-nested-blocks",
305
+ imports: [
306
+ AsyncPipe,
307
+ NgComponentOutlet,
308
+ CdkDrag,
309
+ CdkDragHandle,
310
+ CdkDropList,
311
+ Button,
312
+ Icon,
313
+ Menu,
314
+ MenuItem,
315
+ MenuTrigger
316
+ ],
317
+ providers: [{
318
+ provide: CONTENT_BUILDER,
319
+ useExisting: forwardRef(() => ContentEditorNestedBlocks)
320
+ }],
321
+ changeDetection: ChangeDetectionStrategy.OnPush,
322
+ host: { "(keydown)": "onKeyDown($event)" },
323
+ template: "<div cdkDropList [cdkDropListData]=\"scope()\" [cdkDropListConnectedTo]=\"connectedDropLists()\" [cdkDropListEnterPredicate]=\"canEnter\" (cdkDropListDropped)=\"drop($event)\" class=\"min-h-12\">\n @for (block of renderedBlocks(); track block.id) {\n <div cdkDrag [cdkDragData]=\"block.id\" (cdkDragStarted)=\"onDragStarted()\" (cdkDragEnded)=\"onDragEnded()\" class=\"nested-block relative min-w-0 py-2\" [attr.data-block-id]=\"block.id\">\n <div class=\"nested-controls block-controls absolute top-1/2 z-10 flex -translate-y-1/2 items-center\"\n [class.is-menu-open]=\"addTrigger.menuOpen() || actionsTrigger.menuOpen()\">\n <button ngsIconButton aria-label=\"Add block\" #addTrigger=\"ngsMenuTrigger\"\n [ngsMenuTriggerFor]=\"rootBuilder.blockMenu()\" [ngsMenuTriggerRestoreFocus]=\"false\"\n [ngsMenuTriggerData]=\"{target: {scope: scope(), afterId: block.id}}\">\n <ngs-icon name=\"fluent:add-24-regular\"/>\n </button>\n <button ngsIconButton cdkDragHandle [ngsMenuTriggerFor]=\"blockMenu\"\n #actionsTrigger=\"ngsMenuTrigger\" aria-label=\"Move block\"><ngs-icon name=\"fluent:re-order-dots-vertical-24-regular\"/></button>\n <ngs-menu #blockMenu>\n @if (block.type === 'table' && rootBuilder.tableWidthAction(block.id); as action) {\n <button ngs-menu-item (click)=\"rootBuilder.toggleTableWidth(block.id)\">{{ action }}</button>\n }\n @if (rootBuilder.canConvertBlock(block.id)) {\n <button ngs-menu-item [ngsMenuTriggerFor]=\"rootBuilder.conversionMenu()\" [ngsMenuTriggerData]=\"{blockId: block.id}\" [ngsMenuTriggerRestoreFocus]=\"false\">Turn into</button>\n }\n <button ngs-menu-item (click)=\"duplicateBlock(block.id)\">Duplicate</button>\n <button ngs-menu-item (click)=\"deleteBlock(block.id)\">Delete</button>\n </ngs-menu>\n </div>\n <div class=\"min-w-0\">\n <ng-container [ngComponentOutlet]=\"getBlockComponent(block.type) | async\"\n [ngComponentOutletInputs]=\"{id: block.id, content: block.content, settings: block.settings, props: block.props, index: $index}\"/>\n </div>\n </div>\n }\n</div>\n",
324
+ styles: [":host{--ngs-content-editor-nested-controls-offset: 0px;display:block;min-width:0}:host .nested-controls{--ngs-button-height: var(--ngs-content-editor-control-size, calc(var(--spacing, .25rem) * 8));right:100%;width:calc(calc(var(--spacing, .25rem) * 18) + var(--ngs-content-editor-nested-controls-offset));padding-left:calc(var(--spacing, .25rem) * 2);padding-right:calc(calc(var(--spacing, .25rem) * 2) + var(--ngs-content-editor-nested-controls-offset));opacity:0;pointer-events:none}:host .nested-controls.is-menu-open{opacity:1;pointer-events:auto}@media(hover:none){:host .nested-controls{opacity:1;pointer-events:auto}}:host .nested-block:hover .nested-controls,:host .nested-block:focus-within .nested-controls{opacity:1;pointer-events:auto}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
325
+ }]
326
+ }],
327
+ ctorParameters: () => [],
328
+ propDecorators: {
329
+ dropList: [{
330
+ type: i0.ViewChild,
331
+ args: [i0.forwardRef(() => CdkDropList), { isSignal: true }]
332
+ }],
333
+ scope: [{
334
+ type: i0.Input,
335
+ args: [{
336
+ isSignal: true,
337
+ alias: "scope",
338
+ required: true
339
+ }]
340
+ }]
341
+ }
342
+ });
343
+ export { ContentEditorNestedBlocks as t };
344
+
345
+ //# sourceMappingURL=nested-blocks-CXhgXJ1H.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nested-blocks-CXhgXJ1H.mjs","names":["DOCUMENT"],"sources":["../../../projects/components/content-editor/src/_builder/nested-blocks/nested-blocks.ts","../../../projects/components/content-editor/src/_builder/nested-blocks/nested-blocks.html"],"sourcesContent":["import { AsyncPipe, DOCUMENT, NgComponentOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, DestroyRef, EventEmitter, afterNextRender, computed, effect, forwardRef, inject, input, signal, viewChild } from '@angular/core';\nimport { CdkDrag, CdkDragDrop, CdkDragHandle, CdkDropList } from '@angular/cdk/drag-drop';\nimport { Button } from '@ngstarter-ui/components/button';\nimport { Icon } from '@ngstarter-ui/components/icon';\nimport { Menu, MenuItem, MenuTrigger } from '@ngstarter-ui/components/menu';\nimport { ContentBuilderComponent } from '../../content-builder/content-builder.component';\nimport { ContentBuilderStore } from '../../content-builder.store';\nimport { CONTENT_BUILDER, ContentEditorBlockScope, ContentEditorBlockView } from '../../types';\nimport { cloneContentEditorValue, contentEditorBlockView, contentEditorCollection, contentEditorChildCollections, findContentEditorBlock } from '../../document';\nimport { createNgsHeadlessEditorId } from '@ngstarter-ui/components/headless-editor';\n\n@Component({\n selector: 'ngs-content-editor-nested-blocks',\n imports: [AsyncPipe, NgComponentOutlet, CdkDrag, CdkDragHandle, CdkDropList, Button, Icon, Menu, MenuItem, MenuTrigger],\n providers: [{ provide: CONTENT_BUILDER, useExisting: forwardRef(() => ContentEditorNestedBlocks) }],\n templateUrl: './nested-blocks.html', styleUrl: './nested-blocks.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '(keydown)': 'onKeyDown($event)' }\n})\nexport class ContentEditorNestedBlocks {\n private readonly parent = inject<ContentBuilderComponent>(CONTENT_BUILDER, { skipSelf: true });\n private readonly store = inject(ContentBuilderStore);\n private readonly document = inject(DOCUMENT);\n private readonly dropList = viewChild.required(CdkDropList);\n readonly connectedDropLists = this.store.dropLists;\n readonly scope = input.required<ContentEditorBlockScope>();\n readonly emptyBlock = signal(this.rootBuilder.createBlockView('paragraph'));\n readonly focusChanged = new EventEmitter<void>();\n constructor() {\n effect(() => {\n if (this.blocks().some(block => block.id === this.emptyBlock().id)) this.emptyBlock.set(this.rootBuilder.createBlockView('paragraph'));\n });\n let registered: CdkDropList<ContentEditorBlockScope> | null = null;\n afterNextRender(() => { registered = this.dropList(); this.store.registerDropList(registered); });\n inject(DestroyRef).onDestroy(() => { if (registered) this.store.unregisterDropList(registered); });\n }\n get rootBuilder(): ContentBuilderComponent { return this.parent.rootBuilder; }\n readonly blocks = computed(() => contentEditorCollection(this.store.editor.document().blocks, this.scope()).map(contentEditorBlockView));\n readonly renderedBlocks = computed(() => {\n const blocks = this.blocks();\n return blocks.length ? blocks : [this.emptyBlock()];\n });\n getBlockComponent(type: string): any { return this.rootBuilder.getBlockComponent(type); }\n getBlockDefOption(type: string, key: string): any { return this.rootBuilder.getBlockDefOption(type, key); }\n emitContentChangeEvent(): void {}\n focusBlock(id: string | null): void { this.store.setFocusedBlockId(id); this.focusChanged.emit(); }\n insertEmptyBlock(index: number): void { this.addBlock('paragraph', {}, index + 1); }\n updateParagraph(id: string, data: Partial<ContentEditorBlockView>): void {\n if (this.blocks().some(block => block.id === id)) this.store.updateBlock(id, data);\n else if (id === this.emptyBlock().id) this.store.addBlock({ ...this.emptyBlock(), ...data }, this.blocks().length, this.scope());\n }\n addBlock(type: string, settings = {}, index = this.blocks().length): void {\n const block = this.rootBuilder.createBlockView(type, settings);\n this.store.addBlock(block, index, this.scope());\n this.focusBlock(block.id);\n }\n deleteBlock(id: string): void {\n const index = this.blocks().findIndex(block => block.id === id);\n if (index < 0) return;\n this.store.deleteBlock(id, index);\n this.focusBlock(this.blocks()[Math.max(0, index - 1)]?.id ?? null);\n }\n duplicateBlock(id: string): void {\n const index = this.blocks().findIndex(block => block.id === id);\n if (index < 0) return;\n const block = cloneContentEditorValue(this.blocks()[index]);\n const reidentify = (item: any) => {\n item.id = createNgsHeadlessEditorId(item.type);\n for (const children of contentEditorChildCollections(item)) for (const child of children) reidentify(child);\n if (item.type === 'grid') for (const cell of item.content.cells) cell.id = createNgsHeadlessEditorId('cell');\n if (item.type === 'gallery') for (const image of item.content.images) image.id = createNgsHeadlessEditorId('image');\n };\n reidentify(block);\n this.store.addBlock(block, index + 1, this.scope());\n }\n drop(event: CdkDragDrop<ContentEditorBlockScope>): void {\n this.store.moveBetweenCollections(event.previousIndex, event.currentIndex, event.previousContainer.data, event.container.data);\n }\n onDragStarted(): void { this.store.setDragging(true); }\n onDragEnded(): void { this.store.setDragging(false); }\n readonly canEnter = (drag: CdkDrag<string>, drop: CdkDropList<ContentEditorBlockScope>): boolean => {\n const pointer = this.store.dragPointer();\n const nearest = pointer ? this.document.elementFromPoint(pointer.x, pointer.y)?.closest('.cdk-drop-list') : null;\n if (nearest && nearest.id !== drop.id) return false;\n const parentId = drop.data.parentId;\n const block = findContentEditorBlock(this.store.editor.document().blocks, drag.data);\n return !parentId || !block || !findContentEditorBlock([block], parentId);\n };\n onKeyDown(event: KeyboardEvent): void {\n if (event.defaultPrevented) return;\n if ((event.ctrlKey || event.metaKey) && ['z', 'y'].includes(event.key.toLowerCase())) {\n const redo = event.key.toLowerCase() === 'y' || event.shiftKey;\n if (redo ? this.store.editor.redo() : this.store.editor.undo()) event.preventDefault();\n event.stopPropagation();\n }\n }\n}\n","<div cdkDropList [cdkDropListData]=\"scope()\" [cdkDropListConnectedTo]=\"connectedDropLists()\" [cdkDropListEnterPredicate]=\"canEnter\" (cdkDropListDropped)=\"drop($event)\" class=\"min-h-12\">\n @for (block of renderedBlocks(); track block.id) {\n <div cdkDrag [cdkDragData]=\"block.id\" (cdkDragStarted)=\"onDragStarted()\" (cdkDragEnded)=\"onDragEnded()\" class=\"nested-block relative min-w-0 py-2\" [attr.data-block-id]=\"block.id\">\n <div class=\"nested-controls block-controls absolute top-1/2 z-10 flex -translate-y-1/2 items-center\"\n [class.is-menu-open]=\"addTrigger.menuOpen() || actionsTrigger.menuOpen()\">\n <button ngsIconButton aria-label=\"Add block\" #addTrigger=\"ngsMenuTrigger\"\n [ngsMenuTriggerFor]=\"rootBuilder.blockMenu()\" [ngsMenuTriggerRestoreFocus]=\"false\"\n [ngsMenuTriggerData]=\"{target: {scope: scope(), afterId: block.id}}\">\n <ngs-icon name=\"fluent:add-24-regular\"/>\n </button>\n <button ngsIconButton cdkDragHandle [ngsMenuTriggerFor]=\"blockMenu\"\n #actionsTrigger=\"ngsMenuTrigger\" aria-label=\"Move block\"><ngs-icon name=\"fluent:re-order-dots-vertical-24-regular\"/></button>\n <ngs-menu #blockMenu>\n @if (block.type === 'table' && rootBuilder.tableWidthAction(block.id); as action) {\n <button ngs-menu-item (click)=\"rootBuilder.toggleTableWidth(block.id)\">{{ action }}</button>\n }\n @if (rootBuilder.canConvertBlock(block.id)) {\n <button ngs-menu-item [ngsMenuTriggerFor]=\"rootBuilder.conversionMenu()\" [ngsMenuTriggerData]=\"{blockId: block.id}\" [ngsMenuTriggerRestoreFocus]=\"false\">Turn into</button>\n }\n <button ngs-menu-item (click)=\"duplicateBlock(block.id)\">Duplicate</button>\n <button ngs-menu-item (click)=\"deleteBlock(block.id)\">Delete</button>\n </ngs-menu>\n </div>\n <div class=\"min-w-0\">\n <ng-container [ngComponentOutlet]=\"getBlockComponent(block.type) | async\"\n [ngComponentOutletInputs]=\"{id: block.id, content: block.content, settings: block.settings, props: block.props, index: $index}\"/>\n </div>\n </div>\n }\n</div>\n"],"mappings":";;;;;;;;;AAoBA,IAAa,4BAAb,MAAa,0BAAyB;CACnB,SAAS,OAAgC,iBAAiB,EAAE,UAAU,KAAI,CAAE;CAC5E,QAAQ,OAAO,mBAAmB;CAClC,WAAW,OAAOA,UAAQ;CAC1B,WAAW,UAAU,SAAS,aAAY,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAClD,qBAAqB,KAAK,MAAM;CAChC,QAAQ,MAAM,SAAmC,GAA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UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -1,46 +1,151 @@
1
- import * as i0 from '@angular/core';
2
- import { input, output, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { Icon } from '@ngstarter-ui/components/icon';
4
- import { Button } from '@ngstarter-ui/components/button';
5
-
6
- class ActionRequired {
7
- actionText = input(/* @ts-ignore */
8
- ...(ngDevMode ? [undefined, { debugName: "actionText" }] : /* istanbul ignore next */ []));
9
- iconName = input(/* @ts-ignore */
10
- ...(ngDevMode ? [undefined, { debugName: "iconName" }] : /* istanbul ignore next */ []));
11
- description = input.required(/* @ts-ignore */
12
- ...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
13
- buttonText = input.required(/* @ts-ignore */
14
- ...(ngDevMode ? [{ debugName: "buttonText" }] : /* istanbul ignore next */ []));
15
- buttonClicked = output();
16
- getIconName(iconName) {
17
- if (iconName === 'error') {
18
- return 'fluent:error-circle-24-regular';
19
- }
20
- if (iconName === 'warning') {
21
- return 'fluent:warning-24-regular';
22
- }
23
- if (iconName === 'help') {
24
- return 'fluent:question-circle-24-regular';
25
- }
26
- return iconName;
27
- }
28
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ActionRequired, deps: [], target: i0.ɵɵFactoryTarget.Component });
29
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: ActionRequired, isStandalone: true, selector: "ngs-action-required", inputs: { actionText: { classPropertyName: "actionText", publicName: "actionText", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: true, transformFunction: null }, buttonText: { classPropertyName: "buttonText", publicName: "buttonText", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { buttonClicked: "buttonClicked" }, host: { classAttribute: "ngs-action-required" }, exportAs: ["ngsActionRequired"], ngImport: i0, template: "<div class=\"action-text\">\n <ngs-icon [name]=\"getIconName(iconName() || 'error')\"/>\n {{ actionText() || 'Action Required' }}\n</div>\n<div class=\"description\">{{ description() }}</div>\n<button ngsButton=\"filled\" class=\"button\" (click)=\"buttonClicked.emit()\">\n {{ buttonText() }}\n<!-- <ngs-icon name=\"fluent:arrow-right-24-regular\"/>-->\n</button>\n", styles: [":host{--ngs-action-required-bg: linear-gradient(135deg, var(--ngs-color-danger-container), var(--ngs-color-danger-container-highest));--ngs-action-action-text-bg: var(--ngs-color-surface);--ngs-action-text-color: var(--ngs-color-on-danger-container);display:flex;width:100%;border-radius:var(--ngs-radius-xl);padding:calc(var(--spacing, .25rem) * 6);gap:calc(var(--spacing, .25rem) * 8);align-items:center;background:var(--ngs-action-required-bg);color:var(--ngs-action-text-color)}:host .action-text{display:flex;border-radius:var(--ngs-radius-xl);background:var(--ngs-action-action-text-bg);padding:calc(var(--spacing, .25rem) * 2.5) calc(var(--spacing, .25rem) * 3) calc(var(--spacing, .25rem) * 2.5) calc(var(--spacing, .25rem) * 2.5);align-items:center;flex:none;font-size:var(--text-md);gap:calc(var(--spacing, .25rem) * 1.5)}:host .description{flex-grow:1}:host .button{flex:none}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: Icon, selector: "ngs-icon", inputs: ["name"], exportAs: ["ngsIcon"] }, { kind: "component", type: Button, selector: " button[ngsButton], button[ngsIconButton], a[ngsButton], a[ngsIconButton] ", inputs: ["ngsButton", "ngsIconButton", "loading", "disabled", "disabledInteractive", "disableRipple", "reverse", "fullWidth", "hideTextOnMobile"], exportAs: ["ngsButton"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
30
- }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ActionRequired, decorators: [{
32
- type: Component,
33
- args: [{ selector: 'ngs-action-required', exportAs: 'ngsActionRequired', imports: [
34
- Icon,
35
- Button
36
- ], changeDetection: ChangeDetectionStrategy.Eager, host: {
37
- 'class': 'ngs-action-required',
38
- }, template: "<div class=\"action-text\">\n <ngs-icon [name]=\"getIconName(iconName() || 'error')\"/>\n {{ actionText() || 'Action Required' }}\n</div>\n<div class=\"description\">{{ description() }}</div>\n<button ngsButton=\"filled\" class=\"button\" (click)=\"buttonClicked.emit()\">\n {{ buttonText() }}\n<!-- <ngs-icon name=\"fluent:arrow-right-24-regular\"/>-->\n</button>\n", styles: [":host{--ngs-action-required-bg: linear-gradient(135deg, var(--ngs-color-danger-container), var(--ngs-color-danger-container-highest));--ngs-action-action-text-bg: var(--ngs-color-surface);--ngs-action-text-color: var(--ngs-color-on-danger-container);display:flex;width:100%;border-radius:var(--ngs-radius-xl);padding:calc(var(--spacing, .25rem) * 6);gap:calc(var(--spacing, .25rem) * 8);align-items:center;background:var(--ngs-action-required-bg);color:var(--ngs-action-text-color)}:host .action-text{display:flex;border-radius:var(--ngs-radius-xl);background:var(--ngs-action-action-text-bg);padding:calc(var(--spacing, .25rem) * 2.5) calc(var(--spacing, .25rem) * 3) calc(var(--spacing, .25rem) * 2.5) calc(var(--spacing, .25rem) * 2.5);align-items:center;flex:none;font-size:var(--text-md);gap:calc(var(--spacing, .25rem) * 1.5)}:host .description{flex-grow:1}:host .button{flex:none}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
39
- }], propDecorators: { actionText: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionText", required: false }] }], iconName: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconName", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: true }] }], buttonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonText", required: true }] }], buttonClicked: [{ type: i0.Output, args: ["buttonClicked"] }] } });
40
-
41
- /**
42
- * Generated bundle index. Do not edit.
43
- */
44
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, input, output } from "@angular/core";
3
+ import { Icon } from "@ngstarter-ui/components/icon";
4
+ import { Button } from "@ngstarter-ui/components/button";
5
+ var ActionRequired = class ActionRequired {
6
+ actionText = input(...ngDevMode ? [void 0, { debugName: "actionText" }] : /* istanbul ignore next */ []);
7
+ iconName = input(...ngDevMode ? [void 0, { debugName: "iconName" }] : /* istanbul ignore next */ []);
8
+ description = input.required(...ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []);
9
+ buttonText = input.required(...ngDevMode ? [{ debugName: "buttonText" }] : /* istanbul ignore next */ []);
10
+ buttonClicked = output();
11
+ getIconName(iconName) {
12
+ if (iconName === "error") return "fluent:error-circle-24-regular";
13
+ if (iconName === "warning") return "fluent:warning-24-regular";
14
+ if (iconName === "help") return "fluent:question-circle-24-regular";
15
+ return iconName;
16
+ }
17
+ static ɵfac = i0.ɵɵngDeclareFactory({
18
+ minVersion: "12.0.0",
19
+ version: "22.3.0",
20
+ ngImport: i0,
21
+ type: ActionRequired,
22
+ deps: [],
23
+ target: i0.ɵɵFactoryTarget.Component
24
+ });
25
+ static ɵcmp = i0.ɵɵngDeclareComponent({
26
+ minVersion: "17.1.0",
27
+ version: "22.3.0",
28
+ type: ActionRequired,
29
+ isStandalone: true,
30
+ selector: "ngs-action-required",
31
+ inputs: {
32
+ actionText: {
33
+ classPropertyName: "actionText",
34
+ publicName: "actionText",
35
+ isSignal: true,
36
+ isRequired: false,
37
+ transformFunction: null
38
+ },
39
+ iconName: {
40
+ classPropertyName: "iconName",
41
+ publicName: "iconName",
42
+ isSignal: true,
43
+ isRequired: false,
44
+ transformFunction: null
45
+ },
46
+ description: {
47
+ classPropertyName: "description",
48
+ publicName: "description",
49
+ isSignal: true,
50
+ isRequired: true,
51
+ transformFunction: null
52
+ },
53
+ buttonText: {
54
+ classPropertyName: "buttonText",
55
+ publicName: "buttonText",
56
+ isSignal: true,
57
+ isRequired: true,
58
+ transformFunction: null
59
+ }
60
+ },
61
+ outputs: { buttonClicked: "buttonClicked" },
62
+ host: { classAttribute: "ngs-action-required" },
63
+ exportAs: ["ngsActionRequired"],
64
+ ngImport: i0,
65
+ template: "<div class=\"action-text\">\n <ngs-icon [name]=\"getIconName(iconName() || 'error')\"/>\n {{ actionText() || 'Action Required' }}\n</div>\n<div class=\"description\">{{ description() }}</div>\n<button ngsButton=\"filled\" class=\"button\" (click)=\"buttonClicked.emit()\">\n {{ buttonText() }}\n<!-- <ngs-icon name=\"fluent:arrow-right-24-regular\"/>-->\n</button>\n",
66
+ styles: [":host{--ngs-action-required-bg: linear-gradient(135deg, var(--ngs-color-danger-container), var(--ngs-color-danger-container-highest));--ngs-action-action-text-bg: var(--ngs-color-surface);--ngs-action-text-color: var(--ngs-color-on-danger-container);display:flex;width:100%;border-radius:var(--ngs-radius-xl);padding:calc(var(--spacing, .25rem) * 6);gap:calc(var(--spacing, .25rem) * 8);align-items:center;background:var(--ngs-action-required-bg);color:var(--ngs-action-text-color)}:host .action-text{display:flex;border-radius:var(--ngs-radius-xl);background:var(--ngs-action-action-text-bg);padding:calc(var(--spacing, .25rem) * 2.5) calc(var(--spacing, .25rem) * 3) calc(var(--spacing, .25rem) * 2.5) calc(var(--spacing, .25rem) * 2.5);align-items:center;flex:none;font-size:var(--text-md);gap:calc(var(--spacing, .25rem) * 1.5)}:host .description{flex-grow:1}:host .button{flex:none}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
67
+ dependencies: [{
68
+ kind: "component",
69
+ type: Icon,
70
+ selector: "ngs-icon",
71
+ inputs: ["name"],
72
+ exportAs: ["ngsIcon"]
73
+ }, {
74
+ kind: "component",
75
+ type: Button,
76
+ selector: "\n button[ngsButton], button[ngsIconButton],\n a[ngsButton], a[ngsIconButton]\n ",
77
+ inputs: [
78
+ "ngsButton",
79
+ "ngsIconButton",
80
+ "loading",
81
+ "disabled",
82
+ "disabledInteractive",
83
+ "disableRipple",
84
+ "reverse",
85
+ "fullWidth",
86
+ "hideTextOnMobile"
87
+ ],
88
+ exportAs: ["ngsButton"]
89
+ }],
90
+ changeDetection: i0.ChangeDetectionStrategy.Eager
91
+ });
92
+ };
93
+ i0.ɵɵngDeclareClassMetadata({
94
+ minVersion: "12.0.0",
95
+ version: "22.3.0",
96
+ ngImport: i0,
97
+ type: ActionRequired,
98
+ decorators: [{
99
+ type: Component,
100
+ args: [{
101
+ selector: "ngs-action-required",
102
+ exportAs: "ngsActionRequired",
103
+ imports: [Icon, Button],
104
+ changeDetection: ChangeDetectionStrategy.Eager,
105
+ host: { "class": "ngs-action-required" },
106
+ template: "<div class=\"action-text\">\n <ngs-icon [name]=\"getIconName(iconName() || 'error')\"/>\n {{ actionText() || 'Action Required' }}\n</div>\n<div class=\"description\">{{ description() }}</div>\n<button ngsButton=\"filled\" class=\"button\" (click)=\"buttonClicked.emit()\">\n {{ buttonText() }}\n<!-- <ngs-icon name=\"fluent:arrow-right-24-regular\"/>-->\n</button>\n",
107
+ styles: [":host{--ngs-action-required-bg: linear-gradient(135deg, var(--ngs-color-danger-container), var(--ngs-color-danger-container-highest));--ngs-action-action-text-bg: var(--ngs-color-surface);--ngs-action-text-color: var(--ngs-color-on-danger-container);display:flex;width:100%;border-radius:var(--ngs-radius-xl);padding:calc(var(--spacing, .25rem) * 6);gap:calc(var(--spacing, .25rem) * 8);align-items:center;background:var(--ngs-action-required-bg);color:var(--ngs-action-text-color)}:host .action-text{display:flex;border-radius:var(--ngs-radius-xl);background:var(--ngs-action-action-text-bg);padding:calc(var(--spacing, .25rem) * 2.5) calc(var(--spacing, .25rem) * 3) calc(var(--spacing, .25rem) * 2.5) calc(var(--spacing, .25rem) * 2.5);align-items:center;flex:none;font-size:var(--text-md);gap:calc(var(--spacing, .25rem) * 1.5)}:host .description{flex-grow:1}:host .button{flex:none}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
108
+ }]
109
+ }],
110
+ propDecorators: {
111
+ actionText: [{
112
+ type: i0.Input,
113
+ args: [{
114
+ isSignal: true,
115
+ alias: "actionText",
116
+ required: false
117
+ }]
118
+ }],
119
+ iconName: [{
120
+ type: i0.Input,
121
+ args: [{
122
+ isSignal: true,
123
+ alias: "iconName",
124
+ required: false
125
+ }]
126
+ }],
127
+ description: [{
128
+ type: i0.Input,
129
+ args: [{
130
+ isSignal: true,
131
+ alias: "description",
132
+ required: true
133
+ }]
134
+ }],
135
+ buttonText: [{
136
+ type: i0.Input,
137
+ args: [{
138
+ isSignal: true,
139
+ alias: "buttonText",
140
+ required: true
141
+ }]
142
+ }],
143
+ buttonClicked: [{
144
+ type: i0.Output,
145
+ args: ["buttonClicked"]
146
+ }]
147
+ }
148
+ });
45
149
  export { ActionRequired };
46
- //# sourceMappingURL=ngstarter-ui-components-action-required.mjs.map
150
+
151
+ //# sourceMappingURL=ngstarter-ui-components-action-required.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngstarter-ui-components-action-required.mjs","sources":["../../../projects/components/action-required/src/action-required/action-required.ts","../../../projects/components/action-required/src/action-required/action-required.html","../../../projects/components/action-required/ngstarter-ui-components-action-required.ts"],"sourcesContent":["import { Component, input, output, ChangeDetectionStrategy } from '@angular/core';\nimport { Icon } from '@ngstarter-ui/components/icon';\nimport { Button } from '@ngstarter-ui/components/button';\n\n@Component({\n selector: 'ngs-action-required',\n exportAs: 'ngsActionRequired',\n imports: [\n Icon,\n Button\n ],\n templateUrl: './action-required.html',\n styleUrl: './action-required.scss',\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n 'class': 'ngs-action-required',\n }\n})\nexport class ActionRequired {\n actionText = input<string>();\n iconName = input<string>();\n description = input.required<string>();\n buttonText = input.required<string>();\n\n readonly buttonClicked = output<void>();\n\n protected getIconName(iconName: string): string {\n if (iconName === 'error') {\n return 'fluent:error-circle-24-regular';\n }\n if (iconName === 'warning') {\n return 'fluent:warning-24-regular';\n }\n if (iconName === 'help') {\n return 'fluent:question-circle-24-regular';\n }\n return iconName;\n }\n}\n","<div class=\"action-text\">\n <ngs-icon [name]=\"getIconName(iconName() || 'error')\"/>\n {{ actionText() || 'Action Required' }}\n</div>\n<div class=\"description\">{{ description() }}</div>\n<button ngsButton=\"filled\" class=\"button\" (click)=\"buttonClicked.emit()\">\n {{ buttonText() }}\n<!-- <ngs-icon name=\"fluent:arrow-right-24-regular\"/>-->\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAkBa,cAAc,CAAA;AACzB,IAAA,UAAU,GAAG,KAAK;8FAAU;AAC5B,IAAA,QAAQ,GAAG,KAAK;4FAAU;IAC1B,WAAW,GAAG,KAAK,CAAC,QAAQ;oFAAU;IACtC,UAAU,GAAG,KAAK,CAAC,QAAQ;mFAAU;IAE5B,aAAa,GAAG,MAAM,EAAQ;AAE7B,IAAA,WAAW,CAAC,QAAgB,EAAA;AACpC,QAAA,IAAI,QAAQ,KAAK,OAAO,EAAE;AACxB,YAAA,OAAO,gCAAgC;QACzC;AACA,QAAA,IAAI,QAAQ,KAAK,SAAS,EAAE;AAC1B,YAAA,OAAO,2BAA2B;QACpC;AACA,QAAA,IAAI,QAAQ,KAAK,MAAM,EAAE;AACvB,YAAA,OAAO,mCAAmC;QAC5C;AACA,QAAA,OAAO,QAAQ;IACjB;uGAnBW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,UAAA,E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AI;wBACJ;qBACD,EAAA,eAAA,EAGgB,uBAAuB,CAAC,KAAK,EAAA,IAAA,EACxC;AACJ,wBAAA,OAAO,EAAE,qBAAqB;AAC/B,qBAAA,EAAA,QAAA,EAAA,oXAAA,EAAA,MAAA,EAAA,CAAA,87BAAA,CAAA,EAAA;;;AEhBH;;AAEG;;;;"}
1
+ {"version":3,"file":"ngstarter-ui-components-action-required.mjs","names":[],"sources":["../../../projects/components/action-required/src/action-required/action-required.ts","../../../projects/components/action-required/src/action-required/action-required.html"],"sourcesContent":["import { Component, input, output, ChangeDetectionStrategy } from '@angular/core';\nimport { Icon } from '@ngstarter-ui/components/icon';\nimport { Button } from '@ngstarter-ui/components/button';\n\n@Component({\n selector: 'ngs-action-required',\n exportAs: 'ngsActionRequired',\n imports: [\n Icon,\n Button\n ],\n templateUrl: './action-required.html',\n styleUrl: './action-required.scss',\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n 'class': 'ngs-action-required',\n }\n})\nexport class ActionRequired {\n actionText = input<string>();\n iconName = input<string>();\n description = input.required<string>();\n buttonText = input.required<string>();\n\n readonly buttonClicked = output<void>();\n\n protected getIconName(iconName: string): string {\n if (iconName === 'error') {\n return 'fluent:error-circle-24-regular';\n }\n if (iconName === 'warning') {\n return 'fluent:warning-24-regular';\n }\n if (iconName === 'help') {\n return 'fluent:question-circle-24-regular';\n }\n return iconName;\n }\n}\n","<div class=\"action-text\">\n <ngs-icon [name]=\"getIconName(iconName() || 'error')\"/>\n {{ actionText() || 'Action Required' }}\n</div>\n<div class=\"description\">{{ description() }}</div>\n<button ngsButton=\"filled\" class=\"button\" (click)=\"buttonClicked.emit()\">\n {{ buttonText() }}\n<!-- <ngs-icon name=\"fluent:arrow-right-24-regular\"/>-->\n</button>\n"],"mappings":";;;;AAkBA,IAAa,iBAAb,MAAa,eAAc;CACzB,aAAa,MAAe,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAC5B,WA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