@ngstarter-ui/components 22.3.5 → 22.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (476) hide show
  1. package/README.md +27 -0
  2. package/ai/component-registry.json +186 -101
  3. package/fesm2022/attachment-block-BK9QxVjq.mjs +163 -0
  4. package/fesm2022/attachment-block-BK9QxVjq.mjs.map +1 -0
  5. package/fesm2022/callout-block-Bl4GZYz8.mjs +196 -0
  6. package/fesm2022/callout-block-Bl4GZYz8.mjs.map +1 -0
  7. package/fesm2022/code-block.component-DCRD-9iP.mjs +393 -0
  8. package/fesm2022/code-block.component-DCRD-9iP.mjs.map +1 -0
  9. package/fesm2022/content-builder.store-D622mHxt.mjs +328 -0
  10. package/fesm2022/content-builder.store-D622mHxt.mjs.map +1 -0
  11. package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs +1110 -0
  12. package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs.map +1 -0
  13. package/fesm2022/cursor-controller-DKfBII1n.mjs +55 -0
  14. package/fesm2022/cursor-controller-DKfBII1n.mjs.map +1 -0
  15. package/fesm2022/default-converters-9oSKDsXP.mjs +140 -0
  16. package/fesm2022/default-converters-9oSKDsXP.mjs.map +1 -0
  17. package/fesm2022/divider-block.component-Dvgeq_D0.mjs +148 -0
  18. package/fesm2022/divider-block.component-Dvgeq_D0.mjs.map +1 -0
  19. package/fesm2022/embed-block-CYkOv4Wt.mjs +565 -0
  20. package/fesm2022/embed-block-CYkOv4Wt.mjs.map +1 -0
  21. package/fesm2022/extra-block-defs-Cn_hfM3c.mjs +122 -0
  22. package/fesm2022/extra-block-defs-Cn_hfM3c.mjs.map +1 -0
  23. package/fesm2022/gallery-block-DT3uIURY.mjs +365 -0
  24. package/fesm2022/gallery-block-DT3uIURY.mjs.map +1 -0
  25. package/fesm2022/grid-block-ZVDT3m8-.mjs +504 -0
  26. package/fesm2022/grid-block-ZVDT3m8-.mjs.map +1 -0
  27. package/fesm2022/heading-block.component-iCpJGTMh.mjs +274 -0
  28. package/fesm2022/heading-block.component-iCpJGTMh.mjs.map +1 -0
  29. package/fesm2022/html-utils-DywL8gGa.mjs +24 -0
  30. package/fesm2022/html-utils-DywL8gGa.mjs.map +1 -0
  31. package/fesm2022/image-block.component-DJ7-HCR8.mjs +285 -0
  32. package/fesm2022/image-block.component-DJ7-HCR8.mjs.map +1 -0
  33. package/fesm2022/list-block.component-qFIebEBO.mjs +312 -0
  34. package/fesm2022/list-block.component-qFIebEBO.mjs.map +1 -0
  35. package/fesm2022/nested-blocks-CXhgXJ1H.mjs +345 -0
  36. package/fesm2022/nested-blocks-CXhgXJ1H.mjs.map +1 -0
  37. package/fesm2022/ngstarter-ui-components-action-required.mjs +150 -45
  38. package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -1
  39. package/fesm2022/ngstarter-ui-components-alert.mjs +318 -133
  40. package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -1
  41. package/fesm2022/ngstarter-ui-components-announcement.mjs +280 -88
  42. package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -1
  43. package/fesm2022/ngstarter-ui-components-autocomplete.mjs +647 -386
  44. package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -1
  45. package/fesm2022/ngstarter-ui-components-avatar.mjs +715 -482
  46. package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -1
  47. package/fesm2022/ngstarter-ui-components-badge.mjs +308 -97
  48. package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -1
  49. package/fesm2022/ngstarter-ui-components-block-loader.mjs +164 -47
  50. package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -1
  51. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +278 -315
  52. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs.map +1 -1
  53. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +707 -205
  54. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -1
  55. package/fesm2022/ngstarter-ui-components-button-toggle.mjs +518 -175
  56. package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -1
  57. package/fesm2022/ngstarter-ui-components-button.mjs +294 -68
  58. package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
  59. package/fesm2022/ngstarter-ui-components-calendar.mjs +442 -250
  60. package/fesm2022/ngstarter-ui-components-calendar.mjs.map +1 -1
  61. package/fesm2022/ngstarter-ui-components-card-overlay.mjs +159 -47
  62. package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -1
  63. package/fesm2022/ngstarter-ui-components-card.mjs +619 -194
  64. package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -1
  65. package/fesm2022/ngstarter-ui-components-carousel.mjs +1012 -634
  66. package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -1
  67. package/fesm2022/ngstarter-ui-components-checkbox.mjs +715 -308
  68. package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -1
  69. package/fesm2022/ngstarter-ui-components-chips.mjs +1397 -667
  70. package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -1
  71. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +519 -357
  72. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -1
  73. package/fesm2022/ngstarter-ui-components-color-picker.mjs +1218 -604
  74. package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -1
  75. package/fesm2022/ngstarter-ui-components-color-scheme.mjs +265 -134
  76. package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -1
  77. package/fesm2022/ngstarter-ui-components-color-switcher.mjs +190 -71
  78. package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -1
  79. package/fesm2022/ngstarter-ui-components-command-bar.mjs +197 -58
  80. package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -1
  81. package/fesm2022/ngstarter-ui-components-comment-editor.mjs +2212 -1128
  82. package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -1
  83. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +269 -183
  84. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -1
  85. package/fesm2022/ngstarter-ui-components-confirm.mjs +164 -86
  86. package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -1
  87. package/fesm2022/ngstarter-ui-components-content-editor.mjs +6240 -2
  88. package/fesm2022/ngstarter-ui-components-content-editor.mjs.map +1 -1
  89. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +244 -108
  90. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -1
  91. package/fesm2022/ngstarter-ui-components-core.mjs +2110 -1592
  92. package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
  93. package/fesm2022/ngstarter-ui-components-country-select.mjs +1970 -588
  94. package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -1
  95. package/fesm2022/ngstarter-ui-components-crop.mjs +249 -191
  96. package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -1
  97. package/fesm2022/ngstarter-ui-components-currency-select.mjs +1658 -452
  98. package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -1
  99. package/fesm2022/ngstarter-ui-components-data-view.mjs +4538 -2497
  100. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
  101. package/fesm2022/ngstarter-ui-components-date-format-select.mjs +357 -157
  102. package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -1
  103. package/fesm2022/ngstarter-ui-components-datepicker.mjs +2587 -1264
  104. package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
  105. package/fesm2022/ngstarter-ui-components-dialog.mjs +681 -385
  106. package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -1
  107. package/fesm2022/ngstarter-ui-components-digit-roller.mjs +1000 -750
  108. package/fesm2022/ngstarter-ui-components-digit-roller.mjs.map +1 -1
  109. package/fesm2022/ngstarter-ui-components-divider.mjs +164 -41
  110. package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -1
  111. package/fesm2022/ngstarter-ui-components-drawer.mjs +218 -143
  112. package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -1
  113. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +345 -247
  114. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -1
  115. package/fesm2022/ngstarter-ui-components-empty-state.mjs +244 -74
  116. package/fesm2022/ngstarter-ui-components-empty-state.mjs.map +1 -1
  117. package/fesm2022/ngstarter-ui-components-events.mjs +467 -126
  118. package/fesm2022/ngstarter-ui-components-events.mjs.map +1 -1
  119. package/fesm2022/ngstarter-ui-components-expand.mjs +191 -59
  120. package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -1
  121. package/fesm2022/ngstarter-ui-components-expansion.mjs +529 -193
  122. package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -1
  123. package/fesm2022/ngstarter-ui-components-file-type.mjs +270 -171
  124. package/fesm2022/ngstarter-ui-components-file-type.mjs.map +1 -1
  125. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +741 -352
  126. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
  127. package/fesm2022/ngstarter-ui-components-form-builder.mjs +9032 -6964
  128. package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
  129. package/fesm2022/ngstarter-ui-components-form-field.mjs +741 -276
  130. package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -1
  131. package/fesm2022/ngstarter-ui-components-gauge.mjs +155 -43
  132. package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -1
  133. package/fesm2022/ngstarter-ui-components-grid.mjs +197 -81
  134. package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -1
  135. package/fesm2022/ngstarter-ui-components-guided-tour.mjs +881 -740
  136. package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -1
  137. package/fesm2022/ngstarter-ui-components-headless-editor.mjs +3573 -3656
  138. package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
  139. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +277 -204
  140. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -1
  141. package/fesm2022/ngstarter-ui-components-icon.mjs +209 -182
  142. package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -1
  143. package/fesm2022/ngstarter-ui-components-image-designer.mjs +5096 -4066
  144. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
  145. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +45 -19
  146. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -1
  147. package/fesm2022/ngstarter-ui-components-image-resizer.mjs +333 -154
  148. package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -1
  149. package/fesm2022/ngstarter-ui-components-image-viewer.mjs +564 -358
  150. package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -1
  151. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +246 -167
  152. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -1
  153. package/fesm2022/ngstarter-ui-components-incidents.mjs +732 -258
  154. package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -1
  155. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +244 -182
  156. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -1
  157. package/fesm2022/ngstarter-ui-components-input-mask.mjs +314 -174
  158. package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -1
  159. package/fesm2022/ngstarter-ui-components-input-validator.mjs +45 -69
  160. package/fesm2022/ngstarter-ui-components-input-validator.mjs.map +1 -1
  161. package/fesm2022/ngstarter-ui-components-input.mjs +303 -161
  162. package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -1
  163. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +504 -159
  164. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
  165. package/fesm2022/ngstarter-ui-components-kbd.mjs +86 -30
  166. package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -1
  167. package/fesm2022/ngstarter-ui-components-layout.mjs +681 -220
  168. package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -1
  169. package/fesm2022/ngstarter-ui-components-list.mjs +968 -281
  170. package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -1
  171. package/fesm2022/ngstarter-ui-components-logo.mjs +181 -51
  172. package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -1
  173. package/fesm2022/ngstarter-ui-components-marquee.mjs +226 -147
  174. package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -1
  175. package/fesm2022/ngstarter-ui-components-menu.mjs +1686 -1091
  176. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
  177. package/fesm2022/ngstarter-ui-components-micro-chart.mjs +1541 -943
  178. package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -1
  179. package/fesm2022/ngstarter-ui-components-navigation.mjs +1035 -455
  180. package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -1
  181. package/fesm2022/ngstarter-ui-components-notifications.mjs +678 -230
  182. package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -1
  183. package/fesm2022/ngstarter-ui-components-number-input.mjs +616 -316
  184. package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -1
  185. package/fesm2022/ngstarter-ui-components-option.mjs +405 -163
  186. package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -1
  187. package/fesm2022/ngstarter-ui-components-overlay.mjs +107 -111
  188. package/fesm2022/ngstarter-ui-components-overlay.mjs.map +1 -1
  189. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +131 -76
  190. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -1
  191. package/fesm2022/ngstarter-ui-components-paginator.mjs +543 -295
  192. package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -1
  193. package/fesm2022/ngstarter-ui-components-password-strength.mjs +785 -340
  194. package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -1
  195. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +3705 -2695
  196. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
  197. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs +1179 -851
  198. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs.map +1 -1
  199. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +2973 -2070
  200. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
  201. package/fesm2022/ngstarter-ui-components-phone-input.mjs +2081 -770
  202. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
  203. package/fesm2022/ngstarter-ui-components-pin-input.mjs +366 -198
  204. package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -1
  205. package/fesm2022/ngstarter-ui-components-popover.mjs +558 -308
  206. package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -1
  207. package/fesm2022/ngstarter-ui-components-progress-bar.mjs +178 -73
  208. package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -1
  209. package/fesm2022/ngstarter-ui-components-radio-card.mjs +301 -105
  210. package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -1
  211. package/fesm2022/ngstarter-ui-components-radio.mjs +417 -157
  212. package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -1
  213. package/fesm2022/ngstarter-ui-components-rail-nav.mjs +208 -88
  214. package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -1
  215. package/fesm2022/ngstarter-ui-components-resizable-container.mjs +123 -74
  216. package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -1
  217. package/fesm2022/ngstarter-ui-components-screen-loader.mjs +197 -95
  218. package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -1
  219. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +383 -245
  220. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -1
  221. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +705 -581
  222. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -1
  223. package/fesm2022/ngstarter-ui-components-segmented.mjs +422 -220
  224. package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -1
  225. package/fesm2022/ngstarter-ui-components-select.mjs +1862 -1159
  226. package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -1
  227. package/fesm2022/ngstarter-ui-components-side-panel.mjs +313 -118
  228. package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -1
  229. package/fesm2022/ngstarter-ui-components-sidebar.mjs +1239 -470
  230. package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -1
  231. package/fesm2022/ngstarter-ui-components-sidenav.mjs +664 -354
  232. package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -1
  233. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1092 -643
  234. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
  235. package/fesm2022/ngstarter-ui-components-skeleton.mjs +153 -43
  236. package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -1
  237. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +425 -108
  238. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -1
  239. package/fesm2022/ngstarter-ui-components-slider.mjs +645 -487
  240. package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -1
  241. package/fesm2022/ngstarter-ui-components-snack-bar.mjs +372 -354
  242. package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -1
  243. package/fesm2022/ngstarter-ui-components-sort.mjs +378 -147
  244. package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
  245. package/fesm2022/ngstarter-ui-components-spinner.mjs +242 -76
  246. package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -1
  247. package/fesm2022/ngstarter-ui-components-splash-screen.mjs +142 -91
  248. package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -1
  249. package/fesm2022/ngstarter-ui-components-split.mjs +1067 -929
  250. package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -1
  251. package/fesm2022/ngstarter-ui-components-step-tracker.mjs +617 -331
  252. package/fesm2022/ngstarter-ui-components-step-tracker.mjs.map +1 -1
  253. package/fesm2022/ngstarter-ui-components-stepper.mjs +357 -126
  254. package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -1
  255. package/fesm2022/ngstarter-ui-components-suggestions.mjs +259 -72
  256. package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -1
  257. package/fesm2022/ngstarter-ui-components-tab-panel.mjs +674 -267
  258. package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -1
  259. package/fesm2022/ngstarter-ui-components-table.mjs +1144 -662
  260. package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
  261. package/fesm2022/ngstarter-ui-components-tabs.mjs +1236 -615
  262. package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -1
  263. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +414 -216
  264. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -1
  265. package/fesm2022/ngstarter-ui-components-tiles.mjs +939 -647
  266. package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -1
  267. package/fesm2022/ngstarter-ui-components-timeline.mjs +418 -122
  268. package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -1
  269. package/fesm2022/ngstarter-ui-components-timepicker.mjs +870 -508
  270. package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -1
  271. package/fesm2022/ngstarter-ui-components-timezone-select.mjs +651 -371
  272. package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -1
  273. package/fesm2022/ngstarter-ui-components-toolbar.mjs +727 -320
  274. package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -1
  275. package/fesm2022/ngstarter-ui-components-tooltip.mjs +601 -521
  276. package/fesm2022/ngstarter-ui-components-tooltip.mjs.map +1 -1
  277. package/fesm2022/ngstarter-ui-components-tree-select.mjs +1197 -434
  278. package/fesm2022/ngstarter-ui-components-tree-select.mjs.map +1 -1
  279. package/fesm2022/ngstarter-ui-components-tree.mjs +1821 -1262
  280. package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -1
  281. package/fesm2022/ngstarter-ui-components-upload.mjs +1059 -345
  282. package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -1
  283. package/fesm2022/ngstarter-ui-components-video-player.mjs +763 -533
  284. package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -1
  285. package/fesm2022/ngstarter-ui-components-video-viewer.mjs +630 -229
  286. package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -1
  287. package/fesm2022/ngstarter-ui-components-visual-builder.mjs +40 -17
  288. package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -1
  289. package/fesm2022/ngstarter-ui-components-whiteboard.mjs +3039 -1803
  290. package/fesm2022/ngstarter-ui-components-whiteboard.mjs.map +1 -1
  291. package/fesm2022/ngstarter-ui-components.mjs +3 -5
  292. package/fesm2022/ngstarter-ui-components.mjs.map +1 -1
  293. package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs +264 -0
  294. package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs.map +1 -0
  295. package/fesm2022/plain-text-settings-BnxCxLhA.mjs +354 -0
  296. package/fesm2022/plain-text-settings-BnxCxLhA.mjs.map +1 -0
  297. package/fesm2022/quote-block.component-tRmrU97F.mjs +309 -0
  298. package/fesm2022/quote-block.component-tRmrU97F.mjs.map +1 -0
  299. package/fesm2022/table-block.component-BuzRRggv.mjs +1859 -0
  300. package/fesm2022/table-block.component-BuzRRggv.mjs.map +1 -0
  301. package/fesm2022/toggle-block-C5Jo2YDf.mjs +150 -0
  302. package/fesm2022/toggle-block-C5Jo2YDf.mjs.map +1 -0
  303. package/fesm2022/upload-status-tZ0x0BUB.mjs +107 -0
  304. package/fesm2022/upload-status-tZ0x0BUB.mjs.map +1 -0
  305. package/fesm2022/video-block.component-CpAXibm6.mjs +312 -0
  306. package/fesm2022/video-block.component-CpAXibm6.mjs.map +1 -0
  307. package/package.json +11 -10
  308. package/styles/_tokens.scss +1 -0
  309. package/types/ngstarter-ui-components-action-required.d.ts +34 -14
  310. package/types/ngstarter-ui-components-alert.d.ts +53 -44
  311. package/types/ngstarter-ui-components-announcement.d.ts +74 -53
  312. package/types/ngstarter-ui-components-autocomplete.d.ts +141 -84
  313. package/types/ngstarter-ui-components-avatar.d.ts +113 -66
  314. package/types/ngstarter-ui-components-badge.d.ts +73 -37
  315. package/types/ngstarter-ui-components-block-loader.d.ts +32 -20
  316. package/types/ngstarter-ui-components-bottom-sheet.d.ts +125 -132
  317. package/types/ngstarter-ui-components-breadcrumbs.d.ts +93 -88
  318. package/types/ngstarter-ui-components-button-toggle.d.ts +124 -54
  319. package/types/ngstarter-ui-components-button.d.ts +69 -27
  320. package/types/ngstarter-ui-components-calendar.d.ts +123 -71
  321. package/types/ngstarter-ui-components-card-overlay.d.ts +31 -19
  322. package/types/ngstarter-ui-components-card.d.ts +75 -71
  323. package/types/ngstarter-ui-components-carousel.d.ts +115 -69
  324. package/types/ngstarter-ui-components-checkbox.d.ts +183 -86
  325. package/types/ngstarter-ui-components-chips.d.ts +288 -195
  326. package/types/ngstarter-ui-components-code-highlighter.d.ts +71 -28
  327. package/types/ngstarter-ui-components-color-picker.d.ts +140 -89
  328. package/types/ngstarter-ui-components-color-scheme.d.ts +43 -52
  329. package/types/ngstarter-ui-components-color-switcher.d.ts +46 -26
  330. package/types/ngstarter-ui-components-command-bar.d.ts +40 -26
  331. package/types/ngstarter-ui-components-comment-editor.d.ts +311 -235
  332. package/types/ngstarter-ui-components-comparison-slider.d.ts +41 -40
  333. package/types/ngstarter-ui-components-confirm.d.ts +24 -29
  334. package/types/ngstarter-ui-components-content-editor.d.ts +1482 -998
  335. package/types/ngstarter-ui-components-cookie-popup.d.ts +43 -38
  336. package/types/ngstarter-ui-components-core.d.ts +513 -467
  337. package/types/ngstarter-ui-components-country-select.d.ts +170 -97
  338. package/types/ngstarter-ui-components-crop.d.ts +67 -52
  339. package/types/ngstarter-ui-components-currency-select.d.ts +127 -90
  340. package/types/ngstarter-ui-components-data-view.d.ts +811 -567
  341. package/types/ngstarter-ui-components-date-format-select.d.ts +90 -58
  342. package/types/ngstarter-ui-components-datepicker.d.ts +589 -373
  343. package/types/ngstarter-ui-components-dialog.d.ts +138 -116
  344. package/types/ngstarter-ui-components-digit-roller.d.ts +228 -131
  345. package/types/ngstarter-ui-components-divider.d.ts +29 -17
  346. package/types/ngstarter-ui-components-drawer.d.ts +39 -30
  347. package/types/ngstarter-ui-components-emoji-picker.d.ts +69 -47
  348. package/types/ngstarter-ui-components-empty-state.d.ts +20 -28
  349. package/types/ngstarter-ui-components-events.d.ts +73 -57
  350. package/types/ngstarter-ui-components-expand.d.ts +55 -25
  351. package/types/ngstarter-ui-components-expansion.d.ts +93 -64
  352. package/types/ngstarter-ui-components-file-type.d.ts +53 -27
  353. package/types/ngstarter-ui-components-filter-builder.d.ts +131 -100
  354. package/types/ngstarter-ui-components-form-builder.d.ts +1094 -881
  355. package/types/ngstarter-ui-components-form-field.d.ts +116 -105
  356. package/types/ngstarter-ui-components-gauge.d.ts +32 -20
  357. package/types/ngstarter-ui-components-grid.d.ts +66 -50
  358. package/types/ngstarter-ui-components-guided-tour.d.ts +250 -222
  359. package/types/ngstarter-ui-components-headless-editor.d.ts +708 -658
  360. package/types/ngstarter-ui-components-headless-stepper.d.ts +84 -64
  361. package/types/ngstarter-ui-components-icon.d.ts +39 -38
  362. package/types/ngstarter-ui-components-image-designer.d.ts +422 -341
  363. package/types/ngstarter-ui-components-image-placeholder.d.ts +5 -8
  364. package/types/ngstarter-ui-components-image-resizer.d.ts +40 -33
  365. package/types/ngstarter-ui-components-image-viewer.d.ts +67 -54
  366. package/types/ngstarter-ui-components-image-zoom-viewer.d.ts +29 -33
  367. package/types/ngstarter-ui-components-incidents.d.ts +97 -104
  368. package/types/ngstarter-ui-components-inline-text-edit.d.ts +54 -39
  369. package/types/ngstarter-ui-components-input-mask.d.ts +54 -34
  370. package/types/ngstarter-ui-components-input-validator.d.ts +7 -11
  371. package/types/ngstarter-ui-components-input.d.ts +82 -54
  372. package/types/ngstarter-ui-components-kanban-board.d.ts +76 -63
  373. package/types/ngstarter-ui-components-kbd.d.ts +8 -12
  374. package/types/ngstarter-ui-components-layout.d.ts +131 -87
  375. package/types/ngstarter-ui-components-list.d.ts +123 -88
  376. package/types/ngstarter-ui-components-logo.d.ts +21 -21
  377. package/types/ngstarter-ui-components-marquee.d.ts +41 -34
  378. package/types/ngstarter-ui-components-menu.d.ts +329 -221
  379. package/types/ngstarter-ui-components-micro-chart.d.ts +385 -186
  380. package/types/ngstarter-ui-components-navigation.d.ts +186 -125
  381. package/types/ngstarter-ui-components-notifications.d.ts +104 -89
  382. package/types/ngstarter-ui-components-number-input.d.ts +138 -96
  383. package/types/ngstarter-ui-components-option.d.ts +102 -68
  384. package/types/ngstarter-ui-components-overlay.d.ts +7 -12
  385. package/types/ngstarter-ui-components-page-loading-bar.d.ts +23 -20
  386. package/types/ngstarter-ui-components-paginator.d.ts +171 -129
  387. package/types/ngstarter-ui-components-password-strength.d.ts +217 -102
  388. package/types/ngstarter-ui-components-pdf-builder.d.ts +717 -649
  389. package/types/ngstarter-ui-components-pdf-signer.d.ts +202 -142
  390. package/types/ngstarter-ui-components-pdf-viewer.d.ts +544 -385
  391. package/types/ngstarter-ui-components-phone-input.d.ts +175 -115
  392. package/types/ngstarter-ui-components-pin-input.d.ts +83 -45
  393. package/types/ngstarter-ui-components-popover.d.ts +128 -89
  394. package/types/ngstarter-ui-components-progress-bar.d.ts +49 -30
  395. package/types/ngstarter-ui-components-radio-card.d.ts +50 -34
  396. package/types/ngstarter-ui-components-radio.d.ts +100 -47
  397. package/types/ngstarter-ui-components-rail-nav.d.ts +36 -29
  398. package/types/ngstarter-ui-components-resizable-container.d.ts +30 -25
  399. package/types/ngstarter-ui-components-screen-loader.d.ts +38 -32
  400. package/types/ngstarter-ui-components-scroll-spy.d.ts +56 -60
  401. package/types/ngstarter-ui-components-scrollbar-area.d.ts +116 -86
  402. package/types/ngstarter-ui-components-segmented.d.ts +93 -61
  403. package/types/ngstarter-ui-components-select.d.ts +366 -266
  404. package/types/ngstarter-ui-components-side-panel.d.ts +59 -40
  405. package/types/ngstarter-ui-components-sidebar.d.ts +208 -154
  406. package/types/ngstarter-ui-components-sidenav.d.ts +136 -78
  407. package/types/ngstarter-ui-components-signature-pad.d.ts +165 -92
  408. package/types/ngstarter-ui-components-skeleton.d.ts +18 -17
  409. package/types/ngstarter-ui-components-slide-toggle.d.ts +113 -44
  410. package/types/ngstarter-ui-components-slider.d.ts +123 -82
  411. package/types/ngstarter-ui-components-snack-bar.d.ts +126 -134
  412. package/types/ngstarter-ui-components-sort.d.ts +99 -63
  413. package/types/ngstarter-ui-components-spinner.d.ts +49 -27
  414. package/types/ngstarter-ui-components-splash-screen.d.ts +34 -29
  415. package/types/ngstarter-ui-components-split.d.ts +276 -195
  416. package/types/ngstarter-ui-components-step-tracker.d.ts +102 -83
  417. package/types/ngstarter-ui-components-stepper.d.ts +57 -43
  418. package/types/ngstarter-ui-components-suggestions.d.ts +41 -28
  419. package/types/ngstarter-ui-components-tab-panel.d.ts +110 -83
  420. package/types/ngstarter-ui-components-table.d.ts +256 -228
  421. package/types/ngstarter-ui-components-tabs.d.ts +231 -138
  422. package/types/ngstarter-ui-components-thumbnail-maker.d.ts +40 -34
  423. package/types/ngstarter-ui-components-tiles.d.ts +166 -104
  424. package/types/ngstarter-ui-components-timeline.d.ts +45 -57
  425. package/types/ngstarter-ui-components-timepicker.d.ts +166 -111
  426. package/types/ngstarter-ui-components-timezone-select.d.ts +110 -70
  427. package/types/ngstarter-ui-components-toolbar.d.ts +89 -72
  428. package/types/ngstarter-ui-components-tooltip.d.ts +89 -52
  429. package/types/ngstarter-ui-components-tree-select.d.ts +182 -105
  430. package/types/ngstarter-ui-components-tree.d.ts +355 -229
  431. package/types/ngstarter-ui-components-upload.d.ts +216 -131
  432. package/types/ngstarter-ui-components-video-player.d.ts +130 -67
  433. package/types/ngstarter-ui-components-video-viewer.d.ts +140 -91
  434. package/types/ngstarter-ui-components-visual-builder.d.ts +5 -8
  435. package/types/ngstarter-ui-components-whiteboard.d.ts +412 -339
  436. package/types/ngstarter-ui-components.d.ts +2 -2
  437. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-8OmuepvH.mjs +0 -35
  438. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-8OmuepvH.mjs.map +0 -1
  439. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Dp5tISk3.mjs +0 -26
  440. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Dp5tISk3.mjs.map +0 -1
  441. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbBs-R_y.mjs +0 -220
  442. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbBs-R_y.mjs.map +0 -1
  443. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs +0 -99
  444. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs.map +0 -1
  445. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs +0 -40
  446. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs.map +0 -1
  447. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DGCCeU-Y.mjs +0 -375
  448. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DGCCeU-Y.mjs.map +0 -1
  449. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-BJfRgtaA.mjs +0 -80
  450. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-BJfRgtaA.mjs.map +0 -1
  451. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-C_L7hF2G.mjs +0 -65
  452. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-C_L7hF2G.mjs.map +0 -1
  453. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-durrPUhm.mjs +0 -137
  454. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-durrPUhm.mjs.map +0 -1
  455. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-BoL1jZpT.mjs +0 -113
  456. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-BoL1jZpT.mjs.map +0 -1
  457. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-ChZpgXO5.mjs +0 -235
  458. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-ChZpgXO5.mjs.map +0 -1
  459. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DwyNFnII.mjs +0 -117
  460. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DwyNFnII.mjs.map +0 -1
  461. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-BWpJv6CO.mjs +0 -4464
  462. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-BWpJv6CO.mjs.map +0 -1
  463. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-BvNvkqTO.mjs +0 -132
  464. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-BvNvkqTO.mjs.map +0 -1
  465. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-tgNKltfK.mjs +0 -171
  466. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-tgNKltfK.mjs.map +0 -1
  467. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-BcAlqmh8.mjs +0 -1653
  468. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-BcAlqmh8.mjs.map +0 -1
  469. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-S474I51r.mjs +0 -20
  470. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-S474I51r.mjs.map +0 -1
  471. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs +0 -19
  472. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs.map +0 -1
  473. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-Dj82fxTI.mjs +0 -134
  474. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-Dj82fxTI.mjs.map +0 -1
  475. package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs +0 -159
  476. package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs.map +0 -1
