@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,460 +1,1040 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, TemplateRef, Directive, InjectionToken, ElementRef, contentChild, computed, input, booleanAttribute, ChangeDetectionStrategy, Component, Renderer2, DestroyRef, contentChildren, output, afterNextRender, forwardRef, signal } from '@angular/core';
3
- import { NgTemplateOutlet, Location } from '@angular/common';
4
- import * as i1 from '@ngstarter-ui/components/core';
5
- import { Ripple } from '@ngstarter-ui/components/core';
6
- import { signalStore, withState, withMethods, patchState } from '@ngrx/signals';
7
- import { Router, NavigationEnd } from '@angular/router';
8
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
9
-
10
- class NavigationItemIconDirective {
11
- templateRef = inject(TemplateRef, { optional: true });
12
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationItemIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
13
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: NavigationItemIconDirective, isStandalone: true, selector: "[ngsNavigationItemIcon]", host: { classAttribute: "ngs-navigation-item-icon" }, exportAs: ["ngsNavigationItemIcon"], ngImport: i0 });
14
- }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationItemIconDirective, decorators: [{
16
- type: Directive,
17
- args: [{
18
- selector: '[ngsNavigationItemIcon]',
19
- exportAs: 'ngsNavigationItemIcon',
20
- host: {
21
- 'class': 'ngs-navigation-item-icon'
22
- }
23
- }]
24
- }] });
25
-
26
- const NAVIGATION = new InjectionToken('NAVIGATION');
27
- const NAVIGATION_GROUP = new InjectionToken('NAVIGATION_GROUP');
28
-
29
- const initialState = {
30
- activeKey: null,
31
- activeGroupKey: null
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef, InjectionToken, Renderer2, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, contentChildren, forwardRef, inject, input, output, signal } from "@angular/core";
3
+ import { Location, NgTemplateOutlet } from "@angular/common";
4
+ import { patchState, signalStore, withMethods, withState } from "@ngrx/signals";
5
+ import * as i1 from "@ngstarter-ui/components/core";
6
+ import { Ripple } from "@ngstarter-ui/components/core";
7
+ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
8
+ import { NavigationEnd, Router } from "@angular/router";
9
+ var NavigationItemIconDirective = class NavigationItemIconDirective {
10
+ templateRef = inject(TemplateRef, { optional: true });
11
+ static ɵfac = i0.ɵɵngDeclareFactory({
12
+ minVersion: "12.0.0",
13
+ version: "22.3.0",
14
+ ngImport: i0,
15
+ type: NavigationItemIconDirective,
16
+ deps: [],
17
+ target: i0.ɵɵFactoryTarget.Directive
18
+ });
19
+ static ɵdir = i0.ɵɵngDeclareDirective({
20
+ minVersion: "14.0.0",
21
+ version: "22.3.0",
22
+ type: NavigationItemIconDirective,
23
+ isStandalone: true,
24
+ selector: "[ngsNavigationItemIcon]",
25
+ host: { classAttribute: "ngs-navigation-item-icon" },
26
+ exportAs: ["ngsNavigationItemIcon"],
27
+ ngImport: i0
28
+ });
32
29
  };
