@ngstarter-ui/components 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (415) hide show
  1. package/README.md +0 -0
  2. package/fesm2022/ngstarter-ui-components-action-required.mjs +42 -0
  3. package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -0
  4. package/fesm2022/ngstarter-ui-components-alert.mjs +132 -0
  5. package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -0
  6. package/fesm2022/ngstarter-ui-components-announcement.mjs +86 -0
  7. package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -0
  8. package/fesm2022/ngstarter-ui-components-autocomplete.mjs +360 -0
  9. package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -0
  10. package/fesm2022/ngstarter-ui-components-avatar.mjs +235 -0
  11. package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -0
  12. package/fesm2022/ngstarter-ui-components-badge.mjs +97 -0
  13. package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -0
  14. package/fesm2022/ngstarter-ui-components-block-loader.mjs +48 -0
  15. package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -0
  16. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +327 -0
  17. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs.map +1 -0
  18. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +209 -0
  19. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -0
  20. package/fesm2022/ngstarter-ui-components-button-toggle.mjs +175 -0
  21. package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -0
  22. package/fesm2022/ngstarter-ui-components-button.mjs +70 -0
  23. package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -0
  24. package/fesm2022/ngstarter-ui-components-card-overlay.mjs +49 -0
  25. package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -0
  26. package/fesm2022/ngstarter-ui-components-card.mjs +199 -0
  27. package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -0
  28. package/fesm2022/ngstarter-ui-components-carousel.mjs +614 -0
  29. package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -0
  30. package/fesm2022/ngstarter-ui-components-checkbox.mjs +300 -0
  31. package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -0
  32. package/fesm2022/ngstarter-ui-components-chips.mjs +589 -0
  33. package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -0
  34. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +347 -0
  35. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -0
  36. package/fesm2022/ngstarter-ui-components-color-picker.mjs +713 -0
  37. package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -0
  38. package/fesm2022/ngstarter-ui-components-color-scheme.mjs +106 -0
  39. package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -0
  40. package/fesm2022/ngstarter-ui-components-color-switcher.mjs +72 -0
  41. package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -0
  42. package/fesm2022/ngstarter-ui-components-command-bar.mjs +57 -0
  43. package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -0
  44. package/fesm2022/ngstarter-ui-components-comment-editor.mjs +1024 -0
  45. package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -0
  46. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +177 -0
  47. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -0
  48. package/fesm2022/ngstarter-ui-components-confirm.mjs +85 -0
  49. package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -0
  50. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-Bk6QTli8.mjs +173 -0
  51. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-Bk6QTli8.mjs.map +1 -0
  52. package/fesm2022/ngstarter-ui-components-content-editor-content-editor-content-editable.directive-Bvfa2dqh.mjs +124 -0
  53. package/fesm2022/ngstarter-ui-components-content-editor-content-editor-content-editable.directive-Bvfa2dqh.mjs.map +1 -0
  54. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs +99 -0
  55. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs.map +1 -0
  56. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-C_iRTCPH.mjs +33 -0
  57. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-C_iRTCPH.mjs.map +1 -0
  58. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-BbkC_t86.mjs +354 -0
  59. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-BbkC_t86.mjs.map +1 -0
  60. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-D9_CxTY1.mjs +114 -0
  61. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-D9_CxTY1.mjs.map +1 -0
  62. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-B4zJyUg1.mjs +146 -0
  63. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-B4zJyUg1.mjs.map +1 -0
  64. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-Cv6wx5Xe.mjs +215 -0
  65. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-Cv6wx5Xe.mjs.map +1 -0
  66. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-1Zi2nAX5.mjs +2548 -0
  67. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-1Zi2nAX5.mjs.map +1 -0
  68. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-C9bQvDYU.mjs +110 -0
  69. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-C9bQvDYU.mjs.map +1 -0
  70. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BbHds2r2.mjs +141 -0
  71. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BbHds2r2.mjs.map +1 -0
  72. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-DlDh7Fnn.mjs +1604 -0
  73. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-DlDh7Fnn.mjs.map +1 -0
  74. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-m4DTihP2.mjs +175 -0
  75. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-m4DTihP2.mjs.map +1 -0
  76. package/fesm2022/ngstarter-ui-components-content-editor.mjs +2 -0
  77. package/fesm2022/ngstarter-ui-components-content-editor.mjs.map +1 -0
  78. package/fesm2022/ngstarter-ui-components-content-fade.mjs +35 -0
  79. package/fesm2022/ngstarter-ui-components-content-fade.mjs.map +1 -0
  80. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +107 -0
  81. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -0
  82. package/fesm2022/ngstarter-ui-components-core.mjs +1330 -0
  83. package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -0
  84. package/fesm2022/ngstarter-ui-components-country-select.mjs +489 -0
  85. package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -0
  86. package/fesm2022/ngstarter-ui-components-crop.mjs +183 -0
  87. package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -0
  88. package/fesm2022/ngstarter-ui-components-currency-select.mjs +397 -0
  89. package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -0
  90. package/fesm2022/ngstarter-ui-components-data-view.mjs +1494 -0
  91. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -0
  92. package/fesm2022/ngstarter-ui-components-date-format-select.mjs +154 -0
  93. package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -0
  94. package/fesm2022/ngstarter-ui-components-datepicker.mjs +1159 -0
  95. package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -0
  96. package/fesm2022/ngstarter-ui-components-dialog.mjs +357 -0
  97. package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -0
  98. package/fesm2022/ngstarter-ui-components-divider.mjs +42 -0
  99. package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -0
  100. package/fesm2022/ngstarter-ui-components-drawer.mjs +132 -0
  101. package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -0
  102. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +245 -0
  103. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -0
  104. package/fesm2022/ngstarter-ui-components-empty-state.mjs +75 -0
  105. package/fesm2022/ngstarter-ui-components-empty-state.mjs.map +1 -0
  106. package/fesm2022/ngstarter-ui-components-expand.mjs +56 -0
  107. package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -0
  108. package/fesm2022/ngstarter-ui-components-expansion.mjs +193 -0
  109. package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -0
  110. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +333 -0
  111. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -0
  112. package/fesm2022/ngstarter-ui-components-form-field.mjs +230 -0
  113. package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -0
  114. package/fesm2022/ngstarter-ui-components-form-renderer-autocomplete-many-field-BKQVlZHV.mjs +124 -0
  115. package/fesm2022/ngstarter-ui-components-form-renderer-autocomplete-many-field-BKQVlZHV.mjs.map +1 -0
  116. package/fesm2022/ngstarter-ui-components-form-renderer-checkbox-field-CoyKdvhV.mjs +22 -0
  117. package/fesm2022/ngstarter-ui-components-form-renderer-checkbox-field-CoyKdvhV.mjs.map +1 -0
  118. package/fesm2022/ngstarter-ui-components-form-renderer-datepicker-field-Bzc0TPO9.mjs +44 -0
  119. package/fesm2022/ngstarter-ui-components-form-renderer-datepicker-field-Bzc0TPO9.mjs.map +1 -0
  120. package/fesm2022/ngstarter-ui-components-form-renderer-divider-content-CwGzDCZv.mjs +17 -0
  121. package/fesm2022/ngstarter-ui-components-form-renderer-divider-content-CwGzDCZv.mjs.map +1 -0
  122. package/fesm2022/ngstarter-ui-components-form-renderer-image-content-ICTwkZPa.mjs +17 -0
  123. package/fesm2022/ngstarter-ui-components-form-renderer-image-content-ICTwkZPa.mjs.map +1 -0
  124. package/fesm2022/ngstarter-ui-components-form-renderer-input-field-RYxi-Mpw.mjs +35 -0
  125. package/fesm2022/ngstarter-ui-components-form-renderer-input-field-RYxi-Mpw.mjs.map +1 -0
  126. package/fesm2022/ngstarter-ui-components-form-renderer-radio-group-field-Cv3AGpoq.mjs +38 -0
  127. package/fesm2022/ngstarter-ui-components-form-renderer-radio-group-field-Cv3AGpoq.mjs.map +1 -0
  128. package/fesm2022/ngstarter-ui-components-form-renderer-select-field-eLcwI-BY.mjs +39 -0
  129. package/fesm2022/ngstarter-ui-components-form-renderer-select-field-eLcwI-BY.mjs.map +1 -0
  130. package/fesm2022/ngstarter-ui-components-form-renderer-text-content-BjzH_M3-.mjs +24 -0
  131. package/fesm2022/ngstarter-ui-components-form-renderer-text-content-BjzH_M3-.mjs.map +1 -0
  132. package/fesm2022/ngstarter-ui-components-form-renderer-textarea-field-4zH7FTQ1.mjs +37 -0
  133. package/fesm2022/ngstarter-ui-components-form-renderer-textarea-field-4zH7FTQ1.mjs.map +1 -0
  134. package/fesm2022/ngstarter-ui-components-form-renderer-timezone-field-BpH65Hd-.mjs +35 -0
  135. package/fesm2022/ngstarter-ui-components-form-renderer-timezone-field-BpH65Hd-.mjs.map +1 -0
  136. package/fesm2022/ngstarter-ui-components-form-renderer-toggle-field-iyqUrWxt.mjs +22 -0
  137. package/fesm2022/ngstarter-ui-components-form-renderer-toggle-field-iyqUrWxt.mjs.map +1 -0
  138. package/fesm2022/ngstarter-ui-components-form-renderer.mjs +317 -0
  139. package/fesm2022/ngstarter-ui-components-form-renderer.mjs.map +1 -0
  140. package/fesm2022/ngstarter-ui-components-gauge.mjs +44 -0
  141. package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -0
  142. package/fesm2022/ngstarter-ui-components-grid.mjs +78 -0
  143. package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -0
  144. package/fesm2022/ngstarter-ui-components-guided-tour.mjs +736 -0
  145. package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -0
  146. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +192 -0
  147. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -0
  148. package/fesm2022/ngstarter-ui-components-icon.mjs +61 -0
  149. package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -0
  150. package/fesm2022/ngstarter-ui-components-image-designer.mjs +4016 -0
  151. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -0
  152. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +20 -0
  153. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -0
  154. package/fesm2022/ngstarter-ui-components-image-resizer.mjs +151 -0
  155. package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -0
  156. package/fesm2022/ngstarter-ui-components-image-viewer.mjs +349 -0
  157. package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -0
  158. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +162 -0
  159. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -0
  160. package/fesm2022/ngstarter-ui-components-incidents.mjs +257 -0
  161. package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -0
  162. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +179 -0
  163. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -0
  164. package/fesm2022/ngstarter-ui-components-input-mask.mjs +180 -0
  165. package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -0
  166. package/fesm2022/ngstarter-ui-components-input-validator.mjs +24 -0
  167. package/fesm2022/ngstarter-ui-components-input-validator.mjs.map +1 -0
  168. package/fesm2022/ngstarter-ui-components-input.mjs +152 -0
  169. package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -0
  170. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +156 -0
  171. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -0
  172. package/fesm2022/ngstarter-ui-components-kbd.mjs +31 -0
  173. package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -0
  174. package/fesm2022/ngstarter-ui-components-layout.mjs +199 -0
  175. package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -0
  176. package/fesm2022/ngstarter-ui-components-list.mjs +279 -0
  177. package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -0
  178. package/fesm2022/ngstarter-ui-components-logo.mjs +51 -0
  179. package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -0
  180. package/fesm2022/ngstarter-ui-components-marquee.mjs +76 -0
  181. package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -0
  182. package/fesm2022/ngstarter-ui-components-menu.mjs +851 -0
  183. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -0
  184. package/fesm2022/ngstarter-ui-components-micro-chart.mjs +928 -0
  185. package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -0
  186. package/fesm2022/ngstarter-ui-components-navigation.mjs +439 -0
  187. package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -0
  188. package/fesm2022/ngstarter-ui-components-notifications.mjs +181 -0
  189. package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -0
  190. package/fesm2022/ngstarter-ui-components-number-input.mjs +293 -0
  191. package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -0
  192. package/fesm2022/ngstarter-ui-components-option.mjs +157 -0
  193. package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -0
  194. package/fesm2022/ngstarter-ui-components-overlay.mjs +112 -0
  195. package/fesm2022/ngstarter-ui-components-overlay.mjs.map +1 -0
  196. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +77 -0
  197. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -0
  198. package/fesm2022/ngstarter-ui-components-paginator.mjs +297 -0
  199. package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -0
  200. package/fesm2022/ngstarter-ui-components-panel.mjs +123 -0
  201. package/fesm2022/ngstarter-ui-components-panel.mjs.map +1 -0
  202. package/fesm2022/ngstarter-ui-components-password-strength.mjs +335 -0
  203. package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -0
  204. package/fesm2022/ngstarter-ui-components-phone-input.mjs +651 -0
  205. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -0
  206. package/fesm2022/ngstarter-ui-components-pin-input.mjs +193 -0
  207. package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -0
  208. package/fesm2022/ngstarter-ui-components-popover.mjs +302 -0
  209. package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -0
  210. package/fesm2022/ngstarter-ui-components-progress-bar.mjs +68 -0
  211. package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -0
  212. package/fesm2022/ngstarter-ui-components-radio-card.mjs +102 -0
  213. package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -0
  214. package/fesm2022/ngstarter-ui-components-radio.mjs +147 -0
  215. package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -0
  216. package/fesm2022/ngstarter-ui-components-rail-nav.mjs +87 -0
  217. package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -0
  218. package/fesm2022/ngstarter-ui-components-resizable-container.mjs +74 -0
  219. package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -0
  220. package/fesm2022/ngstarter-ui-components-screen-loader.mjs +95 -0
  221. package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -0
  222. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +219 -0
  223. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -0
  224. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +459 -0
  225. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -0
  226. package/fesm2022/ngstarter-ui-components-segmented.mjs +218 -0
  227. package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -0
  228. package/fesm2022/ngstarter-ui-components-select.mjs +496 -0
  229. package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -0
  230. package/fesm2022/ngstarter-ui-components-side-panel.mjs +107 -0
  231. package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -0
  232. package/fesm2022/ngstarter-ui-components-sidebar.mjs +435 -0
  233. package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -0
  234. package/fesm2022/ngstarter-ui-components-sidenav.mjs +354 -0
  235. package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -0
  236. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +452 -0
  237. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -0
  238. package/fesm2022/ngstarter-ui-components-skeleton.mjs +22 -0
  239. package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -0
  240. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +93 -0
  241. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -0
  242. package/fesm2022/ngstarter-ui-components-slider.mjs +481 -0
  243. package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -0
  244. package/fesm2022/ngstarter-ui-components-snack-bar.mjs +354 -0
  245. package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -0
  246. package/fesm2022/ngstarter-ui-components-sort.mjs +140 -0
  247. package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -0
  248. package/fesm2022/ngstarter-ui-components-spinner.mjs +75 -0
  249. package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -0
  250. package/fesm2022/ngstarter-ui-components-splash-screen.mjs +93 -0
  251. package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -0
  252. package/fesm2022/ngstarter-ui-components-split.mjs +948 -0
  253. package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -0
  254. package/fesm2022/ngstarter-ui-components-stepper.mjs +103 -0
  255. package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -0
  256. package/fesm2022/ngstarter-ui-components-suggestions.mjs +72 -0
  257. package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -0
  258. package/fesm2022/ngstarter-ui-components-tab-panel.mjs +265 -0
  259. package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -0
  260. package/fesm2022/ngstarter-ui-components-table.mjs +648 -0
  261. package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -0
  262. package/fesm2022/ngstarter-ui-components-tabs.mjs +591 -0
  263. package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -0
  264. package/fesm2022/ngstarter-ui-components-text-editor.mjs +1012 -0
  265. package/fesm2022/ngstarter-ui-components-text-editor.mjs.map +1 -0
  266. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +212 -0
  267. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -0
  268. package/fesm2022/ngstarter-ui-components-tiles.mjs +634 -0
  269. package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -0
  270. package/fesm2022/ngstarter-ui-components-timeline.mjs +122 -0
  271. package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -0
  272. package/fesm2022/ngstarter-ui-components-timepicker.mjs +486 -0
  273. package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -0
  274. package/fesm2022/ngstarter-ui-components-timezone-select.mjs +371 -0
  275. package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -0
  276. package/fesm2022/ngstarter-ui-components-toolbar.mjs +299 -0
  277. package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -0
  278. package/fesm2022/ngstarter-ui-components-tooltip.mjs +506 -0
  279. package/fesm2022/ngstarter-ui-components-tooltip.mjs.map +1 -0
  280. package/fesm2022/ngstarter-ui-components-tree.mjs +200 -0
  281. package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -0
  282. package/fesm2022/ngstarter-ui-components-upload.mjs +330 -0
  283. package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -0
  284. package/fesm2022/ngstarter-ui-components-video-player.mjs +516 -0
  285. package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -0
  286. package/fesm2022/ngstarter-ui-components-video-viewer.mjs +218 -0
  287. package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -0
  288. package/fesm2022/ngstarter-ui-components-visual-builder.mjs +18 -0
  289. package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -0
  290. package/fesm2022/ngstarter-ui-components.mjs +6 -0
  291. package/fesm2022/ngstarter-ui-components.mjs.map +1 -0
  292. package/package.json +535 -0
  293. package/styles/_common.scss +456 -0
  294. package/styles/_global.scss +91 -0
  295. package/styles/themes/default.scss +2 -0
  296. package/types/ngstarter-ui-components-action-required.d.ts +14 -0
  297. package/types/ngstarter-ui-components-alert.d.ts +50 -0
  298. package/types/ngstarter-ui-components-announcement.d.ts +59 -0
  299. package/types/ngstarter-ui-components-autocomplete.d.ts +83 -0
  300. package/types/ngstarter-ui-components-avatar.d.ts +69 -0
  301. package/types/ngstarter-ui-components-badge.d.ts +38 -0
  302. package/types/ngstarter-ui-components-block-loader.d.ts +21 -0
  303. package/types/ngstarter-ui-components-bottom-sheet.d.ts +149 -0
  304. package/types/ngstarter-ui-components-breadcrumbs.d.ts +104 -0
  305. package/types/ngstarter-ui-components-button-toggle.d.ts +54 -0
  306. package/types/ngstarter-ui-components-button.d.ts +27 -0
  307. package/types/ngstarter-ui-components-card-overlay.d.ts +20 -0
  308. package/types/ngstarter-ui-components-card.d.ts +85 -0
  309. package/types/ngstarter-ui-components-carousel.d.ts +76 -0
  310. package/types/ngstarter-ui-components-checkbox.d.ts +94 -0
  311. package/types/ngstarter-ui-components-chips.d.ts +189 -0
  312. package/types/ngstarter-ui-components-code-highlighter.d.ts +28 -0
  313. package/types/ngstarter-ui-components-color-picker.d.ts +92 -0
  314. package/types/ngstarter-ui-components-color-scheme.d.ts +44 -0
  315. package/types/ngstarter-ui-components-color-switcher.d.ts +26 -0
  316. package/types/ngstarter-ui-components-command-bar.d.ts +28 -0
  317. package/types/ngstarter-ui-components-comment-editor.d.ts +194 -0
  318. package/types/ngstarter-ui-components-comparison-slider.d.ts +42 -0
  319. package/types/ngstarter-ui-components-confirm.d.ts +34 -0
  320. package/types/ngstarter-ui-components-content-editor.d.ts +321 -0
  321. package/types/ngstarter-ui-components-content-fade.d.ts +17 -0
  322. package/types/ngstarter-ui-components-cookie-popup.d.ts +41 -0
  323. package/types/ngstarter-ui-components-core.d.ts +421 -0
  324. package/types/ngstarter-ui-components-country-select.d.ts +78 -0
  325. package/types/ngstarter-ui-components-crop.d.ts +59 -0
  326. package/types/ngstarter-ui-components-currency-select.d.ts +82 -0
  327. package/types/ngstarter-ui-components-data-view.d.ts +391 -0
  328. package/types/ngstarter-ui-components-date-format-select.d.ts +59 -0
  329. package/types/ngstarter-ui-components-datepicker.d.ts +384 -0
  330. package/types/ngstarter-ui-components-dialog.d.ts +115 -0
  331. package/types/ngstarter-ui-components-divider.d.ts +18 -0
  332. package/types/ngstarter-ui-components-drawer.d.ts +32 -0
  333. package/types/ngstarter-ui-components-emoji-picker.d.ts +49 -0
  334. package/types/ngstarter-ui-components-empty-state.d.ts +33 -0
  335. package/types/ngstarter-ui-components-expand.d.ts +26 -0
  336. package/types/ngstarter-ui-components-expansion.d.ts +68 -0
  337. package/types/ngstarter-ui-components-filter-builder.d.ts +106 -0
  338. package/types/ngstarter-ui-components-form-field.d.ts +107 -0
  339. package/types/ngstarter-ui-components-form-renderer.d.ts +121 -0
  340. package/types/ngstarter-ui-components-gauge.d.ts +21 -0
  341. package/types/ngstarter-ui-components-grid.d.ts +45 -0
  342. package/types/ngstarter-ui-components-guided-tour.d.ts +227 -0
  343. package/types/ngstarter-ui-components-headless-stepper.d.ts +65 -0
  344. package/types/ngstarter-ui-components-icon.d.ts +17 -0
  345. package/types/ngstarter-ui-components-image-designer.d.ts +357 -0
  346. package/types/ngstarter-ui-components-image-placeholder.d.ts +8 -0
  347. package/types/ngstarter-ui-components-image-resizer.d.ts +35 -0
  348. package/types/ngstarter-ui-components-image-viewer.d.ts +63 -0
  349. package/types/ngstarter-ui-components-image-zoom-viewer.d.ts +34 -0
  350. package/types/ngstarter-ui-components-incidents.d.ts +119 -0
  351. package/types/ngstarter-ui-components-inline-text-edit.d.ts +39 -0
  352. package/types/ngstarter-ui-components-input-mask.d.ts +36 -0
  353. package/types/ngstarter-ui-components-input-validator.d.ts +5 -0
  354. package/types/ngstarter-ui-components-input.d.ts +53 -0
  355. package/types/ngstarter-ui-components-kanban-board.d.ts +68 -0
  356. package/types/ngstarter-ui-components-kbd.d.ts +13 -0
  357. package/types/ngstarter-ui-components-layout.d.ts +83 -0
  358. package/types/ngstarter-ui-components-list.d.ts +98 -0
  359. package/types/ngstarter-ui-components-logo.d.ts +26 -0
  360. package/types/ngstarter-ui-components-marquee.d.ts +27 -0
  361. package/types/ngstarter-ui-components-menu.d.ts +199 -0
  362. package/types/ngstarter-ui-components-micro-chart.d.ts +195 -0
  363. package/types/ngstarter-ui-components-navigation.d.ts +136 -0
  364. package/types/ngstarter-ui-components-notifications.d.ts +84 -0
  365. package/types/ngstarter-ui-components-number-input.d.ts +99 -0
  366. package/types/ngstarter-ui-components-option.d.ts +61 -0
  367. package/types/ngstarter-ui-components-overlay.d.ts +12 -0
  368. package/types/ngstarter-ui-components-page-loading-bar.d.ts +20 -0
  369. package/types/ngstarter-ui-components-paginator.d.ts +145 -0
  370. package/types/ngstarter-ui-components-panel.d.ts +59 -0
  371. package/types/ngstarter-ui-components-password-strength.d.ts +109 -0
  372. package/types/ngstarter-ui-components-phone-input.d.ts +103 -0
  373. package/types/ngstarter-ui-components-pin-input.d.ts +48 -0
  374. package/types/ngstarter-ui-components-popover.d.ts +94 -0
  375. package/types/ngstarter-ui-components-progress-bar.d.ts +30 -0
  376. package/types/ngstarter-ui-components-radio-card.d.ts +37 -0
  377. package/types/ngstarter-ui-components-radio.d.ts +45 -0
  378. package/types/ngstarter-ui-components-rail-nav.d.ts +36 -0
  379. package/types/ngstarter-ui-components-resizable-container.d.ts +25 -0
  380. package/types/ngstarter-ui-components-screen-loader.d.ts +34 -0
  381. package/types/ngstarter-ui-components-scroll-spy.d.ts +63 -0
  382. package/types/ngstarter-ui-components-scrollbar-area.d.ts +67 -0
  383. package/types/ngstarter-ui-components-segmented.d.ts +65 -0
  384. package/types/ngstarter-ui-components-select.d.ts +126 -0
  385. package/types/ngstarter-ui-components-side-panel.d.ts +42 -0
  386. package/types/ngstarter-ui-components-sidebar.d.ts +143 -0
  387. package/types/ngstarter-ui-components-sidenav.d.ts +86 -0
  388. package/types/ngstarter-ui-components-signature-pad.d.ts +49 -0
  389. package/types/ngstarter-ui-components-skeleton.d.ts +9 -0
  390. package/types/ngstarter-ui-components-slide-toggle.d.ts +41 -0
  391. package/types/ngstarter-ui-components-slider.d.ts +85 -0
  392. package/types/ngstarter-ui-components-snack-bar.d.ts +142 -0
  393. package/types/ngstarter-ui-components-sort.d.ts +66 -0
  394. package/types/ngstarter-ui-components-spinner.d.ts +28 -0
  395. package/types/ngstarter-ui-components-splash-screen.d.ts +31 -0
  396. package/types/ngstarter-ui-components-split.d.ts +210 -0
  397. package/types/ngstarter-ui-components-stepper.d.ts +44 -0
  398. package/types/ngstarter-ui-components-suggestions.d.ts +32 -0
  399. package/types/ngstarter-ui-components-tab-panel.d.ts +96 -0
  400. package/types/ngstarter-ui-components-table.d.ts +277 -0
  401. package/types/ngstarter-ui-components-tabs.d.ts +145 -0
  402. package/types/ngstarter-ui-components-text-editor.d.ts +191 -0
  403. package/types/ngstarter-ui-components-thumbnail-maker.d.ts +35 -0
  404. package/types/ngstarter-ui-components-tiles.d.ts +109 -0
  405. package/types/ngstarter-ui-components-timeline.d.ts +57 -0
  406. package/types/ngstarter-ui-components-timepicker.d.ts +115 -0
  407. package/types/ngstarter-ui-components-timezone-select.d.ts +75 -0
  408. package/types/ngstarter-ui-components-toolbar.d.ts +74 -0
  409. package/types/ngstarter-ui-components-tooltip.d.ts +52 -0
  410. package/types/ngstarter-ui-components-tree.d.ts +60 -0
  411. package/types/ngstarter-ui-components-upload.d.ts +134 -0
  412. package/types/ngstarter-ui-components-video-player.d.ts +67 -0
  413. package/types/ngstarter-ui-components-video-viewer.d.ts +98 -0
  414. package/types/ngstarter-ui-components-visual-builder.d.ts +8 -0
  415. package/types/ngstarter-ui-components.d.ts +2 -0
