@edsis/angular 22.1.3 → 22.2.8

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 (363) 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 +272 -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 +1282 -0
  69. package/fesm2022/edsis-angular-chart-line.mjs +544 -0
  70. package/fesm2022/edsis-angular-chart-pie.mjs +524 -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 +2 -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-BWWWaUgy.mjs +234 -0
  144. package/fesm2022/edsis-angular-navigation-navigation-dockbar-menu.component-Bx2bxTID.mjs +834 -0
  145. package/fesm2022/edsis-angular-navigation-navigation-entry-grid.component-Duzt1ffz.mjs +823 -0
  146. package/fesm2022/edsis-angular-navigation-navigation-flyout-menu.component-cJ8Q1vM6.mjs +670 -0
  147. package/fesm2022/edsis-angular-navigation-navigation-horizontal.component-CDQ1wt2_.mjs +689 -0
  148. package/fesm2022/edsis-angular-navigation-navigation-item.component-C1VzerJp.mjs +1522 -0
  149. package/fesm2022/edsis-angular-navigation-navigation-list.component-BPYLfrID.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 +1877 -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-page-core.mjs +315 -0
  160. package/fesm2022/edsis-angular-theme-page-filter.mjs +409 -0
  161. package/fesm2022/edsis-angular-theme-page-overview.mjs +88 -0
  162. package/fesm2022/edsis-angular-theme-page-root.mjs +693 -0
  163. package/fesm2022/edsis-angular-theme-page-side.mjs +342 -0
  164. package/fesm2022/edsis-angular-theme-page-slots.mjs +258 -0
  165. package/fesm2022/edsis-angular-theme-page.mjs +7 -0
  166. package/fesm2022/edsis-angular-theme-shell-services.mjs +231 -0
  167. package/fesm2022/edsis-angular-theme-shell-types.mjs +102 -0
  168. package/fesm2022/edsis-angular-theme-shell.mjs +1352 -0
  169. package/fesm2022/edsis-angular-theme-styles.mjs +572 -0
  170. package/fesm2022/edsis-angular-theme.mjs +0 -0
  171. package/fesm2022/edsis-angular.mjs +5 -8
  172. package/navigation/README.md +576 -0
  173. package/package.json +477 -52
  174. package/sdk/README.md +212 -0
  175. package/sdk/schematics/collection.json +20 -0
  176. package/sdk/schematics/init/index.js +83 -0
  177. package/sdk/schematics/init/schema.json +19 -0
  178. package/sdk/schematics/ng-add/index.js +147 -0
  179. package/sdk/schematics/ng-add/schema.json +14 -0
  180. package/sdk/schematics/package.json +3 -0
  181. package/sdk/schematics/sdk/index.js +175 -0
  182. package/sdk/schematics/sdk/schema.json +19 -0
  183. package/sdk/sdk.config.example.json +24 -0
  184. package/sdk/src/config/loader.js +43 -0
  185. package/sdk/src/config/schema.js +59 -0
  186. package/sdk/src/emit/client.js +251 -0
  187. package/sdk/src/emit/metadata.js +310 -0
  188. package/sdk/src/emit/models.js +104 -0
  189. package/sdk/src/emit/navigation.js +56 -0
  190. package/sdk/src/emit/operations.js +118 -0
  191. package/sdk/src/emit/public-api.js +54 -0
  192. package/sdk/src/emit/services.js +110 -0
  193. package/sdk/src/engine.js +67 -0
  194. package/sdk/src/layout/per-domain.js +360 -0
  195. package/sdk/src/package.json +3 -0
  196. package/sdk/src/parser/bundle.js +25 -0
  197. package/sdk/src/parser/ir.js +429 -0
  198. package/sdk/src/parser/types.js +7 -0
  199. package/sdk/src/render/template.js +152 -0
  200. package/sdk/src/writer/index.js +286 -0
  201. package/theme/README.md +120 -0
  202. package/theme/component/settings/README.md +154 -0
  203. package/theme/layout/README.md +604 -0
  204. package/theme/page/README.md +505 -0
  205. package/theme/shell/README.md +344 -0
  206. package/theme/styles/README.md +202 -0
  207. package/theme/styles/css/base/components.css +577 -0
  208. package/theme/styles/css/base/index.css +14 -0
  209. package/theme/styles/css/base/package.css +9 -0
  210. package/theme/styles/css/base/prefers-dark.css +86 -0
  211. package/theme/styles/css/base/print.css +62 -0
  212. package/theme/styles/css/base/status.css +38 -0
  213. package/theme/styles/css/base/tailwind.css +208 -0
  214. package/theme/styles/css/base/theme.css +353 -0
  215. package/theme/styles/css/base/tokens.css +388 -0
  216. package/theme/styles/css/color/amber.css +72 -0
  217. package/theme/styles/css/color/blue.css +72 -0
  218. package/theme/styles/css/color/brand.css +38 -0
  219. package/theme/styles/css/color/cyan.css +72 -0
  220. package/theme/styles/css/color/emerald.css +72 -0
  221. package/theme/styles/css/color/fuchsia.css +72 -0
  222. package/theme/styles/css/color/green.css +72 -0
  223. package/theme/styles/css/color/index.css +19 -0
  224. package/theme/styles/css/color/indigo.css +72 -0
  225. package/theme/styles/css/color/lime.css +72 -0
  226. package/theme/styles/css/color/orange.css +72 -0
  227. package/theme/styles/css/color/pink.css +72 -0
  228. package/theme/styles/css/color/purple.css +72 -0
  229. package/theme/styles/css/color/red.css +72 -0
  230. package/theme/styles/css/color/rose.css +72 -0
  231. package/theme/styles/css/color/sky.css +72 -0
  232. package/theme/styles/css/color/teal.css +72 -0
  233. package/theme/styles/css/color/violet.css +72 -0
  234. package/theme/styles/css/color/yellow.css +72 -0
  235. package/theme/styles/css/fonts.css +85 -0
  236. package/theme/styles/css/index.css +18 -0
  237. package/theme/styles/css/neutral/gray.css +63 -0
  238. package/theme/styles/css/neutral/index.css +11 -0
  239. package/theme/styles/css/neutral/mauve.css +63 -0
  240. package/theme/styles/css/neutral/mist.css +63 -0
  241. package/theme/styles/css/neutral/neutral.css +63 -0
  242. package/theme/styles/css/neutral/olive.css +63 -0
  243. package/theme/styles/css/neutral/slate.css +63 -0
  244. package/theme/styles/css/neutral/stone.css +63 -0
  245. package/theme/styles/css/neutral/taupe.css +63 -0
  246. package/theme/styles/css/neutral/zinc.css +63 -0
  247. package/theme/styles/css/radius/index.css +30 -0
  248. package/theme/styles/css/space/index.css +20 -0
  249. package/types/edsis-angular-chart-area.d.ts +139 -0
  250. package/types/edsis-angular-chart-bar.d.ts +291 -0
  251. package/types/edsis-angular-chart-core.d.ts +822 -0
  252. package/types/edsis-angular-chart-line.d.ts +148 -0
  253. package/types/edsis-angular-chart-pie.d.ts +202 -0
  254. package/types/edsis-angular-chart-primitives.d.ts +360 -0
  255. package/types/edsis-angular-chart-radar.d.ts +198 -0
  256. package/types/edsis-angular-chart-radial.d.ts +187 -0
  257. package/types/edsis-angular-chart-scatter.d.ts +181 -0
  258. package/types/edsis-angular-chart.d.ts +3 -0
  259. package/types/edsis-angular-component-accordion.d.ts +139 -0
  260. package/types/edsis-angular-component-alert-dialog.d.ts +288 -0
  261. package/types/edsis-angular-component-alert.d.ts +72 -0
  262. package/types/edsis-angular-component-aspect-ratio.d.ts +20 -0
  263. package/types/edsis-angular-component-avatar.d.ts +111 -0
  264. package/types/edsis-angular-component-badge.d.ts +36 -0
  265. package/types/edsis-angular-component-breadcrumb.d.ts +85 -0
  266. package/types/edsis-angular-component-button-group.d.ts +50 -0
  267. package/types/edsis-angular-component-button.d.ts +44 -0
  268. package/types/edsis-angular-component-calendar.d.ts +150 -0
  269. package/types/edsis-angular-component-card.d.ts +123 -0
  270. package/types/edsis-angular-component-carousel.d.ts +155 -0
  271. package/types/edsis-angular-component-checkbox.d.ts +100 -0
  272. package/types/edsis-angular-component-collapsible.d.ts +68 -0
  273. package/types/edsis-angular-component-combobox.d.ts +105 -0
  274. package/types/edsis-angular-component-command.d.ts +215 -0
  275. package/types/edsis-angular-component-composer.d.ts +190 -0
  276. package/types/edsis-angular-component-context-menu.d.ts +64 -0
  277. package/types/edsis-angular-component-date-picker.d.ts +199 -0
  278. package/types/edsis-angular-component-dialog.d.ts +231 -0
  279. package/types/edsis-angular-component-drawer.d.ts +2 -0
  280. package/types/edsis-angular-component-dropdown-menu.d.ts +370 -0
  281. package/types/edsis-angular-component-editor.d.ts +234 -0
  282. package/types/edsis-angular-component-empty.d.ts +85 -0
  283. package/types/edsis-angular-component-form.d.ts +223 -0
  284. package/types/edsis-angular-component-hover-card.d.ts +133 -0
  285. package/types/edsis-angular-component-icon.d.ts +90 -0
  286. package/types/edsis-angular-component-input-group.d.ts +98 -0
  287. package/types/edsis-angular-component-input-otp.d.ts +249 -0
  288. package/types/edsis-angular-component-input.d.ts +31 -0
  289. package/types/edsis-angular-component-item.d.ts +169 -0
  290. package/types/edsis-angular-component-kanban.d.ts +165 -0
  291. package/types/edsis-angular-component-kbd.d.ts +25 -0
  292. package/types/edsis-angular-component-label.d.ts +19 -0
  293. package/types/edsis-angular-component-menubar.d.ts +123 -0
  294. package/types/edsis-angular-component-native-select.d.ts +39 -0
  295. package/types/edsis-angular-component-navigation-menu.d.ts +163 -0
  296. package/types/edsis-angular-component-pagination.d.ts +83 -0
  297. package/types/edsis-angular-component-pillbox.d.ts +380 -0
  298. package/types/edsis-angular-component-popover.d.ts +96 -0
  299. package/types/edsis-angular-component-progress.d.ts +45 -0
  300. package/types/edsis-angular-component-radio.d.ts +137 -0
  301. package/types/edsis-angular-component-resizable.d.ts +166 -0
  302. package/types/edsis-angular-component-scroll-area.d.ts +37 -0
  303. package/types/edsis-angular-component-segmented-control.d.ts +102 -0
  304. package/types/edsis-angular-component-select.d.ts +138 -0
  305. package/types/edsis-angular-component-separator.d.ts +26 -0
  306. package/types/edsis-angular-component-sheet.d.ts +240 -0
  307. package/types/edsis-angular-component-skeleton.d.ts +13 -0
  308. package/types/edsis-angular-component-slider.d.ts +148 -0
  309. package/types/edsis-angular-component-spinner.d.ts +31 -0
  310. package/types/edsis-angular-component-switch.d.ts +101 -0
  311. package/types/edsis-angular-component-table.d.ts +109 -0
  312. package/types/edsis-angular-component-tabs.d.ts +183 -0
  313. package/types/edsis-angular-component-textarea.d.ts +27 -0
  314. package/types/edsis-angular-component-timeline.d.ts +146 -0
  315. package/types/edsis-angular-component-toast.d.ts +60 -0
  316. package/types/edsis-angular-component-toggle-group.d.ts +161 -0
  317. package/types/edsis-angular-component-toggle.d.ts +47 -0
  318. package/types/edsis-angular-component-tooltip.d.ts +233 -0
  319. package/types/edsis-angular-component-utils-core.d.ts +175 -0
  320. package/types/edsis-angular-component-utils-overlay.d.ts +17 -0
  321. package/types/edsis-angular-component-utils-scale.d.ts +27 -0
  322. package/types/edsis-angular-component-utils.d.ts +2 -0
  323. package/types/edsis-angular-component.d.ts +1 -0
  324. package/types/edsis-angular-navigation-core.d.ts +55 -0
  325. package/types/edsis-angular-navigation-icon.d.ts +9 -0
  326. package/types/edsis-angular-navigation-service.d.ts +121 -0
  327. package/types/edsis-angular-navigation-types.d.ts +185 -0
  328. package/types/edsis-angular-navigation.d.ts +862 -0
  329. package/types/edsis-angular-sdk.d.ts +87 -0
  330. package/types/edsis-angular-theme-component-settings.d.ts +205 -0
  331. package/types/edsis-angular-theme-layout-services.d.ts +143 -0
  332. package/types/edsis-angular-theme-layout-types.d.ts +36 -0
  333. package/types/edsis-angular-theme-layout-wrapper.d.ts +670 -0
  334. package/types/edsis-angular-theme-layout.d.ts +218 -0
  335. package/types/edsis-angular-theme-page-core.d.ts +151 -0
  336. package/types/edsis-angular-theme-page-filter.d.ts +127 -0
  337. package/types/edsis-angular-theme-page-overview.d.ts +28 -0
  338. package/types/edsis-angular-theme-page-root.d.ts +172 -0
  339. package/types/edsis-angular-theme-page-side.d.ts +90 -0
  340. package/types/edsis-angular-theme-page-slots.d.ts +61 -0
  341. package/types/edsis-angular-theme-page.d.ts +7 -0
  342. package/types/edsis-angular-theme-shell-services.d.ts +188 -0
  343. package/types/edsis-angular-theme-shell-types.d.ts +102 -0
  344. package/types/edsis-angular-theme-shell.d.ts +178 -0
  345. package/types/edsis-angular-theme-styles.d.ts +295 -0
  346. package/types/edsis-angular-theme.d.ts +1 -0
  347. package/types/edsis-angular.d.ts +5 -2
  348. package/fesm2022/edsis-angular-block-shell.mjs +0 -1329
  349. package/fesm2022/edsis-angular-block-shell.mjs.map +0 -1
  350. package/fesm2022/edsis-angular-block-themes.mjs +0 -1007
  351. package/fesm2022/edsis-angular-block-themes.mjs.map +0 -1
  352. package/fesm2022/edsis-angular-module-auth.mjs +0 -2582
  353. package/fesm2022/edsis-angular-module-auth.mjs.map +0 -1
  354. package/fesm2022/edsis-angular-platform-mfe.mjs +0 -329
  355. package/fesm2022/edsis-angular-platform-mfe.mjs.map +0 -1
  356. package/fesm2022/edsis-angular-services-runtime.mjs +0 -385
  357. package/fesm2022/edsis-angular-services-runtime.mjs.map +0 -1
  358. package/fesm2022/edsis-angular.mjs.map +0 -1
  359. package/types/edsis-angular-block-shell.d.ts +0 -190
  360. package/types/edsis-angular-block-themes.d.ts +0 -94
  361. package/types/edsis-angular-module-auth.d.ts +0 -533
  362. package/types/edsis-angular-platform-mfe.d.ts +0 -126
  363. package/types/edsis-angular-services-runtime.d.ts +0 -118
