@ngstarter-ui/components 21.0.77 → 22.0.4

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 (321) hide show
  1. package/LICENSE.md +21 -116
  2. package/README.md +16 -25
  3. package/ai/component-registry.json +180 -182
  4. package/fesm2022/ngstarter-ui-components-action-required.mjs +14 -10
  5. package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -1
  6. package/fesm2022/ngstarter-ui-components-alert.mjs +23 -21
  7. package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -1
  8. package/fesm2022/ngstarter-ui-components-announcement.mjs +23 -18
  9. package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -1
  10. package/fesm2022/ngstarter-ui-components-autocomplete.mjs +18 -13
  11. package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -1
  12. package/fesm2022/ngstarter-ui-components-avatar.mjs +44 -33
  13. package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -1
  14. package/fesm2022/ngstarter-ui-components-badge.mjs +12 -10
  15. package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -1
  16. package/fesm2022/ngstarter-ui-components-block-loader.mjs +7 -7
  17. package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -1
  18. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +7 -7
  19. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +60 -60
  20. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -1
  21. package/fesm2022/ngstarter-ui-components-button-toggle.mjs +21 -22
  22. package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -1
  23. package/fesm2022/ngstarter-ui-components-button.mjs +6 -5
  24. package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
  25. package/fesm2022/ngstarter-ui-components-calendar.mjs +30 -17
  26. package/fesm2022/ngstarter-ui-components-calendar.mjs.map +1 -1
  27. package/fesm2022/ngstarter-ui-components-card-overlay.mjs +9 -9
  28. package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -1
  29. package/fesm2022/ngstarter-ui-components-card.mjs +57 -54
  30. package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -1
  31. package/fesm2022/ngstarter-ui-components-carousel.mjs +77 -51
  32. package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -1
  33. package/fesm2022/ngstarter-ui-components-checkbox.mjs +35 -24
  34. package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -1
  35. package/fesm2022/ngstarter-ui-components-chips.mjs +86 -66
  36. package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -1
  37. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +25 -18
  38. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -1
  39. package/fesm2022/ngstarter-ui-components-color-picker.mjs +62 -45
  40. package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -1
  41. package/fesm2022/ngstarter-ui-components-color-scheme.mjs +33 -83
  42. package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -1
  43. package/fesm2022/ngstarter-ui-components-color-switcher.mjs +11 -9
  44. package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -1
  45. package/fesm2022/ngstarter-ui-components-command-bar.mjs +20 -18
  46. package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -1
  47. package/fesm2022/ngstarter-ui-components-comment-editor.mjs +129 -108
  48. package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -1
  49. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +26 -19
  50. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -1
  51. package/fesm2022/ngstarter-ui-components-confirm.mjs +13 -11
  52. package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -1
  53. package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-CLfzSb69.mjs → ngstarter-ui-components-content-editor-code-block.component-BbK5fCoE.mjs} +29 -18
  54. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbK5fCoE.mjs.map +1 -0
  55. package/fesm2022/{ngstarter-ui-components-content-editor-content-editor-content-editable.directive-Bvfa2dqh.mjs → ngstarter-ui-components-content-editor-content-editor-content-editable.directive-BOXOHcSo.mjs} +10 -7
  56. package/fesm2022/{ngstarter-ui-components-content-editor-content-editor-content-editable.directive-Bvfa2dqh.mjs.map → ngstarter-ui-components-content-editor-content-editor-content-editable.directive-BOXOHcSo.mjs.map} +1 -1
  57. package/fesm2022/{ngstarter-ui-components-content-editor-divider-block.component-C_iRTCPH.mjs → ngstarter-ui-components-content-editor-divider-block.component-B5wyMHjr.mjs} +16 -11
  58. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-B5wyMHjr.mjs.map +1 -0
  59. package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-BMBObSRE.mjs → ngstarter-ui-components-content-editor-embed-block-DGqupBLe.mjs} +28 -19
  60. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DGqupBLe.mjs.map +1 -0
  61. package/fesm2022/{ngstarter-ui-components-content-editor-heading-block.component-DL9PehLX.mjs → ngstarter-ui-components-content-editor-heading-block.component-D1s2yalT.mjs} +30 -19
  62. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-D1s2yalT.mjs.map +1 -0
  63. package/fesm2022/{ngstarter-ui-components-content-editor-image-block.component-DJWItlMf.mjs → ngstarter-ui-components-content-editor-image-block.component-D75DrPNq.mjs} +27 -17
  64. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-D75DrPNq.mjs.map +1 -0
  65. package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-J9vhrddX.mjs → ngstarter-ui-components-content-editor-list-block.component-B7pDlrQ_.mjs} +29 -20
  66. package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-J9vhrddX.mjs.map → ngstarter-ui-components-content-editor-list-block.component-B7pDlrQ_.mjs.map} +1 -1
  67. package/fesm2022/{ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-Be8dDH3z.mjs → ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CV959OGj.mjs} +351 -213
  68. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CV959OGj.mjs.map +1 -0
  69. package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-DxE2SXVt.mjs → ngstarter-ui-components-content-editor-paragraph-block.component-CVV2f-ON.mjs} +30 -19
  70. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CVV2f-ON.mjs.map +1 -0
  71. package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-BEt5JkO8.mjs → ngstarter-ui-components-content-editor-quote-block.component-CVb-bkJw.mjs} +42 -25
  72. package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-BEt5JkO8.mjs.map → ngstarter-ui-components-content-editor-quote-block.component-CVb-bkJw.mjs.map} +1 -1
  73. package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-BeCHXahH.mjs → ngstarter-ui-components-content-editor-table-block.component-DSpLBC4V.mjs} +42 -31
  74. package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-BeCHXahH.mjs.map → ngstarter-ui-components-content-editor-table-block.component-DSpLBC4V.mjs.map} +1 -1
  75. package/fesm2022/{ngstarter-ui-components-content-editor-video-block.component-BzFQtQwc.mjs → ngstarter-ui-components-content-editor-video-block.component-D3U8uXIy.mjs} +31 -19
  76. package/fesm2022/{ngstarter-ui-components-content-editor-video-block.component-BzFQtQwc.mjs.map → ngstarter-ui-components-content-editor-video-block.component-D3U8uXIy.mjs.map} +1 -1
  77. package/fesm2022/ngstarter-ui-components-content-editor.mjs +1 -1
  78. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +18 -16
  79. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -1
  80. package/fesm2022/ngstarter-ui-components-core.mjs +228 -689
  81. package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
  82. package/fesm2022/ngstarter-ui-components-country-select.mjs +27 -17
  83. package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -1
  84. package/fesm2022/ngstarter-ui-components-crop.mjs +22 -13
  85. package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -1
  86. package/fesm2022/ngstarter-ui-components-currency-select.mjs +25 -16
  87. package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -1
  88. package/fesm2022/ngstarter-ui-components-data-view.mjs +173 -98
  89. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
  90. package/fesm2022/ngstarter-ui-components-date-format-select.mjs +17 -12
  91. package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -1
  92. package/fesm2022/ngstarter-ui-components-datepicker.mjs +172 -117
  93. package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
  94. package/fesm2022/ngstarter-ui-components-dialog.mjs +39 -35
  95. package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -1
  96. package/fesm2022/ngstarter-ui-components-digit-roller.mjs +55 -31
  97. package/fesm2022/ngstarter-ui-components-digit-roller.mjs.map +1 -1
  98. package/fesm2022/ngstarter-ui-components-divider.mjs +11 -11
  99. package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -1
  100. package/fesm2022/ngstarter-ui-components-drawer.mjs +16 -12
  101. package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -1
  102. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +23 -16
  103. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -1
  104. package/fesm2022/ngstarter-ui-components-empty-state.mjs +24 -24
  105. package/fesm2022/ngstarter-ui-components-events.mjs +45 -40
  106. package/fesm2022/ngstarter-ui-components-events.mjs.map +1 -1
  107. package/fesm2022/ngstarter-ui-components-expand.mjs +14 -10
  108. package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -1
  109. package/fesm2022/ngstarter-ui-components-expansion.mjs +30 -28
  110. package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -1
  111. package/fesm2022/ngstarter-ui-components-file-type.mjs +18 -11
  112. package/fesm2022/ngstarter-ui-components-file-type.mjs.map +1 -1
  113. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +35 -25
  114. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
  115. package/fesm2022/{ngstarter-ui-components-form-builder-plain-text-settings-C69NYW8R.mjs → ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs} +19 -12
  116. package/fesm2022/{ngstarter-ui-components-form-builder-plain-text-settings-C69NYW8R.mjs.map → ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs.map} +1 -1
  117. package/fesm2022/ngstarter-ui-components-form-builder.mjs +328 -181
  118. package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
  119. package/fesm2022/ngstarter-ui-components-form-field.mjs +105 -66
  120. package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -1
  121. package/fesm2022/ngstarter-ui-components-gauge.mjs +11 -11
  122. package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -1
  123. package/fesm2022/ngstarter-ui-components-grid.mjs +15 -11
  124. package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -1
  125. package/fesm2022/ngstarter-ui-components-guided-tour.mjs +56 -36
  126. package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -1
  127. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +32 -19
  128. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -1
  129. package/fesm2022/ngstarter-ui-components-icon.mjs +21 -10
  130. package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -1
  131. package/fesm2022/ngstarter-ui-components-image-designer.mjs +136 -76
  132. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
  133. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +6 -6
  134. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -1
  135. package/fesm2022/ngstarter-ui-components-image-resizer.mjs +18 -14
  136. package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -1
  137. package/fesm2022/ngstarter-ui-components-image-viewer.mjs +41 -31
  138. package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -1
  139. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +25 -19
  140. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -1
  141. package/fesm2022/ngstarter-ui-components-incidents.mjs +69 -64
  142. package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -1
  143. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +12 -8
  144. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -1
  145. package/fesm2022/ngstarter-ui-components-input-mask.mjs +15 -12
  146. package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -1
  147. package/fesm2022/ngstarter-ui-components-input.mjs +19 -11
  148. package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -1
  149. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +19 -15
  150. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
  151. package/fesm2022/ngstarter-ui-components-kbd.mjs +11 -11
  152. package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -1
  153. package/fesm2022/ngstarter-ui-components-layout.mjs +45 -43
  154. package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -1
  155. package/fesm2022/ngstarter-ui-components-list.mjs +52 -49
  156. package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -1
  157. package/fesm2022/ngstarter-ui-components-logo.mjs +21 -20
  158. package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -1
  159. package/fesm2022/ngstarter-ui-components-marquee.mjs +13 -11
  160. package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -1
  161. package/fesm2022/ngstarter-ui-components-menu.mjs +75 -57
  162. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
  163. package/fesm2022/ngstarter-ui-components-micro-chart.mjs +63 -45
  164. package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -1
  165. package/fesm2022/ngstarter-ui-components-motion.mjs +6 -6
  166. package/fesm2022/ngstarter-ui-components-navigation.mjs +83 -62
  167. package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -1
  168. package/fesm2022/ngstarter-ui-components-notifications.mjs +73 -49
  169. package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -1
  170. package/fesm2022/ngstarter-ui-components-number-input.mjs +39 -28
  171. package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -1
  172. package/fesm2022/ngstarter-ui-components-option.mjs +22 -17
  173. package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -1
  174. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +6 -6
  175. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -1
  176. package/fesm2022/ngstarter-ui-components-paginator.mjs +7 -7
  177. package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -1
  178. package/fesm2022/ngstarter-ui-components-panel.mjs +47 -42
  179. package/fesm2022/ngstarter-ui-components-panel.mjs.map +1 -1
  180. package/fesm2022/ngstarter-ui-components-password-strength.mjs +39 -27
  181. package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -1
  182. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +170 -90
  183. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
  184. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs +62 -33
  185. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs.map +1 -1
  186. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +125 -70
  187. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
  188. package/fesm2022/ngstarter-ui-components-phone-input.mjs +51 -32
  189. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
  190. package/fesm2022/ngstarter-ui-components-pin-input.mjs +22 -16
  191. package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -1
  192. package/fesm2022/ngstarter-ui-components-popover.mjs +27 -20
  193. package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -1
  194. package/fesm2022/ngstarter-ui-components-progress-bar.mjs +16 -10
  195. package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -1
  196. package/fesm2022/ngstarter-ui-components-radio-card.mjs +28 -24
  197. package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -1
  198. package/fesm2022/ngstarter-ui-components-radio.mjs +27 -18
  199. package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -1
  200. package/fesm2022/ngstarter-ui-components-rail-nav.mjs +19 -17
  201. package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -1
  202. package/fesm2022/ngstarter-ui-components-resizable-container.mjs +6 -5
  203. package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -1
  204. package/fesm2022/ngstarter-ui-components-screen-loader.mjs +11 -10
  205. package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -1
  206. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +29 -27
  207. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -1
  208. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +75 -41
  209. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -1
  210. package/fesm2022/ngstarter-ui-components-segmented.mjs +21 -18
  211. package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -1
  212. package/fesm2022/ngstarter-ui-components-select.mjs +121 -79
  213. package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -1
  214. package/fesm2022/ngstarter-ui-components-side-panel.mjs +35 -23
  215. package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -1
  216. package/fesm2022/ngstarter-ui-components-sidebar.mjs +105 -94
  217. package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -1
  218. package/fesm2022/ngstarter-ui-components-sidenav.mjs +47 -33
  219. package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -1
  220. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +56 -32
  221. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
  222. package/fesm2022/ngstarter-ui-components-skeleton.mjs +6 -6
  223. package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -1
  224. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +21 -15
  225. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -1
  226. package/fesm2022/ngstarter-ui-components-slider.mjs +27 -20
  227. package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -1
  228. package/fesm2022/ngstarter-ui-components-snack-bar.mjs +17 -14
  229. package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -1
  230. package/fesm2022/ngstarter-ui-components-sort.mjs +13 -12
  231. package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
  232. package/fesm2022/ngstarter-ui-components-spinner.mjs +15 -12
  233. package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -1
  234. package/fesm2022/ngstarter-ui-components-splash-screen.mjs +6 -6
  235. package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -1
  236. package/fesm2022/ngstarter-ui-components-split.mjs +18 -12
  237. package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -1
  238. package/fesm2022/ngstarter-ui-components-step-tracker.mjs +48 -35
  239. package/fesm2022/ngstarter-ui-components-step-tracker.mjs.map +1 -1
  240. package/fesm2022/ngstarter-ui-components-stepper.mjs +33 -34
  241. package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -1
  242. package/fesm2022/ngstarter-ui-components-suggestions.mjs +23 -22
  243. package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -1
  244. package/fesm2022/ngstarter-ui-components-tab-panel.mjs +64 -61
  245. package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -1
  246. package/fesm2022/ngstarter-ui-components-table.mjs +68 -73
  247. package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
  248. package/fesm2022/ngstarter-ui-components-tabs.mjs +74 -49
  249. package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -1
  250. package/fesm2022/ngstarter-ui-components-text-editor.mjs +131 -110
  251. package/fesm2022/ngstarter-ui-components-text-editor.mjs.map +1 -1
  252. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +19 -14
  253. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -1
  254. package/fesm2022/ngstarter-ui-components-tiles.mjs +43 -29
  255. package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -1
  256. package/fesm2022/ngstarter-ui-components-timeline.mjs +48 -47
  257. package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -1
  258. package/fesm2022/ngstarter-ui-components-timepicker.mjs +29 -23
  259. package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -1
  260. package/fesm2022/ngstarter-ui-components-timezone-select.mjs +26 -17
  261. package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -1
  262. package/fesm2022/ngstarter-ui-components-toolbar.mjs +55 -47
  263. package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -1
  264. package/fesm2022/ngstarter-ui-components-tooltip.mjs +8 -8
  265. package/fesm2022/ngstarter-ui-components-tree.mjs +56 -42
  266. package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -1
  267. package/fesm2022/ngstarter-ui-components-upload.mjs +94 -78
  268. package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -1
  269. package/fesm2022/ngstarter-ui-components-video-player.mjs +43 -25
  270. package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -1
  271. package/fesm2022/ngstarter-ui-components-video-viewer.mjs +45 -33
  272. package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -1
  273. package/fesm2022/ngstarter-ui-components-visual-builder.mjs +5 -5
  274. package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -1
  275. package/package.json +13 -16
  276. package/schematics/utils.js +0 -1
  277. package/schematics/utils.js.map +1 -1
  278. package/styles/_common.scss +20 -20
  279. package/styles/_tokens.scss +132 -556
  280. package/styles/themes/chalk.scss +398 -0
  281. package/styles/themes/default.scss +354 -0
  282. package/types/ngstarter-ui-components-announcement.d.ts +1 -1
  283. package/types/ngstarter-ui-components-bottom-sheet.d.ts +1 -1
  284. package/types/ngstarter-ui-components-button-toggle.d.ts +1 -1
  285. package/types/ngstarter-ui-components-checkbox.d.ts +3 -2
  286. package/types/ngstarter-ui-components-code-highlighter.d.ts +1 -2
  287. package/types/ngstarter-ui-components-confirm.d.ts +1 -1
  288. package/types/ngstarter-ui-components-core.d.ts +42 -31
  289. package/types/ngstarter-ui-components-datepicker.d.ts +2 -2
  290. package/types/ngstarter-ui-components-dialog.d.ts +1 -1
  291. package/types/ngstarter-ui-components-expansion.d.ts +3 -2
  292. package/types/ngstarter-ui-components-form-field.d.ts +15 -5
  293. package/types/ngstarter-ui-components-guided-tour.d.ts +1 -1
  294. package/types/ngstarter-ui-components-icon.d.ts +2 -1
  295. package/types/ngstarter-ui-components-image-designer.d.ts +1 -1
  296. package/types/ngstarter-ui-components-layout.d.ts +1 -1
  297. package/types/ngstarter-ui-components-list.d.ts +3 -2
  298. package/types/ngstarter-ui-components-navigation.d.ts +3 -1
  299. package/types/ngstarter-ui-components-notifications.d.ts +8 -2
  300. package/types/ngstarter-ui-components-paginator.d.ts +1 -1
  301. package/types/ngstarter-ui-components-pdf-viewer.d.ts +1 -1
  302. package/types/ngstarter-ui-components-screen-loader.d.ts +1 -1
  303. package/types/ngstarter-ui-components-sidebar.d.ts +8 -6
  304. package/types/ngstarter-ui-components-snack-bar.d.ts +1 -1
  305. package/types/ngstarter-ui-components-stepper.d.ts +0 -1
  306. package/types/ngstarter-ui-components-tab-panel.d.ts +1 -1
  307. package/types/ngstarter-ui-components-table.d.ts +1 -4
  308. package/types/ngstarter-ui-components-tiles.d.ts +1 -1
  309. package/types/ngstarter-ui-components-timepicker.d.ts +1 -1
  310. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-CLfzSb69.mjs.map +0 -1
  311. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-C_iRTCPH.mjs.map +0 -1
  312. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-BMBObSRE.mjs.map +0 -1
  313. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-DL9PehLX.mjs.map +0 -1
  314. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-DJWItlMf.mjs.map +0 -1
  315. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-Be8dDH3z.mjs.map +0 -1
  316. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-DxE2SXVt.mjs.map +0 -1
  317. package/fesm2022/ngstarter-ui-components-content-fade.mjs +0 -35
  318. package/fesm2022/ngstarter-ui-components-content-fade.mjs.map +0 -1
  319. package/styles/themes/compact.scss +0 -8
  320. package/styles/themes/modern.scss +0 -346
  321. package/types/ngstarter-ui-components-content-fade.d.ts +0 -17
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, inject, DestroyRef, input, signal, Component } from '@angular/core';
3
- import { C as ContentBuilderStore, a as CONTENT_BUILDER } from './ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-Be8dDH3z.mjs';
2
+ import { Injectable, inject, DestroyRef, input, signal, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { C as ContentBuilderStore, a as CONTENT_BUILDER } from './ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CV959OGj.mjs';
4
4
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
5
  import { Icon } from '@ngstarter-ui/components/icon';
6
6
  import { Popover, PopoverTriggerForDirective } from '@ngstarter-ui/components/popover';
@@ -256,10 +256,10 @@ class EmbedService {
256
256
  // Keep other parameters like file, terminal, ctl, hideExplorer if provided by user
257
257
  return url.toString();
258
258
  }
259
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: EmbedService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
260
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: EmbedService });
259
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: EmbedService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
260
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: EmbedService });
261
261
  }