@@ -0,0 +1,1012 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, ApplicationRef, createComponent, ElementRef, input, Component, inject, DOCUMENT, ChangeDetectorRef, Injector, viewChild, output, forwardRef, Directive, DestroyRef, numberAttribute } from '@angular/core';
3
+ import { NodeView, Node, mergeAttributes, Editor } from '@tiptap/core';
4
+ import Document from '@tiptap/extension-document';
5
+ import Paragraph from '@tiptap/extension-paragraph';
6
+ import Text from '@tiptap/extension-text';
7
+ import Bold from '@tiptap/extension-bold';
8
+ import Italic from '@tiptap/extension-italic';
9
+ import Strike from '@tiptap/extension-strike';
10
+ import { Blockquote } from '@tiptap/extension-blockquote';
11
+ import CodeBlock from '@tiptap/extension-code-block';
12
+ import BulletList from '@tiptap/extension-bullet-list';
13
+ import OrderedList from '@tiptap/extension-ordered-list';
14
+ import ListItem from '@tiptap/extension-list-item';
15
+ import Code from '@tiptap/extension-code';
16
+ import History from '@tiptap/extension-history';
17
+ import Dropcursor from '@tiptap/extension-dropcursor';
18
+ import Youtube from '@tiptap/extension-youtube';
19
+ import Image$1 from '@tiptap/extension-image';
20
+ import Link from '@tiptap/extension-link';
21
+ import Placeholder from '@tiptap/extension-placeholder';
22
+ import BubbleMenu from '@tiptap/extension-bubble-menu';
23
+ import { FloatingMenu } from '@tiptap/extension-floating-menu';
24
+ import { ProgressSpinner } from '@ngstarter-ui/components/spinner';
25
+ import Heading from '@tiptap/extension-heading';
26
+ import { HorizontalRule } from '@tiptap/extension-horizontal-rule';
27
+ import { DialogRef, DIALOG_DATA, DialogActions, DialogContent, DialogTitle, Dialog } from '@ngstarter-ui/components/dialog';
28
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
29
+ import { Input } from '@ngstarter-ui/components/input';
30
+ import * as i1 from '@angular/forms';
31
+ import { ReactiveFormsModule, FormsModule } from '@angular/forms';
32
+ import { Button } from '@ngstarter-ui/components/button';
33
+ import { FormField, Label } from '@ngstarter-ui/components/form-field';
34
+ import * as i1$1 from '@ngstarter-ui/components/upload';
35
+ import { UploadTriggerDirective } from '@ngstarter-ui/components/upload';
36
+
37
+ const TEXT_EDITOR = new InjectionToken('TEXT_EDITOR');
38
+ const TEXT_EDITOR_BUBBLE_MENU = new InjectionToken('TEXT_EDITOR_BUBBLE_MENU');
39
+
40
+ class AngularRenderer {
41
+ applicationRef;
42
+ componentRef;
43
+ constructor(ViewComponent, injector, props) {
44
+ this.applicationRef = injector.get(ApplicationRef);
45
+ this.componentRef = createComponent(ViewComponent, {
46
+ environmentInjector: this.applicationRef.injector,
47
+ elementInjector: injector,
48
+ });
49
+ // set input props to the component
50
+ this.updateProps(props);
51
+ this.applicationRef.attachView(this.componentRef.hostView);
52
+ }
53
+ get instance() {
54
+ return this.componentRef.instance;
55
+ }
56
+ get elementRef() {
57
+ return this.componentRef.injector.get(ElementRef);
58
+ }
59
+ get dom() {
60
+ return this.elementRef.nativeElement;
61
+ }
62
+ updateProps(props) {
63
+ Object.entries(props).forEach(([key, value]) => {
64
+ this.componentRef.setInput(key, value);
65
+ });
66
+ }
67
+ detectChanges() {
68
+ this.componentRef.changeDetectorRef.detectChanges();
69
+ }
70
+ destroy() {
71
+ this.componentRef.destroy();
72
+ this.applicationRef.detachView(this.componentRef.hostView);
73
+ }
74
+ }
75
+
76
+ class AngularNodeViewContainer extends NodeView {
77
+ renderer;
78
+ contentDOMElement;
79
+ mount() {
80
+ const injector = this.options.injector;
81
+ const props = {
82
+ editor: this.editor,
83
+ node: this.node,
84
+ // @ts-ignore
85
+ decorations: this.decorations,
86
+ selected: false,
87
+ extension: this.extension,
88
+ getPos: () => this.getPos(),
89
+ updateAttributes: (attributes = {}) => this.updateAttributes(attributes),
90
+ deleteNode: () => this.deleteNode(),
91
+ };
92
+ this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this);
93
+ this.editor.on('selectionUpdate', this.handleSelectionUpdate);
94
+ // create renderer
95
+ this.renderer = new AngularRenderer(this.component, injector, props);
96
+ // Register drag handler
97
+ if (this.extension.config.draggable) {
98
+ this.renderer.elementRef.nativeElement.ondragstart = (e) => {
99
+ this.onDragStart(e);
100
+ };
101
+ }
102
+ this.contentDOMElement = this.node.isLeaf ? null : document.createElement(this.node.isInline ? 'span' : 'div');
103
+ if (this.contentDOMElement) {
104
+ // For some reason the whiteSpace prop is not inherited properly in Chrome and Safari
105
+ // With this fix it seems to work fine
106
+ // See: https://github.com/ueberdosis/tiptap/issues/1197
107
+ this.contentDOMElement.style.whiteSpace = 'inherit';
108
+ // Required for editable node views
109
+ // The content won't be rendered if `editable` is set to `false`
110
+ this.renderer.detectChanges();
111
+ }
112
+ this.appendContendDom();
113
+ }
114
+ get dom() {
115
+ return this.renderer.dom;
116
+ }
117
+ get contentDOM() {
118
+ if (this.node.isLeaf) {
119
+ return null;
120
+ }
121
+ return this.contentDOMElement;
122
+ }
123
+ appendContendDom() {
124
+ const contentElement = this.dom.querySelector('[data-node-view-content]');
125
+ if (this.contentDOMElement
126
+ && contentElement
127
+ && !contentElement.contains(this.contentDOMElement)) {
128
+ contentElement.appendChild(this.contentDOMElement);
129
+ }
130
+ }
131
+ handleSelectionUpdate() {
132
+ const { from, to } = this.editor.state.selection;
133
+ if (from <= this.getPos() && to >= this.getPos() + this.node.nodeSize) {
134
+ this.selectNode();
135
+ }
136
+ else {
137
+ this.deselectNode();
138
+ }
139
+ }
140
+ update(node, decorations) {
141
+ const updateProps = () => {
142
+ this.renderer.updateProps({ node, decorations });
143
+ };
144
+ if (this.options.update) {
145
+ const oldNode = this.node;
146
+ const oldDecorations = this.decorations;
147
+ this.node = node;
148
+ this.decorations = decorations;
149
+ return this.options.update({
150
+ oldNode,
151
+ // @ts-ignore
152
+ oldDecorations,
153
+ newNode: node,
154
+ newDecorations: decorations,
155
+ updateProps: () => updateProps(),
156
+ });
157
+ }
158
+ if (node.type !== this.node.type) {
159
+ return false;
160
+ }
161
+ if (node === this.node && this.decorations === decorations) {
162
+ return true;
163
+ }
164
+ this.node = node;
165
+ this.decorations = decorations;
166
+ updateProps();
167
+ return true;
168
+ }
169
+ selectNode() {
170
+ this.renderer.updateProps({ selected: true });
171
+ }
172
+ deselectNode() {
173
+ this.renderer.updateProps({ selected: false });
174
+ }
175
+ destroy() {
176
+ this.renderer.destroy();
177
+ this.editor.off('selectionUpdate', this.handleSelectionUpdate);
178
+ this.contentDOMElement = null;
179
+ }
180
+ }
181
+ const AngularNodeViewRenderer = (ViewComponent, options) => {
182
+ // @ts-ignore
183
+ return (props) => {
184
+ return new AngularNodeViewContainer(ViewComponent, props, options);
185
+ };
186
+ };
187
+
188
+ class AngularNodeView {
189
+ editor = input.required(...(ngDevMode ? [{ debugName: "editor" }] : /* istanbul ignore next */ []));
190
+ node = input.required(...(ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []));
191
+ decorations = input.required(...(ngDevMode ? [{ debugName: "decorations" }] : /* istanbul ignore next */ []));
192
+ selected = input.required(...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
193
+ extension = input.required(...(ngDevMode ? [{ debugName: "extension" }] : /* istanbul ignore next */ []));
194
+ getPos = input.required(...(ngDevMode ? [{ debugName: "getPos" }] : /* istanbul ignore next */ []));
195
+ updateAttributes = input.required(...(ngDevMode ? [{ debugName: "updateAttributes" }] : /* istanbul ignore next */ []));
196
+ deleteNode = input.required(...(ngDevMode ? [{ debugName: "deleteNode" }] : /* istanbul ignore next */ []));
197
+ HTMLAttributes = input({}, ...(ngDevMode ? [{ debugName: "HTMLAttributes" }] : /* istanbul ignore next */ []));
198
+ innerDecorations = input(undefined, ...(ngDevMode ? [{ debugName: "innerDecorations" }] : /* istanbul ignore next */ []));
199
+ view = input(undefined, ...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
200
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: AngularNodeView, deps: [], target: i0.ɵɵFactoryTarget.Component });
201
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", type: AngularNodeView, isStandalone: true, selector: "ng-component", inputs: { editor: { classPropertyName: "editor", publicName: "editor", isSignal: true, isRequired: true, transformFunction: null }, node: { classPropertyName: "node", publicName: "node", isSignal: true, isRequired: true, transformFunction: null }, decorations: { classPropertyName: "decorations", publicName: "decorations", isSignal: true, isRequired: true, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: true, transformFunction: null }, extension: { classPropertyName: "extension", publicName: "extension", isSignal: true, isRequired: true, transformFunction: null }, getPos: { classPropertyName: "getPos", publicName: "getPos", isSignal: true, isRequired: true, transformFunction: null }, updateAttributes: { classPropertyName: "updateAttributes", publicName: "updateAttributes", isSignal: true, isRequired: true, transformFunction: null }, deleteNode: { classPropertyName: "deleteNode", publicName: "deleteNode", isSignal: true, isRequired: true, transformFunction: null }, HTMLAttributes: { classPropertyName: "HTMLAttributes", publicName: "HTMLAttributes", isSignal: true, isRequired: false, transformFunction: null }, innerDecorations: { classPropertyName: "innerDecorations", publicName: "innerDecorations", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: '', isInline: true });
202
+ }
203
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: AngularNodeView, decorators: [{
204
+ type: Component,
205
+ args: [{ standalone: true, template: '' }]
206
+ }], propDecorators: { editor: [{ type: i0.Input, args: [{ isSignal: true, alias: "editor", required: true }] }], node: [{ type: i0.Input, args: [{ isSignal: true, alias: "node", required: true }] }], decorations: [{ type: i0.Input, args: [{ isSignal: true, alias: "decorations", required: true }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: true }] }], extension: [{ type: i0.Input, args: [{ isSignal: true, alias: "extension", required: true }] }], getPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "getPos", required: true }] }], updateAttributes: [{ type: i0.Input, args: [{ isSignal: true, alias: "updateAttributes", required: true }] }], deleteNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "deleteNode", required: true }] }], HTMLAttributes: [{ type: i0.Input, args: [{ isSignal: true, alias: "HTMLAttributes", required: false }] }], innerDecorations: [{ type: i0.Input, args: [{ isSignal: true, alias: "innerDecorations", required: false }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", required: false }] }] } });
207
+
208
+ class ImageUploadingPlaceholder extends AngularNodeView {
209
+ src;
210
+ error;
211
+ _canceled = false;
212
+ ngOnInit() {
213
+ const uploadFn = this.extension().options['uploadFn'];
214
+ this.src = this.node().attrs['src'];
215
+ const blob = this._dataURItoBlob(this.src);
216
+ uploadFn(blob).then((src) => {
217
+ if (this._canceled) {
218
+ return;
219
+ }
220
+ const image = new Image();
221
+ image.src = src;
222
+ image.onload = () => {
223
+ this.editor().chain().focus().setImage({ src }).run();
224
+ };
225
+ }, (error) => {
226
+ this.error = error;
227
+ });
228
+ }
229
+ ngOnDestroy() {
230
+ this._canceled = true;
231
+ }
232
+ _dataURItoBlob(dataURI) {
233
+ // convert base64 to raw binary data held in a string
234
+ // doesn't handle URLEncoded DataURIs - see SO answer #6850276 for code that does this
235
+ const byteString = atob(dataURI.split(',')[1]);
236
+ // separate out the mime component
237
+ const mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0];
238
+ // write the bytes of the string to an ArrayBuffer
239
+ const ab = new ArrayBuffer(byteString.length);
240
+ const ia = new Uint8Array(ab);
241
+ for (var i = 0; i < byteString.length; i++) {
242
+ ia[i] = byteString.charCodeAt(i);
243
+ }
244
+ return new Blob([ab], { type: mimeString });
245
+ }
246
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: ImageUploadingPlaceholder, deps: null, target: i0.ɵɵFactoryTarget.Component });
247
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: ImageUploadingPlaceholder, isStandalone: true, selector: "ngs-image-uploading-placeholder", host: { properties: { "class.selected": "selected()" }, classAttribute: "ngs-image-uploading-placeholder" }, exportAs: ["ngsTextEditorUploadingPlaceholder"], usesInheritance: true, ngImport: i0, template: "@if (src) {\n <div class=\"flex items-center justify-center relative\">\n @if (error) {\n <div class=\"absolute top-0 start-0 right-0 min-h-8 bg-error z-[2]\n text-on-error text-tiny flex items-center px-3\">{{ error }}</div>\n }\n <div class=\"w-max absolute start-1/2 top-1/2 z-[1] -translate-y-1/2 -translate-x-1/2\">\n @if (!error) {\n <ngs-progress-spinner />\n }\n </div>\n <img [src]=\"src\" alt=\"\" class=\"max-w-full opacity-70\">\n </div>\n}\n", styles: [":host{display:block}:host.selected{outline:var(--sys-tertiary) solid 4px}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: ProgressSpinner, selector: "ngs-progress-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["ngsProgressSpinner"] }] });
248
+ }
249
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: ImageUploadingPlaceholder, decorators: [{
250
+ type: Component,
251
+ args: [{ selector: 'ngs-image-uploading-placeholder', exportAs: 'ngsTextEditorUploadingPlaceholder', imports: [
252
+ ProgressSpinner
253
+ ], host: {
254
+ 'class': 'ngs-image-uploading-placeholder',
255
+ '[class.selected]': 'selected()'
256
+ }, template: "@if (src) {\n <div class=\"flex items-center justify-center relative\">\n @if (error) {\n <div class=\"absolute top-0 start-0 right-0 min-h-8 bg-error z-[2]\n text-on-error text-tiny flex items-center px-3\">{{ error }}</div>\n }\n <div class=\"w-max absolute start-1/2 top-1/2 z-[1] -translate-y-1/2 -translate-x-1/2\">\n @if (!error) {\n <ngs-progress-spinner />\n }\n </div>\n <img [src]=\"src\" alt=\"\" class=\"max-w-full opacity-70\">\n </div>\n}\n", styles: [":host{display:block}:host.selected{outline:var(--sys-tertiary) solid 4px}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
257
+ }] });
258
+
259
+ const ImageUploadingPlaceholderExtension = (injector, options) => {
260
+ return Node.create({
261
+ name: 'imageUploadingPlaceholder',
262
+ draggable: false,
263
+ group: 'block',
264
+ addOptions() {
265
+ return {
266
+ uploadFn: options.uploadFn
267
+ };
268
+ },
269
+ addAttributes() {
270
+ return {
271
+ uploadId: {
272
+ default: ''
273
+ },
274
+ src: {
275
+ default: null
276
+ }
277
+ };
278
+ },
279
+ addCommands() {
280
+ return {
281
+ addImageUploadingPlaceholder: options => ({ commands }) => {
282
+ return commands.insertContent({
283
+ type: this.name,
284
+ attrs: {
285
+ src: options.src
286
+ }
287
+ });
288
+ },
289
+ };
290
+ },
291
+ addNodeView() {
292
+ return AngularNodeViewRenderer(ImageUploadingPlaceholder, { injector });
293
+ },
294
+ parseHTML() {
295
+ return [
296
+ {
297
+ tag: 'image-uploading-placeholder',
298
+ }
299
+ ];
300
+ },
301
+ renderHTML({ HTMLAttributes }) {
302
+ return [
303
+ 'image-uploading-placeholder', mergeAttributes(HTMLAttributes),
304
+ ];
305
+ }
306
+ });
307
+ };
308
+
309
+ class TextEditor {
310
+ _document = inject(DOCUMENT);
311
+ _cdr = inject(ChangeDetectorRef);
312
+ _injector = inject(Injector);
313
+ _content = viewChild.required('content');
314
+ _bubbleMenu = viewChild.required('bubbleMenu');
315
+ _imageBubbleMenu = viewChild.required('imageBubbleMenu');
316
+ _floatingMenu = viewChild.required('floatingMenu');
317
+ _value = '';
318
+ editor;
319
+ content = input('', ...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
320
+ extensions = input([], ...(ngDevMode ? [{ debugName: "extensions" }] : /* istanbul ignore next */ []));
321
+ contentMaxHeight = input(...(ngDevMode ? [undefined, { debugName: "contentMaxHeight" }] : /* istanbul ignore next */ []));
322
+ placeholder = input('Write something …', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
323
+ imageUploadFn = input(...(ngDevMode ? [undefined, { debugName: "imageUploadFn" }] : /* istanbul ignore next */ []));
324
+ contentChange = output();
325
+ get api() {
326
+ return {
327
+ isCommandDisabled: (command, options) => this.isCommandDisabled(command, options),
328
+ isActive: (command, options) => this.editor?.isActive(command, options),
329
+ runCommand: (command, options) => this._runCommand(command, options),
330
+ editor: () => this.editor
331
+ };
332
+ }
333
+ ngOnInit() {
334
+ this._init();
335
+ }
336
+ isCommandDisabled(command, options) {
337
+ if (!this.editor) {
338
+ return true;
339
+ }
340
+ try {
341
+ const canFocus = this.editor.can().chain().focus();
342
+ return !canFocus[command](options).run() || null;
343
+ }
344
+ catch (e) {
345
+ return true;
346
+ }
347
+ }
348
+ ngOnDestroy() {
349
+ this.editor?.destroy();
350
+ }
351
+ _runCommand(command, options) {
352
+ if (!this.editor) {
353
+ return;
354
+ }
355
+ const chainFocus = this.editor.chain().focus();
356
+ chainFocus[command](options).run();
357
+ }
358
+ _init() {
359
+ const extensions = [
360
+ ...this.extensions(),
361
+ Heading.configure({
362
+ levels: [1, 2, 3],
363
+ }),
364
+ HorizontalRule,
365
+ Document,
366
+ Paragraph,
367
+ Text,
368
+ Bold,
369
+ Italic,
370
+ Strike,
371
+ Blockquote,
372
+ CodeBlock,
373
+ BulletList,
374
+ OrderedList,
375
+ ListItem,
376
+ Code,
377
+ History,
378
+ Dropcursor,
379
+ Youtube.configure({
380
+ controls: false,
381
+ nocookie: true,
382
+ }),
383
+ ImageUploadingPlaceholderExtension(this._injector, {
384
+ uploadFn: this.imageUploadFn(),
385
+ }),
386
+ Image$1.configure({
387
+ inline: true,
388
+ allowBase64: true
389
+ }),
390
+ Link.configure({
391
+ openOnClick: false,
392
+ defaultProtocol: 'https',
393
+ }),
394
+ Placeholder.configure({
395
+ placeholder: this.placeholder()
396
+ }),
397
+ // BubbleMenu.configure({
398
+ // element: this._imageBubbleMenu().nativeElement,
399
+ // shouldShow: ({ editor, view, state, oldState, from, to }) => {
400
+ // // return editor.isActive('image');
401
+ // return false;
402
+ // },
403
+ // }),
404
+ BubbleMenu.configure({
405
+ element: this._bubbleMenu().nativeElement,
406
+ tippyOptions: {
407
+ appendTo: this._document.body,
408
+ zIndex: 999
409
+ },
410
+ shouldShow: ({ editor, view, state, oldState, from, to }) => {
411
+ return !editor.isActive('image') &&
412
+ !editor.isActive('youtube') &&
413
+ !editor.isActive('imageUploadingPlaceholder') &&
414
+ !editor.view.state.selection.empty;
415
+ },
416
+ })
417
+ ];
418
+ if (this._floatingMenu()) {
419
+ extensions.push(FloatingMenu.configure({
420
+ element: this._floatingMenu().nativeElement
421
+ }));
422
+ }
423
+ this.editor = new Editor({
424
+ element: this._content().nativeElement,
425
+ extensions,
426
+ content: this.content(),
427
+ onUpdate: ({ editor }) => {
428
+ this._value = !editor.isEmpty ? editor.getHTML() : '';
429
+ this.contentChange.emit(this._value);
430
+ }
431
+ });
432
+ this._cdr.detectChanges();
433
+ }
434
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditor, deps: [], target: i0.ɵɵFactoryTarget.Component });
435
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.4", type: TextEditor, isStandalone: true, selector: "ngs-text-editor", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, extensions: { classPropertyName: "extensions", publicName: "extensions", isSignal: true, isRequired: false, transformFunction: null }, contentMaxHeight: { classPropertyName: "contentMaxHeight", publicName: "contentMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, imageUploadFn: { classPropertyName: "imageUploadFn", publicName: "imageUploadFn", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { contentChange: "contentChange" }, host: { classAttribute: "ngs-text-editor" }, providers: [
436
+ {
437
+ provide: TEXT_EDITOR,
438
+ useExisting: forwardRef(() => TextEditor)
439
+ }
440
+ ], viewQueries: [{ propertyName: "_content", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "_bubbleMenu", first: true, predicate: ["bubbleMenu"], descendants: true, isSignal: true }, { propertyName: "_imageBubbleMenu", first: true, predicate: ["imageBubbleMenu"], descendants: true, isSignal: true }, { propertyName: "_floatingMenu", first: true, predicate: ["floatingMenu"], descendants: true, isSignal: true }], exportAs: ["ngsTextEditor"], ngImport: i0, template: "<ng-content select=\"ngs-text-editor-toolbar\"/>\n<div #content class=\"content prose dark:prose-invert max-w-full\"></div>\n<div #imageBubbleMenu class=\"ngs-text-editor-bubble-menu\"></div>\n<div #bubbleMenu>\n <ng-content select=\"ngs-text-editor-bubble-menu\"/>\n</div>\n<div #floatingMenu class=\"floating-menu\">\n <ng-content select=\"ngs-text-editor-floating-menu\"/>\n</div>\n", styles: [":host{--ngs-text-editor-bg: transparent;--ngs-text-editor-content-max-height: 9999px;--ngs-text-editor-content-padding: calc(var(--spacing, .25rem) * 6);display:block}:host:not([class*=bg-]){background:var(--ngs-text-editor-bg)}:host .floating-menu:empty{display:none}:host ::ng-deep .tippy-box{max-width:800px!important}:host .content ::ng-deep .tiptap{padding:var(--ngs-text-editor-content-padding);min-height:100%}:host .content ::ng-deep .tiptap:focus{outline:none}:host .content ::ng-deep .tiptap div[data-youtube-video]{cursor:move;background:var(--color-neutral-100);padding:calc(var(--spacing, .25rem) * 6);display:flex;align-items:center;justify-content:center}:host .content ::ng-deep .tiptap div[data-youtube-video] iframe{width:100%;aspect-ratio:16/9;border:none;display:block;min-height:200px;min-width:200px;outline:none}:host .content ::ng-deep .tiptap div[data-youtube-video].ProseMirror-selectednode iframe{outline:var(--sys-tertiary) solid 4px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host .content ::ng-deep .tiptap img{display:block;height:auto;margin:calc(var(--spacing, .25rem) * 6) 0;max-width:100%}:host .content ::ng-deep .tiptap img.ProseMirror-selectednode{outline:var(--sys-tertiary) solid 4px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host .content ::ng-deep .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--color-neutral-500);float:left;height:0;pointer-events:none;font-size:.875rem}:host .content ::ng-deep .tiptap.ProseMirror-focused p.is-editor-empty:first-child:before{content:none}:host .content ::ng-deep .tiptap p.is-empty:before{content:attr(data-placeholder);color:var(--color-neutral-500);float:left;height:0;pointer-events:none;font-size:.875rem}:host .content ::ng-deep p:first-child,:host .content ::ng-deep pre:first-child{margin-top:0}:host .content ::ng-deep p:last-child,:host .content ::ng-deep pre:last-child{margin-bottom:0}:host .button.active,:host ::ng-deep .button.active{background:var(--color-neutral-100)}:host-context(html.dark) .button.active,:host-context(html.dark) ::ng-deep .button.active{background:var(--color-neutral-650);color:var(--color-neutral-200)}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] });
441
+ }
442
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditor, decorators: [{
443
+ type: Component,
444
+ args: [{ selector: 'ngs-text-editor', exportAs: 'ngsTextEditor', imports: [], providers: [
445
+ {
446
+ provide: TEXT_EDITOR,
447
+ useExisting: forwardRef(() => TextEditor)
448
+ }
449
+ ], host: {
450
+ 'class': 'ngs-text-editor'
451
+ }, template: "<ng-content select=\"ngs-text-editor-toolbar\"/>\n<div #content class=\"content prose dark:prose-invert max-w-full\"></div>\n<div #imageBubbleMenu class=\"ngs-text-editor-bubble-menu\"></div>\n<div #bubbleMenu>\n <ng-content select=\"ngs-text-editor-bubble-menu\"/>\n</div>\n<div #floatingMenu class=\"floating-menu\">\n <ng-content select=\"ngs-text-editor-floating-menu\"/>\n</div>\n", styles: [":host{--ngs-text-editor-bg: transparent;--ngs-text-editor-content-max-height: 9999px;--ngs-text-editor-content-padding: calc(var(--spacing, .25rem) * 6);display:block}:host:not([class*=bg-]){background:var(--ngs-text-editor-bg)}:host .floating-menu:empty{display:none}:host ::ng-deep .tippy-box{max-width:800px!important}:host .content ::ng-deep .tiptap{padding:var(--ngs-text-editor-content-padding);min-height:100%}:host .content ::ng-deep .tiptap:focus{outline:none}:host .content ::ng-deep .tiptap div[data-youtube-video]{cursor:move;background:var(--color-neutral-100);padding:calc(var(--spacing, .25rem) * 6);display:flex;align-items:center;justify-content:center}:host .content ::ng-deep .tiptap div[data-youtube-video] iframe{width:100%;aspect-ratio:16/9;border:none;display:block;min-height:200px;min-width:200px;outline:none}:host .content ::ng-deep .tiptap div[data-youtube-video].ProseMirror-selectednode iframe{outline:var(--sys-tertiary) solid 4px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host .content ::ng-deep .tiptap img{display:block;height:auto;margin:calc(var(--spacing, .25rem) * 6) 0;max-width:100%}:host .content ::ng-deep .tiptap img.ProseMirror-selectednode{outline:var(--sys-tertiary) solid 4px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host .content ::ng-deep .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--color-neutral-500);float:left;height:0;pointer-events:none;font-size:.875rem}:host .content ::ng-deep .tiptap.ProseMirror-focused p.is-editor-empty:first-child:before{content:none}:host .content ::ng-deep .tiptap p.is-empty:before{content:attr(data-placeholder);color:var(--color-neutral-500);float:left;height:0;pointer-events:none;font-size:.875rem}:host .content ::ng-deep p:first-child,:host .content ::ng-deep pre:first-child{margin-top:0}:host .content ::ng-deep p:last-child,:host .content ::ng-deep pre:last-child{margin-bottom:0}:host .button.active,:host ::ng-deep .button.active{background:var(--color-neutral-100)}:host-context(html.dark) .button.active,:host-context(html.dark) ::ng-deep .button.active{background:var(--color-neutral-650);color:var(--color-neutral-200)}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
452
+ }], propDecorators: { _content: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], _bubbleMenu: [{ type: i0.ViewChild, args: ['bubbleMenu', { isSignal: true }] }], _imageBubbleMenu: [{ type: i0.ViewChild, args: ['imageBubbleMenu', { isSignal: true }] }], _floatingMenu: [{ type: i0.ViewChild, args: ['floatingMenu', { isSignal: true }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }], extensions: [{ type: i0.Input, args: [{ isSignal: true, alias: "extensions", required: false }] }], contentMaxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentMaxHeight", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], imageUploadFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "imageUploadFn", required: false }] }], contentChange: [{ type: i0.Output, args: ["contentChange"] }] } });
453
+
454
+ class TextEditorToolbar {
455
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorToolbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
456
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorToolbar, isStandalone: true, selector: "ngs-text-editor-toolbar", exportAs: ["ngsTextEditorToolbar"], ngImport: i0, template: "<ng-content select=\"[ngsTextEditorCommand],ngs-text-editor-divider\"/>\n\n", styles: [":host{border-top-left-radius:inherit;border-top-right-radius:inherit;gap:calc(var(--spacing, .25rem) * .5);border-bottom:1px solid var(--color-border);height:calc(var(--spacing, .25rem) * 14);padding-left:calc(var(--spacing, .25rem) * 3);padding-right:calc(var(--spacing, .25rem) * 3);display:flex;align-items:center;z-index:1}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] });
457
+ }
458
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorToolbar, decorators: [{
459
+ type: Component,
460
+ args: [{ selector: 'ngs-text-editor-toolbar', exportAs: 'ngsTextEditorToolbar', imports: [], template: "<ng-content select=\"[ngsTextEditorCommand],ngs-text-editor-divider\"/>\n\n", styles: [":host{border-top-left-radius:inherit;border-top-right-radius:inherit;gap:calc(var(--spacing, .25rem) * .5);border-bottom:1px solid var(--color-border);height:calc(var(--spacing, .25rem) * 14);padding-left:calc(var(--spacing, .25rem) * 3);padding-right:calc(var(--spacing, .25rem) * 3);display:flex;align-items:center;z-index:1}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
461
+ }] });
462
+
463
+ class TextEditorDivider {
464
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorDivider, deps: [], target: i0.ɵɵFactoryTarget.Component });
465
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorDivider, isStandalone: true, selector: "ngs-text-editor-divider", exportAs: ["ngsTextEditorDivider"], ngImport: i0, template: "<div class=\"divider\"></div>\n", styles: [":host{display:block;padding:0 calc(var(--spacing, .25rem) * 2)}:host .divider{height:calc(var(--spacing, .25rem) * 6);background:var(--color-neutral-300);width:1px}:host-context(html.dark) .divider{background:var(--color-neutral-500)}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] });
466
+ }
467
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorDivider, decorators: [{
468
+ type: Component,
469
+ args: [{ selector: 'ngs-text-editor-divider', exportAs: 'ngsTextEditorDivider', imports: [], template: "<div class=\"divider\"></div>\n", styles: [":host{display:block;padding:0 calc(var(--spacing, .25rem) * 2)}:host .divider{height:calc(var(--spacing, .25rem) * 6);background:var(--color-neutral-300);width:1px}:host-context(html.dark) .divider{background:var(--color-neutral-500)}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
470
+ }] });
471
+
472
+ class TextEditorBubbleMenu {
473
+ textEditor = inject(TEXT_EDITOR);
474
+ getLinkUrl() {
475
+ return (this.textEditor.api.editor()?.getAttributes('link')).href || null;
476
+ }
477
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorBubbleMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
478
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: TextEditorBubbleMenu, isStandalone: true, selector: "ngs-text-editor-bubble-menu", providers: [
479
+ {
480
+ provide: TEXT_EDITOR_BUBBLE_MENU,
481
+ useExisting: forwardRef(() => TextEditorBubbleMenu)
482
+ }
483
+ ], exportAs: ["emitTextEditorBubbleMenu"], ngImport: i0, template: "@if (this.textEditor.api.isActive('link') && getLinkUrl()) {\n <div class=\"flex items-center gap-1 h-11 border-b border-b-muted border-b-neutral-700\">\n <div class=\"grow text-sm overflow-hidden text-ellipsis whitespace-nowrap w-[116px]\">\n <a [href]=\"getLinkUrl()\" target=\"_blank\" class=\"link\">{{ getLinkUrl() }}</a>\n </div>\n <div class=\"flex items-center flex-none\">\n <ng-content select=\"[ngsTextEditorCommandEditLink],[ngsCommentEditorCommandUnsetLink]\"/>\n </div>\n </div>\n}\n<div class=\"h-12 flex items-center justify-center gap-0.5\">\n <ng-content select=\"[ngsTextEditorCommand],ngs-text-editor-divider\"/>\n</div>\n", styles: [":host{display:block;box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a;background:var(--color-neutral-950);color:var(--color-neutral-200);min-height:calc(var(--spacing, .25rem) * 12);border-radius:1rem;top:1px;padding-inline-start:calc(var(--spacing, .25rem) * 2);padding-inline-end:calc(var(--spacing, .25rem) * 2)}:host .button,:host ::ng-deep .button{width:calc(var(--spacing, .25rem) * 10);height:calc(var(--spacing, .25rem) * 10);display:flex;align-items:center;justify-content:center;--icon-size: 1.25rem;border-radius:calc(infinity * 1px)}:host .button:hover,:host ::ng-deep .button:hover{color:var(--color-tertiary-300);background:var(--color-neutral-700);padding:calc(var(--spacing, .25rem) * 1.5)}:host .button.active,:host ::ng-deep .button.active{color:var(--color-tertiary-300);background:var(--color-neutral-700)}:host .button ngs-icon,:host ::ng-deep .button ngs-icon{width:calc(var(--spacing, .25rem) * 6);height:calc(var(--spacing, .25rem) * 6);font-size:1.25rem;line-height:1.25}:host .button:disabled,:host ::ng-deep .button:disabled{pointer-events:none;opacity:70%}:host .link{color:var(--color-tertiary-300);position:relative;top:1px}:host .link:hover{color:var(--color-tertiary-100)}:host-context(html.dark){background:var(--color-tertiary-200);color:var(--color-neutral-900)}:host-context(html.dark) .link{color:var(--color-tertiary-700)}:host-context(html.dark) .link:hover{color:var(--color-tertiary-800)}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] });
484
+ }
485
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorBubbleMenu, decorators: [{
486
+ type: Component,
487
+ args: [{ selector: 'ngs-text-editor-bubble-menu', exportAs: 'emitTextEditorBubbleMenu', imports: [], providers: [
488
+ {
489
+ provide: TEXT_EDITOR_BUBBLE_MENU,
490
+ useExisting: forwardRef(() => TextEditorBubbleMenu)
491
+ }
492
+ ], template: "@if (this.textEditor.api.isActive('link') && getLinkUrl()) {\n <div class=\"flex items-center gap-1 h-11 border-b border-b-muted border-b-neutral-700\">\n <div class=\"grow text-sm overflow-hidden text-ellipsis whitespace-nowrap w-[116px]\">\n <a [href]=\"getLinkUrl()\" target=\"_blank\" class=\"link\">{{ getLinkUrl() }}</a>\n </div>\n <div class=\"flex items-center flex-none\">\n <ng-content select=\"[ngsTextEditorCommandEditLink],[ngsCommentEditorCommandUnsetLink]\"/>\n </div>\n </div>\n}\n<div class=\"h-12 flex items-center justify-center gap-0.5\">\n <ng-content select=\"[ngsTextEditorCommand],ngs-text-editor-divider\"/>\n</div>\n", styles: [":host{display:block;box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a;background:var(--color-neutral-950);color:var(--color-neutral-200);min-height:calc(var(--spacing, .25rem) * 12);border-radius:1rem;top:1px;padding-inline-start:calc(var(--spacing, .25rem) * 2);padding-inline-end:calc(var(--spacing, .25rem) * 2)}:host .button,:host ::ng-deep .button{width:calc(var(--spacing, .25rem) * 10);height:calc(var(--spacing, .25rem) * 10);display:flex;align-items:center;justify-content:center;--icon-size: 1.25rem;border-radius:calc(infinity * 1px)}:host .button:hover,:host ::ng-deep .button:hover{color:var(--color-tertiary-300);background:var(--color-neutral-700);padding:calc(var(--spacing, .25rem) * 1.5)}:host .button.active,:host ::ng-deep .button.active{color:var(--color-tertiary-300);background:var(--color-neutral-700)}:host .button ngs-icon,:host ::ng-deep .button ngs-icon{width:calc(var(--spacing, .25rem) * 6);height:calc(var(--spacing, .25rem) * 6);font-size:1.25rem;line-height:1.25}:host .button:disabled,:host ::ng-deep .button:disabled{pointer-events:none;opacity:70%}:host .link{color:var(--color-tertiary-300);position:relative;top:1px}:host .link:hover{color:var(--color-tertiary-100)}:host-context(html.dark){background:var(--color-tertiary-200);color:var(--color-neutral-900)}:host-context(html.dark) .link{color:var(--color-tertiary-700)}:host-context(html.dark) .link:hover{color:var(--color-tertiary-800)}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
493
+ }] });
494
+
495
+ class TextEditorFloatingMenu {
496
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorFloatingMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
497
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorFloatingMenu, isStandalone: true, selector: "ngs-text-editor-floating-menu", host: { classAttribute: "ngs-text-editor-floating-menu" }, exportAs: ["ngsTextEditorFloatingMenu"], ngImport: i0, template: "<ng-content select=\"[ngsTextEditorCommand],ngs-text-editor-divider\"/>\n", styles: [":host{box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a;margin-left:calc(var(--spacing, .25rem) * 3);margin-right:calc(var(--spacing, .25rem) * 3);background:var(--sys-surface-container-lowest);padding:calc(var(--spacing, .25rem) * 1.5) calc(var(--spacing, .25rem) * 2);display:flex;align-items:center;flex-wrap:wrap;gap:calc(var(--spacing, .25rem) * .5);border:1px solid var(--color-border);border-radius:1rem}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] });
498
+ }
499
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorFloatingMenu, decorators: [{
500
+ type: Component,
501
+ args: [{ selector: 'ngs-text-editor-floating-menu', exportAs: 'ngsTextEditorFloatingMenu', imports: [], host: {
502
+ 'class': 'ngs-text-editor-floating-menu'
503
+ }, template: "<ng-content select=\"[ngsTextEditorCommand],ngs-text-editor-divider\"/>\n", styles: [":host{box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a;margin-left:calc(var(--spacing, .25rem) * 3);margin-right:calc(var(--spacing, .25rem) * 3);background:var(--sys-surface-container-lowest);padding:calc(var(--spacing, .25rem) * 1.5) calc(var(--spacing, .25rem) * 2);display:flex;align-items:center;flex-wrap:wrap;gap:calc(var(--spacing, .25rem) * .5);border:1px solid var(--color-border);border-radius:1rem}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
504
+ }] });
505
+
506
+ class TextEditorCommandBlockquoteDirective {
507
+ textEditor = inject(TEXT_EDITOR);
508
+ onClick() {
509
+ this.textEditor.api.runCommand('toggleBlockquote');
510
+ }
511
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandBlockquoteDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
512
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorCommandBlockquoteDirective, isStandalone: true, selector: "[ngsTextEditorCommandBlockquote]", host: { listeners: { "click": "onClick()" }, properties: { "attr.disabled": "(textEditor && textEditor.api.isCommandDisabled('toggleBlockquote')) ? '' : null", "class.active": "textEditor && textEditor.api.isActive('blockquote')" } }, exportAs: ["ngsTextEditorCommandBlockquote"], ngImport: i0 });
513
+ }
514
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandBlockquoteDirective, decorators: [{
515
+ type: Directive,
516
+ args: [{
517
+ selector: '[ngsTextEditorCommandBlockquote]',
518
+ exportAs: 'ngsTextEditorCommandBlockquote',
519
+ host: {
520
+ '[attr.disabled]': `(textEditor && textEditor.api.isCommandDisabled('toggleBlockquote')) ? '' : null`,
521
+ '[class.active]': `textEditor && textEditor.api.isActive('blockquote')`,
522
+ '(click)': `onClick()`
523
+ }
524
+ }]
525
+ }] });
526
+
527
+ class TextEditorCommandBoldDirective {
528
+ textEditor = inject(TEXT_EDITOR);
529
+ onClick() {
530
+ this.textEditor.api.runCommand('toggleBold');
531
+ }
532
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandBoldDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
533
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorCommandBoldDirective, isStandalone: true, selector: "[ngsTextEditorCommandBold]", host: { listeners: { "click": "onClick()" }, properties: { "attr.disabled": "(textEditor && textEditor.api.isCommandDisabled('toggleBold')) ? '' : null", "class.active": "textEditor && textEditor.api.isActive('bold')" } }, exportAs: ["ngsTextEditorCommandBold"], ngImport: i0 });
534
+ }
535
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandBoldDirective, decorators: [{
536
+ type: Directive,
537
+ args: [{
538
+ selector: '[ngsTextEditorCommandBold]',
539
+ exportAs: 'ngsTextEditorCommandBold',
540
+ host: {
541
+ '[attr.disabled]': `(textEditor && textEditor.api.isCommandDisabled('toggleBold')) ? '' : null`,
542
+ '[class.active]': `textEditor && textEditor.api.isActive('bold')`,
543
+ '(click)': `onClick()`
544
+ }
545
+ }]
546
+ }] });
547
+
548
+ class TextEditorCommandBulletListDirective {
549
+ textEditor = inject(TEXT_EDITOR);
550
+ onClick() {
551
+ this.textEditor.api.runCommand('toggleBulletList');
552
+ }
553
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandBulletListDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
554
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorCommandBulletListDirective, isStandalone: true, selector: "[ngsTextEditorCommandBulletList]", host: { listeners: { "click": "onClick()" }, properties: { "attr.disabled": "(textEditor && textEditor.api.isCommandDisabled('toggleBulletList')) ? '' : null", "class.active": "textEditor && textEditor.api.isActive('bulletList')" } }, exportAs: ["ngsTextEditorCommandBulletList"], ngImport: i0 });
555
+ }
556
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandBulletListDirective, decorators: [{
557
+ type: Directive,
558
+ args: [{
559
+ selector: '[ngsTextEditorCommandBulletList]',
560
+ exportAs: 'ngsTextEditorCommandBulletList',
561
+ host: {
562
+ '[attr.disabled]': `(textEditor && textEditor.api.isCommandDisabled('toggleBulletList')) ? '' : null`,
563
+ '[class.active]': `textEditor && textEditor.api.isActive('bulletList')`,
564
+ '(click)': `onClick()`
565
+ }
566
+ }]
567
+ }] });
568
+
569
+ class TextEditorCommandCodeBlockDirective {
570
+ textEditor = inject(TEXT_EDITOR);
571
+ onClick() {
572
+ this.textEditor.api.runCommand('toggleCodeBlock');
573
+ }
574
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandCodeBlockDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
575
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorCommandCodeBlockDirective, isStandalone: true, selector: "[ngsTextEditorCommandCodeBlock]", host: { listeners: { "click": "onClick()" }, properties: { "attr.disabled": "(textEditor && textEditor.api.isCommandDisabled('toggleCodeBlock')) ? '' : null", "class.active": "textEditor && textEditor.api.isActive('codeBlock')" } }, exportAs: ["ngsTextEditorCommandCodeBlock"], ngImport: i0 });
576
+ }
577
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandCodeBlockDirective, decorators: [{
578
+ type: Directive,
579
+ args: [{
580
+ selector: '[ngsTextEditorCommandCodeBlock]',
581
+ exportAs: 'ngsTextEditorCommandCodeBlock',
582
+ host: {
583
+ '[attr.disabled]': `(textEditor && textEditor.api.isCommandDisabled('toggleCodeBlock')) ? '' : null`,
584
+ '[class.active]': `textEditor && textEditor.api.isActive('codeBlock')`,
585
+ '(click)': `onClick()`
586
+ }
587
+ }]
588
+ }] });
589
+
590
+ class TextEditorCommandCodeDirective {
591
+ textEditor = inject(TEXT_EDITOR);
592
+ onClick() {
593
+ this.textEditor.api.runCommand('toggleCode');
594
+ }
595
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandCodeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
596
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorCommandCodeDirective, isStandalone: true, selector: "[ngsTextEditorCommandCode]", host: { listeners: { "click": "onClick()" }, properties: { "attr.disabled": "(textEditor && textEditor.api.isCommandDisabled('toggleCode')) ? '' : null", "class.active": "textEditor && textEditor.api.isActive('code')" } }, exportAs: ["ngsTextEditorCommandCode"], ngImport: i0 });
597
+ }
598
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandCodeDirective, decorators: [{
599
+ type: Directive,
600
+ args: [{
601
+ selector: '[ngsTextEditorCommandCode]',
602
+ exportAs: 'ngsTextEditorCommandCode',
603
+ host: {
604
+ '[attr.disabled]': `(textEditor && textEditor.api.isCommandDisabled('toggleCode')) ? '' : null`,
605
+ '[class.active]': `textEditor && textEditor.api.isActive('code')`,
606
+ '(click)': `onClick()`
607
+ }
608
+ }]
609
+ }] });
610
+
611
+ class LinkDialog {
612
+ _dialogRef = inject(DialogRef);
613
+ _data = inject(DIALOG_DATA);
614
+ linkUrl = this._data.linkUrl || '';
615
+ isUpdate = !!this._data.linkUrl;
616
+ onSubmit() {
617
+ this._dialogRef.close(this.linkUrl);
618
+ }
619
+ _onNoClick() {
620
+ this._dialogRef.close();
621
+ }
622
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: LinkDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
623
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: LinkDialog, isStandalone: true, selector: "ngs-link", exportAs: ["ngsLink"], ngImport: i0, template: "<form class=\"w-[500px]\" (ngSubmit)=\"onSubmit()\">\n <h3 ngs-dialog-title>\n @if (isUpdate) {\n Update Link\n } @else {\n Add Link\n }</h3>\n <ngs-dialog-content>\n <div class=\"pt-4\">\n <ngs-form-field class=\"w-full\">\n <ngs-label>Paste Link</ngs-label>\n <input name=\"linkUrl\" ngsInput [(ngModel)]=\"linkUrl\">\n </ngs-form-field>\n </div>\n </ngs-dialog-content>\n <div ngs-dialog-actions align=\"end\">\n <button ngsButton (click)=\"_onNoClick()\">Cancel</button>\n <button type=\"submit\" ngsButton=\"filled\" color=\"primary\"\n cdkFocusInitial [disabled]=\"!linkUrl.trim() || null\">\n @if (isUpdate) {\n Save\n } @else {\n Add link\n }\n </button>\n </div>\n</form>\n", styles: ["/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ 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: DialogActions, selector: "ngs-dialog-actions, [ngs-dialog-actions], [ngsDialogActions]", inputs: ["align"] }, { kind: "component", type: DialogContent, selector: "ngs-dialog-content,[ngs-dialog-content],[ngsDialogContent]" }, { kind: "component", type: DialogTitle, selector: "ngs-dialog-title, [ngs-dialog-title], [ngsDialogTitle]", inputs: ["id"], exportAs: ["ngsDialogTitle"] }, { kind: "component", type: FormField, selector: "ngs-form-field", inputs: ["subscriptHiddenIfEmpty"], exportAs: ["ngsFormField"] }, { kind: "directive", type: Input, selector: "input[ngsInput], textarea[ngsInput]", inputs: ["id", "placeholder", "required", "disabled", "readonly", "errorStateMatcher"], exportAs: ["ngsInput"] }, { kind: "component", type: Label, selector: "ngs-label" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { 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.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
624
+ }
625
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: LinkDialog, decorators: [{
626
+ type: Component,
627
+ args: [{ selector: 'ngs-link', exportAs: 'ngsLink', imports: [
628
+ Button,
629
+ DialogActions,
630
+ DialogContent,
631
+ DialogTitle,
632
+ FormField,
633
+ Input,
634
+ Label,
635
+ ReactiveFormsModule,
636
+ FormsModule
637
+ ], template: "<form class=\"w-[500px]\" (ngSubmit)=\"onSubmit()\">\n <h3 ngs-dialog-title>\n @if (isUpdate) {\n Update Link\n } @else {\n Add Link\n }</h3>\n <ngs-dialog-content>\n <div class=\"pt-4\">\n <ngs-form-field class=\"w-full\">\n <ngs-label>Paste Link</ngs-label>\n <input name=\"linkUrl\" ngsInput [(ngModel)]=\"linkUrl\">\n </ngs-form-field>\n </div>\n </ngs-dialog-content>\n <div ngs-dialog-actions align=\"end\">\n <button ngsButton (click)=\"_onNoClick()\">Cancel</button>\n <button type=\"submit\" ngsButton=\"filled\" color=\"primary\"\n cdkFocusInitial [disabled]=\"!linkUrl.trim() || null\">\n @if (isUpdate) {\n Save\n } @else {\n Add link\n }\n </button>\n </div>\n</form>\n", styles: ["/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
638
+ }] });
639
+
640
+ class TextEditorCommandEditLinkDirective {
641
+ _destroyRef = inject(DestroyRef);
642
+ _dialog = inject(Dialog);
643
+ textEditor = inject(TEXT_EDITOR);
644
+ setLinkActive = false;
645
+ onClick() {
646
+ this.setLinkActive = true;
647
+ const dialogRef = this._dialog.open(LinkDialog, {
648
+ data: {
649
+ linkUrl: this.textEditor.api.editor().getAttributes('link').href
650
+ }
651
+ });
652
+ dialogRef
653
+ .afterClosed()
654
+ .pipe(takeUntilDestroyed(this._destroyRef))
655
+ .subscribe((linkUrl) => {
656
+ this.setLinkActive = false;
657
+ if (typeof linkUrl === 'undefined') {
658
+ return;
659
+ }
660
+ this._setLink(linkUrl);
661
+ });
662
+ }
663
+ _setLink(url) {
664
+ // cancelled
665
+ if (url === null) {
666
+ return;
667
+ }
668
+ // empty
669
+ if (url === '') {
670
+ this.textEditor.api.editor()
671
+ .chain()
672
+ .focus()
673
+ .extendMarkRange('link')
674
+ .unsetLink()
675
+ .run();
676
+ return;
677
+ }
678
+ // update link
679
+ this.textEditor.api.editor()
680
+ .chain()
681
+ .focus()
682
+ .extendMarkRange('link')
683
+ .setLink({ href: url })
684
+ .run();
685
+ }
686
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandEditLinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
687
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorCommandEditLinkDirective, isStandalone: true, selector: "[ngsTextEditorCommandEditLink]", host: { listeners: { "click": "onClick()" }, properties: { "class.button": "true" } }, exportAs: ["ngsTextEditorCommandEditLink"], ngImport: i0 });
688
+ }
689
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandEditLinkDirective, decorators: [{
690
+ type: Directive,
691
+ args: [{
692
+ selector: '[ngsTextEditorCommandEditLink]',
693
+ exportAs: 'ngsTextEditorCommandEditLink',
694
+ host: {
695
+ '[class.button]': 'true',
696
+ '(click)': `onClick()`
697
+ }
698
+ }]
699
+ }] });
700
+
701
+ class TextEditorCommandImageDirective {
702
+ textEditor = inject(TEXT_EDITOR);
703
+ onImageSelected(event) {
704
+ const file = event.files[0];
705
+ const reader = new FileReader();
706
+ reader.readAsDataURL(file);
707
+ reader.onload = () => {
708
+ const src = reader.result;
709
+ this.textEditor.api.editor().chain().focus().addImageUploadingPlaceholder({ src, file }).run();
710
+ };
711
+ }
712
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandImageDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
713
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorCommandImageDirective, isStandalone: true, selector: "[ngsTextEditorCommandImage]", host: { listeners: { "fileSelected": "onImageSelected($event)" }, properties: { "attr.accept": "\"image/*\"" } }, exportAs: ["ngsTextEditorCommandImage"], hostDirectives: [{ directive: i1$1.UploadTriggerDirective, outputs: ["fileSelected", "fileSelected"] }], ngImport: i0 });
714
+ }
715
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandImageDirective, decorators: [{
716
+ type: Directive,
717
+ args: [{
718
+ selector: '[ngsTextEditorCommandImage]',
719
+ exportAs: 'ngsTextEditorCommandImage',
720
+ hostDirectives: [
721
+ {
722
+ directive: UploadTriggerDirective,
723
+ outputs: ['fileSelected']
724
+ }
725
+ ],
726
+ host: {
727
+ '[attr.accept]': '"image/*"',
728
+ '(fileSelected)': `onImageSelected($event)`
729
+ }
730
+ }]
731
+ }] });
732
+
733
+ class TextEditorCommandItalicDirective {
734
+ textEditor = inject(TEXT_EDITOR);
735
+ onClick() {
736
+ this.textEditor.api.runCommand('toggleItalic');
737
+ }
738
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandItalicDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
739
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorCommandItalicDirective, isStandalone: true, selector: "[ngsTextEditorCommandItalic]", host: { listeners: { "click": "onClick()" }, properties: { "attr.disabled": "(textEditor && textEditor.api.isCommandDisabled('toggleItalic')) ? '' : null", "class.active": "textEditor && textEditor.api.isActive('italic')" } }, exportAs: ["ngsTextEditorCommandItalic"], ngImport: i0 });
740
+ }
741
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandItalicDirective, decorators: [{
742
+ type: Directive,
743
+ args: [{
744
+ selector: '[ngsTextEditorCommandItalic]',
745
+ exportAs: 'ngsTextEditorCommandItalic',
746
+ host: {
747
+ '[attr.disabled]': `(textEditor && textEditor.api.isCommandDisabled('toggleItalic')) ? '' : null`,
748
+ '[class.active]': `textEditor && textEditor.api.isActive('italic')`,
749
+ '(click)': `onClick()`
750
+ }
751
+ }]
752
+ }] });
753
+
754
+ class TextEditorCommandDirective {
755
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
756
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorCommandDirective, isStandalone: true, selector: "[ngsTextEditorCommand]", host: { properties: { "class.button": "true" } }, exportAs: ["ngsTextEditorCommand"], ngImport: i0 });
757
+ }
758
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandDirective, decorators: [{
759
+ type: Directive,
760
+ args: [{
761
+ selector: '[ngsTextEditorCommand]',
762
+ exportAs: 'ngsTextEditorCommand',
763
+ host: {
764
+ '[class.button]': 'true'
765
+ }
766
+ }]
767
+ }] });
768
+
769
+ class YoutubeDialog {
770
+ _dialogRef = inject(DialogRef);
771
+ _data = inject(DIALOG_DATA);
772
+ linkUrl = this._data.linkUrl || '';
773
+ isUpdate = !!this._data.linkUrl;
774
+ onSubmit() {
775
+ this._dialogRef.close(this.linkUrl);
776
+ }
777
+ _onNoClick() {
778
+ this._dialogRef.close();
779
+ }
780
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: YoutubeDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
781
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: YoutubeDialog, isStandalone: true, selector: "ngs-youtube", exportAs: ["ngsYoutube"], ngImport: i0, template: "<form class=\"w-[500px]\" (ngSubmit)=\"onSubmit()\">\n <h3 ngs-dialog-title>\n @if (isUpdate) {\n Update Youtube\n } @else {\n Add Youtube\n }\n </h3>\n <ngs-dialog-content>\n <div class=\"pt-4\">\n <ngs-form-field class=\"w-full\">\n <ngs-label>Paste Url</ngs-label>\n <input name=\"linkUrl\" ngsInput [(ngModel)]=\"linkUrl\">\n </ngs-form-field>\n </div>\n </ngs-dialog-content>\n <div ngs-dialog-actions align=\"end\">\n <button ngsButton (click)=\"_onNoClick()\">Cancel</button>\n <button type=\"submit\" ngsButton=\"filled\" color=\"primary\"\n cdkFocusInitial [disabled]=\"!linkUrl.trim() || null\">\n @if (isUpdate) {\n Save\n } @else {\n Add url\n }\n </button>\n </div>\n</form>\n", styles: ["/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { 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.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { 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: DialogActions, selector: "ngs-dialog-actions, [ngs-dialog-actions], [ngsDialogActions]", inputs: ["align"] }, { kind: "component", type: DialogContent, selector: "ngs-dialog-content,[ngs-dialog-content],[ngsDialogContent]" }, { kind: "component", type: DialogTitle, selector: "ngs-dialog-title, [ngs-dialog-title], [ngsDialogTitle]", inputs: ["id"], exportAs: ["ngsDialogTitle"] }, { kind: "component", type: FormField, selector: "ngs-form-field", inputs: ["subscriptHiddenIfEmpty"], exportAs: ["ngsFormField"] }, { kind: "directive", type: Input, selector: "input[ngsInput], textarea[ngsInput]", inputs: ["id", "placeholder", "required", "disabled", "readonly", "errorStateMatcher"], exportAs: ["ngsInput"] }, { kind: "component", type: Label, selector: "ngs-label" }, { kind: "ngmodule", type: ReactiveFormsModule }] });
782
+ }
783
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: YoutubeDialog, decorators: [{
784
+ type: Component,
785
+ args: [{ selector: 'ngs-youtube', exportAs: 'ngsYoutube', imports: [
786
+ FormsModule,
787
+ Button,
788
+ DialogActions,
789
+ DialogContent,
790
+ DialogTitle,
791
+ FormField,
792
+ Input,
793
+ Label,
794
+ ReactiveFormsModule
795
+ ], template: "<form class=\"w-[500px]\" (ngSubmit)=\"onSubmit()\">\n <h3 ngs-dialog-title>\n @if (isUpdate) {\n Update Youtube\n } @else {\n Add Youtube\n }\n </h3>\n <ngs-dialog-content>\n <div class=\"pt-4\">\n <ngs-form-field class=\"w-full\">\n <ngs-label>Paste Url</ngs-label>\n <input name=\"linkUrl\" ngsInput [(ngModel)]=\"linkUrl\">\n </ngs-form-field>\n </div>\n </ngs-dialog-content>\n <div ngs-dialog-actions align=\"end\">\n <button ngsButton (click)=\"_onNoClick()\">Cancel</button>\n <button type=\"submit\" ngsButton=\"filled\" color=\"primary\"\n cdkFocusInitial [disabled]=\"!linkUrl.trim() || null\">\n @if (isUpdate) {\n Save\n } @else {\n Add url\n }\n </button>\n </div>\n</form>\n", styles: ["/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
796
+ }] });
797
+
798
+ class TextEditorCommandYoutubeDirective {
799
+ textEditor = inject(TEXT_EDITOR);
800
+ _dialog = inject(Dialog);
801
+ _destroyRef = inject(DestroyRef);
802
+ onClick() {
803
+ const dialogRef = this._dialog.open(YoutubeDialog, {
804
+ data: {
805
+ linkUrl: this.textEditor.api.editor().getAttributes('iframe').src
806
+ }
807
+ });
808
+ dialogRef
809
+ .afterClosed()
810
+ .pipe(takeUntilDestroyed(this._destroyRef))
811
+ .subscribe((linkUrl) => {
812
+ if (typeof linkUrl === 'undefined') {
813
+ return;
814
+ }
815
+ this.textEditor.api.editor().commands.setYoutubeVideo({
816
+ src: linkUrl
817
+ });
818
+ });
819
+ }
820
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandYoutubeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
821
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorCommandYoutubeDirective, isStandalone: true, selector: "[ngsTextEditorCommandYoutube]", host: { listeners: { "click": "onClick()" }, properties: { "attr.disabled": "(textEditor && textEditor.api.isCommandDisabled('toggleBlockquote')) ? '' : null", "class.active": "textEditor && textEditor.api.isActive('blockquote')" } }, exportAs: ["ngsTextEditorCommandYoutube"], ngImport: i0 });
822
+ }
823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandYoutubeDirective, decorators: [{
824
+ type: Directive,
825
+ args: [{
826
+ selector: '[ngsTextEditorCommandYoutube]',
827
+ exportAs: 'ngsTextEditorCommandYoutube',
828
+ host: {
829
+ '[attr.disabled]': `(textEditor && textEditor.api.isCommandDisabled('toggleBlockquote')) ? '' : null`,
830
+ '[class.active]': `textEditor && textEditor.api.isActive('blockquote')`,
831
+ '(click)': `onClick()`
832
+ }
833
+ }]
834
+ }] });
835
+
836
+ class TextEditorCommandUnsetLinkDirective {
837
+ textEditor = inject(TEXT_EDITOR);
838
+ onClick() {
839
+ this.textEditor.api.editor().commands.unsetLink();
840
+ }
841
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandUnsetLinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
842
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorCommandUnsetLinkDirective, isStandalone: true, selector: "[ngsTextEditorCommandUnsetLink]", host: { listeners: { "click": "onClick()" }, properties: { "class.button": "true" } }, exportAs: ["ngsTextEditorCommandUnsetLink"], ngImport: i0 });
843
+ }
844
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandUnsetLinkDirective, decorators: [{
845
+ type: Directive,
846
+ args: [{
847
+ selector: '[ngsTextEditorCommandUnsetLink]',
848
+ exportAs: 'ngsTextEditorCommandUnsetLink',
849
+ host: {
850
+ '[class.button]': 'true',
851
+ '(click)': `onClick()`
852
+ }
853
+ }]
854
+ }] });
855
+
856
+ class TextEditorCommandStrikeDirective {
857
+ textEditor = inject(TEXT_EDITOR);
858
+ onClick() {
859
+ this.textEditor.api.runCommand('toggleStrike');
860
+ }
861
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandStrikeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
862
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorCommandStrikeDirective, isStandalone: true, selector: "[ngsTextEditorCommandStrike]", host: { listeners: { "click": "onClick()" }, properties: { "attr.disabled": "(textEditor && textEditor.api.isCommandDisabled('toggleStrike')) ? '' : null", "class.active": "textEditor && textEditor.api.isActive('strike')" } }, exportAs: ["ngsTextEditorCommandStrike"], ngImport: i0 });
863
+ }
864
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandStrikeDirective, decorators: [{
865
+ type: Directive,
866
+ args: [{
867
+ selector: '[ngsTextEditorCommandStrike]',
868
+ exportAs: 'ngsTextEditorCommandStrike',
869
+ host: {
870
+ '[attr.disabled]': `(textEditor && textEditor.api.isCommandDisabled('toggleStrike')) ? '' : null`,
871
+ '[class.active]': `textEditor && textEditor.api.isActive('strike')`,
872
+ '(click)': `onClick()`
873
+ }
874
+ }]
875
+ }] });
876
+
877
+ class TextEditorCommandOrderedListDirective {
878
+ textEditor = inject(TEXT_EDITOR);
879
+ onClick() {
880
+ this.textEditor.api.runCommand('toggleOrderedList');
881
+ }
882
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandOrderedListDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
883
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorCommandOrderedListDirective, isStandalone: true, selector: "[ngsTextEditorCommandOrderedList]", host: { listeners: { "click": "onClick()" }, properties: { "attr.disabled": "(textEditor && textEditor.api.isCommandDisabled('toggleOrderedList')) ? '' : null", "class.active": "textEditor && textEditor.api.isActive('orderedList')" } }, exportAs: ["ngsTextEditorCommandOrderedList"], ngImport: i0 });
884
+ }
885
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandOrderedListDirective, decorators: [{
886
+ type: Directive,
887
+ args: [{
888
+ selector: '[ngsTextEditorCommandOrderedList]',
889
+ exportAs: 'ngsTextEditorCommandOrderedList',
890
+ host: {
891
+ '[attr.disabled]': `(textEditor && textEditor.api.isCommandDisabled('toggleOrderedList')) ? '' : null`,
892
+ '[class.active]': `textEditor && textEditor.api.isActive('orderedList')`,
893
+ '(click)': `onClick()`
894
+ }
895
+ }]
896
+ }] });
897
+
898
+ class TextEditorCommandLinkDirective {
899
+ _destroyRef = inject(DestroyRef);
900
+ _dialog = inject(Dialog);
901
+ textEditor = inject(TEXT_EDITOR);
902
+ setLinkActive = false;
903
+ onClick() {
904
+ this.setLinkActive = true;
905
+ const dialogRef = this._dialog.open(LinkDialog, {
906
+ data: {
907
+ linkUrl: this.textEditor.api.editor().getAttributes('link').href
908
+ }
909
+ });
910
+ dialogRef
911
+ .afterClosed()
912
+ .pipe(takeUntilDestroyed(this._destroyRef))
913
+ .subscribe((linkUrl) => {
914
+ this.setLinkActive = false;
915
+ if (typeof linkUrl === 'undefined') {
916
+ return;
917
+ }
918
+ this._setLink(linkUrl);
919
+ });
920
+ }
921
+ _setLink(url) {
922
+ // cancelled
923
+ if (url === null) {
924
+ return;
925
+ }
926
+ // empty
927
+ if (url === '') {
928
+ this.textEditor.api.editor()
929
+ .chain()
930
+ .focus()
931
+ .extendMarkRange('link')
932
+ .unsetLink()
933
+ .run();
934
+ return;
935
+ }
936
+ // update link
937
+ this.textEditor.api.editor()
938
+ .chain()
939
+ .focus()
940
+ .extendMarkRange('link')
941
+ .setLink({ href: url })
942
+ .run();
943
+ }
944
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandLinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
945
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorCommandLinkDirective, isStandalone: true, selector: "[ngsTextEditorCommandLink]", host: { listeners: { "click": "onClick()" }, properties: { "attr.disabled": "(textEditor && textEditor.api.isCommandDisabled('toggleLink')) ? '' : null", "class.active": "textEditor && textEditor.api.isActive('link')" } }, exportAs: ["ngsTextEditorCommandLink"], ngImport: i0 });
946
+ }
947
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandLinkDirective, decorators: [{
948
+ type: Directive,
949
+ args: [{
950
+ selector: '[ngsTextEditorCommandLink]',
951
+ exportAs: 'ngsTextEditorCommandLink',
952
+ host: {
953
+ '[attr.disabled]': `(textEditor && textEditor.api.isCommandDisabled('toggleLink')) ? '' : null`,
954
+ '[class.active]': `textEditor && textEditor.api.isActive('link')`,
955
+ '(click)': `onClick()`
956
+ }
957
+ }]
958
+ }] });
959
+
960
+ class TextEditorCommandHeadingDirective {
961
+ textEditor = inject(TEXT_EDITOR);
962
+ level = input.required({ ...(ngDevMode ? { debugName: "level" } : /* istanbul ignore next */ {}), transform: numberAttribute });
963
+ get isActive() {
964
+ return !!(this.textEditor && this.textEditor.api.isActive('heading', { level: this.level() }));
965
+ }
966
+ get isDisabled() {
967
+ return !!(this.textEditor && this.textEditor.api.isCommandDisabled('toggleHeading', { level: this.level() }));
968
+ }
969
+ onClick() {
970
+ this.textEditor.api.runCommand('toggleHeading', { level: this.level() });
971
+ }
972
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandHeadingDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
973
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.4", type: TextEditorCommandHeadingDirective, isStandalone: true, selector: "[ngsTextEditorCommandHeading]", inputs: { level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "click": "onClick()" }, properties: { "attr.disabled": "isDisabled ? '' : null", "class.active": "isActive" } }, exportAs: ["ngsTextEditorCommandHeading"], ngImport: i0 });
974
+ }
975
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandHeadingDirective, decorators: [{
976
+ type: Directive,
977
+ args: [{
978
+ selector: '[ngsTextEditorCommandHeading]',
979
+ exportAs: 'ngsTextEditorCommandHeading',
980
+ host: {
981
+ '[attr.disabled]': `isDisabled ? '' : null`,
982
+ '[class.active]': `isActive`,
983
+ '(click)': `onClick()`
984
+ }
985
+ }]
986
+ }], propDecorators: { level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: true }] }] } });
987
+
988
+ class TextEditorCommandHorizontalRuleDirective {
989
+ textEditor = inject(TEXT_EDITOR);
990
+ onClick() {
991
+ this.textEditor.api.editor().chain().focus().setHorizontalRule().run();
992
+ }
993
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandHorizontalRuleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
994
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: TextEditorCommandHorizontalRuleDirective, isStandalone: true, selector: "[ngsTextEditorCommandHorizontalRule]", host: { listeners: { "click": "onClick()" }, properties: { "class.button": "true" } }, ngImport: i0 });
995
+ }
996
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TextEditorCommandHorizontalRuleDirective, decorators: [{
997
+ type: Directive,
998
+ args: [{
999
+ selector: '[ngsTextEditorCommandHorizontalRule]',
1000
+ host: {
1001
+ '[class.button]': 'true',
1002
+ '(click)': `onClick()`
1003
+ }
1004
+ }]
1005
+ }] });
1006
+
1007
+ /**
1008
+ * Generated bundle index. Do not edit.
1009
+ */
1010
+
1011
+ export { TEXT_EDITOR, TEXT_EDITOR_BUBBLE_MENU, TextEditor, TextEditorBubbleMenu, TextEditorCommandBlockquoteDirective, TextEditorCommandBoldDirective, TextEditorCommandBulletListDirective, TextEditorCommandCodeBlockDirective, TextEditorCommandCodeDirective, TextEditorCommandDirective, TextEditorCommandEditLinkDirective, TextEditorCommandHeadingDirective, TextEditorCommandHorizontalRuleDirective, TextEditorCommandImageDirective, TextEditorCommandItalicDirective, TextEditorCommandLinkDirective, TextEditorCommandOrderedListDirective, TextEditorCommandStrikeDirective, TextEditorCommandUnsetLinkDirective, TextEditorCommandYoutubeDirective, TextEditorDivider, TextEditorFloatingMenu, TextEditorToolbar };
1012
+ //# sourceMappingURL=ngstarter-ui-components-text-editor.mjs.map