@@ -1,1329 +0,0 @@
1
- import { NgTemplateOutlet, DOCUMENT } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { input, computed, Component, inject, DestroyRef, signal, TemplateRef, Directive, contentChild } from '@angular/core';
4
- import { RouterLink, RouterOutlet } from '@angular/router';
5
- import { RuntimeContextService, NativeHostService } from '@edsis/angular/services/runtime';
6
- import { LayoutService, LayoutComponent, LayoutVerticalComponent, LayoutHorizontalComponent, LayoutEmptyComponent, LayoutNavigationComponent, LayoutContentComponent, DesktopAppBarComponent } from '@edsis/theme/layout';
7
- import { NavigationCollapseRootDirective, NavigationCollapseExpandedDirective, NavigationContainerComponent, NavigationSidebarComponent, NavigationDockbarComponent, NavigationHeaderComponent, NavigationFooterComponent, NavigationAsideFooterDirective, NavigationContentComponent, NavigationNavbarComponent, NavigationFlyoutComponent } from '@edsis/navigation';
8
- import { NavigationService } from '@edsis/navigation/service';
9
- import { AvatarBadgeComponent, AvatarComponent, AvatarFallbackComponent, AvatarImageComponent } from '@edsis/component/avatar';
10
- import { ButtonComponent } from '@edsis/component/button';
11
- import { cn } from '@edsis/component/class';
12
- import { AspectRatioComponent } from '@edsis/component/aspect-ratio';
13
- import { ThemeAppearanceService } from '@edsis/theme/styles';
14
-
15
- class BlockShellNavigationAvatarComponent {
16
- initials = input.required(/* @ts-ignore */
17
- ...(ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []));
18
- photoUrl = input(undefined, /* @ts-ignore */
19
- ...(ngDevMode ? [{ debugName: "photoUrl" }] : /* istanbul ignore next */ []));
20
- photoAlt = input('', /* @ts-ignore */
21
- ...(ngDevMode ? [{ debugName: "photoAlt" }] : /* istanbul ignore next */ []));
22
- /** Radius mengikuti konteks shell; default mempertahankan avatar persegi. */
23
- radiusClass = input('rounded-none', /* @ts-ignore */
24
- ...(ngDevMode ? [{ debugName: "radiusClass" }] : /* istanbul ignore next */ []));
25
- /** Avatar interaktif dipakai khusus untuk kontrol profil Desktop. */
26
- asButton = input(false, /* @ts-ignore */
27
- ...(ngDevMode ? [{ debugName: "asButton" }] : /* istanbul ignore next */ []));
28
- useAvatar = input(false, /* @ts-ignore */
29
- ...(ngDevMode ? [{ debugName: "useAvatar" }] : /* istanbul ignore next */ []));
30
- buttonLabel = input('User menu', /* @ts-ignore */
31
- ...(ngDevMode ? [{ debugName: "buttonLabel" }] : /* istanbul ignore next */ []));
32
- /** Menampilkan indikator online dengan primitive Avatar. */
33
- showOnlineIndicator = input(false, /* @ts-ignore */
34
- ...(ngDevMode ? [{ debugName: "showOnlineIndicator" }] : /* istanbul ignore next */ []));
35
- avatarClasses = computed(() => cn(this.asButton()
36
- ? 'size-11 shrink-0 text-sm font-semibold'
37
- : 'inline-flex size-[calc(2.5rem*2/3)] shrink-0 items-center justify-center overflow-hidden bg-primary text-xs font-semibold text-primary-foreground', this.radiusClass()), /* @ts-ignore */
38
- ...(ngDevMode ? [{ debugName: "avatarClasses" }] : /* istanbul ignore next */ []));
39
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellNavigationAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
40
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: BlockShellNavigationAvatarComponent, isStandalone: true, selector: "block-shell-navigation-avatar", inputs: { initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: true, transformFunction: null }, photoUrl: { classPropertyName: "photoUrl", publicName: "photoUrl", isSignal: true, isRequired: false, transformFunction: null }, photoAlt: { classPropertyName: "photoAlt", publicName: "photoAlt", isSignal: true, isRequired: false, transformFunction: null }, radiusClass: { classPropertyName: "radiusClass", publicName: "radiusClass", isSignal: true, isRequired: false, transformFunction: null }, asButton: { classPropertyName: "asButton", publicName: "asButton", isSignal: true, isRequired: false, transformFunction: null }, useAvatar: { classPropertyName: "useAvatar", publicName: "useAvatar", isSignal: true, isRequired: false, transformFunction: null }, buttonLabel: { classPropertyName: "buttonLabel", publicName: "buttonLabel", isSignal: true, isRequired: false, transformFunction: null }, showOnlineIndicator: { classPropertyName: "showOnlineIndicator", publicName: "showOnlineIndicator", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
41
- <!-- size = tinggi logo header: kotak w-10 (2.5rem) dengan AspectRatio 3/2 -->
42
- @if (asButton()) {
43
- <button
44
- Button
45
- type="button"
46
- variant="ghost"
47
- size="icon-lg"
48
- [class]="avatarClasses()"
49
- [attr.aria-label]="buttonLabel()"
50
- >
51
- <Avatar size="sm" [class]="radiusClass()">
52
- <ng-container [ngTemplateOutlet]="avatarContent" />
53
- </Avatar>
54
- </button>
55
- } @else if (useAvatar() || showOnlineIndicator()) {
56
- <Avatar size="sm" [class]="radiusClass()">
57
- <ng-container [ngTemplateOutlet]="avatarContent" />
58
- </Avatar>
59
- } @else {
60
- <span [class]="avatarClasses()">
61
- <ng-container [ngTemplateOutlet]="avatarContent" />
62
- </span>
63
- }
64
-
65
- <ng-template #avatarContent>
66
- @if (photoUrl(); as url) {
67
- <AvatarImage [src]="url" [alt]="photoAlt()" />
68
- }
69
- <AvatarFallback>{{ initials() }}</AvatarFallback>
70
- @if (showOnlineIndicator()) {
71
- <AvatarBadge class="bg-success" aria-hidden="true" />
72
- }
73
- </ng-template>
74
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AvatarBadgeComponent, selector: "AvatarBadge", inputs: ["class"] }, { kind: "component", type: AvatarComponent, selector: "Avatar", inputs: ["size", "class"] }, { kind: "component", type: AvatarFallbackComponent, selector: "AvatarFallback", inputs: ["class"] }, { kind: "component", type: AvatarImageComponent, selector: "AvatarImage", inputs: ["src", "alt", "class"] }, { kind: "component", type: ButtonComponent, selector: "button[Button], a[Button]", inputs: ["variant", "size", "class"] }] });
75
- }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellNavigationAvatarComponent, decorators: [{
77
- type: Component,
78
- args: [{
79
- selector: 'block-shell-navigation-avatar',
80
- host: {
81
- class: 'contents',
82
- },
83
- template: `
84
- <!-- size = tinggi logo header: kotak w-10 (2.5rem) dengan AspectRatio 3/2 -->
85
- @if (asButton()) {
86
- <button
87
- Button
88
- type="button"
89
- variant="ghost"
90
- size="icon-lg"
91
- [class]="avatarClasses()"
92
- [attr.aria-label]="buttonLabel()"
93
- >
94
- <Avatar size="sm" [class]="radiusClass()">
95
- <ng-container [ngTemplateOutlet]="avatarContent" />
96
- </Avatar>
97
- </button>
98
- } @else if (useAvatar() || showOnlineIndicator()) {
99
- <Avatar size="sm" [class]="radiusClass()">
100
- <ng-container [ngTemplateOutlet]="avatarContent" />
101
- </Avatar>
102
- } @else {
103
- <span [class]="avatarClasses()">
104
- <ng-container [ngTemplateOutlet]="avatarContent" />
105
- </span>
106
- }
107
-
108
- <ng-template #avatarContent>
109
- @if (photoUrl(); as url) {
110
- <AvatarImage [src]="url" [alt]="photoAlt()" />
111
- }
112
- <AvatarFallback>{{ initials() }}</AvatarFallback>
113
- @if (showOnlineIndicator()) {
114
- <AvatarBadge class="bg-success" aria-hidden="true" />
115
- }
116
- </ng-template>
117
- `,
118
- imports: [
119
- NgTemplateOutlet,
120
- AvatarBadgeComponent,
121
- AvatarComponent,
122
- AvatarFallbackComponent,
123
- AvatarImageComponent,
124
- ButtonComponent,
125
- ],
126
- }]
127
- }], propDecorators: { initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: true }] }], photoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "photoUrl", required: false }] }], photoAlt: [{ type: i0.Input, args: [{ isSignal: true, alias: "photoAlt", required: false }] }], radiusClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "radiusClass", required: false }] }], asButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "asButton", required: false }] }], useAvatar: [{ type: i0.Input, args: [{ isSignal: true, alias: "useAvatar", required: false }] }], buttonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonLabel", required: false }] }], showOnlineIndicator: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOnlineIndicator", required: false }] }] } });
128
-
129
- class BlockShellNavigationMetaComponent {
130
- name = input.required(/* @ts-ignore */
131
- ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
132
- subtitle = input.required(/* @ts-ignore */
133
- ...(ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []));
134
- containerClass = input('min-w-0', /* @ts-ignore */
135
- ...(ngDevMode ? [{ debugName: "containerClass" }] : /* istanbul ignore next */ []));
136
- subtitleClass = input('truncate text-xs text-muted-foreground', /* @ts-ignore */
137
- ...(ngDevMode ? [{ debugName: "subtitleClass" }] : /* istanbul ignore next */ []));
138
- hideSubtitle = input(false, /* @ts-ignore */
139
- ...(ngDevMode ? [{ debugName: "hideSubtitle" }] : /* istanbul ignore next */ []));
140
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellNavigationMetaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
141
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: BlockShellNavigationMetaComponent, isStandalone: true, selector: "block-shell-navigation-meta", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: true, transformFunction: null }, containerClass: { classPropertyName: "containerClass", publicName: "containerClass", isSignal: true, isRequired: false, transformFunction: null }, subtitleClass: { classPropertyName: "subtitleClass", publicName: "subtitleClass", isSignal: true, isRequired: false, transformFunction: null }, hideSubtitle: { classPropertyName: "hideSubtitle", publicName: "hideSubtitle", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
142
- <div [class]="containerClass()">
143
- <p class="truncate text-sm font-semibold tracking-tight text-foreground">{{ name() }}</p>
144
- @if (!hideSubtitle()) {
145
- <p [class]="subtitleClass()">{{ subtitle() }}</p>
146
- }
147
- </div>
148
- `, isInline: true });
149
- }
150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellNavigationMetaComponent, decorators: [{
151
- type: Component,
152
- args: [{
153
- selector: 'block-shell-navigation-meta',
154
- host: {
155
- class: 'contents',
156
- },
157
- template: `
158
- <div [class]="containerClass()">
159
- <p class="truncate text-sm font-semibold tracking-tight text-foreground">{{ name() }}</p>
160
- @if (!hideSubtitle()) {
161
- <p [class]="subtitleClass()">{{ subtitle() }}</p>
162
- }
163
- </div>
164
- `,
165
- }]
166
- }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: true }] }], containerClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "containerClass", required: false }] }], subtitleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitleClass", required: false }] }], hideSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideSubtitle", required: false }] }] } });
167
-
168
- class BlockShellNavigationFooterComponent {
169
- name = input.required(/* @ts-ignore */
170
- ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
171
- subtitle = input.required(/* @ts-ignore */
172
- ...(ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []));
173
- initials = input(undefined, /* @ts-ignore */
174
- ...(ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []));
175
- photoUrl = input(undefined, /* @ts-ignore */
176
- ...(ngDevMode ? [{ debugName: "photoUrl" }] : /* istanbul ignore next */ []));
177
- collapsible = input(false, /* @ts-ignore */
178
- ...(ngDevMode ? [{ debugName: "collapsible" }] : /* istanbul ignore next */ []));
179
- desktopOnly = input(false, /* @ts-ignore */
180
- ...(ngDevMode ? [{ debugName: "desktopOnly" }] : /* istanbul ignore next */ []));
181
- /** Kelas radius avatar; default mempertahankan avatar persegi pada shell lain. */
182
- avatarRadiusClass = input('rounded-none', /* @ts-ignore */
183
- ...(ngDevMode ? [{ debugName: "avatarRadiusClass" }] : /* istanbul ignore next */ []));
184
- /** Sembunyikan seluruh metadata pengguna, termasuk dari DOM. */
185
- showMeta = input(true, /* @ts-ignore */
186
- ...(ngDevMode ? [{ debugName: "showMeta" }] : /* istanbul ignore next */ []));
187
- hideSubtitle = input(false, /* @ts-ignore */
188
- ...(ngDevMode ? [{ debugName: "hideSubtitle" }] : /* istanbul ignore next */ []));
189
- /** Gunakan elemen button tanpa mengubah tampilan avatar. */
190
- avatarButton = input(false, /* @ts-ignore */
191
- ...(ngDevMode ? [{ debugName: "avatarButton" }] : /* istanbul ignore next */ []));
192
- avatarButtonLabel = input('User menu', /* @ts-ignore */
193
- ...(ngDevMode ? [{ debugName: "avatarButtonLabel" }] : /* istanbul ignore next */ []));
194
- useAvatar = input(false, /* @ts-ignore */
195
- ...(ngDevMode ? [{ debugName: "useAvatar" }] : /* istanbul ignore next */ []));
196
- /** Tampilkan presence badge pada avatar, dipakai khusus footer Desktop. */
197
- avatarOnline = input(false, /* @ts-ignore */
198
- ...(ngDevMode ? [{ debugName: "avatarOnline" }] : /* istanbul ignore next */ []));
199
- actionTemplate = input(null, /* @ts-ignore */
200
- ...(ngDevMode ? [{ debugName: "actionTemplate" }] : /* istanbul ignore next */ []));
201
- resolvedInitials = computed(() => {
202
- const explicitInitials = this.initials()?.trim();
203
- if (explicitInitials) {
204
- return explicitInitials;
205
- }
206
- const words = this.name()
207
- .trim()
208
- .split(/\s+/)
209
- .filter((word) => word.length > 0);
210
- return ((words[0]?.[0] ?? '') + (words[1]?.[0] ?? words[0]?.[1] ?? '')).toUpperCase();
211
- }, /* @ts-ignore */
212
- ...(ngDevMode ? [{ debugName: "resolvedInitials" }] : /* istanbul ignore next */ []));
213
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellNavigationFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
214
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: BlockShellNavigationFooterComponent, isStandalone: true, selector: "block-shell-navigation-footer", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: true, transformFunction: null }, initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: false, transformFunction: null }, photoUrl: { classPropertyName: "photoUrl", publicName: "photoUrl", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, desktopOnly: { classPropertyName: "desktopOnly", publicName: "desktopOnly", isSignal: true, isRequired: false, transformFunction: null }, avatarRadiusClass: { classPropertyName: "avatarRadiusClass", publicName: "avatarRadiusClass", isSignal: true, isRequired: false, transformFunction: null }, showMeta: { classPropertyName: "showMeta", publicName: "showMeta", isSignal: true, isRequired: false, transformFunction: null }, hideSubtitle: { classPropertyName: "hideSubtitle", publicName: "hideSubtitle", isSignal: true, isRequired: false, transformFunction: null }, avatarButton: { classPropertyName: "avatarButton", publicName: "avatarButton", isSignal: true, isRequired: false, transformFunction: null }, avatarButtonLabel: { classPropertyName: "avatarButtonLabel", publicName: "avatarButtonLabel", isSignal: true, isRequired: false, transformFunction: null }, useAvatar: { classPropertyName: "useAvatar", publicName: "useAvatar", isSignal: true, isRequired: false, transformFunction: null }, avatarOnline: { classPropertyName: "avatarOnline", publicName: "avatarOnline", isSignal: true, isRequired: false, transformFunction: null }, actionTemplate: { classPropertyName: "actionTemplate", publicName: "actionTemplate", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
215
- @if (collapsible()) {
216
- <div NavigationCollapseRoot class="flex w-full items-center gap-3">
217
- <block-shell-navigation-avatar
218
- [initials]="resolvedInitials()"
219
- [photoUrl]="photoUrl()"
220
- [photoAlt]="name()"
221
- [radiusClass]="avatarRadiusClass()"
222
- [asButton]="avatarButton()"
223
- [buttonLabel]="avatarButtonLabel()"
224
- [useAvatar]="useAvatar()"
225
- [showOnlineIndicator]="avatarOnline()"
226
- />
227
-
228
- @if (showMeta()) {
229
- <div *NavigationCollapseExpanded class="min-w-0">
230
- <block-shell-navigation-meta
231
- [name]="name()"
232
- [subtitle]="subtitle()"
233
- [hideSubtitle]="hideSubtitle()"
234
- [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
235
- />
236
- </div>
237
- }
238
-
239
- @if (actionTemplate()) {
240
- <div
241
- *NavigationCollapseExpanded
242
- data-navigation-footer-actions
243
- class="ml-auto flex shrink-0 items-center gap-1"
244
- >
245
- <ng-container [ngTemplateOutlet]="actionTemplate()" />
246
- </div>
247
- }
248
- </div>
249
- } @else {
250
- <div class="flex items-center gap-3">
251
- <block-shell-navigation-avatar
252
- [initials]="resolvedInitials()"
253
- [photoUrl]="photoUrl()"
254
- [photoAlt]="name()"
255
- [radiusClass]="avatarRadiusClass()"
256
- [asButton]="avatarButton()"
257
- [buttonLabel]="avatarButtonLabel()"
258
- [useAvatar]="useAvatar()"
259
- [showOnlineIndicator]="avatarOnline()"
260
- />
261
- @if (showMeta()) {
262
- <block-shell-navigation-meta
263
- [name]="name()"
264
- [subtitle]="subtitle()"
265
- [hideSubtitle]="hideSubtitle()"
266
- [containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
267
- />
268
- }
269
- @if (actionTemplate()) {
270
- <div
271
- data-navigation-footer-actions
272
- class="ml-auto flex shrink-0 items-center gap-1"
273
- >
274
- <ng-container [ngTemplateOutlet]="actionTemplate()" />
275
- </div>
276
- }
277
- </div>
278
- }
279
- `, isInline: true, dependencies: [{ kind: "directive", type: NavigationCollapseRootDirective, selector: "[NavigationCollapseRoot]" }, { kind: "directive", type: NavigationCollapseExpandedDirective, selector: "[NavigationCollapseExpanded]" }, { kind: "component", type: BlockShellNavigationAvatarComponent, selector: "block-shell-navigation-avatar", inputs: ["initials", "photoUrl", "photoAlt", "radiusClass", "asButton", "useAvatar", "buttonLabel", "showOnlineIndicator"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass", "hideSubtitle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
280
- }
281
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellNavigationFooterComponent, decorators: [{
282
- type: Component,
283
- args: [{
284
- selector: 'block-shell-navigation-footer',
285
- imports: [
286
- NavigationCollapseRootDirective,
287
- NavigationCollapseExpandedDirective,
288
- BlockShellNavigationAvatarComponent,
289
- BlockShellNavigationMetaComponent,
290
- NgTemplateOutlet,
291
- ],
292
- host: {
293
- class: 'contents',
294
- },
295
- template: `
296
- @if (collapsible()) {
297
- <div NavigationCollapseRoot class="flex w-full items-center gap-3">
298
- <block-shell-navigation-avatar
299
- [initials]="resolvedInitials()"
300
- [photoUrl]="photoUrl()"
301
- [photoAlt]="name()"
302
- [radiusClass]="avatarRadiusClass()"
303
- [asButton]="avatarButton()"
304
- [buttonLabel]="avatarButtonLabel()"
305
- [useAvatar]="useAvatar()"
306
- [showOnlineIndicator]="avatarOnline()"
307
- />
308
-
309
- @if (showMeta()) {
310
- <div *NavigationCollapseExpanded class="min-w-0">
311
- <block-shell-navigation-meta
312
- [name]="name()"
313
- [subtitle]="subtitle()"
314
- [hideSubtitle]="hideSubtitle()"
315
- [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
316
- />
317
- </div>
318
- }
319
-
320
- @if (actionTemplate()) {
321
- <div
322
- *NavigationCollapseExpanded
323
- data-navigation-footer-actions
324
- class="ml-auto flex shrink-0 items-center gap-1"
325
- >
326
- <ng-container [ngTemplateOutlet]="actionTemplate()" />
327
- </div>
328
- }
329
- </div>
330
- } @else {
331
- <div class="flex items-center gap-3">
332
- <block-shell-navigation-avatar
333
- [initials]="resolvedInitials()"
334
- [photoUrl]="photoUrl()"
335
- [photoAlt]="name()"
336
- [radiusClass]="avatarRadiusClass()"
337
- [asButton]="avatarButton()"
338
- [buttonLabel]="avatarButtonLabel()"
339
- [useAvatar]="useAvatar()"
340
- [showOnlineIndicator]="avatarOnline()"
341
- />
342
- @if (showMeta()) {
343
- <block-shell-navigation-meta
344
- [name]="name()"
345
- [subtitle]="subtitle()"
346
- [hideSubtitle]="hideSubtitle()"
347
- [containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
348
- />
349
- }
350
- @if (actionTemplate()) {
351
- <div
352
- data-navigation-footer-actions
353
- class="ml-auto flex shrink-0 items-center gap-1"
354
- >
355
- <ng-container [ngTemplateOutlet]="actionTemplate()" />
356
- </div>
357
- }
358
- </div>
359
- }
360
- `,
361
- }]
362
- }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: true }] }], initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: false }] }], photoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "photoUrl", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }], desktopOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "desktopOnly", required: false }] }], avatarRadiusClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarRadiusClass", required: false }] }], showMeta: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMeta", required: false }] }], hideSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideSubtitle", required: false }] }], avatarButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarButton", required: false }] }], avatarButtonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarButtonLabel", required: false }] }], useAvatar: [{ type: i0.Input, args: [{ isSignal: true, alias: "useAvatar", required: false }] }], avatarOnline: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarOnline", required: false }] }], actionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionTemplate", required: false }] }] } });
363
-
364
- class BlockShellLogoComponent {
365
- text = input('ETOS', /* @ts-ignore */
366
- ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
367
- homePath = input('/', /* @ts-ignore */
368
- ...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
369
- ariaLabel = input('Buka aplikasi', /* @ts-ignore */
370
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
371
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellLogoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
372
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.0", type: BlockShellLogoComponent, isStandalone: true, selector: "block-shell-logo", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
373
- <div class="w-10 shrink-0">
374
- <AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
375
- <div
376
- class="flex h-full w-full items-center justify-center px-0.5 text-[0.72rem] font-black leading-none tracking-[-0.08em] text-primary-foreground"
377
- style="font-family: 'Arial Black', Arial, sans-serif;"
378
- >
379
- {{ text() }}
380
- </div>
381
- </AspectRatio>
382
- </div>
383
- `, isInline: true, dependencies: [{ kind: "component", type: AspectRatioComponent, selector: "AspectRatio", inputs: ["ratio", "class"] }] });
384
- }
385
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellLogoComponent, decorators: [{
386
- type: Component,
387
- args: [{
388
- selector: 'block-shell-logo',
389
- imports: [AspectRatioComponent],
390
- host: {
391
- class: 'contents',
392
- },
393
- template: `
394
- <div class="w-10 shrink-0">
395
- <AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
396
- <div
397
- class="flex h-full w-full items-center justify-center px-0.5 text-[0.72rem] font-black leading-none tracking-[-0.08em] text-primary-foreground"
398
- style="font-family: 'Arial Black', Arial, sans-serif;"
399
- >
400
- {{ text() }}
401
- </div>
402
- </AspectRatio>
403
- </div>
404
- `,
405
- }]
406
- }], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
407
-
408
- class BlockShellNavigationHeaderComponent {
409
- name = input.required(/* @ts-ignore */
410
- ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
411
- logoText = input('ETOS', /* @ts-ignore */
412
- ...(ngDevMode ? [{ debugName: "logoText" }] : /* istanbul ignore next */ []));
413
- homePath = input('/', /* @ts-ignore */
414
- ...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
415
- collapsible = input(false, /* @ts-ignore */
416
- ...(ngDevMode ? [{ debugName: "collapsible" }] : /* istanbul ignore next */ []));
417
- homeLinkAriaLabel = computed(() => `Buka ${this.name()}`, /* @ts-ignore */
418
- ...(ngDevMode ? [{ debugName: "homeLinkAriaLabel" }] : /* istanbul ignore next */ []));
419
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellNavigationHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
420
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: BlockShellNavigationHeaderComponent, isStandalone: true, selector: "block-shell-navigation-header", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
421
- @if (collapsible()) {
422
- <div NavigationCollapseRoot class="flex items-center gap-3">
423
- <block-shell-logo [text]="logoText()" />
424
-
425
- <div *NavigationCollapseExpanded class="min-w-0 flex-1">
426
- <a
427
- [routerLink]="homePath()"
428
- [attr.aria-label]="homeLinkAriaLabel()"
429
- data-block-shell-home-link
430
- class="block min-w-0 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
431
- >
432
- <p class="truncate text-sm font-semibold tracking-tight text-foreground">
433
- {{ name() }}
434
- </p>
435
- </a>
436
- </div>
437
- </div>
438
- } @else {
439
- <div class="flex items-center gap-3">
440
- <block-shell-logo [text]="logoText()" />
441
-
442
- <a
443
- [routerLink]="homePath()"
444
- [attr.aria-label]="homeLinkAriaLabel()"
445
- data-block-shell-home-link
446
- class="block min-w-0 flex-1 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
447
- >
448
- <p class="truncate text-sm font-semibold tracking-tight text-foreground">
449
- {{ name() }}
450
- </p>
451
- </a>
452
- </div>
453
- }
454
- `, isInline: true, dependencies: [{ kind: "directive", type: NavigationCollapseRootDirective, selector: "[NavigationCollapseRoot]" }, { kind: "directive", type: NavigationCollapseExpandedDirective, selector: "[NavigationCollapseExpanded]" }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "component", type: BlockShellLogoComponent, selector: "block-shell-logo", inputs: ["text", "homePath", "ariaLabel"] }] });
455
- }
456
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellNavigationHeaderComponent, decorators: [{
457
- type: Component,
458
- args: [{
459
- selector: 'block-shell-navigation-header',
460
- imports: [
461
- NavigationCollapseRootDirective,
462
- NavigationCollapseExpandedDirective,
463
- RouterLink,
464
- BlockShellLogoComponent,
465
- ],
466
- host: {
467
- class: 'contents',
468
- },
469
- template: `
470
- @if (collapsible()) {
471
- <div NavigationCollapseRoot class="flex items-center gap-3">
472
- <block-shell-logo [text]="logoText()" />
473
-
474
- <div *NavigationCollapseExpanded class="min-w-0 flex-1">
475
- <a
476
- [routerLink]="homePath()"
477
- [attr.aria-label]="homeLinkAriaLabel()"
478
- data-block-shell-home-link
479
- class="block min-w-0 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
480
- >
481
- <p class="truncate text-sm font-semibold tracking-tight text-foreground">
482
- {{ name() }}
483
- </p>
484
- </a>
485
- </div>
486
- </div>
487
- } @else {
488
- <div class="flex items-center gap-3">
489
- <block-shell-logo [text]="logoText()" />
490
-
491
- <a
492
- [routerLink]="homePath()"
493
- [attr.aria-label]="homeLinkAriaLabel()"
494
- data-block-shell-home-link
495
- class="block min-w-0 flex-1 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
496
- >
497
- <p class="truncate text-sm font-semibold tracking-tight text-foreground">
498
- {{ name() }}
499
- </p>
500
- </a>
501
- </div>
502
- }
503
- `,
504
- }]
505
- }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }] } });
506
-
507
- class BlockShellSidebarNavigationComponent {
508
- documentRef = inject(DOCUMENT);
509
- destroyRef = inject(DestroyRef);
510
- navigationService = inject(NavigationService);
511
- navigation = input.required(/* @ts-ignore */
512
- ...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
513
- shellName = input.required(/* @ts-ignore */
514
- ...(ngDevMode ? [{ debugName: "shellName" }] : /* istanbul ignore next */ []));
515
- logoText = input('ETOS', /* @ts-ignore */
516
- ...(ngDevMode ? [{ debugName: "logoText" }] : /* istanbul ignore next */ []));
517
- homePath = input('/', /* @ts-ignore */
518
- ...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
519
- userName = input.required(/* @ts-ignore */
520
- ...(ngDevMode ? [{ debugName: "userName" }] : /* istanbul ignore next */ []));
521
- userPosition = input.required(/* @ts-ignore */
522
- ...(ngDevMode ? [{ debugName: "userPosition" }] : /* istanbul ignore next */ []));
523
- userPhotoUrl = input(undefined, /* @ts-ignore */
524
- ...(ngDevMode ? [{ debugName: "userPhotoUrl" }] : /* istanbul ignore next */ []));
525
- ariaLabel = input('side navigation', /* @ts-ignore */
526
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
527
- footerActionTemplate = input(null, /* @ts-ignore */
528
- ...(ngDevMode ? [{ debugName: "footerActionTemplate" }] : /* istanbul ignore next */ []));
529
- /** Fallback type ketika localStorage `nav-type` kosong atau tidak valid untuk orientasi vertikal. */
530
- type = input('sidebar', /* @ts-ignore */
531
- ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
532
- responsiveCollapsed = signal(this.readResponsiveCollapsed(), /* @ts-ignore */
533
- ...(ngDevMode ? [{ debugName: "responsiveCollapsed" }] : /* istanbul ignore next */ []));
534
- navigationState = this.navigationService.state('main');
535
- /** State NavigationService menang atas fallback input dan langsung reaktif saat pengaturan diubah. */
536
- effectiveType = computed(() => {
537
- const state = this.navigationState();
538
- if (state?.orientation === 'vertical' &&
539
- (state.type === 'sidebar' || state.type === 'dockbar')) {
540
- return state.type;
541
- }
542
- // Sebelum state 'main' terdaftar, hormati type persisted agar registrasi
543
- // pertama saat refresh tidak menimpa pilihan user (mis. dockbar).
544
- const persisted = this.navigationService.persistedTypeFor('vertical');
545
- return persisted === 'sidebar' || persisted === 'dockbar' ? persisted : this.type();
546
- }, /* @ts-ignore */
547
- ...(ngDevMode ? [{ debugName: "effectiveType" }] : /* istanbul ignore next */ []));
548
- /** Di viewport sempit aside sticky akan mendorong konten; paksa drawer agar overlay. */
549
- dockbarMode = computed(() => {
550
- const state = this.navigationState();
551
- return this.responsiveCollapsed()
552
- ? 'drawer'
553
- : state?.type === 'dockbar'
554
- ? state.dockbarMode
555
- : 'default';
556
- }, /* @ts-ignore */
557
- ...(ngDevMode ? [{ debugName: "dockbarMode" }] : /* istanbul ignore next */ []));
558
- navTypeStyle = computed(() => 'default', /* @ts-ignore */
559
- ...(ngDevMode ? [{ debugName: "navTypeStyle" }] : /* istanbul ignore next */ []));
560
- constructor() {
561
- const windowRef = this.documentRef.defaultView;
562
- if (!windowRef) {
563
- return;
564
- }
565
- const mediaQuery = windowRef.matchMedia('(max-width: 767.98px)');
566
- const syncResponsiveCollapsed = (matches) => this.responsiveCollapsed.set(matches);
567
- const handleChange = (event) => syncResponsiveCollapsed(event.matches);
568
- syncResponsiveCollapsed(mediaQuery.matches);
569
- mediaQuery.addEventListener('change', handleChange);
570
- this.destroyRef.onDestroy(() => mediaQuery.removeEventListener('change', handleChange));
571
- }
572
- readResponsiveCollapsed() {
573
- return this.documentRef.defaultView?.matchMedia('(max-width: 767.98px)').matches ?? false;
574
- }
575
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellSidebarNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
576
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: BlockShellSidebarNavigationComponent, isStandalone: true, selector: "block-shell-sidebar-navigation", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: true, transformFunction: null }, userPosition: { classPropertyName: "userPosition", publicName: "userPosition", isSignal: true, isRequired: true, transformFunction: null }, userPhotoUrl: { classPropertyName: "userPhotoUrl", publicName: "userPhotoUrl", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, footerActionTemplate: { classPropertyName: "footerActionTemplate", publicName: "footerActionTemplate", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
577
- <Navigation
578
- id="main"
579
- [data]="navigation()"
580
- [ariaLabel]="ariaLabel()"
581
- collapse-tree="stairs"
582
- class="h-full"
583
- >
584
- @if (effectiveType() === 'dockbar') {
585
- <NavigationDockbar [mode]="dockbarMode()" [typeStyle]="navTypeStyle()">
586
- <NavigationHeader>
587
- <block-shell-navigation-header
588
- [name]="shellName()"
589
- [logoText]="logoText()"
590
- [homePath]="homePath()"
591
- [collapsible]="true"
592
- />
593
- </NavigationHeader>
594
-
595
- <NavigationFooter class="px-3">
596
- <block-shell-navigation-footer
597
- [name]="userName()"
598
- [subtitle]="userPosition()"
599
- [photoUrl]="userPhotoUrl()"
600
- [collapsible]="true"
601
- avatarRadiusClass="rounded-full"
602
- [useAvatar]="true"
603
- [hideSubtitle]="true"
604
- [actionTemplate]="footerActionTemplate()"
605
- />
606
- </NavigationFooter>
607
-
608
- <ng-template NavigationAsideFooter>
609
- <div class="flex w-full min-w-0 items-center gap-3">
610
- <block-shell-navigation-meta
611
- [name]="userName()"
612
- [subtitle]="userPosition()"
613
- [hideSubtitle]="true"
614
- [containerClass]="'min-w-0 flex-1'"
615
- [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
616
- />
617
- @if (footerActionTemplate()) {
618
- <div class="ml-auto shrink-0">
619
- <ng-container [ngTemplateOutlet]="footerActionTemplate()" />
620
- </div>
621
- }
622
- </div>
623
- </ng-template>
624
- </NavigationDockbar>
625
- } @else {
626
- <NavigationSidebar [collapsed]="responsiveCollapsed()" nav-sidebar-collapse>
627
- <NavigationHeader>
628
- <block-shell-navigation-header
629
- [name]="shellName()"
630
- [logoText]="logoText()"
631
- [homePath]="homePath()"
632
- [collapsible]="true"
633
- />
634
- </NavigationHeader>
635
-
636
- <NavigationFooter class="px-3">
637
- <block-shell-navigation-footer
638
- [name]="userName()"
639
- [subtitle]="userPosition()"
640
- [photoUrl]="userPhotoUrl()"
641
- [collapsible]="true"
642
- avatarRadiusClass="rounded-full"
643
- [useAvatar]="true"
644
- [hideSubtitle]="true"
645
- [actionTemplate]="footerActionTemplate()"
646
- />
647
- </NavigationFooter>
648
- </NavigationSidebar>
649
- }
650
- </Navigation>
651
- `, isInline: true, dependencies: [{ kind: "component", type: NavigationContainerComponent, selector: "Navigation", inputs: ["id", "data", "items", "ariaLabel", "compact", "collapse-tree", "class", "itemClass", "nav-group-class", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { kind: "component", type: NavigationSidebarComponent, selector: "NavigationSidebar", inputs: ["position", "collapsed", "nav-sidebar-collapse", "previewExpanded", "class"] }, { kind: "component", type: NavigationDockbarComponent, selector: "NavigationDockbar", inputs: ["mode", "position", "typeStyle", "nav-type-style", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "navigation-history", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class", "borderless"] }, { kind: "directive", type: NavigationAsideFooterDirective, selector: "ng-template[NavigationAsideFooter]" }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "logoText", "homePath", "collapsible"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "photoUrl", "collapsible", "desktopOnly", "avatarRadiusClass", "showMeta", "hideSubtitle", "avatarButton", "avatarButtonLabel", "useAvatar", "avatarOnline", "actionTemplate"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass", "hideSubtitle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
652
- }
653
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellSidebarNavigationComponent, decorators: [{
654
- type: Component,
655
- args: [{
656
- selector: 'block-shell-sidebar-navigation',
657
- imports: [
658
- NavigationContainerComponent,
659
- NavigationSidebarComponent,
660
- NavigationDockbarComponent,
661
- NavigationHeaderComponent,
662
- NavigationFooterComponent,
663
- NavigationAsideFooterDirective,
664
- BlockShellNavigationHeaderComponent,
665
- BlockShellNavigationFooterComponent,
666
- BlockShellNavigationMetaComponent,
667
- NgTemplateOutlet,
668
- ],
669
- host: {
670
- class: 'contents',
671
- },
672
- template: `
673
- <Navigation
674
- id="main"
675
- [data]="navigation()"
676
- [ariaLabel]="ariaLabel()"
677
- collapse-tree="stairs"
678
- class="h-full"
679
- >
680
- @if (effectiveType() === 'dockbar') {
681
- <NavigationDockbar [mode]="dockbarMode()" [typeStyle]="navTypeStyle()">
682
- <NavigationHeader>
683
- <block-shell-navigation-header
684
- [name]="shellName()"
685
- [logoText]="logoText()"
686
- [homePath]="homePath()"
687
- [collapsible]="true"
688
- />
689
- </NavigationHeader>
690
-
691
- <NavigationFooter class="px-3">
692
- <block-shell-navigation-footer
693
- [name]="userName()"
694
- [subtitle]="userPosition()"
695
- [photoUrl]="userPhotoUrl()"
696
- [collapsible]="true"
697
- avatarRadiusClass="rounded-full"
698
- [useAvatar]="true"
699
- [hideSubtitle]="true"
700
- [actionTemplate]="footerActionTemplate()"
701
- />
702
- </NavigationFooter>
703
-
704
- <ng-template NavigationAsideFooter>
705
- <div class="flex w-full min-w-0 items-center gap-3">
706
- <block-shell-navigation-meta
707
- [name]="userName()"
708
- [subtitle]="userPosition()"
709
- [hideSubtitle]="true"
710
- [containerClass]="'min-w-0 flex-1'"
711
- [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
712
- />
713
- @if (footerActionTemplate()) {
714
- <div class="ml-auto shrink-0">
715
- <ng-container [ngTemplateOutlet]="footerActionTemplate()" />
716
- </div>
717
- }
718
- </div>
719
- </ng-template>
720
- </NavigationDockbar>
721
- } @else {
722
- <NavigationSidebar [collapsed]="responsiveCollapsed()" nav-sidebar-collapse>
723
- <NavigationHeader>
724
- <block-shell-navigation-header
725
- [name]="shellName()"
726
- [logoText]="logoText()"
727
- [homePath]="homePath()"
728
- [collapsible]="true"
729
- />
730
- </NavigationHeader>
731
-
732
- <NavigationFooter class="px-3">
733
- <block-shell-navigation-footer
734
- [name]="userName()"
735
- [subtitle]="userPosition()"
736
- [photoUrl]="userPhotoUrl()"
737
- [collapsible]="true"
738
- avatarRadiusClass="rounded-full"
739
- [useAvatar]="true"
740
- [hideSubtitle]="true"
741
- [actionTemplate]="footerActionTemplate()"
742
- />
743
- </NavigationFooter>
744
- </NavigationSidebar>
745
- }
746
- </Navigation>
747
- `,
748
- }]
749
- }], ctorParameters: () => [], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: true }] }], userPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPosition", required: true }] }], userPhotoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPhotoUrl", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], footerActionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerActionTemplate", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
750
-
751
- const DESKTOP_NAV_CONTROL_SIZE = 'size-11';
752
- const DESKTOP_FLYOUT_ICON_SIZE = 20;
753
- class BlockShellTopNavigationComponent {
754
- layout = inject(LayoutService);
755
- navigationService = inject(NavigationService);
756
- themeAppearance = inject(ThemeAppearanceService);
757
- navigation = input.required(/* @ts-ignore */
758
- ...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
759
- shellName = input.required(/* @ts-ignore */
760
- ...(ngDevMode ? [{ debugName: "shellName" }] : /* istanbul ignore next */ []));
761
- logoText = input('ETOS', /* @ts-ignore */
762
- ...(ngDevMode ? [{ debugName: "logoText" }] : /* istanbul ignore next */ []));
763
- homePath = input('/', /* @ts-ignore */
764
- ...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
765
- userName = input.required(/* @ts-ignore */
766
- ...(ngDevMode ? [{ debugName: "userName" }] : /* istanbul ignore next */ []));
767
- userPosition = input.required(/* @ts-ignore */
768
- ...(ngDevMode ? [{ debugName: "userPosition" }] : /* istanbul ignore next */ []));
769
- userPhotoUrl = input(undefined, /* @ts-ignore */
770
- ...(ngDevMode ? [{ debugName: "userPhotoUrl" }] : /* istanbul ignore next */ []));
771
- footerActionTemplate = input(null, /* @ts-ignore */
772
- ...(ngDevMode ? [{ debugName: "footerActionTemplate" }] : /* istanbul ignore next */ []));
773
- ariaLabel = input('top navigation', /* @ts-ignore */
774
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
775
- /** Fallback type ketika localStorage `nav-type` kosong atau tidak valid untuk orientasi horizontal. */
776
- type = input('navbar', /* @ts-ignore */
777
- ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
778
- flyoutLabel = input('Menu', /* @ts-ignore */
779
- ...(ngDevMode ? [{ debugName: "flyoutLabel" }] : /* istanbul ignore next */ []));
780
- navigationState = this.navigationService.state('main');
781
- /** State NavigationService menang atas fallback input dan langsung reaktif saat pengaturan diubah. */
782
- effectiveType = computed(() => {
783
- const state = this.navigationState();
784
- if (state?.orientation === 'horizontal' &&
785
- (state.type === 'navbar' || state.type === 'flyout')) {
786
- return state.type;
787
- }
788
- // Sebelum state 'main' terdaftar, hormati type persisted agar registrasi
789
- // pertama saat refresh tidak menimpa pilihan user (mis. flyout).
790
- const persisted = this.navigationService.persistedTypeFor('horizontal');
791
- return persisted === 'navbar' || persisted === 'flyout' ? persisted : this.type();
792
- }, /* @ts-ignore */
793
- ...(ngDevMode ? [{ debugName: "effectiveType" }] : /* istanbul ignore next */ []));
794
- /** Desktop memakai surface nav khusus; rail mempertahankan style navigation border-rail. */
795
- navTypeStyle = computed(() => this.isDesktopTheme()
796
- ? 'desktop'
797
- : this.layout.appearance() === 'rail'
798
- ? 'border-rail'
799
- : 'default', /* @ts-ignore */
800
- ...(ngDevMode ? [{ debugName: "navTypeStyle" }] : /* istanbul ignore next */ []));
801
- /** Tema desktop memakai trigger dashboard tanpa label visual; tema lain mempertahankan label. */
802
- isDesktopTheme = computed(() => this.themeAppearance.appearance() === 'desktop', /* @ts-ignore */
803
- ...(ngDevMode ? [{ debugName: "isDesktopTheme" }] : /* istanbul ignore next */ []));
804
- isBrowserTheme = computed(() => this.themeAppearance.appearance() === 'browser', /* @ts-ignore */
805
- ...(ngDevMode ? [{ debugName: "isBrowserTheme" }] : /* istanbul ignore next */ []));
806
- isRailTheme = computed(() => this.themeAppearance.appearance() === 'rail', /* @ts-ignore */
807
- ...(ngDevMode ? [{ debugName: "isRailTheme" }] : /* istanbul ignore next */ []));
808
- isFooterFlyoutTheme = computed(() => this.isBrowserTheme() || this.isRailTheme(), /* @ts-ignore */
809
- ...(ngDevMode ? [{ debugName: "isFooterFlyoutTheme" }] : /* istanbul ignore next */ []));
810
- desktopFlyoutIcon = computed(() => this.isDesktopTheme() ? 'dashboard' : this.isFooterFlyoutTheme() ? 'menu' : null, /* @ts-ignore */
811
- ...(ngDevMode ? [{ debugName: "desktopFlyoutIcon" }] : /* istanbul ignore next */ []));
812
- flyoutIconOnly = computed(() => this.isDesktopTheme() || this.isFooterFlyoutTheme(), /* @ts-ignore */
813
- ...(ngDevMode ? [{ debugName: "flyoutIconOnly" }] : /* istanbul ignore next */ []));
814
- desktopFlyoutTriggerRadiusClass = computed(() => this.isDesktopTheme() ? 'rounded-base' : '', /* @ts-ignore */
815
- ...(ngDevMode ? [{ debugName: "desktopFlyoutTriggerRadiusClass" }] : /* istanbul ignore next */ []));
816
- flyoutTriggerSizeClass = computed(() => this.isDesktopTheme() ? DESKTOP_NAV_CONTROL_SIZE : this.isFooterFlyoutTheme() ? 'size-8' : '', /* @ts-ignore */
817
- ...(ngDevMode ? [{ debugName: "flyoutTriggerSizeClass" }] : /* istanbul ignore next */ []));
818
- desktopFlyoutIconSize = computed(() => this.isDesktopTheme() ? DESKTOP_FLYOUT_ICON_SIZE : 18, /* @ts-ignore */
819
- ...(ngDevMode ? [{ debugName: "desktopFlyoutIconSize" }] : /* istanbul ignore next */ []));
820
- desktopAvatarRadiusClass = computed(() => this.isDesktopTheme() ? 'rounded-base' : 'rounded-full', /* @ts-ignore */
821
- ...(ngDevMode ? [{ debugName: "desktopAvatarRadiusClass" }] : /* istanbul ignore next */ []));
822
- desktopAvatarButtonLabel = computed(() => `User menu: ${this.userName()}`, /* @ts-ignore */
823
- ...(ngDevMode ? [{ debugName: "desktopAvatarButtonLabel" }] : /* istanbul ignore next */ []));
824
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellTopNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
825
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: BlockShellTopNavigationComponent, isStandalone: true, selector: "block-shell-top-navigation", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: true, transformFunction: null }, userPosition: { classPropertyName: "userPosition", publicName: "userPosition", isSignal: true, isRequired: true, transformFunction: null }, userPhotoUrl: { classPropertyName: "userPhotoUrl", publicName: "userPhotoUrl", isSignal: true, isRequired: false, transformFunction: null }, footerActionTemplate: { classPropertyName: "footerActionTemplate", publicName: "footerActionTemplate", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, flyoutLabel: { classPropertyName: "flyoutLabel", publicName: "flyoutLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
826
- <Navigation
827
- id="main"
828
- [data]="navigation()"
829
- [ariaLabel]="ariaLabel()"
830
- collapse-tree="straight"
831
- class="h-full"
832
- >
833
- @if (effectiveType() === 'flyout') {
834
- <NavigationFlyout
835
- [label]="flyoutLabel()"
836
- [icon]="desktopFlyoutIcon()"
837
- [icon-only]="flyoutIconOnly()"
838
- [trigger-radius-class]="desktopFlyoutTriggerRadiusClass()"
839
- [trigger-size-class]="flyoutTriggerSizeClass()"
840
- [trigger-borderless]="isDesktopTheme()"
841
- [trigger-backgroundless]="isDesktopTheme()"
842
- [trigger-in-footer]="isFooterFlyoutTheme()"
843
- [icon-size]="desktopFlyoutIconSize()"
844
- [nav-type-style]="navTypeStyle()"
845
- >
846
- <NavigationHeader>
847
- <block-shell-navigation-header
848
- [name]="shellName()"
849
- [logoText]="logoText()"
850
- [homePath]="homePath()"
851
- />
852
- </NavigationHeader>
853
-
854
- @if (isDesktopTheme()) {
855
- <NavigationContent class="ml-auto flex-none items-center" />
856
- }
857
-
858
- <NavigationFooter class="px-3" [borderless]="isDesktopTheme()">
859
- <block-shell-navigation-footer
860
- [name]="userName()"
861
- [subtitle]="userPosition()"
862
- [photoUrl]="userPhotoUrl()"
863
- [desktopOnly]="true"
864
- [avatarRadiusClass]="desktopAvatarRadiusClass()"
865
- [showMeta]="!isDesktopTheme()"
866
- [avatarButton]="isDesktopTheme()"
867
- [avatarButtonLabel]="desktopAvatarButtonLabel()"
868
- [useAvatar]="!isDesktopTheme()"
869
- [avatarOnline]="isDesktopTheme()"
870
- [actionTemplate]="footerActionTemplate()"
871
- />
872
- </NavigationFooter>
873
- </NavigationFlyout>
874
- } @else {
875
- <NavigationNavbar [nav-type-style]="navTypeStyle()">
876
- <NavigationHeader>
877
- <block-shell-navigation-header
878
- [name]="shellName()"
879
- [logoText]="logoText()"
880
- [homePath]="homePath()"
881
- />
882
- </NavigationHeader>
883
-
884
- <NavigationFooter class="px-3" [borderless]="isDesktopTheme()">
885
- <block-shell-navigation-footer
886
- [name]="userName()"
887
- [subtitle]="userPosition()"
888
- [photoUrl]="userPhotoUrl()"
889
- [desktopOnly]="true"
890
- [avatarRadiusClass]="desktopAvatarRadiusClass()"
891
- [useAvatar]="!isDesktopTheme()"
892
- [avatarOnline]="isDesktopTheme()"
893
- [actionTemplate]="footerActionTemplate()"
894
- />
895
- </NavigationFooter>
896
- </NavigationNavbar>
897
- }
898
- </Navigation>
899
- `, isInline: true, dependencies: [{ kind: "component", type: NavigationContainerComponent, selector: "Navigation", inputs: ["id", "data", "items", "ariaLabel", "compact", "collapse-tree", "class", "itemClass", "nav-group-class", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { kind: "component", type: NavigationContentComponent, selector: "NavigationContent", inputs: ["class"] }, { kind: "component", type: NavigationNavbarComponent, selector: "NavigationNavbar", inputs: ["nav-position", "nav-type-style", "class"] }, { kind: "component", type: NavigationFlyoutComponent, selector: "NavigationFlyout", inputs: ["label", "icon", "icon-only", "icon-position", "trigger-radius-class", "trigger-size-class", "trigger-borderless", "trigger-backgroundless", "icon-size", "trigger-in-footer", "nav-position", "nav-type-style", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "navigation-history", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class", "borderless"] }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "logoText", "homePath", "collapsible"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "photoUrl", "collapsible", "desktopOnly", "avatarRadiusClass", "showMeta", "hideSubtitle", "avatarButton", "avatarButtonLabel", "useAvatar", "avatarOnline", "actionTemplate"] }] });
900
- }
901
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellTopNavigationComponent, decorators: [{
902
- type: Component,
903
- args: [{
904
- selector: 'block-shell-top-navigation',
905
- imports: [
906
- NavigationContainerComponent,
907
- NavigationContentComponent,
908
- NavigationNavbarComponent,
909
- NavigationFlyoutComponent,
910
- NavigationHeaderComponent,
911
- NavigationFooterComponent,
912
- BlockShellNavigationHeaderComponent,
913
- BlockShellNavigationFooterComponent,
914
- ],
915
- host: {
916
- class: 'contents',
917
- },
918
- template: `
919
- <Navigation
920
- id="main"
921
- [data]="navigation()"
922
- [ariaLabel]="ariaLabel()"
923
- collapse-tree="straight"
924
- class="h-full"
925
- >
926
- @if (effectiveType() === 'flyout') {
927
- <NavigationFlyout
928
- [label]="flyoutLabel()"
929
- [icon]="desktopFlyoutIcon()"
930
- [icon-only]="flyoutIconOnly()"
931
- [trigger-radius-class]="desktopFlyoutTriggerRadiusClass()"
932
- [trigger-size-class]="flyoutTriggerSizeClass()"
933
- [trigger-borderless]="isDesktopTheme()"
934
- [trigger-backgroundless]="isDesktopTheme()"
935
- [trigger-in-footer]="isFooterFlyoutTheme()"
936
- [icon-size]="desktopFlyoutIconSize()"
937
- [nav-type-style]="navTypeStyle()"
938
- >
939
- <NavigationHeader>
940
- <block-shell-navigation-header
941
- [name]="shellName()"
942
- [logoText]="logoText()"
943
- [homePath]="homePath()"
944
- />
945
- </NavigationHeader>
946
-
947
- @if (isDesktopTheme()) {
948
- <NavigationContent class="ml-auto flex-none items-center" />
949
- }
950
-
951
- <NavigationFooter class="px-3" [borderless]="isDesktopTheme()">
952
- <block-shell-navigation-footer
953
- [name]="userName()"
954
- [subtitle]="userPosition()"
955
- [photoUrl]="userPhotoUrl()"
956
- [desktopOnly]="true"
957
- [avatarRadiusClass]="desktopAvatarRadiusClass()"
958
- [showMeta]="!isDesktopTheme()"
959
- [avatarButton]="isDesktopTheme()"
960
- [avatarButtonLabel]="desktopAvatarButtonLabel()"
961
- [useAvatar]="!isDesktopTheme()"
962
- [avatarOnline]="isDesktopTheme()"
963
- [actionTemplate]="footerActionTemplate()"
964
- />
965
- </NavigationFooter>
966
- </NavigationFlyout>
967
- } @else {
968
- <NavigationNavbar [nav-type-style]="navTypeStyle()">
969
- <NavigationHeader>
970
- <block-shell-navigation-header
971
- [name]="shellName()"
972
- [logoText]="logoText()"
973
- [homePath]="homePath()"
974
- />
975
- </NavigationHeader>
976
-
977
- <NavigationFooter class="px-3" [borderless]="isDesktopTheme()">
978
- <block-shell-navigation-footer
979
- [name]="userName()"
980
- [subtitle]="userPosition()"
981
- [photoUrl]="userPhotoUrl()"
982
- [desktopOnly]="true"
983
- [avatarRadiusClass]="desktopAvatarRadiusClass()"
984
- [useAvatar]="!isDesktopTheme()"
985
- [avatarOnline]="isDesktopTheme()"
986
- [actionTemplate]="footerActionTemplate()"
987
- />
988
- </NavigationFooter>
989
- </NavigationNavbar>
990
- }
991
- </Navigation>
992
- `,
993
- }]
994
- }], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: true }] }], userPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPosition", required: true }] }], userPhotoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPhotoUrl", required: false }] }], footerActionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerActionTemplate", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], flyoutLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "flyoutLabel", required: false }] }] } });
995
-
996
- class BlockShellNavigationPanelDirective {
997
- templateRef = inject((TemplateRef));
998
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellNavigationPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
999
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.0", type: BlockShellNavigationPanelDirective, isStandalone: true, selector: "ng-template[blockShellNavigationPanel]", ngImport: i0 });
1000
- }
1001
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellNavigationPanelDirective, decorators: [{
1002
- type: Directive,
1003
- args: [{ selector: 'ng-template[blockShellNavigationPanel]' }]
1004
- }] });
1005
-
1006
- class BlockShellNavigationFooterActionDirective {
1007
- templateRef = inject((TemplateRef));
1008
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellNavigationFooterActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1009
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.0", type: BlockShellNavigationFooterActionDirective, isStandalone: true, selector: "ng-template[blockShellNavigationFooterAction]", ngImport: i0 });
1010
- }
1011
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellNavigationFooterActionDirective, decorators: [{
1012
- type: Directive,
1013
- args: [{ selector: 'ng-template[blockShellNavigationFooterAction]' }]
1014
- }] });
1015
-
1016
- class BlockShellComponent {
1017
- navigation = input.required(/* @ts-ignore */
1018
- ...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
1019
- /**
1020
- * @deprecated Tidak lagi dipakai. Navigasi layout browser/rail memakai id `main`, sedangkan
1021
- * app bar desktop memakai `desktop-main` agar pergantian appearance tidak memiliki owner ganda.
1022
- * Input dipertahankan sementara demi kompatibilitas pemanggil.
1023
- */
1024
- navbarId = input('main', /* @ts-ignore */
1025
- ...(ngDevMode ? [{ debugName: "navbarId" }] : /* istanbul ignore next */ []));
1026
- /** @deprecated Tidak lagi dipakai. Lihat kontrak ownership navigation pada `navbarId`. */
1027
- sidebarNavId = input('main', /* @ts-ignore */
1028
- ...(ngDevMode ? [{ debugName: "sidebarNavId" }] : /* istanbul ignore next */ []));
1029
- shellName = input.required(/* @ts-ignore */
1030
- ...(ngDevMode ? [{ debugName: "shellName" }] : /* istanbul ignore next */ []));
1031
- logoText = input('ETOS', /* @ts-ignore */
1032
- ...(ngDevMode ? [{ debugName: "logoText" }] : /* istanbul ignore next */ []));
1033
- homePath = input('/', /* @ts-ignore */
1034
- ...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
1035
- userName = input.required(/* @ts-ignore */
1036
- ...(ngDevMode ? [{ debugName: "userName" }] : /* istanbul ignore next */ []));
1037
- userPosition = input.required(/* @ts-ignore */
1038
- ...(ngDevMode ? [{ debugName: "userPosition" }] : /* istanbul ignore next */ []));
1039
- userPhotoUrl = input(undefined, /* @ts-ignore */
1040
- ...(ngDevMode ? [{ debugName: "userPhotoUrl" }] : /* istanbul ignore next */ []));
1041
- topAriaLabel = input('top navigation', /* @ts-ignore */
1042
- ...(ngDevMode ? [{ debugName: "topAriaLabel" }] : /* istanbul ignore next */ []));
1043
- sideAriaLabel = input('side navigation', /* @ts-ignore */
1044
- ...(ngDevMode ? [{ debugName: "sideAriaLabel" }] : /* istanbul ignore next */ []));
1045
- contentAriaLabel = input('layout content', /* @ts-ignore */
1046
- ...(ngDevMode ? [{ debugName: "contentAriaLabel" }] : /* istanbul ignore next */ []));
1047
- navigationPanelOpen = input(false, /* @ts-ignore */
1048
- ...(ngDevMode ? [{ debugName: "navigationPanelOpen" }] : /* istanbul ignore next */ []));
1049
- runtimeContext = inject(RuntimeContextService, { optional: true });
1050
- nativeHost = inject(NativeHostService, { optional: true });
1051
- layout = inject(LayoutService);
1052
- isDesktopAppearance = computed(() => this.layout.appearance() === 'desktop', /* @ts-ignore */
1053
- ...(ngDevMode ? [{ debugName: "isDesktopAppearance" }] : /* istanbul ignore next */ []));
1054
- desktopAppBarPlatform = computed(() => {
1055
- const context = this.runtimeContext?.context();
1056
- if (!context || context.host === 'browser') {
1057
- return undefined;
1058
- }
1059
- return context.deviceType === 'macos' || context.deviceType === 'windows'
1060
- ? context.deviceType
1061
- : null;
1062
- }, /* @ts-ignore */
1063
- ...(ngDevMode ? [{ debugName: "desktopAppBarPlatform" }] : /* istanbul ignore next */ []));
1064
- navigationPanel = contentChild(BlockShellNavigationPanelDirective, /* @ts-ignore */
1065
- ...(ngDevMode ? [{ debugName: "navigationPanel" }] : /* istanbul ignore next */ []));
1066
- footerAction = contentChild(BlockShellNavigationFooterActionDirective, /* @ts-ignore */
1067
- ...(ngDevMode ? [{ debugName: "footerAction" }] : /* istanbul ignore next */ []));
1068
- navigationPanelActive = computed(() => this.layout.type() === 'vertical' && this.navigationPanelOpen() && !!this.navigationPanel(), /* @ts-ignore */
1069
- ...(ngDevMode ? [{ debugName: "navigationPanelActive" }] : /* istanbul ignore next */ []));
1070
- onDesktopWindowControlRequested(action) {
1071
- const nativeHost = this.nativeHost;
1072
- if (!nativeHost?.supports('window-controls')) {
1073
- return;
1074
- }
1075
- void nativeHost.emitWindowControl(action).catch((error) => {
1076
- console.error(`Failed to run window control: ${action}`, error);
1077
- });
1078
- }
1079
- onDesktopWindowDragRequested() {
1080
- const nativeHost = this.nativeHost;
1081
- if (!nativeHost?.supports('window-controls')) {
1082
- return;
1083
- }
1084
- void nativeHost.startDragging().catch((error) => {
1085
- console.error('Failed to start window dragging', error);
1086
- });
1087
- }
1088
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1089
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: BlockShellComponent, isStandalone: true, selector: "block-shell", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, navbarId: { classPropertyName: "navbarId", publicName: "navbarId", isSignal: true, isRequired: false, transformFunction: null }, sidebarNavId: { classPropertyName: "sidebarNavId", publicName: "sidebarNavId", isSignal: true, isRequired: false, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: true, transformFunction: null }, userPosition: { classPropertyName: "userPosition", publicName: "userPosition", isSignal: true, isRequired: true, transformFunction: null }, userPhotoUrl: { classPropertyName: "userPhotoUrl", publicName: "userPhotoUrl", isSignal: true, isRequired: false, transformFunction: null }, topAriaLabel: { classPropertyName: "topAriaLabel", publicName: "topAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, sideAriaLabel: { classPropertyName: "sideAriaLabel", publicName: "sideAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, contentAriaLabel: { classPropertyName: "contentAriaLabel", publicName: "contentAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, navigationPanelOpen: { classPropertyName: "navigationPanelOpen", publicName: "navigationPanelOpen", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, queries: [{ propertyName: "navigationPanel", first: true, predicate: BlockShellNavigationPanelDirective, descendants: true, isSignal: true }, { propertyName: "footerAction", first: true, predicate: BlockShellNavigationFooterActionDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
1090
- @if (isDesktopAppearance()) {
1091
- <DesktopAppBar
1092
- [platform]="desktopAppBarPlatform()"
1093
- [navigation]="navigation()"
1094
- (windowControlRequested)="onDesktopWindowControlRequested($event)"
1095
- (windowDragRequested)="onDesktopWindowDragRequested()"
1096
- />
1097
- }
1098
-
1099
- <Layout>
1100
- @switch (layout.type()) {
1101
- @case ('horizontal') {
1102
- <LayoutHorizontal>
1103
- @if (!isDesktopAppearance()) {
1104
- <LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
1105
- <block-shell-top-navigation
1106
- [navigation]="navigation()"
1107
- [shellName]="shellName()"
1108
- [logoText]="logoText()"
1109
- [homePath]="homePath()"
1110
- [userName]="userName()"
1111
- [userPosition]="userPosition()"
1112
- [userPhotoUrl]="userPhotoUrl()"
1113
- [ariaLabel]="topAriaLabel()"
1114
- [footerActionTemplate]="footerAction()?.templateRef ?? null"
1115
- />
1116
- </LayoutNavigation>
1117
- }
1118
-
1119
- <LayoutContent
1120
- data-block-shell-content
1121
- tabindex="-1"
1122
- [attr.aria-label]="contentAriaLabel()"
1123
- >
1124
- <router-outlet />
1125
- </LayoutContent>
1126
-
1127
- @if (navigationPanel()) {
1128
- <div hidden aria-hidden="true" data-block-shell-overlay-panel>
1129
- <ng-container [ngTemplateOutlet]="navigationPanel()!.templateRef" />
1130
- </div>
1131
- }
1132
- </LayoutHorizontal>
1133
- }
1134
-
1135
- @case ('empty') {
1136
- <LayoutEmpty>
1137
- <LayoutContent
1138
- data-block-shell-content
1139
- tabindex="-1"
1140
- [attr.aria-label]="contentAriaLabel()"
1141
- >
1142
- <router-outlet />
1143
- </LayoutContent>
1144
- </LayoutEmpty>
1145
- }
1146
-
1147
- @default {
1148
- <LayoutVertical>
1149
- @if (!isDesktopAppearance()) {
1150
- <LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
1151
- <div
1152
- class="contents"
1153
- [hidden]="navigationPanelActive()"
1154
- [attr.inert]="navigationPanelActive() ? '' : null"
1155
- [attr.aria-hidden]="navigationPanelActive() ? 'true' : null"
1156
- >
1157
- <block-shell-sidebar-navigation
1158
- [navigation]="navigation()"
1159
- [shellName]="shellName()"
1160
- [logoText]="logoText()"
1161
- [homePath]="homePath()"
1162
- [userName]="userName()"
1163
- [userPosition]="userPosition()"
1164
- [userPhotoUrl]="userPhotoUrl()"
1165
- [ariaLabel]="sideAriaLabel()"
1166
- [footerActionTemplate]="footerAction()?.templateRef ?? null"
1167
- />
1168
- </div>
1169
-
1170
- @if (navigationPanelActive()) {
1171
- <ng-container [ngTemplateOutlet]="navigationPanel()!.templateRef" />
1172
- }
1173
- </LayoutNavigation>
1174
- }
1175
-
1176
- <LayoutContent
1177
- data-block-shell-content
1178
- tabindex="-1"
1179
- [attr.aria-label]="contentAriaLabel()"
1180
- >
1181
- <router-outlet />
1182
- </LayoutContent>
1183
- </LayoutVertical>
1184
- }
1185
- }
1186
- </Layout>
1187
-
1188
- @if (isDesktopAppearance() && navigationPanelOpen() && navigationPanel()) {
1189
- <ng-container [ngTemplateOutlet]="navigationPanel()!.templateRef" />
1190
- }
1191
- `, isInline: true, dependencies: [{ kind: "component", type: LayoutComponent, selector: "Layout", inputs: ["surface", "width", "class"] }, { kind: "component", type: LayoutVerticalComponent, selector: "LayoutVertical", inputs: ["class"] }, { kind: "component", type: LayoutHorizontalComponent, selector: "LayoutHorizontal", inputs: ["class"] }, { kind: "component", type: LayoutEmptyComponent, selector: "LayoutEmpty", inputs: ["class"] }, { kind: "component", type: LayoutNavigationComponent, selector: "LayoutNavigation", inputs: ["landmarkRole", "ariaLabel", "railOffset", "class"] }, { kind: "component", type: LayoutContentComponent, selector: "LayoutContent", inputs: ["class"] }, { kind: "component", type: DesktopAppBarComponent, selector: "DesktopAppBar", inputs: ["class", "avatarInitials", "navigation", "platform"], outputs: ["windowControlRequested", "windowDragRequested", "flyoutRequested", "avatarRequested"] }, { kind: "component", type: BlockShellSidebarNavigationComponent, selector: "block-shell-sidebar-navigation", inputs: ["navigation", "shellName", "logoText", "homePath", "userName", "userPosition", "userPhotoUrl", "ariaLabel", "footerActionTemplate", "type"] }, { kind: "component", type: BlockShellTopNavigationComponent, selector: "block-shell-top-navigation", inputs: ["navigation", "shellName", "logoText", "homePath", "userName", "userPosition", "userPhotoUrl", "footerActionTemplate", "ariaLabel", "type", "flyoutLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
1192
- }
1193
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: BlockShellComponent, decorators: [{
1194
- type: Component,
1195
- args: [{
1196
- selector: 'block-shell',
1197
- imports: [
1198
- LayoutComponent,
1199
- LayoutVerticalComponent,
1200
- LayoutHorizontalComponent,
1201
- LayoutEmptyComponent,
1202
- LayoutNavigationComponent,
1203
- LayoutContentComponent,
1204
- DesktopAppBarComponent,
1205
- BlockShellSidebarNavigationComponent,
1206
- BlockShellTopNavigationComponent,
1207
- NgTemplateOutlet,
1208
- RouterOutlet,
1209
- ],
1210
- host: {
1211
- class: 'contents',
1212
- },
1213
- template: `
1214
- @if (isDesktopAppearance()) {
1215
- <DesktopAppBar
1216
- [platform]="desktopAppBarPlatform()"
1217
- [navigation]="navigation()"
1218
- (windowControlRequested)="onDesktopWindowControlRequested($event)"
1219
- (windowDragRequested)="onDesktopWindowDragRequested()"
1220
- />
1221
- }
1222
-
1223
- <Layout>
1224
- @switch (layout.type()) {
1225
- @case ('horizontal') {
1226
- <LayoutHorizontal>
1227
- @if (!isDesktopAppearance()) {
1228
- <LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
1229
- <block-shell-top-navigation
1230
- [navigation]="navigation()"
1231
- [shellName]="shellName()"
1232
- [logoText]="logoText()"
1233
- [homePath]="homePath()"
1234
- [userName]="userName()"
1235
- [userPosition]="userPosition()"
1236
- [userPhotoUrl]="userPhotoUrl()"
1237
- [ariaLabel]="topAriaLabel()"
1238
- [footerActionTemplate]="footerAction()?.templateRef ?? null"
1239
- />
1240
- </LayoutNavigation>
1241
- }
1242
-
1243
- <LayoutContent
1244
- data-block-shell-content
1245
- tabindex="-1"
1246
- [attr.aria-label]="contentAriaLabel()"
1247
- >
1248
- <router-outlet />
1249
- </LayoutContent>
1250
-
1251
- @if (navigationPanel()) {
1252
- <div hidden aria-hidden="true" data-block-shell-overlay-panel>
1253
- <ng-container [ngTemplateOutlet]="navigationPanel()!.templateRef" />
1254
- </div>
1255
- }
1256
- </LayoutHorizontal>
1257
- }
1258
-
1259
- @case ('empty') {
1260
- <LayoutEmpty>
1261
- <LayoutContent
1262
- data-block-shell-content
1263
- tabindex="-1"
1264
- [attr.aria-label]="contentAriaLabel()"
1265
- >
1266
- <router-outlet />
1267
- </LayoutContent>
1268
- </LayoutEmpty>
1269
- }
1270
-
1271
- @default {
1272
- <LayoutVertical>
1273
- @if (!isDesktopAppearance()) {
1274
- <LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
1275
- <div
1276
- class="contents"
1277
- [hidden]="navigationPanelActive()"
1278
- [attr.inert]="navigationPanelActive() ? '' : null"
1279
- [attr.aria-hidden]="navigationPanelActive() ? 'true' : null"
1280
- >
1281
- <block-shell-sidebar-navigation
1282
- [navigation]="navigation()"
1283
- [shellName]="shellName()"
1284
- [logoText]="logoText()"
1285
- [homePath]="homePath()"
1286
- [userName]="userName()"
1287
- [userPosition]="userPosition()"
1288
- [userPhotoUrl]="userPhotoUrl()"
1289
- [ariaLabel]="sideAriaLabel()"
1290
- [footerActionTemplate]="footerAction()?.templateRef ?? null"
1291
- />
1292
- </div>
1293
-
1294
- @if (navigationPanelActive()) {
1295
- <ng-container [ngTemplateOutlet]="navigationPanel()!.templateRef" />
1296
- }
1297
- </LayoutNavigation>
1298
- }
1299
-
1300
- <LayoutContent
1301
- data-block-shell-content
1302
- tabindex="-1"
1303
- [attr.aria-label]="contentAriaLabel()"
1304
- >
1305
- <router-outlet />
1306
- </LayoutContent>
1307
- </LayoutVertical>
1308
- }
1309
- }
1310
- </Layout>
1311
-
1312
- @if (isDesktopAppearance() && navigationPanelOpen() && navigationPanel()) {
1313
- <ng-container [ngTemplateOutlet]="navigationPanel()!.templateRef" />
1314
- }
1315
- `,
1316
- }]
1317
- }], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], navbarId: [{ type: i0.Input, args: [{ isSignal: true, alias: "navbarId", required: false }] }], sidebarNavId: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarNavId", required: false }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: true }] }], userPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPosition", required: true }] }], userPhotoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPhotoUrl", required: false }] }], topAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "topAriaLabel", required: false }] }], sideAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideAriaLabel", required: false }] }], contentAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentAriaLabel", required: false }] }], navigationPanelOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigationPanelOpen", required: false }] }], navigationPanel: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BlockShellNavigationPanelDirective), { isSignal: true }] }], footerAction: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BlockShellNavigationFooterActionDirective), { isSignal: true }] }] } });
1318
-
1319
- const MAIN_SIDEBAR_NAV_ID = 'main';
1320
- function workspaceNavbarId(workspace) {
1321
- return `${workspace}-navbar`;
1322
- }
1323
-
1324
- /**
1325
- * Generated bundle index. Do not edit.
1326
- */
1327
-
1328
- export { BlockShellComponent, BlockShellLogoComponent, BlockShellNavigationAvatarComponent, BlockShellNavigationFooterActionDirective, BlockShellNavigationFooterComponent, BlockShellNavigationHeaderComponent, BlockShellNavigationMetaComponent, BlockShellNavigationPanelDirective, BlockShellSidebarNavigationComponent, BlockShellTopNavigationComponent, MAIN_SIDEBAR_NAV_ID, workspaceNavbarId };
1329
- //# sourceMappingURL=edsis-angular-block-shell.mjs.map