@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,312 @@
1
+ import { ContentEditorUploadBlockBase } from "./ngstarter-ui-components-content-editor.mjs";
2
+ import { t as ContentEditorUploadStatus } from "./upload-status-tZ0x0BUB.mjs";
3
+ import { r as CONTENT_EDITOR_BLOCK } from "./content-builder.store-D622mHxt.mjs";
4
+ import * as i0 from "@angular/core";
5
+ import { ChangeDetectionStrategy, Component, effect, forwardRef, model, signal, untracked, viewChild } from "@angular/core";
6
+ import { FormField, Label } from "@ngstarter-ui/components/form-field";
7
+ import * as i1 from "@angular/forms";
8
+ import { FormsModule } from "@angular/forms";
9
+ import { Input as Input$1 } from "@ngstarter-ui/components/input";
10
+ import { UploadArea, UploadTriggerDirective } from "@ngstarter-ui/components/upload";
11
+ import { ResizableContainer } from "@ngstarter-ui/components/resizable-container";
12
+ var VideoBlockComponent = class VideoBlockComponent extends ContentEditorUploadBlockBase {
13
+ _src = signal("", ...ngDevMode ? [{ debugName: "_src" }] : /* istanbul ignore next */ []);
14
+ _caption = model("", ...ngDevMode ? [{ debugName: "_caption" }] : /* istanbul ignore next */ []);
15
+ _orientation = signal("landscape", ...ngDevMode ? [{ debugName: "_orientation" }] : /* istanbul ignore next */ []);
16
+ _settings = model({}, ...ngDevMode ? [{ debugName: "_settings" }] : /* istanbul ignore next */ []);
17
+ videoElement = viewChild("videoPlayer", ...ngDevMode ? [{ debugName: "videoElement" }] : /* istanbul ignore next */ []);
18
+ _aspectRatio = 16 / 9;
19
+ constructor() {
20
+ super();
21
+ effect(() => {
22
+ const content = this.content();
23
+ const settings = this.settings();
24
+ untracked(() => {
25
+ this._src.set(content.src);
26
+ this._caption.set(content.caption);
27
+ this._orientation.set(content.orientation || "landscape");
28
+ this._settings.set({ ...settings });
29
+ });
30
+ });
31
+ }
32
+ ngOnInit() {
33
+ this._src.set(this.content().src);
34
+ this._caption.set(this.content().caption);
35
+ this._orientation.set(this.content().orientation || "landscape");
36
+ this._settings.set(this.settings() || {});
37
+ }
38
+ focus() {
39
+ if (this._src()) this.builder.focusBlock(this.id());
40
+ }
41
+ getData() {
42
+ return {
43
+ content: {
44
+ src: this._src(),
45
+ caption: this._caption(),
46
+ orientation: this._orientation()
47
+ },
48
+ settings: { ...this._settings() }
49
+ };
50
+ }
51
+ isEmpty() {
52
+ const src = this.getData().content.src;
53
+ return typeof src === "string" ? src.trim().length === 0 : !src;
54
+ }
55
+ onFileSelected(event) {
56
+ return this.uploadFiles("video", {
57
+ files: event.files.slice(0, 1),
58
+ accept: (file) => file.type.startsWith("video/"),
59
+ apply: (results) => {
60
+ this._src.set(results[0].url);
61
+ this.update();
62
+ }
63
+ });
64
+ }
65
+ _onCaptionChange() {
66
+ this.update();
67
+ }
68
+ _onVideoResized(event) {
69
+ let width = event.width;
70
+ if (width > 704) width = 704;
71
+ const height = Math.round(width / this._aspectRatio);
72
+ this._settings.update((s) => ({
73
+ ...s,
74
+ width,
75
+ height
76
+ }));
77
+ this.update();
78
+ }
79
+ _onVideoLoaded(event) {
80
+ const video = event.target;
81
+ this._aspectRatio = video.videoWidth / video.videoHeight;
82
+ }
83
+ handleKeyPress(event) {
84
+ if (event.key === "Enter") {
85
+ event.preventDefault();
86
+ event.stopPropagation();
87
+ this.builder.insertEmptyBlock(this.index());
88
+ }
89
+ }
90
+ update() {
91
+ this.store.updateBlock(this.id(), {
92
+ ...this.getData(),
93
+ isEmpty: this.isEmpty()
94
+ });
95
+ this.builder.emitContentChangeEvent();
96
+ }
97
+ static ɵfac = i0.ɵɵngDeclareFactory({
98
+ minVersion: "12.0.0",
99
+ version: "22.3.0",
100
+ ngImport: i0,
101
+ type: VideoBlockComponent,
102
+ deps: [],
103
+ target: i0.ɵɵFactoryTarget.Component
104
+ });
105
+ static ɵcmp = i0.ɵɵngDeclareComponent({
106
+ minVersion: "17.0.0",
107
+ version: "22.3.0",
108
+ type: VideoBlockComponent,
109
+ isStandalone: true,
110
+ selector: "ngs-video-block",
111
+ inputs: {
112
+ _caption: {
113
+ classPropertyName: "_caption",
114
+ publicName: "_caption",
115
+ isSignal: true,
116
+ isRequired: false,
117
+ transformFunction: null
118
+ },
119
+ _settings: {
120
+ classPropertyName: "_settings",
121
+ publicName: "_settings",
122
+ isSignal: true,
123
+ isRequired: false,
124
+ transformFunction: null
125
+ }
126
+ },
127
+ outputs: {
128
+ _caption: "_captionChange",
129
+ _settings: "_settingsChange"
130
+ },
131
+ host: {
132
+ listeners: { "keypress": "handleKeyPress($event)" },
133
+ classAttribute: "block"
134
+ },
135
+ providers: [{
136
+ provide: CONTENT_EDITOR_BLOCK,
137
+ useExisting: forwardRef(() => VideoBlockComponent),
138
+ multi: true
139
+ }],
140
+ viewQueries: [{
141
+ propertyName: "videoElement",
142
+ first: true,
143
+ predicate: ["videoPlayer"],
144
+ descendants: true,
145
+ isSignal: true
146
+ }],
147
+ usesInheritance: true,
148
+ ngImport: i0,
149
+ template: "<ngs-content-editor-upload-status [task]=\"uploadTask\"/>\n@if (_src()) {\n <div class=\"flex items-center justify-center overflow-hidden\">\n <ngs-resizable-container (resized)=\"_onVideoResized($event)\"\n [style.width.px]=\"_settings().width || null\"\n [style.height.px]=\"_settings().height || null\"\n [class.max-w-full]=\"!_settings().width\">\n <video #videoPlayer\n [src]=\"_src()\"\n class=\"w-full h-auto block\"\n (loadedmetadata)=\"_onVideoLoaded($event)\"\n controls></video>\n </ngs-resizable-container>\n </div>\n <ngs-form-field class=\"w-full mt-5\">\n <ngs-label>Caption</ngs-label>\n <input ngsInput [(ngModel)]=\"_caption\" (ngModelChange)=\"_onCaptionChange()\">\n </ngs-form-field>\n} @else if (!uploading()) {\n <ngs-upload-area #uploadArea=\"ngsUploadArea\"\n ngsUploadTrigger accept=\"video/*\"\n (fileSelected)=\"onFileSelected($event)\" multiple=\"false\"\n class=\"cursor-pointer hover:outline-2 hover:outline-[var(--color-primary)]\">\n @if (!uploadArea.api.isDropActive) {\n Drag & drop video here or click to upload\n } @else {\n <div class=\"font-medium\">Drop video here</div>\n }\n </ngs-upload-area>\n}\n",
150
+ styles: [":host{display:block}:host ngs-upload-area{--ngs-upload-area-padding: calc(var(--spacing, .25rem) * 6) calc(var(--spacing, .25rem) * 10)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
151
+ dependencies: [
152
+ {
153
+ kind: "component",
154
+ type: ContentEditorUploadStatus,
155
+ selector: "ngs-content-editor-upload-status",
156
+ inputs: ["task"]
157
+ },
158
+ {
159
+ kind: "component",
160
+ type: UploadArea,
161
+ selector: "ngs-upload-area",
162
+ inputs: [
163
+ "accept",
164
+ "allowHover",
165
+ "multiple"
166
+ ],
167
+ outputs: ["fileSelected"],
168
+ exportAs: ["ngsUploadArea"]
169
+ },
170
+ {
171
+ kind: "directive",
172
+ type: UploadTriggerDirective,
173
+ selector: "[ngsUploadTrigger]",
174
+ inputs: ["accept", "multiple"],
175
+ outputs: ["fileSelected"],
176
+ exportAs: ["ngsUploadTrigger"]
177
+ },
178
+ {
179
+ kind: "component",
180
+ type: FormField,
181
+ selector: "ngs-form-field",
182
+ inputs: [
183
+ "labelMode",
184
+ "subscriptHiddenIfEmpty",
185
+ "sameHeightAsButton"
186
+ ],
187
+ exportAs: ["ngsFormField"]
188
+ },
189
+ {
190
+ kind: "directive",
191
+ type: Input$1,
192
+ selector: "input[ngsInput], textarea[ngsInput]",
193
+ inputs: [
194
+ "id",
195
+ "placeholder",
196
+ "required",
197
+ "disabled",
198
+ "readonly",
199
+ "errorStateMatcher"
200
+ ],
201
+ exportAs: ["ngsInput"]
202
+ },
203
+ {
204
+ kind: "ngmodule",
205
+ type: FormsModule
206
+ },
207
+ {
208
+ kind: "directive",
209
+ type: i1.DefaultValueAccessor,
210
+ selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
211
+ },
212
+ {
213
+ kind: "directive",
214
+ type: i1.NgControlStatus,
215
+ selector: "[formControlName],[ngModel],[formControl]"
216
+ },
217
+ {
218
+ kind: "directive",
219
+ type: i1.NgModel,
220
+ selector: "[ngModel]:not([formControlName]):not([formControl])",
221
+ inputs: [
222
+ "name",
223
+ "disabled",
224
+ "ngModel",
225
+ "ngModelOptions"
226
+ ],
227
+ outputs: ["ngModelChange"],
228
+ exportAs: ["ngModel"]
229
+ },
230
+ {
231
+ kind: "component",
232
+ type: Label,
233
+ selector: "ngs-label"
234
+ },
235
+ {
236
+ kind: "component",
237
+ type: ResizableContainer,
238
+ selector: "ngs-resizable-container",
239
+ inputs: ["minWidth"],
240
+ outputs: ["resized"],
241
+ exportAs: ["ngsResizableContainer"]
242
+ }
243
+ ],
244
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
245
+ });
246
+ };
247
+ i0.ɵɵngDeclareClassMetadata({
248
+ minVersion: "12.0.0",
249
+ version: "22.3.0",
250
+ ngImport: i0,
251
+ type: VideoBlockComponent,
252
+ decorators: [{
253
+ type: Component,
254
+ args: [{
255
+ selector: "ngs-video-block",
256
+ imports: [
257
+ ContentEditorUploadStatus,
258
+ UploadArea,
259
+ UploadTriggerDirective,
260
+ FormField,
261
+ Input$1,
262
+ FormsModule,
263
+ Label,
264
+ ResizableContainer
265
+ ],
266
+ providers: [{
267
+ provide: CONTENT_EDITOR_BLOCK,
268
+ useExisting: forwardRef(() => VideoBlockComponent),
269
+ multi: true
270
+ }],
271
+ changeDetection: ChangeDetectionStrategy.OnPush,
272
+ host: {
273
+ "(keypress)": "handleKeyPress($event)",
274
+ "class": "block"
275
+ },
276
+ template: "<ngs-content-editor-upload-status [task]=\"uploadTask\"/>\n@if (_src()) {\n <div class=\"flex items-center justify-center overflow-hidden\">\n <ngs-resizable-container (resized)=\"_onVideoResized($event)\"\n [style.width.px]=\"_settings().width || null\"\n [style.height.px]=\"_settings().height || null\"\n [class.max-w-full]=\"!_settings().width\">\n <video #videoPlayer\n [src]=\"_src()\"\n class=\"w-full h-auto block\"\n (loadedmetadata)=\"_onVideoLoaded($event)\"\n controls></video>\n </ngs-resizable-container>\n </div>\n <ngs-form-field class=\"w-full mt-5\">\n <ngs-label>Caption</ngs-label>\n <input ngsInput [(ngModel)]=\"_caption\" (ngModelChange)=\"_onCaptionChange()\">\n </ngs-form-field>\n} @else if (!uploading()) {\n <ngs-upload-area #uploadArea=\"ngsUploadArea\"\n ngsUploadTrigger accept=\"video/*\"\n (fileSelected)=\"onFileSelected($event)\" multiple=\"false\"\n class=\"cursor-pointer hover:outline-2 hover:outline-[var(--color-primary)]\">\n @if (!uploadArea.api.isDropActive) {\n Drag & drop video here or click to upload\n } @else {\n <div class=\"font-medium\">Drop video here</div>\n }\n </ngs-upload-area>\n}\n",
277
+ styles: [":host{display:block}:host ngs-upload-area{--ngs-upload-area-padding: calc(var(--spacing, .25rem) * 6) calc(var(--spacing, .25rem) * 10)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
278
+ }]
279
+ }],
280
+ ctorParameters: () => [],
281
+ propDecorators: {
282
+ _caption: [{
283
+ type: i0.Input,
284
+ args: [{
285
+ isSignal: true,
286
+ alias: "_caption",
287
+ required: false
288
+ }]
289
+ }, {
290
+ type: i0.Output,
291
+ args: ["_captionChange"]
292
+ }],
293
+ _settings: [{
294
+ type: i0.Input,
295
+ args: [{
296
+ isSignal: true,
297
+ alias: "_settings",
298
+ required: false
299
+ }]
300
+ }, {
301
+ type: i0.Output,
302
+ args: ["_settingsChange"]
303
+ }],
304
+ videoElement: [{
305
+ type: i0.ViewChild,
306
+ args: ["videoPlayer", { isSignal: true }]
307
+ }]
308
+ }
309
+ });
310
+ export { VideoBlockComponent };
311
+
312
+ //# sourceMappingURL=video-block.component-CpAXibm6.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"video-block.component-CpAXibm6.mjs","names":["Input"],"sources":["../../../projects/components/content-editor/src/_builder/video-block/video-block.component.ts","../../../projects/components/content-editor/src/_builder/video-block/video-block.component.html"],"sourcesContent":["import { ContentEditorUploadBlockBase } from '../upload-block-base';\nimport { ContentEditorUploadStatus } from '../upload-status/upload-status';\nimport { ChangeDetectionStrategy, Component, effect, untracked, forwardRef, model, OnInit, signal, viewChild, ElementRef } from '@angular/core';\nimport { UploadArea, UploadFileSelectedEvent, UploadTriggerDirective } from '@ngstarter-ui/components/upload';\nimport {\n CONTENT_EDITOR_BLOCK,\n ContentEditorVideoBlockSettings,\n ContentEditorVideoContent\n} from '../../types';\nimport { FormField, Label } from '@ngstarter-ui/components/form-field';\nimport { Input } from '@ngstarter-ui/components/input';\nimport { FormsModule } from '@angular/forms';\nimport { ResizableContainer } from '@ngstarter-ui/components/resizable-container';\n\n@Component({\n selector: 'ngs-video-block',\n imports: [\n ContentEditorUploadStatus,\n UploadArea,\n UploadTriggerDirective,\n FormField,\n Input,\n FormsModule,\n Label,\n ResizableContainer\n ],\n providers: [\n {\n provide: CONTENT_EDITOR_BLOCK,\n useExisting: forwardRef(() => VideoBlockComponent),\n multi: true\n }\n ],\n templateUrl: './video-block.component.html',\n styleUrl: './video-block.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(keypress)': 'handleKeyPress($event)',\n 'class': 'block'\n }\n})\nexport class VideoBlockComponent extends ContentEditorUploadBlockBase<ContentEditorVideoContent, ContentEditorVideoBlockSettings> implements OnInit {\n\n protected _src = signal<string>('');\n protected _caption = model<string>('');\n protected _orientation = signal<'portrait' | 'landscape'>('landscape');\n protected _settings = model<ContentEditorVideoBlockSettings>({});\n\n readonly videoElement = viewChild<ElementRef<HTMLVideoElement>>('videoPlayer');\n\n private _aspectRatio = 16 / 9;\n\n constructor() {\n super();\n effect(() => {\n const content = this.content();\n const settings = this.settings();\n untracked(() => {\n this._src.set(content.src);\n this._caption.set(content.caption);\n this._orientation.set(content.orientation || 'landscape');\n this._settings.set({ ...settings });\n });\n });\n }\n\n ngOnInit() {\n this._src.set(this.content().src);\n this._caption.set(this.content().caption);\n this._orientation.set(this.content().orientation || 'landscape');\n this._settings.set(this.settings() || {});\n }\n\n override focus() {\n if (this._src()) {\n this.builder.focusBlock(this.id());\n }\n }\n\n override getData(): any {\n return {\n content: {\n src: this._src(),\n caption: this._caption(),\n orientation: this._orientation()\n },\n settings: {\n ...this._settings(),\n }\n };\n }\n\n override isEmpty(): boolean {\n const src = this.getData().content.src;\n return typeof src === 'string' ? src.trim().length === 0 : !src;\n }\n\n protected onFileSelected(event: UploadFileSelectedEvent): Promise<void> {\n return this.uploadFiles('video', { files: event.files.slice(0, 1), accept: file => file.type.startsWith('video/'), apply: results => {\n this._src.set(results[0].url);\n this.update();\n } });\n }\n\n protected _onCaptionChange() {\n this.update();\n }\n\n protected _onVideoResized(event: { width: number }) {\n let width = event.width;\n if (width > 704) {\n width = 704;\n }\n const height = Math.round(width / this._aspectRatio);\n\n this._settings.update(s => ({\n ...s,\n width,\n height\n }));\n\n this.update();\n }\n\n protected _onVideoLoaded(event: any) {\n const video = event.target as HTMLVideoElement;\n this._aspectRatio = video.videoWidth / video.videoHeight;\n }\n\n protected handleKeyPress(event: KeyboardEvent) {\n if (event.key === 'Enter') {\n event.preventDefault();\n event.stopPropagation();\n this.builder.insertEmptyBlock(this.index());\n }\n }\n\n private update() {\n this.store.updateBlock(this.id(), {...this.getData(), isEmpty: this.isEmpty()});\n this.builder.emitContentChangeEvent();\n }\n}\n","<ngs-content-editor-upload-status [task]=\"uploadTask\"/>\n@if (_src()) {\n <div class=\"flex items-center justify-center overflow-hidden\">\n <ngs-resizable-container (resized)=\"_onVideoResized($event)\"\n [style.width.px]=\"_settings().width || null\"\n [style.height.px]=\"_settings().height || null\"\n [class.max-w-full]=\"!_settings().width\">\n <video #videoPlayer\n [src]=\"_src()\"\n class=\"w-full h-auto block\"\n (loadedmetadata)=\"_onVideoLoaded($event)\"\n controls></video>\n </ngs-resizable-container>\n </div>\n <ngs-form-field class=\"w-full mt-5\">\n <ngs-label>Caption</ngs-label>\n <input ngsInput [(ngModel)]=\"_caption\" (ngModelChange)=\"_onCaptionChange()\">\n </ngs-form-field>\n} @else if (!uploading()) {\n <ngs-upload-area #uploadArea=\"ngsUploadArea\"\n ngsUploadTrigger accept=\"video/*\"\n (fileSelected)=\"onFileSelected($event)\" multiple=\"false\"\n class=\"cursor-pointer hover:outline-2 hover:outline-[var(--color-primary)]\">\n @if (!uploadArea.api.isDropActive) {\n Drag & drop video here or click to upload\n } @else {\n <div class=\"font-medium\">Drop video here</div>\n }\n </ngs-upload-area>\n}\n"],"mappings":"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"}
package/package.json CHANGED
@@ -1,7 +1,5 @@
1
1
  {
2
- "name": "@ngstarter-ui/components",
3
2
  "description": "NgStarter - AI-friendly Enterprise Angular UI Components and Admin Panel",
4
- "version": "22.3.6",
5
3
  "repository": {
6
4
  "type": "git",
7
5
  "url": "https://github.com/elementarlabsdev/ngstarter.git"
@@ -69,7 +67,6 @@
69
67
  "rxjs": "~7.8.0",
70
68
  "shiki": "^3.12.0",
71
69
  "tailwindcss": "^4.2.2",
72
- "tslib": "^2.3.0",
73
70
  "uuid": "^11.0.3",
74
71
  "video.js": "^8.23.7"
75
72
  },
@@ -78,15 +75,18 @@
78
75
  "access": "public",
79
76
  "registry": "https://registry.npmjs.org/"
80
77
  },
78
+ "name": "@ngstarter-ui/components",
79
+ "type": "module",
80
+ "main": "./fesm2022/ngstarter-ui-components.mjs",
81
+ "module": "./fesm2022/ngstarter-ui-components.mjs",
82
+ "typings": "./types/ngstarter-ui-components.d.ts",
83
+ "types": "./types/ngstarter-ui-components.d.ts",
81
84
  "exports": {
82
85
  "./content-editor/document.schema.json": "./content-editor/document.schema.json",
83
86
  "./content-editor/BLOCK_FORMAT.md": "./content-editor/BLOCK_FORMAT.md",
84
87
  "./ai/*": "./ai/*",
85
88
  "./styles/*": "./styles/*",
86
89
  "./styles/themes/*": "./styles/themes/*",
87
- "./package.json": {
88
- "default": "./package.json"
89
- },
90
90
  ".": {
91
91
  "types": "./types/ngstarter-ui-components.d.ts",
92
92
  "default": "./fesm2022/ngstarter-ui-components.mjs"
@@ -598,9 +598,10 @@
598
598
  "./whiteboard": {
599
599
  "types": "./types/ngstarter-ui-components-whiteboard.d.ts",
600
600
  "default": "./fesm2022/ngstarter-ui-components-whiteboard.mjs"
601
+ },
602
+ "./package.json": {
603
+ "default": "./package.json"
601
604
  }
602
605
  },
603
- "module": "fesm2022/ngstarter-ui-components.mjs",
604
- "typings": "types/ngstarter-ui-components.d.ts",
605
- "type": "module"
606
- }
606
+ "version": "22.4.1"
607
+ }
@@ -207,6 +207,7 @@
207
207
  --ngs-dropdown-shadow: var(--ngs-shadow-md);
208
208
  --ngs-dropdown-radius: 0.5rem;
209
209
  --ngs-dropdown-border: 1px solid var(--ngs-color-border);
210
+ --ngs-select-panel-gap: 2px;
210
211
  --ngs-dropdown-max-height: 16rem;
211
212
  --ngs-dropdown-height: 2.25rem;
212
213
  --ngs-dropdown-padding-x: --spacing(2);
@@ -1,14 +1,34 @@
1
- import * as _angular_core from '@angular/core';
2
-
3
- declare class ActionRequired {
4
- actionText: _angular_core.InputSignal<string | undefined>;
5
- iconName: _angular_core.InputSignal<string | undefined>;
6
- description: _angular_core.InputSignal<string>;
7
- buttonText: _angular_core.InputSignal<string>;
8
- readonly buttonClicked: _angular_core.OutputEmitterRef<void>;
9
- protected getIconName(iconName: string): string;
10
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionRequired, never>;
11
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionRequired, "ngs-action-required", ["ngsActionRequired"], { "actionText": { "alias": "actionText"; "required": false; "isSignal": true; }; "iconName": { "alias": "iconName"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": true; "isSignal": true; }; "buttonText": { "alias": "buttonText"; "required": true; "isSignal": true; }; }, { "buttonClicked": "buttonClicked"; }, never, never, true, never>;
12
- }
13
-
14
- export { ActionRequired };
1
+ import * as i0 from "@angular/core";
2
+ export declare class ActionRequired {
3
+ actionText: import("@angular/core").InputSignal<string | undefined>;
4
+ iconName: import("@angular/core").InputSignal<string | undefined>;
5
+ description: import("@angular/core").InputSignal<string>;
6
+ buttonText: import("@angular/core").InputSignal<string>;
7
+ readonly buttonClicked: import("@angular/core").OutputEmitterRef<void>;
8
+ protected getIconName(iconName: string): string;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActionRequired, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionRequired, "ngs-action-required", ["ngsActionRequired"], {
11
+ "actionText": {
12
+ "alias": "actionText";
13
+ "required": false;
14
+ "isSignal": true;
15
+ };
16
+ "iconName": {
17
+ "alias": "iconName";
18
+ "required": false;
19
+ "isSignal": true;
20
+ };
21
+ "description": {
22
+ "alias": "description";
23
+ "required": true;
24
+ "isSignal": true;
25
+ };
26
+ "buttonText": {
27
+ "alias": "buttonText";
28
+ "required": true;
29
+ "isSignal": true;
30
+ };
31
+ }, {
32
+ "buttonClicked": "buttonClicked";
33
+ }, never, never, true, never>;
34
+ }
@@ -1,50 +1,59 @@
1
- import * as i0 from '@angular/core';
2
- import { TemplateRef, InjectionToken } from '@angular/core';
3
-
4
- declare class AlertIconDirective {
5
- readonly templateRef: TemplateRef<any> | null;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertIconDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<AlertIconDirective, "[ngsAlertIcon]", ["ngsAlertIcon"], {}, {}, never, never, true, never>;
1
+ import * as i0 from "@angular/core";
2
+ import { InjectionToken, TemplateRef } from "@angular/core";
3
+ export declare class AlertIconDirective {
4
+ readonly templateRef: TemplateRef<any> | null;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertIconDirective, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AlertIconDirective, "[ngsAlertIcon]", ["ngsAlertIcon"], {}, {}, never, never, true, never>;
8
7
  }
9
-
10
- declare class Alert {
11
- private _renderer;
12
- private _elementRef;
13
- readonly iconRef: i0.Signal<AlertIconDirective | undefined>;
14
- autoClose: i0.InputSignalWithTransform<number | null, unknown>;
15
- bordered: i0.InputSignalWithTransform<boolean, unknown>;
16
- variant: i0.InputSignal<string>;
17
- readonly closed: i0.OutputEmitterRef<void>;
18
- private _autoCloseTimeout;
19
- constructor();
20
- get api(): {
21
- close: () => void;
8
+ export declare class Alert {
9
+ private _renderer;
10
+ private _elementRef;
11
+ readonly iconRef: import("@angular/core").Signal<AlertIconDirective | undefined>;
12
+ autoClose: import("@angular/core").InputSignalWithTransform<number | null, unknown>;
13
+ bordered: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
14
+ variant: import("@angular/core").InputSignal<string>;
15
+ readonly closed: import("@angular/core").OutputEmitterRef<void>;
16
+ private _autoCloseTimeout;
17
+ constructor();
18
+ get api(): {
19
+ close: () => void;
20
+ };
21
+ protected get iconRefTemplate(): TemplateRef<any>;
22
+ private _close;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<Alert, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<Alert, "ngs-alert", ["ngsAlert"], {
25
+ "autoClose": {
26
+ "alias": "autoClose";
27
+ "required": false;
28
+ "isSignal": true;
22
29
  };
23
- protected get iconRefTemplate(): TemplateRef<any>;
24
- private _close;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<Alert, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<Alert, "ngs-alert", ["ngsAlert"], { "autoClose": { "alias": "autoClose"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, ["iconRef"], ["[ngsAlertIcon]", "ngs-alert-title,[ngsAlertTitle]", "*", "[ngsAlertAction]"], true, never>;
30
+ "bordered": {
31
+ "alias": "bordered";
32
+ "required": false;
33
+ "isSignal": true;
34
+ };
35
+ "variant": {
36
+ "alias": "variant";
37
+ "required": false;
38
+ "isSignal": true;
39
+ };
40
+ }, {
41
+ "closed": "closed";
42
+ }, ["iconRef"], ["[ngsAlertIcon]", "ngs-alert-title,[ngsAlertTitle]", "*", "[ngsAlertAction]"], true, never>;
27
43
  }
28
-
29
- declare class AlertTitleDirective {
30
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertTitleDirective, never>;
31
- static ɵdir: i0.ɵɵDirectiveDeclaration<AlertTitleDirective, "ngs-alert-title,[ngsAlertTitle]", ["ngsAlertTitle"], {}, {}, never, never, true, never>;
44
+ export declare class AlertTitleDirective {
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertTitleDirective, never>;
46
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AlertTitleDirective, "ngs-alert-title,[ngsAlertTitle]", ["ngsAlertTitle"], {}, {}, never, never, true, never>;
32
47
  }
33
-
34
- declare class AlertCloseDirective {
35
- private _alert;
36
- protected _handleClick(): void;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertCloseDirective, never>;
38
- static ɵdir: i0.ɵɵDirectiveDeclaration<AlertCloseDirective, "[ngsAlertClose]", ["ngsAlertClose"], {}, {}, never, never, true, never>;
48
+ export declare class AlertCloseDirective {
49
+ private _alert;
50
+ protected _handleClick(): void;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertCloseDirective, never>;
52
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AlertCloseDirective, "[ngsAlertClose]", ["ngsAlertClose"], {}, {}, never, never, true, never>;
39
53
  }
40
-
41
- declare class AlertActionDirective {
42
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertActionDirective, never>;
43
- static ɵdir: i0.ɵɵDirectiveDeclaration<AlertActionDirective, "[ngsAlertAction]", ["ngsAlertAction"], {}, {}, never, never, true, never>;
54
+ export declare class AlertActionDirective {
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertActionDirective, never>;
56
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AlertActionDirective, "[ngsAlertAction]", ["ngsAlertAction"], {}, {}, never, never, true, never>;
44
57
  }
45
-
46
- declare const ALERT: InjectionToken<unknown>;
47
- type AlertVariant = 'default' | 'secondary' | 'positive' | 'informative' | 'negative' | 'notice' | string;
48
-
49
- export { ALERT, Alert, AlertActionDirective, AlertCloseDirective, AlertIconDirective, AlertTitleDirective };
50
- export type { AlertVariant };
58
+ export declare const ALERT: InjectionToken<unknown>;
59
+ export type AlertVariant = 'default' | 'secondary' | 'positive' | 'informative' | 'negative' | 'notice' | string;