@@ -1,75 +1,124 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, Renderer2, ElementRef, ChangeDetectorRef, NgZone, DestroyRef, DOCUMENT, viewChild, input, numberAttribute, output, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { fromEvent, throttleTime } from 'rxjs';
4
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
-
6
- class ResizableContainer {
7
- _renderer = inject(Renderer2);
8
- _elementRef = inject(ElementRef);
9
- _cdr = inject(ChangeDetectorRef);
10
- _ngZone = inject(NgZone);
11
- _destroyRef = inject(DestroyRef);
12
- _document = inject(DOCUMENT);
13
- _resizing = false;
14
- _maxWidth;
15
- _clientX;
16
- _initialWidth;
17
- handlerRef = viewChild.required('handler', /* @ts-ignore */
18
- ...(ngDevMode ? [{ debugName: "handlerRef" }] : /* istanbul ignore next */ []));
19
- minWidth = input(0, { ...(ngDevMode ? { debugName: "minWidth" } : /* istanbul ignore next */ {}), transform: numberAttribute });
20
- resized = output();
21
- ngOnInit() {
22
- this._ngZone.runOutsideAngular(() => {
23
- fromEvent(this.handlerRef().nativeElement, 'mousedown')
24
- .pipe(takeUntilDestroyed(this._destroyRef))
25
- .subscribe((event) => {
26
- this._resizing = true;
27
- this._maxWidth = this._elementRef.nativeElement.parentElement.getBoundingClientRect().width;
28
- this._clientX = event.clientX;
29
- this._initialWidth = this._elementRef.nativeElement.getBoundingClientRect().width;
30
- // Prevent text selection during resize
31
- this._document.body.style.userSelect = 'none';
32
- this._document.body.style.cursor = 'ew-resize';
33
- this._cdr.detectChanges();
34
- });
35
- fromEvent(this._document, 'mousemove')
36
- .pipe(throttleTime(5), takeUntilDestroyed(this._destroyRef))
37
- .subscribe((event) => {
38
- if (this._resizing) {
39
- let width = this._initialWidth - (this._clientX - event.clientX);
40
- if (width <= this.minWidth()) {
41
- width = this.minWidth();
42
- }
43
- else if (width >= this._maxWidth) {
44
- width = this._maxWidth;
45
- }
46
- this._renderer.setStyle(this._elementRef.nativeElement, 'width', width + 'px');
47
- this.resized.emit({ width });
48
- }
49
- });
50
- fromEvent(this._document, 'mouseup')
51
- .pipe(takeUntilDestroyed(this._destroyRef))
52
- .subscribe(event => {
53
- this._resizing = false;
54
- this._document.body.style.userSelect = '';
55
- this._document.body.style.cursor = '';
56
- this._cdr.detectChanges();
57
- });
58
- });
59
- }
60
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ResizableContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
61
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", type: ResizableContainer, isStandalone: true, selector: "ngs-resizable-container", inputs: { minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { resized: "resized" }, host: { classAttribute: "ngs-resizable-container" }, viewQueries: [{ propertyName: "handlerRef", first: true, predicate: ["handler"], descendants: true, isSignal: true }], exportAs: ["ngsResizableContainer"], ngImport: i0, template: "<div class=\"content\">\n <ng-content/>\n</div>\n<button #handler class=\"handler\">\n <span class=\"handler-indicator\"></span>\n</button>\n", styles: [":host{position:relative;display:flex;align-items:stretch;overflow:hidden}:host .content{flex-grow:1;width:100%;height:100%;margin-inline-end:calc(var(--spacing, .25rem) * 4)}:host .handler{position:absolute;-webkit-user-select:none;user-select:none;top:0;bottom:0;inset-inline-end:0;cursor:ew-resize;align-items:center;display:flex;justify-content:center;width:calc(var(--spacing, .25rem) * 5)}:host .handler .handler-indicator{display:flex;height:calc(var(--spacing, .25rem) * 8);width:calc(var(--spacing, .25rem) * 1.5);border-radius:calc(infinity * 1px);background:var(--ngs-color-surface-container-highest)}:host .handler:hover .handler-indicator,:host .handler:active .handler-indicator{background:var(--ngs-color-secondary)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
62
- }
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ResizableContainer, decorators: [{
64
- type: Component,
65
- args: [{ selector: 'ngs-resizable-container', exportAs: 'ngsResizableContainer', changeDetection: ChangeDetectionStrategy.OnPush, host: {
66
- 'class': 'ngs-resizable-container'
67
- }, template: "<div class=\"content\">\n <ng-content/>\n</div>\n<button #handler class=\"handler\">\n <span class=\"handler-indicator\"></span>\n</button>\n", styles: [":host{position:relative;display:flex;align-items:stretch;overflow:hidden}:host .content{flex-grow:1;width:100%;height:100%;margin-inline-end:calc(var(--spacing, .25rem) * 4)}:host .handler{position:absolute;-webkit-user-select:none;user-select:none;top:0;bottom:0;inset-inline-end:0;cursor:ew-resize;align-items:center;display:flex;justify-content:center;width:calc(var(--spacing, .25rem) * 5)}:host .handler .handler-indicator{display:flex;height:calc(var(--spacing, .25rem) * 8);width:calc(var(--spacing, .25rem) * 1.5);border-radius:calc(infinity * 1px);background:var(--ngs-color-surface-container-highest)}:host .handler:hover .handler-indicator,:host .handler:active .handler-indicator{background:var(--ngs-color-secondary)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
68
- }], propDecorators: { handlerRef: [{ type: i0.ViewChild, args: ['handler', { isSignal: true }] }], minWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidth", required: false }] }], resized: [{ type: i0.Output, args: ["resized"] }] } });
69
-
70
- /**
71
- * Generated bundle index. Do not edit.
72
- */
73
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, DOCUMENT, DestroyRef, ElementRef, NgZone, Renderer2, inject, input, numberAttribute, output, viewChild } from "@angular/core";
3
+ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
4
+ import { fromEvent, throttleTime } from "rxjs";
5
+ var ResizableContainer = class ResizableContainer {
6
+ _renderer = inject(Renderer2);
7
+ _elementRef = inject(ElementRef);
8
+ _cdr = inject(ChangeDetectorRef);
9
+ _ngZone = inject(NgZone);
10
+ _destroyRef = inject(DestroyRef);
11
+ _document = inject(DOCUMENT);
12
+ _resizing = false;
13
+ _maxWidth;
14
+ _clientX;
15
+ _initialWidth;
16
+ handlerRef = viewChild.required("handler", ...ngDevMode ? [{ debugName: "handlerRef" }] : /* istanbul ignore next */ []);
17
+ minWidth = input(0, {
18
+ ...ngDevMode ? { debugName: "minWidth" } : /* istanbul ignore next */ {},
19
+ transform: numberAttribute
20
+ });
21
+ resized = output();
22
+ ngOnInit() {
23
+ this._ngZone.runOutsideAngular(() => {
24
+ fromEvent(this.handlerRef().nativeElement, "mousedown").pipe(takeUntilDestroyed(this._destroyRef)).subscribe((event) => {
25
+ this._resizing = true;
26
+ this._maxWidth = this._elementRef.nativeElement.parentElement.getBoundingClientRect().width;
27
+ this._clientX = event.clientX;
28
+ this._initialWidth = this._elementRef.nativeElement.getBoundingClientRect().width;
29
+ this._document.body.style.userSelect = "none";
30
+ this._document.body.style.cursor = "ew-resize";
31
+ this._cdr.detectChanges();
32
+ });
33
+ fromEvent(this._document, "mousemove").pipe(throttleTime(5), takeUntilDestroyed(this._destroyRef)).subscribe((event) => {
34
+ if (this._resizing) {
35
+ let width = this._initialWidth - (this._clientX - event.clientX);
36
+ if (width <= this.minWidth()) width = this.minWidth();
37
+ else if (width >= this._maxWidth) width = this._maxWidth;
38
+ this._renderer.setStyle(this._elementRef.nativeElement, "width", width + "px");
39
+ this.resized.emit({ width });
40
+ }
41
+ });
42
+ fromEvent(this._document, "mouseup").pipe(takeUntilDestroyed(this._destroyRef)).subscribe((event) => {
43
+ this._resizing = false;
44
+ this._document.body.style.userSelect = "";
45
+ this._document.body.style.cursor = "";
46
+ this._cdr.detectChanges();
47
+ });
48
+ });
49
+ }
50
+ static ɵfac = i0.ɵɵngDeclareFactory({
51
+ minVersion: "12.0.0",
52
+ version: "22.3.0",
53
+ ngImport: i0,
54
+ type: ResizableContainer,
55
+ deps: [],
56
+ target: i0.ɵɵFactoryTarget.Component
57
+ });
58
+ static ɵcmp = i0.ɵɵngDeclareComponent({
59
+ minVersion: "17.2.0",
60
+ version: "22.3.0",
61
+ type: ResizableContainer,
62
+ isStandalone: true,
63
+ selector: "ngs-resizable-container",
64
+ inputs: { minWidth: {
65
+ classPropertyName: "minWidth",
66
+ publicName: "minWidth",
67
+ isSignal: true,
68
+ isRequired: false,
69
+ transformFunction: null
70
+ } },
71
+ outputs: { resized: "resized" },
72
+ host: { classAttribute: "ngs-resizable-container" },
73
+ viewQueries: [{
74
+ propertyName: "handlerRef",
75
+ first: true,
76
+ predicate: ["handler"],
77
+ descendants: true,
78
+ isSignal: true
79
+ }],
80
+ exportAs: ["ngsResizableContainer"],
81
+ ngImport: i0,
82
+ template: "<div class=\"content\">\n <ng-content/>\n</div>\n<button #handler class=\"handler\">\n <span class=\"handler-indicator\"></span>\n</button>\n",
83
+ styles: [":host{position:relative;display:flex;align-items:stretch;overflow:hidden}:host .content{flex-grow:1;width:100%;height:100%;margin-inline-end:calc(var(--spacing, .25rem) * 4)}:host .handler{position:absolute;-webkit-user-select:none;user-select:none;top:0;bottom:0;inset-inline-end:0;cursor:ew-resize;align-items:center;display:flex;justify-content:center;width:calc(var(--spacing, .25rem) * 5)}:host .handler .handler-indicator{display:flex;height:calc(var(--spacing, .25rem) * 8);width:calc(var(--spacing, .25rem) * 1.5);border-radius:calc(infinity * 1px);background:var(--ngs-color-surface-container-highest)}:host .handler:hover .handler-indicator,:host .handler:active .handler-indicator{background:var(--ngs-color-secondary)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
84
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
85
+ });
86
+ };
87
+ i0.ɵɵngDeclareClassMetadata({
88
+ minVersion: "12.0.0",
89
+ version: "22.3.0",
90
+ ngImport: i0,
91
+ type: ResizableContainer,
92
+ decorators: [{
93
+ type: Component,
94
+ args: [{
95
+ selector: "ngs-resizable-container",
96
+ exportAs: "ngsResizableContainer",
97
+ changeDetection: ChangeDetectionStrategy.OnPush,
98
+ host: { "class": "ngs-resizable-container" },
99
+ template: "<div class=\"content\">\n <ng-content/>\n</div>\n<button #handler class=\"handler\">\n <span class=\"handler-indicator\"></span>\n</button>\n",
100
+ styles: [":host{position:relative;display:flex;align-items:stretch;overflow:hidden}:host .content{flex-grow:1;width:100%;height:100%;margin-inline-end:calc(var(--spacing, .25rem) * 4)}:host .handler{position:absolute;-webkit-user-select:none;user-select:none;top:0;bottom:0;inset-inline-end:0;cursor:ew-resize;align-items:center;display:flex;justify-content:center;width:calc(var(--spacing, .25rem) * 5)}:host .handler .handler-indicator{display:flex;height:calc(var(--spacing, .25rem) * 8);width:calc(var(--spacing, .25rem) * 1.5);border-radius:calc(infinity * 1px);background:var(--ngs-color-surface-container-highest)}:host .handler:hover .handler-indicator,:host .handler:active .handler-indicator{background:var(--ngs-color-secondary)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
101
+ }]
102
+ }],
103
+ propDecorators: {
104
+ handlerRef: [{
105
+ type: i0.ViewChild,
106
+ args: ["handler", { isSignal: true }]
107
+ }],
108
+ minWidth: [{
109
+ type: i0.Input,
110
+ args: [{
111
+ isSignal: true,
112
+ alias: "minWidth",
113
+ required: false
114
+ }]
115
+ }],
116
+ resized: [{
117
+ type: i0.Output,
118
+ args: ["resized"]
119
+ }]
120
+ }
121
+ });
74
122
  export { ResizableContainer };
75
- //# sourceMappingURL=ngstarter-ui-components-resizable-container.mjs.map
123
+
124
+ //# sourceMappingURL=ngstarter-ui-components-resizable-container.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngstarter-ui-components-resizable-container.mjs","sources":["../../../projects/components/resizable-container/src/resizable-container/resizable-container.ts","../../../projects/components/resizable-container/src/resizable-container/resizable-container.html","../../../projects/components/resizable-container/ngstarter-ui-components-resizable-container.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n DestroyRef,\n ElementRef,\n inject, input,\n NgZone,\n numberAttribute,\n OnInit,\n Renderer2,\n viewChild,\n DOCUMENT,\n output\n} from '@angular/core';\nimport { fromEvent, throttleTime } from 'rxjs';\n\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'ngs-resizable-container',\n exportAs: 'ngsResizableContainer',\n templateUrl: './resizable-container.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrl: './resizable-container.scss',\n host: {\n 'class': 'ngs-resizable-container'\n }\n})\nexport class ResizableContainer implements OnInit {\n private _renderer = inject(Renderer2);\n private _elementRef = inject(ElementRef);\n private _cdr = inject(ChangeDetectorRef);\n private _ngZone = inject(NgZone);\n private _destroyRef = inject(DestroyRef);\n private _document = inject(DOCUMENT);\n private _resizing = false;\n private _maxWidth: number;\n private _clientX: number;\n private _initialWidth: number;\n\n readonly handlerRef = viewChild.required<ElementRef>('handler');\n\n minWidth = input(0, {\n transform: numberAttribute\n });\n\n readonly resized = output<{ width: number }>();\n\n ngOnInit() {\n this._ngZone.runOutsideAngular(() => {\n fromEvent<MouseEvent>(this.handlerRef().nativeElement, 'mousedown')\n .pipe(takeUntilDestroyed(this._destroyRef))\n .subscribe((event: MouseEvent) => {\n this._resizing = true;\n this._maxWidth = this._elementRef.nativeElement.parentElement.getBoundingClientRect().width;\n this._clientX = event.clientX;\n this._initialWidth = this._elementRef.nativeElement.getBoundingClientRect().width;\n\n // Prevent text selection during resize\n this._document.body.style.userSelect = 'none';\n this._document.body.style.cursor = 'ew-resize';\n\n this._cdr.detectChanges();\n })\n ;\n fromEvent<MouseEvent>(this._document, 'mousemove')\n .pipe(\n throttleTime(5),\n takeUntilDestroyed(this._destroyRef)\n )\n .subscribe((event: MouseEvent) => {\n if (this._resizing) {\n let width = this._initialWidth - (this._clientX - event.clientX);\n\n if (width <= this.minWidth()) {\n width = this.minWidth();\n } else if (width >= this._maxWidth) {\n width = this._maxWidth;\n }\n\n this._renderer.setStyle(this._elementRef.nativeElement, 'width', width + 'px');\n this.resized.emit({ width });\n }\n })\n ;\n fromEvent(this._document, 'mouseup')\n .pipe(takeUntilDestroyed(this._destroyRef))\n .subscribe(event => {\n this._resizing = false;\n this._document.body.style.userSelect = '';\n this._document.body.style.cursor = '';\n this._cdr.detectChanges();\n })\n ;\n });\n }\n}\n","<div class=\"content\">\n <ng-content/>\n</div>\n<button #handler class=\"handler\">\n <span class=\"handler-indicator\"></span>\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MA6Ba,kBAAkB,CAAA;AACrB,IAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAC7B,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAChC,IAAA,IAAI,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAChC,IAAA,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;AACxB,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAChC,IAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;IAC5B,SAAS,GAAG,KAAK;AACjB,IAAA,SAAS;AACT,IAAA,QAAQ;AACR,IAAA,aAAa;AAEZ,IAAA,UAAU,GAAG,SAAS,CAAC,QAAQ,CAAa,SAAS;mFAAC;IAE/D,QAAQ,GAAG,KAAK,CAAC,CAAC,gFAChB,SAAS,EAAE,eAAe,EAAA,CAC1B;IAEO,OAAO,GAAG,MAAM,EAAqB;IAE9C,QAAQ,GAAA;AACN,QAAA,I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,uBAAuB,EAAA,eAAA,EAEhB,uBAAuB,CAAC,MAAM,EAAA,IAAA,EAEzC;AACJ,wBAAA,OAAO,EAAE;AACV,qBAAA,EAAA,QAAA,EAAA,iJAAA,EAAA,MAAA,EAAA,CAAA,iyBAAA,CAAA,EAAA;wEAcoD,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEzChE;;AAEG;;;;"}
1
+ {"version":3,"file":"ngstarter-ui-components-resizable-container.mjs","names":[],"sources":["../../../projects/components/resizable-container/src/resizable-container/resizable-container.ts","../../../projects/components/resizable-container/src/resizable-container/resizable-container.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n DestroyRef,\n ElementRef,\n inject, input,\n NgZone,\n numberAttribute,\n OnInit,\n Renderer2,\n viewChild,\n DOCUMENT,\n output\n} from '@angular/core';\nimport { fromEvent, throttleTime } from 'rxjs';\n\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'ngs-resizable-container',\n exportAs: 'ngsResizableContainer',\n templateUrl: './resizable-container.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrl: './resizable-container.scss',\n host: {\n 'class': 'ngs-resizable-container'\n }\n})\nexport class ResizableContainer implements OnInit {\n private _renderer = inject(Renderer2);\n private _elementRef = inject(ElementRef);\n private _cdr = inject(ChangeDetectorRef);\n private _ngZone = inject(NgZone);\n private _destroyRef = inject(DestroyRef);\n private _document = inject(DOCUMENT);\n private _resizing = false;\n private _maxWidth: number;\n private _clientX: number;\n private _initialWidth: number;\n\n readonly handlerRef = viewChild.required<ElementRef>('handler');\n\n minWidth = input(0, {\n transform: numberAttribute\n });\n\n readonly resized = output<{ width: number }>();\n\n ngOnInit() {\n this._ngZone.runOutsideAngular(() => {\n fromEvent<MouseEvent>(this.handlerRef().nativeElement, 'mousedown')\n .pipe(takeUntilDestroyed(this._destroyRef))\n .subscribe((event: MouseEvent) => {\n this._resizing = true;\n this._maxWidth = this._elementRef.nativeElement.parentElement.getBoundingClientRect().width;\n this._clientX = event.clientX;\n this._initialWidth = this._elementRef.nativeElement.getBoundingClientRect().width;\n\n // Prevent text selection during resize\n this._document.body.style.userSelect = 'none';\n this._document.body.style.cursor = 'ew-resize';\n\n this._cdr.detectChanges();\n })\n ;\n fromEvent<MouseEvent>(this._document, 'mousemove')\n .pipe(\n throttleTime(5),\n takeUntilDestroyed(this._destroyRef)\n )\n .subscribe((event: MouseEvent) => {\n if (this._resizing) {\n let width = this._initialWidth - (this._clientX - event.clientX);\n\n if (width <= this.minWidth()) {\n width = this.minWidth();\n } else if (width >= this._maxWidth) {\n width = this._maxWidth;\n }\n\n this._renderer.setStyle(this._elementRef.nativeElement, 'width', width + 'px');\n this.resized.emit({ width });\n }\n })\n ;\n fromEvent(this._document, 'mouseup')\n .pipe(takeUntilDestroyed(this._destroyRef))\n .subscribe(event => {\n this._resizing = false;\n this._document.body.style.userSelect = '';\n this._document.body.style.cursor = '';\n this._cdr.detectChanges();\n })\n ;\n });\n }\n}\n","<div class=\"content\">\n <ng-content/>\n</div>\n<button #handler class=\"handler\">\n <span class=\"handler-indicator\"></span>\n</button>\n"],"mappings":";;;;AA6BA,IAAa,qBAAb,MAAa,mBAAkB;CACrB,YAAY,OAAO,SAAS;CAC5B,cAAc,OAAO,UAAU;CAC/B,OAAO,OAAO,iBAAiB;CAC/B,UAAU,OAAO,MAAM;CACvB,cAAc,OAAO,UAAU;CAC/B,YAA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,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -1,96 +1,198 @@
1
- import * as i0 from '@angular/core';
2
- import { input, booleanAttribute, TemplateRef, ChangeDetectionStrategy, Component, Injectable } from '@angular/core';
3
- import { ProgressBar } from '@ngstarter-ui/components/progress-bar';
4
- import { NgTemplateOutlet } from '@angular/common';
5
- import * as i1 from '@angular/cdk/overlay';
6
- import { OverlayConfig } from '@angular/cdk/overlay';
7
- import { ComponentPortal } from '@angular/cdk/portal';
8
- import { Subject } from 'rxjs';
9
-
10
- class ScreenLoader {
11
- opened = input(false, { ...(ngDevMode ? { debugName: "opened" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
12
- message = input(null, /* @ts-ignore */
13
- ...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
14
- isTemplateRef(value) {
15
- return value instanceof TemplateRef;
16
- }
17
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ScreenLoader, deps: [], target: i0.ɵɵFactoryTarget.Component });
18
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: ScreenLoader, isStandalone: true, selector: "ngs-screen-loader", inputs: { opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.is-opened": "opened()" }, classAttribute: "ngs-screen-loader not-prose" }, exportAs: ["ngsScreenLoader"], ngImport: i0, template: "<div class=\"message\">\n @if (message(); as msg) {\n @if (isTemplateRef(msg)) {\n <ng-container *ngTemplateOutlet=\"msg\" />\n } @else {\n {{ msg }}\n }\n } @else {\n <ng-content/>\n }\n</div>\n<div class=\"progress-bar\">\n <ngs-progress-bar mode=\"indeterminate\"/>\n</div>\n", styles: [":host{--ngs-screen-loader-bg: var(--ngs-color-background);opacity:0;position:fixed;inset:0;z-index:-9999;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--ngs-screen-loader-bg)}:host.is-opened{z-index:9999;opacity:1}:host .message{max-width:600px;line-height:var(--leading-snug);text-align:center}:host .progress-bar{width:calc(var(--spacing, .25rem) * 64);margin-top:calc(var(--spacing, .25rem) * 5)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: ProgressBar, selector: "ngs-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["ngsProgressBar"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
19
- }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ScreenLoader, decorators: [{
21
- type: Component,
22
- args: [{ selector: 'ngs-screen-loader', exportAs: 'ngsScreenLoader', imports: [
23
- ProgressBar,
24
- NgTemplateOutlet
25
- ], changeDetection: ChangeDetectionStrategy.Eager, host: {
26
- 'class': 'ngs-screen-loader not-prose',
27
- '[class.is-opened]': 'opened()'
28
- }, template: "<div class=\"message\">\n @if (message(); as msg) {\n @if (isTemplateRef(msg)) {\n <ng-container *ngTemplateOutlet=\"msg\" />\n } @else {\n {{ msg }}\n }\n } @else {\n <ng-content/>\n }\n</div>\n<div class=\"progress-bar\">\n <ngs-progress-bar mode=\"indeterminate\"/>\n</div>\n", styles: [":host{--ngs-screen-loader-bg: var(--ngs-color-background);opacity:0;position:fixed;inset:0;z-index:-9999;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--ngs-screen-loader-bg)}:host.is-opened{z-index:9999;opacity:1}:host .message{max-width:600px;line-height:var(--leading-snug);text-align:center}:host .progress-bar{width:calc(var(--spacing, .25rem) * 64);margin-top:calc(var(--spacing, .25rem) * 5)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
29
- }], propDecorators: { opened: [{ type: i0.Input, args: [{ isSignal: true, alias: "opened", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }] } });
30
-
31
- class ScreenLoaderRef {
32
- overlayRef;
33
- _afterOpened = new Subject();
34
- _afterClosed = new Subject();
35
- constructor(overlayRef) {
36
- this.overlayRef = overlayRef;
37
- this.overlayRef.detachments().subscribe(() => {
38
- this._afterClosed.next();
39
- this._afterClosed.complete();
40
- });
41
- }
42
- close() {
43
- this.overlayRef.dispose();
44
- }
45
- afterOpened() {
46
- return this._afterOpened.asObservable();
47
- }
48
- afterClosed() {
49
- return this._afterClosed.asObservable();
50
- }
51
- _notifyOpened() {
52
- this._afterOpened.next();
53
- this._afterOpened.complete();
54
- }
55
- }
56
-
57
- class ScreenLoaderService {
58
- overlay;
59
- injector;
60
- constructor(overlay, injector) {
61
- this.overlay = overlay;
62
- this.injector = injector;
63
- }
64
- open(message) {
65
- const overlayConfig = new OverlayConfig({
66
- hasBackdrop: true,
67
- scrollStrategy: this.overlay.scrollStrategies.block(),
68
- positionStrategy: this.overlay.position().global(),
69
- width: '100%',
70
- height: '100%'
71
- });
72
- const overlayRef = this.overlay.create(overlayConfig);
73
- const screenLoaderRef = new ScreenLoaderRef(overlayRef);
74
- const componentPortal = new ComponentPortal(ScreenLoader, null, this.injector);
75
- const componentRef = overlayRef.attach(componentPortal);
76
- componentRef.setInput('opened', true);
77
- componentRef.setInput('message', message);
78
- screenLoaderRef._notifyOpened();
79
- return screenLoaderRef;
80
- }
81
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ScreenLoaderService, deps: [{ token: i1.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
82
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ScreenLoaderService, providedIn: 'root' });
83
- }
84
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ScreenLoaderService, decorators: [{
85
- type: Injectable,
86
- args: [{
87
- providedIn: 'root'
88
- }]
89
- }], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }] });
90
-
91
- /**
92
- * Generated bundle index. Do not edit.
93
- */
94
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Injectable, TemplateRef, booleanAttribute, input } from "@angular/core";
3
+ import { NgTemplateOutlet } from "@angular/common";
4
+ import * as i1 from "@angular/cdk/overlay";
5
+ import { OverlayConfig } from "@angular/cdk/overlay";
6
+ import { ComponentPortal } from "@angular/cdk/portal";
7
+ import { Subject } from "rxjs";
8
+ import { ProgressBar } from "@ngstarter-ui/components/progress-bar";
9
+ var ScreenLoader = class ScreenLoader {
10
+ opened = input(false, {
11
+ ...ngDevMode ? { debugName: "opened" } : /* istanbul ignore next */ {},
12
+ transform: booleanAttribute
13
+ });
14
+ message = input(null, ...ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []);
15
+ isTemplateRef(value) {
16
+ return value instanceof TemplateRef;
17
+ }
18
+ static ɵfac = i0.ɵɵngDeclareFactory({
19
+ minVersion: "12.0.0",
20
+ version: "22.3.0",
21
+ ngImport: i0,
22
+ type: ScreenLoader,
23
+ deps: [],
24
+ target: i0.ɵɵFactoryTarget.Component
25
+ });
26
+ static ɵcmp = i0.ɵɵngDeclareComponent({
27
+ minVersion: "17.0.0",
28
+ version: "22.3.0",
29
+ type: ScreenLoader,
30
+ isStandalone: true,
31
+ selector: "ngs-screen-loader",
32
+ inputs: {
33
+ opened: {
34
+ classPropertyName: "opened",
35
+ publicName: "opened",
36
+ isSignal: true,
37
+ isRequired: false,
38
+ transformFunction: null
39
+ },
40
+ message: {
41
+ classPropertyName: "message",
42
+ publicName: "message",
43
+ isSignal: true,
44
+ isRequired: false,
45
+ transformFunction: null
46
+ }
47
+ },
48
+ host: {
49
+ properties: { "class.is-opened": "opened()" },
50
+ classAttribute: "ngs-screen-loader not-prose"
51
+ },
52
+ exportAs: ["ngsScreenLoader"],
53
+ ngImport: i0,
54
+ template: "<div class=\"message\">\n @if (message(); as msg) {\n @if (isTemplateRef(msg)) {\n <ng-container *ngTemplateOutlet=\"msg\" />\n } @else {\n {{ msg }}\n }\n } @else {\n <ng-content/>\n }\n</div>\n<div class=\"progress-bar\">\n <ngs-progress-bar mode=\"indeterminate\"/>\n</div>\n",
55
+ styles: [":host{--ngs-screen-loader-bg: var(--ngs-color-background);opacity:0;position:fixed;inset:0;z-index:-9999;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--ngs-screen-loader-bg)}:host.is-opened{z-index:9999;opacity:1}:host .message{max-width:600px;line-height:var(--leading-snug);text-align:center}:host .progress-bar{width:calc(var(--spacing, .25rem) * 64);margin-top:calc(var(--spacing, .25rem) * 5)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
56
+ dependencies: [{
57
+ kind: "component",
58
+ type: ProgressBar,
59
+ selector: "ngs-progress-bar",
60
+ inputs: [
61
+ "color",
62
+ "value",
63
+ "bufferValue",
64
+ "mode"
65
+ ],
66
+ outputs: ["animationEnd"],
67
+ exportAs: ["ngsProgressBar"]
68
+ }, {
69
+ kind: "directive",
70
+ type: NgTemplateOutlet,
71
+ selector: "[ngTemplateOutlet]",
72
+ inputs: [
73
+ "ngTemplateOutletContext",
74
+ "ngTemplateOutlet",
75
+ "ngTemplateOutletInjector"
76
+ ]
77
+ }],
78
+ changeDetection: i0.ChangeDetectionStrategy.Eager
79
+ });
80
+ };
81
+ i0.ɵɵngDeclareClassMetadata({
82
+ minVersion: "12.0.0",
83
+ version: "22.3.0",
84
+ ngImport: i0,
85
+ type: ScreenLoader,
86
+ decorators: [{
87
+ type: Component,
88
+ args: [{
89
+ selector: "ngs-screen-loader",
90
+ exportAs: "ngsScreenLoader",
91
+ imports: [ProgressBar, NgTemplateOutlet],
92
+ changeDetection: ChangeDetectionStrategy.Eager,
93
+ host: {
94
+ "class": "ngs-screen-loader not-prose",
95
+ "[class.is-opened]": "opened()"
96
+ },
97
+ template: "<div class=\"message\">\n @if (message(); as msg) {\n @if (isTemplateRef(msg)) {\n <ng-container *ngTemplateOutlet=\"msg\" />\n } @else {\n {{ msg }}\n }\n } @else {\n <ng-content/>\n }\n</div>\n<div class=\"progress-bar\">\n <ngs-progress-bar mode=\"indeterminate\"/>\n</div>\n",
98
+ styles: [":host{--ngs-screen-loader-bg: var(--ngs-color-background);opacity:0;position:fixed;inset:0;z-index:-9999;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--ngs-screen-loader-bg)}:host.is-opened{z-index:9999;opacity:1}:host .message{max-width:600px;line-height:var(--leading-snug);text-align:center}:host .progress-bar{width:calc(var(--spacing, .25rem) * 64);margin-top:calc(var(--spacing, .25rem) * 5)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
99
+ }]
100
+ }],
101
+ propDecorators: {
102
+ opened: [{
103
+ type: i0.Input,
104
+ args: [{
105
+ isSignal: true,
106
+ alias: "opened",
107
+ required: false
108
+ }]
109
+ }],
110
+ message: [{
111
+ type: i0.Input,
112
+ args: [{
113
+ isSignal: true,
114
+ alias: "message",
115
+ required: false
116
+ }]
117
+ }]
118
+ }
119
+ });
120
+ var ScreenLoaderRef = class {
121
+ overlayRef;
122
+ _afterOpened = new Subject();
123
+ _afterClosed = new Subject();
124
+ constructor(overlayRef) {
125
+ this.overlayRef = overlayRef;
126
+ this.overlayRef.detachments().subscribe(() => {
127
+ this._afterClosed.next();
128
+ this._afterClosed.complete();
129
+ });
130
+ }
131
+ close() {
132
+ this.overlayRef.dispose();
133
+ }
134
+ afterOpened() {
135
+ return this._afterOpened.asObservable();
136
+ }
137
+ afterClosed() {
138
+ return this._afterClosed.asObservable();
139
+ }
140
+ _notifyOpened() {
141
+ this._afterOpened.next();
142
+ this._afterOpened.complete();
143
+ }
144
+ };
145
+ var ScreenLoaderService = class ScreenLoaderService {
146
+ overlay;
147
+ injector;
148
+ constructor(overlay, injector) {
149
+ this.overlay = overlay;
150
+ this.injector = injector;
151
+ }
152
+ open(message) {
153
+ const overlayConfig = new OverlayConfig({
154
+ hasBackdrop: true,
155
+ scrollStrategy: this.overlay.scrollStrategies.block(),
156
+ positionStrategy: this.overlay.position().global(),
157
+ width: "100%",
158
+ height: "100%"
159
+ });
160
+ const overlayRef = this.overlay.create(overlayConfig);
161
+ const screenLoaderRef = new ScreenLoaderRef(overlayRef);
162
+ const componentPortal = new ComponentPortal(ScreenLoader, null, this.injector);
163
+ const componentRef = overlayRef.attach(componentPortal);
164
+ componentRef.setInput("opened", true);
165
+ componentRef.setInput("message", message);
166
+ screenLoaderRef._notifyOpened();
167
+ return screenLoaderRef;
168
+ }
169
+ static ɵfac = i0.ɵɵngDeclareFactory({
170
+ minVersion: "12.0.0",
171
+ version: "22.3.0",
172
+ ngImport: i0,
173
+ type: ScreenLoaderService,
174
+ deps: [{ token: i1.Overlay }, { token: i0.Injector }],
175
+ target: i0.ɵɵFactoryTarget.Injectable
176
+ });
177
+ static ɵprov = i0.ɵɵngDeclareInjectable({
178
+ minVersion: "12.0.0",
179
+ version: "22.3.0",
180
+ ngImport: i0,
181
+ type: ScreenLoaderService,
182
+ providedIn: "root"
183
+ });
184
+ };
185
+ i0.ɵɵngDeclareClassMetadata({
186
+ minVersion: "12.0.0",
187
+ version: "22.3.0",
188
+ ngImport: i0,
189
+ type: ScreenLoaderService,
190
+ decorators: [{
191
+ type: Injectable,
192
+ args: [{ providedIn: "root" }]
193
+ }],
194
+ ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }]
195
+ });
95
196
  export { ScreenLoader, ScreenLoaderRef, ScreenLoaderService };
96
- //# sourceMappingURL=ngstarter-ui-components-screen-loader.mjs.map
197
+
198
+ //# sourceMappingURL=ngstarter-ui-components-screen-loader.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngstarter-ui-components-screen-loader.mjs","sources":["../../../projects/components/screen-loader/src/screen-loader/screen-loader.ts","../../../projects/components/screen-loader/src/screen-loader/screen-loader.html","../../../projects/components/screen-loader/src/screen-loader/screen-loader-ref.ts","../../../projects/components/screen-loader/src/screen-loader/screen-loader.service.ts","../../../projects/components/screen-loader/ngstarter-ui-components-screen-loader.ts"],"sourcesContent":["import { booleanAttribute, Component, input, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\nimport { ProgressBar } from '@ngstarter-ui/components/progress-bar';\nimport { NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'ngs-screen-loader',\n exportAs: 'ngsScreenLoader',\n imports: [\n ProgressBar,\n NgTemplateOutlet\n ],\n templateUrl: './screen-loader.html',\n styleUrl: './screen-loader.scss',\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n 'class': 'ngs-screen-loader not-prose',\n '[class.is-opened]': 'opened()'\n }\n})\nexport class ScreenLoader {\n opened = input(false, {\n transform: booleanAttribute\n });\n\n message = input<string | TemplateRef<any> | null>(null);\n\n protected isTemplateRef(value: any): value is TemplateRef<any> {\n return value instanceof TemplateRef;\n }\n}\n","<div class=\"message\">\n @if (message(); as msg) {\n @if (isTemplateRef(msg)) {\n <ng-container *ngTemplateOutlet=\"msg\" />\n } @else {\n {{ msg }}\n }\n } @else {\n <ng-content/>\n }\n</div>\n<div class=\"progress-bar\">\n <ngs-progress-bar mode=\"indeterminate\"/>\n</div>\n","import { OverlayRef } from '@angular/cdk/overlay';\nimport { Observable, Subject } from 'rxjs';\n\nexport class ScreenLoaderRef {\n private readonly _afterOpened = new Subject<void>();\n private readonly _afterClosed = new Subject<void>();\n\n constructor(private overlayRef: OverlayRef) {\n this.overlayRef.detachments().subscribe(() => {\n this._afterClosed.next();\n this._afterClosed.complete();\n });\n }\n\n close(): void {\n this.overlayRef.dispose();\n }\n\n afterOpened(): Observable<void> {\n return this._afterOpened.asObservable();\n }\n\n afterClosed(): Observable<void> {\n return this._afterClosed.asObservable();\n }\n\n _notifyOpened() {\n this._afterOpened.next();\n this._afterOpened.complete();\n }\n}\n","import { ComponentRef, Injectable, Injector, TemplateRef } from '@angular/core';\nimport { Overlay, OverlayConfig } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ScreenLoader } from './screen-loader';\nimport { ScreenLoaderRef } from './screen-loader-ref';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ScreenLoaderService {\n constructor(\n private overlay: Overlay,\n private injector: Injector\n ) {}\n\n open(message: string | TemplateRef<any>): ScreenLoaderRef {\n const overlayConfig = new OverlayConfig({\n hasBackdrop: true,\n scrollStrategy: this.overlay.scrollStrategies.block(),\n positionStrategy: this.overlay.position().global(),\n width: '100%',\n height: '100%'\n });\n\n const overlayRef = this.overlay.create(overlayConfig);\n const screenLoaderRef = new ScreenLoaderRef(overlayRef);\n\n const componentPortal = new ComponentPortal(ScreenLoader, null, this.injector);\n const componentRef: ComponentRef<ScreenLoader> = overlayRef.attach(componentPortal);\n\n componentRef.setInput('opened', true);\n componentRef.setInput('message', message);\n\n screenLoaderRef._notifyOpened();\n\n return screenLoaderRef;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAmBa,YAAY,CAAA;IACvB,MAAM,GAAG,KAAK,CAAC,KAAK,8EAClB,SAAS,EAAE,gBAAgB,EAAA,CAC3B;IAEF,OAAO,GAAG,KAAK,CAAmC,IAAI;gFAAC;AAE7C,IAAA,aAAa,CAAC,KAAU,EAAA;QAChC,OAAO,KAAK,YAAY,WAAW;IACrC;uGATW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAZ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAY,EA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IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC;AACrD,QAAA,MAAM,eAAe,GAAG,IAAI,eAAe,CAAC,UAAU,CAAC;AAEvD,QAAA,MAAM,eAAe,GAAG,IAAI,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC;QAC9E,MAAM,YAAY,GAA+B,UAAU,CAAC,MAAM,CAAC,eAAe,CAAC;AAEnF,QAAA,YAAY,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;AACrC,QAAA,YAAY,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;QAEzC,eAAe,CAAC,aAAa,EAAE;AAE/B,QAAA,OAAO,eAAe;IACxB;uGA3BW,mBAAmB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,OAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,QAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,cAFlB,MAAM,EAAA,CAAA;;2FAEP,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAH/B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACRD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngstarter-ui-components-screen-loader.mjs","names":[],"sources":["../../../projects/components/screen-loader/src/screen-loader/screen-loader.ts","../../../projects/components/screen-loader/src/screen-loader/screen-loader.html","../../../projects/components/screen-loader/src/screen-loader/screen-loader-ref.ts","../../../projects/components/screen-loader/src/screen-loader/screen-loader.service.ts"],"sourcesContent":["import { booleanAttribute, Component, input, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\nimport { ProgressBar } from '@ngstarter-ui/components/progress-bar';\nimport { NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'ngs-screen-loader',\n exportAs: 'ngsScreenLoader',\n imports: [\n ProgressBar,\n NgTemplateOutlet\n ],\n templateUrl: './screen-loader.html',\n styleUrl: './screen-loader.scss',\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n 'class': 'ngs-screen-loader not-prose',\n '[class.is-opened]': 'opened()'\n }\n})\nexport class ScreenLoader {\n opened = input(false, {\n transform: booleanAttribute\n });\n\n message = input<string | TemplateRef<any> | null>(null);\n\n protected isTemplateRef(value: any): value is TemplateRef<any> {\n return value instanceof TemplateRef;\n }\n}\n","<div class=\"message\">\n @if (message(); as msg) {\n @if (isTemplateRef(msg)) {\n <ng-container *ngTemplateOutlet=\"msg\" />\n } @else {\n {{ msg }}\n }\n } @else {\n <ng-content/>\n }\n</div>\n<div class=\"progress-bar\">\n <ngs-progress-bar mode=\"indeterminate\"/>\n</div>\n","import { OverlayRef } from '@angular/cdk/overlay';\nimport { Observable, Subject } from 'rxjs';\n\nexport class ScreenLoaderRef {\n private readonly _afterOpened = new Subject<void>();\n private readonly _afterClosed = new Subject<void>();\n\n constructor(private overlayRef: OverlayRef) {\n this.overlayRef.detachments().subscribe(() => {\n this._afterClosed.next();\n this._afterClosed.complete();\n });\n }\n\n close(): void {\n this.overlayRef.dispose();\n }\n\n afterOpened(): Observable<void> {\n return this._afterOpened.asObservable();\n }\n\n afterClosed(): Observable<void> {\n return this._afterClosed.asObservable();\n }\n\n _notifyOpened() {\n this._afterOpened.next();\n this._afterOpened.complete();\n }\n}\n","import { ComponentRef, Injectable, Injector, TemplateRef } from '@angular/core';\nimport { Overlay, OverlayConfig } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ScreenLoader } from './screen-loader';\nimport { ScreenLoaderRef } from './screen-loader-ref';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ScreenLoaderService {\n constructor(\n private overlay: Overlay,\n private injector: Injector\n ) {}\n\n open(message: string | TemplateRef<any>): ScreenLoaderRef {\n const overlayConfig = new OverlayConfig({\n hasBackdrop: true,\n scrollStrategy: this.overlay.scrollStrategies.block(),\n positionStrategy: this.overlay.position().global(),\n width: '100%',\n height: '100%'\n });\n\n const overlayRef = this.overlay.create(overlayConfig);\n const screenLoaderRef = new ScreenLoaderRef(overlayRef);\n\n const componentPortal = new ComponentPortal(ScreenLoader, null, this.injector);\n const componentRef: ComponentRef<ScreenLoader> = overlayRef.attach(componentPortal);\n\n componentRef.setInput('opened', true);\n componentRef.setInput('message', message);\n\n screenLoaderRef._notifyOpened();\n\n return screenLoaderRef;\n }\n}\n"],"mappings":";;;;;;;;AAmBA,IAAa,eAAb,MAAa,aAAY;CACvB,SAAS,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,SAAA,+BAAA,CAAA;EAClB,WAAW;CAAgB,CAAA;CAG7B,UAAU,MAAwC,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAE7C,cAAc,OAAU;EAChC,OAAO,iBAAiB;CAC1B;CATW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAY,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAZ,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAY,cAAA;EAAA,UAAA;EAAA,QAAA;GAAA,QAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,SAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,MAAA;GAAA,YAAA,EAAA,mBAAA,WAAA;GAAA,gBAAA;EAAA;EAAA,UAAA,CAAA,iBAAA;EA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