@edsis/angular 21.3.15 → 22.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (514) hide show
  1. package/.npmignore +2 -0
  2. package/README.md +261 -88
  3. package/collection.json +30 -0
  4. package/component/accordion/README.md +195 -0
  5. package/component/accordion/package.json +4 -0
  6. package/component/alert/README.md +182 -0
  7. package/component/alert/package.json +4 -0
  8. package/component/alert-dialog/README.md +239 -0
  9. package/component/alert-dialog/package.json +4 -0
  10. package/component/aspect-ratio/README.md +112 -0
  11. package/component/aspect-ratio/package.json +4 -0
  12. package/component/avatar/README.md +176 -0
  13. package/component/avatar/package.json +4 -0
  14. package/component/badge/README.md +133 -0
  15. package/component/badge/package.json +4 -0
  16. package/component/breadcrumb/README.md +216 -0
  17. package/component/breadcrumb/package.json +4 -0
  18. package/component/button/README.md +139 -0
  19. package/component/button/package.json +4 -0
  20. package/component/button-group/README.md +208 -0
  21. package/component/button-group/package.json +4 -0
  22. package/component/calendar/README.md +132 -0
  23. package/component/calendar/package.json +4 -0
  24. package/component/card/README.md +220 -0
  25. package/component/card/package.json +4 -0
  26. package/component/carousel/README.md +276 -0
  27. package/component/carousel/package.json +4 -0
  28. package/component/chart/README.md +249 -0
  29. package/component/chart/area/package.json +4 -0
  30. package/component/chart/bar/package.json +4 -0
  31. package/component/chart/line/package.json +4 -0
  32. package/component/chart/package.json +4 -0
  33. package/component/chart/pie/package.json +4 -0
  34. package/component/chart/radar/package.json +4 -0
  35. package/component/chart/radial/package.json +4 -0
  36. package/component/chart/scatter/package.json +4 -0
  37. package/component/checkbox/README.md +149 -0
  38. package/component/checkbox/package.json +4 -0
  39. package/component/collapsible/README.md +195 -0
  40. package/component/collapsible/package.json +4 -0
  41. package/component/combobox/README.md +198 -0
  42. package/component/combobox/package.json +4 -0
  43. package/component/command/README.md +275 -0
  44. package/component/command/package.json +4 -0
  45. package/component/composer/README.md +235 -0
  46. package/component/composer/package.json +4 -0
  47. package/component/context-menu/README.md +267 -0
  48. package/component/context-menu/package.json +4 -0
  49. package/component/date-picker/README.md +177 -0
  50. package/component/date-picker/package.json +4 -0
  51. package/component/dialog/README.md +237 -0
  52. package/component/dialog/package.json +4 -0
  53. package/component/drawer/README.md +145 -0
  54. package/component/drawer/package.json +4 -0
  55. package/component/dropdown-menu/README.md +311 -0
  56. package/component/dropdown-menu/package.json +4 -0
  57. package/component/editor/README.md +136 -0
  58. package/component/editor/package.json +4 -0
  59. package/component/empty/README.md +183 -0
  60. package/component/empty/package.json +4 -0
  61. package/component/form/README.md +210 -0
  62. package/component/form/package.json +4 -0
  63. package/component/hover-card/README.md +146 -0
  64. package/component/hover-card/package.json +4 -0
  65. package/component/input/README.md +159 -0
  66. package/component/input/package.json +4 -0
  67. package/component/input-group/README.md +239 -0
  68. package/component/input-group/package.json +4 -0
  69. package/component/input-otp/README.md +278 -0
  70. package/component/input-otp/package.json +4 -0
  71. package/component/item/README.md +247 -0
  72. package/component/item/package.json +4 -0
  73. package/component/kanban/README.md +81 -0
  74. package/component/kanban/package.json +4 -0
  75. package/component/kbd/README.md +139 -0
  76. package/component/kbd/package.json +4 -0
  77. package/component/label/README.md +136 -0
  78. package/component/label/package.json +4 -0
  79. package/component/menubar/README.md +269 -0
  80. package/component/menubar/package.json +4 -0
  81. package/component/native-select/README.md +176 -0
  82. package/component/native-select/package.json +4 -0
  83. package/component/navigation-menu/README.md +160 -0
  84. package/component/navigation-menu/package.json +4 -0
  85. package/component/pagination/README.md +144 -0
  86. package/component/pagination/package.json +4 -0
  87. package/component/pillbox/README.md +67 -0
  88. package/component/pillbox/package.json +4 -0
  89. package/component/popover/README.md +43 -0
  90. package/component/popover/package.json +4 -0
  91. package/component/progress/README.md +160 -0
  92. package/component/progress/package.json +4 -0
  93. package/component/radio/README.md +209 -0
  94. package/component/radio/package.json +4 -0
  95. package/component/resizable/README.md +168 -0
  96. package/component/resizable/package.json +4 -0
  97. package/component/scroll-area/README.md +143 -0
  98. package/component/scroll-area/package.json +4 -0
  99. package/component/select/README.md +174 -0
  100. package/component/select/package.json +4 -0
  101. package/component/separator/README.md +170 -0
  102. package/component/separator/package.json +4 -0
  103. package/component/sheet/README.md +183 -0
  104. package/component/sheet/package.json +4 -0
  105. package/component/skeleton/README.md +158 -0
  106. package/component/skeleton/package.json +4 -0
  107. package/component/slider/README.md +207 -0
  108. package/component/slider/package.json +4 -0
  109. package/component/spinner/README.md +160 -0
  110. package/component/spinner/package.json +4 -0
  111. package/component/switch/README.md +166 -0
  112. package/component/switch/package.json +4 -0
  113. package/component/table/README.md +291 -0
  114. package/component/table/package.json +4 -0
  115. package/component/tabs/README.md +219 -0
  116. package/component/tabs/package.json +4 -0
  117. package/component/textarea/README.md +154 -0
  118. package/component/textarea/package.json +4 -0
  119. package/component/timeline/README.md +94 -0
  120. package/component/timeline/package.json +4 -0
  121. package/component/toast/README.md +321 -0
  122. package/component/toast/package.json +4 -0
  123. package/component/toggle/README.md +131 -0
  124. package/component/toggle/package.json +4 -0
  125. package/component/toggle-group/README.md +206 -0
  126. package/component/toggle-group/package.json +4 -0
  127. package/component/tooltip/README.md +211 -0
  128. package/component/tooltip/package.json +4 -0
  129. package/component/utils/package.json +4 -0
  130. package/fesm2022/ojiepermana-angular-component-accordion.mjs +189 -0
  131. package/fesm2022/ojiepermana-angular-component-accordion.mjs.map +1 -0
  132. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +276 -0
  133. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs.map +1 -0
  134. package/fesm2022/ojiepermana-angular-component-alert.mjs +99 -0
  135. package/fesm2022/ojiepermana-angular-component-alert.mjs.map +1 -0
  136. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +37 -0
  137. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs.map +1 -0
  138. package/fesm2022/ojiepermana-angular-component-avatar.mjs +139 -0
  139. package/fesm2022/ojiepermana-angular-component-avatar.mjs.map +1 -0
  140. package/fesm2022/ojiepermana-angular-component-badge.mjs +50 -0
  141. package/fesm2022/ojiepermana-angular-component-badge.mjs.map +1 -0
  142. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +200 -0
  143. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs.map +1 -0
  144. package/fesm2022/ojiepermana-angular-component-button-group.mjs +103 -0
  145. package/fesm2022/ojiepermana-angular-component-button-group.mjs.map +1 -0
  146. package/fesm2022/ojiepermana-angular-component-button.mjs +68 -0
  147. package/fesm2022/ojiepermana-angular-component-button.mjs.map +1 -0
  148. package/fesm2022/ojiepermana-angular-component-calendar.mjs +88 -0
  149. package/fesm2022/ojiepermana-angular-component-calendar.mjs.map +1 -0
  150. package/fesm2022/ojiepermana-angular-component-card.mjs +152 -0
  151. package/fesm2022/ojiepermana-angular-component-card.mjs.map +1 -0
  152. package/fesm2022/ojiepermana-angular-component-carousel.mjs +334 -0
  153. package/fesm2022/ojiepermana-angular-component-carousel.mjs.map +1 -0
  154. package/fesm2022/ojiepermana-angular-component-chart-area.mjs +6 -0
  155. package/fesm2022/ojiepermana-angular-component-chart-area.mjs.map +1 -0
  156. package/fesm2022/ojiepermana-angular-component-chart-bar.mjs +6 -0
  157. package/fesm2022/ojiepermana-angular-component-chart-bar.mjs.map +1 -0
  158. package/fesm2022/ojiepermana-angular-component-chart-line.mjs +6 -0
  159. package/fesm2022/ojiepermana-angular-component-chart-line.mjs.map +1 -0
  160. package/fesm2022/ojiepermana-angular-component-chart-pie.mjs +6 -0
  161. package/fesm2022/ojiepermana-angular-component-chart-pie.mjs.map +1 -0
  162. package/fesm2022/ojiepermana-angular-component-chart-radar.mjs +6 -0
  163. package/fesm2022/ojiepermana-angular-component-chart-radar.mjs.map +1 -0
  164. package/fesm2022/ojiepermana-angular-component-chart-radial.mjs +6 -0
  165. package/fesm2022/ojiepermana-angular-component-chart-radial.mjs.map +1 -0
  166. package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs +6 -0
  167. package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs.map +1 -0
  168. package/fesm2022/ojiepermana-angular-component-chart.mjs +3925 -0
  169. package/fesm2022/ojiepermana-angular-component-chart.mjs.map +1 -0
  170. package/fesm2022/ojiepermana-angular-component-checkbox.mjs +114 -0
  171. package/fesm2022/ojiepermana-angular-component-checkbox.mjs.map +1 -0
  172. package/fesm2022/ojiepermana-angular-component-collapsible.mjs +124 -0
  173. package/fesm2022/ojiepermana-angular-component-collapsible.mjs.map +1 -0
  174. package/fesm2022/ojiepermana-angular-component-combobox.mjs +272 -0
  175. package/fesm2022/ojiepermana-angular-component-combobox.mjs.map +1 -0
  176. package/fesm2022/ojiepermana-angular-component-command.mjs +293 -0
  177. package/fesm2022/ojiepermana-angular-component-command.mjs.map +1 -0
  178. package/fesm2022/ojiepermana-angular-component-composer.mjs +352 -0
  179. package/fesm2022/ojiepermana-angular-component-composer.mjs.map +1 -0
  180. package/fesm2022/ojiepermana-angular-component-context-menu.mjs +103 -0
  181. package/fesm2022/ojiepermana-angular-component-context-menu.mjs.map +1 -0
  182. package/fesm2022/ojiepermana-angular-component-date-picker.mjs +170 -0
  183. package/fesm2022/ojiepermana-angular-component-date-picker.mjs.map +1 -0
  184. package/fesm2022/ojiepermana-angular-component-dialog.mjs +279 -0
  185. package/fesm2022/ojiepermana-angular-component-dialog.mjs.map +1 -0
  186. package/fesm2022/ojiepermana-angular-component-drawer.mjs +6 -0
  187. package/fesm2022/ojiepermana-angular-component-drawer.mjs.map +1 -0
  188. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +492 -0
  189. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs.map +1 -0
  190. package/fesm2022/ojiepermana-angular-component-editor.mjs +717 -0
  191. package/fesm2022/ojiepermana-angular-component-editor.mjs.map +1 -0
  192. package/fesm2022/ojiepermana-angular-component-empty.mjs +145 -0
  193. package/fesm2022/ojiepermana-angular-component-empty.mjs.map +1 -0
  194. package/fesm2022/ojiepermana-angular-component-form.mjs +366 -0
  195. package/fesm2022/ojiepermana-angular-component-form.mjs.map +1 -0
  196. package/fesm2022/ojiepermana-angular-component-hover-card.mjs +297 -0
  197. package/fesm2022/ojiepermana-angular-component-hover-card.mjs.map +1 -0
  198. package/fesm2022/ojiepermana-angular-component-input-group.mjs +179 -0
  199. package/fesm2022/ojiepermana-angular-component-input-group.mjs.map +1 -0
  200. package/fesm2022/ojiepermana-angular-component-input-otp.mjs +514 -0
  201. package/fesm2022/ojiepermana-angular-component-input-otp.mjs.map +1 -0
  202. package/fesm2022/ojiepermana-angular-component-input.mjs +45 -0
  203. package/fesm2022/ojiepermana-angular-component-input.mjs.map +1 -0
  204. package/fesm2022/ojiepermana-angular-component-item.mjs +264 -0
  205. package/fesm2022/ojiepermana-angular-component-item.mjs.map +1 -0
  206. package/fesm2022/ojiepermana-angular-component-kanban.mjs +314 -0
  207. package/fesm2022/ojiepermana-angular-component-kanban.mjs.map +1 -0
  208. package/fesm2022/ojiepermana-angular-component-kbd.mjs +55 -0
  209. package/fesm2022/ojiepermana-angular-component-kbd.mjs.map +1 -0
  210. package/fesm2022/ojiepermana-angular-component-label.mjs +33 -0
  211. package/fesm2022/ojiepermana-angular-component-label.mjs.map +1 -0
  212. package/fesm2022/ojiepermana-angular-component-menubar.mjs +308 -0
  213. package/fesm2022/ojiepermana-angular-component-menubar.mjs.map +1 -0
  214. package/fesm2022/ojiepermana-angular-component-native-select.mjs +67 -0
  215. package/fesm2022/ojiepermana-angular-component-native-select.mjs.map +1 -0
  216. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +413 -0
  217. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs.map +1 -0
  218. package/fesm2022/ojiepermana-angular-component-pagination.mjs +226 -0
  219. package/fesm2022/ojiepermana-angular-component-pagination.mjs.map +1 -0
  220. package/fesm2022/ojiepermana-angular-component-pillbox.mjs +812 -0
  221. package/fesm2022/ojiepermana-angular-component-pillbox.mjs.map +1 -0
  222. package/fesm2022/ojiepermana-angular-component-popover.mjs +169 -0
  223. package/fesm2022/ojiepermana-angular-component-popover.mjs.map +1 -0
  224. package/fesm2022/ojiepermana-angular-component-progress.mjs +60 -0
  225. package/fesm2022/ojiepermana-angular-component-progress.mjs.map +1 -0
  226. package/fesm2022/ojiepermana-angular-component-radio.mjs +122 -0
  227. package/fesm2022/ojiepermana-angular-component-radio.mjs.map +1 -0
  228. package/fesm2022/ojiepermana-angular-component-resizable.mjs +481 -0
  229. package/fesm2022/ojiepermana-angular-component-resizable.mjs.map +1 -0
  230. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +54 -0
  231. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs.map +1 -0
  232. package/fesm2022/ojiepermana-angular-component-select.mjs +176 -0
  233. package/fesm2022/ojiepermana-angular-component-select.mjs.map +1 -0
  234. package/fesm2022/ojiepermana-angular-component-separator.mjs +37 -0
  235. package/fesm2022/ojiepermana-angular-component-separator.mjs.map +1 -0
  236. package/fesm2022/ojiepermana-angular-component-sheet.mjs +284 -0
  237. package/fesm2022/ojiepermana-angular-component-sheet.mjs.map +1 -0
  238. package/fesm2022/ojiepermana-angular-component-skeleton.mjs +31 -0
  239. package/fesm2022/ojiepermana-angular-component-skeleton.mjs.map +1 -0
  240. package/fesm2022/ojiepermana-angular-component-slider.mjs +423 -0
  241. package/fesm2022/ojiepermana-angular-component-slider.mjs.map +1 -0
  242. package/fesm2022/ojiepermana-angular-component-spinner.mjs +60 -0
  243. package/fesm2022/ojiepermana-angular-component-spinner.mjs.map +1 -0
  244. package/fesm2022/ojiepermana-angular-component-switch.mjs +116 -0
  245. package/fesm2022/ojiepermana-angular-component-switch.mjs.map +1 -0
  246. package/fesm2022/ojiepermana-angular-component-table.mjs +155 -0
  247. package/fesm2022/ojiepermana-angular-component-table.mjs.map +1 -0
  248. package/fesm2022/ojiepermana-angular-component-tabs.mjs +272 -0
  249. package/fesm2022/ojiepermana-angular-component-tabs.mjs.map +1 -0
  250. package/fesm2022/ojiepermana-angular-component-textarea.mjs +39 -0
  251. package/fesm2022/ojiepermana-angular-component-textarea.mjs.map +1 -0
  252. package/fesm2022/ojiepermana-angular-component-timeline.mjs +237 -0
  253. package/fesm2022/ojiepermana-angular-component-timeline.mjs.map +1 -0
  254. package/fesm2022/ojiepermana-angular-component-toast.mjs +71 -0
  255. package/fesm2022/ojiepermana-angular-component-toast.mjs.map +1 -0
  256. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +289 -0
  257. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs.map +1 -0
  258. package/fesm2022/ojiepermana-angular-component-toggle.mjs +82 -0
  259. package/fesm2022/ojiepermana-angular-component-toggle.mjs.map +1 -0
  260. package/fesm2022/ojiepermana-angular-component-tooltip.mjs +354 -0
  261. package/fesm2022/ojiepermana-angular-component-tooltip.mjs.map +1 -0
  262. package/fesm2022/ojiepermana-angular-component-utils.mjs +13 -0
  263. package/fesm2022/ojiepermana-angular-component-utils.mjs.map +1 -0
  264. package/fesm2022/ojiepermana-angular-generator-api.mjs +68 -0
  265. package/fesm2022/ojiepermana-angular-generator-api.mjs.map +1 -0
  266. package/fesm2022/ojiepermana-angular-layout-component.mjs +602 -0
  267. package/fesm2022/ojiepermana-angular-layout-component.mjs.map +1 -0
  268. package/fesm2022/ojiepermana-angular-layout-provider.mjs +21 -0
  269. package/fesm2022/ojiepermana-angular-layout-provider.mjs.map +1 -0
  270. package/fesm2022/ojiepermana-angular-layout-services.mjs +116 -0
  271. package/fesm2022/ojiepermana-angular-layout-services.mjs.map +1 -0
  272. package/fesm2022/ojiepermana-angular-layout-shell.mjs +48 -0
  273. package/fesm2022/ojiepermana-angular-layout-shell.mjs.map +1 -0
  274. package/fesm2022/ojiepermana-angular-layout-token-directive.mjs +30 -0
  275. package/fesm2022/ojiepermana-angular-layout-token-directive.mjs.map +1 -0
  276. package/fesm2022/ojiepermana-angular-layout-token.mjs +33 -0
  277. package/fesm2022/ojiepermana-angular-layout-token.mjs.map +1 -0
  278. package/fesm2022/ojiepermana-angular-layout-type-empty.mjs +49 -0
  279. package/fesm2022/ojiepermana-angular-layout-type-empty.mjs.map +1 -0
  280. package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs +128 -0
  281. package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs.map +1 -0
  282. package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs +123 -0
  283. package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs.map +1 -0
  284. package/fesm2022/ojiepermana-angular-layout.mjs +485 -0
  285. package/fesm2022/ojiepermana-angular-layout.mjs.map +1 -0
  286. package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs +334 -0
  287. package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs.map +1 -0
  288. package/fesm2022/ojiepermana-angular-navigation-icon.mjs +63 -0
  289. package/fesm2022/ojiepermana-angular-navigation-icon.mjs.map +1 -0
  290. package/fesm2022/ojiepermana-angular-navigation-item.mjs +559 -0
  291. package/fesm2022/ojiepermana-angular-navigation-item.mjs.map +1 -0
  292. package/fesm2022/ojiepermana-angular-navigation-service.mjs +213 -0
  293. package/fesm2022/ojiepermana-angular-navigation-service.mjs.map +1 -0
  294. package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs +401 -0
  295. package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs.map +1 -0
  296. package/fesm2022/ojiepermana-angular-navigation-topbar.mjs +670 -0
  297. package/fesm2022/ojiepermana-angular-navigation-topbar.mjs.map +1 -0
  298. package/fesm2022/ojiepermana-angular-navigation-types.mjs +4 -0
  299. package/fesm2022/ojiepermana-angular-navigation-types.mjs.map +1 -0
  300. package/fesm2022/ojiepermana-angular-theme-provider.mjs +35 -0
  301. package/fesm2022/ojiepermana-angular-theme-provider.mjs.map +1 -0
  302. package/fesm2022/ojiepermana-angular-theme-services.mjs +294 -0
  303. package/fesm2022/ojiepermana-angular-theme-services.mjs.map +1 -0
  304. package/fesm2022/ojiepermana-angular-theme-token.mjs +56 -0
  305. package/fesm2022/ojiepermana-angular-theme-token.mjs.map +1 -0
  306. package/fesm2022/ojiepermana-angular-theme.mjs +390 -0
  307. package/fesm2022/ojiepermana-angular-theme.mjs.map +1 -0
  308. package/fesm2022/ojiepermana-angular.mjs +22 -0
  309. package/fesm2022/ojiepermana-angular.mjs.map +1 -0
  310. package/generator/api/README.md +252 -0
  311. package/generator/api/bin/package.json +3 -0
  312. package/generator/api/bin/schematics/init/index.js +90 -0
  313. package/generator/api/bin/schematics/ng-add/index.js +131 -0
  314. package/generator/api/bin/schematics/sdk/index.js +76 -0
  315. package/generator/api/bin/src/config/loader.js +41 -0
  316. package/generator/api/bin/src/config/schema.js +57 -0
  317. package/generator/api/bin/src/emit/client.js +248 -0
  318. package/generator/api/bin/src/emit/metadata.js +295 -0
  319. package/generator/api/bin/src/emit/models.js +106 -0
  320. package/generator/api/bin/src/emit/navigation.js +56 -0
  321. package/generator/api/bin/src/emit/operations.js +122 -0
  322. package/generator/api/bin/src/emit/public-api.js +54 -0
  323. package/generator/api/bin/src/emit/services.js +87 -0
  324. package/generator/api/bin/src/engine.js +65 -0
  325. package/generator/api/bin/src/layout/per-domain.js +359 -0
  326. package/generator/api/bin/src/parser/bundle.js +25 -0
  327. package/generator/api/bin/src/parser/ir.js +320 -0
  328. package/generator/api/bin/src/parser/types.js +7 -0
  329. package/generator/api/bin/src/render/template.js +58 -0
  330. package/generator/api/bin/src/writer/index.js +278 -0
  331. package/generator/api/package.json +4 -0
  332. package/generator/api/schematics/init/schema.json +19 -0
  333. package/generator/api/schematics/ng-add/schema.json +14 -0
  334. package/generator/api/schematics/sdk/schema.json +19 -0
  335. package/generator/api/sdk.config.example.json +24 -0
  336. package/generator/guide/README.md +84 -0
  337. package/generator/guide/bin/package.json +3 -0
  338. package/generator/guide/bin/schematics/build/index.js +36 -0
  339. package/generator/guide/bin/schematics/init/index.js +70 -0
  340. package/generator/guide/bin/src/config/loader.js +50 -0
  341. package/generator/guide/bin/src/config/schema.js +12 -0
  342. package/generator/guide/bin/src/engine/component.js +74 -0
  343. package/generator/guide/bin/src/engine/frontmatter.js +42 -0
  344. package/generator/guide/bin/src/engine/index.js +42 -0
  345. package/generator/guide/bin/src/engine/naming.js +39 -0
  346. package/generator/guide/bin/src/engine/render.js +36 -0
  347. package/generator/guide/bin/src/engine/routes.js +106 -0
  348. package/generator/guide/bin/src/engine/walk.js +35 -0
  349. package/generator/guide/guide.config.example.json +9 -0
  350. package/generator/guide/schematics/build/schema.json +14 -0
  351. package/generator/guide/schematics/init/schema.json +19 -0
  352. package/layout/component/package.json +4 -0
  353. package/layout/package.json +4 -0
  354. package/layout/provider/package.json +4 -0
  355. package/layout/services/package.json +4 -0
  356. package/layout/shell/package.json +4 -0
  357. package/layout/token/directive/package.json +4 -0
  358. package/layout/token/package.json +4 -0
  359. package/layout/type/empty/package.json +4 -0
  360. package/layout/type/horizontal/package.json +4 -0
  361. package/layout/type/vertical/package.json +4 -0
  362. package/navigation/demo-data/package.json +4 -0
  363. package/navigation/icon/package.json +4 -0
  364. package/navigation/item/package.json +4 -0
  365. package/navigation/service/package.json +4 -0
  366. package/navigation/sidebar/package.json +4 -0
  367. package/navigation/topbar/README.md +196 -0
  368. package/navigation/topbar/package.json +4 -0
  369. package/navigation/types/package.json +4 -0
  370. package/package.json +433 -18
  371. package/theme/README.md +174 -0
  372. package/theme/package.json +4 -0
  373. package/theme/provider/package.json +4 -0
  374. package/theme/services/package.json +4 -0
  375. package/theme/styles/foundation/components.css +81 -0
  376. package/theme/styles/foundation/layers.css +15 -0
  377. package/theme/styles/foundation/tokens.css +55 -0
  378. package/theme/styles/index.css +37 -0
  379. package/theme/styles/integrations/material/autocomplete.css +178 -0
  380. package/theme/styles/integrations/material/button.css +468 -0
  381. package/theme/styles/integrations/material/dialog.css +152 -0
  382. package/theme/styles/integrations/material/select.css +175 -0
  383. package/theme/styles/integrations/material/slide-toggle.css +234 -0
  384. package/theme/styles/integrations/material/slider.css +194 -0
  385. package/theme/styles/integrations/material/tabs.css +229 -0
  386. package/theme/styles/integrations/material.css +264 -0
  387. package/theme/styles/integrations/tailwind.css +114 -0
  388. package/theme/styles/variants/color/amber.css +31 -0
  389. package/theme/styles/variants/color/base.css +36 -0
  390. package/theme/styles/variants/color/blue.css +31 -0
  391. package/theme/styles/variants/color/cyan.css +31 -0
  392. package/theme/styles/variants/color/emerald.css +31 -0
  393. package/theme/styles/variants/color/fuchsia.css +31 -0
  394. package/theme/styles/variants/color/green.css +31 -0
  395. package/theme/styles/variants/color/index.css +22 -0
  396. package/theme/styles/variants/color/indigo.css +31 -0
  397. package/theme/styles/variants/color/lime.css +31 -0
  398. package/theme/styles/variants/color/orange.css +31 -0
  399. package/theme/styles/variants/color/pink.css +31 -0
  400. package/theme/styles/variants/color/purple.css +31 -0
  401. package/theme/styles/variants/color/red.css +31 -0
  402. package/theme/styles/variants/color/rose.css +31 -0
  403. package/theme/styles/variants/color/sky.css +31 -0
  404. package/theme/styles/variants/color/teal.css +31 -0
  405. package/theme/styles/variants/color/violet.css +31 -0
  406. package/theme/styles/variants/color/yellow.css +31 -0
  407. package/theme/styles/variants/mode/dark.css +20 -0
  408. package/theme/styles/variants/mode/index.css +6 -0
  409. package/theme/styles/variants/mode/light.css +24 -0
  410. package/theme/styles/variants/style/brutal.css +50 -0
  411. package/theme/styles/variants/style/default.css +54 -0
  412. package/theme/styles/variants/style/index.css +8 -0
  413. package/theme/styles/variants/style/sharp.css +50 -0
  414. package/theme/styles/variants/style/soft.css +50 -0
  415. package/theme/token/package.json +4 -0
  416. package/types/ojiepermana-angular-component-accordion.d.ts +51 -0
  417. package/types/ojiepermana-angular-component-alert-dialog.d.ts +93 -0
  418. package/types/ojiepermana-angular-component-alert.d.ts +37 -0
  419. package/types/ojiepermana-angular-component-aspect-ratio.d.ts +12 -0
  420. package/types/ojiepermana-angular-component-avatar.d.ts +51 -0
  421. package/types/ojiepermana-angular-component-badge.d.ts +19 -0
  422. package/types/ojiepermana-angular-component-breadcrumb.d.ts +46 -0
  423. package/types/ojiepermana-angular-component-button-group.d.ts +26 -0
  424. package/types/ojiepermana-angular-component-button.d.ts +22 -0
  425. package/types/ojiepermana-angular-component-calendar.d.ts +33 -0
  426. package/types/ojiepermana-angular-component-card.d.ts +60 -0
  427. package/types/ojiepermana-angular-component-carousel.d.ts +86 -0
  428. package/types/ojiepermana-angular-component-chart-area.d.ts +1 -0
  429. package/types/ojiepermana-angular-component-chart-bar.d.ts +1 -0
  430. package/types/ojiepermana-angular-component-chart-line.d.ts +1 -0
  431. package/types/ojiepermana-angular-component-chart-pie.d.ts +1 -0
  432. package/types/ojiepermana-angular-component-chart-radar.d.ts +1 -0
  433. package/types/ojiepermana-angular-component-chart-radial.d.ts +1 -0
  434. package/types/ojiepermana-angular-component-chart-scatter.d.ts +1 -0
  435. package/types/ojiepermana-angular-component-chart.d.ts +1094 -0
  436. package/types/ojiepermana-angular-component-checkbox.d.ts +35 -0
  437. package/types/ojiepermana-angular-component-collapsible.d.ts +42 -0
  438. package/types/ojiepermana-angular-component-combobox.d.ts +50 -0
  439. package/types/ojiepermana-angular-component-command.d.ts +99 -0
  440. package/types/ojiepermana-angular-component-composer.d.ts +90 -0
  441. package/types/ojiepermana-angular-component-context-menu.d.ts +35 -0
  442. package/types/ojiepermana-angular-component-date-picker.d.ts +41 -0
  443. package/types/ojiepermana-angular-component-dialog.d.ts +87 -0
  444. package/types/ojiepermana-angular-component-drawer.d.ts +1 -0
  445. package/types/ojiepermana-angular-component-dropdown-menu.d.ts +137 -0
  446. package/types/ojiepermana-angular-component-editor.d.ts +123 -0
  447. package/types/ojiepermana-angular-component-empty.d.ts +50 -0
  448. package/types/ojiepermana-angular-component-form.d.ts +141 -0
  449. package/types/ojiepermana-angular-component-hover-card.d.ts +74 -0
  450. package/types/ojiepermana-angular-component-input-group.d.ts +51 -0
  451. package/types/ojiepermana-angular-component-input-otp.d.ts +136 -0
  452. package/types/ojiepermana-angular-component-input.d.ts +16 -0
  453. package/types/ojiepermana-angular-component-item.d.ts +88 -0
  454. package/types/ojiepermana-angular-component-kanban.d.ts +70 -0
  455. package/types/ojiepermana-angular-component-kbd.d.ts +16 -0
  456. package/types/ojiepermana-angular-component-label.d.ts +11 -0
  457. package/types/ojiepermana-angular-component-menubar.d.ts +67 -0
  458. package/types/ojiepermana-angular-component-native-select.d.ts +26 -0
  459. package/types/ojiepermana-angular-component-navigation-menu.d.ts +96 -0
  460. package/types/ojiepermana-angular-component-pagination.d.ts +33 -0
  461. package/types/ojiepermana-angular-component-pillbox.d.ts +157 -0
  462. package/types/ojiepermana-angular-component-popover.d.ts +43 -0
  463. package/types/ojiepermana-angular-component-progress.d.ts +17 -0
  464. package/types/ojiepermana-angular-component-radio.d.ts +40 -0
  465. package/types/ojiepermana-angular-component-resizable.d.ts +99 -0
  466. package/types/ojiepermana-angular-component-scroll-area.d.ts +19 -0
  467. package/types/ojiepermana-angular-component-select.d.ts +57 -0
  468. package/types/ojiepermana-angular-component-separator.d.ts +14 -0
  469. package/types/ojiepermana-angular-component-sheet.d.ts +76 -0
  470. package/types/ojiepermana-angular-component-skeleton.d.ts +10 -0
  471. package/types/ojiepermana-angular-component-slider.d.ts +74 -0
  472. package/types/ojiepermana-angular-component-spinner.d.ts +13 -0
  473. package/types/ojiepermana-angular-component-switch.d.ts +40 -0
  474. package/types/ojiepermana-angular-component-table.d.ts +52 -0
  475. package/types/ojiepermana-angular-component-tabs.d.ts +92 -0
  476. package/types/ojiepermana-angular-component-textarea.d.ts +12 -0
  477. package/types/ojiepermana-angular-component-timeline.d.ts +63 -0
  478. package/types/ojiepermana-angular-component-toast.d.ts +38 -0
  479. package/types/ojiepermana-angular-component-toggle-group.d.ts +89 -0
  480. package/types/ojiepermana-angular-component-toggle.d.ts +25 -0
  481. package/types/ojiepermana-angular-component-tooltip.d.ts +89 -0
  482. package/types/ojiepermana-angular-component-utils.d.ts +5 -0
  483. package/types/ojiepermana-angular-generator-api.d.ts +86 -0
  484. package/types/ojiepermana-angular-layout-component.d.ts +205 -0
  485. package/types/ojiepermana-angular-layout-provider.d.ts +6 -0
  486. package/types/ojiepermana-angular-layout-services.d.ts +25 -0
  487. package/types/ojiepermana-angular-layout-shell.d.ts +8 -0
  488. package/types/ojiepermana-angular-layout-token-directive.d.ts +13 -0
  489. package/types/ojiepermana-angular-layout-token.d.ts +36 -0
  490. package/types/ojiepermana-angular-layout-type-empty.d.ts +22 -0
  491. package/types/ojiepermana-angular-layout-type-horizontal.d.ts +36 -0
  492. package/types/ojiepermana-angular-layout-type-vertical.d.ts +38 -0
  493. package/types/ojiepermana-angular-layout.d.ts +164 -0
  494. package/types/ojiepermana-angular-navigation-demo-data.d.ts +5 -0
  495. package/types/ojiepermana-angular-navigation-icon.d.ts +17 -0
  496. package/types/ojiepermana-angular-navigation-item.d.ts +54 -0
  497. package/types/ojiepermana-angular-navigation-service.d.ts +77 -0
  498. package/types/ojiepermana-angular-navigation-sidebar.d.ts +75 -0
  499. package/types/ojiepermana-angular-navigation-topbar.d.ts +74 -0
  500. package/types/ojiepermana-angular-navigation-types.d.ts +135 -0
  501. package/types/ojiepermana-angular-theme-provider.d.ts +11 -0
  502. package/types/ojiepermana-angular-theme-services.d.ts +55 -0
  503. package/types/ojiepermana-angular-theme-token.d.ts +57 -0
  504. package/types/ojiepermana-angular-theme.d.ts +116 -0
  505. package/types/ojiepermana-angular.d.ts +3 -0
  506. package/fesm2022/edsis-angular-block-shell.mjs +0 -703
  507. package/fesm2022/edsis-angular-block-shell.mjs.map +0 -1
  508. package/fesm2022/edsis-angular-module-auth.mjs +0 -1560
  509. package/fesm2022/edsis-angular-module-auth.mjs.map +0 -1
  510. package/fesm2022/edsis-angular.mjs +0 -8
  511. package/fesm2022/edsis-angular.mjs.map +0 -1
  512. package/types/edsis-angular-block-shell.d.ts +0 -114
  513. package/types/edsis-angular-module-auth.d.ts +0 -140
  514. package/types/edsis-angular.d.ts +0 -2
