@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,221 +1,423 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, input, booleanAttribute, ChangeDetectionStrategy, Component, ElementRef, Renderer2, ChangeDetectorRef, DestroyRef, contentChildren, forwardRef, output, effect, Directive } from '@angular/core';
3
- import { toObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
5
- import { SelectionModel } from '@angular/cdk/collections';
6
- import { coerceBooleanProperty } from '@angular/cdk/coercion';
7
- import * as i1 from '@ngstarter-ui/components/core';
8
- import { Ripple } from '@ngstarter-ui/components/core';
9
-
10
- const SEGMENTED = new InjectionToken('SEGMENTED');
11
-
12
- class SegmentedButton {
13
- _segmented = inject(SEGMENTED, { skipSelf: true });
14
- value = input.required(/* @ts-ignore */
15
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
16
- disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
17
- iconOnly = input(false, { ...(ngDevMode ? { debugName: "iconOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
18
- get _isSelected() {
19
- return this._segmented.api.isSelected(this.value());
20
- }
21
- get api() {
22
- return {
23
- isSelected: () => this._isSelected
24
- };
25
- }
26
- _handleClick() {
27
- this._segmented.api.select(this.value());
28
- }
29
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SegmentedButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
30
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SegmentedButton, isStandalone: true, selector: "ngs-segmented-button,[ngs-segmented-button]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "_handleClick()" }, properties: { "class.icon-only": "iconOnly()", "class.is-selected": "_isSelected", "class.is-disabled": "disabled() || null" }, classAttribute: "ngs-segmented-button" }, exportAs: ["ngsSegmentedButton"], hostDirectives: [{ directive: i1.Ripple }], ngImport: i0, template: "<div class=\"icon\">\n <ng-content select=\"[ngsSegmentedIcon]\"/>\n</div>\n<div class=\"content\">\n <ng-content/>\n</div>\n", styles: [":host{display:flex;align-items:center;cursor:pointer;justify-content:center;color:var(--ngs-segmented-button-color);font-size:var(--ngs-segmented-button-font-size);min-width:var(--ngs-segmented-button-min-width);border-radius:var(--ngs-segmented-button-radius);gap:var(--ngs-segmented-button-gap);flex:none;padding:var(--ngs-segmented-button-padding);height:var(--ngs-segmented-button-height);position:relative;z-index:1}:host.icon-only{--ngs-segmented-button-min-width: 0;--ngs-segmented-button-icon-offset-margin: 0;width:var(--ngs-segmented-button-height);gap:0;padding:0}:host.icon-only .content{display:none}:host .icon{line-height:0;display:flex;align-items:center;justify-content:center;margin-inline-start:var(--ngs-segmented-button-icon-offset-margin)}:host .icon:empty{display:none}:host:hover{background:var(--ngs-segmented-button-hover-bg);color:var(--ngs-segmented-button-hover-color);text-decoration-line:none}:host.is-selected{pointer-events:none;color:var(--ngs-segmented-button-selected-color)}:host:disabled,:host.is-disabled{pointer-events:none;opacity:65%}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
31
- }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SegmentedButton, decorators: [{
33
- type: Component,
34
- args: [{ selector: 'ngs-segmented-button,[ngs-segmented-button]', exportAs: 'ngsSegmentedButton', hostDirectives: [
35
- Ripple
36
- ], changeDetection: ChangeDetectionStrategy.Eager, host: {
37
- 'class': 'ngs-segmented-button',
38
- '[class.icon-only]': 'iconOnly()',
39
- '[class.is-selected]': '_isSelected',
40
- '[class.is-disabled]': 'disabled() || null',
41
- '(click)': '_handleClick()',
42
- }, template: "<div class=\"icon\">\n <ng-content select=\"[ngsSegmentedIcon]\"/>\n</div>\n<div class=\"content\">\n <ng-content/>\n</div>\n", styles: [":host{display:flex;align-items:center;cursor:pointer;justify-content:center;color:var(--ngs-segmented-button-color);font-size:var(--ngs-segmented-button-font-size);min-width:var(--ngs-segmented-button-min-width);border-radius:var(--ngs-segmented-button-radius);gap:var(--ngs-segmented-button-gap);flex:none;padding:var(--ngs-segmented-button-padding);height:var(--ngs-segmented-button-height);position:relative;z-index:1}:host.icon-only{--ngs-segmented-button-min-width: 0;--ngs-segmented-button-icon-offset-margin: 0;width:var(--ngs-segmented-button-height);gap:0;padding:0}:host.icon-only .content{display:none}:host .icon{line-height:0;display:flex;align-items:center;justify-content:center;margin-inline-start:var(--ngs-segmented-button-icon-offset-margin)}:host .icon:empty{display:none}:host:hover{background:var(--ngs-segmented-button-hover-bg);color:var(--ngs-segmented-button-hover-color);text-decoration-line:none}:host.is-selected{pointer-events:none;color:var(--ngs-segmented-button-selected-color)}:host:disabled,:host.is-disabled{pointer-events:none;opacity:65%}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
43
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }] } });
44
-
45
- class Segmented {
46
- _elementRef = inject(ElementRef);
47
- _renderer = inject(Renderer2);
48
- _cdr = inject(ChangeDetectorRef);
49
- _destroyRef = inject(DestroyRef);
50
- _isDestroyed = false;
51
- _disabled = false;
52
- _buttons = contentChildren(forwardRef(() => SegmentedButton), { ...(ngDevMode ? { debugName: "_buttons" } : /* istanbul ignore next */ {}), descendants: true });
53
- _buttonElements = contentChildren(forwardRef(() => SegmentedButton), { ...(ngDevMode ? { debugName: "_buttonElements" } : /* istanbul ignore next */ {}), read: ElementRef, descendants: true });
54
- _thumbWidth = 0;
55
- _thumbLeft = 0;
56
- _thumbOpacity = 0;
57
- value = input(/* @ts-ignore */
58
- ...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
59
- disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
60
- size = input('default', /* @ts-ignore */
61
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
62
- valueChange = output();
63
- _selectedValue = new SelectionModel(false, []);
64
- _onChange = () => { };
65
- _onTouched = () => { };
66
- get api() {
67
- return {
68
- isSelected: (value) => this._selectedValue.isSelected(value),
69
- select: (value) => this._select(value)
70
- };
71
- }
72
- constructor() {
73
- this._destroyRef.onDestroy(() => {
74
- this._isDestroyed = true;
75
- });
76
- effect(() => {
77
- const value = this.value();
78
- if (value !== undefined) {
79
- if (value !== null) {
80
- this._selectedValue.setSelection(value);
81
- }
82
- else {
83
- this._selectedValue.clear();
84
- }
85
- this._updateThumb();
86
- }
87
- });
88
- toObservable(this._buttons).pipe(takeUntilDestroyed()).subscribe(() => {
89
- this._updateThumb();
90
- });
91
- }
92
- ngOnInit() {
93
- this._renderer.setAttribute(this._elementRef.nativeElement, 'ngs-segmented-size', this.size());
94
- }
95
- ngAfterContentInit() {
96
- this._updateThumb();
97
- }
98
- ngOnChanges(changes) {
99
- if (changes['size']) {
100
- this._renderer.setAttribute(this._elementRef.nativeElement, 'ngs-segmented-size', this.size());
101
- this._updateThumb();
102
- }
103
- if (changes['value'] && changes['value'].currentValue !== undefined) {
104
- const value = changes['value'].currentValue;
105
- if (value !== null) {
106
- this._selectedValue.setSelection(value);
107
- }
108
- else {
109
- this._selectedValue.clear();
110
- }
111
- this._updateThumb();
112
- }
113
- }
114
- _onResize() {
115
- this._updateThumb();
116
- }
117
- _updateThumb() {
118
- setTimeout(() => {
119
- const buttons = this._buttons();
120
- if (!buttons) {
121
- return;
122
- }
123
- const index = buttons.findIndex(btn => btn._isSelected);
124
- const element = this._buttonElements()[index]?.nativeElement;
125
- if (element) {
126
- this._thumbWidth = element.offsetWidth;
127
- this._thumbLeft = element.offsetLeft;
128
- this._thumbOpacity = 1;
129
- }
130
- else {
131
- this._thumbWidth = 0;
132
- this._thumbOpacity = 0;
133
- }
134
- if (this._isDestroyed) {
135
- return;
136
- }
137
- this._cdr.detectChanges();
138
- });
139
- }
140
- writeValue(value) {
141
- if (value !== undefined && value !== null) {
142
- this._selectedValue.setSelection(value);
143
- }
144
- else {
145
- this._selectedValue.clear();
146
- }
147
- this._updateThumb();
148
- this._cdr.markForCheck();
149
- }
150
- registerOnChange(fn) {
151
- this._onChange = fn;
152
- }
153
- registerOnTouched(fn) {
154
- this._onTouched = fn;
155
- }
156
- setDisabledState(isDisabled) {
157
- this._disabled = coerceBooleanProperty(isDisabled);
158
- }
159
- _select(value) {
160
- this._selectedValue.setSelection(value);
161
- this.valueChange.emit(value);
162
- this._onChange(value);
163
- this._onTouched(value);
164
- this._updateThumb();
165
- }
166
- isSelected(value) {
167
- return this._selectedValue.isSelected(value);
168
- }
169
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Segmented, deps: [], target: i0.ɵɵFactoryTarget.Component });
170
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", type: Segmented, isStandalone: true, selector: "ngs-segmented", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { listeners: { "window:resize": "_onResize()" }, properties: { "class.is-disabled": "disabled() || _disabled || null" }, classAttribute: "ngs-segmented" }, providers: [
171
- {
172
- provide: NG_VALUE_ACCESSOR,
173
- useExisting: forwardRef(() => Segmented),
174
- multi: true
175
- },
176
- {
177
- provide: SEGMENTED,
178
- useExisting: forwardRef(() => Segmented)
179
- }
180
- ], queries: [{ propertyName: "_buttons", predicate: i0.forwardRef(() => SegmentedButton), descendants: true, isSignal: true }, { propertyName: "_buttonElements", predicate: i0.forwardRef(() => SegmentedButton), descendants: true, read: ElementRef, isSignal: true }], exportAs: ["ngsSegmented"], usesOnChanges: true, ngImport: i0, template: "<div class=\"ngs-segmented-thumb\"\n [style.width.px]=\"_thumbWidth\"\n [style.opacity]=\"_thumbOpacity\"\n [style.transform]=\"'translateX(' + _thumbLeft + 'px)'\"></div>\n<ng-content select=\"ngs-segmented-button,[ngs-segmented-button]\"/>\n", styles: [":host{--ngs-segmented-button-height: calc(var(--spacing, .25rem) * 8);--ngs-segmented-bg: var(--ngs-color-surface-container);--ngs-segmented-button-hover-bg: var(--ngs-color-surface-container-highest);--ngs-segmented-button-color: var(--ngs-color-on-surface-variant);--ngs-segmented-button-hover-color: var(--ngs-color-on-surface);--ngs-segmented-button-selected-color: var(--ngs-color-primary);--ngs-segmented-button-selected-bg: var(--ngs-color-surface);--ngs-segmented-button-selected-shadow: var(--ngs-shadow-sm);--ngs-segmented-padding: var(--spacing, .25rem);--ngs-segmented-radius: var(--ngs-button-radius);--ngs-segmented-button-radius: calc(var(--ngs-button-radius) - calc(var(--spacing, .25rem) * .5));--ngs-segmented-button-padding: 0 calc(var(--spacing, .25rem) * 3);--ngs-segmented-button-min-width: calc(var(--spacing, .25rem) * 12);--ngs-segmented-button-font-size: var(--ngs-font-size-sm);--ngs-segmented-gap: var(--spacing, .25rem);--ngs-segmented-button-gap: var(--spacing, .25rem);--ngs-segmented-button-icon-offset-margin: -6px;--ngs-icon-size: calc(var(--spacing, .25rem) * 6)}:host[ngs-segmented-size=sm]{--ngs-segmented-button-height: calc(var(--spacing, .25rem) * 6);--ngs-segmented-button-font-size: var(--ngs-font-size-xs);--ngs-segmented-button-padding: 0 calc(var(--spacing, .25rem) * 2);--ngs-segmented-button-gap: calc(var(--spacing, .25rem) * .5);--ngs-icon-size: calc(var(--spacing, .25rem) * 5)}:host{display:flex;align-items:center;-webkit-user-select:none;user-select:none;width:max-content;background:var(--ngs-segmented-bg);padding:var(--ngs-segmented-padding);border-radius:var(--ngs-segmented-radius);gap:var(--ngs-segmented-gap);position:relative}:host .ngs-segmented-thumb{position:absolute;top:var(--ngs-segmented-padding);bottom:var(--ngs-segmented-padding);left:0;background:var(--ngs-segmented-button-selected-bg);border-radius:var(--ngs-segmented-button-radius);box-shadow:var(--ngs-segmented-button-selected-shadow);transition:transform .2s cubic-bezier(.4,0,.2,1),width .2s cubic-bezier(.4,0,.2,1),opacity .2s;pointer-events:none;z-index:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
181
- }
182
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Segmented, decorators: [{
183
- type: Component,
184
- args: [{ selector: 'ngs-segmented', exportAs: 'ngsSegmented', providers: [
185
- {
186
- provide: NG_VALUE_ACCESSOR,
187
- useExisting: forwardRef(() => Segmented),
188
- multi: true
189
- },
190
- {
191
- provide: SEGMENTED,
192
- useExisting: forwardRef(() => Segmented)
193
- }
194
- ], changeDetection: ChangeDetectionStrategy.Eager, host: {
195
- 'class': 'ngs-segmented',
196
- '[class.is-disabled]': 'disabled() || _disabled || null',
197
- '(window:resize)': '_onResize()',
198
- }, template: "<div class=\"ngs-segmented-thumb\"\n [style.width.px]=\"_thumbWidth\"\n [style.opacity]=\"_thumbOpacity\"\n [style.transform]=\"'translateX(' + _thumbLeft + 'px)'\"></div>\n<ng-content select=\"ngs-segmented-button,[ngs-segmented-button]\"/>\n", styles: [":host{--ngs-segmented-button-height: calc(var(--spacing, .25rem) * 8);--ngs-segmented-bg: var(--ngs-color-surface-container);--ngs-segmented-button-hover-bg: var(--ngs-color-surface-container-highest);--ngs-segmented-button-color: var(--ngs-color-on-surface-variant);--ngs-segmented-button-hover-color: var(--ngs-color-on-surface);--ngs-segmented-button-selected-color: var(--ngs-color-primary);--ngs-segmented-button-selected-bg: var(--ngs-color-surface);--ngs-segmented-button-selected-shadow: var(--ngs-shadow-sm);--ngs-segmented-padding: var(--spacing, .25rem);--ngs-segmented-radius: var(--ngs-button-radius);--ngs-segmented-button-radius: calc(var(--ngs-button-radius) - calc(var(--spacing, .25rem) * .5));--ngs-segmented-button-padding: 0 calc(var(--spacing, .25rem) * 3);--ngs-segmented-button-min-width: calc(var(--spacing, .25rem) * 12);--ngs-segmented-button-font-size: var(--ngs-font-size-sm);--ngs-segmented-gap: var(--spacing, .25rem);--ngs-segmented-button-gap: var(--spacing, .25rem);--ngs-segmented-button-icon-offset-margin: -6px;--ngs-icon-size: calc(var(--spacing, .25rem) * 6)}:host[ngs-segmented-size=sm]{--ngs-segmented-button-height: calc(var(--spacing, .25rem) * 6);--ngs-segmented-button-font-size: var(--ngs-font-size-xs);--ngs-segmented-button-padding: 0 calc(var(--spacing, .25rem) * 2);--ngs-segmented-button-gap: calc(var(--spacing, .25rem) * .5);--ngs-icon-size: calc(var(--spacing, .25rem) * 5)}:host{display:flex;align-items:center;-webkit-user-select:none;user-select:none;width:max-content;background:var(--ngs-segmented-bg);padding:var(--ngs-segmented-padding);border-radius:var(--ngs-segmented-radius);gap:var(--ngs-segmented-gap);position:relative}:host .ngs-segmented-thumb{position:absolute;top:var(--ngs-segmented-padding);bottom:var(--ngs-segmented-padding);left:0;background:var(--ngs-segmented-button-selected-bg);border-radius:var(--ngs-segmented-button-radius);box-shadow:var(--ngs-segmented-button-selected-shadow);transition:transform .2s cubic-bezier(.4,0,.2,1),width .2s cubic-bezier(.4,0,.2,1),opacity .2s;pointer-events:none;z-index:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
199
- }], ctorParameters: () => [], propDecorators: { _buttons: [{ type: i0.ContentChildren, args: [forwardRef(() => SegmentedButton), { ...{ descendants: true }, isSignal: true }] }], _buttonElements: [{ type: i0.ContentChildren, args: [forwardRef(() => SegmentedButton), { ...{ read: ElementRef, descendants: true }, isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
200
-
201
- class SegmentedIconDirective {
202
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SegmentedIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
203
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SegmentedIconDirective, isStandalone: true, selector: "[ngsSegmentedIcon]", host: { classAttribute: "ngs-segmented-icon" }, exportAs: ["ngsSegmentedIcon"], ngImport: i0 });
204
- }
205
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SegmentedIconDirective, decorators: [{
206
- type: Directive,
207
- args: [{
208
- selector: '[ngsSegmentedIcon]',
209
- exportAs: 'ngsSegmentedIcon',
210
- host: {
211
- 'class': 'ngs-segmented-icon'
212
- }
213
- }]
214
- }] });
215
-
216
- /**
217
- * Generated bundle index. Do not edit.
218
- */
219
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, Directive, ElementRef, InjectionToken, Renderer2, booleanAttribute, contentChildren, effect, forwardRef, inject, input, model, output } from "@angular/core";
3
+ import * as i1 from "@ngstarter-ui/components/core";
4
+ import { Ripple } from "@ngstarter-ui/components/core";
5
+ import { takeUntilDestroyed, toObservable } from "@angular/core/rxjs-interop";
6
+ const SEGMENTED = new InjectionToken("SEGMENTED");
7
+ var SegmentedButton = class SegmentedButton {
8
+ _segmented = inject(SEGMENTED, { skipSelf: true });
9
+ value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
10
+ disabled = input(false, {
11
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
12
+ transform: booleanAttribute
13
+ });
14
+ iconOnly = input(false, {
15
+ ...ngDevMode ? { debugName: "iconOnly" } : /* istanbul ignore next */ {},
16
+ transform: booleanAttribute
17
+ });
18
+ get _isSelected() {
19
+ return this._segmented.api.isSelected(this.value());
20
+ }
21
+ get api() {
22
+ return { isSelected: () => this._isSelected };
23
+ }
24
+ _handleClick() {
25
+ this._segmented.api.select(this.value());
26
+ }
27
+ static ɵfac = i0.ɵɵngDeclareFactory({
28
+ minVersion: "12.0.0",
29
+ version: "22.3.0",
30
+ ngImport: i0,
31
+ type: SegmentedButton,
32
+ deps: [],
33
+ target: i0.ɵɵFactoryTarget.Component
34
+ });
35
+ static ɵcmp = i0.ɵɵngDeclareComponent({
36
+ minVersion: "17.1.0",
37
+ version: "22.3.0",
38
+ type: SegmentedButton,
39
+ isStandalone: true,
40
+ selector: "ngs-segmented-button,[ngs-segmented-button]",
41
+ inputs: {
42
+ value: {
43
+ classPropertyName: "value",
44
+ publicName: "value",
45
+ isSignal: true,
46
+ isRequired: true,
47
+ transformFunction: null
48
+ },
49
+ disabled: {
50
+ classPropertyName: "disabled",
51
+ publicName: "disabled",
52
+ isSignal: true,
53
+ isRequired: false,
54
+ transformFunction: null
55
+ },
56
+ iconOnly: {
57
+ classPropertyName: "iconOnly",
58
+ publicName: "iconOnly",
59
+ isSignal: true,
60
+ isRequired: false,
61
+ transformFunction: null
62
+ }
63
+ },
64
+ host: {
65
+ listeners: { "click": "_handleClick()" },
66
+ properties: {
67
+ "class.icon-only": "iconOnly()",
68
+ "class.is-selected": "_isSelected",
69
+ "class.is-disabled": "disabled() || null"
70
+ },
71
+ classAttribute: "ngs-segmented-button"
72
+ },
73
+ exportAs: ["ngsSegmentedButton"],
74
+ hostDirectives: [{ directive: i1.Ripple }],
75
+ ngImport: i0,
76
+ template: "<div class=\"icon\">\n <ng-content select=\"[ngsSegmentedIcon]\"/>\n</div>\n<div class=\"content\">\n <ng-content/>\n</div>\n",
77
+ styles: [":host{display:flex;align-items:center;cursor:pointer;justify-content:center;color:var(--ngs-segmented-button-color);font-size:var(--ngs-segmented-button-font-size);min-width:var(--ngs-segmented-button-min-width);border-radius:var(--ngs-segmented-button-radius);gap:var(--ngs-segmented-button-gap);flex:none;padding:var(--ngs-segmented-button-padding);height:var(--ngs-segmented-button-height);position:relative;z-index:1}:host.icon-only{--ngs-segmented-button-min-width: 0;--ngs-segmented-button-icon-offset-margin: 0;width:var(--ngs-segmented-button-height);gap:0;padding:0}:host.icon-only .content{display:none}:host .icon{line-height:0;display:flex;align-items:center;justify-content:center;margin-inline-start:var(--ngs-segmented-button-icon-offset-margin)}:host .icon:empty{display:none}:host:hover{background:var(--ngs-segmented-button-hover-bg);color:var(--ngs-segmented-button-hover-color);text-decoration-line:none}:host.is-selected{pointer-events:none;color:var(--ngs-segmented-button-selected-color)}:host:disabled,:host.is-disabled{pointer-events:none;opacity:65%}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
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: SegmentedButton,
86
+ decorators: [{
87
+ type: Component,
88
+ args: [{
89
+ selector: "ngs-segmented-button,[ngs-segmented-button]",
90
+ exportAs: "ngsSegmentedButton",
91
+ hostDirectives: [Ripple],
92
+ changeDetection: ChangeDetectionStrategy.Eager,
93
+ host: {
94
+ "class": "ngs-segmented-button",
95
+ "[class.icon-only]": "iconOnly()",
96
+ "[class.is-selected]": "_isSelected",
97
+ "[class.is-disabled]": "disabled() || null",
98
+ "(click)": "_handleClick()"
99
+ },
100
+ template: "<div class=\"icon\">\n <ng-content select=\"[ngsSegmentedIcon]\"/>\n</div>\n<div class=\"content\">\n <ng-content/>\n</div>\n",
101
+ styles: [":host{display:flex;align-items:center;cursor:pointer;justify-content:center;color:var(--ngs-segmented-button-color);font-size:var(--ngs-segmented-button-font-size);min-width:var(--ngs-segmented-button-min-width);border-radius:var(--ngs-segmented-button-radius);gap:var(--ngs-segmented-button-gap);flex:none;padding:var(--ngs-segmented-button-padding);height:var(--ngs-segmented-button-height);position:relative;z-index:1}:host.icon-only{--ngs-segmented-button-min-width: 0;--ngs-segmented-button-icon-offset-margin: 0;width:var(--ngs-segmented-button-height);gap:0;padding:0}:host.icon-only .content{display:none}:host .icon{line-height:0;display:flex;align-items:center;justify-content:center;margin-inline-start:var(--ngs-segmented-button-icon-offset-margin)}:host .icon:empty{display:none}:host:hover{background:var(--ngs-segmented-button-hover-bg);color:var(--ngs-segmented-button-hover-color);text-decoration-line:none}:host.is-selected{pointer-events:none;color:var(--ngs-segmented-button-selected-color)}:host:disabled,:host.is-disabled{pointer-events:none;opacity:65%}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
102
+ }]
103
+ }],
104
+ propDecorators: {
105
+ value: [{
106
+ type: i0.Input,
107
+ args: [{
108
+ isSignal: true,
109
+ alias: "value",
110
+ required: true
111
+ }]
112
+ }],
113
+ disabled: [{
114
+ type: i0.Input,
115
+ args: [{
116
+ isSignal: true,
117
+ alias: "disabled",
118
+ required: false
119
+ }]
120
+ }],
121
+ iconOnly: [{
122
+ type: i0.Input,
123
+ args: [{
124
+ isSignal: true,
125
+ alias: "iconOnly",
126
+ required: false
127
+ }]
128
+ }]
129
+ }
130
+ });
131
+ var Segmented = class Segmented {
132
+ readonly = input(false, {
133
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
134
+ transform: booleanAttribute
135
+ });
136
+ touch = output();
137
+ onFocusOut(event) {
138
+ if (!event.currentTarget.contains(event.relatedTarget)) this.touch.emit();
139
+ }
140
+ _elementRef = inject(ElementRef);
141
+ _renderer = inject(Renderer2);
142
+ _cdr = inject(ChangeDetectorRef);
143
+ _destroyRef = inject(DestroyRef);
144
+ _isDestroyed = false;
145
+ _buttons = contentChildren(forwardRef(() => SegmentedButton), {
146
+ ...ngDevMode ? { debugName: "_buttons" } : /* istanbul ignore next */ {},
147
+ descendants: true
148
+ });
149
+ _buttonElements = contentChildren(forwardRef(() => SegmentedButton), {
150
+ ...ngDevMode ? { debugName: "_buttonElements" } : /* istanbul ignore next */ {},
151
+ read: ElementRef,
152
+ descendants: true
153
+ });
154
+ _thumbWidth = 0;
155
+ _thumbLeft = 0;
156
+ _thumbOpacity = 0;
157
+ value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
158
+ disabled = input(false, {
159
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
160
+ transform: booleanAttribute
161
+ });
162
+ size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
163
+ get api() {
164
+ return {
165
+ isSelected: (value) => this.isSelected(value),
166
+ select: (value) => this._select(value)
167
+ };
168
+ }
169
+ constructor() {
170
+ this._destroyRef.onDestroy(() => {
171
+ this._isDestroyed = true;
172
+ });
173
+ effect(() => {
174
+ this.value();
175
+ this._updateThumb();
176
+ });
177
+ toObservable(this._buttons).pipe(takeUntilDestroyed()).subscribe(() => {
178
+ this._updateThumb();
179
+ });
180
+ }
181
+ ngOnInit() {
182
+ this._renderer.setAttribute(this._elementRef.nativeElement, "ngs-segmented-size", this.size());
183
+ }
184
+ ngAfterContentInit() {
185
+ this._updateThumb();
186
+ }
187
+ ngOnChanges(changes) {
188
+ if (changes["size"]) {
189
+ this._renderer.setAttribute(this._elementRef.nativeElement, "ngs-segmented-size", this.size());
190
+ this._updateThumb();
191
+ }
192
+ }
193
+ _onResize() {
194
+ this._updateThumb();
195
+ }
196
+ _updateThumb() {
197
+ setTimeout(() => {
198
+ const buttons = this._buttons();
199
+ if (!buttons) return;
200
+ const index = buttons.findIndex((btn) => btn._isSelected);
201
+ const element = this._buttonElements()[index]?.nativeElement;
202
+ if (element) {
203
+ this._thumbWidth = element.offsetWidth;
204
+ this._thumbLeft = element.offsetLeft;
205
+ this._thumbOpacity = 1;
206
+ } else {
207
+ this._thumbWidth = 0;
208
+ this._thumbOpacity = 0;
209
+ }
210
+ if (this._isDestroyed) return;
211
+ this._cdr.detectChanges();
212
+ });
213
+ }
214
+ _select(value) {
215
+ if (!this.disabled() && !this.readonly()) this.value.set(value);
216
+ }
217
+ isSelected(value) {
218
+ return this.value() != null && Object.is(this.value(), value);
219
+ }
220
+ static ɵfac = i0.ɵɵngDeclareFactory({
221
+ minVersion: "12.0.0",
222
+ version: "22.3.0",
223
+ ngImport: i0,
224
+ type: Segmented,
225
+ deps: [],
226
+ target: i0.ɵɵFactoryTarget.Component
227
+ });
228
+ static ɵcmp = i0.ɵɵngDeclareComponent({
229
+ minVersion: "17.2.0",
230
+ version: "22.3.0",
231
+ type: Segmented,
232
+ isStandalone: true,
233
+ selector: "ngs-segmented",
234
+ inputs: {
235
+ readonly: {
236
+ classPropertyName: "readonly",
237
+ publicName: "readonly",
238
+ isSignal: true,
239
+ isRequired: false,
240
+ transformFunction: null
241
+ },
242
+ value: {
243
+ classPropertyName: "value",
244
+ publicName: "value",
245
+ isSignal: true,
246
+ isRequired: false,
247
+ transformFunction: null
248
+ },
249
+ disabled: {
250
+ classPropertyName: "disabled",
251
+ publicName: "disabled",
252
+ isSignal: true,
253
+ isRequired: false,
254
+ transformFunction: null
255
+ },
256
+ size: {
257
+ classPropertyName: "size",
258
+ publicName: "size",
259
+ isSignal: true,
260
+ isRequired: false,
261
+ transformFunction: null
262
+ }
263
+ },
264
+ outputs: {
265
+ touch: "touch",
266
+ value: "valueChange"
267
+ },
268
+ host: {
269
+ listeners: {
270
+ "focusout": "onFocusOut($event)",
271
+ "window:resize": "_onResize()"
272
+ },
273
+ properties: {
274
+ "attr.aria-readonly": "readonly() || null",
275
+ "class.is-disabled": "disabled()"
276
+ },
277
+ classAttribute: "ngs-segmented"
278
+ },
279
+ providers: [{
280
+ provide: SEGMENTED,
281
+ useExisting: forwardRef(() => Segmented)
282
+ }],
283
+ queries: [{
284
+ propertyName: "_buttons",
285
+ predicate: i0.forwardRef(() => SegmentedButton),
286
+ descendants: true,
287
+ isSignal: true
288
+ }, {
289
+ propertyName: "_buttonElements",
290
+ predicate: i0.forwardRef(() => SegmentedButton),
291
+ descendants: true,
292
+ read: ElementRef,
293
+ isSignal: true
294
+ }],
295
+ exportAs: ["ngsSegmented"],
296
+ usesOnChanges: true,
297
+ ngImport: i0,
298
+ template: "<div class=\"ngs-segmented-thumb\"\n [style.width.px]=\"_thumbWidth\"\n [style.opacity]=\"_thumbOpacity\"\n [style.transform]=\"'translateX(' + _thumbLeft + 'px)'\"></div>\n<ng-content select=\"ngs-segmented-button,[ngs-segmented-button]\"/>\n",
299
+ styles: [":host{--ngs-segmented-button-height: calc(var(--spacing, .25rem) * 8);--ngs-segmented-bg: var(--ngs-color-surface-container);--ngs-segmented-button-hover-bg: var(--ngs-color-surface-container-highest);--ngs-segmented-button-color: var(--ngs-color-on-surface-variant);--ngs-segmented-button-hover-color: var(--ngs-color-on-surface);--ngs-segmented-button-selected-color: var(--ngs-color-primary);--ngs-segmented-button-selected-bg: var(--ngs-color-surface);--ngs-segmented-button-selected-shadow: var(--ngs-shadow-sm);--ngs-segmented-padding: var(--spacing, .25rem);--ngs-segmented-radius: var(--ngs-button-radius);--ngs-segmented-button-radius: calc(var(--ngs-button-radius) - calc(var(--spacing, .25rem) * .5));--ngs-segmented-button-padding: 0 calc(var(--spacing, .25rem) * 3);--ngs-segmented-button-min-width: calc(var(--spacing, .25rem) * 12);--ngs-segmented-button-font-size: var(--ngs-font-size-sm);--ngs-segmented-gap: var(--spacing, .25rem);--ngs-segmented-button-gap: var(--spacing, .25rem);--ngs-segmented-button-icon-offset-margin: -6px;--ngs-icon-size: calc(var(--spacing, .25rem) * 6)}:host[ngs-segmented-size=sm]{--ngs-segmented-button-height: calc(var(--spacing, .25rem) * 6);--ngs-segmented-button-font-size: var(--ngs-font-size-xs);--ngs-segmented-button-padding: 0 calc(var(--spacing, .25rem) * 2);--ngs-segmented-button-gap: calc(var(--spacing, .25rem) * .5);--ngs-icon-size: calc(var(--spacing, .25rem) * 5)}:host{display:flex;align-items:center;-webkit-user-select:none;user-select:none;width:max-content;background:var(--ngs-segmented-bg);padding:var(--ngs-segmented-padding);border-radius:var(--ngs-segmented-radius);gap:var(--ngs-segmented-gap);position:relative}:host .ngs-segmented-thumb{position:absolute;top:var(--ngs-segmented-padding);bottom:var(--ngs-segmented-padding);left:0;background:var(--ngs-segmented-button-selected-bg);border-radius:var(--ngs-segmented-button-radius);box-shadow:var(--ngs-segmented-button-selected-shadow);transition:transform .2s cubic-bezier(.4,0,.2,1),width .2s cubic-bezier(.4,0,.2,1),opacity .2s;pointer-events:none;z-index:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
300
+ changeDetection: i0.ChangeDetectionStrategy.Eager
301
+ });
302
+ };
303
+ i0.ɵɵngDeclareClassMetadata({
304
+ minVersion: "12.0.0",
305
+ version: "22.3.0",
306
+ ngImport: i0,
307
+ type: Segmented,
308
+ decorators: [{
309
+ type: Component,
310
+ args: [{
311
+ selector: "ngs-segmented",
312
+ exportAs: "ngsSegmented",
313
+ providers: [{
314
+ provide: SEGMENTED,
315
+ useExisting: forwardRef(() => Segmented)
316
+ }],
317
+ changeDetection: ChangeDetectionStrategy.Eager,
318
+ host: {
319
+ "(focusout)": "onFocusOut($event)",
320
+ "[attr.aria-readonly]": "readonly() || null",
321
+ "class": "ngs-segmented",
322
+ "[class.is-disabled]": "disabled()",
323
+ "(window:resize)": "_onResize()"
324
+ },
325
+ template: "<div class=\"ngs-segmented-thumb\"\n [style.width.px]=\"_thumbWidth\"\n [style.opacity]=\"_thumbOpacity\"\n [style.transform]=\"'translateX(' + _thumbLeft + 'px)'\"></div>\n<ng-content select=\"ngs-segmented-button,[ngs-segmented-button]\"/>\n",
326
+ styles: [":host{--ngs-segmented-button-height: calc(var(--spacing, .25rem) * 8);--ngs-segmented-bg: var(--ngs-color-surface-container);--ngs-segmented-button-hover-bg: var(--ngs-color-surface-container-highest);--ngs-segmented-button-color: var(--ngs-color-on-surface-variant);--ngs-segmented-button-hover-color: var(--ngs-color-on-surface);--ngs-segmented-button-selected-color: var(--ngs-color-primary);--ngs-segmented-button-selected-bg: var(--ngs-color-surface);--ngs-segmented-button-selected-shadow: var(--ngs-shadow-sm);--ngs-segmented-padding: var(--spacing, .25rem);--ngs-segmented-radius: var(--ngs-button-radius);--ngs-segmented-button-radius: calc(var(--ngs-button-radius) - calc(var(--spacing, .25rem) * .5));--ngs-segmented-button-padding: 0 calc(var(--spacing, .25rem) * 3);--ngs-segmented-button-min-width: calc(var(--spacing, .25rem) * 12);--ngs-segmented-button-font-size: var(--ngs-font-size-sm);--ngs-segmented-gap: var(--spacing, .25rem);--ngs-segmented-button-gap: var(--spacing, .25rem);--ngs-segmented-button-icon-offset-margin: -6px;--ngs-icon-size: calc(var(--spacing, .25rem) * 6)}:host[ngs-segmented-size=sm]{--ngs-segmented-button-height: calc(var(--spacing, .25rem) * 6);--ngs-segmented-button-font-size: var(--ngs-font-size-xs);--ngs-segmented-button-padding: 0 calc(var(--spacing, .25rem) * 2);--ngs-segmented-button-gap: calc(var(--spacing, .25rem) * .5);--ngs-icon-size: calc(var(--spacing, .25rem) * 5)}:host{display:flex;align-items:center;-webkit-user-select:none;user-select:none;width:max-content;background:var(--ngs-segmented-bg);padding:var(--ngs-segmented-padding);border-radius:var(--ngs-segmented-radius);gap:var(--ngs-segmented-gap);position:relative}:host .ngs-segmented-thumb{position:absolute;top:var(--ngs-segmented-padding);bottom:var(--ngs-segmented-padding);left:0;background:var(--ngs-segmented-button-selected-bg);border-radius:var(--ngs-segmented-button-radius);box-shadow:var(--ngs-segmented-button-selected-shadow);transition:transform .2s cubic-bezier(.4,0,.2,1),width .2s cubic-bezier(.4,0,.2,1),opacity .2s;pointer-events:none;z-index:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
327
+ }]
328
+ }],
329
+ ctorParameters: () => [],
330
+ propDecorators: {
331
+ readonly: [{
332
+ type: i0.Input,
333
+ args: [{
334
+ isSignal: true,
335
+ alias: "readonly",
336
+ required: false
337
+ }]
338
+ }],
339
+ touch: [{
340
+ type: i0.Output,
341
+ args: ["touch"]
342
+ }],
343
+ _buttons: [{
344
+ type: i0.ContentChildren,
345
+ args: [forwardRef(() => SegmentedButton), {
346
+ descendants: true,
347
+ isSignal: true
348
+ }]
349
+ }],
350
+ _buttonElements: [{
351
+ type: i0.ContentChildren,
352
+ args: [forwardRef(() => SegmentedButton), {
353
+ read: ElementRef,
354
+ descendants: true,
355
+ isSignal: true
356
+ }]
357
+ }],
358
+ value: [{
359
+ type: i0.Input,
360
+ args: [{
361
+ isSignal: true,
362
+ alias: "value",
363
+ required: false
364
+ }]
365
+ }, {
366
+ type: i0.Output,
367
+ args: ["valueChange"]
368
+ }],
369
+ disabled: [{
370
+ type: i0.Input,
371
+ args: [{
372
+ isSignal: true,
373
+ alias: "disabled",
374
+ required: false
375
+ }]
376
+ }],
377
+ size: [{
378
+ type: i0.Input,
379
+ args: [{
380
+ isSignal: true,
381
+ alias: "size",
382
+ required: false
383
+ }]
384
+ }]
385
+ }
386
+ });
387
+ var SegmentedIconDirective = class SegmentedIconDirective {
388
+ static ɵfac = i0.ɵɵngDeclareFactory({
389
+ minVersion: "12.0.0",
390
+ version: "22.3.0",
391
+ ngImport: i0,
392
+ type: SegmentedIconDirective,
393
+ deps: [],
394
+ target: i0.ɵɵFactoryTarget.Directive
395
+ });
396
+ static ɵdir = i0.ɵɵngDeclareDirective({
397
+ minVersion: "14.0.0",
398
+ version: "22.3.0",
399
+ type: SegmentedIconDirective,
400
+ isStandalone: true,
401
+ selector: "[ngsSegmentedIcon]",
402
+ host: { classAttribute: "ngs-segmented-icon" },
403
+ exportAs: ["ngsSegmentedIcon"],
404
+ ngImport: i0
405
+ });
406
+ };
407
+ i0.ɵɵngDeclareClassMetadata({
408
+ minVersion: "12.0.0",
409
+ version: "22.3.0",
410
+ ngImport: i0,
411
+ type: SegmentedIconDirective,
412
+ decorators: [{
413
+ type: Directive,
414
+ args: [{
415
+ selector: "[ngsSegmentedIcon]",
416
+ exportAs: "ngsSegmentedIcon",
417
+ host: { "class": "ngs-segmented-icon" }
418
+ }]
419
+ }]
420
+ });
220
421
  export { Segmented, SegmentedButton, SegmentedIconDirective };
221
- //# sourceMappingURL=ngstarter-ui-components-segmented.mjs.map
422
+
423
+ //# sourceMappingURL=ngstarter-ui-components-segmented.mjs.map