@edsis/angular 22.1.6 → 22.2.10

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 (366) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +87 -399
  3. package/SECURITY.md +18 -0
  4. package/SUPPORT.md +15 -0
  5. package/chart/README.md +275 -0
  6. package/component/README.md +89 -0
  7. package/component/accordion/README.md +195 -0
  8. package/component/alert/README.md +184 -0
  9. package/component/alert-dialog/README.md +255 -0
  10. package/component/aspect-ratio/README.md +116 -0
  11. package/component/avatar/README.md +182 -0
  12. package/component/badge/README.md +143 -0
  13. package/component/breadcrumb/README.md +223 -0
  14. package/component/button/README.md +141 -0
  15. package/component/button-group/README.md +214 -0
  16. package/component/calendar/README.md +125 -0
  17. package/component/card/README.md +232 -0
  18. package/component/carousel/README.md +276 -0
  19. package/component/checkbox/README.md +153 -0
  20. package/component/collapsible/README.md +216 -0
  21. package/component/combobox/README.md +202 -0
  22. package/component/command/README.md +287 -0
  23. package/component/composer/README.md +241 -0
  24. package/component/context-menu/README.md +268 -0
  25. package/component/date-picker/README.md +202 -0
  26. package/component/dialog/README.md +276 -0
  27. package/component/drawer/README.md +146 -0
  28. package/component/dropdown-menu/README.md +336 -0
  29. package/component/editor/README.md +152 -0
  30. package/component/empty/README.md +193 -0
  31. package/component/form/README.md +216 -0
  32. package/component/hover-card/README.md +150 -0
  33. package/component/icon/README.md +52 -0
  34. package/component/input/README.md +160 -0
  35. package/component/input-group/README.md +245 -0
  36. package/component/input-otp/README.md +331 -0
  37. package/component/item/README.md +254 -0
  38. package/component/kanban/README.md +81 -0
  39. package/component/kbd/README.md +141 -0
  40. package/component/label/README.md +137 -0
  41. package/component/menubar/README.md +270 -0
  42. package/component/native-select/README.md +176 -0
  43. package/component/navigation-menu/README.md +165 -0
  44. package/component/pagination/README.md +151 -0
  45. package/component/pillbox/README.md +68 -0
  46. package/component/popover/README.md +54 -0
  47. package/component/progress/README.md +160 -0
  48. package/component/radio/README.md +212 -0
  49. package/component/resizable/README.md +178 -0
  50. package/component/scroll-area/README.md +150 -0
  51. package/component/select/README.md +228 -0
  52. package/component/separator/README.md +175 -0
  53. package/component/sheet/README.md +190 -0
  54. package/component/skeleton/README.md +158 -0
  55. package/component/slider/README.md +207 -0
  56. package/component/spinner/README.md +160 -0
  57. package/component/switch/README.md +170 -0
  58. package/component/table/README.md +292 -0
  59. package/component/tabs/README.md +220 -0
  60. package/component/textarea/README.md +169 -0
  61. package/component/timeline/README.md +94 -0
  62. package/component/toast/README.md +173 -0
  63. package/component/toggle/README.md +133 -0
  64. package/component/toggle-group/README.md +234 -0
  65. package/component/tooltip/README.md +230 -0
  66. package/fesm2022/edsis-angular-chart-area.mjs +508 -0
  67. package/fesm2022/edsis-angular-chart-bar.mjs +946 -0
  68. package/fesm2022/edsis-angular-chart-core.mjs +1319 -0
  69. package/fesm2022/edsis-angular-chart-line.mjs +544 -0
  70. package/fesm2022/edsis-angular-chart-pie.mjs +531 -0
  71. package/fesm2022/edsis-angular-chart-primitives.mjs +1647 -0
  72. package/fesm2022/edsis-angular-chart-radar.mjs +693 -0
  73. package/fesm2022/edsis-angular-chart-radial.mjs +542 -0
  74. package/fesm2022/edsis-angular-chart-scatter.mjs +486 -0
  75. package/fesm2022/edsis-angular-chart.mjs +3 -0
  76. package/fesm2022/edsis-angular-component-accordion.mjs +513 -0
  77. package/fesm2022/edsis-angular-component-alert-dialog.mjs +1001 -0
  78. package/fesm2022/edsis-angular-component-alert.mjs +268 -0
  79. package/fesm2022/edsis-angular-component-aspect-ratio.mjs +80 -0
  80. package/fesm2022/edsis-angular-component-avatar.mjs +410 -0
  81. package/fesm2022/edsis-angular-component-badge.mjs +111 -0
  82. package/fesm2022/edsis-angular-component-breadcrumb.mjs +464 -0
  83. package/fesm2022/edsis-angular-component-button-group.mjs +252 -0
  84. package/fesm2022/edsis-angular-component-button.mjs +155 -0
  85. package/fesm2022/edsis-angular-component-calendar.mjs +835 -0
  86. package/fesm2022/edsis-angular-component-card.mjs +460 -0
  87. package/fesm2022/edsis-angular-component-carousel.mjs +700 -0
  88. package/fesm2022/edsis-angular-component-checkbox.mjs +398 -0
  89. package/fesm2022/edsis-angular-component-collapsible.mjs +305 -0
  90. package/fesm2022/edsis-angular-component-combobox.mjs +544 -0
  91. package/fesm2022/edsis-angular-component-command.mjs +815 -0
  92. package/fesm2022/edsis-angular-component-composer.mjs +840 -0
  93. package/fesm2022/edsis-angular-component-context-menu.mjs +197 -0
  94. package/fesm2022/edsis-angular-component-date-picker.mjs +798 -0
  95. package/fesm2022/edsis-angular-component-dialog.mjs +798 -0
  96. package/fesm2022/edsis-angular-component-drawer.mjs +1 -0
  97. package/fesm2022/edsis-angular-component-dropdown-menu.mjs +1259 -0
  98. package/fesm2022/edsis-angular-component-editor.mjs +1000 -0
  99. package/fesm2022/edsis-angular-component-empty.mjs +351 -0
  100. package/fesm2022/edsis-angular-component-form.mjs +821 -0
  101. package/fesm2022/edsis-angular-component-hover-card.mjs +486 -0
  102. package/fesm2022/edsis-angular-component-icon.mjs +253 -0
  103. package/fesm2022/edsis-angular-component-input-group.mjs +453 -0
  104. package/fesm2022/edsis-angular-component-input-otp.mjs +957 -0
  105. package/fesm2022/edsis-angular-component-input.mjs +87 -0
  106. package/fesm2022/edsis-angular-component-item.mjs +720 -0
  107. package/fesm2022/edsis-angular-component-kanban.mjs +812 -0
  108. package/fesm2022/edsis-angular-component-kbd.mjs +124 -0
  109. package/fesm2022/edsis-angular-component-label.mjs +82 -0
  110. package/fesm2022/edsis-angular-component-menubar.mjs +481 -0
  111. package/fesm2022/edsis-angular-component-native-select.mjs +168 -0
  112. package/fesm2022/edsis-angular-component-navigation-menu.mjs +685 -0
  113. package/fesm2022/edsis-angular-component-pagination.mjs +425 -0
  114. package/fesm2022/edsis-angular-component-pillbox.mjs +1679 -0
  115. package/fesm2022/edsis-angular-component-popover.mjs +292 -0
  116. package/fesm2022/edsis-angular-component-progress.mjs +184 -0
  117. package/fesm2022/edsis-angular-component-radio.mjs +491 -0
  118. package/fesm2022/edsis-angular-component-resizable.mjs +703 -0
  119. package/fesm2022/edsis-angular-component-scroll-area.mjs +133 -0
  120. package/fesm2022/edsis-angular-component-segmented-control.mjs +408 -0
  121. package/fesm2022/edsis-angular-component-select.mjs +743 -0
  122. package/fesm2022/edsis-angular-component-separator.mjs +102 -0
  123. package/fesm2022/edsis-angular-component-sheet.mjs +874 -0
  124. package/fesm2022/edsis-angular-component-skeleton.mjs +62 -0
  125. package/fesm2022/edsis-angular-component-slider.mjs +676 -0
  126. package/fesm2022/edsis-angular-component-spinner.mjs +157 -0
  127. package/fesm2022/edsis-angular-component-switch.mjs +361 -0
  128. package/fesm2022/edsis-angular-component-table.mjs +446 -0
  129. package/fesm2022/edsis-angular-component-tabs.mjs +592 -0
  130. package/fesm2022/edsis-angular-component-textarea.mjs +85 -0
  131. package/fesm2022/edsis-angular-component-timeline.mjs +619 -0
  132. package/fesm2022/edsis-angular-component-toast.mjs +231 -0
  133. package/fesm2022/edsis-angular-component-toggle-group.mjs +579 -0
  134. package/fesm2022/edsis-angular-component-toggle.mjs +189 -0
  135. package/fesm2022/edsis-angular-component-tooltip.mjs +804 -0
  136. package/fesm2022/edsis-angular-component-utils-core.mjs +181 -0
  137. package/fesm2022/edsis-angular-component-utils-overlay.mjs +54 -0
  138. package/fesm2022/edsis-angular-component-utils-scale.mjs +76 -0
  139. package/fesm2022/edsis-angular-component-utils.mjs +2 -0
  140. package/fesm2022/edsis-angular-component.mjs +0 -0
  141. package/fesm2022/edsis-angular-navigation-core.mjs +15 -0
  142. package/fesm2022/edsis-angular-navigation-icon.mjs +35 -0
  143. package/fesm2022/edsis-angular-navigation-navigation-badge-count.component-D70Ju6_f.mjs +234 -0
  144. package/fesm2022/edsis-angular-navigation-navigation-dockbar-menu.component-BaFnh48V.mjs +834 -0
  145. package/fesm2022/edsis-angular-navigation-navigation-entry-grid.component-D39W0FQZ.mjs +823 -0
  146. package/fesm2022/edsis-angular-navigation-navigation-flyout-menu.component-CpmsY8hb.mjs +670 -0
  147. package/fesm2022/edsis-angular-navigation-navigation-horizontal.component-D35IfX6r.mjs +689 -0
  148. package/fesm2022/edsis-angular-navigation-navigation-item.component-X6JFy-ya.mjs +1522 -0
  149. package/fesm2022/edsis-angular-navigation-navigation-list.component-D6Ms8H5g.mjs +346 -0
  150. package/fesm2022/edsis-angular-navigation-service.mjs +558 -0
  151. package/fesm2022/edsis-angular-navigation-types.mjs +151 -0
  152. package/fesm2022/edsis-angular-navigation.mjs +3338 -0
  153. package/fesm2022/edsis-angular-sdk.mjs +100 -0
  154. package/fesm2022/edsis-angular-theme-component-settings.mjs +1863 -0
  155. package/fesm2022/edsis-angular-theme-layout-services.mjs +252 -0
  156. package/fesm2022/edsis-angular-theme-layout-types.mjs +45 -0
  157. package/fesm2022/edsis-angular-theme-layout-wrapper.mjs +2568 -0
  158. package/fesm2022/edsis-angular-theme-layout.mjs +1089 -0
  159. package/fesm2022/edsis-angular-theme-on-fill.mjs +89 -0
  160. package/fesm2022/edsis-angular-theme-page-core.mjs +315 -0
  161. package/fesm2022/edsis-angular-theme-page-filter.mjs +409 -0
  162. package/fesm2022/edsis-angular-theme-page-overview.mjs +88 -0
  163. package/fesm2022/edsis-angular-theme-page-root.mjs +693 -0
  164. package/fesm2022/edsis-angular-theme-page-side.mjs +342 -0
  165. package/fesm2022/edsis-angular-theme-page-slots.mjs +258 -0
  166. package/fesm2022/edsis-angular-theme-page.mjs +7 -0
  167. package/fesm2022/edsis-angular-theme-shell-services.mjs +231 -0
  168. package/fesm2022/edsis-angular-theme-shell-types.mjs +102 -0
  169. package/fesm2022/edsis-angular-theme-shell.mjs +1352 -0
  170. package/fesm2022/edsis-angular-theme-styles.mjs +605 -0
  171. package/fesm2022/edsis-angular-theme.mjs +0 -0
  172. package/fesm2022/edsis-angular.mjs +5 -8
  173. package/navigation/README.md +576 -0
  174. package/package.json +481 -52
  175. package/sdk/README.md +212 -0
  176. package/sdk/schematics/collection.json +20 -0
  177. package/sdk/schematics/init/index.js +83 -0
  178. package/sdk/schematics/init/schema.json +19 -0
  179. package/sdk/schematics/ng-add/index.js +147 -0
  180. package/sdk/schematics/ng-add/schema.json +14 -0
  181. package/sdk/schematics/package.json +3 -0
  182. package/sdk/schematics/sdk/index.js +175 -0
  183. package/sdk/schematics/sdk/schema.json +19 -0
  184. package/sdk/sdk.config.example.json +24 -0
  185. package/sdk/src/config/loader.js +43 -0
  186. package/sdk/src/config/schema.js +59 -0
  187. package/sdk/src/emit/client.js +251 -0
  188. package/sdk/src/emit/metadata.js +310 -0
  189. package/sdk/src/emit/models.js +104 -0
  190. package/sdk/src/emit/navigation.js +56 -0
  191. package/sdk/src/emit/operations.js +118 -0
  192. package/sdk/src/emit/public-api.js +54 -0
  193. package/sdk/src/emit/services.js +110 -0
  194. package/sdk/src/engine.js +67 -0
  195. package/sdk/src/layout/per-domain.js +360 -0
  196. package/sdk/src/package.json +3 -0
  197. package/sdk/src/parser/bundle.js +25 -0
  198. package/sdk/src/parser/ir.js +429 -0
  199. package/sdk/src/parser/types.js +7 -0
  200. package/sdk/src/render/template.js +152 -0
  201. package/sdk/src/writer/index.js +286 -0
  202. package/theme/README.md +120 -0
  203. package/theme/component/settings/README.md +154 -0
  204. package/theme/layout/README.md +604 -0
  205. package/theme/page/README.md +505 -0
  206. package/theme/shell/README.md +344 -0
  207. package/theme/styles/README.md +251 -0
  208. package/theme/styles/css/base/components.css +577 -0
  209. package/theme/styles/css/base/index.css +14 -0
  210. package/theme/styles/css/base/on-fill.css +153 -0
  211. package/theme/styles/css/base/package.css +10 -0
  212. package/theme/styles/css/base/prefers-dark.css +81 -0
  213. package/theme/styles/css/base/print.css +62 -0
  214. package/theme/styles/css/base/status.css +38 -0
  215. package/theme/styles/css/base/tailwind.css +208 -0
  216. package/theme/styles/css/base/theme.css +306 -0
  217. package/theme/styles/css/base/tokens.css +388 -0
  218. package/theme/styles/css/color/amber.css +72 -0
  219. package/theme/styles/css/color/blue.css +72 -0
  220. package/theme/styles/css/color/brand.css +38 -0
  221. package/theme/styles/css/color/cyan.css +72 -0
  222. package/theme/styles/css/color/emerald.css +72 -0
  223. package/theme/styles/css/color/fuchsia.css +72 -0
  224. package/theme/styles/css/color/green.css +72 -0
  225. package/theme/styles/css/color/index.css +19 -0
  226. package/theme/styles/css/color/indigo.css +72 -0
  227. package/theme/styles/css/color/lime.css +72 -0
  228. package/theme/styles/css/color/orange.css +72 -0
  229. package/theme/styles/css/color/pink.css +72 -0
  230. package/theme/styles/css/color/purple.css +72 -0
  231. package/theme/styles/css/color/red.css +72 -0
  232. package/theme/styles/css/color/rose.css +72 -0
  233. package/theme/styles/css/color/sky.css +72 -0
  234. package/theme/styles/css/color/teal.css +72 -0
  235. package/theme/styles/css/color/violet.css +72 -0
  236. package/theme/styles/css/color/yellow.css +72 -0
  237. package/theme/styles/css/fonts.css +85 -0
  238. package/theme/styles/css/index.css +18 -0
  239. package/theme/styles/css/neutral/gray.css +63 -0
  240. package/theme/styles/css/neutral/index.css +11 -0
  241. package/theme/styles/css/neutral/mauve.css +63 -0
  242. package/theme/styles/css/neutral/mist.css +63 -0
  243. package/theme/styles/css/neutral/neutral.css +63 -0
  244. package/theme/styles/css/neutral/olive.css +63 -0
  245. package/theme/styles/css/neutral/slate.css +63 -0
  246. package/theme/styles/css/neutral/stone.css +63 -0
  247. package/theme/styles/css/neutral/taupe.css +63 -0
  248. package/theme/styles/css/neutral/zinc.css +63 -0
  249. package/theme/styles/css/radius/index.css +30 -0
  250. package/theme/styles/css/space/index.css +20 -0
  251. package/types/edsis-angular-chart-area.d.ts +139 -0
  252. package/types/edsis-angular-chart-bar.d.ts +291 -0
  253. package/types/edsis-angular-chart-core.d.ts +824 -0
  254. package/types/edsis-angular-chart-line.d.ts +148 -0
  255. package/types/edsis-angular-chart-pie.d.ts +207 -0
  256. package/types/edsis-angular-chart-primitives.d.ts +360 -0
  257. package/types/edsis-angular-chart-radar.d.ts +198 -0
  258. package/types/edsis-angular-chart-radial.d.ts +187 -0
  259. package/types/edsis-angular-chart-scatter.d.ts +181 -0
  260. package/types/edsis-angular-chart.d.ts +3 -0
  261. package/types/edsis-angular-component-accordion.d.ts +139 -0
  262. package/types/edsis-angular-component-alert-dialog.d.ts +288 -0
  263. package/types/edsis-angular-component-alert.d.ts +72 -0
  264. package/types/edsis-angular-component-aspect-ratio.d.ts +20 -0
  265. package/types/edsis-angular-component-avatar.d.ts +111 -0
  266. package/types/edsis-angular-component-badge.d.ts +36 -0
  267. package/types/edsis-angular-component-breadcrumb.d.ts +85 -0
  268. package/types/edsis-angular-component-button-group.d.ts +50 -0
  269. package/types/edsis-angular-component-button.d.ts +44 -0
  270. package/types/edsis-angular-component-calendar.d.ts +150 -0
  271. package/types/edsis-angular-component-card.d.ts +123 -0
  272. package/types/edsis-angular-component-carousel.d.ts +155 -0
  273. package/types/edsis-angular-component-checkbox.d.ts +100 -0
  274. package/types/edsis-angular-component-collapsible.d.ts +68 -0
  275. package/types/edsis-angular-component-combobox.d.ts +105 -0
  276. package/types/edsis-angular-component-command.d.ts +215 -0
  277. package/types/edsis-angular-component-composer.d.ts +190 -0
  278. package/types/edsis-angular-component-context-menu.d.ts +64 -0
  279. package/types/edsis-angular-component-date-picker.d.ts +199 -0
  280. package/types/edsis-angular-component-dialog.d.ts +231 -0
  281. package/types/edsis-angular-component-drawer.d.ts +2 -0
  282. package/types/edsis-angular-component-dropdown-menu.d.ts +370 -0
  283. package/types/edsis-angular-component-editor.d.ts +234 -0
  284. package/types/edsis-angular-component-empty.d.ts +85 -0
  285. package/types/edsis-angular-component-form.d.ts +223 -0
  286. package/types/edsis-angular-component-hover-card.d.ts +133 -0
  287. package/types/edsis-angular-component-icon.d.ts +90 -0
  288. package/types/edsis-angular-component-input-group.d.ts +98 -0
  289. package/types/edsis-angular-component-input-otp.d.ts +249 -0
  290. package/types/edsis-angular-component-input.d.ts +31 -0
  291. package/types/edsis-angular-component-item.d.ts +169 -0
  292. package/types/edsis-angular-component-kanban.d.ts +165 -0
  293. package/types/edsis-angular-component-kbd.d.ts +25 -0
  294. package/types/edsis-angular-component-label.d.ts +19 -0
  295. package/types/edsis-angular-component-menubar.d.ts +123 -0
  296. package/types/edsis-angular-component-native-select.d.ts +39 -0
  297. package/types/edsis-angular-component-navigation-menu.d.ts +163 -0
  298. package/types/edsis-angular-component-pagination.d.ts +83 -0
  299. package/types/edsis-angular-component-pillbox.d.ts +380 -0
  300. package/types/edsis-angular-component-popover.d.ts +96 -0
  301. package/types/edsis-angular-component-progress.d.ts +45 -0
  302. package/types/edsis-angular-component-radio.d.ts +137 -0
  303. package/types/edsis-angular-component-resizable.d.ts +166 -0
  304. package/types/edsis-angular-component-scroll-area.d.ts +37 -0
  305. package/types/edsis-angular-component-segmented-control.d.ts +102 -0
  306. package/types/edsis-angular-component-select.d.ts +138 -0
  307. package/types/edsis-angular-component-separator.d.ts +26 -0
  308. package/types/edsis-angular-component-sheet.d.ts +240 -0
  309. package/types/edsis-angular-component-skeleton.d.ts +13 -0
  310. package/types/edsis-angular-component-slider.d.ts +148 -0
  311. package/types/edsis-angular-component-spinner.d.ts +31 -0
  312. package/types/edsis-angular-component-switch.d.ts +101 -0
  313. package/types/edsis-angular-component-table.d.ts +109 -0
  314. package/types/edsis-angular-component-tabs.d.ts +183 -0
  315. package/types/edsis-angular-component-textarea.d.ts +27 -0
  316. package/types/edsis-angular-component-timeline.d.ts +146 -0
  317. package/types/edsis-angular-component-toast.d.ts +60 -0
  318. package/types/edsis-angular-component-toggle-group.d.ts +161 -0
  319. package/types/edsis-angular-component-toggle.d.ts +47 -0
  320. package/types/edsis-angular-component-tooltip.d.ts +233 -0
  321. package/types/edsis-angular-component-utils-core.d.ts +175 -0
  322. package/types/edsis-angular-component-utils-overlay.d.ts +17 -0
  323. package/types/edsis-angular-component-utils-scale.d.ts +27 -0
  324. package/types/edsis-angular-component-utils.d.ts +2 -0
  325. package/types/edsis-angular-component.d.ts +1 -0
  326. package/types/edsis-angular-navigation-core.d.ts +55 -0
  327. package/types/edsis-angular-navigation-icon.d.ts +9 -0
  328. package/types/edsis-angular-navigation-service.d.ts +121 -0
  329. package/types/edsis-angular-navigation-types.d.ts +185 -0
  330. package/types/edsis-angular-navigation.d.ts +862 -0
  331. package/types/edsis-angular-sdk.d.ts +87 -0
  332. package/types/edsis-angular-theme-component-settings.d.ts +205 -0
  333. package/types/edsis-angular-theme-layout-services.d.ts +143 -0
  334. package/types/edsis-angular-theme-layout-types.d.ts +36 -0
  335. package/types/edsis-angular-theme-layout-wrapper.d.ts +670 -0
  336. package/types/edsis-angular-theme-layout.d.ts +218 -0
  337. package/types/edsis-angular-theme-on-fill.d.ts +45 -0
  338. package/types/edsis-angular-theme-page-core.d.ts +151 -0
  339. package/types/edsis-angular-theme-page-filter.d.ts +127 -0
  340. package/types/edsis-angular-theme-page-overview.d.ts +28 -0
  341. package/types/edsis-angular-theme-page-root.d.ts +172 -0
  342. package/types/edsis-angular-theme-page-side.d.ts +90 -0
  343. package/types/edsis-angular-theme-page-slots.d.ts +61 -0
  344. package/types/edsis-angular-theme-page.d.ts +7 -0
  345. package/types/edsis-angular-theme-shell-services.d.ts +188 -0
  346. package/types/edsis-angular-theme-shell-types.d.ts +102 -0
  347. package/types/edsis-angular-theme-shell.d.ts +178 -0
  348. package/types/edsis-angular-theme-styles.d.ts +328 -0
  349. package/types/edsis-angular-theme.d.ts +1 -0
  350. package/types/edsis-angular.d.ts +5 -2
  351. package/fesm2022/edsis-angular-block-shell.mjs +0 -1329
  352. package/fesm2022/edsis-angular-block-shell.mjs.map +0 -1
  353. package/fesm2022/edsis-angular-block-themes.mjs +0 -1007
  354. package/fesm2022/edsis-angular-block-themes.mjs.map +0 -1
  355. package/fesm2022/edsis-angular-module-auth.mjs +0 -2582
  356. package/fesm2022/edsis-angular-module-auth.mjs.map +0 -1
  357. package/fesm2022/edsis-angular-platform-mfe.mjs +0 -329
  358. package/fesm2022/edsis-angular-platform-mfe.mjs.map +0 -1
  359. package/fesm2022/edsis-angular-services-runtime.mjs +0 -385
  360. package/fesm2022/edsis-angular-services-runtime.mjs.map +0 -1
  361. package/fesm2022/edsis-angular.mjs.map +0 -1
  362. package/types/edsis-angular-block-shell.d.ts +0 -190
  363. package/types/edsis-angular-block-themes.d.ts +0 -94
  364. package/types/edsis-angular-module-auth.d.ts +0 -533
  365. package/types/edsis-angular-platform-mfe.d.ts +0 -126
  366. package/types/edsis-angular-services-runtime.d.ts +0 -118