262
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: EmbedService, decorators: [{
262
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: EmbedService, decorators: [{
263
263
  type: Injectable
264
264
  }] });
265
265
 
@@ -269,11 +269,16 @@ class EmbedBlock {
269
269
  destroyRef = inject(DestroyRef);
270
270
  formBuilder = inject(FormBuilder);
271
271
  embedService = inject(EmbedService);
272
- id = input.required(...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
273
- content = input.required(...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
274
- settings = input.required(...(ngDevMode ? [{ debugName: "settings" }] : /* istanbul ignore next */ []));
275
- props = input([], ...(ngDevMode ? [{ debugName: "props" }] : /* istanbul ignore next */ []));
276
- index = input.required(...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
272
+ id = input.required(/* @ts-ignore */
273
+ ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
274
+ content = input.required(/* @ts-ignore */
275
+ ...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
276
+ settings = input.required(/* @ts-ignore */
277
+ ...(ngDevMode ? [{ debugName: "settings" }] : /* istanbul ignore next */ []));
278
+ props = input([], /* @ts-ignore */
279
+ ...(ngDevMode ? [{ debugName: "props" }] : /* istanbul ignore next */ []));
280
+ index = input.required(/* @ts-ignore */
281
+ ...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
277
282
  embedUrlValidator = (control) => {
278
283
  const value = (control.value ?? '').toString();
279
284
  if (!value.trim()) {
@@ -291,13 +296,17 @@ class EmbedBlock {
291
296
  _content = signal({
292
297
  url: '',
293
298
  type: ''
294
- }, ...(ngDevMode ? [{ debugName: "_content" }] : /* istanbul ignore next */ []));
299
+ }, /* @ts-ignore */
300
+ ...(ngDevMode ? [{ debugName: "_content" }] : /* istanbul ignore next */ []));
295
301
  _settings = signal({
296
302
  width: null,
297
303
  height: null
298
- }, ...(ngDevMode ? [{ debugName: "_settings" }] : /* istanbul ignore next */ []));
299
- _props = signal([], ...(ngDevMode ? [{ debugName: "_props" }] : /* istanbul ignore next */ []));
300
- initialized = signal(false, ...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
304
+ }, /* @ts-ignore */
305
+ ...(ngDevMode ? [{ debugName: "_settings" }] : /* istanbul ignore next */ []));
306
+ _props = signal([], /* @ts-ignore */
307
+ ...(ngDevMode ? [{ debugName: "_props" }] : /* istanbul ignore next */ []));
308
+ initialized = signal(false, /* @ts-ignore */
309
+ ...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
301
310
  ngOnInit() {
302
311
  this._content.set(this.content());
303
312
  this._settings.set(this.settings());
@@ -326,10 +335,10 @@ class EmbedBlock {
326
335
  this.store.updateBlock(this.id(), { ...this.getData(), isEmpty: this.isEmpty() });
327
336
  this.contentBuilder.emitContentChangeEvent();
328
337
  }
329
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: EmbedBlock, deps: [], target: i0.ɵɵFactoryTarget.Component });
330
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: EmbedBlock, isStandalone: true, selector: "app-embed-block", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null }, settings: { classPropertyName: "settings", publicName: "settings", isSignal: true, isRequired: true, transformFunction: null }, props: { classPropertyName: "props", publicName: "props", isSignal: true, isRequired: false, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class.is-empty": "isEmpty()" }, classAttribute: "ngs-embed-block" }, providers: [EmbedService], ngImport: i0, template: "@if (isEmpty()) {\n <div class=\"bg-surface-container-low cursor-pointer hover:bg-surface-container p-4 rounded-2xl flex items-center gap-3\"\n #trigger=\"ngsPopoverTriggerFor\"\n [ngsPopoverTriggerFor]=\"addPopover\" position=\"below-center\" trigger=\"click\" hasBackdrop>\n <ngs-icon name=\"fluent:globe-24-regular\"/>\n <div class=\"text-sm\">Embed anything (PDFs, Google Docs, Google Maps, Spotify\u2026)</div>\n </div>\n <ngs-popover #addPopover>\n <div class=\"w-[400px] overflow-hidden\">\n <ngs-tab-group>\n <ngs-tab label=\"Embed\">\n <div class=\"p-4\">\n <ngs-form-field class=\"w-full\">\n <input ngsInput [formControl]=\"form.controls.url\" placeholder=\"Paste in https://...\">\n <div ngsSuffix class=\"pe-2\">\n <button ngsButton=\"filled\" type=\"button\" [disabled]=\"form.invalid\" (click)=\"embed(trigger)\">Embed</button>\n </div>\n </ngs-form-field>\n <p class=\"text-xs text-center\">Works with links of PDFs, Google Drive, Google Maps, CodePen\u2026</p>\n </div>\n </ngs-tab>\n <ngs-tab label=\"Upload\">\n <div class=\"p-4\">\n <div>\n <button ngsButton=\"filled\" class=\"w-full\">Upload</button>\n </div>\n <p class=\"text-xs text-center mt-4\">Upload a file from your computer.</p>\n </div>\n </ngs-tab>\n </ngs-tab-group>\n </div>\n </ngs-popover>\n} @else {\n <div class=\"w-full bg-surface-container-low w-[700px] h-[400px]\">\n <iframe width=\"100%\" height=\"100%\" [src]=\"_content().url | safeResourceUrl\" frameborder=\"0\" allowfullscreen></iframe>\n </div>\n}\n", styles: [""], dependencies: [{ kind: "component", type: Icon, selector: "ngs-icon", inputs: ["name"], exportAs: ["ngsIcon"] }, { kind: "component", type: Popover, selector: "ngs-popover", exportAs: ["ngsPopover"] }, { kind: "directive", type: PopoverTriggerForDirective, selector: "[ngsPopoverTriggerFor]", inputs: ["ngsPopoverTriggerFor", "ngsPopoverContext", "trigger", "position", "delay", "origin", "closeOnOriginClick", "closeOnOriginMouseLeave", "hasBackdrop"], outputs: ["opened", "closed"], exportAs: ["ngsPopoverTriggerFor"] }, { kind: "component", type: TabGroup, selector: "ngs-tab-group", inputs: ["selectedIndex", "headerPosition", "preserveContent", "ngs-stretch-tabs", "ngs-align-tabs", "disableRipple", "animationDuration", "animate.enter", "animate.leave"], outputs: ["selectedIndexChange", "selectedTabChange", "focusChange"] }, { kind: "component", type: Tab, selector: "ngs-tab", inputs: ["label", "aria-label", "aria-labelledby", "disabled"], exportAs: ["ngsTab"] }, { 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"] }, { kind: "component", type: FormField, selector: "ngs-form-field", inputs: ["subscriptHiddenIfEmpty", "sameHeightAsButton"], exportAs: ["ngsFormField"] }, { kind: "directive", type: Input, selector: "input[ngsInput], textarea[ngsInput]", inputs: ["id", "placeholder", "required", "disabled", "readonly", "errorStateMatcher"], exportAs: ["ngsInput"] }, { kind: "directive", type: Suffix, selector: "[ngsSuffix]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "pipe", type: SafeResourceUrlPipe, name: "safeResourceUrl" }] });
338
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: EmbedBlock, deps: [], target: i0.ɵɵFactoryTarget.Component });
339
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: EmbedBlock, isStandalone: true, selector: "app-embed-block", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null }, settings: { classPropertyName: "settings", publicName: "settings", isSignal: true, isRequired: true, transformFunction: null }, props: { classPropertyName: "props", publicName: "props", isSignal: true, isRequired: false, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class.is-empty": "isEmpty()" }, classAttribute: "ngs-embed-block" }, providers: [EmbedService], ngImport: i0, template: "@if (isEmpty()) {\n <div class=\"bg-surface-container-low cursor-pointer hover:bg-surface-container p-4 rounded-2xl flex items-center gap-3\"\n #trigger=\"ngsPopoverTriggerFor\"\n [ngsPopoverTriggerFor]=\"addPopover\" position=\"below-center\" trigger=\"click\" hasBackdrop>\n <ngs-icon name=\"fluent:globe-24-regular\"/>\n <div class=\"text-sm\">Embed anything (PDFs, Google Docs, Google Maps, Spotify\u2026)</div>\n </div>\n <ngs-popover #addPopover>\n <div class=\"w-[400px] overflow-hidden\">\n <ngs-tab-group>\n <ngs-tab label=\"Embed\">\n <div class=\"p-4\">\n <ngs-form-field class=\"w-full\">\n <input ngsInput [formControl]=\"form.controls.url\" placeholder=\"Paste in https://...\">\n <div ngsSuffix class=\"pe-2\">\n <button ngsButton=\"filled\" type=\"button\" [disabled]=\"form.invalid\" (click)=\"embed(trigger)\">Embed</button>\n </div>\n </ngs-form-field>\n <p class=\"text-xs text-center\">Works with links of PDFs, Google Drive, Google Maps, CodePen\u2026</p>\n </div>\n </ngs-tab>\n <ngs-tab label=\"Upload\">\n <div class=\"p-4\">\n <div>\n <button ngsButton=\"filled\" class=\"w-full\">Upload</button>\n </div>\n <p class=\"text-xs text-center mt-4\">Upload a file from your computer.</p>\n </div>\n </ngs-tab>\n </ngs-tab-group>\n </div>\n </ngs-popover>\n} @else {\n <div class=\"w-full bg-surface-container-low w-[700px] h-[400px]\">\n <iframe width=\"100%\" height=\"100%\" [src]=\"_content().url | safeResourceUrl\" frameborder=\"0\" allowfullscreen></iframe>\n </div>\n}\n", styles: [""], dependencies: [{ kind: "component", type: Icon, selector: "ngs-icon", inputs: ["name"], exportAs: ["ngsIcon"] }, { kind: "component", type: Popover, selector: "ngs-popover", exportAs: ["ngsPopover"] }, { kind: "directive", type: PopoverTriggerForDirective, selector: "[ngsPopoverTriggerFor]", inputs: ["ngsPopoverTriggerFor", "ngsPopoverContext", "trigger", "position", "delay", "origin", "closeOnOriginClick", "closeOnOriginMouseLeave", "hasBackdrop"], outputs: ["opened", "closed"], exportAs: ["ngsPopoverTriggerFor"] }, { kind: "component", type: TabGroup, selector: "ngs-tab-group", inputs: ["selectedIndex", "headerPosition", "preserveContent", "ngs-stretch-tabs", "ngs-align-tabs", "disableRipple", "animationDuration", "animate.enter", "animate.leave"], outputs: ["selectedIndexChange", "selectedTabChange", "focusChange"] }, { kind: "component", type: Tab, selector: "ngs-tab", inputs: ["label", "aria-label", "aria-labelledby", "disabled"], exportAs: ["ngsTab"] }, { 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"] }, { kind: "component", type: FormField, selector: "ngs-form-field", inputs: ["labelMode", "subscriptHiddenIfEmpty", "sameHeightAsButton"], exportAs: ["ngsFormField"] }, { kind: "directive", type: Input, selector: "input[ngsInput], textarea[ngsInput]", inputs: ["id", "placeholder", "required", "disabled", "readonly", "errorStateMatcher"], exportAs: ["ngsInput"] }, { kind: "directive", type: Suffix, selector: "[ngsSuffix]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, 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]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "pipe", type: SafeResourceUrlPipe, name: "safeResourceUrl" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
331
340
  }
332
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: EmbedBlock, decorators: [{
341
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: EmbedBlock, decorators: [{
333
342
  type: Component,
334
343
  args: [{ selector: 'app-embed-block', imports: [
335
344
  Icon,
@@ -344,11 +353,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
344
353
  FormsModule,
345
354
  ReactiveFormsModule,
346
355
  SafeResourceUrlPipe
347
- ], providers: [EmbedService], host: {
356
+ ], providers: [EmbedService], changeDetection: ChangeDetectionStrategy.Eager, host: {
348
357
  'class': 'ngs-embed-block',
349
358
  '[class.is-empty]': 'isEmpty()'
350
359
  }, template: "@if (isEmpty()) {\n <div class=\"bg-surface-container-low cursor-pointer hover:bg-surface-container p-4 rounded-2xl flex items-center gap-3\"\n #trigger=\"ngsPopoverTriggerFor\"\n [ngsPopoverTriggerFor]=\"addPopover\" position=\"below-center\" trigger=\"click\" hasBackdrop>\n <ngs-icon name=\"fluent:globe-24-regular\"/>\n <div class=\"text-sm\">Embed anything (PDFs, Google Docs, Google Maps, Spotify\u2026)</div>\n </div>\n <ngs-popover #addPopover>\n <div class=\"w-[400px] overflow-hidden\">\n <ngs-tab-group>\n <ngs-tab label=\"Embed\">\n <div class=\"p-4\">\n <ngs-form-field class=\"w-full\">\n <input ngsInput [formControl]=\"form.controls.url\" placeholder=\"Paste in https://...\">\n <div ngsSuffix class=\"pe-2\">\n <button ngsButton=\"filled\" type=\"button\" [disabled]=\"form.invalid\" (click)=\"embed(trigger)\">Embed</button>\n </div>\n </ngs-form-field>\n <p class=\"text-xs text-center\">Works with links of PDFs, Google Drive, Google Maps, CodePen\u2026</p>\n </div>\n </ngs-tab>\n <ngs-tab label=\"Upload\">\n <div class=\"p-4\">\n <div>\n <button ngsButton=\"filled\" class=\"w-full\">Upload</button>\n </div>\n <p class=\"text-xs text-center mt-4\">Upload a file from your computer.</p>\n </div>\n </ngs-tab>\n </ngs-tab-group>\n </div>\n </ngs-popover>\n} @else {\n <div class=\"w-full bg-surface-container-low w-[700px] h-[400px]\">\n <iframe width=\"100%\" height=\"100%\" [src]=\"_content().url | safeResourceUrl\" frameborder=\"0\" allowfullscreen></iframe>\n </div>\n}\n" }]
351
360
  }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: true }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: true }] }], settings: [{ type: i0.Input, args: [{ isSignal: true, alias: "settings", required: true }] }], props: [{ type: i0.Input, args: [{ isSignal: true, alias: "props", required: false }] }], index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: true }] }] } });