33
- const NavigationStore = signalStore(withState(initialState), withMethods((store) => ({
34
- setActiveKey(activeKey) {
35
- patchState(store, {
36
- activeKey
37
- });
38
- },
39
- setActiveGroupKey(activeGroupKey) {
40
- patchState(store, {
41
- activeGroupKey
42
- });
43
- },
30
+ i0.ɵɵngDeclareClassMetadata({
31
+ minVersion: "12.0.0",
32
+ version: "22.3.0",
33
+ ngImport: i0,
34
+ type: NavigationItemIconDirective,
35
+ decorators: [{
36
+ type: Directive,
37
+ args: [{
38
+ selector: "[ngsNavigationItemIcon]",
39
+ exportAs: "ngsNavigationItemIcon",
40
+ host: { "class": "ngs-navigation-item-icon" }
41
+ }]
42
+ }]
43
+ });
44
+ const NAVIGATION = new InjectionToken("NAVIGATION");
45
+ const NAVIGATION_GROUP = new InjectionToken("NAVIGATION_GROUP");
46
+ const NavigationStore = signalStore(withState({
47
+ activeKey: null,
48
+ activeGroupKey: null
49
+ }), withMethods((store) => ({
50
+ setActiveKey(activeKey) {
51
+ patchState(store, { activeKey });
52
+ },
53
+ setActiveGroupKey(activeGroupKey) {
54
+ patchState(store, { activeGroupKey });
55
+ }
44
56
  })));
45
-
46
57
  let nextKey = 0;
47
- class NavigationItem {
48
- store = inject(NavigationStore);
49
- _navigation = inject(NAVIGATION);
50
- _elementRef = inject(ElementRef);
51
- parentGroup = inject(NAVIGATION_GROUP, { optional: true });
52
- iconRef = contentChild(NavigationItemIconDirective, /* @ts-ignore */
53
- ...(ngDevMode ? [{ debugName: "iconRef" }] : /* istanbul ignore next */ []));
54
- active = computed(() => {
55
- return this.store.activeKey() === this.key();
56
- }, /* @ts-ignore */
57
- ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
58
- get api() {
59
- return {
60
- isActive: () => this.active()
61
- };
62
- }
63
- key = input(`ngs-navigation-item-${nextKey++}`, /* @ts-ignore */
64
- ...(ngDevMode ? [{ debugName: "key" }] : /* istanbul ignore next */ []));
65
- forceActive = input(false, { ...(ngDevMode ? { debugName: "forceActive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
66
- badgeTextOnly = input(false, { ...(ngDevMode ? { debugName: "badgeTextOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
67
- click(event) {
68
- if (!this.key()) {
69
- return;
70
- }
71
- this._navigation.itemClicked.emit(this.key());
72
- this.store.setActiveKey(this.key());
73
- if (this.parentGroup) {
74
- this.store.setActiveGroupKey(this.parentGroup.key());
75
- }
76
- else {
77
- this.store.setActiveGroupKey(null);
78
- }
79
- }
80
- get _hostElement() {
81
- return this._elementRef;
82
- }
83
- get iconRefTemplate() {
84
- return this.iconRef()?.templateRef;
85
- }
86
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
87
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: NavigationItem, isStandalone: true, selector: "ngs-navigation-item,[ngs-navigation-item]", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, forceActive: { classPropertyName: "forceActive", publicName: "forceActive", isSignal: true, isRequired: false, transformFunction: null }, badgeTextOnly: { classPropertyName: "badgeTextOnly", publicName: "badgeTextOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "click($event)" }, properties: { "class.is-active": "forceActive() || active()", "class.is-badge-text-only": "badgeTextOnly()" }, classAttribute: "ngs-navigation-item" }, queries: [{ propertyName: "iconRef", first: true, predicate: NavigationItemIconDirective, descendants: true, isSignal: true }], exportAs: ["ngsNavigationItem"], ngImport: i0, template: "<div class=\"inner\" ngsRipple>\n <div class=\"icon\">\n <ng-content select=\"[ngsNavigationItemIcon]\"/>\n @if (iconRef()) {\n <ng-container [ngTemplateOutlet]=\"iconRefTemplate\"/>\n }\n </div>\n <span class=\"text grow\"><ng-content/></span>\n <div class=\"badge\">\n <ng-content select=\"[ngsNavigationItemBadge]\"/>\n </div>\n</div>\n", styles: [":host{display:block;text-decoration:none;position:relative}:host .inner{display:flex;align-items:center;min-width:0;white-space:nowrap;flex:none;cursor:pointer;-webkit-user-select:none;user-select:none;margin:0;width:var(--ngs-navigation-item-width);background:var(--ngs-navigation-item-bg);min-height:var(--ngs-navigation-item-height);padding:var(--ngs-navigation-item-padding);font-size:var(--ngs-navigation-item-font-size);border-radius:var(--ngs-navigation-item-border-radius);font-weight:var(--ngs-navigation-item-font-weight);color:var(--ngs-navigation-item-color);gap:var(--ngs-navigation-item-gap)}:host:hover{text-decoration:none}:host:hover .inner{transition:background-color .2s;background:var(--ngs-navigation-item-hover-bg);color:var(--ngs-navigation-item-hover-color)}:host .text{overflow:hidden;text-overflow:ellipsis}:host .badge:empty{display:none}:host .badge{display:inline-flex;flex:none;border-radius:calc(infinity * 1px);height:var(--ngs-nav-badge-size);min-width:var(--ngs-nav-badge-size);align-items:center;justify-content:center;font-size:var(--ngs-font-size-xs);padding:var(--ngs-nav-badge-padding);font-weight:700}:host:not(.is-badge-text-only) .badge{font-weight:600;font-size:var(--ngs-font-size-xs);background:var(--ngs-nav-badge-bg, var(--ngs-color-primary));color:var(--ngs-nav-badge-color, var(--ngs-color-on-primary))}:host .icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--ngs-navigation-item-icon-width);color:var(--ngs-navigation-item-icon-color)}:host .icon:empty{display:none}:host.is-active .inner,:host.is-active:hover .inner{background:var(--ngs-navigation-item-active-bg);color:var(--ngs-navigation-item-active-color);font-weight:var(--ngs-navigation-item-active-font-weight)}:host:not(.is-active):hover{text-decoration:none}:host:not(.is-active):hover .icon{color:var(--ngs-navigation-item-hover-icon-color)}:host.is-active .icon{color:var(--ngs-navigation-item-active-icon-color)}:host-context(.ngs-navigation-group-menu) .inner{margin:var(--ngs-navigation-nested-item-margin);width:calc(var(--ngs-navigation-item-width) - var(--ngs-navigation-nested-item-offset));background:var(--ngs-navigation-nested-item-bg);min-height:var(--ngs-navigation-nested-item-height);padding:var(--ngs-navigation-nested-item-padding);color:var(--ngs-navigation-nested-item-color)}:host-context(.ngs-navigation-group-menu):hover .inner{background:var(--ngs-navigation-nested-item-hover-bg);color:var(--ngs-navigation-nested-item-hover-color)}:host-context(.ngs-navigation-group-menu).is-active .inner,:host-context(.ngs-navigation-group-menu).is-active:hover .inner{background:var(--ngs-navigation-nested-item-active-bg);color:var(--ngs-navigation-nested-item-active-color);font-weight:var(--ngs-navigation-item-active-font-weight)}:host-context(.ngs-navigation-group-menu):not(:last-child):before{content:\"\";position:absolute;top:0;inset-inline-start:calc(var(--spacing, .25rem) * 2);bottom:-10px;width:1px;background:var(--ngs-navigation-group-tree-lines-color);z-index:0}:host-context(.ngs-navigation-group-menu):after{content:\"\";position:absolute;top:0;inset-inline-start:calc(var(--spacing, .25rem) * 2);width:calc(var(--ngs-navigation-nested-item-height) / 1.5 - calc(var(--spacing, .25rem) * 2));height:calc(var(--ngs-navigation-nested-item-height) / 2);border-bottom-left-radius:calc(var(--ngs-navigation-nested-item-height) / 4);border-left:1px solid var(--ngs-navigation-group-tree-lines-color);border-bottom:1px solid var(--ngs-navigation-group-tree-lines-color)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: Ripple, selector: "[ngsRipple]", inputs: ["ngsRippleColor", "ngsRippleUnbounded", "ngsRippleCentered", "ngsRippleRadius", "ngsRippleAnimation", "ngsRippleDisabled", "ngsRippleTrigger"], outputs: ["ngsRippleCenteredChange", "ngsRippleDisabledChange", "ngsRippleTriggerChange"], exportAs: ["ngsRipple"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
88
- }
89
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationItem, decorators: [{
90
- type: Component,
91
- args: [{ selector: 'ngs-navigation-item,[ngs-navigation-item]', exportAs: 'ngsNavigationItem', imports: [
92
- Ripple,
93
- NgTemplateOutlet
94
- ], changeDetection: ChangeDetectionStrategy.OnPush, host: {
95
- 'class': 'ngs-navigation-item',
96
- '[class.is-active]': 'forceActive() || active()',
97
- '[class.is-badge-text-only]': 'badgeTextOnly()',
98
- '(click)': 'click($event)'
99
- }, template: "<div class=\"inner\" ngsRipple>\n <div class=\"icon\">\n <ng-content select=\"[ngsNavigationItemIcon]\"/>\n @if (iconRef()) {\n <ng-container [ngTemplateOutlet]=\"iconRefTemplate\"/>\n }\n </div>\n <span class=\"text grow\"><ng-content/></span>\n <div class=\"badge\">\n <ng-content select=\"[ngsNavigationItemBadge]\"/>\n </div>\n</div>\n", styles: [":host{display:block;text-decoration:none;position:relative}:host .inner{display:flex;align-items:center;min-width:0;white-space:nowrap;flex:none;cursor:pointer;-webkit-user-select:none;user-select:none;margin:0;width:var(--ngs-navigation-item-width);background:var(--ngs-navigation-item-bg);min-height:var(--ngs-navigation-item-height);padding:var(--ngs-navigation-item-padding);font-size:var(--ngs-navigation-item-font-size);border-radius:var(--ngs-navigation-item-border-radius);font-weight:var(--ngs-navigation-item-font-weight);color:var(--ngs-navigation-item-color);gap:var(--ngs-navigation-item-gap)}:host:hover{text-decoration:none}:host:hover .inner{transition:background-color .2s;background:var(--ngs-navigation-item-hover-bg);color:var(--ngs-navigation-item-hover-color)}:host .text{overflow:hidden;text-overflow:ellipsis}:host .badge:empty{display:none}:host .badge{display:inline-flex;flex:none;border-radius:calc(infinity * 1px);height:var(--ngs-nav-badge-size);min-width:var(--ngs-nav-badge-size);align-items:center;justify-content:center;font-size:var(--ngs-font-size-xs);padding:var(--ngs-nav-badge-padding);font-weight:700}:host:not(.is-badge-text-only) .badge{font-weight:600;font-size:var(--ngs-font-size-xs);background:var(--ngs-nav-badge-bg, var(--ngs-color-primary));color:var(--ngs-nav-badge-color, var(--ngs-color-on-primary))}:host .icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--ngs-navigation-item-icon-width);color:var(--ngs-navigation-item-icon-color)}:host .icon:empty{display:none}:host.is-active .inner,:host.is-active:hover .inner{background:var(--ngs-navigation-item-active-bg);color:var(--ngs-navigation-item-active-color);font-weight:var(--ngs-navigation-item-active-font-weight)}:host:not(.is-active):hover{text-decoration:none}:host:not(.is-active):hover .icon{color:var(--ngs-navigation-item-hover-icon-color)}:host.is-active .icon{color:var(--ngs-navigation-item-active-icon-color)}:host-context(.ngs-navigation-group-menu) .inner{margin:var(--ngs-navigation-nested-item-margin);width:calc(var(--ngs-navigation-item-width) - var(--ngs-navigation-nested-item-offset));background:var(--ngs-navigation-nested-item-bg);min-height:var(--ngs-navigation-nested-item-height);padding:var(--ngs-navigation-nested-item-padding);color:var(--ngs-navigation-nested-item-color)}:host-context(.ngs-navigation-group-menu):hover .inner{background:var(--ngs-navigation-nested-item-hover-bg);color:var(--ngs-navigation-nested-item-hover-color)}:host-context(.ngs-navigation-group-menu).is-active .inner,:host-context(.ngs-navigation-group-menu).is-active:hover .inner{background:var(--ngs-navigation-nested-item-active-bg);color:var(--ngs-navigation-nested-item-active-color);font-weight:var(--ngs-navigation-item-active-font-weight)}:host-context(.ngs-navigation-group-menu):not(:last-child):before{content:\"\";position:absolute;top:0;inset-inline-start:calc(var(--spacing, .25rem) * 2);bottom:-10px;width:1px;background:var(--ngs-navigation-group-tree-lines-color);z-index:0}:host-context(.ngs-navigation-group-menu):after{content:\"\";position:absolute;top:0;inset-inline-start:calc(var(--spacing, .25rem) * 2);width:calc(var(--ngs-navigation-nested-item-height) / 1.5 - calc(var(--spacing, .25rem) * 2));height:calc(var(--ngs-navigation-nested-item-height) / 2);border-bottom-left-radius:calc(var(--ngs-navigation-nested-item-height) / 4);border-left:1px solid var(--ngs-navigation-group-tree-lines-color);border-bottom:1px solid var(--ngs-navigation-group-tree-lines-color)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
100
- }], propDecorators: { iconRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => NavigationItemIconDirective), { isSignal: true }] }], key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], forceActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceActive", required: false }] }], badgeTextOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeTextOnly", required: false }] }] } });
101
-
102
- class NavigationItemDefDirective {
103
- template;
104
- when = input(undefined, { ...(ngDevMode ? { debugName: "when" } : /* istanbul ignore next */ {}), alias: 'ngsNavigationItemDef' });
105
- constructor(template) {
106
- this.template = template;
107
- }
108
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationItemDefDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
109
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: NavigationItemDefDirective, isStandalone: true, selector: "[ngsNavigationItemDef]", inputs: { when: { classPropertyName: "when", publicName: "ngsNavigationItemDef", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
110
- }
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationItemDefDirective, decorators: [{
112
- type: Directive,
113
- args: [{
114
- selector: '[ngsNavigationItemDef]',
115
- standalone: true
116
- }]
117
- }], ctorParameters: () => [{ type: i0.TemplateRef }], propDecorators: { when: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngsNavigationItemDef", required: false }] }] } });
118
-
119
- class Navigation {
120
- store = inject(NavigationStore);
121
- _elementRef = inject(ElementRef);
122
- _renderer = inject(Renderer2);
123
- location = inject(Location);
124
- router = inject(Router);
125
- destroyRef = inject(DestroyRef);
126
- _items = contentChildren(NavigationItem, { ...(ngDevMode ? { debugName: "_items" } : /* istanbul ignore next */ {}), descendants: true });
127
- _defs = contentChildren(NavigationItemDefDirective, /* @ts-ignore */
128
- ...(ngDevMode ? [{ debugName: "_defs" }] : /* istanbul ignore next */ []));
129
- activeKey = input(/* @ts-ignore */
130
- ...(ngDevMode ? [undefined, { debugName: "activeKey" }] : /* istanbul ignore next */ []));
131
- dataSource = input(/* @ts-ignore */
132
- ...(ngDevMode ? [undefined, { debugName: "dataSource" }] : /* istanbul ignore next */ []));
133
- itemTypeProperty = input('type', /* @ts-ignore */
134
- ...(ngDevMode ? [{ debugName: "itemTypeProperty" }] : /* istanbul ignore next */ []));
135
- appearance = input(/* @ts-ignore */
136
- ...(ngDevMode ? [undefined, { debugName: "appearance" }] : /* istanbul ignore next */ []));
137
- activateByRoute = input(false, { ...(ngDevMode ? { debugName: "activateByRoute" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
138
- autoScrollToActiveItem = input(false, { ...(ngDevMode ? { debugName: "autoScrollToActiveItem" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
139
- itemClicked = output();
140
- constructor() {
141
- // scroll to the active item if it is not visible in the viewport
142
- afterNextRender(() => {
143
- if (!this.autoScrollToActiveItem()) {
144
- return;
145
- }
146
- this._items().forEach((item) => {
147
- if (item.active()) {
148
- let parentElement = this._elementRef.nativeElement.parentNode || null;
149
- const itemElement = item._hostElement.nativeElement;
150
- while (parentElement !== null) {
151
- if (this._hasScroll(parentElement)) {
152
- if (!this._isScrolledIntoView(itemElement, parentElement)) {
153
- const parentRect = parentElement.getBoundingClientRect();
154
- const elementRect = itemElement.getBoundingClientRect();
155
- parentElement.scrollTop = elementRect.top - parentRect.height / 2;
156
- }
157
- parentElement = null;
158
- }
159
- else {
160
- parentElement = parentElement.parentNode || null;
161
- }
162
- }
163
- }
164
- });
165
- });
166
- }
167
- ngAfterContentInit() {
168
- if (!this.activateByRoute()) {
169
- return;
170
- }
171
- this.findActiveItemByRoute();
172
- this.router
173
- .events
174
- .pipe(takeUntilDestroyed(this.destroyRef))
175
- .subscribe((event) => {
176
- if (event instanceof NavigationEnd) {
177
- this.findActiveItemByRoute();
178
- }
179
- });
180
- }
181
- ngOnChanges(changes) {
182
- if (changes['activeKey']) {
183
- this.store.setActiveKey(changes['activeKey'].currentValue);
184
- }
185
- if (changes['appearance']) {
186
- this._renderer.setAttribute(this._elementRef.nativeElement, 'data-appearance', changes['appearance'].currentValue);
187
- }
188
- }
189
- _hasScroll(element) {
190
- if (!element.getBoundingClientRect) {
191
- return false;
192
- }
193
- return Math.ceil(element.scrollHeight) > Math.ceil(element.getBoundingClientRect().height);
194
- }
195
- _isScrolledIntoView(element, parent) {
196
- const elementRect = element.getBoundingClientRect();
197
- const parentRect = parent.getBoundingClientRect();
198
- return (elementRect.top >= 0) && (elementRect.bottom <= parentRect.height);
199
- }
200
- findActiveItemByRoute() {
201
- const activeItem = this._items().find((item) => {
202
- const element = item._hostElement.nativeElement;
203
- if (element.tagName === 'A') {
204
- const href = element.getAttribute('href');
205
- if (href) {
206
- if (href === this.location.path()) {
207
- return true;
208
- }
209
- return href !== '/' && this.location.path().includes(href);
210
- }
211
- }
212
- return null;
213
- });
214
- if (activeItem) {
215
- this.store.setActiveKey(activeItem.key());
216
- }
217
- }
218
- getTemplate(item) {
219
- const def = this._defs().find(d => {
220
- const when = d.when();
221
- if (when) {
222
- if (typeof when === 'function') {
223
- return when(item);
224
- }
225
- return item[this.itemTypeProperty()] === when;
226
- }
227
- return false;
228
- }) || this._defs().find(d => !d.when());
229
- return def?.template || null;
230
- }
231
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Navigation, deps: [], target: i0.ɵɵFactoryTarget.Component });
232
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: Navigation, isStandalone: true, selector: "ngs-navigation", inputs: { activeKey: { classPropertyName: "activeKey", publicName: "activeKey", isSignal: true, isRequired: false, transformFunction: null }, dataSource: { classPropertyName: "dataSource", publicName: "dataSource", isSignal: true, isRequired: false, transformFunction: null }, itemTypeProperty: { classPropertyName: "itemTypeProperty", publicName: "itemTypeProperty", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, activateByRoute: { classPropertyName: "activateByRoute", publicName: "activateByRoute", isSignal: true, isRequired: false, transformFunction: null }, autoScrollToActiveItem: { classPropertyName: "autoScrollToActiveItem", publicName: "autoScrollToActiveItem", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClicked: "itemClicked" }, host: { classAttribute: "ngs-navigation" }, providers: [
233
- NavigationStore,
234
- {
235
- provide: NAVIGATION,
236
- useExisting: forwardRef(() => Navigation),
237
- }
238
- ], queries: [{ propertyName: "_items", predicate: NavigationItem, descendants: true, isSignal: true }, { propertyName: "_defs", predicate: NavigationItemDefDirective, isSignal: true }], exportAs: ["ngsNavigation"], usesOnChanges: true, ngImport: i0, template: "@if (dataSource(); as data) {\n @for (item of data; track item) {\n <ng-container *ngTemplateOutlet=\"getTemplate(item); context: { $implicit: item }\" />\n }\n} @else {\n <ng-content/>\n}\n", styles: [":host{--ngs-navigation-bg: inherit;--ngs-navigation-items-gap: var(--ngs-nav-items-gap);--ngs-navigation-item-width: var(--ngs-nav-item-width);--ngs-navigation-item-bg: transparent;--ngs-navigation-item-height: var(--ngs-nav-item-height);--ngs-navigation-item-padding: var(--ngs-nav-item-padding);--ngs-navigation-item-font-size: var(--ngs-nav-item-font-size);--ngs-navigation-item-border-radius: var(--ngs-nav-item-radius);--ngs-navigation-item-border-width: var(--ngs-nav-item-border-width);--ngs-navigation-item-border-color: var(--ngs-nav-item-border-color);--ngs-navigation-item-font-weight: var(--ngs-nav-item-font-weight);--ngs-navigation-item-active-font-weight: var(--ngs-nav-item-active-font-weight);--ngs-navigation-item-color: var(--ngs-nav-item-color);--ngs-navigation-item-hover-bg: var(--ngs-nav-item-hover-bg);--ngs-navigation-item-active-bg: var(--ngs-nav-item-active-bg);--ngs-navigation-item-hover-color: var(--ngs-nav-item-hover-color);--ngs-navigation-item-active-color: var(--ngs-nav-item-active-color);--ngs-navigation-item-icon-color: var(--ngs-nav-item-icon-color);--ngs-navigation-item-icon-width: var(--ngs-nav-item-icon-width);--ngs-navigation-item-hover-icon-color: var(--ngs-nav-item-hover-icon-color);--ngs-navigation-item-active-icon-color: var(--ngs-nav-item-active-icon-color);--ngs-navigation-item-icon-size: var(--ngs-nav-item-icon-size);--ngs-navigation-item-gap: var(--ngs-nav-item-gap);--ngs-navigation-item-has-icon-padding-start: var(--ngs-nav-item-gap);--ngs-navigation-heading-color: var(--ngs-color-on-surface-variant);--ngs-navigation-heading-font-size: var(--ngs-nav-heading-font-size);--ngs-navigation-heading-font-weight: var(--ngs-nav-heading-font-weight);--ngs-navigation-heading-padding: var(--ngs-nav-heading-padding);--ngs-navigation-heading-margin-bottom: var(--ngs-nav-heading-margin-bottom);--ngs-navigation-heading-after-margin: var(--ngs-nav-heading-after-margin);--ngs-navigation-heading-text-transform: var(--ngs-nav-heading-text-transform);--ngs-navigation-divider-height: var(--ngs-nav-divider-height);--ngs-navigation-divider-bg: var(--ngs-color-subtle);--ngs-navigation-divider-margin: var(--ngs-nav-divider-margin);--ngs-navigation-group-toggle-has-icon-padding-end: var(--ngs-nav-group-toggle-padding-end);--ngs-navigation-group-toggle-icon-color: var(--ngs-color-on-surface-variant);--ngs-navigation-group-toggle-icon-position-end: var(--ngs-nav-group-toggle-icon-position-end);--ngs-navigation-group-toggle-icon-size: var(--ngs-nav-group-toggle-icon-size);--ngs-navigation-group-menu-padding-start: 0;--ngs-navigation-group-toggle-bg: transparent;--ngs-navigation-group-toggle-active-bg: var(--ngs-nav-item-active-bg);--ngs-navigation-group-toggle-active-color: var(--ngs-nav-item-active-color);--ngs-navigation-nested-item-bg: transparent;--ngs-navigation-nested-item-height: var(--ngs-nav-nested-item-height);--ngs-navigation-nested-item-padding: var(--ngs-nav-nested-item-padding);--ngs-navigation-nested-item-offset: calc(var(--ngs-navigation-item-icon-width) + var(--ngs-navigation-item-gap));--ngs-navigation-nested-item-margin: var(--ngs-nav-nested-item-margin);--ngs-navigation-nested-item-border-radius: var(--ngs-nav-nested-item-border-radius);--ngs-navigation-nested-item-color: var(--ngs-nav-item-color);--ngs-navigation-nested-item-hover-bg: var(--ngs-nav-item-hover-bg);--ngs-navigation-nested-item-active-bg: var(--ngs-nav-item-active-bg);--ngs-navigation-nested-item-hover-color: var(--ngs-nav-item-hover-color);--ngs-navigation-nested-item-active-color: var(--ngs-nav-item-active-color);--ngs-navigation-nested-item-indicator-width: var(--ngs-nav-nested-item-indicator-width);--ngs-navigation-nested-item-indicator-height: var(--ngs-nav-nested-item-indicator-height);--ngs-navigation-nested-item-indicator-bg: var(--ngs-color-outline);--ngs-navigation-nested-item-indicator-position-start: var(--ngs-nav-nested-item-indicator-position-start);--ngs-navigation-group-active-bg: transparent;--ngs-navigation-group-border-radius: 0;--ngs-navigation-group-tree-lines-color: var(--ngs-color-outline-variant);--ngs-navigation-heading-text-align: var(--ngs-nav-heading-text-align);display:flex;flex-direction:column;gap:var(--ngs-navigation-items-gap);background:var(--ngs-navigation-bg)}:host ::ng-deep .ngs-navigation-group-toggle-icon{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host ::ng-deep>*+.ngs-navigation-heading{margin-top:var(--ngs-navigation-heading-after-margin)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
239
- }
240
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Navigation, decorators: [{
241
- type: Component,
242
- args: [{ selector: 'ngs-navigation', exportAs: 'ngsNavigation', imports: [
243
- NgTemplateOutlet
244
- ], providers: [
245
- NavigationStore,
246
- {
247
- provide: NAVIGATION,
248
- useExisting: forwardRef(() => Navigation),
249
- }
250
- ], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, host: {
251
- 'class': 'ngs-navigation'
252
- }, template: "@if (dataSource(); as data) {\n @for (item of data; track item) {\n <ng-container *ngTemplateOutlet=\"getTemplate(item); context: { $implicit: item }\" />\n }\n} @else {\n <ng-content/>\n}\n", styles: [":host{--ngs-navigation-bg: inherit;--ngs-navigation-items-gap: var(--ngs-nav-items-gap);--ngs-navigation-item-width: var(--ngs-nav-item-width);--ngs-navigation-item-bg: transparent;--ngs-navigation-item-height: var(--ngs-nav-item-height);--ngs-navigation-item-padding: var(--ngs-nav-item-padding);--ngs-navigation-item-font-size: var(--ngs-nav-item-font-size);--ngs-navigation-item-border-radius: var(--ngs-nav-item-radius);--ngs-navigation-item-border-width: var(--ngs-nav-item-border-width);--ngs-navigation-item-border-color: var(--ngs-nav-item-border-color);--ngs-navigation-item-font-weight: var(--ngs-nav-item-font-weight);--ngs-navigation-item-active-font-weight: var(--ngs-nav-item-active-font-weight);--ngs-navigation-item-color: var(--ngs-nav-item-color);--ngs-navigation-item-hover-bg: var(--ngs-nav-item-hover-bg);--ngs-navigation-item-active-bg: var(--ngs-nav-item-active-bg);--ngs-navigation-item-hover-color: var(--ngs-nav-item-hover-color);--ngs-navigation-item-active-color: var(--ngs-nav-item-active-color);--ngs-navigation-item-icon-color: var(--ngs-nav-item-icon-color);--ngs-navigation-item-icon-width: var(--ngs-nav-item-icon-width);--ngs-navigation-item-hover-icon-color: var(--ngs-nav-item-hover-icon-color);--ngs-navigation-item-active-icon-color: var(--ngs-nav-item-active-icon-color);--ngs-navigation-item-icon-size: var(--ngs-nav-item-icon-size);--ngs-navigation-item-gap: var(--ngs-nav-item-gap);--ngs-navigation-item-has-icon-padding-start: var(--ngs-nav-item-gap);--ngs-navigation-heading-color: var(--ngs-color-on-surface-variant);--ngs-navigation-heading-font-size: var(--ngs-nav-heading-font-size);--ngs-navigation-heading-font-weight: var(--ngs-nav-heading-font-weight);--ngs-navigation-heading-padding: var(--ngs-nav-heading-padding);--ngs-navigation-heading-margin-bottom: var(--ngs-nav-heading-margin-bottom);--ngs-navigation-heading-after-margin: var(--ngs-nav-heading-after-margin);--ngs-navigation-heading-text-transform: var(--ngs-nav-heading-text-transform);--ngs-navigation-divider-height: var(--ngs-nav-divider-height);--ngs-navigation-divider-bg: var(--ngs-color-subtle);--ngs-navigation-divider-margin: var(--ngs-nav-divider-margin);--ngs-navigation-group-toggle-has-icon-padding-end: var(--ngs-nav-group-toggle-padding-end);--ngs-navigation-group-toggle-icon-color: var(--ngs-color-on-surface-variant);--ngs-navigation-group-toggle-icon-position-end: var(--ngs-nav-group-toggle-icon-position-end);--ngs-navigation-group-toggle-icon-size: var(--ngs-nav-group-toggle-icon-size);--ngs-navigation-group-menu-padding-start: 0;--ngs-navigation-group-toggle-bg: transparent;--ngs-navigation-group-toggle-active-bg: var(--ngs-nav-item-active-bg);--ngs-navigation-group-toggle-active-color: var(--ngs-nav-item-active-color);--ngs-navigation-nested-item-bg: transparent;--ngs-navigation-nested-item-height: var(--ngs-nav-nested-item-height);--ngs-navigation-nested-item-padding: var(--ngs-nav-nested-item-padding);--ngs-navigation-nested-item-offset: calc(var(--ngs-navigation-item-icon-width) + var(--ngs-navigation-item-gap));--ngs-navigation-nested-item-margin: var(--ngs-nav-nested-item-margin);--ngs-navigation-nested-item-border-radius: var(--ngs-nav-nested-item-border-radius);--ngs-navigation-nested-item-color: var(--ngs-nav-item-color);--ngs-navigation-nested-item-hover-bg: var(--ngs-nav-item-hover-bg);--ngs-navigation-nested-item-active-bg: var(--ngs-nav-item-active-bg);--ngs-navigation-nested-item-hover-color: var(--ngs-nav-item-hover-color);--ngs-navigation-nested-item-active-color: var(--ngs-nav-item-active-color);--ngs-navigation-nested-item-indicator-width: var(--ngs-nav-nested-item-indicator-width);--ngs-navigation-nested-item-indicator-height: var(--ngs-nav-nested-item-indicator-height);--ngs-navigation-nested-item-indicator-bg: var(--ngs-color-outline);--ngs-navigation-nested-item-indicator-position-start: var(--ngs-nav-nested-item-indicator-position-start);--ngs-navigation-group-active-bg: transparent;--ngs-navigation-group-border-radius: 0;--ngs-navigation-group-tree-lines-color: var(--ngs-color-outline-variant);--ngs-navigation-heading-text-align: var(--ngs-nav-heading-text-align);display:flex;flex-direction:column;gap:var(--ngs-navigation-items-gap);background:var(--ngs-navigation-bg)}:host ::ng-deep .ngs-navigation-group-toggle-icon{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host ::ng-deep>*+.ngs-navigation-heading{margin-top:var(--ngs-navigation-heading-after-margin)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
253
- }], ctorParameters: () => [], propDecorators: { _items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => NavigationItem), { ...{ descendants: true }, isSignal: true }] }], _defs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => NavigationItemDefDirective), { isSignal: true }] }], activeKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeKey", required: false }] }], dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: false }] }], itemTypeProperty: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTypeProperty", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], activateByRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activateByRoute", required: false }] }], autoScrollToActiveItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoScrollToActiveItem", required: false }] }], itemClicked: [{ type: i0.Output, args: ["itemClicked"] }] } });
254
-
255
- class NavigationHeading {
256
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationHeading, deps: [], target: i0.ɵɵFactoryTarget.Component });
257
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: NavigationHeading, isStandalone: true, selector: "ngs-navigation-heading", host: { classAttribute: "ngs-navigation-heading" }, exportAs: ["ngsNavigationHeading"], ngImport: i0, template: "<div class=\"content\"><ng-content/></div>\n", styles: [":host{display:block;text-transform:var(--ngs-navigation-heading-text-transform);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0;color:var(--ngs-navigation-heading-color);font-size:var(--ngs-navigation-heading-font-size);font-weight:var(--ngs-navigation-heading-font-weight);padding:var(--ngs-navigation-heading-padding);margin-bottom:var(--ngs-navigation-heading-margin-bottom);text-align:var(--ngs-navigation-heading-text-align);height:var(--ngs-nav-heading-height);align-items:center}:host:first-child{margin-top:0}:host .content{overflow:hidden;text-overflow:ellipsis}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
258
- }
259
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationHeading, decorators: [{
260
- type: Component,
261
- args: [{ selector: 'ngs-navigation-heading', exportAs: 'ngsNavigationHeading', changeDetection: ChangeDetectionStrategy.Eager, host: {
262
- 'class': 'ngs-navigation-heading'
263
- }, template: "<div class=\"content\"><ng-content/></div>\n", styles: [":host{display:block;text-transform:var(--ngs-navigation-heading-text-transform);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0;color:var(--ngs-navigation-heading-color);font-size:var(--ngs-navigation-heading-font-size);font-weight:var(--ngs-navigation-heading-font-weight);padding:var(--ngs-navigation-heading-padding);margin-bottom:var(--ngs-navigation-heading-margin-bottom);text-align:var(--ngs-navigation-heading-text-align);height:var(--ngs-nav-heading-height);align-items:center}:host:first-child{margin-top:0}:host .content{overflow:hidden;text-overflow:ellipsis}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
264
- }] });
265
-
266
- class NavigationDivider {
267
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationDivider, deps: [], target: i0.ɵɵFactoryTarget.Component });
268
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: NavigationDivider, isStandalone: true, selector: "ngs-navigation-divider", host: { classAttribute: "ngs-navigation-divider" }, exportAs: ["ngsNavigationDivider"], ngImport: i0, template: '', isInline: true, styles: [":host{display:block;height:var(--ngs-navigation-divider-height);background:var(--ngs-navigation-divider-bg);margin:var(--ngs-navigation-divider-margin)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
269
- }
270
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationDivider, decorators: [{
271
- type: Component,
272
- args: [{ selector: 'ngs-navigation-divider', exportAs: 'ngsNavigationDivider', template: '', changeDetection: ChangeDetectionStrategy.Eager, host: {
273
- 'class': 'ngs-navigation-divider'
274
- }, styles: [":host{display:block;height:var(--ngs-navigation-divider-height);background:var(--ngs-navigation-divider-bg);margin:var(--ngs-navigation-divider-margin)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
275
- }] });
276
-
58
+ var NavigationItem = class NavigationItem {
59
+ store = inject(NavigationStore);
60
+ _navigation = inject(NAVIGATION);
61
+ _elementRef = inject(ElementRef);
62
+ parentGroup = inject(NAVIGATION_GROUP, { optional: true });
63
+ iconRef = contentChild(NavigationItemIconDirective, ...ngDevMode ? [{ debugName: "iconRef" }] : /* istanbul ignore next */ []);
64
+ active = computed(() => {
65
+ return this.store.activeKey() === this.key();
66
+ }, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
67
+ get api() {
68
+ return { isActive: () => this.active() };
69
+ }
70
+ key = input(`ngs-navigation-item-${nextKey++}`, ...ngDevMode ? [{ debugName: "key" }] : /* istanbul ignore next */ []);
71
+ forceActive = input(false, {
72
+ ...ngDevMode ? { debugName: "forceActive" } : /* istanbul ignore next */ {},
73
+ transform: booleanAttribute
74
+ });
75
+ badgeTextOnly = input(false, {
76
+ ...ngDevMode ? { debugName: "badgeTextOnly" } : /* istanbul ignore next */ {},
77
+ transform: booleanAttribute
78
+ });
79
+ click(event) {
80
+ if (!this.key()) return;
81
+ this._navigation.itemClicked.emit(this.key());
82
+ this.store.setActiveKey(this.key());
83
+ if (this.parentGroup) this.store.setActiveGroupKey(this.parentGroup.key());
84
+ else this.store.setActiveGroupKey(null);
85
+ }
86
+ get _hostElement() {
87
+ return this._elementRef;
88
+ }
89
+ get iconRefTemplate() {
90
+ return this.iconRef()?.templateRef;
91
+ }
92
+ static ɵfac = i0.ɵɵngDeclareFactory({
93
+ minVersion: "12.0.0",
94
+ version: "22.3.0",
95
+ ngImport: i0,
96
+ type: NavigationItem,
97
+ deps: [],
98
+ target: i0.ɵɵFactoryTarget.Component
99
+ });
100
+ static ɵcmp = i0.ɵɵngDeclareComponent({
101
+ minVersion: "17.0.0",
102
+ version: "22.3.0",
103
+ type: NavigationItem,
104
+ isStandalone: true,
105
+ selector: "ngs-navigation-item,[ngs-navigation-item]",
106
+ inputs: {
107
+ key: {
108
+ classPropertyName: "key",
109
+ publicName: "key",
110
+ isSignal: true,
111
+ isRequired: false,
112
+ transformFunction: null
113
+ },
114
+ forceActive: {
115
+ classPropertyName: "forceActive",
116
+ publicName: "forceActive",
117
+ isSignal: true,
118
+ isRequired: false,
119
+ transformFunction: null
120
+ },
121
+ badgeTextOnly: {
122
+ classPropertyName: "badgeTextOnly",
123
+ publicName: "badgeTextOnly",
124
+ isSignal: true,
125
+ isRequired: false,
126
+ transformFunction: null
127
+ }
128
+ },
129
+ host: {
130
+ listeners: { "click": "click($event)" },
131
+ properties: {
132
+ "class.is-active": "forceActive() || active()",
133
+ "class.is-badge-text-only": "badgeTextOnly()"
134
+ },
135
+ classAttribute: "ngs-navigation-item"
136
+ },
137
+ queries: [{
138
+ propertyName: "iconRef",
139
+ first: true,
140
+ predicate: NavigationItemIconDirective,
141
+ descendants: true,
142
+ isSignal: true
143
+ }],
144
+ exportAs: ["ngsNavigationItem"],
145
+ ngImport: i0,
146
+ template: "<div class=\"inner\" ngsRipple>\n <div class=\"icon\">\n <ng-content select=\"[ngsNavigationItemIcon]\"/>\n @if (iconRef()) {\n <ng-container [ngTemplateOutlet]=\"iconRefTemplate\"/>\n }\n </div>\n <span class=\"text grow\"><ng-content/></span>\n <div class=\"badge\">\n <ng-content select=\"[ngsNavigationItemBadge]\"/>\n </div>\n</div>\n",
147
+ styles: [":host{display:block;text-decoration:none;position:relative}:host .inner{display:flex;align-items:center;min-width:0;white-space:nowrap;flex:none;cursor:pointer;-webkit-user-select:none;user-select:none;margin:0;width:var(--ngs-navigation-item-width);background:var(--ngs-navigation-item-bg);min-height:var(--ngs-navigation-item-height);padding:var(--ngs-navigation-item-padding);font-size:var(--ngs-navigation-item-font-size);border-radius:var(--ngs-navigation-item-border-radius);font-weight:var(--ngs-navigation-item-font-weight);color:var(--ngs-navigation-item-color);gap:var(--ngs-navigation-item-gap)}:host:hover{text-decoration:none}:host:hover .inner{transition:background-color .2s;background:var(--ngs-navigation-item-hover-bg);color:var(--ngs-navigation-item-hover-color)}:host .text{overflow:hidden;text-overflow:ellipsis}:host .badge:empty{display:none}:host .badge{display:inline-flex;flex:none;border-radius:calc(infinity * 1px);height:var(--ngs-nav-badge-size);min-width:var(--ngs-nav-badge-size);align-items:center;justify-content:center;font-size:var(--ngs-font-size-xs);padding:var(--ngs-nav-badge-padding);font-weight:700}:host:not(.is-badge-text-only) .badge{font-weight:600;font-size:var(--ngs-font-size-xs);background:var(--ngs-nav-badge-bg, var(--ngs-color-primary));color:var(--ngs-nav-badge-color, var(--ngs-color-on-primary))}:host .icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--ngs-navigation-item-icon-width);color:var(--ngs-navigation-item-icon-color)}:host .icon:empty{display:none}:host.is-active .inner,:host.is-active:hover .inner{background:var(--ngs-navigation-item-active-bg);color:var(--ngs-navigation-item-active-color);font-weight:var(--ngs-navigation-item-active-font-weight)}:host:not(.is-active):hover{text-decoration:none}:host:not(.is-active):hover .icon{color:var(--ngs-navigation-item-hover-icon-color)}:host.is-active .icon{color:var(--ngs-navigation-item-active-icon-color)}:host-context(.ngs-navigation-group-menu) .inner{margin:var(--ngs-navigation-nested-item-margin);width:calc(var(--ngs-navigation-item-width) - var(--ngs-navigation-nested-item-offset));background:var(--ngs-navigation-nested-item-bg);min-height:var(--ngs-navigation-nested-item-height);padding:var(--ngs-navigation-nested-item-padding);color:var(--ngs-navigation-nested-item-color)}:host-context(.ngs-navigation-group-menu):hover .inner{background:var(--ngs-navigation-nested-item-hover-bg);color:var(--ngs-navigation-nested-item-hover-color)}:host-context(.ngs-navigation-group-menu).is-active .inner,:host-context(.ngs-navigation-group-menu).is-active:hover .inner{background:var(--ngs-navigation-nested-item-active-bg);color:var(--ngs-navigation-nested-item-active-color);font-weight:var(--ngs-navigation-item-active-font-weight)}:host-context(.ngs-navigation-group-menu):not(:last-child):before{content:\"\";position:absolute;top:0;inset-inline-start:calc(var(--spacing, .25rem) * 2);bottom:-10px;width:1px;background:var(--ngs-navigation-group-tree-lines-color);z-index:0}:host-context(.ngs-navigation-group-menu):after{content:\"\";position:absolute;top:0;inset-inline-start:calc(var(--spacing, .25rem) * 2);width:calc(var(--ngs-navigation-nested-item-height) / 1.5 - calc(var(--spacing, .25rem) * 2));height:calc(var(--ngs-navigation-nested-item-height) / 2);border-bottom-left-radius:calc(var(--ngs-navigation-nested-item-height) / 4);border-left:1px solid var(--ngs-navigation-group-tree-lines-color);border-bottom:1px solid var(--ngs-navigation-group-tree-lines-color)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
148
+ dependencies: [{
149
+ kind: "directive",
150
+ type: Ripple,
151
+ selector: "[ngsRipple]",
152
+ inputs: [
153
+ "ngsRippleColor",
154
+ "ngsRippleUnbounded",
155
+ "ngsRippleCentered",
156
+ "ngsRippleRadius",
157
+ "ngsRippleAnimation",
158
+ "ngsRippleDisabled",
159
+ "ngsRippleTrigger"
160
+ ],
161
+ outputs: [
162
+ "ngsRippleCenteredChange",
163
+ "ngsRippleDisabledChange",
164
+ "ngsRippleTriggerChange"
165
+ ],
166
+ exportAs: ["ngsRipple"]
167
+ }, {
168
+ kind: "directive",
169
+ type: NgTemplateOutlet,
170
+ selector: "[ngTemplateOutlet]",
171
+ inputs: [
172
+ "ngTemplateOutletContext",
173
+ "ngTemplateOutlet",
174
+ "ngTemplateOutletInjector"
175
+ ]
176
+ }],
177
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
178
+ });
179
+ };
180
+ i0.ɵɵngDeclareClassMetadata({
181
+ minVersion: "12.0.0",
182
+ version: "22.3.0",
183
+ ngImport: i0,
184
+ type: NavigationItem,
185
+ decorators: [{
186
+ type: Component,
187
+ args: [{
188
+ selector: "ngs-navigation-item,[ngs-navigation-item]",
189
+ exportAs: "ngsNavigationItem",
190
+ imports: [Ripple, NgTemplateOutlet],
191
+ changeDetection: ChangeDetectionStrategy.OnPush,
192
+ host: {
193
+ "class": "ngs-navigation-item",
194
+ "[class.is-active]": "forceActive() || active()",
195
+ "[class.is-badge-text-only]": "badgeTextOnly()",
196
+ "(click)": "click($event)"
197
+ },
198
+ template: "<div class=\"inner\" ngsRipple>\n <div class=\"icon\">\n <ng-content select=\"[ngsNavigationItemIcon]\"/>\n @if (iconRef()) {\n <ng-container [ngTemplateOutlet]=\"iconRefTemplate\"/>\n }\n </div>\n <span class=\"text grow\"><ng-content/></span>\n <div class=\"badge\">\n <ng-content select=\"[ngsNavigationItemBadge]\"/>\n </div>\n</div>\n",
199
+ styles: [":host{display:block;text-decoration:none;position:relative}:host .inner{display:flex;align-items:center;min-width:0;white-space:nowrap;flex:none;cursor:pointer;-webkit-user-select:none;user-select:none;margin:0;width:var(--ngs-navigation-item-width);background:var(--ngs-navigation-item-bg);min-height:var(--ngs-navigation-item-height);padding:var(--ngs-navigation-item-padding);font-size:var(--ngs-navigation-item-font-size);border-radius:var(--ngs-navigation-item-border-radius);font-weight:var(--ngs-navigation-item-font-weight);color:var(--ngs-navigation-item-color);gap:var(--ngs-navigation-item-gap)}:host:hover{text-decoration:none}:host:hover .inner{transition:background-color .2s;background:var(--ngs-navigation-item-hover-bg);color:var(--ngs-navigation-item-hover-color)}:host .text{overflow:hidden;text-overflow:ellipsis}:host .badge:empty{display:none}:host .badge{display:inline-flex;flex:none;border-radius:calc(infinity * 1px);height:var(--ngs-nav-badge-size);min-width:var(--ngs-nav-badge-size);align-items:center;justify-content:center;font-size:var(--ngs-font-size-xs);padding:var(--ngs-nav-badge-padding);font-weight:700}:host:not(.is-badge-text-only) .badge{font-weight:600;font-size:var(--ngs-font-size-xs);background:var(--ngs-nav-badge-bg, var(--ngs-color-primary));color:var(--ngs-nav-badge-color, var(--ngs-color-on-primary))}:host .icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--ngs-navigation-item-icon-width);color:var(--ngs-navigation-item-icon-color)}:host .icon:empty{display:none}:host.is-active .inner,:host.is-active:hover .inner{background:var(--ngs-navigation-item-active-bg);color:var(--ngs-navigation-item-active-color);font-weight:var(--ngs-navigation-item-active-font-weight)}:host:not(.is-active):hover{text-decoration:none}:host:not(.is-active):hover .icon{color:var(--ngs-navigation-item-hover-icon-color)}:host.is-active .icon{color:var(--ngs-navigation-item-active-icon-color)}:host-context(.ngs-navigation-group-menu) .inner{margin:var(--ngs-navigation-nested-item-margin);width:calc(var(--ngs-navigation-item-width) - var(--ngs-navigation-nested-item-offset));background:var(--ngs-navigation-nested-item-bg);min-height:var(--ngs-navigation-nested-item-height);padding:var(--ngs-navigation-nested-item-padding);color:var(--ngs-navigation-nested-item-color)}:host-context(.ngs-navigation-group-menu):hover .inner{background:var(--ngs-navigation-nested-item-hover-bg);color:var(--ngs-navigation-nested-item-hover-color)}:host-context(.ngs-navigation-group-menu).is-active .inner,:host-context(.ngs-navigation-group-menu).is-active:hover .inner{background:var(--ngs-navigation-nested-item-active-bg);color:var(--ngs-navigation-nested-item-active-color);font-weight:var(--ngs-navigation-item-active-font-weight)}:host-context(.ngs-navigation-group-menu):not(:last-child):before{content:\"\";position:absolute;top:0;inset-inline-start:calc(var(--spacing, .25rem) * 2);bottom:-10px;width:1px;background:var(--ngs-navigation-group-tree-lines-color);z-index:0}:host-context(.ngs-navigation-group-menu):after{content:\"\";position:absolute;top:0;inset-inline-start:calc(var(--spacing, .25rem) * 2);width:calc(var(--ngs-navigation-nested-item-height) / 1.5 - calc(var(--spacing, .25rem) * 2));height:calc(var(--ngs-navigation-nested-item-height) / 2);border-bottom-left-radius:calc(var(--ngs-navigation-nested-item-height) / 4);border-left:1px solid var(--ngs-navigation-group-tree-lines-color);border-bottom:1px solid var(--ngs-navigation-group-tree-lines-color)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
200
+ }]
201
+ }],
202
+ propDecorators: {
203
+ iconRef: [{
204
+ type: i0.ContentChild,
205
+ args: [i0.forwardRef(() => NavigationItemIconDirective), { isSignal: true }]
206
+ }],
207
+ key: [{
208
+ type: i0.Input,
209
+ args: [{
210
+ isSignal: true,
211
+ alias: "key",
212
+ required: false
213
+ }]
214
+ }],
215
+ forceActive: [{
216
+ type: i0.Input,
217
+ args: [{
218
+ isSignal: true,
219
+ alias: "forceActive",
220
+ required: false
221
+ }]
222
+ }],
223
+ badgeTextOnly: [{
224
+ type: i0.Input,
225
+ args: [{
226
+ isSignal: true,
227
+ alias: "badgeTextOnly",
228
+ required: false
229
+ }]
230
+ }]
231
+ }
232
+ });
233
+ var NavigationItemDefDirective = class NavigationItemDefDirective {
234
+ template;
235
+ when = input(void 0, {
236
+ ...ngDevMode ? { debugName: "when" } : /* istanbul ignore next */ {},
237
+ alias: "ngsNavigationItemDef"
238
+ });
239
+ constructor(template) {
240
+ this.template = template;
241
+ }
242
+ static ɵfac = i0.ɵɵngDeclareFactory({
243
+ minVersion: "12.0.0",
244
+ version: "22.3.0",
245
+ ngImport: i0,
246
+ type: NavigationItemDefDirective,
247
+ deps: [{ token: i0.TemplateRef }],
248
+ target: i0.ɵɵFactoryTarget.Directive
249
+ });
250
+ static ɵdir = i0.ɵɵngDeclareDirective({
251
+ minVersion: "17.1.0",
252
+ version: "22.3.0",
253
+ type: NavigationItemDefDirective,
254
+ isStandalone: true,
255
+ selector: "[ngsNavigationItemDef]",
256
+ inputs: { when: {
257
+ classPropertyName: "when",
258
+ publicName: "ngsNavigationItemDef",
259
+ isSignal: true,
260
+ isRequired: false,
261
+ transformFunction: null
262
+ } },
263
+ ngImport: i0
264
+ });
265
+ };
266
+ i0.ɵɵngDeclareClassMetadata({
267
+ minVersion: "12.0.0",
268
+ version: "22.3.0",
269
+ ngImport: i0,
270
+ type: NavigationItemDefDirective,
271
+ decorators: [{
272
+ type: Directive,
273
+ args: [{
274
+ selector: "[ngsNavigationItemDef]",
275
+ standalone: true
276
+ }]
277
+ }],
278
+ ctorParameters: () => [{ type: i0.TemplateRef }],
279
+ propDecorators: { when: [{
280
+ type: i0.Input,
281
+ args: [{
282
+ isSignal: true,
283
+ alias: "ngsNavigationItemDef",
284
+ required: false
285
+ }]
286
+ }] }
287
+ });
288
+ var Navigation = class Navigation {
289
+ store = inject(NavigationStore);
290
+ _elementRef = inject(ElementRef);
291
+ _renderer = inject(Renderer2);
292
+ location = inject(Location);
293
+ router = inject(Router);
294
+ destroyRef = inject(DestroyRef);
295
+ _items = contentChildren(NavigationItem, {
296
+ ...ngDevMode ? { debugName: "_items" } : /* istanbul ignore next */ {},
297
+ descendants: true
298
+ });
299
+ _defs = contentChildren(NavigationItemDefDirective, ...ngDevMode ? [{ debugName: "_defs" }] : /* istanbul ignore next */ []);
300
+ activeKey = input(...ngDevMode ? [void 0, { debugName: "activeKey" }] : /* istanbul ignore next */ []);
301
+ dataSource = input(...ngDevMode ? [void 0, { debugName: "dataSource" }] : /* istanbul ignore next */ []);
302
+ itemTypeProperty = input("type", ...ngDevMode ? [{ debugName: "itemTypeProperty" }] : /* istanbul ignore next */ []);
303
+ appearance = input(...ngDevMode ? [void 0, { debugName: "appearance" }] : /* istanbul ignore next */ []);
304
+ activateByRoute = input(false, {
305
+ ...ngDevMode ? { debugName: "activateByRoute" } : /* istanbul ignore next */ {},
306
+ transform: booleanAttribute
307
+ });
308
+ autoScrollToActiveItem = input(false, {
309
+ ...ngDevMode ? { debugName: "autoScrollToActiveItem" } : /* istanbul ignore next */ {},
310
+ transform: booleanAttribute
311
+ });
312
+ itemClicked = output();
313
+ constructor() {
314
+ afterNextRender(() => {
315
+ if (!this.autoScrollToActiveItem()) return;
316
+ this._items().forEach((item) => {
317
+ if (item.active()) {
318
+ let parentElement = this._elementRef.nativeElement.parentNode || null;
319
+ const itemElement = item._hostElement.nativeElement;
320
+ while (parentElement !== null) if (this._hasScroll(parentElement)) {
321
+ if (!this._isScrolledIntoView(itemElement, parentElement)) {
322
+ const parentRect = parentElement.getBoundingClientRect();
323
+ const elementRect = itemElement.getBoundingClientRect();
324
+ parentElement.scrollTop = elementRect.top - parentRect.height / 2;
325
+ }
326
+ parentElement = null;
327
+ } else parentElement = parentElement.parentNode || null;
328
+ }
329
+ });
330
+ });
331
+ }
332
+ ngAfterContentInit() {
333
+ if (!this.activateByRoute()) return;
334
+ this.findActiveItemByRoute();
335
+ this.router.events.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((event) => {
336
+ if (event instanceof NavigationEnd) this.findActiveItemByRoute();
337
+ });
338
+ }
339
+ ngOnChanges(changes) {
340
+ if (changes["activeKey"]) this.store.setActiveKey(changes["activeKey"].currentValue);
341
+ if (changes["appearance"]) this._renderer.setAttribute(this._elementRef.nativeElement, "data-appearance", changes["appearance"].currentValue);
342
+ }
343
+ _hasScroll(element) {
344
+ if (!element.getBoundingClientRect) return false;
345
+ return Math.ceil(element.scrollHeight) > Math.ceil(element.getBoundingClientRect().height);
346
+ }
347
+ _isScrolledIntoView(element, parent) {
348
+ const elementRect = element.getBoundingClientRect();
349
+ const parentRect = parent.getBoundingClientRect();
350
+ return elementRect.top >= 0 && elementRect.bottom <= parentRect.height;
351
+ }
352
+ findActiveItemByRoute() {
353
+ const activeItem = this._items().find((item) => {
354
+ const element = item._hostElement.nativeElement;
355
+ if (element.tagName === "A") {
356
+ const href = element.getAttribute("href");
357
+ if (href) {
358
+ if (href === this.location.path()) return true;
359
+ return href !== "/" && this.location.path().includes(href);
360
+ }
361
+ }
362
+ return null;
363
+ });
364
+ if (activeItem) this.store.setActiveKey(activeItem.key());
365
+ }
366
+ getTemplate(item) {
367
+ return (this._defs().find((d) => {
368
+ const when = d.when();
369
+ if (when) {
370
+ if (typeof when === "function") return when(item);
371
+ return item[this.itemTypeProperty()] === when;
372
+ }
373
+ return false;
374
+ }) || this._defs().find((d) => !d.when()))?.template || null;
375
+ }
376
+ static ɵfac = i0.ɵɵngDeclareFactory({
377
+ minVersion: "12.0.0",
378
+ version: "22.3.0",
379
+ ngImport: i0,
380
+ type: Navigation,
381
+ deps: [],
382
+ target: i0.ɵɵFactoryTarget.Component
383
+ });
384
+ static ɵcmp = i0.ɵɵngDeclareComponent({
385
+ minVersion: "17.0.0",
386
+ version: "22.3.0",
387
+ type: Navigation,
388
+ isStandalone: true,
389
+ selector: "ngs-navigation",
390
+ inputs: {
391
+ activeKey: {
392
+ classPropertyName: "activeKey",
393
+ publicName: "activeKey",
394
+ isSignal: true,
395
+ isRequired: false,
396
+ transformFunction: null
397
+ },
398
+ dataSource: {
399
+ classPropertyName: "dataSource",
400
+ publicName: "dataSource",
401
+ isSignal: true,
402
+ isRequired: false,
403
+ transformFunction: null
404
+ },
405
+ itemTypeProperty: {
406
+ classPropertyName: "itemTypeProperty",
407
+ publicName: "itemTypeProperty",
408
+ isSignal: true,
409
+ isRequired: false,
410
+ transformFunction: null
411
+ },
412
+ appearance: {
413
+ classPropertyName: "appearance",
414
+ publicName: "appearance",
415
+ isSignal: true,
416
+ isRequired: false,
417
+ transformFunction: null
418
+ },
419
+ activateByRoute: {
420
+ classPropertyName: "activateByRoute",
421
+ publicName: "activateByRoute",
422
+ isSignal: true,
423
+ isRequired: false,
424
+ transformFunction: null
425
+ },
426
+ autoScrollToActiveItem: {
427
+ classPropertyName: "autoScrollToActiveItem",
428
+ publicName: "autoScrollToActiveItem",
429
+ isSignal: true,
430
+ isRequired: false,
431
+ transformFunction: null
432
+ }
433
+ },
434
+ outputs: { itemClicked: "itemClicked" },
435
+ host: { classAttribute: "ngs-navigation" },
436
+ providers: [NavigationStore, {
437
+ provide: NAVIGATION,
438
+ useExisting: forwardRef(() => Navigation)
439
+ }],
440
+ queries: [{
441
+ propertyName: "_items",
442
+ predicate: NavigationItem,
443
+ descendants: true,
444
+ isSignal: true
445
+ }, {
446
+ propertyName: "_defs",
447
+ predicate: NavigationItemDefDirective,
448
+ isSignal: true
449
+ }],
450
+ exportAs: ["ngsNavigation"],
451
+ usesOnChanges: true,
452
+ ngImport: i0,
453
+ template: "@if (dataSource(); as data) {\n @for (item of data; track item) {\n <ng-container *ngTemplateOutlet=\"getTemplate(item); context: { $implicit: item }\" />\n }\n} @else {\n <ng-content/>\n}\n",
454
+ styles: [":host{--ngs-navigation-bg: inherit;--ngs-navigation-items-gap: var(--ngs-nav-items-gap);--ngs-navigation-item-width: var(--ngs-nav-item-width);--ngs-navigation-item-bg: transparent;--ngs-navigation-item-height: var(--ngs-nav-item-height);--ngs-navigation-item-padding: var(--ngs-nav-item-padding);--ngs-navigation-item-font-size: var(--ngs-nav-item-font-size);--ngs-navigation-item-border-radius: var(--ngs-nav-item-radius);--ngs-navigation-item-border-width: var(--ngs-nav-item-border-width);--ngs-navigation-item-border-color: var(--ngs-nav-item-border-color);--ngs-navigation-item-font-weight: var(--ngs-nav-item-font-weight);--ngs-navigation-item-active-font-weight: var(--ngs-nav-item-active-font-weight);--ngs-navigation-item-color: var(--ngs-nav-item-color);--ngs-navigation-item-hover-bg: var(--ngs-nav-item-hover-bg);--ngs-navigation-item-active-bg: var(--ngs-nav-item-active-bg);--ngs-navigation-item-hover-color: var(--ngs-nav-item-hover-color);--ngs-navigation-item-active-color: var(--ngs-nav-item-active-color);--ngs-navigation-item-icon-color: var(--ngs-nav-item-icon-color);--ngs-navigation-item-icon-width: var(--ngs-nav-item-icon-width);--ngs-navigation-item-hover-icon-color: var(--ngs-nav-item-hover-icon-color);--ngs-navigation-item-active-icon-color: var(--ngs-nav-item-active-icon-color);--ngs-navigation-item-icon-size: var(--ngs-nav-item-icon-size);--ngs-navigation-item-gap: var(--ngs-nav-item-gap);--ngs-navigation-item-has-icon-padding-start: var(--ngs-nav-item-gap);--ngs-navigation-heading-color: var(--ngs-color-on-surface-variant);--ngs-navigation-heading-font-size: var(--ngs-nav-heading-font-size);--ngs-navigation-heading-font-weight: var(--ngs-nav-heading-font-weight);--ngs-navigation-heading-padding: var(--ngs-nav-heading-padding);--ngs-navigation-heading-margin-bottom: var(--ngs-nav-heading-margin-bottom);--ngs-navigation-heading-after-margin: var(--ngs-nav-heading-after-margin);--ngs-navigation-heading-text-transform: var(--ngs-nav-heading-text-transform);--ngs-navigation-divider-height: var(--ngs-nav-divider-height);--ngs-navigation-divider-bg: var(--ngs-color-subtle);--ngs-navigation-divider-margin: var(--ngs-nav-divider-margin);--ngs-navigation-group-toggle-has-icon-padding-end: var(--ngs-nav-group-toggle-padding-end);--ngs-navigation-group-toggle-icon-color: var(--ngs-color-on-surface-variant);--ngs-navigation-group-toggle-icon-position-end: var(--ngs-nav-group-toggle-icon-position-end);--ngs-navigation-group-toggle-icon-size: var(--ngs-nav-group-toggle-icon-size);--ngs-navigation-group-menu-padding-start: 0;--ngs-navigation-group-toggle-bg: transparent;--ngs-navigation-group-toggle-active-bg: var(--ngs-nav-item-active-bg);--ngs-navigation-group-toggle-active-color: var(--ngs-nav-item-active-color);--ngs-navigation-nested-item-bg: transparent;--ngs-navigation-nested-item-height: var(--ngs-nav-nested-item-height);--ngs-navigation-nested-item-padding: var(--ngs-nav-nested-item-padding);--ngs-navigation-nested-item-offset: calc(var(--ngs-navigation-item-icon-width) + var(--ngs-navigation-item-gap));--ngs-navigation-nested-item-margin: var(--ngs-nav-nested-item-margin);--ngs-navigation-nested-item-border-radius: var(--ngs-nav-nested-item-border-radius);--ngs-navigation-nested-item-color: var(--ngs-nav-item-color);--ngs-navigation-nested-item-hover-bg: var(--ngs-nav-item-hover-bg);--ngs-navigation-nested-item-active-bg: var(--ngs-nav-item-active-bg);--ngs-navigation-nested-item-hover-color: var(--ngs-nav-item-hover-color);--ngs-navigation-nested-item-active-color: var(--ngs-nav-item-active-color);--ngs-navigation-nested-item-indicator-width: var(--ngs-nav-nested-item-indicator-width);--ngs-navigation-nested-item-indicator-height: var(--ngs-nav-nested-item-indicator-height);--ngs-navigation-nested-item-indicator-bg: var(--ngs-color-outline);--ngs-navigation-nested-item-indicator-position-start: var(--ngs-nav-nested-item-indicator-position-start);--ngs-navigation-group-active-bg: transparent;--ngs-navigation-group-border-radius: 0;--ngs-navigation-group-tree-lines-color: var(--ngs-color-outline-variant);--ngs-navigation-heading-text-align: var(--ngs-nav-heading-text-align);display:flex;flex-direction:column;gap:var(--ngs-navigation-items-gap);background:var(--ngs-navigation-bg)}:host ::ng-deep .ngs-navigation-group-toggle-icon{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host ::ng-deep>*+.ngs-navigation-heading{margin-top:var(--ngs-navigation-heading-after-margin)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
455
+ dependencies: [{
456
+ kind: "directive",
457
+ type: NgTemplateOutlet,
458
+ selector: "[ngTemplateOutlet]",
459
+ inputs: [
460
+ "ngTemplateOutletContext",
461
+ "ngTemplateOutlet",
462
+ "ngTemplateOutletInjector"
463
+ ]
464
+ }],
465
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
466
+ });
467
+ };
468
+ i0.ɵɵngDeclareClassMetadata({
469
+ minVersion: "12.0.0",
470
+ version: "22.3.0",
471
+ ngImport: i0,
472
+ type: Navigation,
473
+ decorators: [{
474
+ type: Component,
475
+ args: [{
476
+ selector: "ngs-navigation",
477
+ exportAs: "ngsNavigation",
478
+ imports: [NgTemplateOutlet],
479
+ providers: [NavigationStore, {
480
+ provide: NAVIGATION,
481
+ useExisting: forwardRef(() => Navigation)
482
+ }],
483
+ changeDetection: ChangeDetectionStrategy.OnPush,
484
+ standalone: true,
485
+ host: { "class": "ngs-navigation" },
486
+ template: "@if (dataSource(); as data) {\n @for (item of data; track item) {\n <ng-container *ngTemplateOutlet=\"getTemplate(item); context: { $implicit: item }\" />\n }\n} @else {\n <ng-content/>\n}\n",
487
+ styles: [":host{--ngs-navigation-bg: inherit;--ngs-navigation-items-gap: var(--ngs-nav-items-gap);--ngs-navigation-item-width: var(--ngs-nav-item-width);--ngs-navigation-item-bg: transparent;--ngs-navigation-item-height: var(--ngs-nav-item-height);--ngs-navigation-item-padding: var(--ngs-nav-item-padding);--ngs-navigation-item-font-size: var(--ngs-nav-item-font-size);--ngs-navigation-item-border-radius: var(--ngs-nav-item-radius);--ngs-navigation-item-border-width: var(--ngs-nav-item-border-width);--ngs-navigation-item-border-color: var(--ngs-nav-item-border-color);--ngs-navigation-item-font-weight: var(--ngs-nav-item-font-weight);--ngs-navigation-item-active-font-weight: var(--ngs-nav-item-active-font-weight);--ngs-navigation-item-color: var(--ngs-nav-item-color);--ngs-navigation-item-hover-bg: var(--ngs-nav-item-hover-bg);--ngs-navigation-item-active-bg: var(--ngs-nav-item-active-bg);--ngs-navigation-item-hover-color: var(--ngs-nav-item-hover-color);--ngs-navigation-item-active-color: var(--ngs-nav-item-active-color);--ngs-navigation-item-icon-color: var(--ngs-nav-item-icon-color);--ngs-navigation-item-icon-width: var(--ngs-nav-item-icon-width);--ngs-navigation-item-hover-icon-color: var(--ngs-nav-item-hover-icon-color);--ngs-navigation-item-active-icon-color: var(--ngs-nav-item-active-icon-color);--ngs-navigation-item-icon-size: var(--ngs-nav-item-icon-size);--ngs-navigation-item-gap: var(--ngs-nav-item-gap);--ngs-navigation-item-has-icon-padding-start: var(--ngs-nav-item-gap);--ngs-navigation-heading-color: var(--ngs-color-on-surface-variant);--ngs-navigation-heading-font-size: var(--ngs-nav-heading-font-size);--ngs-navigation-heading-font-weight: var(--ngs-nav-heading-font-weight);--ngs-navigation-heading-padding: var(--ngs-nav-heading-padding);--ngs-navigation-heading-margin-bottom: var(--ngs-nav-heading-margin-bottom);--ngs-navigation-heading-after-margin: var(--ngs-nav-heading-after-margin);--ngs-navigation-heading-text-transform: var(--ngs-nav-heading-text-transform);--ngs-navigation-divider-height: var(--ngs-nav-divider-height);--ngs-navigation-divider-bg: var(--ngs-color-subtle);--ngs-navigation-divider-margin: var(--ngs-nav-divider-margin);--ngs-navigation-group-toggle-has-icon-padding-end: var(--ngs-nav-group-toggle-padding-end);--ngs-navigation-group-toggle-icon-color: var(--ngs-color-on-surface-variant);--ngs-navigation-group-toggle-icon-position-end: var(--ngs-nav-group-toggle-icon-position-end);--ngs-navigation-group-toggle-icon-size: var(--ngs-nav-group-toggle-icon-size);--ngs-navigation-group-menu-padding-start: 0;--ngs-navigation-group-toggle-bg: transparent;--ngs-navigation-group-toggle-active-bg: var(--ngs-nav-item-active-bg);--ngs-navigation-group-toggle-active-color: var(--ngs-nav-item-active-color);--ngs-navigation-nested-item-bg: transparent;--ngs-navigation-nested-item-height: var(--ngs-nav-nested-item-height);--ngs-navigation-nested-item-padding: var(--ngs-nav-nested-item-padding);--ngs-navigation-nested-item-offset: calc(var(--ngs-navigation-item-icon-width) + var(--ngs-navigation-item-gap));--ngs-navigation-nested-item-margin: var(--ngs-nav-nested-item-margin);--ngs-navigation-nested-item-border-radius: var(--ngs-nav-nested-item-border-radius);--ngs-navigation-nested-item-color: var(--ngs-nav-item-color);--ngs-navigation-nested-item-hover-bg: var(--ngs-nav-item-hover-bg);--ngs-navigation-nested-item-active-bg: var(--ngs-nav-item-active-bg);--ngs-navigation-nested-item-hover-color: var(--ngs-nav-item-hover-color);--ngs-navigation-nested-item-active-color: var(--ngs-nav-item-active-color);--ngs-navigation-nested-item-indicator-width: var(--ngs-nav-nested-item-indicator-width);--ngs-navigation-nested-item-indicator-height: var(--ngs-nav-nested-item-indicator-height);--ngs-navigation-nested-item-indicator-bg: var(--ngs-color-outline);--ngs-navigation-nested-item-indicator-position-start: var(--ngs-nav-nested-item-indicator-position-start);--ngs-navigation-group-active-bg: transparent;--ngs-navigation-group-border-radius: 0;--ngs-navigation-group-tree-lines-color: var(--ngs-color-outline-variant);--ngs-navigation-heading-text-align: var(--ngs-nav-heading-text-align);display:flex;flex-direction:column;gap:var(--ngs-navigation-items-gap);background:var(--ngs-navigation-bg)}:host ::ng-deep .ngs-navigation-group-toggle-icon{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host ::ng-deep>*+.ngs-navigation-heading{margin-top:var(--ngs-navigation-heading-after-margin)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
488
+ }]
489
+ }],
490
+ ctorParameters: () => [],
491
+ propDecorators: {
492
+ _items: [{
493
+ type: i0.ContentChildren,
494
+ args: [i0.forwardRef(() => NavigationItem), {
495
+ descendants: true,
496
+ isSignal: true
497
+ }]
498
+ }],
499
+ _defs: [{
500
+ type: i0.ContentChildren,
501
+ args: [i0.forwardRef(() => NavigationItemDefDirective), { isSignal: true }]
502
+ }],
503
+ activeKey: [{
504
+ type: i0.Input,
505
+ args: [{
506
+ isSignal: true,
507
+ alias: "activeKey",
508
+ required: false
509
+ }]
510
+ }],
511
+ dataSource: [{
512
+ type: i0.Input,
513
+ args: [{
514
+ isSignal: true,
515
+ alias: "dataSource",
516
+ required: false
517
+ }]
518
+ }],
519
+ itemTypeProperty: [{
520
+ type: i0.Input,
521
+ args: [{
522
+ isSignal: true,
523
+ alias: "itemTypeProperty",
524
+ required: false
525
+ }]
526
+ }],
527
+ appearance: [{
528
+ type: i0.Input,
529
+ args: [{
530
+ isSignal: true,
531
+ alias: "appearance",
532
+ required: false
533
+ }]
534
+ }],
535
+ activateByRoute: [{
536
+ type: i0.Input,
537
+ args: [{
538
+ isSignal: true,
539
+ alias: "activateByRoute",
540
+ required: false
541
+ }]
542
+ }],
543
+ autoScrollToActiveItem: [{
544
+ type: i0.Input,
545
+ args: [{
546
+ isSignal: true,
547
+ alias: "autoScrollToActiveItem",
548
+ required: false
549
+ }]
550
+ }],
551
+ itemClicked: [{
552
+ type: i0.Output,
553
+ args: ["itemClicked"]
554
+ }]
555
+ }
556
+ });
557
+ var NavigationHeading = class NavigationHeading {
558
+ static ɵfac = i0.ɵɵngDeclareFactory({
559
+ minVersion: "12.0.0",
560
+ version: "22.3.0",
561
+ ngImport: i0,
562
+ type: NavigationHeading,
563
+ deps: [],
564
+ target: i0.ɵɵFactoryTarget.Component
565
+ });
566
+ static ɵcmp = i0.ɵɵngDeclareComponent({
567
+ minVersion: "14.0.0",
568
+ version: "22.3.0",
569
+ type: NavigationHeading,
570
+ isStandalone: true,
571
+ selector: "ngs-navigation-heading",
572
+ host: { classAttribute: "ngs-navigation-heading" },
573
+ exportAs: ["ngsNavigationHeading"],
574
+ ngImport: i0,
575
+ template: "<div class=\"content\"><ng-content/></div>\n",
576
+ styles: [":host{display:block;text-transform:var(--ngs-navigation-heading-text-transform);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0;color:var(--ngs-navigation-heading-color);font-size:var(--ngs-navigation-heading-font-size);font-weight:var(--ngs-navigation-heading-font-weight);padding:var(--ngs-navigation-heading-padding);margin-bottom:var(--ngs-navigation-heading-margin-bottom);text-align:var(--ngs-navigation-heading-text-align);height:var(--ngs-nav-heading-height);align-items:center}:host:first-child{margin-top:0}:host .content{overflow:hidden;text-overflow:ellipsis}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
577
+ changeDetection: i0.ChangeDetectionStrategy.Eager
578
+ });
579
+ };
580
+ i0.ɵɵngDeclareClassMetadata({
581
+ minVersion: "12.0.0",
582
+ version: "22.3.0",
583
+ ngImport: i0,
584
+ type: NavigationHeading,
585
+ decorators: [{
586
+ type: Component,
587
+ args: [{
588
+ selector: "ngs-navigation-heading",
589
+ exportAs: "ngsNavigationHeading",
590
+ changeDetection: ChangeDetectionStrategy.Eager,
591
+ host: { "class": "ngs-navigation-heading" },
592
+ template: "<div class=\"content\"><ng-content/></div>\n",
593
+ styles: [":host{display:block;text-transform:var(--ngs-navigation-heading-text-transform);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0;color:var(--ngs-navigation-heading-color);font-size:var(--ngs-navigation-heading-font-size);font-weight:var(--ngs-navigation-heading-font-weight);padding:var(--ngs-navigation-heading-padding);margin-bottom:var(--ngs-navigation-heading-margin-bottom);text-align:var(--ngs-navigation-heading-text-align);height:var(--ngs-nav-heading-height);align-items:center}:host:first-child{margin-top:0}:host .content{overflow:hidden;text-overflow:ellipsis}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
594
+ }]
595
+ }]
596
+ });
597
+ var NavigationDivider = class NavigationDivider {
598
+ static ɵfac = i0.ɵɵngDeclareFactory({
599
+ minVersion: "12.0.0",
600
+ version: "22.3.0",
601
+ ngImport: i0,
602
+ type: NavigationDivider,
603
+ deps: [],
604
+ target: i0.ɵɵFactoryTarget.Component
605
+ });
606
+ static ɵcmp = i0.ɵɵngDeclareComponent({
607
+ minVersion: "14.0.0",
608
+ version: "22.3.0",
609
+ type: NavigationDivider,
610
+ isStandalone: true,
611
+ selector: "ngs-navigation-divider",
612
+ host: { classAttribute: "ngs-navigation-divider" },
613
+ exportAs: ["ngsNavigationDivider"],
614
+ ngImport: i0,
615
+ template: "",
616
+ isInline: true,
617
+ styles: [":host{display:block;height:var(--ngs-navigation-divider-height);background:var(--ngs-navigation-divider-bg);margin:var(--ngs-navigation-divider-margin)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
618
+ changeDetection: i0.ChangeDetectionStrategy.Eager
619
+ });
620
+ };
621
+ i0.ɵɵngDeclareClassMetadata({
622
+ minVersion: "12.0.0",
623
+ version: "22.3.0",
624
+ ngImport: i0,
625
+ type: NavigationDivider,
626
+ decorators: [{
627
+ type: Component,
628
+ args: [{
629
+ selector: "ngs-navigation-divider",
630
+ exportAs: "ngsNavigationDivider",
631
+ template: "",
632
+ changeDetection: ChangeDetectionStrategy.Eager,
633
+ host: { "class": "ngs-navigation-divider" },
634
+ styles: [":host{display:block;height:var(--ngs-navigation-divider-height);background:var(--ngs-navigation-divider-bg);margin:var(--ngs-navigation-divider-margin)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
635
+ }]
636
+ }]
637
+ });
277
638
  let nextId = 0;
278
- class NavigationGroup {
279
- key = signal(`ngs-navigation-group-${nextId++}`, /* @ts-ignore */
280
- ...(ngDevMode ? [{ debugName: "key" }] : /* istanbul ignore next */ []));
281
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
282
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: NavigationGroup, isStandalone: true, selector: "ngs-navigation-group", host: { classAttribute: "ngs-navigation-group" }, providers: [
283
- {
284
- provide: NAVIGATION_GROUP,
285
- useExisting: forwardRef(() => NavigationGroup)
286
- }
287
- ], exportAs: ["ngsNavigationGroup"], ngImport: i0, template: "<ng-content select=\"ngs-navigation-group-toggle\"/>\n<ng-content select=\"ngs-navigation-group-menu\"/>\n", styles: [":host{display:block;border-radius:var(--ngs-navigation-group-border-radius)}:host:has(.ngs-navigation-group-toggle.is-active){background:var(--ngs-navigation-group-active-bg)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
288
- }
289
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationGroup, decorators: [{
290
- type: Component,
291
- args: [{ selector: 'ngs-navigation-group', exportAs: 'ngsNavigationGroup', providers: [
292
- {
293
- provide: NAVIGATION_GROUP,
294
- useExisting: forwardRef(() => NavigationGroup)
295
- }
296
- ], changeDetection: ChangeDetectionStrategy.Eager, host: {
297
- 'class': 'ngs-navigation-group'
298
- }, template: "<ng-content select=\"ngs-navigation-group-toggle\"/>\n<ng-content select=\"ngs-navigation-group-menu\"/>\n", styles: [":host{display:block;border-radius:var(--ngs-navigation-group-border-radius)}:host:has(.ngs-navigation-group-toggle.is-active){background:var(--ngs-navigation-group-active-bg)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
299
- }] });
300
-
301
- class NavigationGroupMenu {
302
- store = inject(NavigationStore);
303
- _group = inject(NAVIGATION_GROUP);
304
- active = computed(() => {
305
- return this.store.activeGroupKey() === this._group.key();
306
- }, /* @ts-ignore */
307
- ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
308
- _items = contentChildren(NavigationItem, { ...(ngDevMode ? { debugName: "_items" } : /* istanbul ignore next */ {}), descendants: true });
309
- _defs = contentChildren(NavigationItemDefDirective, /* @ts-ignore */
310
- ...(ngDevMode ? [{ debugName: "_defs" }] : /* istanbul ignore next */ []));
311
- dataSource = input(/* @ts-ignore */
312
- ...(ngDevMode ? [undefined, { debugName: "dataSource" }] : /* istanbul ignore next */ []));
313
- itemTypeProperty = input('type', /* @ts-ignore */
314
- ...(ngDevMode ? [{ debugName: "itemTypeProperty" }] : /* istanbul ignore next */ []));
315
- hasActiveItemInGroup = computed(() => {
316
- const fromItems = this._items().some(item => this.store.activeKey() === item.key());
317
- if (fromItems) {
318
- return true;
319
- }
320
- const data = this.dataSource();
321
- if (data) {
322
- return data.some(item => this._isActive(item, this.store.activeKey()));
323
- }
324
- return false;
325
- }, /* @ts-ignore */
326
- ...(ngDevMode ? [{ debugName: "hasActiveItemInGroup" }] : /* istanbul ignore next */ []));
327
- ngAfterContentInit() {
328
- this._detectGroupIsActive();
329
- }
330
- getTemplate(item) {
331
- const def = this._defs().find(d => {
332
- const whenValue = d.when();
333
- if (whenValue) {
334
- if (typeof whenValue === 'function') {
335
- return whenValue(item);
336
- }
337
- return item[this.itemTypeProperty()] === whenValue;
338
- }
339
- return false;
340
- }) || this._defs().find(d => !d.when());
341
- return def?.template || null;
342
- }
343
- _detectGroupIsActive() {
344
- if (this.hasActiveItemInGroup() && !this.active()) {
345
- this.store.setActiveGroupKey(this._group.key());
346
- }
347
- else {
348
- if (this.store.activeGroupKey() === this._group.key()) {
349
- this.store.setActiveGroupKey(null);
350
- }
351
- else {
352
- this.store.setActiveGroupKey(this._group.key());
353
- }
354
- }
355
- }
356
- _isActive(item, activeKey) {
357
- if (item.key === activeKey) {
358
- return true;
359
- }
360
- if (item.children && Array.isArray(item.children)) {
361
- return item.children.some((child) => this._isActive(child, activeKey));
362
- }
363
- return false;
364
- }
365
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationGroupMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
366
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: NavigationGroupMenu, isStandalone: true, selector: "ngs-navigation-group-menu", inputs: { dataSource: { classPropertyName: "dataSource", publicName: "dataSource", isSignal: true, isRequired: false, transformFunction: null }, itemTypeProperty: { classPropertyName: "itemTypeProperty", publicName: "itemTypeProperty", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.is-active": "active()" }, classAttribute: "ngs-navigation-group-menu" }, queries: [{ propertyName: "_items", predicate: NavigationItem, descendants: true, isSignal: true }, { propertyName: "_defs", predicate: NavigationItemDefDirective, isSignal: true }], exportAs: ["ngsNavigationGroupMenu"], ngImport: i0, template: "@if (dataSource(); as data) {\n <div class=\"inner\">\n @for (item of data; track item) {\n <ng-container *ngTemplateOutlet=\"getTemplate(item); context: { $implicit: item }\" />\n }\n </div>\n} @else {\n <div class=\"inner\">\n <ng-content/>\n </div>\n}\n", styles: [":host{position:relative;padding-inline-start:var(--ngs-navigation-group-menu-padding-start);transition:grid-template-rows .2s ease;grid-template-rows:0fr;display:grid}:host .inner{display:flex;flex-direction:column;gap:var(--ngs-navigation-items-gap);overflow:hidden}:host(.is-active){grid-template-rows:1fr;margin-top:var(--ngs-navigation-item-space-y)}:host(.is-active) .inner{padding:calc(var(--ngs-navigation-items-gap) * 2) 0 var(--ngs-navigation-items-gap) 0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
367
- }
368
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationGroupMenu, decorators: [{
369
- type: Component,
370
- args: [{ selector: 'ngs-navigation-group-menu', exportAs: 'ngsNavigationGroupMenu', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
371
- NgTemplateOutlet
372
- ], standalone: true, host: {
373
- 'class': 'ngs-navigation-group-menu',
374
- '[class.is-active]': 'active()'
375
- }, template: "@if (dataSource(); as data) {\n <div class=\"inner\">\n @for (item of data; track item) {\n <ng-container *ngTemplateOutlet=\"getTemplate(item); context: { $implicit: item }\" />\n }\n </div>\n} @else {\n <div class=\"inner\">\n <ng-content/>\n </div>\n}\n", styles: [":host{position:relative;padding-inline-start:var(--ngs-navigation-group-menu-padding-start);transition:grid-template-rows .2s ease;grid-template-rows:0fr;display:grid}:host .inner{display:flex;flex-direction:column;gap:var(--ngs-navigation-items-gap);overflow:hidden}:host(.is-active){grid-template-rows:1fr;margin-top:var(--ngs-navigation-item-space-y)}:host(.is-active) .inner{padding:calc(var(--ngs-navigation-items-gap) * 2) 0 var(--ngs-navigation-items-gap) 0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
376
- }], propDecorators: { _items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => NavigationItem), { ...{ descendants: true }, isSignal: true }] }], _defs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => NavigationItemDefDirective), { isSignal: true }] }], dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: false }] }], itemTypeProperty: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTypeProperty", required: false }] }] } });
377
-
378
- class NavigationGroupToggleIconDirective {
379
- templateRef = inject(TemplateRef, { optional: true });
380
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationGroupToggleIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
381
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: NavigationGroupToggleIconDirective, isStandalone: true, selector: "[ngsNavigationGroupToggleIcon]", host: { classAttribute: "ngs-navigation-group-toggle-icon" }, exportAs: ["ngsNavigationGroupToggleIcon"], ngImport: i0 });
382
- }
383
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationGroupToggleIconDirective, decorators: [{
384
- type: Directive,
385
- args: [{
386
- selector: '[ngsNavigationGroupToggleIcon]',
387
- exportAs: 'ngsNavigationGroupToggleIcon',
388
- host: {
389
- 'class': 'ngs-navigation-group-toggle-icon'
390
- }
391
- }]
392
- }] });
393
-
394
- class NavigationGroupToggle {
395
- store = inject(NavigationStore);
396
- _group = inject(NAVIGATION_GROUP);
397
- iconRef = contentChild(NavigationGroupToggleIconDirective, /* @ts-ignore */
398
- ...(ngDevMode ? [{ debugName: "iconRef" }] : /* istanbul ignore next */ []));
399
- itemIcon = contentChild(NavigationItemIconDirective, /* @ts-ignore */
400
- ...(ngDevMode ? [{ debugName: "itemIcon" }] : /* istanbul ignore next */ []));
401
- hasItemIcon = computed(() => Boolean(this.itemIcon()), /* @ts-ignore */
402
- ...(ngDevMode ? [{ debugName: "hasItemIcon" }] : /* istanbul ignore next */ []));
403
- active = computed(() => {
404
- return this.store.activeGroupKey() === this._group.key();
405
- }, /* @ts-ignore */
406
- ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
407
- badgeTextOnly = input(false, { ...(ngDevMode ? { debugName: "badgeTextOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
408
- toggle(event) {
409
- event.preventDefault();
410
- event.stopPropagation();
411
- if (this.active()) {
412
- this.store.setActiveGroupKey(null);
413
- }
414
- else {
415
- this.store.setActiveGroupKey(this._group.key());
416
- }
417
- }
418
- get iconRefTemplate() {
419
- return this.iconRef()?.templateRef;
420
- }
421
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationGroupToggle, deps: [], target: i0.ɵɵFactoryTarget.Component });
422
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: NavigationGroupToggle, isStandalone: true, selector: "ngs-navigation-group-toggle", inputs: { badgeTextOnly: { classPropertyName: "badgeTextOnly", publicName: "badgeTextOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "toggle($event)" }, properties: { "class.is-active": "active()", "class.is-badge-text-only": "badgeTextOnly()", "class.has-item-icon": "hasItemIcon()" }, classAttribute: "ngs-navigation-group-toggle" }, queries: [{ propertyName: "iconRef", first: true, predicate: NavigationGroupToggleIconDirective, descendants: true, isSignal: true }, { propertyName: "itemIcon", first: true, predicate: NavigationItemIconDirective, descendants: true, isSignal: true }], exportAs: ["ngsNavigationGroupToggle"], hostDirectives: [{ directive: i1.Ripple }], ngImport: i0, template: "<div class=\"icon\"><ng-content select=\"[ngsNavigationItemIcon]\"/></div>\n<span class=\"text grow\"><ng-content/></span>\n<div class=\"flex items-center gap-0.5\">\n <div class=\"badge\">\n <ng-content select=\"[ngsNavigationItemBadge]\"/>\n </div>\n <div class=\"arrow\">\n <ng-content select=\"[ngsNavigationGroupToggleIcon]\"/>\n @if (iconRef()) {\n <ng-container [ngTemplateOutlet]=\"iconRefTemplate\"/>\n }\n </div>\n</div>\n", styles: [":host{display:flex;align-items:center;min-width:0;white-space:nowrap;position:relative;flex:none;cursor:pointer;-webkit-user-select:none;user-select:none;background:var(--ngs-navigation-group-toggle-bg);min-height:var(--ngs-navigation-item-height);padding:var(--ngs-navigation-item-padding);font-size:var(--ngs-navigation-item-font-size);border-radius:var(--ngs-navigation-item-border-radius);font-weight:var(--ngs-navigation-item-font-weight);color:var(--ngs-navigation-item-color);gap:var(--ngs-navigation-item-gap);width:var(--ngs-navigation-item-width)}:host .text{overflow:hidden;text-overflow:ellipsis}:host .badge:empty{display:none}:host .badge{display:inline-flex;flex:none;border-radius:calc(infinity * 1px);height:var(--ngs-nav-badge-size);min-width:var(--ngs-nav-badge-size);align-items:center;justify-content:center;font-size:var(--ngs-font-size-xs);padding:var(--ngs-nav-badge-padding);font-weight:700}:host:not(.is-badge-text-only) .badge{font-weight:600;font-size:var(--ngs-font-size-xs);background:var(--ngs-nav-badge-bg, var(--ngs-color-primary));color:var(--ngs-nav-badge-color, var(--ngs-color-on-primary))}:host .icon{display:inline-flex;align-items:center;justify-content:center;width:var(--ngs-navigation-item-icon-width);color:var(--ngs-navigation-item-icon-color);flex:none}:host .icon:empty{display:none}:host .arrow{display:inline-flex;align-items:center;justify-content:center;transition:transform .2s ease;flex:none;width:var(--ngs-nav-arrow-size);height:var(--ngs-nav-arrow-size)}:host .arrow:empty{display:none}:host:hover{background:var(--ngs-navigation-item-hover-bg);color:var(--ngs-navigation-item-hover-color);transition:background-color .2s}:host.is-active,:host.is-active:hover{background:var(--ngs-navigation-group-toggle-active-bg);color:var(--ngs-navigation-group-toggle-active-color);font-weight:var(--ngs-navigation-item-active-font-weight)}:host:not(.is-active):hover .icon{color:var(--ngs-navigation-item-hover-icon-color)}:host.is-active .icon{color:var(--ngs-navigation-group-toggle-active-color)}:host.is-active .arrow{color:var(--ngs-navigation-group-toggle-active-color);transform:rotate(-180deg)}:host:has(.arrow:not(:empty)){padding-inline-end:var(--ngs-navigation-group-toggle-has-icon-padding-end)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
423
- }
424
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationGroupToggle, decorators: [{
425
- type: Component,
426
- args: [{ selector: 'ngs-navigation-group-toggle', exportAs: 'ngsNavigationGroupToggle', imports: [
427
- NgTemplateOutlet
428
- ], hostDirectives: [
429
- Ripple
430
- ], changeDetection: ChangeDetectionStrategy.OnPush, host: {
431
- 'class': 'ngs-navigation-group-toggle',
432
- '[class.is-active]': 'active()',
433
- '[class.is-badge-text-only]': 'badgeTextOnly()',
434
- '[class.has-item-icon]': 'hasItemIcon()',
435
- '(click)': 'toggle($event)'
436
- }, template: "<div class=\"icon\"><ng-content select=\"[ngsNavigationItemIcon]\"/></div>\n<span class=\"text grow\"><ng-content/></span>\n<div class=\"flex items-center gap-0.5\">\n <div class=\"badge\">\n <ng-content select=\"[ngsNavigationItemBadge]\"/>\n </div>\n <div class=\"arrow\">\n <ng-content select=\"[ngsNavigationGroupToggleIcon]\"/>\n @if (iconRef()) {\n <ng-container [ngTemplateOutlet]=\"iconRefTemplate\"/>\n }\n </div>\n</div>\n", styles: [":host{display:flex;align-items:center;min-width:0;white-space:nowrap;position:relative;flex:none;cursor:pointer;-webkit-user-select:none;user-select:none;background:var(--ngs-navigation-group-toggle-bg);min-height:var(--ngs-navigation-item-height);padding:var(--ngs-navigation-item-padding);font-size:var(--ngs-navigation-item-font-size);border-radius:var(--ngs-navigation-item-border-radius);font-weight:var(--ngs-navigation-item-font-weight);color:var(--ngs-navigation-item-color);gap:var(--ngs-navigation-item-gap);width:var(--ngs-navigation-item-width)}:host .text{overflow:hidden;text-overflow:ellipsis}:host .badge:empty{display:none}:host .badge{display:inline-flex;flex:none;border-radius:calc(infinity * 1px);height:var(--ngs-nav-badge-size);min-width:var(--ngs-nav-badge-size);align-items:center;justify-content:center;font-size:var(--ngs-font-size-xs);padding:var(--ngs-nav-badge-padding);font-weight:700}:host:not(.is-badge-text-only) .badge{font-weight:600;font-size:var(--ngs-font-size-xs);background:var(--ngs-nav-badge-bg, var(--ngs-color-primary));color:var(--ngs-nav-badge-color, var(--ngs-color-on-primary))}:host .icon{display:inline-flex;align-items:center;justify-content:center;width:var(--ngs-navigation-item-icon-width);color:var(--ngs-navigation-item-icon-color);flex:none}:host .icon:empty{display:none}:host .arrow{display:inline-flex;align-items:center;justify-content:center;transition:transform .2s ease;flex:none;width:var(--ngs-nav-arrow-size);height:var(--ngs-nav-arrow-size)}:host .arrow:empty{display:none}:host:hover{background:var(--ngs-navigation-item-hover-bg);color:var(--ngs-navigation-item-hover-color);transition:background-color .2s}:host.is-active,:host.is-active:hover{background:var(--ngs-navigation-group-toggle-active-bg);color:var(--ngs-navigation-group-toggle-active-color);font-weight:var(--ngs-navigation-item-active-font-weight)}:host:not(.is-active):hover .icon{color:var(--ngs-navigation-item-hover-icon-color)}:host.is-active .icon{color:var(--ngs-navigation-group-toggle-active-color)}:host.is-active .arrow{color:var(--ngs-navigation-group-toggle-active-color);transform:rotate(-180deg)}:host:has(.arrow:not(:empty)){padding-inline-end:var(--ngs-navigation-group-toggle-has-icon-padding-end)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
437
- }], propDecorators: { iconRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => NavigationGroupToggleIconDirective), { isSignal: true }] }], itemIcon: [{ type: i0.ContentChild, args: [i0.forwardRef(() => NavigationItemIconDirective), { isSignal: true }] }], badgeTextOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeTextOnly", required: false }] }] } });
438
-
439
- class NavigationItemBadgeDirective {
440
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationItemBadgeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
441
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: NavigationItemBadgeDirective, isStandalone: true, selector: "[ngsNavigationItemBadge]", host: { classAttribute: "ngs-navigation-item-badge" }, exportAs: ["ngsNavigationItemBadge"], ngImport: i0 });
442
- }
443
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NavigationItemBadgeDirective, decorators: [{
444
- type: Directive,
445
- args: [{
446
- selector: '[ngsNavigationItemBadge]',
447
- exportAs: 'ngsNavigationItemBadge',
448
- standalone: true,
449
- host: {
450
- 'class': 'ngs-navigation-item-badge',
451
- }
452
- }]
453
- }] });
454
-
455
- /**
456
- * Generated bundle index. Do not edit.
457
- */
458
-
639
+ var NavigationGroup = class NavigationGroup {
640
+ key = signal(`ngs-navigation-group-${nextId++}`, ...ngDevMode ? [{ debugName: "key" }] : /* istanbul ignore next */ []);
641
+ static ɵfac = i0.ɵɵngDeclareFactory({
642
+ minVersion: "12.0.0",
643
+ version: "22.3.0",
644
+ ngImport: i0,
645
+ type: NavigationGroup,
646
+ deps: [],
647
+ target: i0.ɵɵFactoryTarget.Component
648
+ });
649
+ static ɵcmp = i0.ɵɵngDeclareComponent({
650
+ minVersion: "14.0.0",
651
+ version: "22.3.0",
652
+ type: NavigationGroup,
653
+ isStandalone: true,
654
+ selector: "ngs-navigation-group",
655
+ host: { classAttribute: "ngs-navigation-group" },
656
+ providers: [{
657
+ provide: NAVIGATION_GROUP,
658
+ useExisting: forwardRef(() => NavigationGroup)
659
+ }],
660
+ exportAs: ["ngsNavigationGroup"],
661
+ ngImport: i0,
662
+ template: "<ng-content select=\"ngs-navigation-group-toggle\"/>\n<ng-content select=\"ngs-navigation-group-menu\"/>\n",
663
+ styles: [":host{display:block;border-radius:var(--ngs-navigation-group-border-radius)}:host:has(.ngs-navigation-group-toggle.is-active){background:var(--ngs-navigation-group-active-bg)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
664
+ changeDetection: i0.ChangeDetectionStrategy.Eager
665
+ });
666
+ };
667
+ i0.ɵɵngDeclareClassMetadata({
668
+ minVersion: "12.0.0",
669
+ version: "22.3.0",
670
+ ngImport: i0,
671
+ type: NavigationGroup,
672
+ decorators: [{
673
+ type: Component,
674
+ args: [{
675
+ selector: "ngs-navigation-group",
676
+ exportAs: "ngsNavigationGroup",
677
+ providers: [{
678
+ provide: NAVIGATION_GROUP,
679
+ useExisting: forwardRef(() => NavigationGroup)
680
+ }],
681
+ changeDetection: ChangeDetectionStrategy.Eager,
682
+ host: { "class": "ngs-navigation-group" },
683
+ template: "<ng-content select=\"ngs-navigation-group-toggle\"/>\n<ng-content select=\"ngs-navigation-group-menu\"/>\n",
684
+ styles: [":host{display:block;border-radius:var(--ngs-navigation-group-border-radius)}:host:has(.ngs-navigation-group-toggle.is-active){background:var(--ngs-navigation-group-active-bg)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
685
+ }]
686
+ }]
687
+ });
688
+ var NavigationGroupMenu = class NavigationGroupMenu {
689
+ store = inject(NavigationStore);
690
+ _group = inject(NAVIGATION_GROUP);
691
+ active = computed(() => {
692
+ return this.store.activeGroupKey() === this._group.key();
693
+ }, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
694
+ _items = contentChildren(NavigationItem, {
695
+ ...ngDevMode ? { debugName: "_items" } : /* istanbul ignore next */ {},
696
+ descendants: true
697
+ });
698
+ _defs = contentChildren(NavigationItemDefDirective, ...ngDevMode ? [{ debugName: "_defs" }] : /* istanbul ignore next */ []);
699
+ dataSource = input(...ngDevMode ? [void 0, { debugName: "dataSource" }] : /* istanbul ignore next */ []);
700
+ itemTypeProperty = input("type", ...ngDevMode ? [{ debugName: "itemTypeProperty" }] : /* istanbul ignore next */ []);
701
+ hasActiveItemInGroup = computed(() => {
702
+ if (this._items().some((item) => this.store.activeKey() === item.key())) return true;
703
+ const data = this.dataSource();
704
+ if (data) return data.some((item) => this._isActive(item, this.store.activeKey()));
705
+ return false;
706
+ }, ...ngDevMode ? [{ debugName: "hasActiveItemInGroup" }] : /* istanbul ignore next */ []);
707
+ ngAfterContentInit() {
708
+ this._detectGroupIsActive();
709
+ }
710
+ getTemplate(item) {
711
+ return (this._defs().find((d) => {
712
+ const whenValue = d.when();
713
+ if (whenValue) {
714
+ if (typeof whenValue === "function") return whenValue(item);
715
+ return item[this.itemTypeProperty()] === whenValue;
716
+ }
717
+ return false;
718
+ }) || this._defs().find((d) => !d.when()))?.template || null;
719
+ }
720
+ _detectGroupIsActive() {
721
+ if (this.hasActiveItemInGroup() && !this.active()) this.store.setActiveGroupKey(this._group.key());
722
+ else if (this.store.activeGroupKey() === this._group.key()) this.store.setActiveGroupKey(null);
723
+ else this.store.setActiveGroupKey(this._group.key());
724
+ }
725
+ _isActive(item, activeKey) {
726
+ if (item.key === activeKey) return true;
727
+ if (item.children && Array.isArray(item.children)) return item.children.some((child) => this._isActive(child, activeKey));
728
+ return false;
729
+ }
730
+ static ɵfac = i0.ɵɵngDeclareFactory({
731
+ minVersion: "12.0.0",
732
+ version: "22.3.0",
733
+ ngImport: i0,
734
+ type: NavigationGroupMenu,
735
+ deps: [],
736
+ target: i0.ɵɵFactoryTarget.Component
737
+ });
738
+ static ɵcmp = i0.ɵɵngDeclareComponent({
739
+ minVersion: "17.0.0",
740
+ version: "22.3.0",
741
+ type: NavigationGroupMenu,
742
+ isStandalone: true,
743
+ selector: "ngs-navigation-group-menu",
744
+ inputs: {
745
+ dataSource: {
746
+ classPropertyName: "dataSource",
747
+ publicName: "dataSource",
748
+ isSignal: true,
749
+ isRequired: false,
750
+ transformFunction: null
751
+ },
752
+ itemTypeProperty: {
753
+ classPropertyName: "itemTypeProperty",
754
+ publicName: "itemTypeProperty",
755
+ isSignal: true,
756
+ isRequired: false,
757
+ transformFunction: null
758
+ }
759
+ },
760
+ host: {
761
+ properties: { "class.is-active": "active()" },
762
+ classAttribute: "ngs-navigation-group-menu"
763
+ },
764
+ queries: [{
765
+ propertyName: "_items",
766
+ predicate: NavigationItem,
767
+ descendants: true,
768
+ isSignal: true
769
+ }, {
770
+ propertyName: "_defs",
771
+ predicate: NavigationItemDefDirective,
772
+ isSignal: true
773
+ }],
774
+ exportAs: ["ngsNavigationGroupMenu"],
775
+ ngImport: i0,
776
+ template: "@if (dataSource(); as data) {\n <div class=\"inner\">\n @for (item of data; track item) {\n <ng-container *ngTemplateOutlet=\"getTemplate(item); context: { $implicit: item }\" />\n }\n </div>\n} @else {\n <div class=\"inner\">\n <ng-content/>\n </div>\n}\n",
777
+ styles: [":host{position:relative;padding-inline-start:var(--ngs-navigation-group-menu-padding-start);transition:grid-template-rows .2s ease;grid-template-rows:0fr;display:grid}:host .inner{display:flex;flex-direction:column;gap:var(--ngs-navigation-items-gap);overflow:hidden}:host(.is-active){grid-template-rows:1fr;margin-top:var(--ngs-navigation-item-space-y)}:host(.is-active) .inner{padding:calc(var(--ngs-navigation-items-gap) * 2) 0 var(--ngs-navigation-items-gap) 0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
778
+ dependencies: [{
779
+ kind: "directive",
780
+ type: NgTemplateOutlet,
781
+ selector: "[ngTemplateOutlet]",
782
+ inputs: [
783
+ "ngTemplateOutletContext",
784
+ "ngTemplateOutlet",
785
+ "ngTemplateOutletInjector"
786
+ ]
787
+ }],
788
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
789
+ });
790
+ };
791
+ i0.ɵɵngDeclareClassMetadata({
792
+ minVersion: "12.0.0",
793
+ version: "22.3.0",
794
+ ngImport: i0,
795
+ type: NavigationGroupMenu,
796
+ decorators: [{
797
+ type: Component,
798
+ args: [{
799
+ selector: "ngs-navigation-group-menu",
800
+ exportAs: "ngsNavigationGroupMenu",
801
+ changeDetection: ChangeDetectionStrategy.OnPush,
802
+ imports: [NgTemplateOutlet],
803
+ standalone: true,
804
+ host: {
805
+ "class": "ngs-navigation-group-menu",
806
+ "[class.is-active]": "active()"
807
+ },
808
+ template: "@if (dataSource(); as data) {\n <div class=\"inner\">\n @for (item of data; track item) {\n <ng-container *ngTemplateOutlet=\"getTemplate(item); context: { $implicit: item }\" />\n }\n </div>\n} @else {\n <div class=\"inner\">\n <ng-content/>\n </div>\n}\n",
809
+ styles: [":host{position:relative;padding-inline-start:var(--ngs-navigation-group-menu-padding-start);transition:grid-template-rows .2s ease;grid-template-rows:0fr;display:grid}:host .inner{display:flex;flex-direction:column;gap:var(--ngs-navigation-items-gap);overflow:hidden}:host(.is-active){grid-template-rows:1fr;margin-top:var(--ngs-navigation-item-space-y)}:host(.is-active) .inner{padding:calc(var(--ngs-navigation-items-gap) * 2) 0 var(--ngs-navigation-items-gap) 0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
810
+ }]
811
+ }],
812
+ propDecorators: {
813
+ _items: [{
814
+ type: i0.ContentChildren,
815
+ args: [i0.forwardRef(() => NavigationItem), {
816
+ descendants: true,
817
+ isSignal: true
818
+ }]
819
+ }],
820
+ _defs: [{
821
+ type: i0.ContentChildren,
822
+ args: [i0.forwardRef(() => NavigationItemDefDirective), { isSignal: true }]
823
+ }],
824
+ dataSource: [{
825
+ type: i0.Input,
826
+ args: [{
827
+ isSignal: true,
828
+ alias: "dataSource",
829
+ required: false
830
+ }]
831
+ }],
832
+ itemTypeProperty: [{
833
+ type: i0.Input,
834
+ args: [{
835
+ isSignal: true,
836
+ alias: "itemTypeProperty",
837
+ required: false
838
+ }]
839
+ }]
840
+ }
841
+ });
842
+ var NavigationGroupToggleIconDirective = class NavigationGroupToggleIconDirective {
843
+ templateRef = inject(TemplateRef, { optional: true });
844
+ static ɵfac = i0.ɵɵngDeclareFactory({
845
+ minVersion: "12.0.0",
846
+ version: "22.3.0",
847
+ ngImport: i0,
848
+ type: NavigationGroupToggleIconDirective,
849
+ deps: [],
850
+ target: i0.ɵɵFactoryTarget.Directive
851
+ });
852
+ static ɵdir = i0.ɵɵngDeclareDirective({
853
+ minVersion: "14.0.0",
854
+ version: "22.3.0",
855
+ type: NavigationGroupToggleIconDirective,
856
+ isStandalone: true,
857
+ selector: "[ngsNavigationGroupToggleIcon]",
858
+ host: { classAttribute: "ngs-navigation-group-toggle-icon" },
859
+ exportAs: ["ngsNavigationGroupToggleIcon"],
860
+ ngImport: i0
861
+ });
862
+ };
863
+ i0.ɵɵngDeclareClassMetadata({
864
+ minVersion: "12.0.0",
865
+ version: "22.3.0",
866
+ ngImport: i0,
867
+ type: NavigationGroupToggleIconDirective,
868
+ decorators: [{
869
+ type: Directive,
870
+ args: [{
871
+ selector: "[ngsNavigationGroupToggleIcon]",
872
+ exportAs: "ngsNavigationGroupToggleIcon",
873
+ host: { "class": "ngs-navigation-group-toggle-icon" }
874
+ }]
875
+ }]
876
+ });
877
+ var NavigationGroupToggle = class NavigationGroupToggle {
878
+ store = inject(NavigationStore);
879
+ _group = inject(NAVIGATION_GROUP);
880
+ iconRef = contentChild(NavigationGroupToggleIconDirective, ...ngDevMode ? [{ debugName: "iconRef" }] : /* istanbul ignore next */ []);
881
+ itemIcon = contentChild(NavigationItemIconDirective, ...ngDevMode ? [{ debugName: "itemIcon" }] : /* istanbul ignore next */ []);
882
+ hasItemIcon = computed(() => Boolean(this.itemIcon()), ...ngDevMode ? [{ debugName: "hasItemIcon" }] : /* istanbul ignore next */ []);
883
+ active = computed(() => {
884
+ return this.store.activeGroupKey() === this._group.key();
885
+ }, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
886
+ badgeTextOnly = input(false, {
887
+ ...ngDevMode ? { debugName: "badgeTextOnly" } : /* istanbul ignore next */ {},
888
+ transform: booleanAttribute
889
+ });
890
+ toggle(event) {
891
+ event.preventDefault();
892
+ event.stopPropagation();
893
+ if (this.active()) this.store.setActiveGroupKey(null);
894
+ else this.store.setActiveGroupKey(this._group.key());
895
+ }
896
+ get iconRefTemplate() {
897
+ return this.iconRef()?.templateRef;
898
+ }
899
+ static ɵfac = i0.ɵɵngDeclareFactory({
900
+ minVersion: "12.0.0",
901
+ version: "22.3.0",
902
+ ngImport: i0,
903
+ type: NavigationGroupToggle,
904
+ deps: [],
905
+ target: i0.ɵɵFactoryTarget.Component
906
+ });
907
+ static ɵcmp = i0.ɵɵngDeclareComponent({
908
+ minVersion: "17.0.0",
909
+ version: "22.3.0",
910
+ type: NavigationGroupToggle,
911
+ isStandalone: true,
912
+ selector: "ngs-navigation-group-toggle",
913
+ inputs: { badgeTextOnly: {
914
+ classPropertyName: "badgeTextOnly",
915
+ publicName: "badgeTextOnly",
916
+ isSignal: true,
917
+ isRequired: false,
918
+ transformFunction: null
919
+ } },
920
+ host: {
921
+ listeners: { "click": "toggle($event)" },
922
+ properties: {
923
+ "class.is-active": "active()",
924
+ "class.is-badge-text-only": "badgeTextOnly()",
925
+ "class.has-item-icon": "hasItemIcon()"
926
+ },
927
+ classAttribute: "ngs-navigation-group-toggle"
928
+ },
929
+ queries: [{
930
+ propertyName: "iconRef",
931
+ first: true,
932
+ predicate: NavigationGroupToggleIconDirective,
933
+ descendants: true,
934
+ isSignal: true
935
+ }, {
936
+ propertyName: "itemIcon",
937
+ first: true,
938
+ predicate: NavigationItemIconDirective,
939
+ descendants: true,
940
+ isSignal: true
941
+ }],
942
+ exportAs: ["ngsNavigationGroupToggle"],
943
+ hostDirectives: [{ directive: i1.Ripple }],
944
+ ngImport: i0,
945
+ template: "<div class=\"icon\"><ng-content select=\"[ngsNavigationItemIcon]\"/></div>\n<span class=\"text grow\"><ng-content/></span>\n<div class=\"flex items-center gap-0.5\">\n <div class=\"badge\">\n <ng-content select=\"[ngsNavigationItemBadge]\"/>\n </div>\n <div class=\"arrow\">\n <ng-content select=\"[ngsNavigationGroupToggleIcon]\"/>\n @if (iconRef()) {\n <ng-container [ngTemplateOutlet]=\"iconRefTemplate\"/>\n }\n </div>\n</div>\n",
946
+ styles: [":host{display:flex;align-items:center;min-width:0;white-space:nowrap;position:relative;flex:none;cursor:pointer;-webkit-user-select:none;user-select:none;background:var(--ngs-navigation-group-toggle-bg);min-height:var(--ngs-navigation-item-height);padding:var(--ngs-navigation-item-padding);font-size:var(--ngs-navigation-item-font-size);border-radius:var(--ngs-navigation-item-border-radius);font-weight:var(--ngs-navigation-item-font-weight);color:var(--ngs-navigation-item-color);gap:var(--ngs-navigation-item-gap);width:var(--ngs-navigation-item-width)}:host .text{overflow:hidden;text-overflow:ellipsis}:host .badge:empty{display:none}:host .badge{display:inline-flex;flex:none;border-radius:calc(infinity * 1px);height:var(--ngs-nav-badge-size);min-width:var(--ngs-nav-badge-size);align-items:center;justify-content:center;font-size:var(--ngs-font-size-xs);padding:var(--ngs-nav-badge-padding);font-weight:700}:host:not(.is-badge-text-only) .badge{font-weight:600;font-size:var(--ngs-font-size-xs);background:var(--ngs-nav-badge-bg, var(--ngs-color-primary));color:var(--ngs-nav-badge-color, var(--ngs-color-on-primary))}:host .icon{display:inline-flex;align-items:center;justify-content:center;width:var(--ngs-navigation-item-icon-width);color:var(--ngs-navigation-item-icon-color);flex:none}:host .icon:empty{display:none}:host .arrow{display:inline-flex;align-items:center;justify-content:center;transition:transform .2s ease;flex:none;width:var(--ngs-nav-arrow-size);height:var(--ngs-nav-arrow-size)}:host .arrow:empty{display:none}:host:hover{background:var(--ngs-navigation-item-hover-bg);color:var(--ngs-navigation-item-hover-color);transition:background-color .2s}:host.is-active,:host.is-active:hover{background:var(--ngs-navigation-group-toggle-active-bg);color:var(--ngs-navigation-group-toggle-active-color);font-weight:var(--ngs-navigation-item-active-font-weight)}:host:not(.is-active):hover .icon{color:var(--ngs-navigation-item-hover-icon-color)}:host.is-active .icon{color:var(--ngs-navigation-group-toggle-active-color)}:host.is-active .arrow{color:var(--ngs-navigation-group-toggle-active-color);transform:rotate(-180deg)}:host:has(.arrow:not(:empty)){padding-inline-end:var(--ngs-navigation-group-toggle-has-icon-padding-end)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
947
+ dependencies: [{
948
+ kind: "directive",
949
+ type: NgTemplateOutlet,
950
+ selector: "[ngTemplateOutlet]",
951
+ inputs: [
952
+ "ngTemplateOutletContext",
953
+ "ngTemplateOutlet",
954
+ "ngTemplateOutletInjector"
955
+ ]
956
+ }],
957
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
958
+ });
959
+ };
960
+ i0.ɵɵngDeclareClassMetadata({
961
+ minVersion: "12.0.0",
962
+ version: "22.3.0",
963
+ ngImport: i0,
964
+ type: NavigationGroupToggle,
965
+ decorators: [{
966
+ type: Component,
967
+ args: [{
968
+ selector: "ngs-navigation-group-toggle",
969
+ exportAs: "ngsNavigationGroupToggle",
970
+ imports: [NgTemplateOutlet],
971
+ hostDirectives: [Ripple],
972
+ changeDetection: ChangeDetectionStrategy.OnPush,
973
+ host: {
974
+ "class": "ngs-navigation-group-toggle",
975
+ "[class.is-active]": "active()",
976
+ "[class.is-badge-text-only]": "badgeTextOnly()",
977
+ "[class.has-item-icon]": "hasItemIcon()",
978
+ "(click)": "toggle($event)"
979
+ },
980
+ template: "<div class=\"icon\"><ng-content select=\"[ngsNavigationItemIcon]\"/></div>\n<span class=\"text grow\"><ng-content/></span>\n<div class=\"flex items-center gap-0.5\">\n <div class=\"badge\">\n <ng-content select=\"[ngsNavigationItemBadge]\"/>\n </div>\n <div class=\"arrow\">\n <ng-content select=\"[ngsNavigationGroupToggleIcon]\"/>\n @if (iconRef()) {\n <ng-container [ngTemplateOutlet]=\"iconRefTemplate\"/>\n }\n </div>\n</div>\n",
981
+ styles: [":host{display:flex;align-items:center;min-width:0;white-space:nowrap;position:relative;flex:none;cursor:pointer;-webkit-user-select:none;user-select:none;background:var(--ngs-navigation-group-toggle-bg);min-height:var(--ngs-navigation-item-height);padding:var(--ngs-navigation-item-padding);font-size:var(--ngs-navigation-item-font-size);border-radius:var(--ngs-navigation-item-border-radius);font-weight:var(--ngs-navigation-item-font-weight);color:var(--ngs-navigation-item-color);gap:var(--ngs-navigation-item-gap);width:var(--ngs-navigation-item-width)}:host .text{overflow:hidden;text-overflow:ellipsis}:host .badge:empty{display:none}:host .badge{display:inline-flex;flex:none;border-radius:calc(infinity * 1px);height:var(--ngs-nav-badge-size);min-width:var(--ngs-nav-badge-size);align-items:center;justify-content:center;font-size:var(--ngs-font-size-xs);padding:var(--ngs-nav-badge-padding);font-weight:700}:host:not(.is-badge-text-only) .badge{font-weight:600;font-size:var(--ngs-font-size-xs);background:var(--ngs-nav-badge-bg, var(--ngs-color-primary));color:var(--ngs-nav-badge-color, var(--ngs-color-on-primary))}:host .icon{display:inline-flex;align-items:center;justify-content:center;width:var(--ngs-navigation-item-icon-width);color:var(--ngs-navigation-item-icon-color);flex:none}:host .icon:empty{display:none}:host .arrow{display:inline-flex;align-items:center;justify-content:center;transition:transform .2s ease;flex:none;width:var(--ngs-nav-arrow-size);height:var(--ngs-nav-arrow-size)}:host .arrow:empty{display:none}:host:hover{background:var(--ngs-navigation-item-hover-bg);color:var(--ngs-navigation-item-hover-color);transition:background-color .2s}:host.is-active,:host.is-active:hover{background:var(--ngs-navigation-group-toggle-active-bg);color:var(--ngs-navigation-group-toggle-active-color);font-weight:var(--ngs-navigation-item-active-font-weight)}:host:not(.is-active):hover .icon{color:var(--ngs-navigation-item-hover-icon-color)}:host.is-active .icon{color:var(--ngs-navigation-group-toggle-active-color)}:host.is-active .arrow{color:var(--ngs-navigation-group-toggle-active-color);transform:rotate(-180deg)}:host:has(.arrow:not(:empty)){padding-inline-end:var(--ngs-navigation-group-toggle-has-icon-padding-end)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
982
+ }]
983
+ }],
984
+ propDecorators: {
985
+ iconRef: [{
986
+ type: i0.ContentChild,
987
+ args: [i0.forwardRef(() => NavigationGroupToggleIconDirective), { isSignal: true }]
988
+ }],
989
+ itemIcon: [{
990
+ type: i0.ContentChild,
991
+ args: [i0.forwardRef(() => NavigationItemIconDirective), { isSignal: true }]
992
+ }],
993
+ badgeTextOnly: [{
994
+ type: i0.Input,
995
+ args: [{
996
+ isSignal: true,
997
+ alias: "badgeTextOnly",
998
+ required: false
999
+ }]
1000
+ }]
1001
+ }
1002
+ });
1003
+ var NavigationItemBadgeDirective = class NavigationItemBadgeDirective {
1004
+ static ɵfac = i0.ɵɵngDeclareFactory({
1005
+ minVersion: "12.0.0",
1006
+ version: "22.3.0",
1007
+ ngImport: i0,
1008
+ type: NavigationItemBadgeDirective,
1009
+ deps: [],
1010
+ target: i0.ɵɵFactoryTarget.Directive
1011
+ });
1012
+ static ɵdir = i0.ɵɵngDeclareDirective({
1013
+ minVersion: "14.0.0",
1014
+ version: "22.3.0",
1015
+ type: NavigationItemBadgeDirective,
1016
+ isStandalone: true,
1017
+ selector: "[ngsNavigationItemBadge]",
1018
+ host: { classAttribute: "ngs-navigation-item-badge" },
1019
+ exportAs: ["ngsNavigationItemBadge"],
1020
+ ngImport: i0
1021
+ });
1022
+ };
1023
+ i0.ɵɵngDeclareClassMetadata({
1024
+ minVersion: "12.0.0",
1025
+ version: "22.3.0",
1026
+ ngImport: i0,
1027
+ type: NavigationItemBadgeDirective,
1028
+ decorators: [{
1029
+ type: Directive,
1030
+ args: [{
1031
+ selector: "[ngsNavigationItemBadge]",
1032
+ exportAs: "ngsNavigationItemBadge",
1033
+ standalone: true,
1034
+ host: { "class": "ngs-navigation-item-badge" }
1035
+ }]
1036
+ }]
1037
+ });
459
1038
  export { NAVIGATION, NAVIGATION_GROUP, Navigation, NavigationDivider, NavigationGroup, NavigationGroupMenu, NavigationGroupToggle, NavigationGroupToggleIconDirective, NavigationHeading, NavigationItem, NavigationItemBadgeDirective, NavigationItemDefDirective, NavigationItemIconDirective };
460
- //# sourceMappingURL=ngstarter-ui-components-navigation.mjs.map
1039
+
1040
+ //# sourceMappingURL=ngstarter-ui-components-navigation.mjs.map