@@ -1,703 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';
3
- import { RouterLink, RouterOutlet } from '@angular/router';
4
- import { LayoutService, UiLayoutComponent, UiLayoutVerticalComponent, UiLayoutHorizontalComponent, UiLayoutEmptyComponent, UiLayoutNavComponent, UiLayoutContentComponent } from '@edsis/ui/layout';
5
- import { UiNavCollapseRootDirective, UiNavCollapseExpandedDirective, UiNavComponent, UiNavHeaderComponent, UiNavFooterComponent } from '@edsis/ui/nav';
6
- import { PopoverContentDirective, PopoverTriggerDirective } from '@edsis/ui/popover';
7
- import { AspectRatioComponent } from '@edsis/ui/aspect-ratio';
8
-
9
- class BlockShellNavAvatarComponent {
10
- initials = input.required(...(ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []));
11
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellNavAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
12
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.15", type: BlockShellNavAvatarComponent, isStandalone: true, selector: "block-shell-nav-avatar", inputs: { initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
13
- <span
14
- class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-sm bg-primary text-xs font-semibold text-primary-foreground">
15
- {{ initials() }}
16
- </span>
17
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
18
- }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellNavAvatarComponent, decorators: [{
20
- type: Component,
21
- args: [{
22
- selector: 'block-shell-nav-avatar',
23
- host: {
24
- class: 'contents',
25
- },
26
- template: `
27
- <span
28
- class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-sm bg-primary text-xs font-semibold text-primary-foreground">
29
- {{ initials() }}
30
- </span>
31
- `,
32
- changeDetection: ChangeDetectionStrategy.OnPush,
33
- }]
34
- }], propDecorators: { initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: true }] }] } });
35
-
36
- class BlockShellNavMetaComponent {
37
- name = input.required(...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
38
- subtitle = input.required(...(ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []));
39
- containerClass = input('min-w-0', ...(ngDevMode ? [{ debugName: "containerClass" }] : /* istanbul ignore next */ []));
40
- subtitleClass = input('truncate text-xs text-muted-foreground', ...(ngDevMode ? [{ debugName: "subtitleClass" }] : /* istanbul ignore next */ []));
41
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellNavMetaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
42
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.15", type: BlockShellNavMetaComponent, isStandalone: true, selector: "block-shell-nav-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 } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
43
- <div [class]="containerClass()">
44
- <p class="truncate text-sm font-semibold tracking-tight text-foreground">{{ name() }}</p>
45
- <p [class]="subtitleClass()">{{ subtitle() }}</p>
46
- </div>
47
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
48
- }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellNavMetaComponent, decorators: [{
50
- type: Component,
51
- args: [{
52
- selector: 'block-shell-nav-meta',
53
- host: {
54
- class: 'contents',
55
- },
56
- template: `
57
- <div [class]="containerClass()">
58
- <p class="truncate text-sm font-semibold tracking-tight text-foreground">{{ name() }}</p>
59
- <p [class]="subtitleClass()">{{ subtitle() }}</p>
60
- </div>
61
- `,
62
- changeDetection: ChangeDetectionStrategy.OnPush,
63
- }]
64
- }], 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 }] }] } });
65
-
66
- class BlockShellNavFooterComponent {
67
- name = input.required(...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
68
- subtitle = input.required(...(ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []));
69
- initials = input(undefined, ...(ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []));
70
- collapsible = input(false, ...(ngDevMode ? [{ debugName: "collapsible" }] : /* istanbul ignore next */ []));
71
- desktopOnly = input(false, ...(ngDevMode ? [{ debugName: "desktopOnly" }] : /* istanbul ignore next */ []));
72
- resolvedInitials = computed(() => {
73
- const explicitInitials = this.initials()?.trim();
74
- if (explicitInitials) {
75
- return explicitInitials;
76
- }
77
- const words = this.name()
78
- .trim()
79
- .split(/\s+/)
80
- .filter((word) => word.length > 0);
81
- return ((words[0]?.[0] ?? '') + (words[1]?.[0] ?? words[0]?.[1] ?? '')).toUpperCase();
82
- }, ...(ngDevMode ? [{ debugName: "resolvedInitials" }] : /* istanbul ignore next */ []));
83
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellNavFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
84
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: BlockShellNavFooterComponent, isStandalone: true, selector: "block-shell-nav-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 }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, desktopOnly: { classPropertyName: "desktopOnly", publicName: "desktopOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
85
- @if (collapsible()) {
86
- <div uiNavCollapseRoot class="flex items-center gap-3">
87
- <block-shell-nav-avatar [initials]="resolvedInitials()" />
88
-
89
- <div *uiNavCollapseExpanded class="min-w-0">
90
- <block-shell-nav-meta
91
- [name]="name()"
92
- [subtitle]="subtitle()"
93
- [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'" />
94
- </div>
95
- </div>
96
- } @else {
97
- <div class="flex items-center gap-3">
98
- <block-shell-nav-avatar [initials]="resolvedInitials()" />
99
- <block-shell-nav-meta
100
- [name]="name()"
101
- [subtitle]="subtitle()"
102
- [containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'" />
103
- </div>
104
- }
105
- `, isInline: true, dependencies: [{ kind: "directive", type: UiNavCollapseRootDirective, selector: "[uiNavCollapseRoot]" }, { kind: "directive", type: UiNavCollapseExpandedDirective, selector: "[uiNavCollapseExpanded]" }, { kind: "component", type: BlockShellNavAvatarComponent, selector: "block-shell-nav-avatar", inputs: ["initials"] }, { kind: "component", type: BlockShellNavMetaComponent, selector: "block-shell-nav-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
106
- }
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellNavFooterComponent, decorators: [{
108
- type: Component,
109
- args: [{
110
- selector: 'block-shell-nav-footer',
111
- imports: [
112
- UiNavCollapseRootDirective,
113
- UiNavCollapseExpandedDirective,
114
- BlockShellNavAvatarComponent,
115
- BlockShellNavMetaComponent,
116
- ],
117
- host: {
118
- class: 'contents',
119
- },
120
- template: `
121
- @if (collapsible()) {
122
- <div uiNavCollapseRoot class="flex items-center gap-3">
123
- <block-shell-nav-avatar [initials]="resolvedInitials()" />
124
-
125
- <div *uiNavCollapseExpanded class="min-w-0">
126
- <block-shell-nav-meta
127
- [name]="name()"
128
- [subtitle]="subtitle()"
129
- [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'" />
130
- </div>
131
- </div>
132
- } @else {
133
- <div class="flex items-center gap-3">
134
- <block-shell-nav-avatar [initials]="resolvedInitials()" />
135
- <block-shell-nav-meta
136
- [name]="name()"
137
- [subtitle]="subtitle()"
138
- [containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'" />
139
- </div>
140
- }
141
- `,
142
- changeDetection: ChangeDetectionStrategy.OnPush,
143
- }]
144
- }], 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 }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }], desktopOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "desktopOnly", required: false }] }] } });
145
-
146
- class BlockShellLogoComponent {
147
- text = input('ETOS', ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
148
- homePath = input('/', ...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
149
- ariaLabel = input('Buka aplikasi', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
150
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellLogoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
151
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.15", 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: `
152
- <div class="w-8 shrink-0">
153
- <ui-aspect-ratio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
154
- <div
155
- class="flex h-full w-full items-center justify-center px-0.5 text-[0.58rem] font-black leading-none tracking-[-0.08em] text-primary-foreground"
156
- style="font-family: 'Arial Black', Arial, sans-serif;">
157
- {{ text() }}
158
- </div>
159
- </ui-aspect-ratio>
160
- </div>
161
- `, isInline: true, dependencies: [{ kind: "component", type: AspectRatioComponent, selector: "ui-aspect-ratio", inputs: ["ratio", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
162
- }
163
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellLogoComponent, decorators: [{
164
- type: Component,
165
- args: [{
166
- selector: 'block-shell-logo',
167
- imports: [AspectRatioComponent],
168
- host: {
169
- class: 'contents',
170
- },
171
- template: `
172
- <div class="w-8 shrink-0">
173
- <ui-aspect-ratio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
174
- <div
175
- class="flex h-full w-full items-center justify-center px-0.5 text-[0.58rem] font-black leading-none tracking-[-0.08em] text-primary-foreground"
176
- style="font-family: 'Arial Black', Arial, sans-serif;">
177
- {{ text() }}
178
- </div>
179
- </ui-aspect-ratio>
180
- </div>
181
- `,
182
- changeDetection: ChangeDetectionStrategy.OnPush,
183
- }]
184
- }], 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 }] }] } });
185
-
186
- class BlockShellNavHeaderComponent {
187
- name = input.required(...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
188
- subtitle = input.required(...(ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []));
189
- logoText = input('ETOS', ...(ngDevMode ? [{ debugName: "logoText" }] : /* istanbul ignore next */ []));
190
- homePath = input('/', ...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
191
- collapsible = input(false, ...(ngDevMode ? [{ debugName: "collapsible" }] : /* istanbul ignore next */ []));
192
- workspaceLinks = input([], ...(ngDevMode ? [{ debugName: "workspaceLinks" }] : /* istanbul ignore next */ []));
193
- homeLinkAriaLabel = computed(() => `Buka ${this.name()}`, ...(ngDevMode ? [{ debugName: "homeLinkAriaLabel" }] : /* istanbul ignore next */ []));
194
- hasWorkspaceLinks = computed(() => this.workspaceLinks().length > 0, ...(ngDevMode ? [{ debugName: "hasWorkspaceLinks" }] : /* istanbul ignore next */ []));
195
- workspaceTriggerAriaLabel = computed(() => 'Buka daftar aplikasi', ...(ngDevMode ? [{ debugName: "workspaceTriggerAriaLabel" }] : /* istanbul ignore next */ []));
196
- isActiveWorkspace(path) {
197
- const activeHomePath = this.homePath();
198
- return path === activeHomePath || path.startsWith(`${activeHomePath}/`);
199
- }
200
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellNavHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
201
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: BlockShellNavHeaderComponent, isStandalone: true, selector: "block-shell-nav-header", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", 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 }, workspaceLinks: { classPropertyName: "workspaceLinks", publicName: "workspaceLinks", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
202
- <ng-template uiPopoverContent #workspaceSwitcher="uiPopoverContent">
203
- <div
204
- data-block-shell-workspace-panel
205
- class="w-72 space-y-1 rounded-none border border-border bg-popover p-2 text-popover-foreground shadow-lg">
206
- @for (workspace of workspaceLinks(); track workspace.id) {
207
- <a
208
- [routerLink]="workspace.path"
209
- [attr.aria-current]="isActiveWorkspace(workspace.path) ? 'page' : null"
210
- [attr.data-block-shell-workspace-link]="workspace.id"
211
- class="block rounded-lg border px-3 py-2 transition-colors"
212
- [class.border-primary]="isActiveWorkspace(workspace.path)"
213
- [class.bg-primary/5]="isActiveWorkspace(workspace.path)"
214
- [class.text-foreground]="isActiveWorkspace(workspace.path)"
215
- [class.border-transparent]="!isActiveWorkspace(workspace.path)"
216
- [class.hover:bg-muted]="!isActiveWorkspace(workspace.path)">
217
- <span class="block text-sm font-semibold tracking-tight">{{ workspace.label }}</span>
218
- <span class="mt-1 block text-xs text-muted-foreground">{{ workspace.description }}</span>
219
- </a>
220
- }
221
- </div>
222
- </ng-template>
223
-
224
- @if (collapsible()) {
225
- <div uiNavCollapseRoot class="flex items-center gap-3">
226
- @if (hasWorkspaceLinks()) {
227
- <button
228
- type="button"
229
- [uiPopoverTrigger]="workspaceSwitcher"
230
- side="bottom"
231
- align="start"
232
- [attr.aria-label]="workspaceTriggerAriaLabel()"
233
- data-block-shell-workspace-trigger
234
- class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2">
235
- <block-shell-logo [text]="logoText()" />
236
- </button>
237
- } @else {
238
- <block-shell-logo [text]="logoText()" />
239
- }
240
-
241
- <div *uiNavCollapseExpanded class="min-w-0 flex-1">
242
- <a
243
- [routerLink]="homePath()"
244
- [attr.aria-label]="homeLinkAriaLabel()"
245
- data-block-shell-home-link
246
- 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">
247
- <block-shell-nav-meta
248
- [name]="subtitle()"
249
- [subtitle]="name()"
250
- [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'" />
251
- </a>
252
- </div>
253
- </div>
254
- } @else {
255
- <div class="flex items-center gap-3">
256
- @if (hasWorkspaceLinks()) {
257
- <button
258
- type="button"
259
- [uiPopoverTrigger]="workspaceSwitcher"
260
- side="bottom"
261
- align="start"
262
- [attr.aria-label]="workspaceTriggerAriaLabel()"
263
- data-block-shell-workspace-trigger
264
- class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2">
265
- <block-shell-logo [text]="logoText()" />
266
- </button>
267
- } @else {
268
- <block-shell-logo [text]="logoText()" />
269
- }
270
-
271
- <a
272
- [routerLink]="homePath()"
273
- [attr.aria-label]="homeLinkAriaLabel()"
274
- data-block-shell-home-link
275
- 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">
276
- <block-shell-nav-meta [name]="subtitle()" [subtitle]="name()" />
277
- </a>
278
- </div>
279
- }
280
- `, isInline: true, dependencies: [{ kind: "directive", type: UiNavCollapseRootDirective, selector: "[uiNavCollapseRoot]" }, { kind: "directive", type: UiNavCollapseExpandedDirective, selector: "[uiNavCollapseExpanded]" }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: PopoverContentDirective, selector: "ng-template[uiPopoverContent]", exportAs: ["uiPopoverContent"] }, { kind: "directive", type: PopoverTriggerDirective, selector: "[uiPopoverTrigger]", inputs: ["uiPopoverTrigger", "side", "align", "sideOffset", "disabled"], outputs: ["openedChange"], exportAs: ["uiPopoverTrigger"] }, { kind: "component", type: BlockShellLogoComponent, selector: "block-shell-logo", inputs: ["text", "homePath", "ariaLabel"] }, { kind: "component", type: BlockShellNavMetaComponent, selector: "block-shell-nav-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
281
- }
282
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellNavHeaderComponent, decorators: [{
283
- type: Component,
284
- args: [{
285
- selector: 'block-shell-nav-header',
286
- imports: [
287
- UiNavCollapseRootDirective,
288
- UiNavCollapseExpandedDirective,
289
- RouterLink,
290
- PopoverContentDirective,
291
- PopoverTriggerDirective,
292
- BlockShellLogoComponent,
293
- BlockShellNavMetaComponent,
294
- ],
295
- host: {
296
- class: 'contents',
297
- },
298
- template: `
299
- <ng-template uiPopoverContent #workspaceSwitcher="uiPopoverContent">
300
- <div
301
- data-block-shell-workspace-panel
302
- class="w-72 space-y-1 rounded-none border border-border bg-popover p-2 text-popover-foreground shadow-lg">
303
- @for (workspace of workspaceLinks(); track workspace.id) {
304
- <a
305
- [routerLink]="workspace.path"
306
- [attr.aria-current]="isActiveWorkspace(workspace.path) ? 'page' : null"
307
- [attr.data-block-shell-workspace-link]="workspace.id"
308
- class="block rounded-lg border px-3 py-2 transition-colors"
309
- [class.border-primary]="isActiveWorkspace(workspace.path)"
310
- [class.bg-primary/5]="isActiveWorkspace(workspace.path)"
311
- [class.text-foreground]="isActiveWorkspace(workspace.path)"
312
- [class.border-transparent]="!isActiveWorkspace(workspace.path)"
313
- [class.hover:bg-muted]="!isActiveWorkspace(workspace.path)">
314
- <span class="block text-sm font-semibold tracking-tight">{{ workspace.label }}</span>
315
- <span class="mt-1 block text-xs text-muted-foreground">{{ workspace.description }}</span>
316
- </a>
317
- }
318
- </div>
319
- </ng-template>
320
-
321
- @if (collapsible()) {
322
- <div uiNavCollapseRoot class="flex items-center gap-3">
323
- @if (hasWorkspaceLinks()) {
324
- <button
325
- type="button"
326
- [uiPopoverTrigger]="workspaceSwitcher"
327
- side="bottom"
328
- align="start"
329
- [attr.aria-label]="workspaceTriggerAriaLabel()"
330
- data-block-shell-workspace-trigger
331
- class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2">
332
- <block-shell-logo [text]="logoText()" />
333
- </button>
334
- } @else {
335
- <block-shell-logo [text]="logoText()" />
336
- }
337
-
338
- <div *uiNavCollapseExpanded class="min-w-0 flex-1">
339
- <a
340
- [routerLink]="homePath()"
341
- [attr.aria-label]="homeLinkAriaLabel()"
342
- data-block-shell-home-link
343
- 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">
344
- <block-shell-nav-meta
345
- [name]="subtitle()"
346
- [subtitle]="name()"
347
- [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'" />
348
- </a>
349
- </div>
350
- </div>
351
- } @else {
352
- <div class="flex items-center gap-3">
353
- @if (hasWorkspaceLinks()) {
354
- <button
355
- type="button"
356
- [uiPopoverTrigger]="workspaceSwitcher"
357
- side="bottom"
358
- align="start"
359
- [attr.aria-label]="workspaceTriggerAriaLabel()"
360
- data-block-shell-workspace-trigger
361
- class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2">
362
- <block-shell-logo [text]="logoText()" />
363
- </button>
364
- } @else {
365
- <block-shell-logo [text]="logoText()" />
366
- }
367
-
368
- <a
369
- [routerLink]="homePath()"
370
- [attr.aria-label]="homeLinkAriaLabel()"
371
- data-block-shell-home-link
372
- 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">
373
- <block-shell-nav-meta [name]="subtitle()" [subtitle]="name()" />
374
- </a>
375
- </div>
376
- }
377
- `,
378
- changeDetection: ChangeDetectionStrategy.OnPush,
379
- }]
380
- }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", 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 }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", required: false }] }] } });
381
-
382
- class BlockShellSidebarNavComponent {
383
- navigation = input.required(...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
384
- workspaceLinks = input([], ...(ngDevMode ? [{ debugName: "workspaceLinks" }] : /* istanbul ignore next */ []));
385
- sidebarNavId = input('block-shell-sidebar', ...(ngDevMode ? [{ debugName: "sidebarNavId" }] : /* istanbul ignore next */ []));
386
- shellName = input.required(...(ngDevMode ? [{ debugName: "shellName" }] : /* istanbul ignore next */ []));
387
- brandSubtitle = input('Etos Indonusa', ...(ngDevMode ? [{ debugName: "brandSubtitle" }] : /* istanbul ignore next */ []));
388
- logoText = input('ETOS', ...(ngDevMode ? [{ debugName: "logoText" }] : /* istanbul ignore next */ []));
389
- homePath = input('/', ...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
390
- userName = input.required(...(ngDevMode ? [{ debugName: "userName" }] : /* istanbul ignore next */ []));
391
- userPosition = input.required(...(ngDevMode ? [{ debugName: "userPosition" }] : /* istanbul ignore next */ []));
392
- ariaLabel = input('side navigation', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
393
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellSidebarNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
394
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.15", type: BlockShellSidebarNavComponent, isStandalone: true, selector: "block-shell-sidebar-nav", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, workspaceLinks: { classPropertyName: "workspaceLinks", publicName: "workspaceLinks", 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 }, brandSubtitle: { classPropertyName: "brandSubtitle", publicName: "brandSubtitle", isSignal: true, isRequired: false, 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 }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
395
- <ui-nav
396
- [id]="sidebarNavId()"
397
- [data]="navigation()"
398
- [ariaLabel]="ariaLabel()"
399
- nav-sidebar-collapse
400
- collapse-tree="straight"
401
- orientation="vertical"
402
- appearance="sidebar"
403
- class="h-full">
404
- <ui-nav-header>
405
- <block-shell-nav-header
406
- [name]="shellName()"
407
- [subtitle]="brandSubtitle()"
408
- [logoText]="logoText()"
409
- [homePath]="homePath()"
410
- [collapsible]="true"
411
- [workspaceLinks]="workspaceLinks()" />
412
- </ui-nav-header>
413
-
414
- <ui-nav-footer class="px-3">
415
- <block-shell-nav-footer [name]="userName()" [subtitle]="userPosition()" [collapsible]="true" />
416
- </ui-nav-footer>
417
- </ui-nav>
418
- `, isInline: true, dependencies: [{ kind: "component", type: UiNavComponent, selector: "ui-nav", inputs: ["id", "data", "items", "orientation", "appearance", "position", "collapsed", "dockbarMode", "ariaLabel", "compact", "previewExpanded", "nav-sidebar-collapse", "collapse-tree", "class", "itemClass", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { kind: "component", type: UiNavHeaderComponent, selector: "ui-nav-header", inputs: ["toggle", "class"] }, { kind: "component", type: UiNavFooterComponent, selector: "ui-nav-footer", inputs: ["class"] }, { kind: "component", type: BlockShellNavHeaderComponent, selector: "block-shell-nav-header", inputs: ["name", "subtitle", "logoText", "homePath", "collapsible", "workspaceLinks"] }, { kind: "component", type: BlockShellNavFooterComponent, selector: "block-shell-nav-footer", inputs: ["name", "subtitle", "initials", "collapsible", "desktopOnly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
419
- }
420
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellSidebarNavComponent, decorators: [{
421
- type: Component,
422
- args: [{
423
- selector: 'block-shell-sidebar-nav',
424
- imports: [
425
- UiNavComponent,
426
- UiNavHeaderComponent,
427
- UiNavFooterComponent,
428
- BlockShellNavHeaderComponent,
429
- BlockShellNavFooterComponent,
430
- ],
431
- host: {
432
- class: 'contents',
433
- },
434
- template: `
435
- <ui-nav
436
- [id]="sidebarNavId()"
437
- [data]="navigation()"
438
- [ariaLabel]="ariaLabel()"
439
- nav-sidebar-collapse
440
- collapse-tree="straight"
441
- orientation="vertical"
442
- appearance="sidebar"
443
- class="h-full">
444
- <ui-nav-header>
445
- <block-shell-nav-header
446
- [name]="shellName()"
447
- [subtitle]="brandSubtitle()"
448
- [logoText]="logoText()"
449
- [homePath]="homePath()"
450
- [collapsible]="true"
451
- [workspaceLinks]="workspaceLinks()" />
452
- </ui-nav-header>
453
-
454
- <ui-nav-footer class="px-3">
455
- <block-shell-nav-footer [name]="userName()" [subtitle]="userPosition()" [collapsible]="true" />
456
- </ui-nav-footer>
457
- </ui-nav>
458
- `,
459
- changeDetection: ChangeDetectionStrategy.OnPush,
460
- }]
461
- }], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", required: false }] }], sidebarNavId: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarNavId", required: false }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], brandSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandSubtitle", required: false }] }], 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 }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
462
-
463
- class BlockShellTopNavComponent {
464
- navigation = input.required(...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
465
- workspaceLinks = input([], ...(ngDevMode ? [{ debugName: "workspaceLinks" }] : /* istanbul ignore next */ []));
466
- navbarId = input('block-shell-navbar', ...(ngDevMode ? [{ debugName: "navbarId" }] : /* istanbul ignore next */ []));
467
- shellName = input.required(...(ngDevMode ? [{ debugName: "shellName" }] : /* istanbul ignore next */ []));
468
- brandSubtitle = input('Etos Indonusa', ...(ngDevMode ? [{ debugName: "brandSubtitle" }] : /* istanbul ignore next */ []));
469
- logoText = input('ETOS', ...(ngDevMode ? [{ debugName: "logoText" }] : /* istanbul ignore next */ []));
470
- homePath = input('/', ...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
471
- userName = input.required(...(ngDevMode ? [{ debugName: "userName" }] : /* istanbul ignore next */ []));
472
- userPosition = input.required(...(ngDevMode ? [{ debugName: "userPosition" }] : /* istanbul ignore next */ []));
473
- ariaLabel = input('top navigation', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
474
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellTopNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
475
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.15", type: BlockShellTopNavComponent, isStandalone: true, selector: "block-shell-top-nav", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, workspaceLinks: { classPropertyName: "workspaceLinks", publicName: "workspaceLinks", isSignal: true, isRequired: false, transformFunction: null }, navbarId: { classPropertyName: "navbarId", publicName: "navbarId", isSignal: true, isRequired: false, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null }, brandSubtitle: { classPropertyName: "brandSubtitle", publicName: "brandSubtitle", isSignal: true, isRequired: false, 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 }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
476
- <ui-nav
477
- [id]="navbarId()"
478
- [data]="navigation()"
479
- [ariaLabel]="ariaLabel()"
480
- collapse-tree="straight"
481
- orientation="horizontal"
482
- appearance="navbar"
483
- class="h-full">
484
- <ui-nav-header>
485
- <block-shell-nav-header
486
- [name]="shellName()"
487
- [subtitle]="brandSubtitle()"
488
- [logoText]="logoText()"
489
- [homePath]="homePath()"
490
- [workspaceLinks]="workspaceLinks()" />
491
- </ui-nav-header>
492
-
493
- <ui-nav-footer class="px-3">
494
- <block-shell-nav-footer [name]="userName()" [subtitle]="userPosition()" [desktopOnly]="true" />
495
- </ui-nav-footer>
496
- </ui-nav>
497
- `, isInline: true, dependencies: [{ kind: "component", type: UiNavComponent, selector: "ui-nav", inputs: ["id", "data", "items", "orientation", "appearance", "position", "collapsed", "dockbarMode", "ariaLabel", "compact", "previewExpanded", "nav-sidebar-collapse", "collapse-tree", "class", "itemClass", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { kind: "component", type: UiNavHeaderComponent, selector: "ui-nav-header", inputs: ["toggle", "class"] }, { kind: "component", type: UiNavFooterComponent, selector: "ui-nav-footer", inputs: ["class"] }, { kind: "component", type: BlockShellNavHeaderComponent, selector: "block-shell-nav-header", inputs: ["name", "subtitle", "logoText", "homePath", "collapsible", "workspaceLinks"] }, { kind: "component", type: BlockShellNavFooterComponent, selector: "block-shell-nav-footer", inputs: ["name", "subtitle", "initials", "collapsible", "desktopOnly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
498
- }
499
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellTopNavComponent, decorators: [{
500
- type: Component,
501
- args: [{
502
- selector: 'block-shell-top-nav',
503
- imports: [
504
- UiNavComponent,
505
- UiNavHeaderComponent,
506
- UiNavFooterComponent,
507
- BlockShellNavHeaderComponent,
508
- BlockShellNavFooterComponent,
509
- ],
510
- host: {
511
- class: 'contents',
512
- },
513
- template: `
514
- <ui-nav
515
- [id]="navbarId()"
516
- [data]="navigation()"
517
- [ariaLabel]="ariaLabel()"
518
- collapse-tree="straight"
519
- orientation="horizontal"
520
- appearance="navbar"
521
- class="h-full">
522
- <ui-nav-header>
523
- <block-shell-nav-header
524
- [name]="shellName()"
525
- [subtitle]="brandSubtitle()"
526
- [logoText]="logoText()"
527
- [homePath]="homePath()"
528
- [workspaceLinks]="workspaceLinks()" />
529
- </ui-nav-header>
530
-
531
- <ui-nav-footer class="px-3">
532
- <block-shell-nav-footer [name]="userName()" [subtitle]="userPosition()" [desktopOnly]="true" />
533
- </ui-nav-footer>
534
- </ui-nav>
535
- `,
536
- changeDetection: ChangeDetectionStrategy.OnPush,
537
- }]
538
- }], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", required: false }] }], navbarId: [{ type: i0.Input, args: [{ isSignal: true, alias: "navbarId", required: false }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], brandSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandSubtitle", required: false }] }], 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 }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
539
-
540
- class BlockShellComponent {
541
- navigation = input.required(...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
542
- workspaceLinks = input([], ...(ngDevMode ? [{ debugName: "workspaceLinks" }] : /* istanbul ignore next */ []));
543
- navbarId = input('block-shell-navbar', ...(ngDevMode ? [{ debugName: "navbarId" }] : /* istanbul ignore next */ []));
544
- sidebarNavId = input('block-shell-sidebar', ...(ngDevMode ? [{ debugName: "sidebarNavId" }] : /* istanbul ignore next */ []));
545
- shellName = input.required(...(ngDevMode ? [{ debugName: "shellName" }] : /* istanbul ignore next */ []));
546
- brandSubtitle = input('Etos Indonusa', ...(ngDevMode ? [{ debugName: "brandSubtitle" }] : /* istanbul ignore next */ []));
547
- logoText = input('ETOS', ...(ngDevMode ? [{ debugName: "logoText" }] : /* istanbul ignore next */ []));
548
- homePath = input('/', ...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
549
- userName = input.required(...(ngDevMode ? [{ debugName: "userName" }] : /* istanbul ignore next */ []));
550
- userPosition = input.required(...(ngDevMode ? [{ debugName: "userPosition" }] : /* istanbul ignore next */ []));
551
- topAriaLabel = input('top navigation', ...(ngDevMode ? [{ debugName: "topAriaLabel" }] : /* istanbul ignore next */ []));
552
- sideAriaLabel = input('side navigation', ...(ngDevMode ? [{ debugName: "sideAriaLabel" }] : /* istanbul ignore next */ []));
553
- contentAriaLabel = input('layout content', ...(ngDevMode ? [{ debugName: "contentAriaLabel" }] : /* istanbul ignore next */ []));
554
- layout = inject(LayoutService);
555
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
556
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: BlockShellComponent, isStandalone: true, selector: "block-shell", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, workspaceLinks: { classPropertyName: "workspaceLinks", publicName: "workspaceLinks", isSignal: true, isRequired: false, 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 }, brandSubtitle: { classPropertyName: "brandSubtitle", publicName: "brandSubtitle", isSignal: true, isRequired: false, 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 }, 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 } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
557
- <ui-layout>
558
- @switch (layout.type()) {
559
- @case ('horizontal') {
560
- <ui-layout-horizontal>
561
- <ui-layout-nav [ariaLabel]="topAriaLabel()">
562
- <block-shell-top-nav
563
- [navigation]="navigation()"
564
- [workspaceLinks]="workspaceLinks()"
565
- [navbarId]="navbarId()"
566
- [shellName]="shellName()"
567
- [brandSubtitle]="brandSubtitle()"
568
- [logoText]="logoText()"
569
- [homePath]="homePath()"
570
- [userName]="userName()"
571
- [userPosition]="userPosition()"
572
- [ariaLabel]="topAriaLabel()" />
573
- </ui-layout-nav>
574
-
575
- <ui-layout-content [attr.aria-label]="contentAriaLabel()">
576
- <router-outlet />
577
- </ui-layout-content>
578
- </ui-layout-horizontal>
579
- }
580
-
581
- @case ('empty') {
582
- <ui-layout-empty>
583
- <ui-layout-content [attr.aria-label]="contentAriaLabel()">
584
- <router-outlet />
585
- </ui-layout-content>
586
- </ui-layout-empty>
587
- }
588
-
589
- @default {
590
- <ui-layout-vertical>
591
- <ui-layout-nav [ariaLabel]="sideAriaLabel()">
592
- <block-shell-sidebar-nav
593
- [navigation]="navigation()"
594
- [workspaceLinks]="workspaceLinks()"
595
- [sidebarNavId]="sidebarNavId()"
596
- [shellName]="shellName()"
597
- [brandSubtitle]="brandSubtitle()"
598
- [logoText]="logoText()"
599
- [homePath]="homePath()"
600
- [userName]="userName()"
601
- [userPosition]="userPosition()"
602
- [ariaLabel]="sideAriaLabel()" />
603
- </ui-layout-nav>
604
-
605
- <ui-layout-content [attr.aria-label]="contentAriaLabel()">
606
- <router-outlet />
607
- </ui-layout-content>
608
- </ui-layout-vertical>
609
- }
610
- }
611
- </ui-layout>
612
- `, isInline: true, dependencies: [{ kind: "component", type: UiLayoutComponent, selector: "ui-layout", inputs: ["surface", "appearance", "layout-style", "width", "class"] }, { kind: "component", type: UiLayoutVerticalComponent, selector: "ui-layout-vertical", inputs: ["class"] }, { kind: "component", type: UiLayoutHorizontalComponent, selector: "ui-layout-horizontal", inputs: ["class"] }, { kind: "component", type: UiLayoutEmptyComponent, selector: "ui-layout-empty", inputs: ["class"] }, { kind: "component", type: UiLayoutNavComponent, selector: "ui-layout-nav", inputs: ["ariaLabel", "railOffset", "class"] }, { kind: "component", type: UiLayoutContentComponent, selector: "ui-layout-content", inputs: ["class"] }, { kind: "component", type: BlockShellSidebarNavComponent, selector: "block-shell-sidebar-nav", inputs: ["navigation", "workspaceLinks", "sidebarNavId", "shellName", "brandSubtitle", "logoText", "homePath", "userName", "userPosition", "ariaLabel"] }, { kind: "component", type: BlockShellTopNavComponent, selector: "block-shell-top-nav", inputs: ["navigation", "workspaceLinks", "navbarId", "shellName", "brandSubtitle", "logoText", "homePath", "userName", "userPosition", "ariaLabel"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
613
- }
614
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: BlockShellComponent, decorators: [{
615
- type: Component,
616
- args: [{
617
- selector: 'block-shell',
618
- imports: [
619
- UiLayoutComponent,
620
- UiLayoutVerticalComponent,
621
- UiLayoutHorizontalComponent,
622
- UiLayoutEmptyComponent,
623
- UiLayoutNavComponent,
624
- UiLayoutContentComponent,
625
- BlockShellSidebarNavComponent,
626
- BlockShellTopNavComponent,
627
- RouterOutlet,
628
- ],
629
- host: {
630
- class: 'contents',
631
- },
632
- template: `
633
- <ui-layout>
634
- @switch (layout.type()) {
635
- @case ('horizontal') {
636
- <ui-layout-horizontal>
637
- <ui-layout-nav [ariaLabel]="topAriaLabel()">
638
- <block-shell-top-nav
639
- [navigation]="navigation()"
640
- [workspaceLinks]="workspaceLinks()"
641
- [navbarId]="navbarId()"
642
- [shellName]="shellName()"
643
- [brandSubtitle]="brandSubtitle()"
644
- [logoText]="logoText()"
645
- [homePath]="homePath()"
646
- [userName]="userName()"
647
- [userPosition]="userPosition()"
648
- [ariaLabel]="topAriaLabel()" />
649
- </ui-layout-nav>
650
-
651
- <ui-layout-content [attr.aria-label]="contentAriaLabel()">
652
- <router-outlet />
653
- </ui-layout-content>
654
- </ui-layout-horizontal>
655
- }
656
-
657
- @case ('empty') {
658
- <ui-layout-empty>
659
- <ui-layout-content [attr.aria-label]="contentAriaLabel()">
660
- <router-outlet />
661
- </ui-layout-content>
662
- </ui-layout-empty>
663
- }
664
-
665
- @default {
666
- <ui-layout-vertical>
667
- <ui-layout-nav [ariaLabel]="sideAriaLabel()">
668
- <block-shell-sidebar-nav
669
- [navigation]="navigation()"
670
- [workspaceLinks]="workspaceLinks()"
671
- [sidebarNavId]="sidebarNavId()"
672
- [shellName]="shellName()"
673
- [brandSubtitle]="brandSubtitle()"
674
- [logoText]="logoText()"
675
- [homePath]="homePath()"
676
- [userName]="userName()"
677
- [userPosition]="userPosition()"
678
- [ariaLabel]="sideAriaLabel()" />
679
- </ui-layout-nav>
680
-
681
- <ui-layout-content [attr.aria-label]="contentAriaLabel()">
682
- <router-outlet />
683
- </ui-layout-content>
684
- </ui-layout-vertical>
685
- }
686
- }
687
- </ui-layout>
688
- `,
689
- changeDetection: ChangeDetectionStrategy.OnPush,
690
- }]
691
- }], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", required: false }] }], 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 }] }], brandSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandSubtitle", required: false }] }], 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 }] }], 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 }] }] } });
692
-
693
- const MAIN_SIDEBAR_NAV_ID = 'main';
694
- function workspaceNavbarId(workspace) {
695
- return `${workspace}-navbar`;
696
- }
697
-
698
- /**
699
- * Generated bundle index. Do not edit.
700
- */
701
-
702
- export { BlockShellComponent, BlockShellLogoComponent, BlockShellNavAvatarComponent, BlockShellNavFooterComponent, BlockShellNavHeaderComponent, BlockShellNavMetaComponent, BlockShellSidebarNavComponent, BlockShellTopNavComponent, MAIN_SIDEBAR_NAV_ID, workspaceNavbarId };
703
- //# sourceMappingURL=edsis-angular-block-shell.mjs.map