352
361
 
353
362
  export { EmbedBlock };
354
- //# sourceMappingURL=ngstarter-ui-components-content-editor-embed-block-BMBObSRE.mjs.map
363
+ //# sourceMappingURL=ngstarter-ui-components-content-editor-embed-block-DGqupBLe.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngstarter-ui-components-content-editor-embed-block-DGqupBLe.mjs","sources":["../../../projects/components/content-editor/src/_builder/embed-block/embed-service.ts","../../../projects/components/content-editor/src/_builder/embed-block/embed-block.ts","../../../projects/components/content-editor/src/_builder/embed-block/embed-block.html"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable()\nexport class EmbedService {\n parse(rawUrl: string): { url: string; type: string } {\n const cleaned = (rawUrl || '').trim();\n if (!cleaned) {\n return { url: '', type: '' };\n }\n\n const withScheme = /^(https?:)?\\/\\//i.test(cleaned) ? cleaned : `https://${cleaned}`;\n\n let u: URL | null = null;\n try {\n u = new URL(withScheme);\n } catch {\n return { url: cleaned, type: '' };\n }\n\n const host = u.hostname.toLowerCase();\n const path = u.pathname.toLowerCase();\n const href = u.toString();\n\n if (path.endsWith('.pdf')) {\n return { url: href, type: 'pdf' };\n } else if (host.includes('youtu.be') || host.includes('youtube.com')) {\n return { url: this.toYoutubeEmbed(u), type: 'youtube' };\n } else if (host.includes('vimeo.com')) {\n return { url: this.toVimeoEmbed(u), type: 'vimeo' };\n } else if (host.includes('spotify.com')) {\n return { url: this.toSpotifyEmbed(u), type: 'spotify' };\n } else if (host.includes('maps.google.') || (host.includes('google.') && path.startsWith('/maps'))) {\n return { url: this.toGoogleMapsEmbed(u), type: 'google-maps' };\n } else if (host.includes('docs.google.')) {\n return { url: this.toGoogleDocsEmbed(u), type: 'google-docs' };\n } else if (host.includes('drive.google.')) {\n return { url: this.toGoogleDriveEmbed(u), type: 'google-drive' };\n } else if (host.includes('codepen.io')) {\n return { url: this.toCodepenEmbed(u), type: 'codepen' };\n } else if (host.includes('figma.com')) {\n return { url: this.toFigmaEmbed(u), type: 'figma' };\n } else if (host.includes('loom.com')) {\n return { url: this.toLoomEmbed(u), type: 'loom' };\n } else if (host.includes('twitter.com') || host === 'x.com' || host.endsWith('.x.com')) {\n return { url: this.toTwitterEmbed(u), type: 'twitter' };\n } else if (host.includes('instagram.com')) {\n return { url: this.toInstagramEmbed(u), type: 'instagram' };\n } else if (host.includes('tiktok.com')) {\n return { url: this.toTiktokEmbed(u), type: 'tiktok' };\n } else if (host.includes('soundcloud.com')) {\n return { url: this.toSoundcloudEmbed(u), type: 'soundcloud' };\n } else if (host.includes('stackblitz.com')) {\n return { url: this.toStackblitzEmbed(u), type: 'stackblitz' };\n } else if (host.includes('gist.github.com')) {\n return { url: href, type: 'gist' };\n } else {\n return { url: href, type: 'website' };\n }\n }\n\n // ==== Provider transformers ====\n private toYoutubeEmbed(u: URL): string {\n // Already embed\n if (/^\\/embed\\//.test(u.pathname)) {\n return `https://www.youtube.com${u.pathname}${u.search}`;\n }\n\n const host = u.hostname.toLowerCase();\n let id = '';\n let start = '';\n\n if (host.includes('youtu.be')) {\n id = u.pathname.split('/').filter(Boolean)[0] || '';\n // t or start\n start = this.extractYouTubeStart(u.searchParams);\n } else {\n // youtube.com variants\n if (u.searchParams.get('v')) {\n id = u.searchParams.get('v') || '';\n start = this.extractYouTubeStart(u.searchParams);\n } else if (u.pathname.startsWith('/shorts/')) {\n id = u.pathname.split('/')[2] || '';\n } else if (u.pathname.startsWith('/live/')) {\n id = u.pathname.split('/')[2] || '';\n }\n }\n\n const qs = start ? `?start=${start}` : '';\n return id ? `https://www.youtube.com/embed/${id}${qs}` : u.toString();\n }\n\n private extractYouTubeStart(params: URLSearchParams): string {\n const t = params.get('t') || params.get('start') || '';\n if (!t) return '';\n // t can be in format 1h2m3s or 90 or 1m30s\n const total = this.parseTimeToSeconds(t);\n return total ? String(total) : '';\n }\n\n private parseTimeToSeconds(t: string): number {\n if (/^\\d+$/.test(t)) return parseInt(t, 10);\n const re = /(?:(\\d+)h)?(?:(\\d+)m)?(?:(\\d+)s)?/i;\n const m = t.match(re);\n if (!m) return 0;\n const h = parseInt(m[1] || '0', 10);\n const mnt = parseInt(m[2] || '0', 10);\n const s = parseInt(m[3] || '0', 10);\n return h * 3600 + mnt * 60 + s;\n }\n\n private toVimeoEmbed(u: URL): string {\n // extract last numeric id\n const parts = u.pathname.split('/').filter(Boolean);\n const last = parts[parts.length - 1] || '';\n const id = /^(\\d+)$/.test(last) ? last : (parts.includes('videos') ? parts[parts.indexOf('videos') + 1] : '');\n return id ? `https://player.vimeo.com/video/${id}` : u.toString();\n }\n\n private toSpotifyEmbed(u: URL): string {\n const parts = u.pathname.split('/').filter(Boolean);\n if (parts[0] === 'embed') return u.toString();\n // /{type}/{id}\n if (parts.length >= 2) {\n const type = parts[0];\n const id = parts[1];\n return `https://open.spotify.com/embed/${type}/${id}`;\n }\n return u.toString();\n }\n\n private toGoogleMapsEmbed(u: URL): string {\n const p = u.pathname;\n if (p.includes('/maps/embed') || u.searchParams.get('output') === 'embed') {\n return u.toString();\n }\n // Best-effort wrap original URL as query for embed\n return `https://www.google.com/maps?output=embed&q=${encodeURIComponent(u.toString())}`;\n }\n\n private toGoogleDocsEmbed(u: URL): string {\n // document, presentation, spreadsheets, forms\n const parts = u.pathname.split('/').filter(Boolean);\n if (parts.length >= 3) {\n const product = parts[0]; // document|presentation|spreadsheets|forms\n const kind = parts[1]; // usually 'd'\n const id = parts[2];\n if (product === 'document') {\n return `https://docs.google.com/document/d/${id}/preview`;\n }\n if (product === 'presentation') {\n return `https://docs.google.com/presentation/d/${id}/embed`;\n }\n if (product === 'spreadsheets') {\n return `https://docs.google.com/spreadsheets/d/${id}/preview`;\n }\n if (product === 'forms') {\n return `https://docs.google.com/forms/d/${id}/viewform?embedded=true`;\n }\n }\n return u.toString();\n }\n\n private toGoogleDriveEmbed(u: URL): string {\n // /file/d/{id}/view -> /file/d/{id}/preview\n const parts = u.pathname.split('/').filter(Boolean);\n const idx = parts.indexOf('d');\n if (parts[0] === 'file' && idx >= 0 && parts[idx + 1]) {\n const id = parts[idx + 1];\n return `https://drive.google.com/file/d/${id}/preview`;\n }\n // open?id=... -> uc?export=preview&id=...\n const openId = u.searchParams.get('id');\n if (openId) {\n return `https://drive.google.com/uc?export=preview&id=${encodeURIComponent(openId)}`;\n }\n return u.toString();\n }\n\n private toCodepenEmbed(u: URL): string {\n const parts = u.pathname.split('/').filter(Boolean);\n const user = parts[0];\n const mode = parts[1]; // pen|full|details|embed\n const id = parts[2];\n if (mode === 'embed') return u.toString();\n if (user && id) {\n return `https://codepen.io/${user}/embed/${id}`;\n }\n return u.toString();\n }\n\n private toFigmaEmbed(u: URL): string {\n return `https://www.figma.com/embed?embed_host=share&url=${encodeURIComponent(u.toString())}`;\n }\n\n private toLoomEmbed(u: URL): string {\n const parts = u.pathname.split('/').filter(Boolean);\n if (parts[0] === 'embed') return u.toString();\n // /share/{id}\n if (parts[0] === 'share' && parts[1]) {\n return `https://www.loom.com/embed/${parts[1]}`;\n }\n return u.toString();\n }\n\n private toTwitterEmbed(u: URL): string {\n // Use twitframe to get an embeddable iframe\n return `https://twitframe.com/show?url=${encodeURIComponent(u.toString())}`;\n }\n\n private toInstagramEmbed(u: URL): string {\n // Append /embed to post/reel URLs\n let p = u.pathname;\n if (!p.endsWith('/')) p += '/';\n if (!p.endsWith('embed/')) {\n p += 'embed/';\n }\n return `${u.protocol}//${u.host}${p}`;\n }\n\n private toTiktokEmbed(u: URL): string {\n // Expect /@user/video/{id}\n const parts = u.pathname.split('/').filter(Boolean);\n const idx = parts.indexOf('video');\n if (idx >= 0 && parts[idx + 1]) {\n const id = parts[idx + 1];\n return `https://www.tiktok.com/embed/v2/${id}`;\n }\n return u.toString();\n }\n\n private toSoundcloudEmbed(u: URL): string {\n return `https://w.soundcloud.com/player/?url=${encodeURIComponent(u.toString())}`;\n }\n\n private toStackblitzEmbed(u: URL): string {\n // Ensure we have the embed parameter for StackBlitz iframe\n const url = new URL(u.toString());\n if (url.searchParams.get('embed') !== '1') {\n url.searchParams.set('embed', '1');\n }\n // Keep other parameters like file, terminal, ctl, hideExplorer if provided by user\n return url.toString();\n }\n}\n","import { Component, DestroyRef, inject, input, signal, ChangeDetectionStrategy } from '@angular/core';\nimport { ContentBuilderStore } from '../../content-builder.store';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { Icon } from '@ngstarter-ui/components/icon';\nimport { Popover, PopoverTriggerForDirective } from '@ngstarter-ui/components/popover';\nimport { Tab, TabGroup } from '@ngstarter-ui/components/tabs';\nimport { Button } from '@ngstarter-ui/components/button';\nimport { Input } from '@ngstarter-ui/components/input';\nimport { FormField, Suffix } from '@ngstarter-ui/components/form-field';\nimport { AbstractControl, FormBuilder, FormsModule, ReactiveFormsModule, ValidationErrors, ValidatorFn, Validators } from '@angular/forms';\nimport { EmbedService } from './embed-service';\nimport { SafeResourceUrlPipe } from '@ngstarter-ui/components/core';\nimport {\n CONTENT_BUILDER,\n ContentEditorEmbedBlockSettings,\n ContentEditorEmbedContent,\n ContentEditorItemProperty\n} from '../../types';\nimport { ContentBuilderComponent } from '../../content-builder/content-builder.component';\n\n@Component({\n selector: 'app-embed-block',\n imports: [\n Icon,\n Popover,\n PopoverTriggerForDirective,\n TabGroup,\n Tab,\n Button,\n FormField,\n Input,\n Suffix,\n FormsModule,\n ReactiveFormsModule,\n SafeResourceUrlPipe\n ],\n providers: [EmbedService],\n templateUrl: './embed-block.html',\n styleUrl: './embed-block.scss',\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n 'class': 'ngs-embed-block',\n '[class.is-empty]': 'isEmpty()'\n }\n})\nexport class EmbedBlock {\n private store = inject(ContentBuilderStore);\n private contentBuilder = inject<ContentBuilderComponent>(CONTENT_BUILDER);\n private destroyRef = inject(DestroyRef);\n private formBuilder = inject(FormBuilder);\n private embedService = inject(EmbedService);\n\n id = input.required<string>();\n content = input.required<ContentEditorEmbedContent>();\n settings = input.required<ContentEditorEmbedBlockSettings>();\n props = input<ContentEditorItemProperty[]>([]);\n index = input.required<number>();\n\n private readonly embedUrlValidator: ValidatorFn = (control: AbstractControl): ValidationErrors | null => {\n const value = (control.value ?? '').toString();\n\n if (!value.trim()) {\n return null;\n }\n\n const { type } = this.embedService.parse(value);\n\n if (!type || type === 'website') {\n return { embedUrl: true };\n }\n\n return null;\n };\n\n protected form = this.formBuilder.nonNullable.group({\n url: ['', [Validators.required, this.embedUrlValidator]],\n });\n\n protected _content = signal<ContentEditorEmbedContent>({\n url: '',\n type: ''\n });\n protected _settings = signal<ContentEditorEmbedBlockSettings>({\n width: null,\n height: null\n });\n protected _props = signal<ContentEditorItemProperty[]>([]);\n readonly initialized = signal(false);\n\n ngOnInit() {\n this._content.set(this.content());\n this._settings.set(this.settings());\n this._props.set(this.props());\n this.contentBuilder\n .focusChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n if (this.store.focusedBlockId() === this.id()) {\n\n }\n });\n }\n\n getData(): any {\n return {\n content: this._content(),\n props: this._props(),\n settings: this._settings()\n };\n }\n\n isEmpty() {\n return this.getData().content.url === '' && this.getData().content.type === '';\n }\n\n embed(trigger: PopoverTriggerForDirective) {\n this._content.set(this.embedService.parse(this.form.value.url || ''));\n trigger.api.close();\n this.store.updateBlock(this.id(), {...this.getData(), isEmpty: this.isEmpty()});\n this.contentBuilder.emitContentChangeEvent();\n }\n}\n","@if (isEmpty()) {\n <div class=\"bg-surface-container-low cursor-pointer hover:bg-surface-container p-4 rounded-2xl flex items-center gap-3\"\n #trigger=\"ngsPopoverTriggerFor\"\n [ngsPopoverTriggerFor]=\"addPopover\" position=\"below-center\" trigger=\"click\" hasBackdrop>\n <ngs-icon name=\"fluent:globe-24-regular\"/>\n <div class=\"text-sm\">Embed anything (PDFs, Google Docs, Google Maps, Spotify…)</div>\n </div>\n <ngs-popover #addPopover>\n <div class=\"w-[400px] overflow-hidden\">\n <ngs-tab-group>\n <ngs-tab label=\"Embed\">\n <div class=\"p-4\">\n <ngs-form-field class=\"w-full\">\n <input ngsInput [formControl]=\"form.controls.url\" placeholder=\"Paste in https://...\">\n <div ngsSuffix class=\"pe-2\">\n <button ngsButton=\"filled\" type=\"button\" [disabled]=\"form.invalid\" (click)=\"embed(trigger)\">Embed</button>\n </div>\n </ngs-form-field>\n <p class=\"text-xs text-center\">Works with links of PDFs, Google Drive, Google Maps, CodePen…</p>\n </div>\n </ngs-tab>\n <ngs-tab label=\"Upload\">\n <div class=\"p-4\">\n <div>\n <button ngsButton=\"filled\" class=\"w-full\">Upload</button>\n </div>\n <p class=\"text-xs text-center mt-4\">Upload a file from your computer.</p>\n </div>\n </ngs-tab>\n </ngs-tab-group>\n </div>\n </ngs-popover>\n} @else {\n <div class=\"w-full bg-surface-container-low w-[700px] h-[400px]\">\n <iframe width=\"100%\" height=\"100%\" [src]=\"_content().url | safeResourceUrl\" frameborder=\"0\" allowfullscreen></iframe>\n </div>\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAGa,YAAY,CAAA;AACvB,IAAA,KAAK,CAAC,MAAc,EAAA;QAClB,MAAM,OAAO,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE,IAAI,EAAE;QACrC,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QAC9B;AAEA,QAAA,MAAM,UAAU,GAAG,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,CAAA,QAAA,EAAW,OAAO,EAAE;QAEpF,IAAI,CAAC,GAAe,IAAI;AACxB,QAAA,IAAI;AACF,YAAA,CAAC,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC;QACzB;AAAE,QAAA,MAAM;YACN,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;QACnC;QAEA,MAAM,IAAI,GAAG,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE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A,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACX,mBAAmB,6MACnB,mBAAmB,EAAA,IAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA;;2FAWV,UAAU,EAAA,UAAA,EAAA,CAAA;kBAzBtB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EAAA,OAAA,EAClB;wBACP,IAAI;wBACJ,OAAO;wBACP,0BAA0B;wBAC1B,QAAQ;wBACR,GAAG;wBACH,MAAM;wBACN,SAAS;wBACT,KAAK;wBACL,MAAM;wBACN,WAAW;wBACX,mBAAmB;wBACnB;AACD,qBAAA,EAAA,SAAA,EACU,CAAC,YAAY,CAAC,mBAGR,uBAAuB,CAAC,KAAK,EAAA,IAAA,EACxC;AACJ,wBAAA,OAAO,EAAE,iBAAiB;AAC1B,wBAAA,kBAAkB,EAAE;AACrB,qBAAA,EAAA,QAAA,EAAA,6sDAAA,EAAA;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, DestroyRef, viewChild, input, signal, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { C as ContentBuilderStore, a as CONTENT_BUILDER, b as CONTENT_EDITOR_BLOCK } from './ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-Be8dDH3z.mjs';
4
- import { C as ContentEditorContentEditableDirective } from './ngstarter-ui-components-content-editor-content-editor-content-editable.directive-Bvfa2dqh.mjs';
3
+ import { C as ContentBuilderStore, a as CONTENT_BUILDER, b as CONTENT_EDITOR_BLOCK } from './ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CV959OGj.mjs';
4
+ import { C as ContentEditorContentEditableDirective } from './ngstarter-ui-components-content-editor-content-editor-content-editable.directive-BOXOHcSo.mjs';
5
5
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
6
  import { C as CursorController } from './ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs';
