@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,1522 @@
1
+ import { i as hasNavigationCountBadge, s as navigationDescendantBadgeSources, t as NavigationBadgeCountComponent } from "./edsis-angular-navigation-navigation-badge-count.component-D70Ju6_f.mjs";
2
+ import * as i0 from "@angular/core";
3
+ import { Component, InjectionToken, computed, inject, input, output, signal } from "@angular/core";
4
+ import { ActivatedRoute, Router, RouterLink } from "@angular/router";
5
+ import { cn } from "@edsis/angular/component/utils/core";
6
+ import { NAVIGATION_ADAPTER, NAVIGATION_ROUTE_CONTEXT_ADAPTER } from "@edsis/angular/navigation/core";
7
+ import { NgTemplateOutlet } from "@angular/common";
8
+ import { LucideChevronRight } from "@lucide/angular";
9
+ import { IconComponent, provideIcons } from "@edsis/angular/component/icon";
10
+ import { TooltipDirective } from "@edsis/angular/component/tooltip";
11
+ const NAVIGATION_SHELL = new InjectionToken("NAVIGATION_SHELL");
12
+ var NavigationItemBadgeComponent = class NavigationItemBadgeComponent {
13
+ staticClass = input("nav-badge ml-auto inline-flex h-5 shrink-0 items-center self-center rounded-full bg-muted px-2 text-muted-foreground", ...ngDevMode ? [{ debugName: "staticClass" }] : /* istanbul ignore next */ []);
14
+ compact = input(false, ...ngDevMode ? [{ debugName: "compact" }] : /* istanbul ignore next */ []);
15
+ countClasses = computed(() => cn(this.compact() && "nav-count-overlay", this.itemBadge()?.classes), ...ngDevMode ? [{ debugName: "countClasses" }] : /* istanbul ignore next */ []);
16
+ itemBadge = input(...ngDevMode ? [void 0, { debugName: "itemBadge" }] : /* istanbul ignore next */ []);
17
+ badgeContext = input({}, ...ngDevMode ? [{ debugName: "badgeContext" }] : /* istanbul ignore next */ []);
18
+ children = input([], ...ngDevMode ? [{ debugName: "children" }] : /* istanbul ignore next */ []);
19
+ descendantSources = computed(() => navigationDescendantBadgeSources(this.itemBadge(), this.children(), this.badgeContext()), ...ngDevMode ? [{ debugName: "descendantSources" }] : /* istanbul ignore next */ []);
20
+ source = computed(() => {
21
+ const key = this.itemBadge()?.source;
22
+ return key && Object.hasOwn(this.badgeContext(), key) ? this.badgeContext()[key] : null;
23
+ }, ...ngDevMode ? [{ debugName: "source" }] : /* istanbul ignore next */ []);
24
+ static ɵfac = i0.ɵɵngDeclareFactory({
25
+ minVersion: "12.0.0",
26
+ version: "22.2.4",
27
+ ngImport: i0,
28
+ type: NavigationItemBadgeComponent,
29
+ deps: [],
30
+ target: i0.ɵɵFactoryTarget.Component
31
+ });
32
+ static ɵcmp = i0.ɵɵngDeclareComponent({
33
+ minVersion: "17.0.0",
34
+ version: "22.2.4",
35
+ type: NavigationItemBadgeComponent,
36
+ isStandalone: true,
37
+ selector: "NavigationItemBadge",
38
+ inputs: {
39
+ staticClass: {
40
+ classPropertyName: "staticClass",
41
+ publicName: "staticClass",
42
+ isSignal: true,
43
+ isRequired: false,
44
+ transformFunction: null
45
+ },
46
+ compact: {
47
+ classPropertyName: "compact",
48
+ publicName: "compact",
49
+ isSignal: true,
50
+ isRequired: false,
51
+ transformFunction: null
52
+ },
53
+ itemBadge: {
54
+ classPropertyName: "itemBadge",
55
+ publicName: "itemBadge",
56
+ isSignal: true,
57
+ isRequired: false,
58
+ transformFunction: null
59
+ },
60
+ badgeContext: {
61
+ classPropertyName: "badgeContext",
62
+ publicName: "badgeContext",
63
+ isSignal: true,
64
+ isRequired: false,
65
+ transformFunction: null
66
+ },
67
+ children: {
68
+ classPropertyName: "children",
69
+ publicName: "children",
70
+ isSignal: true,
71
+ isRequired: false,
72
+ transformFunction: null
73
+ }
74
+ },
75
+ host: { classAttribute: "contents" },
76
+ ngImport: i0,
77
+ template: `
78
+ @if (itemBadge()?.source || descendantSources().length) {
79
+ <NavigationBadgeCount
80
+ [badge]="source()"
81
+ [sources]="itemBadge()?.source ? null : descendantSources()"
82
+ [class]="countClasses()"
83
+ />
84
+ } @else if (!compact() && itemBadge()?.title; as title) {
85
+ <span data-navigation-badge-text="true" [class]="itemBadge()?.classes ?? staticClass()">{{
86
+ title
87
+ }}</span>
88
+ }
89
+ `,
90
+ isInline: true,
91
+ dependencies: [{
92
+ kind: "component",
93
+ type: NavigationBadgeCountComponent,
94
+ selector: "NavigationBadgeCount",
95
+ inputs: [
96
+ "badge",
97
+ "class",
98
+ "sources"
99
+ ]
100
+ }]
101
+ });
102
+ };
103
+ i0.ɵɵngDeclareClassMetadata({
104
+ minVersion: "12.0.0",
105
+ version: "22.2.4",
106
+ ngImport: i0,
107
+ type: NavigationItemBadgeComponent,
108
+ decorators: [{
109
+ type: Component,
110
+ args: [{
111
+ selector: "NavigationItemBadge",
112
+ imports: [NavigationBadgeCountComponent],
113
+ host: { class: "contents" },
114
+ template: `
115
+ @if (itemBadge()?.source || descendantSources().length) {
116
+ <NavigationBadgeCount
117
+ [badge]="source()"
118
+ [sources]="itemBadge()?.source ? null : descendantSources()"
119
+ [class]="countClasses()"
120
+ />
121
+ } @else if (!compact() && itemBadge()?.title; as title) {
122
+ <span data-navigation-badge-text="true" [class]="itemBadge()?.classes ?? staticClass()">{{
123
+ title
124
+ }}</span>
125
+ }
126
+ `
127
+ }]
128
+ }],
129
+ propDecorators: {
130
+ staticClass: [{
131
+ type: i0.Input,
132
+ args: [{
133
+ isSignal: true,
134
+ alias: "staticClass",
135
+ required: false
136
+ }]
137
+ }],
138
+ compact: [{
139
+ type: i0.Input,
140
+ args: [{
141
+ isSignal: true,
142
+ alias: "compact",
143
+ required: false
144
+ }]
145
+ }],
146
+ itemBadge: [{
147
+ type: i0.Input,
148
+ args: [{
149
+ isSignal: true,
150
+ alias: "itemBadge",
151
+ required: false
152
+ }]
153
+ }],
154
+ badgeContext: [{
155
+ type: i0.Input,
156
+ args: [{
157
+ isSignal: true,
158
+ alias: "badgeContext",
159
+ required: false
160
+ }]
161
+ }],
162
+ children: [{
163
+ type: i0.Input,
164
+ args: [{
165
+ isSignal: true,
166
+ alias: "children",
167
+ required: false
168
+ }]
169
+ }]
170
+ }
171
+ });
172
+ var NavigationItemContentComponent = class NavigationItemContentComponent {
173
+ hasCountBadge = hasNavigationCountBadge;
174
+ nav = inject(NAVIGATION_ADAPTER);
175
+ badgeContext = input({}, ...ngDevMode ? [{ debugName: "badgeContext" }] : /* istanbul ignore next */ []);
176
+ item = input.required(...ngDevMode ? [{ debugName: "item" }] : /* istanbul ignore next */ []);
177
+ active = input(false, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
178
+ compact = input(false, ...ngDevMode ? [{ debugName: "compact" }] : /* istanbul ignore next */ []);
179
+ orientation = input("vertical", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
180
+ level = input(0, ...ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []);
181
+ iconTemplate = input(void 0, ...ngDevMode ? [{ debugName: "iconTemplate" }] : /* istanbul ignore next */ []);
182
+ hasIconSlot = computed(() => !!this.item().icon || hasNavigationCountBadge(this.item()), ...ngDevMode ? [{ debugName: "hasIconSlot" }] : /* istanbul ignore next */ []);
183
+ iconSlotClasses = computed(() => cn("relative z-10 inline-flex shrink-0 items-center justify-center transition-colors duration-normal", this.compact() && "mx-auto", this.active() ? "text-current" : "text-muted-foreground group-hover/nav:text-current"), ...ngDevMode ? [{ debugName: "iconSlotClasses" }] : /* istanbul ignore next */ []);
184
+ titleClasses = computed(() => cn("block truncate", this.active() && "text-foreground", this.item().classes?.title), ...ngDevMode ? [{ debugName: "titleClasses" }] : /* istanbul ignore next */ []);
185
+ showSubtitle = computed(() => !!this.item().subtitle && !(this.orientation() === "horizontal" && this.level() === 0), ...ngDevMode ? [{ debugName: "showSubtitle" }] : /* istanbul ignore next */ []);
186
+ subtitleClasses = computed(() => cn("nav-subtitle block truncate text-muted-foreground", this.item().classes?.subtitle), ...ngDevMode ? [{ debugName: "subtitleClasses" }] : /* istanbul ignore next */ []);
187
+ compactFallbackClasses = computed(() => cn("inline-flex h-5 min-w-5 items-center justify-center text-(length:--nav-icon-size-sub) font-semibold uppercase"), ...ngDevMode ? [{ debugName: "compactFallbackClasses" }] : /* istanbul ignore next */ []);
188
+ defaultBadgeClasses = computed(() => cn("nav-badge ml-auto inline-flex h-5 shrink-0 items-center rounded-full px-2", this.active() ? "bg-background text-foreground" : "bg-muted text-muted-foreground"), ...ngDevMode ? [{ debugName: "defaultBadgeClasses" }] : /* istanbul ignore next */ []);
189
+ defaultIconClasses = computed(() => cn(this.compact() ? "text-(length:--nav-icon-size-rail)" : "text-(length:--nav-icon-size)", "text-current", this.item().classes?.icon), ...ngDevMode ? [{ debugName: "defaultIconClasses" }] : /* istanbul ignore next */ []);
190
+ iconContext = computed(() => this.nav.iconContext(this.item(), this.active(), this.level(), this.orientation()), ...ngDevMode ? [{ debugName: "iconContext" }] : /* istanbul ignore next */ []);
191
+ compactFallback() {
192
+ return this.nav.compactFallback(this.item());
193
+ }
194
+ static ɵfac = i0.ɵɵngDeclareFactory({
195
+ minVersion: "12.0.0",
196
+ version: "22.2.4",
197
+ ngImport: i0,
198
+ type: NavigationItemContentComponent,
199
+ deps: [],
200
+ target: i0.ɵɵFactoryTarget.Component
201
+ });
202
+ static ɵcmp = i0.ɵɵngDeclareComponent({
203
+ minVersion: "17.0.0",
204
+ version: "22.2.4",
205
+ type: NavigationItemContentComponent,
206
+ isStandalone: true,
207
+ selector: "NavigationItemContent",
208
+ inputs: {
209
+ badgeContext: {
210
+ classPropertyName: "badgeContext",
211
+ publicName: "badgeContext",
212
+ isSignal: true,
213
+ isRequired: false,
214
+ transformFunction: null
215
+ },
216
+ item: {
217
+ classPropertyName: "item",
218
+ publicName: "item",
219
+ isSignal: true,
220
+ isRequired: true,
221
+ transformFunction: null
222
+ },
223
+ active: {
224
+ classPropertyName: "active",
225
+ publicName: "active",
226
+ isSignal: true,
227
+ isRequired: false,
228
+ transformFunction: null
229
+ },
230
+ compact: {
231
+ classPropertyName: "compact",
232
+ publicName: "compact",
233
+ isSignal: true,
234
+ isRequired: false,
235
+ transformFunction: null
236
+ },
237
+ orientation: {
238
+ classPropertyName: "orientation",
239
+ publicName: "orientation",
240
+ isSignal: true,
241
+ isRequired: false,
242
+ transformFunction: null
243
+ },
244
+ level: {
245
+ classPropertyName: "level",
246
+ publicName: "level",
247
+ isSignal: true,
248
+ isRequired: false,
249
+ transformFunction: null
250
+ },
251
+ iconTemplate: {
252
+ classPropertyName: "iconTemplate",
253
+ publicName: "iconTemplate",
254
+ isSignal: true,
255
+ isRequired: false,
256
+ transformFunction: null
257
+ }
258
+ },
259
+ host: { classAttribute: "contents" },
260
+ ngImport: i0,
261
+ template: `
262
+ <!-- Keep the badge view alive when compact/preview changes. Non-replaying streams
263
+ must not lose their last emission or restart subscriptions just to move a badge. -->
264
+ <span
265
+ [attr.data-navigation-icon-slot]="compact() && hasIconSlot() ? 'true' : null"
266
+ [class]="compact() && hasIconSlot() ? iconSlotClasses() : 'contents'"
267
+ >
268
+ @if (compact() && hasCountBadge(item())) {
269
+ <span class="sr-only">{{ item().tooltip ?? item().title }}</span>
270
+ }
271
+ @if (item().icon; as iconName) {
272
+ <span
273
+ [attr.data-navigation-icon-slot]="compact() ? null : 'true'"
274
+ [class]="compact() ? 'contents' : iconSlotClasses()"
275
+ >
276
+ @if (iconTemplate(); as customIcon) {
277
+ <ng-container
278
+ [ngTemplateOutlet]="customIcon.template"
279
+ [ngTemplateOutletContext]="iconContext()"
280
+ />
281
+ } @else {
282
+ <Icon [name]="iconName" [class]="defaultIconClasses()" size="inherit" />
283
+ }
284
+ </span>
285
+ }
286
+ @if (!compact()) {
287
+ <span class="min-w-0 flex-1">
288
+ <span [class]="titleClasses()">{{ item().title }}</span>
289
+ @if (showSubtitle()) {
290
+ <span [class]="subtitleClasses()">{{ item().subtitle }}</span>
291
+ }
292
+ </span>
293
+ } @else if (!item().icon) {
294
+ <span aria-hidden="true" [class]="compactFallbackClasses()">{{ compactFallback() }}</span>
295
+ }
296
+ <NavigationItemBadge
297
+ [children]="item().children"
298
+ [itemBadge]="item().badge"
299
+ [badgeContext]="badgeContext()"
300
+ [compact]="compact()"
301
+ [staticClass]="defaultBadgeClasses()"
302
+ />
303
+ </span>
304
+ `,
305
+ isInline: true,
306
+ dependencies: [
307
+ {
308
+ kind: "directive",
309
+ type: NgTemplateOutlet,
310
+ selector: "[ngTemplateOutlet]",
311
+ inputs: [
312
+ "ngTemplateOutletContext",
313
+ "ngTemplateOutlet",
314
+ "ngTemplateOutletInjector"
315
+ ]
316
+ },
317
+ {
318
+ kind: "component",
319
+ type: IconComponent,
320
+ selector: "Icon",
321
+ inputs: [
322
+ "name",
323
+ "class",
324
+ "size",
325
+ "strokeWidth",
326
+ "label"
327
+ ]
328
+ },
329
+ {
330
+ kind: "component",
331
+ type: NavigationItemBadgeComponent,
332
+ selector: "NavigationItemBadge",
333
+ inputs: [
334
+ "staticClass",
335
+ "compact",
336
+ "itemBadge",
337
+ "badgeContext",
338
+ "children"
339
+ ]
340
+ }
341
+ ]
342
+ });
343
+ };
344
+ i0.ɵɵngDeclareClassMetadata({
345
+ minVersion: "12.0.0",
346
+ version: "22.2.4",
347
+ ngImport: i0,
348
+ type: NavigationItemContentComponent,
349
+ decorators: [{
350
+ type: Component,
351
+ args: [{
352
+ selector: "NavigationItemContent",
353
+ imports: [
354
+ NgTemplateOutlet,
355
+ IconComponent,
356
+ NavigationItemBadgeComponent
357
+ ],
358
+ host: { class: "contents" },
359
+ template: `
360
+ <!-- Keep the badge view alive when compact/preview changes. Non-replaying streams
361
+ must not lose their last emission or restart subscriptions just to move a badge. -->
362
+ <span
363
+ [attr.data-navigation-icon-slot]="compact() && hasIconSlot() ? 'true' : null"
364
+ [class]="compact() && hasIconSlot() ? iconSlotClasses() : 'contents'"
365
+ >
366
+ @if (compact() && hasCountBadge(item())) {
367
+ <span class="sr-only">{{ item().tooltip ?? item().title }}</span>
368
+ }
369
+ @if (item().icon; as iconName) {
370
+ <span
371
+ [attr.data-navigation-icon-slot]="compact() ? null : 'true'"
372
+ [class]="compact() ? 'contents' : iconSlotClasses()"
373
+ >
374
+ @if (iconTemplate(); as customIcon) {
375
+ <ng-container
376
+ [ngTemplateOutlet]="customIcon.template"
377
+ [ngTemplateOutletContext]="iconContext()"
378
+ />
379
+ } @else {
380
+ <Icon [name]="iconName" [class]="defaultIconClasses()" size="inherit" />
381
+ }
382
+ </span>
383
+ }
384
+ @if (!compact()) {
385
+ <span class="min-w-0 flex-1">
386
+ <span [class]="titleClasses()">{{ item().title }}</span>
387
+ @if (showSubtitle()) {
388
+ <span [class]="subtitleClasses()">{{ item().subtitle }}</span>
389
+ }
390
+ </span>
391
+ } @else if (!item().icon) {
392
+ <span aria-hidden="true" [class]="compactFallbackClasses()">{{ compactFallback() }}</span>
393
+ }
394
+ <NavigationItemBadge
395
+ [children]="item().children"
396
+ [itemBadge]="item().badge"
397
+ [badgeContext]="badgeContext()"
398
+ [compact]="compact()"
399
+ [staticClass]="defaultBadgeClasses()"
400
+ />
401
+ </span>
402
+ `
403
+ }]
404
+ }],
405
+ propDecorators: {
406
+ badgeContext: [{
407
+ type: i0.Input,
408
+ args: [{
409
+ isSignal: true,
410
+ alias: "badgeContext",
411
+ required: false
412
+ }]
413
+ }],
414
+ item: [{
415
+ type: i0.Input,
416
+ args: [{
417
+ isSignal: true,
418
+ alias: "item",
419
+ required: true
420
+ }]
421
+ }],
422
+ active: [{
423
+ type: i0.Input,
424
+ args: [{
425
+ isSignal: true,
426
+ alias: "active",
427
+ required: false
428
+ }]
429
+ }],
430
+ compact: [{
431
+ type: i0.Input,
432
+ args: [{
433
+ isSignal: true,
434
+ alias: "compact",
435
+ required: false
436
+ }]
437
+ }],
438
+ orientation: [{
439
+ type: i0.Input,
440
+ args: [{
441
+ isSignal: true,
442
+ alias: "orientation",
443
+ required: false
444
+ }]
445
+ }],
446
+ level: [{
447
+ type: i0.Input,
448
+ args: [{
449
+ isSignal: true,
450
+ alias: "level",
451
+ required: false
452
+ }]
453
+ }],
454
+ iconTemplate: [{
455
+ type: i0.Input,
456
+ args: [{
457
+ isSignal: true,
458
+ alias: "iconTemplate",
459
+ required: false
460
+ }]
461
+ }]
462
+ }
463
+ });
464
+ function navigationPanelId(navId, item) {
465
+ return `${safeNavId(navId)}-${item.panelId}`;
466
+ }
467
+ function navigationHeadingId(navId, item) {
468
+ return `${navigationPanelId(navId, item)}-heading`;
469
+ }
470
+ function safeNavId(value) {
471
+ return value.trim().toLowerCase().replace(/[^a-z0-9_-]+/g, "-") || "default";
472
+ }
473
+ var NavigationItemComponent = class NavigationItemComponent {
474
+ hasCountBadge = hasNavigationCountBadge;
475
+ nav = inject(NAVIGATION_ADAPTER);
476
+ shell = inject(NAVIGATION_SHELL, { optional: true });
477
+ routeContext = inject(NAVIGATION_ROUTE_CONTEXT_ADAPTER);
478
+ router = inject(Router, { optional: true });
479
+ activatedRoute = inject(ActivatedRoute, { optional: true });
480
+ badgeContext = input({}, ...ngDevMode ? [{ debugName: "badgeContext" }] : /* istanbul ignore next */ []);
481
+ navId = input("default", ...ngDevMode ? [{ debugName: "navId" }] : /* istanbul ignore next */ []);
482
+ item = input.required(...ngDevMode ? [{ debugName: "item" }] : /* istanbul ignore next */ []);
483
+ level = input(0, ...ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []);
484
+ orientation = input("vertical", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
485
+ compact = input(false, ...ngDevMode ? [{ debugName: "compact" }] : /* istanbul ignore next */ []);
486
+ itemClass = input("", ...ngDevMode ? [{ debugName: "itemClass" }] : /* istanbul ignore next */ []);
487
+ activeIds = input(/* @__PURE__ */ new Set(), ...ngDevMode ? [{ debugName: "activeIds" }] : /* istanbul ignore next */ []);
488
+ activeUrl = input(null, ...ngDevMode ? [{ debugName: "activeUrl" }] : /* istanbul ignore next */ []);
489
+ iconTemplate = input(void 0, ...ngDevMode ? [{ debugName: "iconTemplate" }] : /* istanbul ignore next */ []);
490
+ tooltipPosition = input("above", {
491
+ ...ngDevMode ? { debugName: "tooltipPosition" } : /* istanbul ignore next */ {},
492
+ alias: "tooltip-position"
493
+ });
494
+ collapseTree = input("stairs", ...ngDevMode ? [{ debugName: "collapseTree" }] : /* istanbul ignore next */ []);
495
+ straightRail = input(false, ...ngDevMode ? [{ debugName: "straightRail" }] : /* istanbul ignore next */ []);
496
+ stairsRail = input(false, ...ngDevMode ? [{ debugName: "stairsRail" }] : /* istanbul ignore next */ []);
497
+ straightRailActive = input(false, ...ngDevMode ? [{ debugName: "straightRailActive" }] : /* istanbul ignore next */ []);
498
+ firstInBranch = input(false, ...ngDevMode ? [{ debugName: "firstInBranch" }] : /* istanbul ignore next */ []);
499
+ lastInBranch = input(false, ...ngDevMode ? [{ debugName: "lastInBranch" }] : /* istanbul ignore next */ []);
500
+ openedIds = input([], ...ngDevMode ? [{ debugName: "openedIds" }] : /* istanbul ignore next */ []);
501
+ openedIdsChange = output();
502
+ itemSelected = output();
503
+ showGroupBadge = computed(() => {
504
+ const badge = this.item().badge;
505
+ return this.shell?.displayState().type !== "sidebar" || !badge?.source && !!badge?.title;
506
+ }, ...ngDevMode ? [{ debugName: "showGroupBadge" }] : /* istanbul ignore next */ []);
507
+ openedIdSet = computed(() => new Set(this.openedIds()), ...ngDevMode ? [{ debugName: "openedIdSet" }] : /* istanbul ignore next */ []);
508
+ listedAsOpen = computed(() => this.openedIdSet().has(this.item().stateId) || this.openedIdSet().has(this.item().key), ...ngDevMode ? [{ debugName: "listedAsOpen" }] : /* istanbul ignore next */ []);
509
+ userToggled = signal(false, ...ngDevMode ? [{ debugName: "userToggled" }] : /* istanbul ignore next */ []);
510
+ isHorizontalRoot = computed(() => this.orientation() === "horizontal" && this.level() === 0, ...ngDevMode ? [{ debugName: "isHorizontalRoot" }] : /* istanbul ignore next */ []);
511
+ isActive = computed(() => this.nav.isItemActive(this.item(), this.activeIds(), this.activeUrl()), ...ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []);
512
+ isRouteActive = computed(() => {
513
+ const item = this.item();
514
+ if (item.disabled || !this.router?.lastSuccessfulNavigation()) return false;
515
+ return this.routeContext.isItemRouteActive(item, null, this.activatedRoute);
516
+ }, ...ngDevMode ? [{ debugName: "isRouteActive" }] : /* istanbul ignore next */ []);
517
+ isRouterItemActive = computed(() => this.isRouteActive() || this.isActive(), ...ngDevMode ? [{ debugName: "isRouterItemActive" }] : /* istanbul ignore next */ []);
518
+ showChildren = computed(() => !this.compact() && this.isOpen(), ...ngDevMode ? [{ debugName: "showChildren" }] : /* istanbul ignore next */ []);
519
+ hostClasses = computed(() => {
520
+ if (this.item().type === "divider") return this.dividerClasses();
521
+ if (this.item().type === "spacer") return "flex-1";
522
+ if (this.item().type === "group" || this.item().type === "mega") return this.groupContainerClasses();
523
+ return this.itemContainerClasses();
524
+ }, ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
525
+ hostRole = computed(() => {
526
+ return this.orientation() === "horizontal" ? "none" : null;
527
+ }, ...ngDevMode ? [{ debugName: "hostRole" }] : /* istanbul ignore next */ []);
528
+ panelId = computed(() => navigationPanelId(this.navId(), this.item()), ...ngDevMode ? [{ debugName: "panelId" }] : /* istanbul ignore next */ []);
529
+ headingId = computed(() => navigationHeadingId(this.navId(), this.item()), ...ngDevMode ? [{ debugName: "headingId" }] : /* istanbul ignore next */ []);
530
+ isRouterItem() {
531
+ return this.nav.isRouterItem(this.item());
532
+ }
533
+ hrefFor() {
534
+ return this.nav.hrefFor(this.item());
535
+ }
536
+ routerLinkFor() {
537
+ return this.item().disabled ? null : this.item().link ?? null;
538
+ }
539
+ hrefAttribute() {
540
+ return this.item().disabled ? null : this.hrefFor();
541
+ }
542
+ leafTabIndex() {
543
+ return this.item().disabled ? -1 : null;
544
+ }
545
+ relFor() {
546
+ return this.nav.relFor(this.item());
547
+ }
548
+ itemRole() {
549
+ return this.nav.itemRole(this.orientation(), this.level());
550
+ }
551
+ compactLabel() {
552
+ return this.nav.compactLabel(this.item(), this.compact());
553
+ }
554
+ titleFor() {
555
+ return this.nav.titleFor(this.item(), this.compact());
556
+ }
557
+ isOpen() {
558
+ if (this.userToggled()) return this.listedAsOpen();
559
+ return this.listedAsOpen() || this.isActive();
560
+ }
561
+ toggleOpen() {
562
+ if (this.item().disabled) return;
563
+ const open = this.isOpen();
564
+ this.userToggled.set(true);
565
+ const next = new Set(this.openedIds());
566
+ if (open) next.delete(this.item().stateId);
567
+ else next.add(this.item().stateId);
568
+ this.openedIdsChange.emit([...next]);
569
+ }
570
+ selectItem(event) {
571
+ if (this.item().disabled) {
572
+ event.preventDefault();
573
+ event.stopPropagation();
574
+ return;
575
+ }
576
+ this.item().action?.(this.item().source);
577
+ this.itemSelected.emit({
578
+ item: this.item().source,
579
+ key: this.item().key,
580
+ type: this.item().type,
581
+ link: this.item().link,
582
+ external: !!this.hrefFor()
583
+ });
584
+ this.nav.closePanel(this.navId());
585
+ this.nav.closeDrawer(this.navId());
586
+ }
587
+ leafClasses(active) {
588
+ return cn("NavigationItem nav-text group/nav inline-flex min-w-0 items-center rounded-md transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", this.orientation() === "horizontal" && this.level() === 0 ? "h-(--nav-item-height) px-(--nav-item-padding-x)" : "min-h-(--nav-item-height) w-full px-(--nav-item-padding-x) py-1 text-left", "gap-(--nav-item-gap)", this.compact() && "size-(--nav-rail-item-size) justify-center gap-0 px-0 py-0 text-center", this.interactiveStateClasses(active), this.item().disabled && "pointer-events-none opacity-50", this.item().classes?.wrapper, this.itemClass());
589
+ }
590
+ triggerClasses(active) {
591
+ return cn("nav-trigger nav-text group/nav inline-flex min-w-0 items-center rounded-md transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", this.orientation() === "horizontal" && this.level() === 0 ? "h-(--nav-item-height) px-(--nav-item-padding-x)" : "min-h-(--nav-item-height) w-full px-(--nav-item-padding-x) py-1 text-left", "gap-(--nav-item-gap)", this.compact() && "size-(--nav-rail-item-size) justify-center gap-0 px-0 py-0 text-center", this.interactiveStateClasses(active), this.item().classes?.wrapper, this.itemClass());
592
+ }
593
+ interactiveStateClasses(active) {
594
+ const showsNestedActiveConnector = active && this.orientation() === "vertical" && !this.compact() && this.stairsRail();
595
+ if (this.orientation() === "vertical" && !this.compact()) return cn("relative isolate", "before:pointer-events-none before:absolute before:inset-y-0 before:left-2 before:right-2 before:-z-10 before:rounded-md before:border before:border-transparent before:bg-transparent before:transition-colors before:duration-normal before:content-['']", showsNestedActiveConnector && "after:pointer-events-none after:absolute after:-left-[calc(var(--nav-indent)-var(--nav-rail-offset))] after:top-1/2 after:-z-10 after:h-px after:w-[calc(var(--nav-indent)-var(--nav-rail-offset)+var(--spacing-base)*2)] after:-translate-y-1/2 after:rounded-full after:bg-current/25 after:content-['']", active ? "text-foreground before:bg-accent" : "text-foreground/80 hover:text-accent-foreground hover:before:bg-accent");
596
+ return active ? "text-foreground bg-accent" : "text-foreground/80 hover:bg-accent hover:text-accent-foreground";
597
+ }
598
+ chevronClasses() {
599
+ return cn("ml-auto shrink-0 self-center text-(length:--nav-icon-size-sub) text-muted-foreground transition-transform duration-normal", this.isOpen() && "rotate-90");
600
+ }
601
+ itemContainerClasses() {
602
+ return cn(this.orientation() === "horizontal" && this.level() === 0 ? "relative" : "w-full", this.compact() && "flex justify-center", this.straightRailClasses());
603
+ }
604
+ groupContainerClasses() {
605
+ return cn("w-full", this.level() > 0 && "pt-2");
606
+ }
607
+ dividerClasses() {
608
+ return cn(this.orientation() === "horizontal" && this.level() === 0 ? "mx-1 h-5 w-px" : "my-2 w-full px-2");
609
+ }
610
+ groupHeadingClasses() {
611
+ return cn("nav-heading flex min-w-0 items-center gap-(--nav-item-gap) px-(--nav-item-padding-x) pt-4 pb-1 text-muted-foreground", this.item().classes?.title);
612
+ }
613
+ childListClasses() {
614
+ const isGroupedBranch = this.item().type === "group" || this.item().type === "mega";
615
+ const usesStairsTree = this.collapseTree() === "stairs";
616
+ return cn("flex list-none flex-col gap-0.5 p-0", !this.compact() && "mt-0.5", this.level() >= 0 && !this.compact() && !isGroupedBranch && usesStairsTree && cn("relative ml-(--nav-rail-offset) pl-[calc(var(--nav-indent)-var(--nav-rail-offset))] before:absolute before:-top-0.5 before:bottom-0 before:left-0 before:w-px before:-translate-x-1/2 before:rounded-full before:content-['']", this.isActive() ? "before:bg-current/25" : "before:bg-border"));
617
+ }
618
+ showsStairsRailForChildren() {
619
+ return !this.compact() && this.collapseTree() === "stairs" && this.item().type !== "group" && this.item().type !== "mega";
620
+ }
621
+ showStraightRailForChildren() {
622
+ return !this.compact() && this.collapseTree() === "straight" && this.item().type !== "group" && this.item().type !== "mega";
623
+ }
624
+ straightRailClasses() {
625
+ if (!this.straightRail() || this.orientation() !== "vertical" || this.compact()) return "";
626
+ return cn("relative", "before:pointer-events-none before:absolute before:left-(--nav-rail-offset) before:w-0 before:-z-10 before:border-l before:border-dotted before:content-['']", this.straightRailActive() ? "before:border-primary/50" : "before:border-border/50", this.firstInBranch() ? "before:-top-[calc(var(--nav-item-height)/2+var(--spacing-base)*0.5)]" : "before:-top-0.5", this.lastInBranch() ? "before:bottom-[calc(100%-var(--nav-item-height)/2)]" : "before:-bottom-0.5");
627
+ }
628
+ static ɵfac = i0.ɵɵngDeclareFactory({
629
+ minVersion: "12.0.0",
630
+ version: "22.2.4",
631
+ ngImport: i0,
632
+ type: NavigationItemComponent,
633
+ deps: [],
634
+ target: i0.ɵɵFactoryTarget.Component
635
+ });
636
+ static ɵcmp = i0.ɵɵngDeclareComponent({
637
+ minVersion: "17.0.0",
638
+ version: "22.2.4",
639
+ type: NavigationItemComponent,
640
+ isStandalone: true,
641
+ selector: "li[NavigationItem]",
642
+ inputs: {
643
+ badgeContext: {
644
+ classPropertyName: "badgeContext",
645
+ publicName: "badgeContext",
646
+ isSignal: true,
647
+ isRequired: false,
648
+ transformFunction: null
649
+ },
650
+ navId: {
651
+ classPropertyName: "navId",
652
+ publicName: "navId",
653
+ isSignal: true,
654
+ isRequired: false,
655
+ transformFunction: null
656
+ },
657
+ item: {
658
+ classPropertyName: "item",
659
+ publicName: "item",
660
+ isSignal: true,
661
+ isRequired: true,
662
+ transformFunction: null
663
+ },
664
+ level: {
665
+ classPropertyName: "level",
666
+ publicName: "level",
667
+ isSignal: true,
668
+ isRequired: false,
669
+ transformFunction: null
670
+ },
671
+ orientation: {
672
+ classPropertyName: "orientation",
673
+ publicName: "orientation",
674
+ isSignal: true,
675
+ isRequired: false,
676
+ transformFunction: null
677
+ },
678
+ compact: {
679
+ classPropertyName: "compact",
680
+ publicName: "compact",
681
+ isSignal: true,
682
+ isRequired: false,
683
+ transformFunction: null
684
+ },
685
+ itemClass: {
686
+ classPropertyName: "itemClass",
687
+ publicName: "itemClass",
688
+ isSignal: true,
689
+ isRequired: false,
690
+ transformFunction: null
691
+ },
692
+ activeIds: {
693
+ classPropertyName: "activeIds",
694
+ publicName: "activeIds",
695
+ isSignal: true,
696
+ isRequired: false,
697
+ transformFunction: null
698
+ },
699
+ activeUrl: {
700
+ classPropertyName: "activeUrl",
701
+ publicName: "activeUrl",
702
+ isSignal: true,
703
+ isRequired: false,
704
+ transformFunction: null
705
+ },
706
+ iconTemplate: {
707
+ classPropertyName: "iconTemplate",
708
+ publicName: "iconTemplate",
709
+ isSignal: true,
710
+ isRequired: false,
711
+ transformFunction: null
712
+ },
713
+ tooltipPosition: {
714
+ classPropertyName: "tooltipPosition",
715
+ publicName: "tooltip-position",
716
+ isSignal: true,
717
+ isRequired: false,
718
+ transformFunction: null
719
+ },
720
+ collapseTree: {
721
+ classPropertyName: "collapseTree",
722
+ publicName: "collapseTree",
723
+ isSignal: true,
724
+ isRequired: false,
725
+ transformFunction: null
726
+ },
727
+ straightRail: {
728
+ classPropertyName: "straightRail",
729
+ publicName: "straightRail",
730
+ isSignal: true,
731
+ isRequired: false,
732
+ transformFunction: null
733
+ },
734
+ stairsRail: {
735
+ classPropertyName: "stairsRail",
736
+ publicName: "stairsRail",
737
+ isSignal: true,
738
+ isRequired: false,
739
+ transformFunction: null
740
+ },
741
+ straightRailActive: {
742
+ classPropertyName: "straightRailActive",
743
+ publicName: "straightRailActive",
744
+ isSignal: true,
745
+ isRequired: false,
746
+ transformFunction: null
747
+ },
748
+ firstInBranch: {
749
+ classPropertyName: "firstInBranch",
750
+ publicName: "firstInBranch",
751
+ isSignal: true,
752
+ isRequired: false,
753
+ transformFunction: null
754
+ },
755
+ lastInBranch: {
756
+ classPropertyName: "lastInBranch",
757
+ publicName: "lastInBranch",
758
+ isSignal: true,
759
+ isRequired: false,
760
+ transformFunction: null
761
+ },
762
+ openedIds: {
763
+ classPropertyName: "openedIds",
764
+ publicName: "openedIds",
765
+ isSignal: true,
766
+ isRequired: false,
767
+ transformFunction: null
768
+ }
769
+ },
770
+ outputs: {
771
+ openedIdsChange: "openedIdsChange",
772
+ itemSelected: "itemSelected"
773
+ },
774
+ host: { properties: {
775
+ "class": "hostClasses()",
776
+ "attr.role": "hostRole()",
777
+ "attr.data-navigation-item-key": "item().key",
778
+ "attr.aria-hidden": "item().type === \"spacer\" || item().type === \"divider\" ? \"true\" : null"
779
+ } },
780
+ providers: [provideIcons(LucideChevronRight)],
781
+ ngImport: i0,
782
+ template: `
783
+ @switch (item().type) {
784
+ @case ('divider') {
785
+ <span class="block h-px w-full bg-border"></span>
786
+ }
787
+
788
+ @case ('spacer') {}
789
+
790
+ @case ('group') {
791
+ @if (!compact() && item().title) {
792
+ <div [id]="headingId()" [class]="groupHeadingClasses()">
793
+ <span class="min-w-0 flex-1">
794
+ <span class="block truncate">{{ item().title }}</span>
795
+
796
+ @if (item().subtitle) {
797
+ <span
798
+ class="nav-subtitle -mt-0.5 block truncate text-2xs normal-case text-muted-foreground"
799
+ data-navigation-group-subtitle
800
+ >
801
+ {{ item().subtitle }}
802
+ </span>
803
+ }
804
+ </span>
805
+ @if (showGroupBadge()) {
806
+ <NavigationItemBadge
807
+ [children]="item().children"
808
+ [itemBadge]="item().badge"
809
+ [badgeContext]="badgeContext()"
810
+ />
811
+ }
812
+ </div>
813
+ }
814
+
815
+ <ul
816
+ [class]="childListClasses()"
817
+ role="list"
818
+ [attr.aria-labelledby]="item().title ? headingId() : null"
819
+ >
820
+ <ng-container [ngTemplateOutlet]="childItems" />
821
+ </ul>
822
+ }
823
+
824
+ @case ('collapsible') {
825
+ <button
826
+ type="button"
827
+ [class]="triggerClasses(isActive())"
828
+ [attr.aria-expanded]="showChildren()"
829
+ [attr.aria-controls]="showChildren() ? panelId() : null"
830
+ [attr.aria-label]="hasCountBadge(item()) ? null : compactLabel()"
831
+ [attr.title]="titleFor()"
832
+ [Tooltip]="compact() ? (titleFor() ?? '') : ''"
833
+ [TooltipPosition]="tooltipPosition()"
834
+ [disabled]="item().disabled || null"
835
+ (click)="toggleOpen()"
836
+ >
837
+ <NavigationItemContent
838
+ [item]="item()"
839
+ [active]="isActive()"
840
+ [compact]="compact()"
841
+ [orientation]="orientation()"
842
+ [level]="level()"
843
+ [badgeContext]="badgeContext()"
844
+ [iconTemplate]="iconTemplate()"
845
+ />
846
+
847
+ @if (!compact()) {
848
+ <Icon name="chevron-right" size="inherit" [class]="chevronClasses()" />
849
+ }
850
+ </button>
851
+
852
+ @if (showChildren()) {
853
+ <ul [id]="panelId()" [class]="childListClasses()" role="list">
854
+ <ng-container [ngTemplateOutlet]="childItems" />
855
+ </ul>
856
+ }
857
+ }
858
+
859
+ @case ('mega') {
860
+ @if (!compact() && item().title) {
861
+ <div [id]="headingId()" [class]="groupHeadingClasses()">
862
+ <span class="min-w-0 flex-1 truncate">{{ item().title }}</span>
863
+ <NavigationItemBadge
864
+ [children]="item().children"
865
+ [itemBadge]="item().badge"
866
+ [badgeContext]="badgeContext()"
867
+ />
868
+ </div>
869
+ }
870
+
871
+ <ul
872
+ [class]="childListClasses()"
873
+ role="list"
874
+ [attr.aria-labelledby]="item().title ? headingId() : null"
875
+ >
876
+ <ng-container [ngTemplateOutlet]="childItems" />
877
+ </ul>
878
+ }
879
+
880
+ @default {
881
+ @if (isRouterItem()) {
882
+ <a
883
+ [class]="leafClasses(isRouterItemActive())"
884
+ [routerLink]="routerLinkFor()"
885
+ [queryParams]="item().queryParams ?? null"
886
+ [queryParamsHandling]="item().queryParamsHandling ?? null"
887
+ [fragment]="item().fragment ?? undefined"
888
+ [preserveFragment]="item().preserveFragment ?? false"
889
+ [target]="item().target ?? undefined"
890
+ [attr.rel]="relFor()"
891
+ [attr.aria-current]="isRouterItemActive() ? 'page' : null"
892
+ [attr.aria-disabled]="item().disabled || null"
893
+ [attr.tabindex]="leafTabIndex()"
894
+ [attr.aria-label]="hasCountBadge(item()) ? null : compactLabel()"
895
+ [attr.title]="titleFor()"
896
+ [Tooltip]="compact() ? (titleFor() ?? '') : ''"
897
+ [TooltipPosition]="tooltipPosition()"
898
+ [attr.role]="itemRole()"
899
+ [attr.data-navigation-root-item]="isHorizontalRoot() ? 'true' : null"
900
+ (click)="selectItem($event)"
901
+ >
902
+ <NavigationItemContent
903
+ [item]="item()"
904
+ [active]="isRouterItemActive()"
905
+ [compact]="compact()"
906
+ [orientation]="orientation()"
907
+ [level]="level()"
908
+ [badgeContext]="badgeContext()"
909
+ [iconTemplate]="iconTemplate()"
910
+ />
911
+ </a>
912
+ } @else if (hrefFor()) {
913
+ <a
914
+ [class]="leafClasses(isActive())"
915
+ [attr.href]="hrefAttribute()"
916
+ [attr.target]="item().target ?? (item().externalLink ? '_blank' : null)"
917
+ [attr.rel]="relFor()"
918
+ [attr.aria-current]="isActive() ? 'page' : null"
919
+ [attr.aria-disabled]="item().disabled || null"
920
+ [attr.tabindex]="leafTabIndex()"
921
+ [attr.aria-label]="hasCountBadge(item()) ? null : compactLabel()"
922
+ [attr.title]="titleFor()"
923
+ [Tooltip]="compact() ? (titleFor() ?? '') : ''"
924
+ [TooltipPosition]="tooltipPosition()"
925
+ [attr.role]="itemRole()"
926
+ [attr.data-navigation-root-item]="isHorizontalRoot() ? 'true' : null"
927
+ (click)="selectItem($event)"
928
+ >
929
+ <NavigationItemContent
930
+ [item]="item()"
931
+ [active]="isActive()"
932
+ [compact]="compact()"
933
+ [orientation]="orientation()"
934
+ [level]="level()"
935
+ [badgeContext]="badgeContext()"
936
+ [iconTemplate]="iconTemplate()"
937
+ />
938
+ </a>
939
+ } @else {
940
+ <button
941
+ type="button"
942
+ [class]="leafClasses(isActive())"
943
+ [disabled]="item().disabled || null"
944
+ [attr.aria-current]="isActive() ? 'page' : null"
945
+ [attr.aria-label]="hasCountBadge(item()) ? null : compactLabel()"
946
+ [attr.title]="titleFor()"
947
+ [Tooltip]="compact() ? (titleFor() ?? '') : ''"
948
+ [TooltipPosition]="tooltipPosition()"
949
+ [attr.role]="itemRole()"
950
+ [attr.data-navigation-root-item]="isHorizontalRoot() ? 'true' : null"
951
+ (click)="selectItem($event)"
952
+ >
953
+ <NavigationItemContent
954
+ [item]="item()"
955
+ [active]="isActive()"
956
+ [compact]="compact()"
957
+ [orientation]="orientation()"
958
+ [level]="level()"
959
+ [badgeContext]="badgeContext()"
960
+ [iconTemplate]="iconTemplate()"
961
+ />
962
+ </button>
963
+ }
964
+ }
965
+ }
966
+ <!--
967
+ The recursive child list, defined once.
968
+
969
+ It was written out three times, in the group, collapsible, and mega
970
+ branches, 25 identical lines each. Nothing needs passing in: every binding
971
+ is a member of this component and so is lexically in scope here, and
972
+ isFirst / isLast are @for locals declared inside.
973
+
974
+ The collapsible copy used to hardcode compact="false". That is the same
975
+ value there: its list only renders under showChildren(), which already
976
+ requires compact() to be false.
977
+ -->
978
+ <ng-template #childItems>
979
+ @for (child of item().children; track child.key; let isFirst = $first; let isLast = $last) {
980
+ <li
981
+ NavigationItem
982
+ [navId]="navId()"
983
+ [item]="child"
984
+ [level]="level() + 1"
985
+ [orientation]="orientation()"
986
+ [compact]="compact()"
987
+ [itemClass]="itemClass()"
988
+ [activeIds]="activeIds()"
989
+ [activeUrl]="activeUrl()"
990
+ [badgeContext]="badgeContext()"
991
+ [iconTemplate]="iconTemplate()"
992
+ [tooltip-position]="tooltipPosition()"
993
+ [collapseTree]="collapseTree()"
994
+ [straightRail]="showStraightRailForChildren()"
995
+ [stairsRail]="showsStairsRailForChildren()"
996
+ [straightRailActive]="isActive()"
997
+ [firstInBranch]="isFirst"
998
+ [lastInBranch]="isLast"
999
+ [openedIds]="openedIds()"
1000
+ (openedIdsChange)="openedIdsChange.emit($event)"
1001
+ (itemSelected)="itemSelected.emit($event)"
1002
+ ></li>
1003
+ }
1004
+ </ng-template>
1005
+ `,
1006
+ isInline: true,
1007
+ dependencies: [
1008
+ {
1009
+ kind: "component",
1010
+ type: NavigationItemComponent,
1011
+ selector: "li[NavigationItem]",
1012
+ inputs: [
1013
+ "badgeContext",
1014
+ "navId",
1015
+ "item",
1016
+ "level",
1017
+ "orientation",
1018
+ "compact",
1019
+ "itemClass",
1020
+ "activeIds",
1021
+ "activeUrl",
1022
+ "iconTemplate",
1023
+ "tooltip-position",
1024
+ "collapseTree",
1025
+ "straightRail",
1026
+ "stairsRail",
1027
+ "straightRailActive",
1028
+ "firstInBranch",
1029
+ "lastInBranch",
1030
+ "openedIds"
1031
+ ],
1032
+ outputs: ["openedIdsChange", "itemSelected"]
1033
+ },
1034
+ {
1035
+ kind: "component",
1036
+ type: IconComponent,
1037
+ selector: "Icon",
1038
+ inputs: [
1039
+ "name",
1040
+ "class",
1041
+ "size",
1042
+ "strokeWidth",
1043
+ "label"
1044
+ ]
1045
+ },
1046
+ {
1047
+ kind: "component",
1048
+ type: NavigationItemContentComponent,
1049
+ selector: "NavigationItemContent",
1050
+ inputs: [
1051
+ "badgeContext",
1052
+ "item",
1053
+ "active",
1054
+ "compact",
1055
+ "orientation",
1056
+ "level",
1057
+ "iconTemplate"
1058
+ ]
1059
+ },
1060
+ {
1061
+ kind: "component",
1062
+ type: NavigationItemBadgeComponent,
1063
+ selector: "NavigationItemBadge",
1064
+ inputs: [
1065
+ "staticClass",
1066
+ "compact",
1067
+ "itemBadge",
1068
+ "badgeContext",
1069
+ "children"
1070
+ ]
1071
+ },
1072
+ {
1073
+ kind: "directive",
1074
+ type: NgTemplateOutlet,
1075
+ selector: "[ngTemplateOutlet]",
1076
+ inputs: [
1077
+ "ngTemplateOutletContext",
1078
+ "ngTemplateOutlet",
1079
+ "ngTemplateOutletInjector"
1080
+ ]
1081
+ },
1082
+ {
1083
+ kind: "directive",
1084
+ type: RouterLink,
1085
+ selector: "[routerLink]",
1086
+ inputs: [
1087
+ "target",
1088
+ "queryParams",
1089
+ "fragment",
1090
+ "queryParamsHandling",
1091
+ "state",
1092
+ "info",
1093
+ "relativeTo",
1094
+ "preserveFragment",
1095
+ "skipLocationChange",
1096
+ "replaceUrl",
1097
+ "browserUrl",
1098
+ "routerLink"
1099
+ ]
1100
+ },
1101
+ {
1102
+ kind: "directive",
1103
+ type: TooltipDirective,
1104
+ selector: "[Tooltip]",
1105
+ inputs: [
1106
+ "Tooltip",
1107
+ "TooltipPosition",
1108
+ "TooltipDisabled",
1109
+ "TooltipShowDelay",
1110
+ "TooltipHideDelay"
1111
+ ],
1112
+ exportAs: ["Tooltip"]
1113
+ }
1114
+ ]
1115
+ });
1116
+ };
1117
+ i0.ɵɵngDeclareClassMetadata({
1118
+ minVersion: "12.0.0",
1119
+ version: "22.2.4",
1120
+ ngImport: i0,
1121
+ type: NavigationItemComponent,
1122
+ decorators: [{
1123
+ type: Component,
1124
+ args: [{
1125
+ selector: "li[NavigationItem]",
1126
+ imports: [
1127
+ IconComponent,
1128
+ NavigationItemContentComponent,
1129
+ NavigationItemBadgeComponent,
1130
+ NgTemplateOutlet,
1131
+ RouterLink,
1132
+ TooltipDirective
1133
+ ],
1134
+ providers: [provideIcons(LucideChevronRight)],
1135
+ host: {
1136
+ "[class]": "hostClasses()",
1137
+ "[attr.role]": "hostRole()",
1138
+ "[attr.data-navigation-item-key]": "item().key",
1139
+ "[attr.aria-hidden]": "item().type === \"spacer\" || item().type === \"divider\" ? \"true\" : null"
1140
+ },
1141
+ template: `
1142
+ @switch (item().type) {
1143
+ @case ('divider') {
1144
+ <span class="block h-px w-full bg-border"></span>
1145
+ }
1146
+
1147
+ @case ('spacer') {}
1148
+
1149
+ @case ('group') {
1150
+ @if (!compact() && item().title) {
1151
+ <div [id]="headingId()" [class]="groupHeadingClasses()">
1152
+ <span class="min-w-0 flex-1">
1153
+ <span class="block truncate">{{ item().title }}</span>
1154
+
1155
+ @if (item().subtitle) {
1156
+ <span
1157
+ class="nav-subtitle -mt-0.5 block truncate text-2xs normal-case text-muted-foreground"
1158
+ data-navigation-group-subtitle
1159
+ >
1160
+ {{ item().subtitle }}
1161
+ </span>
1162
+ }
1163
+ </span>
1164
+ @if (showGroupBadge()) {
1165
+ <NavigationItemBadge
1166
+ [children]="item().children"
1167
+ [itemBadge]="item().badge"
1168
+ [badgeContext]="badgeContext()"
1169
+ />
1170
+ }
1171
+ </div>
1172
+ }
1173
+
1174
+ <ul
1175
+ [class]="childListClasses()"
1176
+ role="list"
1177
+ [attr.aria-labelledby]="item().title ? headingId() : null"
1178
+ >
1179
+ <ng-container [ngTemplateOutlet]="childItems" />
1180
+ </ul>
1181
+ }
1182
+
1183
+ @case ('collapsible') {
1184
+ <button
1185
+ type="button"
1186
+ [class]="triggerClasses(isActive())"
1187
+ [attr.aria-expanded]="showChildren()"
1188
+ [attr.aria-controls]="showChildren() ? panelId() : null"
1189
+ [attr.aria-label]="hasCountBadge(item()) ? null : compactLabel()"
1190
+ [attr.title]="titleFor()"
1191
+ [Tooltip]="compact() ? (titleFor() ?? '') : ''"
1192
+ [TooltipPosition]="tooltipPosition()"
1193
+ [disabled]="item().disabled || null"
1194
+ (click)="toggleOpen()"
1195
+ >
1196
+ <NavigationItemContent
1197
+ [item]="item()"
1198
+ [active]="isActive()"
1199
+ [compact]="compact()"
1200
+ [orientation]="orientation()"
1201
+ [level]="level()"
1202
+ [badgeContext]="badgeContext()"
1203
+ [iconTemplate]="iconTemplate()"
1204
+ />
1205
+
1206
+ @if (!compact()) {
1207
+ <Icon name="chevron-right" size="inherit" [class]="chevronClasses()" />
1208
+ }
1209
+ </button>
1210
+
1211
+ @if (showChildren()) {
1212
+ <ul [id]="panelId()" [class]="childListClasses()" role="list">
1213
+ <ng-container [ngTemplateOutlet]="childItems" />
1214
+ </ul>
1215
+ }
1216
+ }
1217
+
1218
+ @case ('mega') {
1219
+ @if (!compact() && item().title) {
1220
+ <div [id]="headingId()" [class]="groupHeadingClasses()">
1221
+ <span class="min-w-0 flex-1 truncate">{{ item().title }}</span>
1222
+ <NavigationItemBadge
1223
+ [children]="item().children"
1224
+ [itemBadge]="item().badge"
1225
+ [badgeContext]="badgeContext()"
1226
+ />
1227
+ </div>
1228
+ }
1229
+
1230
+ <ul
1231
+ [class]="childListClasses()"
1232
+ role="list"
1233
+ [attr.aria-labelledby]="item().title ? headingId() : null"
1234
+ >
1235
+ <ng-container [ngTemplateOutlet]="childItems" />
1236
+ </ul>
1237
+ }
1238
+
1239
+ @default {
1240
+ @if (isRouterItem()) {
1241
+ <a
1242
+ [class]="leafClasses(isRouterItemActive())"
1243
+ [routerLink]="routerLinkFor()"
1244
+ [queryParams]="item().queryParams ?? null"
1245
+ [queryParamsHandling]="item().queryParamsHandling ?? null"
1246
+ [fragment]="item().fragment ?? undefined"
1247
+ [preserveFragment]="item().preserveFragment ?? false"
1248
+ [target]="item().target ?? undefined"
1249
+ [attr.rel]="relFor()"
1250
+ [attr.aria-current]="isRouterItemActive() ? 'page' : null"
1251
+ [attr.aria-disabled]="item().disabled || null"
1252
+ [attr.tabindex]="leafTabIndex()"
1253
+ [attr.aria-label]="hasCountBadge(item()) ? null : compactLabel()"
1254
+ [attr.title]="titleFor()"
1255
+ [Tooltip]="compact() ? (titleFor() ?? '') : ''"
1256
+ [TooltipPosition]="tooltipPosition()"
1257
+ [attr.role]="itemRole()"
1258
+ [attr.data-navigation-root-item]="isHorizontalRoot() ? 'true' : null"
1259
+ (click)="selectItem($event)"
1260
+ >
1261
+ <NavigationItemContent
1262
+ [item]="item()"
1263
+ [active]="isRouterItemActive()"
1264
+ [compact]="compact()"
1265
+ [orientation]="orientation()"
1266
+ [level]="level()"
1267
+ [badgeContext]="badgeContext()"
1268
+ [iconTemplate]="iconTemplate()"
1269
+ />
1270
+ </a>
1271
+ } @else if (hrefFor()) {
1272
+ <a
1273
+ [class]="leafClasses(isActive())"
1274
+ [attr.href]="hrefAttribute()"
1275
+ [attr.target]="item().target ?? (item().externalLink ? '_blank' : null)"
1276
+ [attr.rel]="relFor()"
1277
+ [attr.aria-current]="isActive() ? 'page' : null"
1278
+ [attr.aria-disabled]="item().disabled || null"
1279
+ [attr.tabindex]="leafTabIndex()"
1280
+ [attr.aria-label]="hasCountBadge(item()) ? null : compactLabel()"
1281
+ [attr.title]="titleFor()"
1282
+ [Tooltip]="compact() ? (titleFor() ?? '') : ''"
1283
+ [TooltipPosition]="tooltipPosition()"
1284
+ [attr.role]="itemRole()"
1285
+ [attr.data-navigation-root-item]="isHorizontalRoot() ? 'true' : null"
1286
+ (click)="selectItem($event)"
1287
+ >
1288
+ <NavigationItemContent
1289
+ [item]="item()"
1290
+ [active]="isActive()"
1291
+ [compact]="compact()"
1292
+ [orientation]="orientation()"
1293
+ [level]="level()"
1294
+ [badgeContext]="badgeContext()"
1295
+ [iconTemplate]="iconTemplate()"
1296
+ />
1297
+ </a>
1298
+ } @else {
1299
+ <button
1300
+ type="button"
1301
+ [class]="leafClasses(isActive())"
1302
+ [disabled]="item().disabled || null"
1303
+ [attr.aria-current]="isActive() ? 'page' : null"
1304
+ [attr.aria-label]="hasCountBadge(item()) ? null : compactLabel()"
1305
+ [attr.title]="titleFor()"
1306
+ [Tooltip]="compact() ? (titleFor() ?? '') : ''"
1307
+ [TooltipPosition]="tooltipPosition()"
1308
+ [attr.role]="itemRole()"
1309
+ [attr.data-navigation-root-item]="isHorizontalRoot() ? 'true' : null"
1310
+ (click)="selectItem($event)"
1311
+ >
1312
+ <NavigationItemContent
1313
+ [item]="item()"
1314
+ [active]="isActive()"
1315
+ [compact]="compact()"
1316
+ [orientation]="orientation()"
1317
+ [level]="level()"
1318
+ [badgeContext]="badgeContext()"
1319
+ [iconTemplate]="iconTemplate()"
1320
+ />
1321
+ </button>
1322
+ }
1323
+ }
1324
+ }
1325
+ <!--
1326
+ The recursive child list, defined once.
1327
+
1328
+ It was written out three times, in the group, collapsible, and mega
1329
+ branches, 25 identical lines each. Nothing needs passing in: every binding
1330
+ is a member of this component and so is lexically in scope here, and
1331
+ isFirst / isLast are @for locals declared inside.
1332
+
1333
+ The collapsible copy used to hardcode compact="false". That is the same
1334
+ value there: its list only renders under showChildren(), which already
1335
+ requires compact() to be false.
1336
+ -->
1337
+ <ng-template #childItems>
1338
+ @for (child of item().children; track child.key; let isFirst = $first; let isLast = $last) {
1339
+ <li
1340
+ NavigationItem
1341
+ [navId]="navId()"
1342
+ [item]="child"
1343
+ [level]="level() + 1"
1344
+ [orientation]="orientation()"
1345
+ [compact]="compact()"
1346
+ [itemClass]="itemClass()"
1347
+ [activeIds]="activeIds()"
1348
+ [activeUrl]="activeUrl()"
1349
+ [badgeContext]="badgeContext()"
1350
+ [iconTemplate]="iconTemplate()"
1351
+ [tooltip-position]="tooltipPosition()"
1352
+ [collapseTree]="collapseTree()"
1353
+ [straightRail]="showStraightRailForChildren()"
1354
+ [stairsRail]="showsStairsRailForChildren()"
1355
+ [straightRailActive]="isActive()"
1356
+ [firstInBranch]="isFirst"
1357
+ [lastInBranch]="isLast"
1358
+ [openedIds]="openedIds()"
1359
+ (openedIdsChange)="openedIdsChange.emit($event)"
1360
+ (itemSelected)="itemSelected.emit($event)"
1361
+ ></li>
1362
+ }
1363
+ </ng-template>
1364
+ `
1365
+ }]
1366
+ }],
1367
+ propDecorators: {
1368
+ badgeContext: [{
1369
+ type: i0.Input,
1370
+ args: [{
1371
+ isSignal: true,
1372
+ alias: "badgeContext",
1373
+ required: false
1374
+ }]
1375
+ }],
1376
+ navId: [{
1377
+ type: i0.Input,
1378
+ args: [{
1379
+ isSignal: true,
1380
+ alias: "navId",
1381
+ required: false
1382
+ }]
1383
+ }],
1384
+ item: [{
1385
+ type: i0.Input,
1386
+ args: [{
1387
+ isSignal: true,
1388
+ alias: "item",
1389
+ required: true
1390
+ }]
1391
+ }],
1392
+ level: [{
1393
+ type: i0.Input,
1394
+ args: [{
1395
+ isSignal: true,
1396
+ alias: "level",
1397
+ required: false
1398
+ }]
1399
+ }],
1400
+ orientation: [{
1401
+ type: i0.Input,
1402
+ args: [{
1403
+ isSignal: true,
1404
+ alias: "orientation",
1405
+ required: false
1406
+ }]
1407
+ }],
1408
+ compact: [{
1409
+ type: i0.Input,
1410
+ args: [{
1411
+ isSignal: true,
1412
+ alias: "compact",
1413
+ required: false
1414
+ }]
1415
+ }],
1416
+ itemClass: [{
1417
+ type: i0.Input,
1418
+ args: [{
1419
+ isSignal: true,
1420
+ alias: "itemClass",
1421
+ required: false
1422
+ }]
1423
+ }],
1424
+ activeIds: [{
1425
+ type: i0.Input,
1426
+ args: [{
1427
+ isSignal: true,
1428
+ alias: "activeIds",
1429
+ required: false
1430
+ }]
1431
+ }],
1432
+ activeUrl: [{
1433
+ type: i0.Input,
1434
+ args: [{
1435
+ isSignal: true,
1436
+ alias: "activeUrl",
1437
+ required: false
1438
+ }]
1439
+ }],
1440
+ iconTemplate: [{
1441
+ type: i0.Input,
1442
+ args: [{
1443
+ isSignal: true,
1444
+ alias: "iconTemplate",
1445
+ required: false
1446
+ }]
1447
+ }],
1448
+ tooltipPosition: [{
1449
+ type: i0.Input,
1450
+ args: [{
1451
+ isSignal: true,
1452
+ alias: "tooltip-position",
1453
+ required: false
1454
+ }]
1455
+ }],
1456
+ collapseTree: [{
1457
+ type: i0.Input,
1458
+ args: [{
1459
+ isSignal: true,
1460
+ alias: "collapseTree",
1461
+ required: false
1462
+ }]
1463
+ }],
1464
+ straightRail: [{
1465
+ type: i0.Input,
1466
+ args: [{
1467
+ isSignal: true,
1468
+ alias: "straightRail",
1469
+ required: false
1470
+ }]
1471
+ }],
1472
+ stairsRail: [{
1473
+ type: i0.Input,
1474
+ args: [{
1475
+ isSignal: true,
1476
+ alias: "stairsRail",
1477
+ required: false
1478
+ }]
1479
+ }],
1480
+ straightRailActive: [{
1481
+ type: i0.Input,
1482
+ args: [{
1483
+ isSignal: true,
1484
+ alias: "straightRailActive",
1485
+ required: false
1486
+ }]
1487
+ }],
1488
+ firstInBranch: [{
1489
+ type: i0.Input,
1490
+ args: [{
1491
+ isSignal: true,
1492
+ alias: "firstInBranch",
1493
+ required: false
1494
+ }]
1495
+ }],
1496
+ lastInBranch: [{
1497
+ type: i0.Input,
1498
+ args: [{
1499
+ isSignal: true,
1500
+ alias: "lastInBranch",
1501
+ required: false
1502
+ }]
1503
+ }],
1504
+ openedIds: [{
1505
+ type: i0.Input,
1506
+ args: [{
1507
+ isSignal: true,
1508
+ alias: "openedIds",
1509
+ required: false
1510
+ }]
1511
+ }],
1512
+ openedIdsChange: [{
1513
+ type: i0.Output,
1514
+ args: ["openedIdsChange"]
1515
+ }],
1516
+ itemSelected: [{
1517
+ type: i0.Output,
1518
+ args: ["itemSelected"]
1519
+ }]
1520
+ }
1521
+ });
1522
+ export { NAVIGATION_SHELL as a, NavigationItemBadgeComponent as i, navigationPanelId as n, NavigationItemContentComponent as r, NavigationItemComponent as t };