@@ -0,0 +1,3338 @@
1
+ import { a as injectNavigationBadgeTotal, o as navigationBadgeSourceKeys, r as NAVIGATION_BADGE_STREAMS, s as navigationDescendantBadgeSources } from "./edsis-angular-navigation-navigation-badge-count.component-D70Ju6_f.mjs";
2
+ import { a as NAVIGATION_SHELL } from "./edsis-angular-navigation-navigation-item.component-X6JFy-ya.mjs";
3
+ import { t as NavigationListComponent } from "./edsis-angular-navigation-navigation-list.component-D6Ms8H5g.mjs";
4
+ import * as i0 from "@angular/core";
5
+ import { Component, DestroyRef, Directive, ElementRef, Injector, TemplateRef, ViewContainerRef, afterNextRender, booleanAttribute, computed, contentChild, effect, forwardRef, inject, input, isDevMode, model, output, signal } from "@angular/core";
6
+ import { ActivatedRoute } from "@angular/router";
7
+ import { cn } from "@edsis/angular/component/utils/core";
8
+ import { NavigationIconDirective, NavigationIconDirective as NavigationIconDirective$1 } from "@edsis/angular/navigation/icon";
9
+ import { NAVIGATION_ADAPTER, NAVIGATION_ROUTE_CONTEXT_ADAPTER } from "@edsis/angular/navigation/core";
10
+ import { NAVIGATION_DOCKBAR_FALLBACK_ICON, NAVIGATION_DOCKBAR_FALLBACK_ICON as NAVIGATION_DOCKBAR_FALLBACK_ICON$1, formatNavigationBadgeCount, normalizeUiNavItems, normalizeUiNavItems as normalizeUiNavItems$1, toMinidockItems, ɵassertMinidockItems, ɵcompactNavigationDividers } from "@edsis/angular/navigation/types";
11
+ import { NgTemplateOutlet } from "@angular/common";
12
+ import { LucideCircle, LucideCircleDot, LucideRoute } from "@lucide/angular";
13
+ import { IconComponent, provideIcons } from "@edsis/angular/component/icon";
14
+ import { TooltipDirective } from "@edsis/angular/component/tooltip";
15
+ export * from "@edsis/angular/navigation/core";
16
+ function injectNavigationController(inputs) {
17
+ const nav = inject(NAVIGATION_ADAPTER);
18
+ const owner = {};
19
+ const registeredState = signal(null, ...ngDevMode ? [{ debugName: "registeredState" }] : /* istanbul ignore next */ []);
20
+ const normalizedNavId = computed(() => normalizeId(inputs.navId()), ...ngDevMode ? [{ debugName: "normalizedNavId" }] : /* istanbul ignore next */ []);
21
+ const collapsedPreference = computed(() => inputs.collapsed() ?? (inputs.compact() ? true : null), ...ngDevMode ? [{ debugName: "collapsedPreference" }] : /* istanbul ignore next */ []);
22
+ const normalizedItems = computed(() => normalizeUiNavItems$1(inputs.data()), ...ngDevMode ? [{ debugName: "normalizedItems" }] : /* istanbul ignore next */ []);
23
+ const fallbackState = computed(() => ({
24
+ id: normalizedNavId(),
25
+ orientation: inputs.orientation(),
26
+ type: fallbackType(inputs.orientation(), inputs.type()),
27
+ position: inputs.position() ?? (inputs.orientation() === "horizontal" ? "top" : "left"),
28
+ collapsed: collapsedPreference() ?? false,
29
+ dockbarMode: inputs.dockbarMode() ?? "sticky"
30
+ }), ...ngDevMode ? [{ debugName: "fallbackState" }] : /* istanbul ignore next */ []);
31
+ const resolvedState = computed(() => nav.currentState(normalizedNavId()) ?? registeredState() ?? fallbackState(), ...ngDevMode ? [{ debugName: "resolvedState" }] : /* istanbul ignore next */ []);
32
+ const activeIdSet = computed(() => {
33
+ const ids = inputs.activeIds();
34
+ if (!ids) return /* @__PURE__ */ new Set();
35
+ return ids instanceof Set ? new Set(ids) : new Set(ids);
36
+ }, ...ngDevMode ? [{ debugName: "activeIdSet" }] : /* istanbul ignore next */ []);
37
+ effect((onCleanup) => {
38
+ if (!inputs.enabled()) return;
39
+ const nextState = nav.register({
40
+ id: normalizedNavId(),
41
+ orientation: inputs.orientation(),
42
+ type: inputs.type(),
43
+ position: inputs.position(),
44
+ collapsed: collapsedPreference(),
45
+ dockbarMode: inputs.dockbarMode()
46
+ }, owner);
47
+ registeredState.set(nextState);
48
+ onCleanup(() => nav.unregister(nextState.id, owner));
49
+ });
50
+ return {
51
+ normalizedNavId,
52
+ normalizedItems,
53
+ resolvedState,
54
+ activeIdSet,
55
+ toggleCollapsed: () => nav.toggleCollapsed(normalizedNavId())
56
+ };
57
+ }
58
+ function normalizeId(value) {
59
+ return value.trim() || "default";
60
+ }
61
+ function fallbackType(orientation, type) {
62
+ if (orientation === "vertical" && (type === "sidebar" || type === "dockbar" || type === "minidock")) return type;
63
+ if (orientation === "horizontal" && (type === "navbar" || type === "flyout")) return type;
64
+ return orientation === "horizontal" ? "navbar" : "sidebar";
65
+ }
66
+ const EMPTY_NAVIGATION_BADGE_CONTEXT$1 = Object.freeze({});
67
+ const EMPTY_NAVIGATION_ACTIVE_IDS = /* @__PURE__ */ new Set();
68
+ var NavigationContainerComponent = class NavigationContainerComponent {
69
+ navId = input("default", {
70
+ ...ngDevMode ? { debugName: "navId" } : /* istanbul ignore next */ {},
71
+ alias: "id"
72
+ });
73
+ dataId = input(null, {
74
+ ...ngDevMode ? { debugName: "dataId" } : /* istanbul ignore next */ {},
75
+ alias: "data-id"
76
+ });
77
+ data = input([], ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
78
+ badgeContext = input(null, {
79
+ ...ngDevMode ? { debugName: "badgeContext" } : /* istanbul ignore next */ {},
80
+ alias: "badge-context"
81
+ });
82
+ ariaLabel = input("Primary navigation", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
83
+ compact = input(false, ...ngDevMode ? [{ debugName: "compact" }] : /* istanbul ignore next */ []);
84
+ collapseTree = input("stairs", {
85
+ ...ngDevMode ? { debugName: "collapseTree" } : /* istanbul ignore next */ {},
86
+ alias: "collapse-tree"
87
+ });
88
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
89
+ itemClass = input("", ...ngDevMode ? [{ debugName: "itemClass" }] : /* istanbul ignore next */ []);
90
+ groupClass = input("", {
91
+ ...ngDevMode ? { debugName: "groupClass" } : /* istanbul ignore next */ {},
92
+ alias: "nav-group-class"
93
+ });
94
+ activeIds = input(null, ...ngDevMode ? [{ debugName: "activeIds" }] : /* istanbul ignore next */ []);
95
+ activeUrl = input(null, ...ngDevMode ? [{ debugName: "activeUrl" }] : /* istanbul ignore next */ []);
96
+ openedIds = model([], ...ngDevMode ? [{ debugName: "openedIds" }] : /* istanbul ignore next */ []);
97
+ itemSelected = output();
98
+ nav = inject(NAVIGATION_ADAPTER);
99
+ routeContextAdapter = inject(NAVIGATION_ROUTE_CONTEXT_ADAPTER);
100
+ activatedRoute = inject(ActivatedRoute, { optional: true });
101
+ dataOwner = {};
102
+ hoverPreviewExpanded = signal(false, ...ngDevMode ? [{ debugName: "hoverPreviewExpanded" }] : /* istanbul ignore next */ []);
103
+ focusPreviewExpanded = signal(false, ...ngDevMode ? [{ debugName: "focusPreviewExpanded" }] : /* istanbul ignore next */ []);
104
+ motionArmed = signal(false, ...ngDevMode ? [{ debugName: "motionArmed" }] : /* istanbul ignore next */ []);
105
+ typeConfig = signal(null, ...ngDevMode ? [{ debugName: "typeConfig" }] : /* istanbul ignore next */ []);
106
+ orientationPreference = computed(() => this.typeConfig()?.orientation ?? "vertical", ...ngDevMode ? [{ debugName: "orientationPreference" }] : /* istanbul ignore next */ []);
107
+ typePreference = computed(() => this.typeConfig()?.type ?? null, ...ngDevMode ? [{ debugName: "typePreference" }] : /* istanbul ignore next */ []);
108
+ positionPreference = computed(() => this.typeConfig()?.position?.() ?? null, ...ngDevMode ? [{ debugName: "positionPreference" }] : /* istanbul ignore next */ []);
109
+ collapsedPreference = computed(() => this.typeConfig()?.collapsed?.() ?? null, ...ngDevMode ? [{ debugName: "collapsedPreference" }] : /* istanbul ignore next */ []);
110
+ dockbarModePreference = computed(() => this.typeConfig()?.dockbarMode?.() ?? null, ...ngDevMode ? [{ debugName: "dockbarModePreference" }] : /* istanbul ignore next */ []);
111
+ dockbarRouteContextPreference = computed(() => this.typeConfig()?.dockbarRouteContext?.() ?? null, ...ngDevMode ? [{ debugName: "dockbarRouteContextPreference" }] : /* istanbul ignore next */ []);
112
+ resolvedBadgeContext = computed(() => this.badgeContext() ?? this.typeConfig()?.dockbarBadgeContext?.() ?? EMPTY_NAVIGATION_BADGE_CONTEXT$1, ...ngDevMode ? [{ debugName: "resolvedBadgeContext" }] : /* istanbul ignore next */ []);
113
+ dockbarBadgeContext = this.resolvedBadgeContext;
114
+ dockbarRouteHeaderVisible = computed(() => this.typeConfig()?.dockbarRouteHeaderVisible?.() ?? false, ...ngDevMode ? [{ debugName: "dockbarRouteHeaderVisible" }] : /* istanbul ignore next */ []);
115
+ dockbarAsideFooter = computed(() => this.typeConfig()?.dockbarAsideFooter?.() ?? null, ...ngDevMode ? [{ debugName: "dockbarAsideFooter" }] : /* istanbul ignore next */ []);
116
+ sidebarCollapse = computed(() => this.typeConfig()?.sidebarCollapse?.() ?? false, ...ngDevMode ? [{ debugName: "sidebarCollapse" }] : /* istanbul ignore next */ []);
117
+ previewExpanded = computed(() => this.typeConfig()?.previewExpanded?.() ?? false, ...ngDevMode ? [{ debugName: "previewExpanded" }] : /* istanbul ignore next */ []);
118
+ typeStyle = computed(() => this.typeConfig()?.typeStyle?.() ?? "flat", ...ngDevMode ? [{ debugName: "typeStyle" }] : /* istanbul ignore next */ []);
119
+ flyoutLabel = computed(() => this.typeConfig()?.flyoutLabel?.() ?? "Menu", ...ngDevMode ? [{ debugName: "flyoutLabel" }] : /* istanbul ignore next */ []);
120
+ flyoutIcon = computed(() => this.typeConfig()?.flyoutIcon?.() ?? null, ...ngDevMode ? [{ debugName: "flyoutIcon" }] : /* istanbul ignore next */ []);
121
+ flyoutIconOnly = computed(() => this.typeConfig()?.flyoutIconOnly?.() ?? false, ...ngDevMode ? [{ debugName: "flyoutIconOnly" }] : /* istanbul ignore next */ []);
122
+ flyoutIconPosition = computed(() => this.typeConfig()?.flyoutIconPosition?.() ?? "start", ...ngDevMode ? [{ debugName: "flyoutIconPosition" }] : /* istanbul ignore next */ []);
123
+ flyoutTriggerVariant = computed(() => this.typeConfig()?.flyoutTriggerVariant?.() ?? "button", ...ngDevMode ? [{ debugName: "flyoutTriggerVariant" }] : /* istanbul ignore next */ []);
124
+ flyoutTriggerFloating = computed(() => this.typeConfig()?.flyoutTriggerFloating?.() ?? false, ...ngDevMode ? [{ debugName: "flyoutTriggerFloating" }] : /* istanbul ignore next */ []);
125
+ flyoutPanelViewport = computed(() => this.typeConfig()?.flyoutPanelViewport?.() ?? false, ...ngDevMode ? [{ debugName: "flyoutPanelViewport" }] : /* istanbul ignore next */ []);
126
+ flyoutTriggerClass = computed(() => this.typeConfig()?.flyoutTriggerClass?.() ?? "", ...ngDevMode ? [{ debugName: "flyoutTriggerClass" }] : /* istanbul ignore next */ []);
127
+ flyoutTriggerButtonClass = computed(() => this.typeConfig()?.flyoutTriggerButtonClass?.() ?? "", ...ngDevMode ? [{ debugName: "flyoutTriggerButtonClass" }] : /* istanbul ignore next */ []);
128
+ controller = injectNavigationController({
129
+ navId: this.navId,
130
+ data: this.data,
131
+ orientation: this.orientationPreference,
132
+ type: this.typePreference,
133
+ position: this.positionPreference,
134
+ collapsed: this.collapsedPreference,
135
+ dockbarMode: this.dockbarModePreference,
136
+ compact: this.compact,
137
+ activeIds: this.activeIds,
138
+ enabled: computed(() => this.typeConfig() !== null)
139
+ });
140
+ iconTemplate = contentChild(NavigationIconDirective$1, ...ngDevMode ? [{ debugName: "iconTemplate" }] : /* istanbul ignore next */ []);
141
+ normalizedItems = this.controller.normalizedItems;
142
+ resolvedState = this.controller.resolvedState;
143
+ activeIdSet = this.controller.activeIdSet;
144
+ dockbarRouteEnabled = computed(() => {
145
+ const context = this.dockbarRouteContextPreference();
146
+ return context !== null && context !== false;
147
+ }, ...ngDevMode ? [{ debugName: "dockbarRouteEnabled" }] : /* istanbul ignore next */ []);
148
+ dockbarResolvedRouteContext = computed(() => {
149
+ const automatic = this.routeContextAdapter.routeContext();
150
+ const config = this.dockbarRouteConfig();
151
+ return {
152
+ url: this.cleanString(config.url) ?? this.activeUrl() ?? automatic.url,
153
+ icon: config.icon === void 0 ? automatic.icon : this.cleanString(config.icon),
154
+ badge: config.badge === void 0 ? automatic.badge : this.cleanString(config.badge),
155
+ label: config.label === void 0 ? automatic.label : this.cleanString(config.label)
156
+ };
157
+ }, ...ngDevMode ? [{ debugName: "dockbarResolvedRouteContext" }] : /* istanbul ignore next */ []);
158
+ dockbarActiveRouteEntry = computed(() => {
159
+ if (!this.dockbarRouteEnabled()) return null;
160
+ const activeUrl = this.dockbarResolvedRouteContext().url;
161
+ return this.normalizedItems().find((entry) => this.routeContextAdapter.isItemRouteActive(entry, activeUrl, this.activatedRoute)) ?? null;
162
+ }, ...ngDevMode ? [{ debugName: "dockbarActiveRouteEntry" }] : /* istanbul ignore next */ []);
163
+ dockbarResolvedActiveIds = computed(() => this.dockbarRouteEnabled() ? EMPTY_NAVIGATION_ACTIVE_IDS : this.activeIdSet(), ...ngDevMode ? [{ debugName: "dockbarResolvedActiveIds" }] : /* istanbul ignore next */ []);
164
+ dockbarActiveRoutePanelGroup = computed(() => {
165
+ const entry = this.dockbarActiveRouteEntry();
166
+ return entry && entry.children.length > 0 ? entry : null;
167
+ }, ...ngDevMode ? [{ debugName: "dockbarActiveRoutePanelGroup" }] : /* istanbul ignore next */ []);
168
+ dockbarRouteHeader = computed(() => {
169
+ if (!this.dockbarRouteEnabled()) return null;
170
+ const activeEntry = this.dockbarActiveRouteEntry();
171
+ const route = this.dockbarResolvedRouteContext();
172
+ const fallbackIcon = this.cleanString(this.dockbarRouteConfig().fallbackIcon) ?? NAVIGATION_DOCKBAR_FALLBACK_ICON$1;
173
+ const icon = activeEntry ? this.cleanString(activeEntry.icon) ?? fallbackIcon : route.icon ?? fallbackIcon;
174
+ const label = this.cleanString(activeEntry?.title) ?? route.label ?? "Current navigation route";
175
+ const badgeKey = activeEntry?.badge?.source ?? route.badge;
176
+ const badgeContext = this.resolvedBadgeContext();
177
+ const badge = badgeKey && Object.hasOwn(badgeContext, badgeKey) ? badgeContext[badgeKey] : null;
178
+ const item = activeEntry?.source ?? {
179
+ title: label,
180
+ icon
181
+ };
182
+ return {
183
+ activeEntry,
184
+ panelGroup: this.dockbarActiveRoutePanelGroup(),
185
+ icon,
186
+ label,
187
+ badge,
188
+ badgeClass: cn("nav-count-overlay top-0 right-0", activeEntry?.badge?.classes),
189
+ iconContext: {
190
+ $implicit: icon,
191
+ icon,
192
+ item,
193
+ active: true,
194
+ orientation: "vertical",
195
+ level: 0
196
+ }
197
+ };
198
+ }, ...ngDevMode ? [{ debugName: "dockbarRouteHeader" }] : /* istanbul ignore next */ []);
199
+ dockbarRailItems = computed(() => {
200
+ const activeEntry = this.dockbarRouteHeaderVisible() ? this.dockbarActiveRouteEntry() : null;
201
+ if (activeEntry === null) return this.normalizedItems();
202
+ return this.normalizedItems().filter((entry) => entry.key !== activeEntry.key);
203
+ }, ...ngDevMode ? [{ debugName: "dockbarRailItems" }] : /* istanbul ignore next */ []);
204
+ minidockRailItems = computed(() => ɵcompactNavigationDividers(this.normalizedItems()), ...ngDevMode ? [{ debugName: "minidockRailItems" }] : /* istanbul ignore next */ []);
205
+ dockbarAsideId = computed(() => `nav-dockbar-${this.safeId(this.resolvedState().id)}`, ...ngDevMode ? [{ debugName: "dockbarAsideId" }] : /* istanbul ignore next */ []);
206
+ dockbarOpenGroup = computed(() => {
207
+ const state = this.resolvedState();
208
+ if (state.type !== "dockbar") return null;
209
+ if (!this.dockbarRouteEnabled()) return this.nav.resolveDockbarGroup(state.id, this.normalizedItems(), state.dockbarMode, this.activeIdSet(), this.activeUrl());
210
+ const groups = this.nav.dockbarGroups(this.normalizedItems());
211
+ const explicitKey = this.nav.currentPanelKey(state.id);
212
+ const explicitGroup = explicitKey === null ? null : groups.find((group) => group.key === explicitKey) ?? null;
213
+ if (explicitGroup !== null) return explicitGroup;
214
+ return state.dockbarMode === "sticky" ? this.dockbarActiveRoutePanelGroup() : null;
215
+ }, ...ngDevMode ? [{ debugName: "dockbarOpenGroup" }] : /* istanbul ignore next */ []);
216
+ dockbarActiveRoutePanelExpanded = computed(() => {
217
+ const panelGroup = this.dockbarActiveRoutePanelGroup();
218
+ const state = this.resolvedState();
219
+ if (panelGroup === null || state.type !== "dockbar") return false;
220
+ return this.dockbarOpenGroup()?.key === panelGroup.key;
221
+ }, ...ngDevMode ? [{ debugName: "dockbarActiveRoutePanelExpanded" }] : /* istanbul ignore next */ []);
222
+ previewRailExpanded = computed(() => {
223
+ const state = this.resolvedState();
224
+ if (state.orientation !== "vertical" || state.type !== "sidebar" || !state.collapsed) return false;
225
+ return this.previewExpanded() || this.sidebarCollapse() && (this.hoverPreviewExpanded() || this.focusPreviewExpanded());
226
+ }, ...ngDevMode ? [{ debugName: "previewRailExpanded" }] : /* istanbul ignore next */ []);
227
+ previewRailOffset = computed(() => this.previewRailExpanded() ? "calc(var(--layout-sidebar-width) - var(--layout-sidebar-collapsed-width))" : "0px", ...ngDevMode ? [{ debugName: "previewRailOffset" }] : /* istanbul ignore next */ []);
228
+ displayState = computed(() => {
229
+ const state = this.resolvedState();
230
+ if (state.type === "dockbar" || state.type === "minidock") return {
231
+ ...state,
232
+ collapsed: true
233
+ };
234
+ return this.previewRailExpanded() ? {
235
+ ...state,
236
+ collapsed: false
237
+ } : state;
238
+ }, ...ngDevMode ? [{ debugName: "displayState" }] : /* istanbul ignore next */ []);
239
+ dockbarAsideOpen = computed(() => {
240
+ const state = this.resolvedState();
241
+ if (state.type !== "dockbar" || state.dockbarMode !== "sticky") return false;
242
+ return this.dockbarOpenGroup() !== null;
243
+ }, ...ngDevMode ? [{ debugName: "dockbarAsideOpen" }] : /* istanbul ignore next */ []);
244
+ collapseEnabled = computed(() => {
245
+ const state = this.resolvedState();
246
+ return this.sidebarCollapse() && state.orientation === "vertical" && state.type === "sidebar";
247
+ }, ...ngDevMode ? [{ debugName: "collapseEnabled" }] : /* istanbul ignore next */ []);
248
+ shellClasses = computed(() => cn("flex h-full min-h-0 transition-[width,box-shadow,transform] duration-slow ease-out motion-reduce:transition-none [[data-motion=off]_&]:transition-none", this.resolvedState().orientation === "horizontal" ? "flex-row items-stretch overflow-visible" : this.resolvedState().type === "dockbar" ? "flex-col overflow-visible" : "flex-col overflow-hidden", this.resolvedState().type === "dockbar" && ["w-(--layout-sidebar-collapsed-width) shrink-0", this.resolvedState().position === "right" && "ml-auto"], this.resolvedState().position === "right" ? "origin-right" : "origin-left", this.previewRailExpanded() && ["absolute inset-y-0 z-20 w-(--layout-sidebar-width) overflow-hidden bg-background shadow-xl", this.resolvedState().position === "right" ? "right-0 border-l border-border" : "left-0 border-r border-border"]), ...ngDevMode ? [{ debugName: "shellClasses" }] : /* istanbul ignore next */ []);
249
+ state = this.resolvedState;
250
+ resolvedDataId = computed(() => this.dataId()?.trim() || this.navId().trim() || "default", ...ngDevMode ? [{ debugName: "resolvedDataId" }] : /* istanbul ignore next */ []);
251
+ hostClasses = computed(() => cn("relative block min-h-0 text-foreground transition-[width] duration-slow ease-out motion-reduce:transition-none data-[motion=off]:transition-none", this.resolvedState().orientation === "horizontal" ? "h-full w-full" : this.resolvedState().type === "dockbar" ? this.dockbarAsideOpen() ? "w-[calc(var(--layout-sidebar-collapsed-width)+var(--layout-aside-width))]" : "w-(--layout-sidebar-collapsed-width)" : this.resolvedState().type === "minidock" || this.resolvedState().collapsed ? "w-(--layout-sidebar-collapsed-width)" : "w-(--layout-sidebar-width)", this.resolvedState().orientation === "horizontal" || this.resolvedState().type === "dockbar" || this.previewRailExpanded() ? "overflow-visible" : "overflow-hidden", this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
252
+ armMotion() {
253
+ if (!this.motionArmed()) this.motionArmed.set(true);
254
+ }
255
+ constructor() {
256
+ injectNavigationBadgeTotal(computed(() => {
257
+ const context = this.resolvedBadgeContext();
258
+ const sources = [...navigationBadgeSourceKeys(this.normalizedItems())].filter((key) => Object.hasOwn(context, key) && context[key] != null).map((key) => context[key]);
259
+ const headerBadge = this.dockbarRouteHeaderVisible() ? this.dockbarRouteHeader()?.badge : null;
260
+ return headerBadge ? [...sources, headerBadge] : sources;
261
+ }));
262
+ effect((onCleanup) => {
263
+ const dataId = this.resolvedDataId();
264
+ this.nav.publishData(dataId, this.data(), this.dataOwner);
265
+ onCleanup(() => this.nav.clearData(dataId, this.dataOwner));
266
+ });
267
+ }
268
+ registerType(config) {
269
+ if (this.typeConfig() !== null && isDevMode()) throw new Error("[Navigation] Hanya satu type (<NavigationSidebar>/<NavigationDockbar>/<NavigationMinidock>/<NavigationNavbar>/<NavigationFlyout>) yang boleh hidup dalam satu <Navigation>.");
270
+ this.typeConfig.set(config);
271
+ }
272
+ unregisterType(config) {
273
+ if (this.typeConfig() === config) this.typeConfig.set(null);
274
+ }
275
+ toggleCollapsed() {
276
+ this.controller.toggleCollapsed();
277
+ }
278
+ toggleDockbarActiveRoutePanel() {
279
+ const state = this.resolvedState();
280
+ const panelGroup = this.dockbarActiveRoutePanelGroup();
281
+ if (state.type === "dockbar" && state.dockbarMode === "drawer" && panelGroup !== null) this.nav.togglePanel(state.id, panelGroup);
282
+ }
283
+ closeDockbarPanel() {
284
+ const state = this.resolvedState();
285
+ if (state.type === "dockbar" && this.nav.currentPanelKey(state.id) !== null) {
286
+ this.nav.closePanel(state.id);
287
+ return true;
288
+ }
289
+ return false;
290
+ }
291
+ restoreDockbarRoutePanel() {
292
+ const state = this.resolvedState();
293
+ if (!this.dockbarRouteEnabled() || state.type !== "dockbar" || state.dockbarMode !== "sticky" || this.nav.currentPanelKey(state.id) === null) return;
294
+ this.nav.closePanel(state.id);
295
+ }
296
+ setHoverPreview(value) {
297
+ this.hoverPreviewExpanded.set(this.sidebarCollapse() ? value : false);
298
+ }
299
+ setFocusPreview(value, event) {
300
+ if (!this.sidebarCollapse()) {
301
+ this.focusPreviewExpanded.set(false);
302
+ return;
303
+ }
304
+ if (!value && event) {
305
+ const next = event.relatedTarget;
306
+ const host = event.currentTarget;
307
+ if (next instanceof Node && host instanceof Node && host.contains(next)) return;
308
+ }
309
+ this.focusPreviewExpanded.set(value);
310
+ }
311
+ dockbarRouteConfig() {
312
+ const context = this.dockbarRouteContextPreference();
313
+ return context !== null && typeof context === "object" ? context : {};
314
+ }
315
+ cleanString(value) {
316
+ return typeof value === "string" && value.trim() ? value.trim() : null;
317
+ }
318
+ safeId(value) {
319
+ return value.trim().toLowerCase().replace(/[^a-z0-9_-]+/g, "-") || "default";
320
+ }
321
+ static ɵfac = i0.ɵɵngDeclareFactory({
322
+ minVersion: "12.0.0",
323
+ version: "22.2.4",
324
+ ngImport: i0,
325
+ type: NavigationContainerComponent,
326
+ deps: [],
327
+ target: i0.ɵɵFactoryTarget.Component
328
+ });
329
+ static ɵcmp = i0.ɵɵngDeclareComponent({
330
+ minVersion: "17.2.0",
331
+ version: "22.2.4",
332
+ type: NavigationContainerComponent,
333
+ isStandalone: true,
334
+ selector: "Navigation",
335
+ inputs: {
336
+ navId: {
337
+ classPropertyName: "navId",
338
+ publicName: "id",
339
+ isSignal: true,
340
+ isRequired: false,
341
+ transformFunction: null
342
+ },
343
+ dataId: {
344
+ classPropertyName: "dataId",
345
+ publicName: "data-id",
346
+ isSignal: true,
347
+ isRequired: false,
348
+ transformFunction: null
349
+ },
350
+ data: {
351
+ classPropertyName: "data",
352
+ publicName: "data",
353
+ isSignal: true,
354
+ isRequired: false,
355
+ transformFunction: null
356
+ },
357
+ badgeContext: {
358
+ classPropertyName: "badgeContext",
359
+ publicName: "badge-context",
360
+ isSignal: true,
361
+ isRequired: false,
362
+ transformFunction: null
363
+ },
364
+ ariaLabel: {
365
+ classPropertyName: "ariaLabel",
366
+ publicName: "ariaLabel",
367
+ isSignal: true,
368
+ isRequired: false,
369
+ transformFunction: null
370
+ },
371
+ compact: {
372
+ classPropertyName: "compact",
373
+ publicName: "compact",
374
+ isSignal: true,
375
+ isRequired: false,
376
+ transformFunction: null
377
+ },
378
+ collapseTree: {
379
+ classPropertyName: "collapseTree",
380
+ publicName: "collapse-tree",
381
+ isSignal: true,
382
+ isRequired: false,
383
+ transformFunction: null
384
+ },
385
+ class: {
386
+ classPropertyName: "class",
387
+ publicName: "class",
388
+ isSignal: true,
389
+ isRequired: false,
390
+ transformFunction: null
391
+ },
392
+ itemClass: {
393
+ classPropertyName: "itemClass",
394
+ publicName: "itemClass",
395
+ isSignal: true,
396
+ isRequired: false,
397
+ transformFunction: null
398
+ },
399
+ groupClass: {
400
+ classPropertyName: "groupClass",
401
+ publicName: "nav-group-class",
402
+ isSignal: true,
403
+ isRequired: false,
404
+ transformFunction: null
405
+ },
406
+ activeIds: {
407
+ classPropertyName: "activeIds",
408
+ publicName: "activeIds",
409
+ isSignal: true,
410
+ isRequired: false,
411
+ transformFunction: null
412
+ },
413
+ activeUrl: {
414
+ classPropertyName: "activeUrl",
415
+ publicName: "activeUrl",
416
+ isSignal: true,
417
+ isRequired: false,
418
+ transformFunction: null
419
+ },
420
+ openedIds: {
421
+ classPropertyName: "openedIds",
422
+ publicName: "openedIds",
423
+ isSignal: true,
424
+ isRequired: false,
425
+ transformFunction: null
426
+ }
427
+ },
428
+ outputs: {
429
+ openedIds: "openedIdsChange",
430
+ itemSelected: "itemSelected"
431
+ },
432
+ host: {
433
+ attributes: { "role": "navigation" },
434
+ listeners: {
435
+ "document:pointerdown": "armMotion()",
436
+ "document:keydown": "armMotion()",
437
+ "mouseenter": "setHoverPreview(true)",
438
+ "mouseleave": "setHoverPreview(false)",
439
+ "focusin": "setFocusPreview(true)",
440
+ "focusout": "setFocusPreview(false, $event)"
441
+ },
442
+ properties: {
443
+ "class": "hostClasses()",
444
+ "attr.aria-label": "ariaLabel() || null",
445
+ "attr.data-navigation-id": "resolvedState().id",
446
+ "attr.data-id": "resolvedDataId()",
447
+ "attr.data-orientation": "resolvedState().orientation",
448
+ "attr.data-type": "resolvedState().type",
449
+ "attr.data-type-style": "typeStyle()",
450
+ "attr.data-position": "resolvedState().position",
451
+ "attr.data-collapse-tree": "collapseTree()",
452
+ "attr.data-preview-expanded": "previewRailExpanded() ? \"true\" : null",
453
+ "attr.data-motion": "motionArmed() ? null : \"off\""
454
+ }
455
+ },
456
+ providers: [{
457
+ provide: NAVIGATION_BADGE_STREAMS,
458
+ useFactory: () => /* @__PURE__ */ new WeakMap()
459
+ }, {
460
+ provide: NAVIGATION_SHELL,
461
+ useExisting: forwardRef(() => NavigationContainerComponent)
462
+ }],
463
+ queries: [{
464
+ propertyName: "iconTemplate",
465
+ first: true,
466
+ predicate: NavigationIconDirective$1,
467
+ descendants: true,
468
+ isSignal: true
469
+ }],
470
+ ngImport: i0,
471
+ template: ` <ng-content /> `,
472
+ isInline: true
473
+ });
474
+ };
475
+ i0.ɵɵngDeclareClassMetadata({
476
+ minVersion: "12.0.0",
477
+ version: "22.2.4",
478
+ ngImport: i0,
479
+ type: NavigationContainerComponent,
480
+ decorators: [{
481
+ type: Component,
482
+ args: [{
483
+ selector: "Navigation",
484
+ providers: [{
485
+ provide: NAVIGATION_BADGE_STREAMS,
486
+ useFactory: () => /* @__PURE__ */ new WeakMap()
487
+ }, {
488
+ provide: NAVIGATION_SHELL,
489
+ useExisting: forwardRef(() => NavigationContainerComponent)
490
+ }],
491
+ host: {
492
+ "[class]": "hostClasses()",
493
+ role: "navigation",
494
+ "[attr.aria-label]": "ariaLabel() || null",
495
+ "[attr.data-navigation-id]": "resolvedState().id",
496
+ "[attr.data-id]": "resolvedDataId()",
497
+ "[attr.data-orientation]": "resolvedState().orientation",
498
+ "[attr.data-type]": "resolvedState().type",
499
+ "[attr.data-type-style]": "typeStyle()",
500
+ "[attr.data-position]": "resolvedState().position",
501
+ "[attr.data-collapse-tree]": "collapseTree()",
502
+ "[attr.data-preview-expanded]": "previewRailExpanded() ? \"true\" : null",
503
+ "[attr.data-motion]": "motionArmed() ? null : \"off\"",
504
+ "(document:pointerdown)": "armMotion()",
505
+ "(document:keydown)": "armMotion()",
506
+ "(mouseenter)": "setHoverPreview(true)",
507
+ "(mouseleave)": "setHoverPreview(false)",
508
+ "(focusin)": "setFocusPreview(true)",
509
+ "(focusout)": "setFocusPreview(false, $event)"
510
+ },
511
+ template: ` <ng-content /> `
512
+ }]
513
+ }],
514
+ ctorParameters: () => [],
515
+ propDecorators: {
516
+ navId: [{
517
+ type: i0.Input,
518
+ args: [{
519
+ isSignal: true,
520
+ alias: "id",
521
+ required: false
522
+ }]
523
+ }],
524
+ dataId: [{
525
+ type: i0.Input,
526
+ args: [{
527
+ isSignal: true,
528
+ alias: "data-id",
529
+ required: false
530
+ }]
531
+ }],
532
+ data: [{
533
+ type: i0.Input,
534
+ args: [{
535
+ isSignal: true,
536
+ alias: "data",
537
+ required: false
538
+ }]
539
+ }],
540
+ badgeContext: [{
541
+ type: i0.Input,
542
+ args: [{
543
+ isSignal: true,
544
+ alias: "badge-context",
545
+ required: false
546
+ }]
547
+ }],
548
+ ariaLabel: [{
549
+ type: i0.Input,
550
+ args: [{
551
+ isSignal: true,
552
+ alias: "ariaLabel",
553
+ required: false
554
+ }]
555
+ }],
556
+ compact: [{
557
+ type: i0.Input,
558
+ args: [{
559
+ isSignal: true,
560
+ alias: "compact",
561
+ required: false
562
+ }]
563
+ }],
564
+ collapseTree: [{
565
+ type: i0.Input,
566
+ args: [{
567
+ isSignal: true,
568
+ alias: "collapse-tree",
569
+ required: false
570
+ }]
571
+ }],
572
+ class: [{
573
+ type: i0.Input,
574
+ args: [{
575
+ isSignal: true,
576
+ alias: "class",
577
+ required: false
578
+ }]
579
+ }],
580
+ itemClass: [{
581
+ type: i0.Input,
582
+ args: [{
583
+ isSignal: true,
584
+ alias: "itemClass",
585
+ required: false
586
+ }]
587
+ }],
588
+ groupClass: [{
589
+ type: i0.Input,
590
+ args: [{
591
+ isSignal: true,
592
+ alias: "nav-group-class",
593
+ required: false
594
+ }]
595
+ }],
596
+ activeIds: [{
597
+ type: i0.Input,
598
+ args: [{
599
+ isSignal: true,
600
+ alias: "activeIds",
601
+ required: false
602
+ }]
603
+ }],
604
+ activeUrl: [{
605
+ type: i0.Input,
606
+ args: [{
607
+ isSignal: true,
608
+ alias: "activeUrl",
609
+ required: false
610
+ }]
611
+ }],
612
+ openedIds: [{
613
+ type: i0.Input,
614
+ args: [{
615
+ isSignal: true,
616
+ alias: "openedIds",
617
+ required: false
618
+ }]
619
+ }, {
620
+ type: i0.Output,
621
+ args: ["openedIdsChange"]
622
+ }],
623
+ itemSelected: [{
624
+ type: i0.Output,
625
+ args: ["itemSelected"]
626
+ }],
627
+ iconTemplate: [{
628
+ type: i0.ContentChild,
629
+ args: [i0.forwardRef(() => NavigationIconDirective$1), { isSignal: true }]
630
+ }]
631
+ }
632
+ });
633
+ var NavigationContentComponent = class NavigationContentComponent {
634
+ container = inject(NavigationContainerComponent);
635
+ class = input("", {
636
+ ...ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {},
637
+ alias: "class"
638
+ });
639
+ hostClasses = computed(() => cn("min-h-0 flex-1", this.container.displayState().orientation === "horizontal" ? "flex h-full min-w-0 items-stretch justify-center overflow-visible" : this.container.displayState().type === "minidock" ? "flex flex-col overflow-y-auto overflow-x-hidden py-2" : "block overflow-y-auto overflow-x-hidden py-2", this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
640
+ static ɵfac = i0.ɵɵngDeclareFactory({
641
+ minVersion: "12.0.0",
642
+ version: "22.2.4",
643
+ ngImport: i0,
644
+ type: NavigationContentComponent,
645
+ deps: [],
646
+ target: i0.ɵɵFactoryTarget.Component
647
+ });
648
+ static ɵcmp = i0.ɵɵngDeclareComponent({
649
+ minVersion: "17.0.0",
650
+ version: "22.2.4",
651
+ type: NavigationContentComponent,
652
+ isStandalone: true,
653
+ selector: "NavigationContent",
654
+ inputs: { class: {
655
+ classPropertyName: "class",
656
+ publicName: "class",
657
+ isSignal: true,
658
+ isRequired: false,
659
+ transformFunction: null
660
+ } },
661
+ host: { properties: { "class": "hostClasses()" } },
662
+ ngImport: i0,
663
+ template: `
664
+ @let navState = container.displayState();
665
+
666
+ @if (navState.orientation === 'horizontal' && navState.type === 'flyout') {
667
+ <!-- Less-common renderers are code-split: a sidebar-only app never bundles them. -->
668
+ @defer (on immediate) {
669
+ <NavigationFlyoutMenu
670
+ [navId]="navState.id"
671
+ [items]="container.normalizedItems()"
672
+ [label]="container.flyoutLabel()"
673
+ [icon]="container.flyoutIcon()"
674
+ [iconOnly]="container.flyoutIconOnly()"
675
+ [iconPosition]="container.flyoutIconPosition()"
676
+ [variant]="container.flyoutTriggerVariant()"
677
+ [floating]="container.flyoutTriggerFloating()"
678
+ [viewport]="container.flyoutPanelViewport()"
679
+ [triggerClass]="container.flyoutTriggerClass()"
680
+ [triggerButtonClass]="container.flyoutTriggerButtonClass()"
681
+ [position]="navState.position"
682
+ [typeStyle]="container.typeStyle()"
683
+ [compact]="container.compact()"
684
+ [itemClass]="container.itemClass()"
685
+ [groupClass]="container.groupClass()"
686
+ [activeIds]="container.activeIdSet()"
687
+ [activeUrl]="container.activeUrl()"
688
+ [badgeContext]="container.resolvedBadgeContext()"
689
+ [iconTemplate]="container.iconTemplate()"
690
+ [collapseTree]="container.collapseTree()"
691
+ [openedIds]="container.openedIds()"
692
+ (openedIdsChange)="container.openedIds.set($event)"
693
+ (itemSelected)="container.itemSelected.emit($event)"
694
+ >
695
+ <ng-content select="NavigationHeader" ngProjectAs="NavigationHeader" />
696
+ <ng-content select="NavigationFooter" ngProjectAs="NavigationFooter" />
697
+ </NavigationFlyoutMenu>
698
+ }
699
+ } @else if (navState.orientation === 'horizontal') {
700
+ @defer (on immediate) {
701
+ <NavigationHorizontal
702
+ [navId]="navState.id"
703
+ [items]="container.normalizedItems()"
704
+ [position]="navState.position"
705
+ [typeStyle]="container.typeStyle()"
706
+ [compact]="container.compact()"
707
+ [itemClass]="container.itemClass()"
708
+ [groupClass]="container.groupClass()"
709
+ [activeIds]="container.activeIdSet()"
710
+ [activeUrl]="container.activeUrl()"
711
+ [badgeContext]="container.resolvedBadgeContext()"
712
+ [iconTemplate]="container.iconTemplate()"
713
+ [collapseTree]="container.collapseTree()"
714
+ [openedIds]="container.openedIds()"
715
+ (openedIdsChange)="container.openedIds.set($event)"
716
+ (itemSelected)="container.itemSelected.emit($event)"
717
+ />
718
+ }
719
+ } @else if (navState.type === 'dockbar') {
720
+ @defer (on immediate) {
721
+ <NavigationDockbarMenu
722
+ [navId]="navState.id"
723
+ [items]="container.normalizedItems()"
724
+ [railItems]="container.dockbarRailItems()"
725
+ [mode]="navState.dockbarMode"
726
+ [position]="navState.position"
727
+ [asideFooterTemplate]="container.dockbarAsideFooter()"
728
+ [itemClass]="container.itemClass()"
729
+ [activeIds]="container.dockbarResolvedActiveIds()"
730
+ [resolvedGroup]="container.dockbarOpenGroup()"
731
+ [activeUrl]="
732
+ container.dockbarRouteEnabled()
733
+ ? container.dockbarResolvedRouteContext().url
734
+ : container.activeUrl()
735
+ "
736
+ [badgeContext]="container.resolvedBadgeContext()"
737
+ [iconTemplate]="container.iconTemplate()"
738
+ [collapseTree]="container.collapseTree()"
739
+ [openedIds]="container.openedIds()"
740
+ (openedIdsChange)="container.openedIds.set($event)"
741
+ (itemSelected)="container.itemSelected.emit($event)"
742
+ />
743
+ }
744
+ } @else if (navState.type === 'minidock') {
745
+ <!-- Minidock: always compact, and the list fills the rail so a spacer can push items down. -->
746
+ <NavigationList
747
+ [navId]="navState.id"
748
+ [items]="container.minidockRailItems()"
749
+ [collapsed]="true"
750
+ [fill]="true"
751
+ [position]="navState.position"
752
+ [itemClass]="container.itemClass()"
753
+ [activeIds]="container.activeIdSet()"
754
+ [activeUrl]="container.activeUrl()"
755
+ [badgeContext]="container.resolvedBadgeContext()"
756
+ [iconTemplate]="container.iconTemplate()"
757
+ [collapseTree]="container.collapseTree()"
758
+ [openedIds]="container.openedIds()"
759
+ (openedIdsChange)="container.openedIds.set($event)"
760
+ (itemSelected)="container.itemSelected.emit($event)"
761
+ />
762
+ } @else {
763
+ <!-- The vertical list (sidebar) is the common default — kept eager, no first-paint pop-in. -->
764
+ <NavigationList
765
+ [navId]="navState.id"
766
+ [items]="container.normalizedItems()"
767
+ [collapsed]="navState.collapsed"
768
+ [position]="navState.position"
769
+ [itemClass]="container.itemClass()"
770
+ [activeIds]="container.activeIdSet()"
771
+ [activeUrl]="container.activeUrl()"
772
+ [badgeContext]="container.resolvedBadgeContext()"
773
+ [iconTemplate]="container.iconTemplate()"
774
+ [collapseTree]="container.collapseTree()"
775
+ [openedIds]="container.openedIds()"
776
+ (openedIdsChange)="container.openedIds.set($event)"
777
+ (itemSelected)="container.itemSelected.emit($event)"
778
+ />
779
+ }
780
+ `,
781
+ isInline: true,
782
+ dependencies: [{
783
+ kind: "component",
784
+ type: NavigationListComponent,
785
+ selector: "NavigationList",
786
+ inputs: [
787
+ "badgeContext",
788
+ "navId",
789
+ "items",
790
+ "collapsed",
791
+ "compact",
792
+ "fill",
793
+ "position",
794
+ "itemClass",
795
+ "activeIds",
796
+ "activeUrl",
797
+ "iconTemplate",
798
+ "collapseTree",
799
+ "openedIds"
800
+ ],
801
+ outputs: ["openedIdsChange", "itemSelected"]
802
+ }],
803
+ deferBlockDependencies: [
804
+ () => [import("./edsis-angular-navigation-navigation-flyout-menu.component-CpmsY8hb.mjs").then((m) => m.NavigationFlyoutMenuComponent)],
805
+ () => [import("./edsis-angular-navigation-navigation-horizontal.component-D35IfX6r.mjs").then((m) => m.NavigationHorizontalComponent)],
806
+ () => [import("./edsis-angular-navigation-navigation-dockbar-menu.component-BaFnh48V.mjs").then((m) => m.NavigationDockbarMenuComponent)]
807
+ ]
808
+ });
809
+ };
810
+ i0.ɵɵngDeclareClassMetadataAsync({
811
+ minVersion: "18.0.0",
812
+ version: "22.2.4",
813
+ ngImport: i0,
814
+ type: NavigationContentComponent,
815
+ resolveDeferredDeps: () => [
816
+ import("./edsis-angular-navigation-navigation-flyout-menu.component-CpmsY8hb.mjs").then((m) => m.NavigationFlyoutMenuComponent),
817
+ import("./edsis-angular-navigation-navigation-horizontal.component-D35IfX6r.mjs").then((m) => m.NavigationHorizontalComponent),
818
+ import("./edsis-angular-navigation-navigation-dockbar-menu.component-BaFnh48V.mjs").then((m) => m.NavigationDockbarMenuComponent)
819
+ ],
820
+ resolveMetadata: (NavigationFlyoutMenuComponent, NavigationHorizontalComponent, NavigationDockbarMenuComponent) => ({
821
+ decorators: [{
822
+ type: Component,
823
+ args: [{
824
+ selector: "NavigationContent",
825
+ imports: [
826
+ NavigationDockbarMenuComponent,
827
+ NavigationFlyoutMenuComponent,
828
+ NavigationHorizontalComponent,
829
+ NavigationListComponent
830
+ ],
831
+ host: { "[class]": "hostClasses()" },
832
+ template: `
833
+ @let navState = container.displayState();
834
+
835
+ @if (navState.orientation === 'horizontal' && navState.type === 'flyout') {
836
+ <!-- Less-common renderers are code-split: a sidebar-only app never bundles them. -->
837
+ @defer (on immediate) {
838
+ <NavigationFlyoutMenu
839
+ [navId]="navState.id"
840
+ [items]="container.normalizedItems()"
841
+ [label]="container.flyoutLabel()"
842
+ [icon]="container.flyoutIcon()"
843
+ [iconOnly]="container.flyoutIconOnly()"
844
+ [iconPosition]="container.flyoutIconPosition()"
845
+ [variant]="container.flyoutTriggerVariant()"
846
+ [floating]="container.flyoutTriggerFloating()"
847
+ [viewport]="container.flyoutPanelViewport()"
848
+ [triggerClass]="container.flyoutTriggerClass()"
849
+ [triggerButtonClass]="container.flyoutTriggerButtonClass()"
850
+ [position]="navState.position"
851
+ [typeStyle]="container.typeStyle()"
852
+ [compact]="container.compact()"
853
+ [itemClass]="container.itemClass()"
854
+ [groupClass]="container.groupClass()"
855
+ [activeIds]="container.activeIdSet()"
856
+ [activeUrl]="container.activeUrl()"
857
+ [badgeContext]="container.resolvedBadgeContext()"
858
+ [iconTemplate]="container.iconTemplate()"
859
+ [collapseTree]="container.collapseTree()"
860
+ [openedIds]="container.openedIds()"
861
+ (openedIdsChange)="container.openedIds.set($event)"
862
+ (itemSelected)="container.itemSelected.emit($event)"
863
+ >
864
+ <ng-content select="NavigationHeader" ngProjectAs="NavigationHeader" />
865
+ <ng-content select="NavigationFooter" ngProjectAs="NavigationFooter" />
866
+ </NavigationFlyoutMenu>
867
+ }
868
+ } @else if (navState.orientation === 'horizontal') {
869
+ @defer (on immediate) {
870
+ <NavigationHorizontal
871
+ [navId]="navState.id"
872
+ [items]="container.normalizedItems()"
873
+ [position]="navState.position"
874
+ [typeStyle]="container.typeStyle()"
875
+ [compact]="container.compact()"
876
+ [itemClass]="container.itemClass()"
877
+ [groupClass]="container.groupClass()"
878
+ [activeIds]="container.activeIdSet()"
879
+ [activeUrl]="container.activeUrl()"
880
+ [badgeContext]="container.resolvedBadgeContext()"
881
+ [iconTemplate]="container.iconTemplate()"
882
+ [collapseTree]="container.collapseTree()"
883
+ [openedIds]="container.openedIds()"
884
+ (openedIdsChange)="container.openedIds.set($event)"
885
+ (itemSelected)="container.itemSelected.emit($event)"
886
+ />
887
+ }
888
+ } @else if (navState.type === 'dockbar') {
889
+ @defer (on immediate) {
890
+ <NavigationDockbarMenu
891
+ [navId]="navState.id"
892
+ [items]="container.normalizedItems()"
893
+ [railItems]="container.dockbarRailItems()"
894
+ [mode]="navState.dockbarMode"
895
+ [position]="navState.position"
896
+ [asideFooterTemplate]="container.dockbarAsideFooter()"
897
+ [itemClass]="container.itemClass()"
898
+ [activeIds]="container.dockbarResolvedActiveIds()"
899
+ [resolvedGroup]="container.dockbarOpenGroup()"
900
+ [activeUrl]="
901
+ container.dockbarRouteEnabled()
902
+ ? container.dockbarResolvedRouteContext().url
903
+ : container.activeUrl()
904
+ "
905
+ [badgeContext]="container.resolvedBadgeContext()"
906
+ [iconTemplate]="container.iconTemplate()"
907
+ [collapseTree]="container.collapseTree()"
908
+ [openedIds]="container.openedIds()"
909
+ (openedIdsChange)="container.openedIds.set($event)"
910
+ (itemSelected)="container.itemSelected.emit($event)"
911
+ />
912
+ }
913
+ } @else if (navState.type === 'minidock') {
914
+ <!-- Minidock: always compact, and the list fills the rail so a spacer can push items down. -->
915
+ <NavigationList
916
+ [navId]="navState.id"
917
+ [items]="container.minidockRailItems()"
918
+ [collapsed]="true"
919
+ [fill]="true"
920
+ [position]="navState.position"
921
+ [itemClass]="container.itemClass()"
922
+ [activeIds]="container.activeIdSet()"
923
+ [activeUrl]="container.activeUrl()"
924
+ [badgeContext]="container.resolvedBadgeContext()"
925
+ [iconTemplate]="container.iconTemplate()"
926
+ [collapseTree]="container.collapseTree()"
927
+ [openedIds]="container.openedIds()"
928
+ (openedIdsChange)="container.openedIds.set($event)"
929
+ (itemSelected)="container.itemSelected.emit($event)"
930
+ />
931
+ } @else {
932
+ <!-- The vertical list (sidebar) is the common default — kept eager, no first-paint pop-in. -->
933
+ <NavigationList
934
+ [navId]="navState.id"
935
+ [items]="container.normalizedItems()"
936
+ [collapsed]="navState.collapsed"
937
+ [position]="navState.position"
938
+ [itemClass]="container.itemClass()"
939
+ [activeIds]="container.activeIdSet()"
940
+ [activeUrl]="container.activeUrl()"
941
+ [badgeContext]="container.resolvedBadgeContext()"
942
+ [iconTemplate]="container.iconTemplate()"
943
+ [collapseTree]="container.collapseTree()"
944
+ [openedIds]="container.openedIds()"
945
+ (openedIdsChange)="container.openedIds.set($event)"
946
+ (itemSelected)="container.itemSelected.emit($event)"
947
+ />
948
+ }
949
+ `
950
+ }]
951
+ }],
952
+ ctorParameters: null,
953
+ propDecorators: { class: [{
954
+ type: i0.Input,
955
+ args: [{
956
+ isSignal: true,
957
+ alias: "class",
958
+ required: false
959
+ }]
960
+ }] }
961
+ })
962
+ });
963
+ var NavigationFooterComponent = class NavigationFooterComponent {
964
+ shell = inject(NAVIGATION_SHELL, { optional: true });
965
+ class = input("", {
966
+ ...ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {},
967
+ alias: "class"
968
+ });
969
+ isHorizontal = computed(() => this.shell?.displayState().orientation === "horizontal", ...ngDevMode ? [{ debugName: "isHorizontal" }] : /* istanbul ignore next */ []);
970
+ displayCollapsed = computed(() => this.shell?.displayState().collapsed ?? false, ...ngDevMode ? [{ debugName: "displayCollapsed" }] : /* istanbul ignore next */ []);
971
+ rowClasses = computed(() => cn("flex h-full min-w-0 w-full items-center", !this.isHorizontal() && this.displayCollapsed() ? "justify-center" : "gap-3"), ...ngDevMode ? [{ debugName: "rowClasses" }] : /* istanbul ignore next */ []);
972
+ hostClasses = computed(() => cn(this.isHorizontal() ? "relative z-10 block h-full w-auto shrink-0" : "sticky bottom-0 z-10 block h-(--layout-topbar-height) shrink-0 border-t border-[hsl(var(--border)/var(--section-border-opacity))]", this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
973
+ static ɵfac = i0.ɵɵngDeclareFactory({
974
+ minVersion: "12.0.0",
975
+ version: "22.2.4",
976
+ ngImport: i0,
977
+ type: NavigationFooterComponent,
978
+ deps: [],
979
+ target: i0.ɵɵFactoryTarget.Component
980
+ });
981
+ static ɵcmp = i0.ɵɵngDeclareComponent({
982
+ minVersion: "17.1.0",
983
+ version: "22.2.4",
984
+ type: NavigationFooterComponent,
985
+ isStandalone: true,
986
+ selector: "NavigationFooter",
987
+ inputs: { class: {
988
+ classPropertyName: "class",
989
+ publicName: "class",
990
+ isSignal: true,
991
+ isRequired: false,
992
+ transformFunction: null
993
+ } },
994
+ host: { properties: {
995
+ "class": "hostClasses()",
996
+ "attr.data-collapsed": "displayCollapsed()"
997
+ } },
998
+ ngImport: i0,
999
+ template: `
1000
+ <div [class]="rowClasses()">
1001
+ <ng-content />
1002
+ </div>
1003
+ `,
1004
+ isInline: true
1005
+ });
1006
+ };
1007
+ i0.ɵɵngDeclareClassMetadata({
1008
+ minVersion: "12.0.0",
1009
+ version: "22.2.4",
1010
+ ngImport: i0,
1011
+ type: NavigationFooterComponent,
1012
+ decorators: [{
1013
+ type: Component,
1014
+ args: [{
1015
+ selector: "NavigationFooter",
1016
+ host: {
1017
+ "[class]": "hostClasses()",
1018
+ "[attr.data-collapsed]": "displayCollapsed()"
1019
+ },
1020
+ template: `
1021
+ <div [class]="rowClasses()">
1022
+ <ng-content />
1023
+ </div>
1024
+ `
1025
+ }]
1026
+ }],
1027
+ propDecorators: { class: [{
1028
+ type: i0.Input,
1029
+ args: [{
1030
+ isSignal: true,
1031
+ alias: "class",
1032
+ required: false
1033
+ }]
1034
+ }] }
1035
+ });
1036
+ var NavigationHeaderComponent = class NavigationHeaderComponent {
1037
+ shell = inject(NAVIGATION_SHELL);
1038
+ toggle = input(false, ...ngDevMode ? [{ debugName: "toggle" }] : /* istanbul ignore next */ []);
1039
+ class = input("", {
1040
+ ...ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {},
1041
+ alias: "class"
1042
+ });
1043
+ collapsed = computed(() => this.shell.state().collapsed, ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
1044
+ displayCollapsed = computed(() => this.shell.displayState().collapsed, ...ngDevMode ? [{ debugName: "displayCollapsed" }] : /* istanbul ignore next */ []);
1045
+ isHorizontal = computed(() => this.shell.displayState().orientation === "horizontal", ...ngDevMode ? [{ debugName: "isHorizontal" }] : /* istanbul ignore next */ []);
1046
+ showToggle = computed(() => {
1047
+ if (this.isHorizontal() || this.shell.state().type === "minidock") return false;
1048
+ return this.toggle() || this.shell.collapseEnabled();
1049
+ }, ...ngDevMode ? [{ debugName: "showToggle" }] : /* istanbul ignore next */ []);
1050
+ toggleAriaLabel = computed(() => this.collapsed() ? "Expand navigation" : "Collapse navigation", ...ngDevMode ? [{ debugName: "toggleAriaLabel" }] : /* istanbul ignore next */ []);
1051
+ rowClasses = computed(() => cn("flex h-full items-center", !this.isHorizontal() && this.displayCollapsed() ? "justify-center" : "gap-3 px-3"), ...ngDevMode ? [{ debugName: "rowClasses" }] : /* istanbul ignore next */ []);
1052
+ contentClasses = computed(() => {
1053
+ if (this.isHorizontal()) return "flex min-w-0 items-center gap-3";
1054
+ return this.displayCollapsed() ? "flex min-w-0 items-center justify-center" : "flex min-w-0 flex-1 items-center gap-3";
1055
+ }, ...ngDevMode ? [{ debugName: "contentClasses" }] : /* istanbul ignore next */ []);
1056
+ hostClasses = computed(() => cn(this.isHorizontal() ? "relative z-10 block h-full w-auto shrink-0" : "sticky top-0 z-10 block h-(--layout-topbar-height) shrink-0 border-b border-[hsl(var(--border)/var(--section-border-opacity))]", this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
1057
+ toggleCollapsed() {
1058
+ this.shell.toggleCollapsed();
1059
+ }
1060
+ static ɵfac = i0.ɵɵngDeclareFactory({
1061
+ minVersion: "12.0.0",
1062
+ version: "22.2.4",
1063
+ ngImport: i0,
1064
+ type: NavigationHeaderComponent,
1065
+ deps: [],
1066
+ target: i0.ɵɵFactoryTarget.Component
1067
+ });
1068
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1069
+ minVersion: "17.0.0",
1070
+ version: "22.2.4",
1071
+ type: NavigationHeaderComponent,
1072
+ isStandalone: true,
1073
+ selector: "NavigationHeader",
1074
+ inputs: {
1075
+ toggle: {
1076
+ classPropertyName: "toggle",
1077
+ publicName: "toggle",
1078
+ isSignal: true,
1079
+ isRequired: false,
1080
+ transformFunction: null
1081
+ },
1082
+ class: {
1083
+ classPropertyName: "class",
1084
+ publicName: "class",
1085
+ isSignal: true,
1086
+ isRequired: false,
1087
+ transformFunction: null
1088
+ }
1089
+ },
1090
+ host: { properties: {
1091
+ "class": "hostClasses()",
1092
+ "attr.data-collapsed": "displayCollapsed()"
1093
+ } },
1094
+ providers: [provideIcons(LucideCircle, LucideCircleDot)],
1095
+ ngImport: i0,
1096
+ template: `
1097
+ <div [class]="rowClasses()">
1098
+ <div [class]="contentClasses()">
1099
+ <ng-content />
1100
+ </div>
1101
+
1102
+ @if (showToggle()) {
1103
+ <button
1104
+ type="button"
1105
+ class="inline-flex size-8 shrink-0 items-center justify-center bg-transparent text-foreground/80 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
1106
+ [attr.aria-label]="toggleAriaLabel()"
1107
+ [attr.title]="toggleAriaLabel()"
1108
+ data-navigation-header-toggle="true"
1109
+ (click)="toggleCollapsed()"
1110
+ >
1111
+ <Icon
1112
+ data-navigation-header-toggle-icon="true"
1113
+ [name]="collapsed() ? 'circle' : 'circle-dot'"
1114
+ size="inherit"
1115
+ class="text-(length:--nav-icon-size)"
1116
+ />
1117
+ </button>
1118
+ }
1119
+ </div>
1120
+ `,
1121
+ isInline: true,
1122
+ dependencies: [{
1123
+ kind: "component",
1124
+ type: IconComponent,
1125
+ selector: "Icon",
1126
+ inputs: [
1127
+ "name",
1128
+ "class",
1129
+ "size",
1130
+ "strokeWidth",
1131
+ "label"
1132
+ ]
1133
+ }]
1134
+ });
1135
+ };
1136
+ i0.ɵɵngDeclareClassMetadata({
1137
+ minVersion: "12.0.0",
1138
+ version: "22.2.4",
1139
+ ngImport: i0,
1140
+ type: NavigationHeaderComponent,
1141
+ decorators: [{
1142
+ type: Component,
1143
+ args: [{
1144
+ selector: "NavigationHeader",
1145
+ imports: [IconComponent],
1146
+ providers: [provideIcons(LucideCircle, LucideCircleDot)],
1147
+ host: {
1148
+ "[class]": "hostClasses()",
1149
+ "[attr.data-collapsed]": "displayCollapsed()"
1150
+ },
1151
+ template: `
1152
+ <div [class]="rowClasses()">
1153
+ <div [class]="contentClasses()">
1154
+ <ng-content />
1155
+ </div>
1156
+
1157
+ @if (showToggle()) {
1158
+ <button
1159
+ type="button"
1160
+ class="inline-flex size-8 shrink-0 items-center justify-center bg-transparent text-foreground/80 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
1161
+ [attr.aria-label]="toggleAriaLabel()"
1162
+ [attr.title]="toggleAriaLabel()"
1163
+ data-navigation-header-toggle="true"
1164
+ (click)="toggleCollapsed()"
1165
+ >
1166
+ <Icon
1167
+ data-navigation-header-toggle-icon="true"
1168
+ [name]="collapsed() ? 'circle' : 'circle-dot'"
1169
+ size="inherit"
1170
+ class="text-(length:--nav-icon-size)"
1171
+ />
1172
+ </button>
1173
+ }
1174
+ </div>
1175
+ `
1176
+ }]
1177
+ }],
1178
+ propDecorators: {
1179
+ toggle: [{
1180
+ type: i0.Input,
1181
+ args: [{
1182
+ isSignal: true,
1183
+ alias: "toggle",
1184
+ required: false
1185
+ }]
1186
+ }],
1187
+ class: [{
1188
+ type: i0.Input,
1189
+ args: [{
1190
+ isSignal: true,
1191
+ alias: "class",
1192
+ required: false
1193
+ }]
1194
+ }]
1195
+ }
1196
+ });
1197
+ var NavigationSidebarComponent = class NavigationSidebarComponent {
1198
+ container = inject(NavigationContainerComponent);
1199
+ destroyRef = inject(DestroyRef);
1200
+ position = input(null, ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
1201
+ collapsed = input(null, ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
1202
+ collapse = input(false, {
1203
+ ...ngDevMode ? { debugName: "collapse" } : /* istanbul ignore next */ {},
1204
+ alias: "nav-sidebar-collapse",
1205
+ transform: booleanAttribute
1206
+ });
1207
+ previewExpanded = input(false, ...ngDevMode ? [{ debugName: "previewExpanded" }] : /* istanbul ignore next */ []);
1208
+ class = input("", {
1209
+ ...ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {},
1210
+ alias: "class"
1211
+ });
1212
+ headerSlot = contentChild(NavigationHeaderComponent, ...ngDevMode ? [{ debugName: "headerSlot" }] : /* istanbul ignore next */ []);
1213
+ contentSlot = contentChild(NavigationContentComponent, ...ngDevMode ? [{ debugName: "contentSlot" }] : /* istanbul ignore next */ []);
1214
+ footerSlot = contentChild(NavigationFooterComponent, ...ngDevMode ? [{ debugName: "footerSlot" }] : /* istanbul ignore next */ []);
1215
+ hostClasses = computed(() => cn(this.container.shellClasses(), this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
1216
+ constructor() {
1217
+ const config = {
1218
+ orientation: "vertical",
1219
+ type: "sidebar",
1220
+ position: this.position,
1221
+ collapsed: this.collapsed,
1222
+ sidebarCollapse: this.collapse,
1223
+ previewExpanded: this.previewExpanded
1224
+ };
1225
+ this.container.registerType(config);
1226
+ this.destroyRef.onDestroy(() => this.container.unregisterType(config));
1227
+ }
1228
+ static ɵfac = i0.ɵɵngDeclareFactory({
1229
+ minVersion: "12.0.0",
1230
+ version: "22.2.4",
1231
+ ngImport: i0,
1232
+ type: NavigationSidebarComponent,
1233
+ deps: [],
1234
+ target: i0.ɵɵFactoryTarget.Component
1235
+ });
1236
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1237
+ minVersion: "17.0.0",
1238
+ version: "22.2.4",
1239
+ type: NavigationSidebarComponent,
1240
+ isStandalone: true,
1241
+ selector: "NavigationSidebar",
1242
+ inputs: {
1243
+ position: {
1244
+ classPropertyName: "position",
1245
+ publicName: "position",
1246
+ isSignal: true,
1247
+ isRequired: false,
1248
+ transformFunction: null
1249
+ },
1250
+ collapsed: {
1251
+ classPropertyName: "collapsed",
1252
+ publicName: "collapsed",
1253
+ isSignal: true,
1254
+ isRequired: false,
1255
+ transformFunction: null
1256
+ },
1257
+ collapse: {
1258
+ classPropertyName: "collapse",
1259
+ publicName: "nav-sidebar-collapse",
1260
+ isSignal: true,
1261
+ isRequired: false,
1262
+ transformFunction: null
1263
+ },
1264
+ previewExpanded: {
1265
+ classPropertyName: "previewExpanded",
1266
+ publicName: "previewExpanded",
1267
+ isSignal: true,
1268
+ isRequired: false,
1269
+ transformFunction: null
1270
+ },
1271
+ class: {
1272
+ classPropertyName: "class",
1273
+ publicName: "class",
1274
+ isSignal: true,
1275
+ isRequired: false,
1276
+ transformFunction: null
1277
+ }
1278
+ },
1279
+ host: { properties: { "class": "hostClasses()" } },
1280
+ queries: [
1281
+ {
1282
+ propertyName: "headerSlot",
1283
+ first: true,
1284
+ predicate: NavigationHeaderComponent,
1285
+ descendants: true,
1286
+ isSignal: true
1287
+ },
1288
+ {
1289
+ propertyName: "contentSlot",
1290
+ first: true,
1291
+ predicate: NavigationContentComponent,
1292
+ descendants: true,
1293
+ isSignal: true
1294
+ },
1295
+ {
1296
+ propertyName: "footerSlot",
1297
+ first: true,
1298
+ predicate: NavigationFooterComponent,
1299
+ descendants: true,
1300
+ isSignal: true
1301
+ }
1302
+ ],
1303
+ ngImport: i0,
1304
+ template: `
1305
+ @if (headerSlot()) {
1306
+ <ng-content select="NavigationHeader" />
1307
+ }
1308
+
1309
+ @if (contentSlot()) {
1310
+ <ng-content select="NavigationContent" />
1311
+ } @else {
1312
+ <NavigationContent />
1313
+ }
1314
+
1315
+ @if (footerSlot()) {
1316
+ <ng-content select="NavigationFooter" />
1317
+ }
1318
+ `,
1319
+ isInline: true,
1320
+ dependencies: [{
1321
+ kind: "component",
1322
+ type: NavigationContentComponent,
1323
+ selector: "NavigationContent",
1324
+ inputs: ["class"]
1325
+ }]
1326
+ });
1327
+ };
1328
+ i0.ɵɵngDeclareClassMetadata({
1329
+ minVersion: "12.0.0",
1330
+ version: "22.2.4",
1331
+ ngImport: i0,
1332
+ type: NavigationSidebarComponent,
1333
+ decorators: [{
1334
+ type: Component,
1335
+ args: [{
1336
+ selector: "NavigationSidebar",
1337
+ imports: [NavigationContentComponent],
1338
+ host: { "[class]": "hostClasses()" },
1339
+ template: `
1340
+ @if (headerSlot()) {
1341
+ <ng-content select="NavigationHeader" />
1342
+ }
1343
+
1344
+ @if (contentSlot()) {
1345
+ <ng-content select="NavigationContent" />
1346
+ } @else {
1347
+ <NavigationContent />
1348
+ }
1349
+
1350
+ @if (footerSlot()) {
1351
+ <ng-content select="NavigationFooter" />
1352
+ }
1353
+ `
1354
+ }]
1355
+ }],
1356
+ ctorParameters: () => [],
1357
+ propDecorators: {
1358
+ position: [{
1359
+ type: i0.Input,
1360
+ args: [{
1361
+ isSignal: true,
1362
+ alias: "position",
1363
+ required: false
1364
+ }]
1365
+ }],
1366
+ collapsed: [{
1367
+ type: i0.Input,
1368
+ args: [{
1369
+ isSignal: true,
1370
+ alias: "collapsed",
1371
+ required: false
1372
+ }]
1373
+ }],
1374
+ collapse: [{
1375
+ type: i0.Input,
1376
+ args: [{
1377
+ isSignal: true,
1378
+ alias: "nav-sidebar-collapse",
1379
+ required: false
1380
+ }]
1381
+ }],
1382
+ previewExpanded: [{
1383
+ type: i0.Input,
1384
+ args: [{
1385
+ isSignal: true,
1386
+ alias: "previewExpanded",
1387
+ required: false
1388
+ }]
1389
+ }],
1390
+ class: [{
1391
+ type: i0.Input,
1392
+ args: [{
1393
+ isSignal: true,
1394
+ alias: "class",
1395
+ required: false
1396
+ }]
1397
+ }],
1398
+ headerSlot: [{
1399
+ type: i0.ContentChild,
1400
+ args: [i0.forwardRef(() => NavigationHeaderComponent), { isSignal: true }]
1401
+ }],
1402
+ contentSlot: [{
1403
+ type: i0.ContentChild,
1404
+ args: [i0.forwardRef(() => NavigationContentComponent), { isSignal: true }]
1405
+ }],
1406
+ footerSlot: [{
1407
+ type: i0.ContentChild,
1408
+ args: [i0.forwardRef(() => NavigationFooterComponent), { isSignal: true }]
1409
+ }]
1410
+ }
1411
+ });
1412
+ var NavigationAsideFooterDirective = class NavigationAsideFooterDirective {
1413
+ templateRef = inject(TemplateRef);
1414
+ static ɵfac = i0.ɵɵngDeclareFactory({
1415
+ minVersion: "12.0.0",
1416
+ version: "22.2.4",
1417
+ ngImport: i0,
1418
+ type: NavigationAsideFooterDirective,
1419
+ deps: [],
1420
+ target: i0.ɵɵFactoryTarget.Directive
1421
+ });
1422
+ static ɵdir = i0.ɵɵngDeclareDirective({
1423
+ minVersion: "14.0.0",
1424
+ version: "22.2.4",
1425
+ type: NavigationAsideFooterDirective,
1426
+ isStandalone: true,
1427
+ selector: "ng-template[NavigationAsideFooter]",
1428
+ ngImport: i0
1429
+ });
1430
+ };
1431
+ i0.ɵɵngDeclareClassMetadata({
1432
+ minVersion: "12.0.0",
1433
+ version: "22.2.4",
1434
+ ngImport: i0,
1435
+ type: NavigationAsideFooterDirective,
1436
+ decorators: [{
1437
+ type: Directive,
1438
+ args: [{ selector: "ng-template[NavigationAsideFooter]" }]
1439
+ }]
1440
+ });
1441
+ const EMPTY_NAVIGATION_BADGE_CONTEXT = Object.freeze({});
1442
+ var NavigationDockbarComponent = class NavigationDockbarComponent {
1443
+ container = inject(NavigationContainerComponent);
1444
+ destroyRef = inject(DestroyRef);
1445
+ host = inject(ElementRef);
1446
+ injector = inject(Injector);
1447
+ mode = input(null, ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
1448
+ position = input(null, ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
1449
+ routeContext = input(null, {
1450
+ ...ngDevMode ? { debugName: "routeContext" } : /* istanbul ignore next */ {},
1451
+ alias: "dockbar-route-context"
1452
+ });
1453
+ badgeContext = input(EMPTY_NAVIGATION_BADGE_CONTEXT, {
1454
+ ...ngDevMode ? { debugName: "badgeContext" } : /* istanbul ignore next */ {},
1455
+ alias: "dockbar-badge"
1456
+ });
1457
+ badges = input(null, {
1458
+ ...ngDevMode ? { debugName: "badges" } : /* istanbul ignore next */ {},
1459
+ alias: "badge-context"
1460
+ });
1461
+ resolvedBadges = computed(() => this.badges() ?? this.badgeContext(), ...ngDevMode ? [{ debugName: "resolvedBadges" }] : /* istanbul ignore next */ []);
1462
+ class = input("", {
1463
+ ...ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {},
1464
+ alias: "class"
1465
+ });
1466
+ headerSlot = contentChild(NavigationHeaderComponent, ...ngDevMode ? [{ debugName: "headerSlot" }] : /* istanbul ignore next */ []);
1467
+ contentSlot = contentChild(NavigationContentComponent, ...ngDevMode ? [{ debugName: "contentSlot" }] : /* istanbul ignore next */ []);
1468
+ footerSlot = contentChild(NavigationFooterComponent, ...ngDevMode ? [{ debugName: "footerSlot" }] : /* istanbul ignore next */ []);
1469
+ asideFooterSlot = contentChild(NavigationAsideFooterDirective, ...ngDevMode ? [{ debugName: "asideFooterSlot" }] : /* istanbul ignore next */ []);
1470
+ headerDescendantSources = computed(() => {
1471
+ const entry = this.container.dockbarRouteHeader()?.activeEntry;
1472
+ if (!entry || this.container.dockbarResolvedRouteContext().badge) return [];
1473
+ return navigationDescendantBadgeSources(entry.badge, entry.children, this.container.resolvedBadgeContext());
1474
+ }, ...ngDevMode ? [{ debugName: "headerDescendantSources" }] : /* istanbul ignore next */ []);
1475
+ routeContextEnabled = computed(() => {
1476
+ const context = this.routeContext();
1477
+ return context !== null && context !== false;
1478
+ }, ...ngDevMode ? [{ debugName: "routeContextEnabled" }] : /* istanbul ignore next */ []);
1479
+ hostClasses = computed(() => cn(this.container.shellClasses(), this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
1480
+ constructor() {
1481
+ const config = {
1482
+ orientation: "vertical",
1483
+ type: "dockbar",
1484
+ position: this.position,
1485
+ dockbarMode: this.mode,
1486
+ dockbarRouteContext: this.routeContext,
1487
+ dockbarBadgeContext: this.resolvedBadges,
1488
+ dockbarRouteHeaderVisible: computed(() => this.routeContextEnabled() && this.headerSlot() === void 0),
1489
+ dockbarAsideFooter: computed(() => this.asideFooterSlot()?.templateRef ?? null)
1490
+ };
1491
+ this.container.registerType(config);
1492
+ this.destroyRef.onDestroy(() => this.container.unregisterType(config));
1493
+ }
1494
+ onPointerOut(event) {
1495
+ const relatedTarget = event.relatedTarget;
1496
+ const nodeType = this.host.nativeElement.ownerDocument.defaultView?.Node;
1497
+ if (relatedTarget !== null && nodeType !== void 0 && relatedTarget instanceof nodeType && this.host.nativeElement.contains(relatedTarget)) return;
1498
+ this.container.restoreDockbarRoutePanel();
1499
+ }
1500
+ onEscape(event) {
1501
+ const state = this.container.resolvedState();
1502
+ if (event.defaultPrevented || state.type !== "dockbar" || state.dockbarMode !== "drawer") return;
1503
+ if (!this.container.closeDockbarPanel()) return;
1504
+ event.preventDefault();
1505
+ this.host.nativeElement.querySelector("[data-navigation-dockbar-route-trigger=\"true\"]")?.focus();
1506
+ }
1507
+ toggleActiveRoutePanel() {
1508
+ const wasExpanded = this.container.dockbarActiveRoutePanelExpanded();
1509
+ this.container.toggleDockbarActiveRoutePanel();
1510
+ if (!wasExpanded) afterNextRender({ read: () => {
1511
+ this.host.nativeElement.querySelector(`#${this.container.dockbarAsideId()}`)?.querySelector("a[href], button:not([disabled]), [tabindex]:not([tabindex=\"-1\"])")?.focus();
1512
+ } }, { injector: this.injector });
1513
+ }
1514
+ static ɵfac = i0.ɵɵngDeclareFactory({
1515
+ minVersion: "12.0.0",
1516
+ version: "22.2.4",
1517
+ ngImport: i0,
1518
+ type: NavigationDockbarComponent,
1519
+ deps: [],
1520
+ target: i0.ɵɵFactoryTarget.Component
1521
+ });
1522
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1523
+ minVersion: "17.0.0",
1524
+ version: "22.2.4",
1525
+ type: NavigationDockbarComponent,
1526
+ isStandalone: true,
1527
+ selector: "NavigationDockbar",
1528
+ inputs: {
1529
+ mode: {
1530
+ classPropertyName: "mode",
1531
+ publicName: "mode",
1532
+ isSignal: true,
1533
+ isRequired: false,
1534
+ transformFunction: null
1535
+ },
1536
+ position: {
1537
+ classPropertyName: "position",
1538
+ publicName: "position",
1539
+ isSignal: true,
1540
+ isRequired: false,
1541
+ transformFunction: null
1542
+ },
1543
+ routeContext: {
1544
+ classPropertyName: "routeContext",
1545
+ publicName: "dockbar-route-context",
1546
+ isSignal: true,
1547
+ isRequired: false,
1548
+ transformFunction: null
1549
+ },
1550
+ badgeContext: {
1551
+ classPropertyName: "badgeContext",
1552
+ publicName: "dockbar-badge",
1553
+ isSignal: true,
1554
+ isRequired: false,
1555
+ transformFunction: null
1556
+ },
1557
+ badges: {
1558
+ classPropertyName: "badges",
1559
+ publicName: "badge-context",
1560
+ isSignal: true,
1561
+ isRequired: false,
1562
+ transformFunction: null
1563
+ },
1564
+ class: {
1565
+ classPropertyName: "class",
1566
+ publicName: "class",
1567
+ isSignal: true,
1568
+ isRequired: false,
1569
+ transformFunction: null
1570
+ }
1571
+ },
1572
+ host: {
1573
+ listeners: {
1574
+ "keydown.escape": "onEscape($event)",
1575
+ "pointerout": "onPointerOut($event)"
1576
+ },
1577
+ properties: { "class": "hostClasses()" }
1578
+ },
1579
+ providers: [provideIcons(LucideRoute)],
1580
+ queries: [
1581
+ {
1582
+ propertyName: "headerSlot",
1583
+ first: true,
1584
+ predicate: NavigationHeaderComponent,
1585
+ descendants: true,
1586
+ isSignal: true
1587
+ },
1588
+ {
1589
+ propertyName: "contentSlot",
1590
+ first: true,
1591
+ predicate: NavigationContentComponent,
1592
+ descendants: true,
1593
+ isSignal: true
1594
+ },
1595
+ {
1596
+ propertyName: "footerSlot",
1597
+ first: true,
1598
+ predicate: NavigationFooterComponent,
1599
+ descendants: true,
1600
+ isSignal: true
1601
+ },
1602
+ {
1603
+ propertyName: "asideFooterSlot",
1604
+ first: true,
1605
+ predicate: NavigationAsideFooterDirective,
1606
+ descendants: true,
1607
+ isSignal: true
1608
+ }
1609
+ ],
1610
+ ngImport: i0,
1611
+ template: `
1612
+ @if (headerSlot()) {
1613
+ <ng-content select="NavigationHeader" />
1614
+ } @else if (container.dockbarRouteHeader(); as routeHeader) {
1615
+ <NavigationHeader>
1616
+ <ng-template #routeIndicator>
1617
+ <span
1618
+ aria-hidden="true"
1619
+ class="inline-flex items-center justify-center text-(length:--nav-icon-size-rail) text-current"
1620
+ >
1621
+ @if (container.iconTemplate(); as customIcon) {
1622
+ <ng-container
1623
+ [ngTemplateOutlet]="customIcon.template"
1624
+ [ngTemplateOutletContext]="routeHeader.iconContext"
1625
+ />
1626
+ } @else {
1627
+ <Icon [name]="routeHeader.icon" size="inherit" />
1628
+ }
1629
+ </span>
1630
+
1631
+ @if (routeHeader.badge || headerDescendantSources().length) {
1632
+ @defer (on immediate) {
1633
+ <NavigationBadgeCount
1634
+ [badge]="routeHeader.badge"
1635
+ [sources]="routeHeader.badge ? null : headerDescendantSources()"
1636
+ [class]="routeHeader.badgeClass"
1637
+ />
1638
+ }
1639
+ }
1640
+ </ng-template>
1641
+
1642
+ @if (routeHeader.panelGroup && container.resolvedState().dockbarMode === 'drawer') {
1643
+ <button
1644
+ type="button"
1645
+ data-navigation-dockbar-route-header="true"
1646
+ data-navigation-dockbar-route-trigger="true"
1647
+ [attr.data-navigation-item-key]="routeHeader.activeEntry?.key"
1648
+ class="relative inline-flex size-(--nav-rail-item-size) items-center justify-center rounded-md bg-accent text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
1649
+ [Tooltip]="routeHeader.label"
1650
+ [TooltipPosition]="position() === 'right' ? 'left' : 'right'"
1651
+ [attr.aria-controls]="container.dockbarAsideId()"
1652
+ [attr.aria-expanded]="container.dockbarActiveRoutePanelExpanded()"
1653
+ (click)="toggleActiveRoutePanel()"
1654
+ >
1655
+ <span class="sr-only">{{ routeHeader.label }}</span>
1656
+ <ng-container [ngTemplateOutlet]="routeIndicator" />
1657
+ </button>
1658
+ } @else {
1659
+ <span
1660
+ data-navigation-dockbar-route-header="true"
1661
+ class="relative inline-flex size-(--nav-rail-item-size) items-center justify-center text-foreground"
1662
+ [Tooltip]="routeHeader.label"
1663
+ [TooltipPosition]="position() === 'right' ? 'left' : 'right'"
1664
+ >
1665
+ <span class="sr-only">{{ routeHeader.label }}</span>
1666
+ <ng-container [ngTemplateOutlet]="routeIndicator" />
1667
+ </span>
1668
+ }
1669
+ </NavigationHeader>
1670
+ }
1671
+
1672
+ @if (contentSlot()) {
1673
+ <ng-content select="NavigationContent" />
1674
+ } @else {
1675
+ <NavigationContent />
1676
+ }
1677
+
1678
+ @if (footerSlot()) {
1679
+ <ng-content select="NavigationFooter" />
1680
+ }
1681
+ `,
1682
+ isInline: true,
1683
+ dependencies: [
1684
+ {
1685
+ kind: "component",
1686
+ type: IconComponent,
1687
+ selector: "Icon",
1688
+ inputs: [
1689
+ "name",
1690
+ "class",
1691
+ "size",
1692
+ "strokeWidth",
1693
+ "label"
1694
+ ]
1695
+ },
1696
+ {
1697
+ kind: "component",
1698
+ type: NavigationContentComponent,
1699
+ selector: "NavigationContent",
1700
+ inputs: ["class"]
1701
+ },
1702
+ {
1703
+ kind: "component",
1704
+ type: NavigationHeaderComponent,
1705
+ selector: "NavigationHeader",
1706
+ inputs: ["toggle", "class"]
1707
+ },
1708
+ {
1709
+ kind: "directive",
1710
+ type: NgTemplateOutlet,
1711
+ selector: "[ngTemplateOutlet]",
1712
+ inputs: [
1713
+ "ngTemplateOutletContext",
1714
+ "ngTemplateOutlet",
1715
+ "ngTemplateOutletInjector"
1716
+ ]
1717
+ },
1718
+ {
1719
+ kind: "directive",
1720
+ type: TooltipDirective,
1721
+ selector: "[Tooltip]",
1722
+ inputs: [
1723
+ "Tooltip",
1724
+ "TooltipPosition",
1725
+ "TooltipDisabled",
1726
+ "TooltipShowDelay",
1727
+ "TooltipHideDelay"
1728
+ ],
1729
+ exportAs: ["Tooltip"]
1730
+ }
1731
+ ],
1732
+ deferBlockDependencies: [() => [import("./edsis-angular-navigation-navigation-badge-count.component-D70Ju6_f.mjs").then((n) => n.n).then((m) => m.NavigationBadgeCountComponent)]]
1733
+ });
1734
+ };
1735
+ i0.ɵɵngDeclareClassMetadataAsync({
1736
+ minVersion: "18.0.0",
1737
+ version: "22.2.4",
1738
+ ngImport: i0,
1739
+ type: NavigationDockbarComponent,
1740
+ resolveDeferredDeps: () => [import("./edsis-angular-navigation-navigation-badge-count.component-D70Ju6_f.mjs").then((n) => n.n).then((m) => m.NavigationBadgeCountComponent)],
1741
+ resolveMetadata: (NavigationBadgeCountComponent) => ({
1742
+ decorators: [{
1743
+ type: Component,
1744
+ args: [{
1745
+ selector: "NavigationDockbar",
1746
+ imports: [
1747
+ IconComponent,
1748
+ NavigationBadgeCountComponent,
1749
+ NavigationContentComponent,
1750
+ NavigationHeaderComponent,
1751
+ NgTemplateOutlet,
1752
+ TooltipDirective
1753
+ ],
1754
+ providers: [provideIcons(LucideRoute)],
1755
+ host: {
1756
+ "[class]": "hostClasses()",
1757
+ "(keydown.escape)": "onEscape($event)",
1758
+ "(pointerout)": "onPointerOut($event)"
1759
+ },
1760
+ template: `
1761
+ @if (headerSlot()) {
1762
+ <ng-content select="NavigationHeader" />
1763
+ } @else if (container.dockbarRouteHeader(); as routeHeader) {
1764
+ <NavigationHeader>
1765
+ <ng-template #routeIndicator>
1766
+ <span
1767
+ aria-hidden="true"
1768
+ class="inline-flex items-center justify-center text-(length:--nav-icon-size-rail) text-current"
1769
+ >
1770
+ @if (container.iconTemplate(); as customIcon) {
1771
+ <ng-container
1772
+ [ngTemplateOutlet]="customIcon.template"
1773
+ [ngTemplateOutletContext]="routeHeader.iconContext"
1774
+ />
1775
+ } @else {
1776
+ <Icon [name]="routeHeader.icon" size="inherit" />
1777
+ }
1778
+ </span>
1779
+
1780
+ @if (routeHeader.badge || headerDescendantSources().length) {
1781
+ @defer (on immediate) {
1782
+ <NavigationBadgeCount
1783
+ [badge]="routeHeader.badge"
1784
+ [sources]="routeHeader.badge ? null : headerDescendantSources()"
1785
+ [class]="routeHeader.badgeClass"
1786
+ />
1787
+ }
1788
+ }
1789
+ </ng-template>
1790
+
1791
+ @if (routeHeader.panelGroup && container.resolvedState().dockbarMode === 'drawer') {
1792
+ <button
1793
+ type="button"
1794
+ data-navigation-dockbar-route-header="true"
1795
+ data-navigation-dockbar-route-trigger="true"
1796
+ [attr.data-navigation-item-key]="routeHeader.activeEntry?.key"
1797
+ class="relative inline-flex size-(--nav-rail-item-size) items-center justify-center rounded-md bg-accent text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
1798
+ [Tooltip]="routeHeader.label"
1799
+ [TooltipPosition]="position() === 'right' ? 'left' : 'right'"
1800
+ [attr.aria-controls]="container.dockbarAsideId()"
1801
+ [attr.aria-expanded]="container.dockbarActiveRoutePanelExpanded()"
1802
+ (click)="toggleActiveRoutePanel()"
1803
+ >
1804
+ <span class="sr-only">{{ routeHeader.label }}</span>
1805
+ <ng-container [ngTemplateOutlet]="routeIndicator" />
1806
+ </button>
1807
+ } @else {
1808
+ <span
1809
+ data-navigation-dockbar-route-header="true"
1810
+ class="relative inline-flex size-(--nav-rail-item-size) items-center justify-center text-foreground"
1811
+ [Tooltip]="routeHeader.label"
1812
+ [TooltipPosition]="position() === 'right' ? 'left' : 'right'"
1813
+ >
1814
+ <span class="sr-only">{{ routeHeader.label }}</span>
1815
+ <ng-container [ngTemplateOutlet]="routeIndicator" />
1816
+ </span>
1817
+ }
1818
+ </NavigationHeader>
1819
+ }
1820
+
1821
+ @if (contentSlot()) {
1822
+ <ng-content select="NavigationContent" />
1823
+ } @else {
1824
+ <NavigationContent />
1825
+ }
1826
+
1827
+ @if (footerSlot()) {
1828
+ <ng-content select="NavigationFooter" />
1829
+ }
1830
+ `
1831
+ }]
1832
+ }],
1833
+ ctorParameters: () => [],
1834
+ propDecorators: {
1835
+ mode: [{
1836
+ type: i0.Input,
1837
+ args: [{
1838
+ isSignal: true,
1839
+ alias: "mode",
1840
+ required: false
1841
+ }]
1842
+ }],
1843
+ position: [{
1844
+ type: i0.Input,
1845
+ args: [{
1846
+ isSignal: true,
1847
+ alias: "position",
1848
+ required: false
1849
+ }]
1850
+ }],
1851
+ routeContext: [{
1852
+ type: i0.Input,
1853
+ args: [{
1854
+ isSignal: true,
1855
+ alias: "dockbar-route-context",
1856
+ required: false
1857
+ }]
1858
+ }],
1859
+ badgeContext: [{
1860
+ type: i0.Input,
1861
+ args: [{
1862
+ isSignal: true,
1863
+ alias: "dockbar-badge",
1864
+ required: false
1865
+ }]
1866
+ }],
1867
+ badges: [{
1868
+ type: i0.Input,
1869
+ args: [{
1870
+ isSignal: true,
1871
+ alias: "badge-context",
1872
+ required: false
1873
+ }]
1874
+ }],
1875
+ class: [{
1876
+ type: i0.Input,
1877
+ args: [{
1878
+ isSignal: true,
1879
+ alias: "class",
1880
+ required: false
1881
+ }]
1882
+ }],
1883
+ headerSlot: [{
1884
+ type: i0.ContentChild,
1885
+ args: [i0.forwardRef(() => NavigationHeaderComponent), { isSignal: true }]
1886
+ }],
1887
+ contentSlot: [{
1888
+ type: i0.ContentChild,
1889
+ args: [i0.forwardRef(() => NavigationContentComponent), { isSignal: true }]
1890
+ }],
1891
+ footerSlot: [{
1892
+ type: i0.ContentChild,
1893
+ args: [i0.forwardRef(() => NavigationFooterComponent), { isSignal: true }]
1894
+ }],
1895
+ asideFooterSlot: [{
1896
+ type: i0.ContentChild,
1897
+ args: [i0.forwardRef(() => NavigationAsideFooterDirective), { isSignal: true }]
1898
+ }]
1899
+ }
1900
+ })
1901
+ });
1902
+ var NavigationMinidockComponent = class NavigationMinidockComponent {
1903
+ container = inject(NavigationContainerComponent);
1904
+ destroyRef = inject(DestroyRef);
1905
+ position = input(null, ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
1906
+ class = input("", {
1907
+ ...ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {},
1908
+ alias: "class"
1909
+ });
1910
+ headerSlot = contentChild(NavigationHeaderComponent, ...ngDevMode ? [{ debugName: "headerSlot" }] : /* istanbul ignore next */ []);
1911
+ contentSlot = contentChild(NavigationContentComponent, ...ngDevMode ? [{ debugName: "contentSlot" }] : /* istanbul ignore next */ []);
1912
+ footerSlot = contentChild(NavigationFooterComponent, ...ngDevMode ? [{ debugName: "footerSlot" }] : /* istanbul ignore next */ []);
1913
+ dataValidated = computed(() => {
1914
+ ɵassertMinidockItems(this.container.data());
1915
+ return true;
1916
+ }, ...ngDevMode ? [{ debugName: "dataValidated" }] : /* istanbul ignore next */ []);
1917
+ hostClasses = computed(() => cn(this.container.shellClasses(), this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
1918
+ constructor() {
1919
+ const config = {
1920
+ orientation: "vertical",
1921
+ type: "minidock",
1922
+ position: this.position
1923
+ };
1924
+ this.container.registerType(config);
1925
+ this.destroyRef.onDestroy(() => this.container.unregisterType(config));
1926
+ }
1927
+ static ɵfac = i0.ɵɵngDeclareFactory({
1928
+ minVersion: "12.0.0",
1929
+ version: "22.2.4",
1930
+ ngImport: i0,
1931
+ type: NavigationMinidockComponent,
1932
+ deps: [],
1933
+ target: i0.ɵɵFactoryTarget.Component
1934
+ });
1935
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1936
+ minVersion: "17.0.0",
1937
+ version: "22.2.4",
1938
+ type: NavigationMinidockComponent,
1939
+ isStandalone: true,
1940
+ selector: "NavigationMinidock",
1941
+ inputs: {
1942
+ position: {
1943
+ classPropertyName: "position",
1944
+ publicName: "position",
1945
+ isSignal: true,
1946
+ isRequired: false,
1947
+ transformFunction: null
1948
+ },
1949
+ class: {
1950
+ classPropertyName: "class",
1951
+ publicName: "class",
1952
+ isSignal: true,
1953
+ isRequired: false,
1954
+ transformFunction: null
1955
+ }
1956
+ },
1957
+ host: { properties: { "class": "hostClasses()" } },
1958
+ queries: [
1959
+ {
1960
+ propertyName: "headerSlot",
1961
+ first: true,
1962
+ predicate: NavigationHeaderComponent,
1963
+ descendants: true,
1964
+ isSignal: true
1965
+ },
1966
+ {
1967
+ propertyName: "contentSlot",
1968
+ first: true,
1969
+ predicate: NavigationContentComponent,
1970
+ descendants: true,
1971
+ isSignal: true
1972
+ },
1973
+ {
1974
+ propertyName: "footerSlot",
1975
+ first: true,
1976
+ predicate: NavigationFooterComponent,
1977
+ descendants: true,
1978
+ isSignal: true
1979
+ }
1980
+ ],
1981
+ ngImport: i0,
1982
+ template: `
1983
+ @if (dataValidated()) {
1984
+ @if (headerSlot()) {
1985
+ <ng-content select="NavigationHeader" />
1986
+ }
1987
+
1988
+ @if (contentSlot()) {
1989
+ <ng-content select="NavigationContent" />
1990
+ } @else {
1991
+ <NavigationContent />
1992
+ }
1993
+
1994
+ @if (footerSlot()) {
1995
+ <ng-content select="NavigationFooter" />
1996
+ }
1997
+ }
1998
+ `,
1999
+ isInline: true,
2000
+ dependencies: [{
2001
+ kind: "component",
2002
+ type: NavigationContentComponent,
2003
+ selector: "NavigationContent",
2004
+ inputs: ["class"]
2005
+ }]
2006
+ });
2007
+ };
2008
+ i0.ɵɵngDeclareClassMetadata({
2009
+ minVersion: "12.0.0",
2010
+ version: "22.2.4",
2011
+ ngImport: i0,
2012
+ type: NavigationMinidockComponent,
2013
+ decorators: [{
2014
+ type: Component,
2015
+ args: [{
2016
+ selector: "NavigationMinidock",
2017
+ imports: [NavigationContentComponent],
2018
+ host: { "[class]": "hostClasses()" },
2019
+ template: `
2020
+ @if (dataValidated()) {
2021
+ @if (headerSlot()) {
2022
+ <ng-content select="NavigationHeader" />
2023
+ }
2024
+
2025
+ @if (contentSlot()) {
2026
+ <ng-content select="NavigationContent" />
2027
+ } @else {
2028
+ <NavigationContent />
2029
+ }
2030
+
2031
+ @if (footerSlot()) {
2032
+ <ng-content select="NavigationFooter" />
2033
+ }
2034
+ }
2035
+ `
2036
+ }]
2037
+ }],
2038
+ ctorParameters: () => [],
2039
+ propDecorators: {
2040
+ position: [{
2041
+ type: i0.Input,
2042
+ args: [{
2043
+ isSignal: true,
2044
+ alias: "position",
2045
+ required: false
2046
+ }]
2047
+ }],
2048
+ class: [{
2049
+ type: i0.Input,
2050
+ args: [{
2051
+ isSignal: true,
2052
+ alias: "class",
2053
+ required: false
2054
+ }]
2055
+ }],
2056
+ headerSlot: [{
2057
+ type: i0.ContentChild,
2058
+ args: [i0.forwardRef(() => NavigationHeaderComponent), { isSignal: true }]
2059
+ }],
2060
+ contentSlot: [{
2061
+ type: i0.ContentChild,
2062
+ args: [i0.forwardRef(() => NavigationContentComponent), { isSignal: true }]
2063
+ }],
2064
+ footerSlot: [{
2065
+ type: i0.ContentChild,
2066
+ args: [i0.forwardRef(() => NavigationFooterComponent), { isSignal: true }]
2067
+ }]
2068
+ }
2069
+ });
2070
+ var NavigationNavbarComponent = class NavigationNavbarComponent {
2071
+ container = inject(NavigationContainerComponent);
2072
+ destroyRef = inject(DestroyRef);
2073
+ position = input(null, {
2074
+ ...ngDevMode ? { debugName: "position" } : /* istanbul ignore next */ {},
2075
+ alias: "nav-position"
2076
+ });
2077
+ typeStyle = input("flat", {
2078
+ ...ngDevMode ? { debugName: "typeStyle" } : /* istanbul ignore next */ {},
2079
+ alias: "nav-type-style"
2080
+ });
2081
+ class = input("", {
2082
+ ...ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {},
2083
+ alias: "class"
2084
+ });
2085
+ headerSlot = contentChild(NavigationHeaderComponent, ...ngDevMode ? [{ debugName: "headerSlot" }] : /* istanbul ignore next */ []);
2086
+ contentSlot = contentChild(NavigationContentComponent, ...ngDevMode ? [{ debugName: "contentSlot" }] : /* istanbul ignore next */ []);
2087
+ footerSlot = contentChild(NavigationFooterComponent, ...ngDevMode ? [{ debugName: "footerSlot" }] : /* istanbul ignore next */ []);
2088
+ hostClasses = computed(() => cn(this.container.shellClasses(), this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
2089
+ constructor() {
2090
+ const config = {
2091
+ orientation: "horizontal",
2092
+ type: "navbar",
2093
+ position: this.position,
2094
+ typeStyle: this.typeStyle
2095
+ };
2096
+ this.container.registerType(config);
2097
+ this.destroyRef.onDestroy(() => this.container.unregisterType(config));
2098
+ }
2099
+ static ɵfac = i0.ɵɵngDeclareFactory({
2100
+ minVersion: "12.0.0",
2101
+ version: "22.2.4",
2102
+ ngImport: i0,
2103
+ type: NavigationNavbarComponent,
2104
+ deps: [],
2105
+ target: i0.ɵɵFactoryTarget.Component
2106
+ });
2107
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2108
+ minVersion: "17.0.0",
2109
+ version: "22.2.4",
2110
+ type: NavigationNavbarComponent,
2111
+ isStandalone: true,
2112
+ selector: "NavigationNavbar",
2113
+ inputs: {
2114
+ position: {
2115
+ classPropertyName: "position",
2116
+ publicName: "nav-position",
2117
+ isSignal: true,
2118
+ isRequired: false,
2119
+ transformFunction: null
2120
+ },
2121
+ typeStyle: {
2122
+ classPropertyName: "typeStyle",
2123
+ publicName: "nav-type-style",
2124
+ isSignal: true,
2125
+ isRequired: false,
2126
+ transformFunction: null
2127
+ },
2128
+ class: {
2129
+ classPropertyName: "class",
2130
+ publicName: "class",
2131
+ isSignal: true,
2132
+ isRequired: false,
2133
+ transformFunction: null
2134
+ }
2135
+ },
2136
+ host: { properties: { "class": "hostClasses()" } },
2137
+ queries: [
2138
+ {
2139
+ propertyName: "headerSlot",
2140
+ first: true,
2141
+ predicate: NavigationHeaderComponent,
2142
+ descendants: true,
2143
+ isSignal: true
2144
+ },
2145
+ {
2146
+ propertyName: "contentSlot",
2147
+ first: true,
2148
+ predicate: NavigationContentComponent,
2149
+ descendants: true,
2150
+ isSignal: true
2151
+ },
2152
+ {
2153
+ propertyName: "footerSlot",
2154
+ first: true,
2155
+ predicate: NavigationFooterComponent,
2156
+ descendants: true,
2157
+ isSignal: true
2158
+ }
2159
+ ],
2160
+ ngImport: i0,
2161
+ template: `
2162
+ @if (headerSlot()) {
2163
+ <ng-content select="NavigationHeader" />
2164
+ }
2165
+
2166
+ @if (contentSlot()) {
2167
+ <ng-content select="NavigationContent" />
2168
+ } @else {
2169
+ <NavigationContent />
2170
+ }
2171
+
2172
+ @if (footerSlot()) {
2173
+ <ng-content select="NavigationFooter" />
2174
+ }
2175
+ `,
2176
+ isInline: true,
2177
+ dependencies: [{
2178
+ kind: "component",
2179
+ type: NavigationContentComponent,
2180
+ selector: "NavigationContent",
2181
+ inputs: ["class"]
2182
+ }]
2183
+ });
2184
+ };
2185
+ i0.ɵɵngDeclareClassMetadata({
2186
+ minVersion: "12.0.0",
2187
+ version: "22.2.4",
2188
+ ngImport: i0,
2189
+ type: NavigationNavbarComponent,
2190
+ decorators: [{
2191
+ type: Component,
2192
+ args: [{
2193
+ selector: "NavigationNavbar",
2194
+ imports: [NavigationContentComponent],
2195
+ host: { "[class]": "hostClasses()" },
2196
+ template: `
2197
+ @if (headerSlot()) {
2198
+ <ng-content select="NavigationHeader" />
2199
+ }
2200
+
2201
+ @if (contentSlot()) {
2202
+ <ng-content select="NavigationContent" />
2203
+ } @else {
2204
+ <NavigationContent />
2205
+ }
2206
+
2207
+ @if (footerSlot()) {
2208
+ <ng-content select="NavigationFooter" />
2209
+ }
2210
+ `
2211
+ }]
2212
+ }],
2213
+ ctorParameters: () => [],
2214
+ propDecorators: {
2215
+ position: [{
2216
+ type: i0.Input,
2217
+ args: [{
2218
+ isSignal: true,
2219
+ alias: "nav-position",
2220
+ required: false
2221
+ }]
2222
+ }],
2223
+ typeStyle: [{
2224
+ type: i0.Input,
2225
+ args: [{
2226
+ isSignal: true,
2227
+ alias: "nav-type-style",
2228
+ required: false
2229
+ }]
2230
+ }],
2231
+ class: [{
2232
+ type: i0.Input,
2233
+ args: [{
2234
+ isSignal: true,
2235
+ alias: "class",
2236
+ required: false
2237
+ }]
2238
+ }],
2239
+ headerSlot: [{
2240
+ type: i0.ContentChild,
2241
+ args: [i0.forwardRef(() => NavigationHeaderComponent), { isSignal: true }]
2242
+ }],
2243
+ contentSlot: [{
2244
+ type: i0.ContentChild,
2245
+ args: [i0.forwardRef(() => NavigationContentComponent), { isSignal: true }]
2246
+ }],
2247
+ footerSlot: [{
2248
+ type: i0.ContentChild,
2249
+ args: [i0.forwardRef(() => NavigationFooterComponent), { isSignal: true }]
2250
+ }]
2251
+ }
2252
+ });
2253
+ var NavigationFlyoutComponent = class NavigationFlyoutComponent {
2254
+ container = inject(NavigationContainerComponent);
2255
+ destroyRef = inject(DestroyRef);
2256
+ label = input("Menu", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
2257
+ icon = input(null, ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
2258
+ iconOnly = input(false, {
2259
+ ...ngDevMode ? { debugName: "iconOnly" } : /* istanbul ignore next */ {},
2260
+ alias: "icon-only",
2261
+ transform: booleanAttribute
2262
+ });
2263
+ iconPosition = input("start", {
2264
+ ...ngDevMode ? { debugName: "iconPosition" } : /* istanbul ignore next */ {},
2265
+ alias: "icon-position"
2266
+ });
2267
+ triggerVariant = input("button", {
2268
+ ...ngDevMode ? { debugName: "triggerVariant" } : /* istanbul ignore next */ {},
2269
+ alias: "trigger-variant"
2270
+ });
2271
+ triggerFloating = input(false, {
2272
+ ...ngDevMode ? { debugName: "triggerFloating" } : /* istanbul ignore next */ {},
2273
+ alias: "trigger-floating",
2274
+ transform: booleanAttribute
2275
+ });
2276
+ panelViewport = input(false, {
2277
+ ...ngDevMode ? { debugName: "panelViewport" } : /* istanbul ignore next */ {},
2278
+ alias: "panel-viewport",
2279
+ transform: booleanAttribute
2280
+ });
2281
+ triggerClass = input("", {
2282
+ ...ngDevMode ? { debugName: "triggerClass" } : /* istanbul ignore next */ {},
2283
+ alias: "trigger-class"
2284
+ });
2285
+ triggerButtonClass = input("", {
2286
+ ...ngDevMode ? { debugName: "triggerButtonClass" } : /* istanbul ignore next */ {},
2287
+ alias: "trigger-button-class"
2288
+ });
2289
+ position = input(null, {
2290
+ ...ngDevMode ? { debugName: "position" } : /* istanbul ignore next */ {},
2291
+ alias: "nav-position"
2292
+ });
2293
+ typeStyle = input("flat", {
2294
+ ...ngDevMode ? { debugName: "typeStyle" } : /* istanbul ignore next */ {},
2295
+ alias: "nav-type-style"
2296
+ });
2297
+ class = input("", {
2298
+ ...ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {},
2299
+ alias: "class"
2300
+ });
2301
+ hostClasses = computed(() => cn(this.container.shellClasses(), this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
2302
+ constructor() {
2303
+ const config = {
2304
+ orientation: "horizontal",
2305
+ type: "flyout",
2306
+ position: this.position,
2307
+ flyoutLabel: this.label,
2308
+ flyoutIcon: this.icon,
2309
+ flyoutIconOnly: this.iconOnly,
2310
+ flyoutIconPosition: this.iconPosition,
2311
+ flyoutTriggerVariant: this.triggerVariant,
2312
+ flyoutTriggerFloating: this.triggerFloating,
2313
+ flyoutPanelViewport: this.panelViewport,
2314
+ flyoutTriggerClass: this.triggerClass,
2315
+ flyoutTriggerButtonClass: this.triggerButtonClass,
2316
+ typeStyle: this.typeStyle
2317
+ };
2318
+ this.container.registerType(config);
2319
+ this.destroyRef.onDestroy(() => this.container.unregisterType(config));
2320
+ }
2321
+ static ɵfac = i0.ɵɵngDeclareFactory({
2322
+ minVersion: "12.0.0",
2323
+ version: "22.2.4",
2324
+ ngImport: i0,
2325
+ type: NavigationFlyoutComponent,
2326
+ deps: [],
2327
+ target: i0.ɵɵFactoryTarget.Component
2328
+ });
2329
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2330
+ minVersion: "17.1.0",
2331
+ version: "22.2.4",
2332
+ type: NavigationFlyoutComponent,
2333
+ isStandalone: true,
2334
+ selector: "NavigationFlyout",
2335
+ inputs: {
2336
+ label: {
2337
+ classPropertyName: "label",
2338
+ publicName: "label",
2339
+ isSignal: true,
2340
+ isRequired: false,
2341
+ transformFunction: null
2342
+ },
2343
+ icon: {
2344
+ classPropertyName: "icon",
2345
+ publicName: "icon",
2346
+ isSignal: true,
2347
+ isRequired: false,
2348
+ transformFunction: null
2349
+ },
2350
+ iconOnly: {
2351
+ classPropertyName: "iconOnly",
2352
+ publicName: "icon-only",
2353
+ isSignal: true,
2354
+ isRequired: false,
2355
+ transformFunction: null
2356
+ },
2357
+ iconPosition: {
2358
+ classPropertyName: "iconPosition",
2359
+ publicName: "icon-position",
2360
+ isSignal: true,
2361
+ isRequired: false,
2362
+ transformFunction: null
2363
+ },
2364
+ triggerVariant: {
2365
+ classPropertyName: "triggerVariant",
2366
+ publicName: "trigger-variant",
2367
+ isSignal: true,
2368
+ isRequired: false,
2369
+ transformFunction: null
2370
+ },
2371
+ triggerFloating: {
2372
+ classPropertyName: "triggerFloating",
2373
+ publicName: "trigger-floating",
2374
+ isSignal: true,
2375
+ isRequired: false,
2376
+ transformFunction: null
2377
+ },
2378
+ panelViewport: {
2379
+ classPropertyName: "panelViewport",
2380
+ publicName: "panel-viewport",
2381
+ isSignal: true,
2382
+ isRequired: false,
2383
+ transformFunction: null
2384
+ },
2385
+ triggerClass: {
2386
+ classPropertyName: "triggerClass",
2387
+ publicName: "trigger-class",
2388
+ isSignal: true,
2389
+ isRequired: false,
2390
+ transformFunction: null
2391
+ },
2392
+ triggerButtonClass: {
2393
+ classPropertyName: "triggerButtonClass",
2394
+ publicName: "trigger-button-class",
2395
+ isSignal: true,
2396
+ isRequired: false,
2397
+ transformFunction: null
2398
+ },
2399
+ position: {
2400
+ classPropertyName: "position",
2401
+ publicName: "nav-position",
2402
+ isSignal: true,
2403
+ isRequired: false,
2404
+ transformFunction: null
2405
+ },
2406
+ typeStyle: {
2407
+ classPropertyName: "typeStyle",
2408
+ publicName: "nav-type-style",
2409
+ isSignal: true,
2410
+ isRequired: false,
2411
+ transformFunction: null
2412
+ },
2413
+ class: {
2414
+ classPropertyName: "class",
2415
+ publicName: "class",
2416
+ isSignal: true,
2417
+ isRequired: false,
2418
+ transformFunction: null
2419
+ }
2420
+ },
2421
+ host: { properties: { "class": "hostClasses()" } },
2422
+ ngImport: i0,
2423
+ template: `
2424
+ <!-- Bar hanya berisi trigger (dari NavigationContent → FlyoutMenu); NavigationHeader &
2425
+ NavigationFooter di-re-project ke DALAM panel flyout saat dibuka. Urutan dibaca dari sisi
2426
+ bar ke arah luar: header (menempel bar, sticky) → menu → footer (ujung jauh). Mode top:
2427
+ brand atas, logout bawah; mode bottom: cerminannya (brand bawah dekat bar, logout atas). -->
2428
+ <NavigationContent>
2429
+ <ng-content select="NavigationHeader" ngProjectAs="NavigationHeader" />
2430
+ <ng-content select="NavigationFooter" ngProjectAs="NavigationFooter" />
2431
+ </NavigationContent>
2432
+ `,
2433
+ isInline: true,
2434
+ dependencies: [{
2435
+ kind: "component",
2436
+ type: NavigationContentComponent,
2437
+ selector: "NavigationContent",
2438
+ inputs: ["class"]
2439
+ }]
2440
+ });
2441
+ };
2442
+ i0.ɵɵngDeclareClassMetadata({
2443
+ minVersion: "12.0.0",
2444
+ version: "22.2.4",
2445
+ ngImport: i0,
2446
+ type: NavigationFlyoutComponent,
2447
+ decorators: [{
2448
+ type: Component,
2449
+ args: [{
2450
+ selector: "NavigationFlyout",
2451
+ imports: [NavigationContentComponent],
2452
+ host: { "[class]": "hostClasses()" },
2453
+ template: `
2454
+ <!-- Bar hanya berisi trigger (dari NavigationContent → FlyoutMenu); NavigationHeader &
2455
+ NavigationFooter di-re-project ke DALAM panel flyout saat dibuka. Urutan dibaca dari sisi
2456
+ bar ke arah luar: header (menempel bar, sticky) → menu → footer (ujung jauh). Mode top:
2457
+ brand atas, logout bawah; mode bottom: cerminannya (brand bawah dekat bar, logout atas). -->
2458
+ <NavigationContent>
2459
+ <ng-content select="NavigationHeader" ngProjectAs="NavigationHeader" />
2460
+ <ng-content select="NavigationFooter" ngProjectAs="NavigationFooter" />
2461
+ </NavigationContent>
2462
+ `
2463
+ }]
2464
+ }],
2465
+ ctorParameters: () => [],
2466
+ propDecorators: {
2467
+ label: [{
2468
+ type: i0.Input,
2469
+ args: [{
2470
+ isSignal: true,
2471
+ alias: "label",
2472
+ required: false
2473
+ }]
2474
+ }],
2475
+ icon: [{
2476
+ type: i0.Input,
2477
+ args: [{
2478
+ isSignal: true,
2479
+ alias: "icon",
2480
+ required: false
2481
+ }]
2482
+ }],
2483
+ iconOnly: [{
2484
+ type: i0.Input,
2485
+ args: [{
2486
+ isSignal: true,
2487
+ alias: "icon-only",
2488
+ required: false
2489
+ }]
2490
+ }],
2491
+ iconPosition: [{
2492
+ type: i0.Input,
2493
+ args: [{
2494
+ isSignal: true,
2495
+ alias: "icon-position",
2496
+ required: false
2497
+ }]
2498
+ }],
2499
+ triggerVariant: [{
2500
+ type: i0.Input,
2501
+ args: [{
2502
+ isSignal: true,
2503
+ alias: "trigger-variant",
2504
+ required: false
2505
+ }]
2506
+ }],
2507
+ triggerFloating: [{
2508
+ type: i0.Input,
2509
+ args: [{
2510
+ isSignal: true,
2511
+ alias: "trigger-floating",
2512
+ required: false
2513
+ }]
2514
+ }],
2515
+ panelViewport: [{
2516
+ type: i0.Input,
2517
+ args: [{
2518
+ isSignal: true,
2519
+ alias: "panel-viewport",
2520
+ required: false
2521
+ }]
2522
+ }],
2523
+ triggerClass: [{
2524
+ type: i0.Input,
2525
+ args: [{
2526
+ isSignal: true,
2527
+ alias: "trigger-class",
2528
+ required: false
2529
+ }]
2530
+ }],
2531
+ triggerButtonClass: [{
2532
+ type: i0.Input,
2533
+ args: [{
2534
+ isSignal: true,
2535
+ alias: "trigger-button-class",
2536
+ required: false
2537
+ }]
2538
+ }],
2539
+ position: [{
2540
+ type: i0.Input,
2541
+ args: [{
2542
+ isSignal: true,
2543
+ alias: "nav-position",
2544
+ required: false
2545
+ }]
2546
+ }],
2547
+ typeStyle: [{
2548
+ type: i0.Input,
2549
+ args: [{
2550
+ isSignal: true,
2551
+ alias: "nav-type-style",
2552
+ required: false
2553
+ }]
2554
+ }],
2555
+ class: [{
2556
+ type: i0.Input,
2557
+ args: [{
2558
+ isSignal: true,
2559
+ alias: "class",
2560
+ required: false
2561
+ }]
2562
+ }]
2563
+ }
2564
+ });
2565
+ function isCompactDisplay(shell) {
2566
+ const state = shell.displayState();
2567
+ if (state.orientation !== "vertical") return false;
2568
+ if (state.type === "dockbar" || state.type === "minidock") return true;
2569
+ return shell.collapseEnabled() && state.collapsed;
2570
+ }
2571
+ var NavigationCollapseRootDirective = class NavigationCollapseRootDirective {
2572
+ shell = inject(NAVIGATION_SHELL);
2573
+ collapseEnabled = computed(() => {
2574
+ const state = this.shell.displayState();
2575
+ return state.orientation === "vertical" && (this.shell.collapseEnabled() || state.type === "dockbar" || state.type === "minidock");
2576
+ }, ...ngDevMode ? [{ debugName: "collapseEnabled" }] : /* istanbul ignore next */ []);
2577
+ displayCollapsed = computed(() => isCompactDisplay(this.shell), ...ngDevMode ? [{ debugName: "displayCollapsed" }] : /* istanbul ignore next */ []);
2578
+ static ɵfac = i0.ɵɵngDeclareFactory({
2579
+ minVersion: "12.0.0",
2580
+ version: "22.2.4",
2581
+ ngImport: i0,
2582
+ type: NavigationCollapseRootDirective,
2583
+ deps: [],
2584
+ target: i0.ɵɵFactoryTarget.Directive
2585
+ });
2586
+ static ɵdir = i0.ɵɵngDeclareDirective({
2587
+ minVersion: "14.0.0",
2588
+ version: "22.2.4",
2589
+ type: NavigationCollapseRootDirective,
2590
+ isStandalone: true,
2591
+ selector: "[NavigationCollapseRoot]",
2592
+ host: { properties: {
2593
+ "class.w-full": "collapseEnabled()",
2594
+ "class.justify-center": "displayCollapsed()"
2595
+ } },
2596
+ ngImport: i0
2597
+ });
2598
+ };
2599
+ i0.ɵɵngDeclareClassMetadata({
2600
+ minVersion: "12.0.0",
2601
+ version: "22.2.4",
2602
+ ngImport: i0,
2603
+ type: NavigationCollapseRootDirective,
2604
+ decorators: [{
2605
+ type: Directive,
2606
+ args: [{
2607
+ selector: "[NavigationCollapseRoot]",
2608
+ host: {
2609
+ "[class.w-full]": "collapseEnabled()",
2610
+ "[class.justify-center]": "displayCollapsed()"
2611
+ }
2612
+ }]
2613
+ }]
2614
+ });
2615
+ var NavigationCollapseExpandedDirective = class NavigationCollapseExpandedDirective {
2616
+ shell = inject(NAVIGATION_SHELL);
2617
+ templateRef = inject(TemplateRef);
2618
+ viewContainer = inject(ViewContainerRef);
2619
+ hasView = false;
2620
+ shouldRender = computed(() => !isCompactDisplay(this.shell), ...ngDevMode ? [{ debugName: "shouldRender" }] : /* istanbul ignore next */ []);
2621
+ constructor() {
2622
+ effect(() => {
2623
+ if (this.shouldRender()) {
2624
+ if (!this.hasView) {
2625
+ this.viewContainer.createEmbeddedView(this.templateRef);
2626
+ this.hasView = true;
2627
+ }
2628
+ return;
2629
+ }
2630
+ if (this.hasView) {
2631
+ this.viewContainer.clear();
2632
+ this.hasView = false;
2633
+ }
2634
+ });
2635
+ }
2636
+ static ɵfac = i0.ɵɵngDeclareFactory({
2637
+ minVersion: "12.0.0",
2638
+ version: "22.2.4",
2639
+ ngImport: i0,
2640
+ type: NavigationCollapseExpandedDirective,
2641
+ deps: [],
2642
+ target: i0.ɵɵFactoryTarget.Directive
2643
+ });
2644
+ static ɵdir = i0.ɵɵngDeclareDirective({
2645
+ minVersion: "14.0.0",
2646
+ version: "22.2.4",
2647
+ type: NavigationCollapseExpandedDirective,
2648
+ isStandalone: true,
2649
+ selector: "[NavigationCollapseExpanded]",
2650
+ ngImport: i0
2651
+ });
2652
+ };
2653
+ i0.ɵɵngDeclareClassMetadata({
2654
+ minVersion: "12.0.0",
2655
+ version: "22.2.4",
2656
+ ngImport: i0,
2657
+ type: NavigationCollapseExpandedDirective,
2658
+ decorators: [{
2659
+ type: Directive,
2660
+ args: [{ selector: "[NavigationCollapseExpanded]" }]
2661
+ }],
2662
+ ctorParameters: () => []
2663
+ });
2664
+ var NavigationFooterActionComponent = class NavigationFooterActionComponent {
2665
+ shell = inject(NAVIGATION_SHELL, { optional: true });
2666
+ class = input("", {
2667
+ ...ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {},
2668
+ alias: "class"
2669
+ });
2670
+ collapsed = computed(() => {
2671
+ const state = this.shell?.displayState();
2672
+ return state ? state.orientation === "vertical" && state.collapsed : false;
2673
+ }, ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
2674
+ hostClasses = computed(() => cn(this.collapsed() ? "hidden" : "ml-auto flex shrink-0 items-center gap-1", this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
2675
+ static ɵfac = i0.ɵɵngDeclareFactory({
2676
+ minVersion: "12.0.0",
2677
+ version: "22.2.4",
2678
+ ngImport: i0,
2679
+ type: NavigationFooterActionComponent,
2680
+ deps: [],
2681
+ target: i0.ɵɵFactoryTarget.Component
2682
+ });
2683
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2684
+ minVersion: "17.1.0",
2685
+ version: "22.2.4",
2686
+ type: NavigationFooterActionComponent,
2687
+ isStandalone: true,
2688
+ selector: "NavigationFooterAction",
2689
+ inputs: { class: {
2690
+ classPropertyName: "class",
2691
+ publicName: "class",
2692
+ isSignal: true,
2693
+ isRequired: false,
2694
+ transformFunction: null
2695
+ } },
2696
+ host: { properties: { "class": "hostClasses()" } },
2697
+ ngImport: i0,
2698
+ template: `<ng-content />`,
2699
+ isInline: true
2700
+ });
2701
+ };
2702
+ i0.ɵɵngDeclareClassMetadata({
2703
+ minVersion: "12.0.0",
2704
+ version: "22.2.4",
2705
+ ngImport: i0,
2706
+ type: NavigationFooterActionComponent,
2707
+ decorators: [{
2708
+ type: Component,
2709
+ args: [{
2710
+ selector: "NavigationFooterAction",
2711
+ host: { "[class]": "hostClasses()" },
2712
+ template: `<ng-content />`
2713
+ }]
2714
+ }],
2715
+ propDecorators: { class: [{
2716
+ type: i0.Input,
2717
+ args: [{
2718
+ isSignal: true,
2719
+ alias: "class",
2720
+ required: false
2721
+ }]
2722
+ }] }
2723
+ });
2724
+ function deriveNavigationInitials(name) {
2725
+ const parts = name.trim().split(/\s+/).filter(Boolean);
2726
+ if (parts.length === 0) return "";
2727
+ const first = parts[0] ?? "";
2728
+ if (parts.length === 1) return first.slice(0, 2).toUpperCase();
2729
+ const last = parts[parts.length - 1] ?? "";
2730
+ return (first.charAt(0) + last.charAt(0)).toUpperCase();
2731
+ }
2732
+ const INITIAL_HOST_CLASSES = "inline-flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-md bg-primary/10 text-primary";
2733
+ function setupNavigationInitial(sources) {
2734
+ return {
2735
+ resolvedInitials: computed(() => sources.initials()?.slice(0, 2).toUpperCase() || deriveNavigationInitials(sources.name())),
2736
+ iconClasses: computed(() => sources.compact() ? "text-(length:--nav-icon-size-rail)" : "text-(length:--nav-icon-size)"),
2737
+ hostClasses: computed(() => cn(INITIAL_HOST_CLASSES, sources.class()))
2738
+ };
2739
+ }
2740
+ var NavigationFooterInitialComponent = class NavigationFooterInitialComponent {
2741
+ name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
2742
+ src = input(null, ...ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []);
2743
+ initials = input(null, ...ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []);
2744
+ icon = input(null, ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
2745
+ class = input("", {
2746
+ ...ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {},
2747
+ alias: "class"
2748
+ });
2749
+ view = setupNavigationInitial({
2750
+ name: () => this.name(),
2751
+ initials: () => this.initials(),
2752
+ compact: () => false,
2753
+ class: () => this.class()
2754
+ });
2755
+ resolvedInitials = this.view.resolvedInitials;
2756
+ hostClasses = this.view.hostClasses;
2757
+ static ɵfac = i0.ɵɵngDeclareFactory({
2758
+ minVersion: "12.0.0",
2759
+ version: "22.2.4",
2760
+ ngImport: i0,
2761
+ type: NavigationFooterInitialComponent,
2762
+ deps: [],
2763
+ target: i0.ɵɵFactoryTarget.Component
2764
+ });
2765
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2766
+ minVersion: "17.0.0",
2767
+ version: "22.2.4",
2768
+ type: NavigationFooterInitialComponent,
2769
+ isStandalone: true,
2770
+ selector: "NavigationFooterInitial",
2771
+ inputs: {
2772
+ name: {
2773
+ classPropertyName: "name",
2774
+ publicName: "name",
2775
+ isSignal: true,
2776
+ isRequired: false,
2777
+ transformFunction: null
2778
+ },
2779
+ src: {
2780
+ classPropertyName: "src",
2781
+ publicName: "src",
2782
+ isSignal: true,
2783
+ isRequired: false,
2784
+ transformFunction: null
2785
+ },
2786
+ initials: {
2787
+ classPropertyName: "initials",
2788
+ publicName: "initials",
2789
+ isSignal: true,
2790
+ isRequired: false,
2791
+ transformFunction: null
2792
+ },
2793
+ icon: {
2794
+ classPropertyName: "icon",
2795
+ publicName: "icon",
2796
+ isSignal: true,
2797
+ isRequired: false,
2798
+ transformFunction: null
2799
+ },
2800
+ class: {
2801
+ classPropertyName: "class",
2802
+ publicName: "class",
2803
+ isSignal: true,
2804
+ isRequired: false,
2805
+ transformFunction: null
2806
+ }
2807
+ },
2808
+ host: { properties: {
2809
+ "class": "hostClasses()",
2810
+ "attr.role": "name() ? 'img' : null",
2811
+ "attr.aria-label": "name() || null"
2812
+ } },
2813
+ ngImport: i0,
2814
+ template: `
2815
+ @if (src(); as source) {
2816
+ <img [src]="source" alt="" class="h-full w-full rounded-[inherit] object-cover" />
2817
+ } @else if (icon(); as glyph) {
2818
+ <Icon [name]="glyph" size="inherit" class="text-(length:--nav-icon-size)" />
2819
+ } @else {
2820
+ <span class="text-xs font-semibold leading-none">{{ resolvedInitials() }}</span>
2821
+ }
2822
+ `,
2823
+ isInline: true,
2824
+ dependencies: [{
2825
+ kind: "component",
2826
+ type: IconComponent,
2827
+ selector: "Icon",
2828
+ inputs: [
2829
+ "name",
2830
+ "class",
2831
+ "size",
2832
+ "strokeWidth",
2833
+ "label"
2834
+ ]
2835
+ }]
2836
+ });
2837
+ };
2838
+ i0.ɵɵngDeclareClassMetadata({
2839
+ minVersion: "12.0.0",
2840
+ version: "22.2.4",
2841
+ ngImport: i0,
2842
+ type: NavigationFooterInitialComponent,
2843
+ decorators: [{
2844
+ type: Component,
2845
+ args: [{
2846
+ selector: "NavigationFooterInitial",
2847
+ imports: [IconComponent],
2848
+ host: {
2849
+ "[class]": "hostClasses()",
2850
+ "[attr.role]": "name() ? 'img' : null",
2851
+ "[attr.aria-label]": "name() || null"
2852
+ },
2853
+ template: `
2854
+ @if (src(); as source) {
2855
+ <img [src]="source" alt="" class="h-full w-full rounded-[inherit] object-cover" />
2856
+ } @else if (icon(); as glyph) {
2857
+ <Icon [name]="glyph" size="inherit" class="text-(length:--nav-icon-size)" />
2858
+ } @else {
2859
+ <span class="text-xs font-semibold leading-none">{{ resolvedInitials() }}</span>
2860
+ }
2861
+ `
2862
+ }]
2863
+ }],
2864
+ propDecorators: {
2865
+ name: [{
2866
+ type: i0.Input,
2867
+ args: [{
2868
+ isSignal: true,
2869
+ alias: "name",
2870
+ required: false
2871
+ }]
2872
+ }],
2873
+ src: [{
2874
+ type: i0.Input,
2875
+ args: [{
2876
+ isSignal: true,
2877
+ alias: "src",
2878
+ required: false
2879
+ }]
2880
+ }],
2881
+ initials: [{
2882
+ type: i0.Input,
2883
+ args: [{
2884
+ isSignal: true,
2885
+ alias: "initials",
2886
+ required: false
2887
+ }]
2888
+ }],
2889
+ icon: [{
2890
+ type: i0.Input,
2891
+ args: [{
2892
+ isSignal: true,
2893
+ alias: "icon",
2894
+ required: false
2895
+ }]
2896
+ }],
2897
+ class: [{
2898
+ type: i0.Input,
2899
+ args: [{
2900
+ isSignal: true,
2901
+ alias: "class",
2902
+ required: false
2903
+ }]
2904
+ }]
2905
+ }
2906
+ });
2907
+ var NavigationFooterTitleComponent = class NavigationFooterTitleComponent {
2908
+ shell = inject(NAVIGATION_SHELL, { optional: true });
2909
+ title = input("", ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
2910
+ subtitle = input(null, ...ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []);
2911
+ class = input("", {
2912
+ ...ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {},
2913
+ alias: "class"
2914
+ });
2915
+ collapsed = computed(() => {
2916
+ const state = this.shell?.displayState();
2917
+ return state ? state.orientation === "vertical" && state.collapsed : false;
2918
+ }, ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
2919
+ hostClasses = computed(() => cn(this.collapsed() ? "hidden" : "flex min-w-0 flex-col justify-center", this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
2920
+ static ɵfac = i0.ɵɵngDeclareFactory({
2921
+ minVersion: "12.0.0",
2922
+ version: "22.2.4",
2923
+ ngImport: i0,
2924
+ type: NavigationFooterTitleComponent,
2925
+ deps: [],
2926
+ target: i0.ɵɵFactoryTarget.Component
2927
+ });
2928
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2929
+ minVersion: "17.0.0",
2930
+ version: "22.2.4",
2931
+ type: NavigationFooterTitleComponent,
2932
+ isStandalone: true,
2933
+ selector: "NavigationFooterTitle",
2934
+ inputs: {
2935
+ title: {
2936
+ classPropertyName: "title",
2937
+ publicName: "title",
2938
+ isSignal: true,
2939
+ isRequired: false,
2940
+ transformFunction: null
2941
+ },
2942
+ subtitle: {
2943
+ classPropertyName: "subtitle",
2944
+ publicName: "subtitle",
2945
+ isSignal: true,
2946
+ isRequired: false,
2947
+ transformFunction: null
2948
+ },
2949
+ class: {
2950
+ classPropertyName: "class",
2951
+ publicName: "class",
2952
+ isSignal: true,
2953
+ isRequired: false,
2954
+ transformFunction: null
2955
+ }
2956
+ },
2957
+ host: { properties: {
2958
+ "class": "hostClasses()",
2959
+ "attr.data-collapsed": "collapsed()"
2960
+ } },
2961
+ ngImport: i0,
2962
+ template: `
2963
+ <span class="nav-text block truncate text-foreground">{{ title() }}</span>
2964
+ @if (subtitle(); as sub) {
2965
+ <span
2966
+ class="nav-subtitle -mt-0.5 block truncate text-muted-foreground"
2967
+ data-navigation-sidebar-subtitle
2968
+ >
2969
+ {{ sub }}
2970
+ </span>
2971
+ }
2972
+ `,
2973
+ isInline: true
2974
+ });
2975
+ };
2976
+ i0.ɵɵngDeclareClassMetadata({
2977
+ minVersion: "12.0.0",
2978
+ version: "22.2.4",
2979
+ ngImport: i0,
2980
+ type: NavigationFooterTitleComponent,
2981
+ decorators: [{
2982
+ type: Component,
2983
+ args: [{
2984
+ selector: "NavigationFooterTitle",
2985
+ host: {
2986
+ "[class]": "hostClasses()",
2987
+ "[attr.data-collapsed]": "collapsed()"
2988
+ },
2989
+ template: `
2990
+ <span class="nav-text block truncate text-foreground">{{ title() }}</span>
2991
+ @if (subtitle(); as sub) {
2992
+ <span
2993
+ class="nav-subtitle -mt-0.5 block truncate text-muted-foreground"
2994
+ data-navigation-sidebar-subtitle
2995
+ >
2996
+ {{ sub }}
2997
+ </span>
2998
+ }
2999
+ `
3000
+ }]
3001
+ }],
3002
+ propDecorators: {
3003
+ title: [{
3004
+ type: i0.Input,
3005
+ args: [{
3006
+ isSignal: true,
3007
+ alias: "title",
3008
+ required: false
3009
+ }]
3010
+ }],
3011
+ subtitle: [{
3012
+ type: i0.Input,
3013
+ args: [{
3014
+ isSignal: true,
3015
+ alias: "subtitle",
3016
+ required: false
3017
+ }]
3018
+ }],
3019
+ class: [{
3020
+ type: i0.Input,
3021
+ args: [{
3022
+ isSignal: true,
3023
+ alias: "class",
3024
+ required: false
3025
+ }]
3026
+ }]
3027
+ }
3028
+ });
3029
+ var NavigationHeaderInitialComponent = class NavigationHeaderInitialComponent {
3030
+ name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
3031
+ src = input(null, ...ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []);
3032
+ initials = input(null, ...ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []);
3033
+ icon = input(null, ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
3034
+ compact = input(false, {
3035
+ ...ngDevMode ? { debugName: "compact" } : /* istanbul ignore next */ {},
3036
+ transform: booleanAttribute
3037
+ });
3038
+ class = input("", {
3039
+ ...ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {},
3040
+ alias: "class"
3041
+ });
3042
+ view = setupNavigationInitial({
3043
+ name: () => this.name(),
3044
+ initials: () => this.initials(),
3045
+ compact: () => this.compact(),
3046
+ class: () => this.class()
3047
+ });
3048
+ resolvedInitials = this.view.resolvedInitials;
3049
+ iconClasses = this.view.iconClasses;
3050
+ hostClasses = this.view.hostClasses;
3051
+ static ɵfac = i0.ɵɵngDeclareFactory({
3052
+ minVersion: "12.0.0",
3053
+ version: "22.2.4",
3054
+ ngImport: i0,
3055
+ type: NavigationHeaderInitialComponent,
3056
+ deps: [],
3057
+ target: i0.ɵɵFactoryTarget.Component
3058
+ });
3059
+ static ɵcmp = i0.ɵɵngDeclareComponent({
3060
+ minVersion: "17.0.0",
3061
+ version: "22.2.4",
3062
+ type: NavigationHeaderInitialComponent,
3063
+ isStandalone: true,
3064
+ selector: "NavigationHeaderInitial",
3065
+ inputs: {
3066
+ name: {
3067
+ classPropertyName: "name",
3068
+ publicName: "name",
3069
+ isSignal: true,
3070
+ isRequired: false,
3071
+ transformFunction: null
3072
+ },
3073
+ src: {
3074
+ classPropertyName: "src",
3075
+ publicName: "src",
3076
+ isSignal: true,
3077
+ isRequired: false,
3078
+ transformFunction: null
3079
+ },
3080
+ initials: {
3081
+ classPropertyName: "initials",
3082
+ publicName: "initials",
3083
+ isSignal: true,
3084
+ isRequired: false,
3085
+ transformFunction: null
3086
+ },
3087
+ icon: {
3088
+ classPropertyName: "icon",
3089
+ publicName: "icon",
3090
+ isSignal: true,
3091
+ isRequired: false,
3092
+ transformFunction: null
3093
+ },
3094
+ compact: {
3095
+ classPropertyName: "compact",
3096
+ publicName: "compact",
3097
+ isSignal: true,
3098
+ isRequired: false,
3099
+ transformFunction: null
3100
+ },
3101
+ class: {
3102
+ classPropertyName: "class",
3103
+ publicName: "class",
3104
+ isSignal: true,
3105
+ isRequired: false,
3106
+ transformFunction: null
3107
+ }
3108
+ },
3109
+ host: { properties: {
3110
+ "class": "hostClasses()",
3111
+ "attr.role": "name() ? 'img' : null",
3112
+ "attr.aria-label": "name() || null"
3113
+ } },
3114
+ ngImport: i0,
3115
+ template: `
3116
+ @if (src(); as source) {
3117
+ <img [src]="source" alt="" class="h-full w-full rounded-[inherit] object-cover" />
3118
+ } @else if (icon(); as glyph) {
3119
+ <Icon [name]="glyph" size="inherit" [class]="iconClasses()" />
3120
+ } @else {
3121
+ <span class="text-xs font-semibold leading-none">{{ resolvedInitials() }}</span>
3122
+ }
3123
+ `,
3124
+ isInline: true,
3125
+ dependencies: [{
3126
+ kind: "component",
3127
+ type: IconComponent,
3128
+ selector: "Icon",
3129
+ inputs: [
3130
+ "name",
3131
+ "class",
3132
+ "size",
3133
+ "strokeWidth",
3134
+ "label"
3135
+ ]
3136
+ }]
3137
+ });
3138
+ };
3139
+ i0.ɵɵngDeclareClassMetadata({
3140
+ minVersion: "12.0.0",
3141
+ version: "22.2.4",
3142
+ ngImport: i0,
3143
+ type: NavigationHeaderInitialComponent,
3144
+ decorators: [{
3145
+ type: Component,
3146
+ args: [{
3147
+ selector: "NavigationHeaderInitial",
3148
+ imports: [IconComponent],
3149
+ host: {
3150
+ "[class]": "hostClasses()",
3151
+ "[attr.role]": "name() ? 'img' : null",
3152
+ "[attr.aria-label]": "name() || null"
3153
+ },
3154
+ template: `
3155
+ @if (src(); as source) {
3156
+ <img [src]="source" alt="" class="h-full w-full rounded-[inherit] object-cover" />
3157
+ } @else if (icon(); as glyph) {
3158
+ <Icon [name]="glyph" size="inherit" [class]="iconClasses()" />
3159
+ } @else {
3160
+ <span class="text-xs font-semibold leading-none">{{ resolvedInitials() }}</span>
3161
+ }
3162
+ `
3163
+ }]
3164
+ }],
3165
+ propDecorators: {
3166
+ name: [{
3167
+ type: i0.Input,
3168
+ args: [{
3169
+ isSignal: true,
3170
+ alias: "name",
3171
+ required: false
3172
+ }]
3173
+ }],
3174
+ src: [{
3175
+ type: i0.Input,
3176
+ args: [{
3177
+ isSignal: true,
3178
+ alias: "src",
3179
+ required: false
3180
+ }]
3181
+ }],
3182
+ initials: [{
3183
+ type: i0.Input,
3184
+ args: [{
3185
+ isSignal: true,
3186
+ alias: "initials",
3187
+ required: false
3188
+ }]
3189
+ }],
3190
+ icon: [{
3191
+ type: i0.Input,
3192
+ args: [{
3193
+ isSignal: true,
3194
+ alias: "icon",
3195
+ required: false
3196
+ }]
3197
+ }],
3198
+ compact: [{
3199
+ type: i0.Input,
3200
+ args: [{
3201
+ isSignal: true,
3202
+ alias: "compact",
3203
+ required: false
3204
+ }]
3205
+ }],
3206
+ class: [{
3207
+ type: i0.Input,
3208
+ args: [{
3209
+ isSignal: true,
3210
+ alias: "class",
3211
+ required: false
3212
+ }]
3213
+ }]
3214
+ }
3215
+ });
3216
+ var NavigationHeaderTitleComponent = class NavigationHeaderTitleComponent {
3217
+ shell = inject(NAVIGATION_SHELL, { optional: true });
3218
+ title = input("", ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
3219
+ subtitle = input(null, ...ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []);
3220
+ class = input("", {
3221
+ ...ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {},
3222
+ alias: "class"
3223
+ });
3224
+ collapsed = computed(() => {
3225
+ const state = this.shell?.displayState();
3226
+ return state ? state.orientation === "vertical" && state.collapsed : false;
3227
+ }, ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
3228
+ hostClasses = computed(() => cn(this.collapsed() ? "hidden" : "flex min-w-0 flex-col justify-center", this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
3229
+ static ɵfac = i0.ɵɵngDeclareFactory({
3230
+ minVersion: "12.0.0",
3231
+ version: "22.2.4",
3232
+ ngImport: i0,
3233
+ type: NavigationHeaderTitleComponent,
3234
+ deps: [],
3235
+ target: i0.ɵɵFactoryTarget.Component
3236
+ });
3237
+ static ɵcmp = i0.ɵɵngDeclareComponent({
3238
+ minVersion: "17.0.0",
3239
+ version: "22.2.4",
3240
+ type: NavigationHeaderTitleComponent,
3241
+ isStandalone: true,
3242
+ selector: "NavigationHeaderTitle",
3243
+ inputs: {
3244
+ title: {
3245
+ classPropertyName: "title",
3246
+ publicName: "title",
3247
+ isSignal: true,
3248
+ isRequired: false,
3249
+ transformFunction: null
3250
+ },
3251
+ subtitle: {
3252
+ classPropertyName: "subtitle",
3253
+ publicName: "subtitle",
3254
+ isSignal: true,
3255
+ isRequired: false,
3256
+ transformFunction: null
3257
+ },
3258
+ class: {
3259
+ classPropertyName: "class",
3260
+ publicName: "class",
3261
+ isSignal: true,
3262
+ isRequired: false,
3263
+ transformFunction: null
3264
+ }
3265
+ },
3266
+ host: { properties: {
3267
+ "class": "hostClasses()",
3268
+ "attr.data-collapsed": "collapsed()"
3269
+ } },
3270
+ ngImport: i0,
3271
+ template: `
3272
+ <span class="nav-text block truncate text-foreground">{{ title() }}</span>
3273
+ @if (subtitle(); as sub) {
3274
+ <span
3275
+ class="nav-subtitle block truncate text-muted-foreground"
3276
+ data-navigation-sidebar-subtitle
3277
+ >
3278
+ {{ sub }}
3279
+ </span>
3280
+ }
3281
+ `,
3282
+ isInline: true
3283
+ });
3284
+ };
3285
+ i0.ɵɵngDeclareClassMetadata({
3286
+ minVersion: "12.0.0",
3287
+ version: "22.2.4",
3288
+ ngImport: i0,
3289
+ type: NavigationHeaderTitleComponent,
3290
+ decorators: [{
3291
+ type: Component,
3292
+ args: [{
3293
+ selector: "NavigationHeaderTitle",
3294
+ host: {
3295
+ "[class]": "hostClasses()",
3296
+ "[attr.data-collapsed]": "collapsed()"
3297
+ },
3298
+ template: `
3299
+ <span class="nav-text block truncate text-foreground">{{ title() }}</span>
3300
+ @if (subtitle(); as sub) {
3301
+ <span
3302
+ class="nav-subtitle block truncate text-muted-foreground"
3303
+ data-navigation-sidebar-subtitle
3304
+ >
3305
+ {{ sub }}
3306
+ </span>
3307
+ }
3308
+ `
3309
+ }]
3310
+ }],
3311
+ propDecorators: {
3312
+ title: [{
3313
+ type: i0.Input,
3314
+ args: [{
3315
+ isSignal: true,
3316
+ alias: "title",
3317
+ required: false
3318
+ }]
3319
+ }],
3320
+ subtitle: [{
3321
+ type: i0.Input,
3322
+ args: [{
3323
+ isSignal: true,
3324
+ alias: "subtitle",
3325
+ required: false
3326
+ }]
3327
+ }],
3328
+ class: [{
3329
+ type: i0.Input,
3330
+ args: [{
3331
+ isSignal: true,
3332
+ alias: "class",
3333
+ required: false
3334
+ }]
3335
+ }]
3336
+ }
3337
+ });
3338
+ export { NAVIGATION_DOCKBAR_FALLBACK_ICON, NavigationAsideFooterDirective, NavigationCollapseExpandedDirective, NavigationCollapseRootDirective, NavigationContainerComponent, NavigationContentComponent, NavigationDockbarComponent, NavigationFlyoutComponent, NavigationFooterActionComponent, NavigationFooterComponent, NavigationFooterInitialComponent, NavigationFooterTitleComponent, NavigationHeaderComponent, NavigationHeaderInitialComponent, NavigationHeaderTitleComponent, NavigationIconDirective, NavigationMinidockComponent, NavigationNavbarComponent, NavigationSidebarComponent, deriveNavigationInitials, formatNavigationBadgeCount, normalizeUiNavItems, toMinidockItems };