7
7
 
@@ -9,17 +9,28 @@ class HeadingBlockComponent {
9
9
  _store = inject(ContentBuilderStore);
10
10
  _contentBuilder = inject(CONTENT_BUILDER);
11
11
  _destroyRef = inject(DestroyRef);
12
- _contentRef = viewChild.required('contentRef');
13
- id = input.required(...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
14
- content = input.required(...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
15
- settings = input.required(...(ngDevMode ? [{ debugName: "settings" }] : /* istanbul ignore next */ []));
16
- props = input([], ...(ngDevMode ? [{ debugName: "props" }] : /* istanbul ignore next */ []));
17
- index = input.required(...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
18
- placeholder = input('Heading', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
19
- _content = signal('', ...(ngDevMode ? [{ debugName: "_content" }] : /* istanbul ignore next */ []));
20
- _isEmpty = signal(true, ...(ngDevMode ? [{ debugName: "_isEmpty" }] : /* istanbul ignore next */ []));
21
- _props = signal([], ...(ngDevMode ? [{ debugName: "_props" }] : /* istanbul ignore next */ []));
22
- initialized = signal(false, ...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
12
+ _contentRef = viewChild.required('contentRef', /* @ts-ignore */
13
+ ...(ngDevMode ? [{ debugName: "_contentRef" }] : /* istanbul ignore next */ []));
14
+ id = input.required(/* @ts-ignore */
15
+ ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
16
+ content = input.required(/* @ts-ignore */
17
+ ...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
18
+ settings = input.required(/* @ts-ignore */
19
+ ...(ngDevMode ? [{ debugName: "settings" }] : /* istanbul ignore next */ []));
20
+ props = input([], /* @ts-ignore */
21
+ ...(ngDevMode ? [{ debugName: "props" }] : /* istanbul ignore next */ []));
22
+ index = input.required(/* @ts-ignore */
23
+ ...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
24
+ placeholder = input('Heading', /* @ts-ignore */
25
+ ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
26
+ _content = signal('', /* @ts-ignore */
27
+ ...(ngDevMode ? [{ debugName: "_content" }] : /* istanbul ignore next */ []));
28
+ _isEmpty = signal(true, /* @ts-ignore */
29
+ ...(ngDevMode ? [{ debugName: "_isEmpty" }] : /* istanbul ignore next */ []));
30
+ _props = signal([], /* @ts-ignore */
31
+ ...(ngDevMode ? [{ debugName: "_props" }] : /* istanbul ignore next */ []));
32
+ initialized = signal(false, /* @ts-ignore */
33
+ ...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
23
34
  ngOnInit() {
24
35
  this._content.set(this.content());
25
36
  this._props.set(this.props());
@@ -83,16 +94,16 @@ class HeadingBlockComponent {
83
94
  this._store.updateBlock(this.id(), { ...this.getData(), isEmpty: this.isEmpty() });
84
95
  this._contentBuilder.emitContentChangeEvent();
85
96
  }
86
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: HeadingBlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
87
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.4", type: HeadingBlockComponent, isStandalone: true, selector: "ngs-heading-block", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null }, settings: { classPropertyName: "settings", publicName: "settings", isSignal: true, isRequired: true, transformFunction: null }, props: { classPropertyName: "props", publicName: "props", isSignal: true, isRequired: false, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.is-empty": "_isEmpty()", "class.level-1": "settings().level === 1", "class.level-2": "settings().level === 2", "class.level-3": "settings().level === 3" } }, providers: [
97
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: HeadingBlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
98
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", type: HeadingBlockComponent, isStandalone: true, selector: "ngs-heading-block", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null }, settings: { classPropertyName: "settings", publicName: "settings", isSignal: true, isRequired: true, transformFunction: null }, props: { classPropertyName: "props", publicName: "props", isSignal: true, isRequired: false, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.is-empty": "_isEmpty()", "class.level-1": "settings().level === 1", "class.level-2": "settings().level === 2", "class.level-3": "settings().level === 3" } }, providers: [
88
99
  {
89
100
  provide: CONTENT_EDITOR_BLOCK,
90
101
  useExisting: HeadingBlockComponent,
91
102
  multi: true
92
103
  }
93
- ], viewQueries: [{ propertyName: "_contentRef", first: true, predicate: ["contentRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<div #contentRef\n class=\"content\"\n [ngsContentEditorContentEditable]=\"_content()\"\n [props]=\"props()\"\n (propsChanged)=\"onPropsChanged($event)\"\n [attr.data-empty-placeholder]=\"placeholder()\"\n (contentChanged)=\"onContentChanged($event)\"\n (pressedEnter)=\"onPressedEnter($event)\"\n (keydown)=\"_onKeyDown($event)\"\n (initialized)=\"onContentEditableInitialized()\"></div>\n", styles: [":host{display:block}:host .content{outline:none;font-weight:700}:host .content:empty:before{content:attr(data-empty-placeholder);color:var(--ngs-color-neutral-500)}:host.level-1 .content{font-size:3rem}:host.level-2 .content{font-size:2.25rem}:host.level-3 .content{font-size:1.875rem}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: ContentEditorContentEditableDirective, selector: "[ngsContentEditorContentEditable]", inputs: ["ngsContentEditorContentEditable", "settings", "props"], outputs: ["contentChanged", "pressedEnter", "initialized", "propsChanged"], exportAs: ["ngsContentEditorContentEditable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
104
+ ], viewQueries: [{ propertyName: "_contentRef", first: true, predicate: ["contentRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<div #contentRef\n class=\"content\"\n [ngsContentEditorContentEditable]=\"_content()\"\n [props]=\"props()\"\n (propsChanged)=\"onPropsChanged($event)\"\n [attr.data-empty-placeholder]=\"placeholder()\"\n (contentChanged)=\"onContentChanged($event)\"\n (pressedEnter)=\"onPressedEnter($event)\"\n (keydown)=\"_onKeyDown($event)\"\n (initialized)=\"onContentEditableInitialized()\"></div>\n", styles: [":host{display:block}:host .content{outline:none;font-weight:700}:host .content:empty:before{content:attr(data-empty-placeholder);color:var(--ngs-color-neutral-500)}:host.level-1 .content{font-size:3rem}:host.level-2 .content{font-size:2.25rem}:host.level-3 .content{font-size:1.875rem}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: ContentEditorContentEditableDirective, selector: "[ngsContentEditorContentEditable]", inputs: ["ngsContentEditorContentEditable", "settings", "props"], outputs: ["contentChanged", "pressedEnter", "initialized", "propsChanged"], exportAs: ["ngsContentEditorContentEditable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
94
105
  }
95
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: HeadingBlockComponent, decorators: [{
106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: HeadingBlockComponent, decorators: [{
96
107
  type: Component,
97
108
  args: [{ selector: 'ngs-heading-block', imports: [
98
109
  ContentEditorContentEditableDirective
@@ -107,8 +118,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
107
118
  '[class.level-1]': 'settings().level === 1',
108
119
  '[class.level-2]': 'settings().level === 2',
109
120
  '[class.level-3]': 'settings().level === 3',
110
- }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #contentRef\n class=\"content\"\n [ngsContentEditorContentEditable]=\"_content()\"\n [props]=\"props()\"\n (propsChanged)=\"onPropsChanged($event)\"\n [attr.data-empty-placeholder]=\"placeholder()\"\n (contentChanged)=\"onContentChanged($event)\"\n (pressedEnter)=\"onPressedEnter($event)\"\n (keydown)=\"_onKeyDown($event)\"\n (initialized)=\"onContentEditableInitialized()\"></div>\n", styles: [":host{display:block}:host .content{outline:none;font-weight:700}:host .content:empty:before{content:attr(data-empty-placeholder);color:var(--ngs-color-neutral-500)}:host.level-1 .content{font-size:3rem}:host.level-2 .content{font-size:2.25rem}:host.level-3 .content{font-size:1.875rem}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
121
+ }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #contentRef\n class=\"content\"\n [ngsContentEditorContentEditable]=\"_content()\"\n [props]=\"props()\"\n (propsChanged)=\"onPropsChanged($event)\"\n [attr.data-empty-placeholder]=\"placeholder()\"\n (contentChanged)=\"onContentChanged($event)\"\n (pressedEnter)=\"onPressedEnter($event)\"\n (keydown)=\"_onKeyDown($event)\"\n (initialized)=\"onContentEditableInitialized()\"></div>\n", styles: [":host{display:block}:host .content{outline:none;font-weight:700}:host .content:empty:before{content:attr(data-empty-placeholder);color:var(--ngs-color-neutral-500)}:host.level-1 .content{font-size:3rem}:host.level-2 .content{font-size:2.25rem}:host.level-3 .content{font-size:1.875rem}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
111
122
  }], propDecorators: { _contentRef: [{ type: i0.ViewChild, args: ['contentRef', { isSignal: true }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: true }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: true }] }], settings: [{ type: i0.Input, args: [{ isSignal: true, alias: "settings", required: true }] }], props: [{ type: i0.Input, args: [{ isSignal: true, alias: "props", required: false }] }], index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: true }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
112
123
 
113
124
  export { HeadingBlockComponent };
114
- //# sourceMappingURL=ngstarter-ui-components-content-editor-heading-block.component-DL9PehLX.mjs.map
125
+ //# sourceMappingURL=ngstarter-ui-components-content-editor-heading-block.component-D1s2yalT.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngstarter-ui-components-content-editor-heading-block.component-D1s2yalT.mjs","sources":["../../../projects/components/content-editor/src/_builder/heading-block/heading-block.component.ts","../../../projects/components/content-editor/src/_builder/heading-block/heading-block.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n inject,\n input,\n OnInit,\n signal,\n viewChild\n} from '@angular/core';\nimport { ContentBuilderStore } from '../../content-builder.store';\nimport {\n CONTENT_BUILDER,\n CONTENT_EDITOR_BLOCK,\n ContentEditorDataBlock,\n ContentEditorHeadingBlockSettings,\n ContentEditorItemProperty\n} from '../../types';\nimport { ContentEditorContentEditableDirective } from '../../content-editor-content-editable.directive';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ContentBuilderComponent } from '../../content-builder/content-builder.component';\nimport { CursorController } from '../../utils/cursor-controller';\n\n@Component({\n selector: 'ngs-heading-block',\n imports: [\n ContentEditorContentEditableDirective\n ],\n templateUrl: './heading-block.component.html',\n styleUrl: './heading-block.component.scss',\n providers: [\n {\n provide: CONTENT_EDITOR_BLOCK,\n useExisting: HeadingBlockComponent,\n multi: true\n }\n ],\n host: {\n '[class.is-empty]': '_isEmpty()',\n '[class.level-1]': 'settings().level === 1',\n '[class.level-2]': 'settings().level === 2',\n '[class.level-3]': 'settings().level === 3',\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class HeadingBlockComponent implements OnInit, ContentEditorDataBlock {\n private _store = inject(ContentBuilderStore);\n private _contentBuilder = inject<ContentBuilderComponent>(CONTENT_BUILDER);\n private _destroyRef = inject(DestroyRef);\n\n private _contentRef = viewChild.required<ElementRef<HTMLParagraphElement>>('contentRef');\n\n id = input.required<string>();\n content = input.required<string>();\n settings = input.required<ContentEditorHeadingBlockSettings>();\n props = input<ContentEditorItemProperty[]>([]);\n index = input.required<number>();\n placeholder = input('Heading');\n\n protected _content = signal<string>('')\n protected _isEmpty = signal<boolean>(true);\n protected _props = signal<ContentEditorItemProperty[]>([]);\n readonly initialized = signal(false);\n\n ngOnInit() {\n this._content.set(this.content());\n this._props.set(this.props());\n this._isEmpty.set(this.content().length === 0);\n this._contentBuilder\n .focusChanged\n .pipe(takeUntilDestroyed(this._destroyRef))\n .subscribe(() => {\n if (this._store.focusedBlockId() === this.id()) {\n this.focus();\n }\n });\n }\n\n focus() {\n const element = this._contentRef().nativeElement;\n const cursorController = new CursorController(element);\n cursorController.setToEnd();\n }\n\n onPropsChanged(props: ContentEditorItemProperty[]) {\n this._contentBuilder.setBlockProps(this.id(), props);\n this._store.updateBlock(this.id(), this.getData());\n this.update();\n }\n\n getData(): any {\n return {\n content: this._content(),\n props: this._props(),\n settings: {\n ...this.settings(),\n }\n };\n }\n\n isEmpty(): boolean {\n return this.getData().content.trim().length === 0;\n }\n\n protected onContentChanged(content: string) {\n if (!this.initialized()) {\n return;\n }\n\n this._content.set(content);\n this._isEmpty.set(content.length === 0);\n\n this.update();\n }\n\n protected onPressedEnter(event: KeyboardEvent) {\n event.preventDefault();\n event.stopPropagation();\n this._contentBuilder.insertEmptyBlock(this.index());\n }\n\n protected onContentEditableInitialized() {\n if (this._store.focusedBlockId() === this.id()) {\n this.focus();\n }\n\n this.initialized.set(true);\n }\n\n protected _onKeyDown(event: KeyboardEvent) {\n if (event.key === 'Backspace' && !this._content()) {\n this._contentBuilder.deleteBlock(this.id());\n }\n }\n\n private update() {\n this._store.updateBlock(this.id(), {...this.getData(), isEmpty: this.isEmpty()});\n this._contentBuilder.emitContentChangeEvent();\n }\n}\n","<div #contentRef\n class=\"content\"\n [ngsContentEditorContentEditable]=\"_content()\"\n [props]=\"props()\"\n (propsChanged)=\"onPropsChanged($event)\"\n [attr.data-empty-placeholder]=\"placeholder()\"\n (contentChanged)=\"onContentChanged($event)\"\n (pressedEnter)=\"onPressedEnter($event)\"\n (keydown)=\"_onKeyDown($event)\"\n (initialized)=\"onContentEditableInitialized()\"></div>\n"],"names":[],"mappings":";;;;;;;MA8Ca,qBAAqB,CAAA;AACxB,IAAA,MAAM,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACpC,IAAA,eAAe,GAAG,MAAM,CAA0B,eAAe,CAAC;AAClE,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAEhC,IAAA,WAAW,GAAG,SAAS,CAAC,QAAQ,CAAmC,YAAY;oFAAC;IAExF,EAAE,GAAG,KAAK,CAAC,QAAQ;2EAAU;IAC7B,OAAO,GAAG,KAAK,CAAC,QAAQ;gFAAU;IAClC,QAAQ,GAAG,KAAK,CAAC,QAAQ;iFAAqC;IAC9D,KAAK,GAAG,KAAK,CAA8B,EAAE;8EAAC;IAC9C,KAAK,GAAG,KAAK,CAAC,QAAQ;8EAAU;IAChC,WAAW,GAAG,KAAK,CAAC,SAAS;oFAAC;IAEpB,QAAQ,GAAG,MAAM,CAAS,EAAE;iFAAC;IAC7B,QAAQ,GAAG,MAAM,CAAU,IAAI;iFAAC;IAChC,MAAM,GAAG,MAAM,CAA8B,EAAE;+EAAC;IACjD,WAAW,GAAG,MAAM,CAAC,KAAK;oFAAC;IAEpC,QAAQ,GAAA;QACN,IAAI,CAAC,QAAQ,CAAC,GAAG,CA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{ ProgressBar } from '@ngstarter-ui/components/progress-bar';
5
5
  import { Button } from '@ngstarter-ui/components/button';
6
6
  import { Icon } from '@ngstarter-ui/components/icon';
7
- import { C as ContentBuilderStore, a as CONTENT_BUILDER, b as CONTENT_EDITOR_BLOCK } from './ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-Be8dDH3z.mjs';
7
+ import { C as ContentBuilderStore, a as CONTENT_BUILDER, b as CONTENT_EDITOR_BLOCK } from './ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CV959OGj.mjs';
8
8
  import { ImageResizer, ImageResizerImageDirective } from '@ngstarter-ui/components/image-resizer';
9
9
  import { FormField, Label } from '@ngstarter-ui/components/form-field';
10
10
  import { Input } from '@ngstarter-ui/components/input';
@@ -14,16 +14,26 @@ import { FormsModule } from '@angular/forms';
14
14
  class ImageBlockComponent {
15
15
  _store = inject(ContentBuilderStore);
16
16
  _contentBuilder = inject(CONTENT_BUILDER);
17
- id = input.required(...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
18
- content = input.required(...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
19
- settings = input.required(...(ngDevMode ? [{ debugName: "settings" }] : /* istanbul ignore next */ []));
20
- index = input.required(...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
21
- uploading = signal(false, ...(ngDevMode ? [{ debugName: "uploading" }] : /* istanbul ignore next */ []));
22
- selectedImage = signal('', ...(ngDevMode ? [{ debugName: "selectedImage" }] : /* istanbul ignore next */ []));
23
- _src = signal('', ...(ngDevMode ? [{ debugName: "_src" }] : /* istanbul ignore next */ []));
24
- _alt = model('', ...(ngDevMode ? [{ debugName: "_alt" }] : /* istanbul ignore next */ []));
25
- _settings = model({}, ...(ngDevMode ? [{ debugName: "_settings" }] : /* istanbul ignore next */ []));
26
- initialized = signal(false, ...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
17
+ id = input.required(/* @ts-ignore */
18
+ ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
19
+ content = input.required(/* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
21
+ settings = input.required(/* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "settings" }] : /* istanbul ignore next */ []));
23
+ index = input.required(/* @ts-ignore */
24
+ ...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
25
+ uploading = signal(false, /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "uploading" }] : /* istanbul ignore next */ []));
27
+ selectedImage = signal('', /* @ts-ignore */
28
+ ...(ngDevMode ? [{ debugName: "selectedImage" }] : /* istanbul ignore next */ []));
29
+ _src = signal('', /* @ts-ignore */
30
+ ...(ngDevMode ? [{ debugName: "_src" }] : /* istanbul ignore next */ []));
31
+ _alt = model('', /* @ts-ignore */
32
+ ...(ngDevMode ? [{ debugName: "_alt" }] : /* istanbul ignore next */ []));
33
+ _settings = model({}, /* @ts-ignore */
34
+ ...(ngDevMode ? [{ debugName: "_settings" }] : /* istanbul ignore next */ []));
35
+ initialized = signal(false, /* @ts-ignore */
36
+ ...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
27
37
  ngOnInit() {
28
38
  this._src.set(this.content().src);
29
39
  this._alt.set(this.content().alt);
@@ -108,16 +118,16 @@ class ImageBlockComponent {
108
118
  this._store.updateBlock(this.id(), { ...this.getData(), isEmpty: this.isEmpty() });
109
119
  this._contentBuilder.emitContentChangeEvent();
110
120
  }
111
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: ImageBlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
112
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: ImageBlockComponent, isStandalone: true, selector: "ngs-image-block", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null }, settings: { classPropertyName: "settings", publicName: "settings", isSignal: true, isRequired: true, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null }, _alt: { classPropertyName: "_alt", publicName: "_alt", isSignal: true, isRequired: false, transformFunction: null }, _settings: { classPropertyName: "_settings", publicName: "_settings", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { _alt: "_altChange", _settings: "_settingsChange" }, host: { listeners: { "keypress": "handleKeyPress($event)" } }, providers: [
121
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ImageBlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
122
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: ImageBlockComponent, isStandalone: true, selector: "ngs-image-block", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null }, settings: { classPropertyName: "settings", publicName: "settings", isSignal: true, isRequired: true, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null }, _alt: { classPropertyName: "_alt", publicName: "_alt", isSignal: true, isRequired: false, transformFunction: null }, _settings: { classPropertyName: "_settings", publicName: "_settings", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { _alt: "_altChange", _settings: "_settingsChange" }, host: { listeners: { "keypress": "handleKeyPress($event)" } }, providers: [
113
123
  {
114
124
  provide: CONTENT_EDITOR_BLOCK,
115
125
  useExisting: forwardRef(() => ImageBlockComponent),
116
126
  multi: true
117
127
  }
118
- ], ngImport: i0, template: "@if (uploading()) {\n <div class=\"upload-container\">\n <div class=\"upload-overlay\">\n <ngs-progress-bar mode=\"indeterminate\" class=\"progress-bar\"/>\n <div class=\"remove-button\">\n <button ngsButton (click)=\"cancelUploading()\">\n <ngs-icon name=\"fluent:delete-24-regular\"/>\n </button>\n </div>\n <div class=\"upload-overlay-text\">Loading...</div>\n </div>\n <img [src]=\"selectedImage()\" [alt]=\"_alt()\">\n </div>\n} @else if (_src()) {\n <div class=\"uploaded-image\">\n <ngs-image-resizer (imageResized)=\"_onImageResized($event)\" [imageMaxWidth]=\"704\">\n <img [src]=\"_src()\" [alt]=\"_alt()\" ngsImageResizerImage [style.width.px]=\"_settings().width || null\">\n </ngs-image-resizer>\n </div>\n <ngs-form-field class=\"w-full mt-5\">\n <ngs-label>Alt text</ngs-label>\n <input ngsInput [(ngModel)]=\"_alt\" (ngModelChange)=\"_onAltChange()\">\n </ngs-form-field>\n} @else {\n <ngs-upload-area #uploadArea=\"ngsUploadArea\"\n ngsUploadTrigger accept=\"image/*\"\n (fileSelected)=\"onFileSelected($event)\"\n multiple=\"false\" class=\"upload-area\">\n @if (!uploadArea.api.isDropActive) {\n Drag & drop image here or click to upload\n } @else {\n <div class=\"font-medium\">Drop image here</div>\n }\n </ngs-upload-area>\n}\n", styles: ["@layer properties;:host{display:block}:host ngs-upload-area{--ngs-upload-area-padding: calc(var(--spacing, .25rem) * 6) calc(var(--spacing, .25rem) * 10)}:host img{max-width:100%}:host .upload-container{position:relative}:host .upload-overlay{position:absolute;inset:calc(var(--spacing, .25rem) * 0);z-index:1;display:flex;align-items:center;justify-content:center;background:#fffc}:host .progress-bar{position:absolute;inset-inline-start:calc(var(--spacing, .25rem) * 0);inset-inline-end:calc(var(--spacing, .25rem) * 0);top:calc(var(--spacing, .25rem) * 0)}:host .uploaded-image{display:flex;width:704px;align-items:center;justify-content:center}:host .upload-overlay-text{background:#fff;border-radius:var(--radius-lg, .5rem);padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 1.5);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}:host .remove-button{position:absolute;inset-inline-end:calc(var(--spacing, .25rem) * 2);top:calc(var(--spacing, .25rem) * 4);z-index:1;width:max-content}:host .upload-area{cursor:pointer}:host .upload-area:hover{outline-style:var(--tw-outline-style);outline-width:2px;outline-color:var(--ngs-color-primary)}@property --tw-outline-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-outline-style: solid}}}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: UploadArea, selector: "ngs-upload-area", inputs: ["accept", "allowHover", "multiple"], outputs: ["fileSelected"], exportAs: ["ngsUploadArea"] }, { kind: "directive", type: UploadTriggerDirective, selector: "[ngsUploadTrigger]", inputs: ["accept", "multiple"], outputs: ["fileSelected"], exportAs: ["ngsUploadTrigger"] }, { kind: "component", type: ProgressBar, selector: "ngs-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["ngsProgressBar"] }, { 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"] }, { kind: "component", type: Icon, selector: "ngs-icon", inputs: ["name"], exportAs: ["ngsIcon"] }, { kind: "component", type: ImageResizer, selector: "ngs-image-resizer", inputs: ["imageMaxWidth", "imageMinWidth"], outputs: ["imageResized"], exportAs: ["ngsImageResizer"] }, { kind: "component", type: FormField, selector: "ngs-form-field", inputs: ["subscriptHiddenIfEmpty", "sameHeightAsButton"], exportAs: ["ngsFormField"] }, { kind: "directive", type: Input, selector: "input[ngsInput], textarea[ngsInput]", inputs: ["id", "placeholder", "required", "disabled", "readonly", "errorStateMatcher"], exportAs: ["ngsInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: ImageResizerImageDirective, selector: "[ngsImageResizerImage]", exportAs: ["ngsImageResizerImage"] }, { kind: "component", type: Label, selector: "ngs-label" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
128
+ ], ngImport: i0, template: "@if (uploading()) {\n <div class=\"upload-container\">\n <div class=\"upload-overlay\">\n <ngs-progress-bar mode=\"indeterminate\" class=\"progress-bar\"/>\n <div class=\"remove-button\">\n <button ngsButton (click)=\"cancelUploading()\">\n <ngs-icon name=\"fluent:delete-24-regular\"/>\n </button>\n </div>\n <div class=\"upload-overlay-text\">Loading...</div>\n </div>\n <img [src]=\"selectedImage()\" [alt]=\"_alt()\">\n </div>\n} @else if (_src()) {\n <div class=\"uploaded-image\">\n <ngs-image-resizer (imageResized)=\"_onImageResized($event)\" [imageMaxWidth]=\"704\">\n <img [src]=\"_src()\" [alt]=\"_alt()\" ngsImageResizerImage [style.width.px]=\"_settings().width || null\">\n </ngs-image-resizer>\n </div>\n <ngs-form-field class=\"w-full mt-5\">\n <ngs-label>Alt text</ngs-label>\n <input ngsInput [(ngModel)]=\"_alt\" (ngModelChange)=\"_onAltChange()\">\n </ngs-form-field>\n} @else {\n <ngs-upload-area #uploadArea=\"ngsUploadArea\"\n ngsUploadTrigger accept=\"image/*\"\n (fileSelected)=\"onFileSelected($event)\"\n multiple=\"false\" class=\"upload-area\">\n @if (!uploadArea.api.isDropActive) {\n Drag & drop image here or click to upload\n } @else {\n <div class=\"font-medium\">Drop image here</div>\n }\n </ngs-upload-area>\n}\n", styles: ["@layer properties;:host{display:block}:host ngs-upload-area{--ngs-upload-area-padding: calc(var(--spacing, .25rem) * 6) calc(var(--spacing, .25rem) * 10)}:host img{max-width:100%}:host .upload-container{position:relative}:host .upload-overlay{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;background:#fffc}:host .progress-bar{position:absolute;inset-inline-start:calc(var(--spacing, .25rem) * 0);inset-inline-end:calc(var(--spacing, .25rem) * 0);top:0}:host .uploaded-image{display:flex;width:704px;align-items:center;justify-content:center}:host .upload-overlay-text{background:#fff;border-radius:var(--radius-lg, .5rem);padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 1.5);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}:host .remove-button{position:absolute;inset-inline-end:calc(var(--spacing, .25rem) * 2);top:calc(var(--spacing, .25rem) * 4);z-index:1;width:max-content}:host .upload-area{cursor:pointer}:host .upload-area:hover{outline-style:var(--tw-outline-style);outline-width:2px;outline-color:var(--ngs-color-primary)}@property --tw-outline-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-outline-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: UploadArea, selector: "ngs-upload-area", inputs: ["accept", "allowHover", "multiple"], outputs: ["fileSelected"], exportAs: ["ngsUploadArea"] }, { kind: "directive", type: UploadTriggerDirective, selector: "[ngsUploadTrigger]", inputs: ["accept", "multiple"], outputs: ["fileSelected"], exportAs: ["ngsUploadTrigger"] }, { kind: "component", type: ProgressBar, selector: "ngs-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["ngsProgressBar"] }, { 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"] }, { kind: "component", type: Icon, selector: "ngs-icon", inputs: ["name"], exportAs: ["ngsIcon"] }, { kind: "component", type: ImageResizer, selector: "ngs-image-resizer", inputs: ["imageMaxWidth", "imageMinWidth"], outputs: ["imageResized"], exportAs: ["ngsImageResizer"] }, { kind: "component", type: FormField, selector: "ngs-form-field", inputs: ["labelMode", "subscriptHiddenIfEmpty", "sameHeightAsButton"], exportAs: ["ngsFormField"] }, { kind: "directive", type: Input, selector: "input[ngsInput], textarea[ngsInput]", inputs: ["id", "placeholder", "required", "disabled", "readonly", "errorStateMatcher"], exportAs: ["ngsInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, 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]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: ImageResizerImageDirective, selector: "[ngsImageResizerImage]", exportAs: ["ngsImageResizerImage"] }, { kind: "component", type: Label, selector: "ngs-label" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
119
129
  }
120
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: ImageBlockComponent, decorators: [{
130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ImageBlockComponent, decorators: [{
121
131
  type: Component,
122
132
  args: [{ selector: 'ngs-image-block', imports: [
123
133
  UploadArea,
@@ -139,8 +149,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
139
149
  }
140
150
  ], changeDetection: ChangeDetectionStrategy.OnPush, host: {
141
151
  '(keypress)': 'handleKeyPress($event)',
142
- }, template: "@if (uploading()) {\n <div class=\"upload-container\">\n <div class=\"upload-overlay\">\n <ngs-progress-bar mode=\"indeterminate\" class=\"progress-bar\"/>\n <div class=\"remove-button\">\n <button ngsButton (click)=\"cancelUploading()\">\n <ngs-icon name=\"fluent:delete-24-regular\"/>\n </button>\n </div>\n <div class=\"upload-overlay-text\">Loading...</div>\n </div>\n <img [src]=\"selectedImage()\" [alt]=\"_alt()\">\n </div>\n} @else if (_src()) {\n <div class=\"uploaded-image\">\n <ngs-image-resizer (imageResized)=\"_onImageResized($event)\" [imageMaxWidth]=\"704\">\n <img [src]=\"_src()\" [alt]=\"_alt()\" ngsImageResizerImage [style.width.px]=\"_settings().width || null\">\n </ngs-image-resizer>\n </div>\n <ngs-form-field class=\"w-full mt-5\">\n <ngs-label>Alt text</ngs-label>\n <input ngsInput [(ngModel)]=\"_alt\" (ngModelChange)=\"_onAltChange()\">\n </ngs-form-field>\n} @else {\n <ngs-upload-area #uploadArea=\"ngsUploadArea\"\n ngsUploadTrigger accept=\"image/*\"\n (fileSelected)=\"onFileSelected($event)\"\n multiple=\"false\" class=\"upload-area\">\n @if (!uploadArea.api.isDropActive) {\n Drag & drop image here or click to upload\n } @else {\n <div class=\"font-medium\">Drop image here</div>\n }\n </ngs-upload-area>\n}\n", styles: ["@layer properties;:host{display:block}:host ngs-upload-area{--ngs-upload-area-padding: calc(var(--spacing, .25rem) * 6) calc(var(--spacing, .25rem) * 10)}:host img{max-width:100%}:host .upload-container{position:relative}:host .upload-overlay{position:absolute;inset:calc(var(--spacing, .25rem) * 0);z-index:1;display:flex;align-items:center;justify-content:center;background:#fffc}:host .progress-bar{position:absolute;inset-inline-start:calc(var(--spacing, .25rem) * 0);inset-inline-end:calc(var(--spacing, .25rem) * 0);top:calc(var(--spacing, .25rem) * 0)}:host .uploaded-image{display:flex;width:704px;align-items:center;justify-content:center}:host .upload-overlay-text{background:#fff;border-radius:var(--radius-lg, .5rem);padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 1.5);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}:host .remove-button{position:absolute;inset-inline-end:calc(var(--spacing, .25rem) * 2);top:calc(var(--spacing, .25rem) * 4);z-index:1;width:max-content}:host .upload-area{cursor:pointer}:host .upload-area:hover{outline-style:var(--tw-outline-style);outline-width:2px;outline-color:var(--ngs-color-primary)}@property --tw-outline-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-outline-style: solid}}}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
152
+ }, template: "@if (uploading()) {\n <div class=\"upload-container\">\n <div class=\"upload-overlay\">\n <ngs-progress-bar mode=\"indeterminate\" class=\"progress-bar\"/>\n <div class=\"remove-button\">\n <button ngsButton (click)=\"cancelUploading()\">\n <ngs-icon name=\"fluent:delete-24-regular\"/>\n </button>\n </div>\n <div class=\"upload-overlay-text\">Loading...</div>\n </div>\n <img [src]=\"selectedImage()\" [alt]=\"_alt()\">\n </div>\n} @else if (_src()) {\n <div class=\"uploaded-image\">\n <ngs-image-resizer (imageResized)=\"_onImageResized($event)\" [imageMaxWidth]=\"704\">\n <img [src]=\"_src()\" [alt]=\"_alt()\" ngsImageResizerImage [style.width.px]=\"_settings().width || null\">\n </ngs-image-resizer>\n </div>\n <ngs-form-field class=\"w-full mt-5\">\n <ngs-label>Alt text</ngs-label>\n <input ngsInput [(ngModel)]=\"_alt\" (ngModelChange)=\"_onAltChange()\">\n </ngs-form-field>\n} @else {\n <ngs-upload-area #uploadArea=\"ngsUploadArea\"\n ngsUploadTrigger accept=\"image/*\"\n (fileSelected)=\"onFileSelected($event)\"\n multiple=\"false\" class=\"upload-area\">\n @if (!uploadArea.api.isDropActive) {\n Drag & drop image here or click to upload\n } @else {\n <div class=\"font-medium\">Drop image here</div>\n }\n </ngs-upload-area>\n}\n", styles: ["@layer properties;:host{display:block}:host ngs-upload-area{--ngs-upload-area-padding: calc(var(--spacing, .25rem) * 6) calc(var(--spacing, .25rem) * 10)}:host img{max-width:100%}:host .upload-container{position:relative}:host .upload-overlay{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;background:#fffc}:host .progress-bar{position:absolute;inset-inline-start:calc(var(--spacing, .25rem) * 0);inset-inline-end:calc(var(--spacing, .25rem) * 0);top:0}:host .uploaded-image{display:flex;width:704px;align-items:center;justify-content:center}:host .upload-overlay-text{background:#fff;border-radius:var(--radius-lg, .5rem);padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 1.5);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}:host .remove-button{position:absolute;inset-inline-end:calc(var(--spacing, .25rem) * 2);top:calc(var(--spacing, .25rem) * 4);z-index:1;width:max-content}:host .upload-area{cursor:pointer}:host .upload-area:hover{outline-style:var(--tw-outline-style);outline-width:2px;outline-color:var(--ngs-color-primary)}@property --tw-outline-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-outline-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
143
153
  }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: true }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: true }] }], settings: [{ type: i0.Input, args: [{ isSignal: true, alias: "settings", required: true }] }], index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: true }] }], _alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "_alt", required: false }] }, { type: i0.Output, args: ["_altChange"] }], _settings: [{ type: i0.Input, args: [{ isSignal: true, alias: "_settings", required: false }] }, { type: i0.Output, args: ["_settingsChange"] }] } });
144
154
 
145
155
  export { ImageBlockComponent };
146
- //# sourceMappingURL=ngstarter-ui-components-content-editor-image-block.component-DJWItlMf.mjs.map
156
+ //# sourceMappingURL=ngstarter-ui-components-content-editor-image-block.component-D75DrPNq.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngstarter-ui-components-content-editor-image-block.component-D75DrPNq.mjs","sources":["../../../projects/components/content-editor/src/_builder/image-block/image-block.component.ts","../../../projects/components/content-editor/src/_builder/image-block/image-block.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject, input, model, OnInit, signal } from '@angular/core';\nimport { UploadArea, UploadFileSelectedEvent, UploadTriggerDirective } from '@ngstarter-ui/components/upload';\nimport { ProgressBar } from '@ngstarter-ui/components/progress-bar';\nimport { Button } from '@ngstarter-ui/components/button';\nimport { Icon } from '@ngstarter-ui/components/icon';\nimport {\n CONTENT_BUILDER,\n CONTENT_EDITOR_BLOCK, ContentEditorDataBlock,\n ContentEditorImageBlockSettings,\n ContentEditorImageContent\n} from '../../types';\nimport { ImageResizer, ImageResizerImageDirective } from '@ngstarter-ui/components/image-resizer';\nimport { FormField, Label } from '@ngstarter-ui/components/form-field';\nimport { Input } from '@ngstarter-ui/components/input';\nimport { FormsModule } from '@angular/forms';\nimport { ContentBuilderStore } from '../../content-builder.store';\nimport { ContentBuilderComponent } from '../../content-builder/content-builder.component';\n\n@Component({\n selector: 'ngs-image-block',\n imports: [\n UploadArea,\n UploadTriggerDirective,\n ProgressBar,\n Button,\n Icon,\n ImageResizer,\n FormField,\n Input,\n FormsModule,\n ImageResizerImageDirective,\n Label\n ],\n providers: [\n {\n provide: CONTENT_EDITOR_BLOCK,\n useExisting: forwardRef(() => ImageBlockComponent),\n multi: true\n }\n ],\n templateUrl: './image-block.component.html',\n styleUrl: './image-block.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(keypress)': 'handleKeyPress($event)',\n }\n})\nexport class ImageBlockComponent implements OnInit, ContentEditorDataBlock {\n private _store = inject(ContentBuilderStore);\n private _contentBuilder = inject<ContentBuilderComponent>(CONTENT_BUILDER);\n\n id = input.required<string>();\n content = input.required<ContentEditorImageContent>();\n settings = input.required<ContentEditorImageBlockSettings>();\n index = input.required<number>();\n\n uploading = signal(false);\n selectedImage = signal<string>('');\n\n protected _src = signal<string>('');\n protected _alt = model<string>('');\n protected _settings = model<ContentEditorImageBlockSettings>({});\n readonly initialized = signal(false);\n\n ngOnInit() {\n this._src.set(this.content().src);\n this._alt.set(this.content().alt);\n this._settings.set(this.settings() || {});\n this.initialized.set(true);\n }\n\n focus() {\n if (this._src()) {\n this._contentBuilder.focusBlock(this.id());\n }\n }\n\n getData(): any {\n return {\n content: {\n src: this._src(),\n alt: this._alt()\n },\n settings: {\n ...this._settings(),\n }\n };\n }\n\n isEmpty(): boolean {\n const src = this.getData().content.src;\n return typeof src === 'string' ? src.trim().length === 0 : !src;\n }\n\n protected cancelUploading() {\n this.uploading.set(false);\n }\n\n protected onFileSelected(event: UploadFileSelectedEvent): void {\n this.uploading.set(true);\n const reader = new FileReader();\n reader.addEventListener('load', () => {\n this.selectedImage.set(reader.result as string);\n\n const img = new Image();\n img.onload = () => {\n let width = img.width;\n let height = img.height;\n const aspectRatio = width / height;\n\n if (width > 704) {\n width = 704;\n height = Math.round(width / aspectRatio);\n }\n\n this._settings.update(s => ({\n ...s,\n width,\n height\n }));\n };\n img.src = reader.result as string;\n\n const uploadFn = this._contentBuilder.getBlockDefOption('image', 'uploadFn');\n uploadFn(event.files[0], reader.result)\n .then((url: string) => {\n if (!this.uploading()) {\n this.selectedImage.set('');\n return;\n }\n\n this._src.set(url);\n this.selectedImage.set('');\n this.uploading.set(false);\n this.update();\n this.focus();\n });\n }, false);\n reader.readAsDataURL(event.files[0]);\n }\n\n protected _onAltChange() {\n this.update();\n }\n\n protected _onImageResized(options: any) {\n this._settings.set(options);\n this.update();\n }\n\n protected handleKeyPress(event: KeyboardEvent) {\n if (event.key === 'Enter') {\n event.preventDefault();\n event.stopPropagation();\n this._contentBuilder.insertEmptyBlock(this.index());\n }\n }\n\n private update() {\n this._store.updateBlock(this.id(), {...this.getData(), isEmpty: this.isEmpty()});\n this._contentBuilder.emitContentChangeEvent();\n }\n}\n","@if (uploading()) {\n <div class=\"upload-container\">\n <div class=\"upload-overlay\">\n <ngs-progress-bar mode=\"indeterminate\" class=\"progress-bar\"/>\n <div class=\"remove-button\">\n <button ngsButton (click)=\"cancelUploading()\">\n <ngs-icon name=\"fluent:delete-24-regular\"/>\n </button>\n </div>\n <div class=\"upload-overlay-text\">Loading...</div>\n </div>\n <img [src]=\"selectedImage()\" [alt]=\"_alt()\">\n </div>\n} @else if (_src()) {\n <div class=\"uploaded-image\">\n <ngs-image-resizer (imageResized)=\"_onImageResized($event)\" [imageMaxWidth]=\"704\">\n <img [src]=\"_src()\" [alt]=\"_alt()\" ngsImageResizerImage [style.width.px]=\"_settings().width || null\">\n </ngs-image-resizer>\n </div>\n <ngs-form-field class=\"w-full mt-5\">\n <ngs-label>Alt text</ngs-label>\n <input ngsInput [(ngModel)]=\"_alt\" (ngModelChange)=\"_onAltChange()\">\n </ngs-form-field>\n} @else {\n <ngs-upload-area #uploadArea=\"ngsUploadArea\"\n ngsUploadTrigger accept=\"image/*\"\n (fileSelected)=\"onFileSelected($event)\"\n multiple=\"false\" class=\"upload-area\">\n @if (!uploadArea.api.isDropActive) {\n Drag & drop image here or click to upload\n } @else {\n <div class=\"font-medium\">Drop image here</div>\n }\n </ngs-upload-area>\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;MA+Ca,mBAAmB,CAAA;AAC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