@edsis/angular 22.1.6 → 22.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (366) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +87 -399
  3. package/SECURITY.md +18 -0
  4. package/SUPPORT.md +15 -0
  5. package/chart/README.md +275 -0
  6. package/component/README.md +89 -0
  7. package/component/accordion/README.md +195 -0
  8. package/component/alert/README.md +184 -0
  9. package/component/alert-dialog/README.md +255 -0
  10. package/component/aspect-ratio/README.md +116 -0
  11. package/component/avatar/README.md +182 -0
  12. package/component/badge/README.md +143 -0
  13. package/component/breadcrumb/README.md +223 -0
  14. package/component/button/README.md +141 -0
  15. package/component/button-group/README.md +214 -0
  16. package/component/calendar/README.md +125 -0
  17. package/component/card/README.md +232 -0
  18. package/component/carousel/README.md +276 -0
  19. package/component/checkbox/README.md +153 -0
  20. package/component/collapsible/README.md +216 -0
  21. package/component/combobox/README.md +202 -0
  22. package/component/command/README.md +287 -0
  23. package/component/composer/README.md +241 -0
  24. package/component/context-menu/README.md +268 -0
  25. package/component/date-picker/README.md +202 -0
  26. package/component/dialog/README.md +276 -0
  27. package/component/drawer/README.md +146 -0
  28. package/component/dropdown-menu/README.md +336 -0
  29. package/component/editor/README.md +152 -0
  30. package/component/empty/README.md +193 -0
  31. package/component/form/README.md +216 -0
  32. package/component/hover-card/README.md +150 -0
  33. package/component/icon/README.md +52 -0
  34. package/component/input/README.md +160 -0
  35. package/component/input-group/README.md +245 -0
  36. package/component/input-otp/README.md +331 -0
  37. package/component/item/README.md +254 -0
  38. package/component/kanban/README.md +81 -0
  39. package/component/kbd/README.md +141 -0
  40. package/component/label/README.md +137 -0
  41. package/component/menubar/README.md +270 -0
  42. package/component/native-select/README.md +176 -0
  43. package/component/navigation-menu/README.md +165 -0
  44. package/component/pagination/README.md +151 -0
  45. package/component/pillbox/README.md +68 -0
  46. package/component/popover/README.md +54 -0
  47. package/component/progress/README.md +160 -0
  48. package/component/radio/README.md +212 -0
  49. package/component/resizable/README.md +178 -0
  50. package/component/scroll-area/README.md +150 -0
  51. package/component/select/README.md +228 -0
  52. package/component/separator/README.md +175 -0
  53. package/component/sheet/README.md +190 -0
  54. package/component/skeleton/README.md +158 -0
  55. package/component/slider/README.md +207 -0
  56. package/component/spinner/README.md +160 -0
  57. package/component/switch/README.md +170 -0
  58. package/component/table/README.md +292 -0
  59. package/component/tabs/README.md +220 -0
  60. package/component/textarea/README.md +169 -0
  61. package/component/timeline/README.md +94 -0
  62. package/component/toast/README.md +173 -0
  63. package/component/toggle/README.md +133 -0
  64. package/component/toggle-group/README.md +234 -0
  65. package/component/tooltip/README.md +230 -0
  66. package/fesm2022/edsis-angular-chart-area.mjs +508 -0
  67. package/fesm2022/edsis-angular-chart-bar.mjs +946 -0
  68. package/fesm2022/edsis-angular-chart-core.mjs +1319 -0
  69. package/fesm2022/edsis-angular-chart-line.mjs +544 -0
  70. package/fesm2022/edsis-angular-chart-pie.mjs +531 -0
  71. package/fesm2022/edsis-angular-chart-primitives.mjs +1647 -0
  72. package/fesm2022/edsis-angular-chart-radar.mjs +693 -0
  73. package/fesm2022/edsis-angular-chart-radial.mjs +542 -0
  74. package/fesm2022/edsis-angular-chart-scatter.mjs +486 -0
  75. package/fesm2022/edsis-angular-chart.mjs +3 -0
  76. package/fesm2022/edsis-angular-component-accordion.mjs +513 -0
  77. package/fesm2022/edsis-angular-component-alert-dialog.mjs +1001 -0
  78. package/fesm2022/edsis-angular-component-alert.mjs +268 -0
  79. package/fesm2022/edsis-angular-component-aspect-ratio.mjs +80 -0
  80. package/fesm2022/edsis-angular-component-avatar.mjs +410 -0
  81. package/fesm2022/edsis-angular-component-badge.mjs +111 -0
  82. package/fesm2022/edsis-angular-component-breadcrumb.mjs +464 -0
  83. package/fesm2022/edsis-angular-component-button-group.mjs +252 -0
  84. package/fesm2022/edsis-angular-component-button.mjs +155 -0
  85. package/fesm2022/edsis-angular-component-calendar.mjs +835 -0
  86. package/fesm2022/edsis-angular-component-card.mjs +460 -0
  87. package/fesm2022/edsis-angular-component-carousel.mjs +700 -0
  88. package/fesm2022/edsis-angular-component-checkbox.mjs +398 -0
  89. package/fesm2022/edsis-angular-component-collapsible.mjs +305 -0
  90. package/fesm2022/edsis-angular-component-combobox.mjs +544 -0
  91. package/fesm2022/edsis-angular-component-command.mjs +815 -0
  92. package/fesm2022/edsis-angular-component-composer.mjs +840 -0
  93. package/fesm2022/edsis-angular-component-context-menu.mjs +197 -0
  94. package/fesm2022/edsis-angular-component-date-picker.mjs +798 -0
  95. package/fesm2022/edsis-angular-component-dialog.mjs +798 -0
  96. package/fesm2022/edsis-angular-component-drawer.mjs +1 -0
  97. package/fesm2022/edsis-angular-component-dropdown-menu.mjs +1259 -0
  98. package/fesm2022/edsis-angular-component-editor.mjs +1000 -0
  99. package/fesm2022/edsis-angular-component-empty.mjs +351 -0
  100. package/fesm2022/edsis-angular-component-form.mjs +821 -0
  101. package/fesm2022/edsis-angular-component-hover-card.mjs +486 -0
  102. package/fesm2022/edsis-angular-component-icon.mjs +253 -0
  103. package/fesm2022/edsis-angular-component-input-group.mjs +453 -0
  104. package/fesm2022/edsis-angular-component-input-otp.mjs +957 -0
  105. package/fesm2022/edsis-angular-component-input.mjs +87 -0
  106. package/fesm2022/edsis-angular-component-item.mjs +720 -0
  107. package/fesm2022/edsis-angular-component-kanban.mjs +812 -0
  108. package/fesm2022/edsis-angular-component-kbd.mjs +124 -0
  109. package/fesm2022/edsis-angular-component-label.mjs +82 -0
  110. package/fesm2022/edsis-angular-component-menubar.mjs +481 -0
  111. package/fesm2022/edsis-angular-component-native-select.mjs +168 -0
  112. package/fesm2022/edsis-angular-component-navigation-menu.mjs +685 -0
  113. package/fesm2022/edsis-angular-component-pagination.mjs +425 -0
  114. package/fesm2022/edsis-angular-component-pillbox.mjs +1679 -0
  115. package/fesm2022/edsis-angular-component-popover.mjs +292 -0
  116. package/fesm2022/edsis-angular-component-progress.mjs +184 -0
  117. package/fesm2022/edsis-angular-component-radio.mjs +491 -0
  118. package/fesm2022/edsis-angular-component-resizable.mjs +703 -0
  119. package/fesm2022/edsis-angular-component-scroll-area.mjs +133 -0
  120. package/fesm2022/edsis-angular-component-segmented-control.mjs +408 -0
  121. package/fesm2022/edsis-angular-component-select.mjs +743 -0
  122. package/fesm2022/edsis-angular-component-separator.mjs +102 -0
  123. package/fesm2022/edsis-angular-component-sheet.mjs +874 -0
  124. package/fesm2022/edsis-angular-component-skeleton.mjs +62 -0
  125. package/fesm2022/edsis-angular-component-slider.mjs +676 -0
  126. package/fesm2022/edsis-angular-component-spinner.mjs +157 -0
  127. package/fesm2022/edsis-angular-component-switch.mjs +361 -0
  128. package/fesm2022/edsis-angular-component-table.mjs +446 -0
  129. package/fesm2022/edsis-angular-component-tabs.mjs +592 -0
  130. package/fesm2022/edsis-angular-component-textarea.mjs +85 -0
  131. package/fesm2022/edsis-angular-component-timeline.mjs +619 -0
  132. package/fesm2022/edsis-angular-component-toast.mjs +231 -0
  133. package/fesm2022/edsis-angular-component-toggle-group.mjs +579 -0
  134. package/fesm2022/edsis-angular-component-toggle.mjs +189 -0
  135. package/fesm2022/edsis-angular-component-tooltip.mjs +804 -0
  136. package/fesm2022/edsis-angular-component-utils-core.mjs +181 -0
  137. package/fesm2022/edsis-angular-component-utils-overlay.mjs +54 -0
  138. package/fesm2022/edsis-angular-component-utils-scale.mjs +76 -0
  139. package/fesm2022/edsis-angular-component-utils.mjs +2 -0
  140. package/fesm2022/edsis-angular-component.mjs +0 -0
  141. package/fesm2022/edsis-angular-navigation-core.mjs +15 -0
  142. package/fesm2022/edsis-angular-navigation-icon.mjs +35 -0
  143. package/fesm2022/edsis-angular-navigation-navigation-badge-count.component-D70Ju6_f.mjs +234 -0
  144. package/fesm2022/edsis-angular-navigation-navigation-dockbar-menu.component-BaFnh48V.mjs +834 -0
  145. package/fesm2022/edsis-angular-navigation-navigation-entry-grid.component-D39W0FQZ.mjs +823 -0
  146. package/fesm2022/edsis-angular-navigation-navigation-flyout-menu.component-CpmsY8hb.mjs +670 -0
  147. package/fesm2022/edsis-angular-navigation-navigation-horizontal.component-D35IfX6r.mjs +689 -0
  148. package/fesm2022/edsis-angular-navigation-navigation-item.component-X6JFy-ya.mjs +1522 -0
  149. package/fesm2022/edsis-angular-navigation-navigation-list.component-D6Ms8H5g.mjs +346 -0
  150. package/fesm2022/edsis-angular-navigation-service.mjs +558 -0
  151. package/fesm2022/edsis-angular-navigation-types.mjs +151 -0
  152. package/fesm2022/edsis-angular-navigation.mjs +3338 -0
  153. package/fesm2022/edsis-angular-sdk.mjs +100 -0
  154. package/fesm2022/edsis-angular-theme-component-settings.mjs +1863 -0
  155. package/fesm2022/edsis-angular-theme-layout-services.mjs +252 -0
  156. package/fesm2022/edsis-angular-theme-layout-types.mjs +45 -0
  157. package/fesm2022/edsis-angular-theme-layout-wrapper.mjs +2568 -0
  158. package/fesm2022/edsis-angular-theme-layout.mjs +1089 -0
  159. package/fesm2022/edsis-angular-theme-on-fill.mjs +89 -0
  160. package/fesm2022/edsis-angular-theme-page-core.mjs +315 -0
  161. package/fesm2022/edsis-angular-theme-page-filter.mjs +409 -0
  162. package/fesm2022/edsis-angular-theme-page-overview.mjs +88 -0
  163. package/fesm2022/edsis-angular-theme-page-root.mjs +693 -0
  164. package/fesm2022/edsis-angular-theme-page-side.mjs +342 -0
  165. package/fesm2022/edsis-angular-theme-page-slots.mjs +258 -0
  166. package/fesm2022/edsis-angular-theme-page.mjs +7 -0
  167. package/fesm2022/edsis-angular-theme-shell-services.mjs +231 -0
  168. package/fesm2022/edsis-angular-theme-shell-types.mjs +102 -0
  169. package/fesm2022/edsis-angular-theme-shell.mjs +1352 -0
  170. package/fesm2022/edsis-angular-theme-styles.mjs +605 -0
  171. package/fesm2022/edsis-angular-theme.mjs +0 -0
  172. package/fesm2022/edsis-angular.mjs +5 -8
  173. package/navigation/README.md +576 -0
  174. package/package.json +481 -52
  175. package/sdk/README.md +212 -0
  176. package/sdk/schematics/collection.json +20 -0
  177. package/sdk/schematics/init/index.js +83 -0
  178. package/sdk/schematics/init/schema.json +19 -0
  179. package/sdk/schematics/ng-add/index.js +147 -0
  180. package/sdk/schematics/ng-add/schema.json +14 -0
  181. package/sdk/schematics/package.json +3 -0
  182. package/sdk/schematics/sdk/index.js +175 -0
  183. package/sdk/schematics/sdk/schema.json +19 -0
  184. package/sdk/sdk.config.example.json +24 -0
  185. package/sdk/src/config/loader.js +43 -0
  186. package/sdk/src/config/schema.js +59 -0
  187. package/sdk/src/emit/client.js +251 -0
  188. package/sdk/src/emit/metadata.js +310 -0
  189. package/sdk/src/emit/models.js +104 -0
  190. package/sdk/src/emit/navigation.js +56 -0
  191. package/sdk/src/emit/operations.js +118 -0
  192. package/sdk/src/emit/public-api.js +54 -0
  193. package/sdk/src/emit/services.js +110 -0
  194. package/sdk/src/engine.js +67 -0
  195. package/sdk/src/layout/per-domain.js +360 -0
  196. package/sdk/src/package.json +3 -0
  197. package/sdk/src/parser/bundle.js +25 -0
  198. package/sdk/src/parser/ir.js +429 -0
  199. package/sdk/src/parser/types.js +7 -0
  200. package/sdk/src/render/template.js +152 -0
  201. package/sdk/src/writer/index.js +286 -0
  202. package/theme/README.md +120 -0
  203. package/theme/component/settings/README.md +154 -0
  204. package/theme/layout/README.md +604 -0
  205. package/theme/page/README.md +505 -0
  206. package/theme/shell/README.md +344 -0
  207. package/theme/styles/README.md +251 -0
  208. package/theme/styles/css/base/components.css +577 -0
  209. package/theme/styles/css/base/index.css +14 -0
  210. package/theme/styles/css/base/on-fill.css +153 -0
  211. package/theme/styles/css/base/package.css +10 -0
  212. package/theme/styles/css/base/prefers-dark.css +81 -0
  213. package/theme/styles/css/base/print.css +62 -0
  214. package/theme/styles/css/base/status.css +38 -0
  215. package/theme/styles/css/base/tailwind.css +208 -0
  216. package/theme/styles/css/base/theme.css +306 -0
  217. package/theme/styles/css/base/tokens.css +388 -0
  218. package/theme/styles/css/color/amber.css +72 -0
  219. package/theme/styles/css/color/blue.css +72 -0
  220. package/theme/styles/css/color/brand.css +38 -0
  221. package/theme/styles/css/color/cyan.css +72 -0
  222. package/theme/styles/css/color/emerald.css +72 -0
  223. package/theme/styles/css/color/fuchsia.css +72 -0
  224. package/theme/styles/css/color/green.css +72 -0
  225. package/theme/styles/css/color/index.css +19 -0
  226. package/theme/styles/css/color/indigo.css +72 -0
  227. package/theme/styles/css/color/lime.css +72 -0
  228. package/theme/styles/css/color/orange.css +72 -0
  229. package/theme/styles/css/color/pink.css +72 -0
  230. package/theme/styles/css/color/purple.css +72 -0
  231. package/theme/styles/css/color/red.css +72 -0
  232. package/theme/styles/css/color/rose.css +72 -0
  233. package/theme/styles/css/color/sky.css +72 -0
  234. package/theme/styles/css/color/teal.css +72 -0
  235. package/theme/styles/css/color/violet.css +72 -0
  236. package/theme/styles/css/color/yellow.css +72 -0
  237. package/theme/styles/css/fonts.css +85 -0
  238. package/theme/styles/css/index.css +18 -0
  239. package/theme/styles/css/neutral/gray.css +63 -0
  240. package/theme/styles/css/neutral/index.css +11 -0
  241. package/theme/styles/css/neutral/mauve.css +63 -0
  242. package/theme/styles/css/neutral/mist.css +63 -0
  243. package/theme/styles/css/neutral/neutral.css +63 -0
  244. package/theme/styles/css/neutral/olive.css +63 -0
  245. package/theme/styles/css/neutral/slate.css +63 -0
  246. package/theme/styles/css/neutral/stone.css +63 -0
  247. package/theme/styles/css/neutral/taupe.css +63 -0
  248. package/theme/styles/css/neutral/zinc.css +63 -0
  249. package/theme/styles/css/radius/index.css +30 -0
  250. package/theme/styles/css/space/index.css +20 -0
  251. package/types/edsis-angular-chart-area.d.ts +139 -0
  252. package/types/edsis-angular-chart-bar.d.ts +291 -0
  253. package/types/edsis-angular-chart-core.d.ts +824 -0
  254. package/types/edsis-angular-chart-line.d.ts +148 -0
  255. package/types/edsis-angular-chart-pie.d.ts +207 -0
  256. package/types/edsis-angular-chart-primitives.d.ts +360 -0
  257. package/types/edsis-angular-chart-radar.d.ts +198 -0
  258. package/types/edsis-angular-chart-radial.d.ts +187 -0
  259. package/types/edsis-angular-chart-scatter.d.ts +181 -0
  260. package/types/edsis-angular-chart.d.ts +3 -0
  261. package/types/edsis-angular-component-accordion.d.ts +139 -0
  262. package/types/edsis-angular-component-alert-dialog.d.ts +288 -0
  263. package/types/edsis-angular-component-alert.d.ts +72 -0
  264. package/types/edsis-angular-component-aspect-ratio.d.ts +20 -0
  265. package/types/edsis-angular-component-avatar.d.ts +111 -0
  266. package/types/edsis-angular-component-badge.d.ts +36 -0
  267. package/types/edsis-angular-component-breadcrumb.d.ts +85 -0
  268. package/types/edsis-angular-component-button-group.d.ts +50 -0
  269. package/types/edsis-angular-component-button.d.ts +44 -0
  270. package/types/edsis-angular-component-calendar.d.ts +150 -0
  271. package/types/edsis-angular-component-card.d.ts +123 -0
  272. package/types/edsis-angular-component-carousel.d.ts +155 -0
  273. package/types/edsis-angular-component-checkbox.d.ts +100 -0
  274. package/types/edsis-angular-component-collapsible.d.ts +68 -0
  275. package/types/edsis-angular-component-combobox.d.ts +105 -0
  276. package/types/edsis-angular-component-command.d.ts +215 -0
  277. package/types/edsis-angular-component-composer.d.ts +190 -0
  278. package/types/edsis-angular-component-context-menu.d.ts +64 -0
  279. package/types/edsis-angular-component-date-picker.d.ts +199 -0
  280. package/types/edsis-angular-component-dialog.d.ts +231 -0
  281. package/types/edsis-angular-component-drawer.d.ts +2 -0
  282. package/types/edsis-angular-component-dropdown-menu.d.ts +370 -0
  283. package/types/edsis-angular-component-editor.d.ts +234 -0
  284. package/types/edsis-angular-component-empty.d.ts +85 -0
  285. package/types/edsis-angular-component-form.d.ts +223 -0
  286. package/types/edsis-angular-component-hover-card.d.ts +133 -0
  287. package/types/edsis-angular-component-icon.d.ts +90 -0
  288. package/types/edsis-angular-component-input-group.d.ts +98 -0
  289. package/types/edsis-angular-component-input-otp.d.ts +249 -0
  290. package/types/edsis-angular-component-input.d.ts +31 -0
  291. package/types/edsis-angular-component-item.d.ts +169 -0
  292. package/types/edsis-angular-component-kanban.d.ts +165 -0
  293. package/types/edsis-angular-component-kbd.d.ts +25 -0
  294. package/types/edsis-angular-component-label.d.ts +19 -0
  295. package/types/edsis-angular-component-menubar.d.ts +123 -0
  296. package/types/edsis-angular-component-native-select.d.ts +39 -0
  297. package/types/edsis-angular-component-navigation-menu.d.ts +163 -0
  298. package/types/edsis-angular-component-pagination.d.ts +83 -0
  299. package/types/edsis-angular-component-pillbox.d.ts +380 -0
  300. package/types/edsis-angular-component-popover.d.ts +96 -0
  301. package/types/edsis-angular-component-progress.d.ts +45 -0
  302. package/types/edsis-angular-component-radio.d.ts +137 -0
  303. package/types/edsis-angular-component-resizable.d.ts +166 -0
  304. package/types/edsis-angular-component-scroll-area.d.ts +37 -0
  305. package/types/edsis-angular-component-segmented-control.d.ts +102 -0
  306. package/types/edsis-angular-component-select.d.ts +138 -0
  307. package/types/edsis-angular-component-separator.d.ts +26 -0
  308. package/types/edsis-angular-component-sheet.d.ts +240 -0
  309. package/types/edsis-angular-component-skeleton.d.ts +13 -0
  310. package/types/edsis-angular-component-slider.d.ts +148 -0
  311. package/types/edsis-angular-component-spinner.d.ts +31 -0
  312. package/types/edsis-angular-component-switch.d.ts +101 -0
  313. package/types/edsis-angular-component-table.d.ts +109 -0
  314. package/types/edsis-angular-component-tabs.d.ts +183 -0
  315. package/types/edsis-angular-component-textarea.d.ts +27 -0
  316. package/types/edsis-angular-component-timeline.d.ts +146 -0
  317. package/types/edsis-angular-component-toast.d.ts +60 -0
  318. package/types/edsis-angular-component-toggle-group.d.ts +161 -0
  319. package/types/edsis-angular-component-toggle.d.ts +47 -0
  320. package/types/edsis-angular-component-tooltip.d.ts +233 -0
  321. package/types/edsis-angular-component-utils-core.d.ts +175 -0
  322. package/types/edsis-angular-component-utils-overlay.d.ts +17 -0
  323. package/types/edsis-angular-component-utils-scale.d.ts +27 -0
  324. package/types/edsis-angular-component-utils.d.ts +2 -0
  325. package/types/edsis-angular-component.d.ts +1 -0
  326. package/types/edsis-angular-navigation-core.d.ts +55 -0
  327. package/types/edsis-angular-navigation-icon.d.ts +9 -0
  328. package/types/edsis-angular-navigation-service.d.ts +121 -0
  329. package/types/edsis-angular-navigation-types.d.ts +185 -0
  330. package/types/edsis-angular-navigation.d.ts +862 -0
  331. package/types/edsis-angular-sdk.d.ts +87 -0
  332. package/types/edsis-angular-theme-component-settings.d.ts +205 -0
  333. package/types/edsis-angular-theme-layout-services.d.ts +143 -0
  334. package/types/edsis-angular-theme-layout-types.d.ts +36 -0
  335. package/types/edsis-angular-theme-layout-wrapper.d.ts +670 -0
  336. package/types/edsis-angular-theme-layout.d.ts +218 -0
  337. package/types/edsis-angular-theme-on-fill.d.ts +45 -0
  338. package/types/edsis-angular-theme-page-core.d.ts +151 -0
  339. package/types/edsis-angular-theme-page-filter.d.ts +127 -0
  340. package/types/edsis-angular-theme-page-overview.d.ts +28 -0
  341. package/types/edsis-angular-theme-page-root.d.ts +172 -0
  342. package/types/edsis-angular-theme-page-side.d.ts +90 -0
  343. package/types/edsis-angular-theme-page-slots.d.ts +61 -0
  344. package/types/edsis-angular-theme-page.d.ts +7 -0
  345. package/types/edsis-angular-theme-shell-services.d.ts +188 -0
  346. package/types/edsis-angular-theme-shell-types.d.ts +102 -0
  347. package/types/edsis-angular-theme-shell.d.ts +178 -0
  348. package/types/edsis-angular-theme-styles.d.ts +328 -0
  349. package/types/edsis-angular-theme.d.ts +1 -0
  350. package/types/edsis-angular.d.ts +5 -2
  351. package/fesm2022/edsis-angular-block-shell.mjs +0 -1329
  352. package/fesm2022/edsis-angular-block-shell.mjs.map +0 -1
  353. package/fesm2022/edsis-angular-block-themes.mjs +0 -1007
  354. package/fesm2022/edsis-angular-block-themes.mjs.map +0 -1
  355. package/fesm2022/edsis-angular-module-auth.mjs +0 -2582
  356. package/fesm2022/edsis-angular-module-auth.mjs.map +0 -1
  357. package/fesm2022/edsis-angular-platform-mfe.mjs +0 -329
  358. package/fesm2022/edsis-angular-platform-mfe.mjs.map +0 -1
  359. package/fesm2022/edsis-angular-services-runtime.mjs +0 -385
  360. package/fesm2022/edsis-angular-services-runtime.mjs.map +0 -1
  361. package/fesm2022/edsis-angular.mjs.map +0 -1
  362. package/types/edsis-angular-block-shell.d.ts +0 -190
  363. package/types/edsis-angular-block-themes.d.ts +0 -94
  364. package/types/edsis-angular-module-auth.d.ts +0 -533
  365. package/types/edsis-angular-platform-mfe.d.ts +0 -126
  366. package/types/edsis-angular-services-runtime.d.ts +0 -118
@@ -0,0 +1,233 @@
1
+ import * as i0 from "@angular/core";
2
+ import { InjectionToken, Signal, TemplateRef } from "@angular/core";
3
+ import * as i1 from "@edsis/angular/component/utils/scale";
4
+ import { ComponentScaleDirective } from "@edsis/angular/component/utils/scale";
5
+ export type TooltipSide = 'top' | 'right' | 'bottom' | 'left';
6
+ export type TooltipAlign = 'start' | 'center' | 'end';
7
+ export interface TooltipDefaults {
8
+ readonly side: Signal<TooltipSide>;
9
+ readonly align: Signal<TooltipAlign>;
10
+ readonly sideOffset: Signal<number>;
11
+ readonly openDelay: Signal<number>;
12
+ readonly closeDelay: Signal<number>;
13
+ }
14
+ export declare const TOOLTIP_DEFAULTS: InjectionToken<TooltipDefaults>;
15
+ export declare class TooltipComponent implements TooltipDefaults {
16
+ readonly side: import("@angular/core").InputSignal<TooltipSide>;
17
+ readonly align: import("@angular/core").InputSignal<TooltipAlign>;
18
+ readonly sideOffset: import("@angular/core").InputSignal<number>;
19
+ readonly openDelay: import("@angular/core").InputSignal<number>;
20
+ /**
21
+ * Delay before the tooltip hides after the pointer leaves.
22
+ *
23
+ * It matches `openDelay` rather than being zero so the pointer has time to
24
+ * cross the `sideOffset` gap and land on the panel. That is what makes the
25
+ * panel reachable, which WCAG 1.4.13 (hoverable) asks for. Set it to `0` for
26
+ * an instant hide, accepting that the panel then cannot be hovered.
27
+ */
28
+ readonly closeDelay: import("@angular/core").InputSignal<number>;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "Tooltip", never, {
31
+ "side": {
32
+ "alias": "side";
33
+ "required": false;
34
+ "isSignal": true;
35
+ };
36
+ "align": {
37
+ "alias": "align";
38
+ "required": false;
39
+ "isSignal": true;
40
+ };
41
+ "sideOffset": {
42
+ "alias": "sideOffset";
43
+ "required": false;
44
+ "isSignal": true;
45
+ };
46
+ "openDelay": {
47
+ "alias": "openDelay";
48
+ "required": false;
49
+ "isSignal": true;
50
+ };
51
+ "closeDelay": {
52
+ "alias": "closeDelay";
53
+ "required": false;
54
+ "isSignal": true;
55
+ };
56
+ }, {}, never, ["*"], true, never>;
57
+ }
58
+ export declare class TooltipContentDirective {
59
+ protected readonly componentScale: ComponentScaleDirective;
60
+ readonly radius: import("@angular/core").InputSignal<"inherit" | "none" | "xs" | "sm" | "md" | "xl" | "full">;
61
+ readonly density: import("@angular/core").InputSignal<"inherit" | "compact" | "normal" | "relaxed" | "spacious">;
62
+ readonly template: TemplateRef<unknown>;
63
+ /**
64
+ * Resolved `--radius-base` / `--spacing-base` knob values (or `null` to
65
+ * inherit the global axis). Public so {@link TooltipTriggerDirective} can mirror
66
+ * them onto the CDK overlay panel — the element that actually paints the rounded
67
+ * background + padding — since this directive sits on an `<ng-template>` whose
68
+ * host bindings never reach the imperatively-created overlay subtree.
69
+ */
70
+ readonly radiusBase: import("@angular/core").Signal<string | null>;
71
+ readonly densityBase: import("@angular/core").Signal<string | null>;
72
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipContentDirective, never>;
73
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipContentDirective, "ng-template[TooltipContent]", ["TooltipContent"], {}, {}, never, never, true, [{
74
+ directive: typeof i1.ComponentScaleDirective;
75
+ inputs: {
76
+ "radius": "radius";
77
+ "density": "density";
78
+ };
79
+ outputs: {};
80
+ }]>;
81
+ }
82
+ export declare class TooltipTriggerDirective {
83
+ private readonly overlay;
84
+ private readonly vcr;
85
+ private readonly el;
86
+ private readonly destroyRef;
87
+ private readonly defaults;
88
+ private readonly idGenerator;
89
+ readonly TooltipTrigger: import("@angular/core").InputSignal<TooltipContentDirective>;
90
+ readonly side: import("@angular/core").InputSignal<TooltipSide | undefined>;
91
+ readonly align: import("@angular/core").InputSignal<TooltipAlign | undefined>;
92
+ readonly sideOffset: import("@angular/core").InputSignal<number | undefined>;
93
+ readonly openDelay: import("@angular/core").InputSignal<number | undefined>;
94
+ readonly closeDelay: import("@angular/core").InputSignal<number | undefined>;
95
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
96
+ readonly openedChange: import("@angular/core").OutputEmitterRef<boolean>;
97
+ readonly isOpen: import("@angular/core").WritableSignal<boolean>;
98
+ protected readonly contentId: import("@angular/core").WritableSignal<string | null>;
99
+ private overlayRef;
100
+ private openTimeoutId;
101
+ private closeTimeoutId;
102
+ private isPointerInsideTrigger;
103
+ private isPointerInsidePanel;
104
+ private isTriggerFocused;
105
+ private isDestroying;
106
+ /**
107
+ * Holds the tooltip open while the pointer rests on the panel, so a user can
108
+ * move onto it to read or copy the content (WCAG 1.4.13, hoverable).
109
+ */
110
+ private readonly onPanelPointerEnter;
111
+ private readonly onPanelPointerLeave;
112
+ constructor();
113
+ handlePointerEnter(): void;
114
+ handlePointerLeave(event: PointerEvent): void;
115
+ handleFocusIn(): void;
116
+ handleFocusOut(event: FocusEvent): void;
117
+ open(): void;
118
+ close(): void;
119
+ private applySurfaceVars;
120
+ private bindOverlayLifecycle;
121
+ private scheduleOpen;
122
+ private scheduleClose;
123
+ private releasePanel;
124
+ private clearOpenTimeout;
125
+ private clearCloseTimeout;
126
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipTriggerDirective, never>;
127
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipTriggerDirective, "[TooltipTrigger]", ["TooltipTrigger"], {
128
+ "TooltipTrigger": {
129
+ "alias": "TooltipTrigger";
130
+ "required": true;
131
+ "isSignal": true;
132
+ };
133
+ "side": {
134
+ "alias": "side";
135
+ "required": false;
136
+ "isSignal": true;
137
+ };
138
+ "align": {
139
+ "alias": "align";
140
+ "required": false;
141
+ "isSignal": true;
142
+ };
143
+ "sideOffset": {
144
+ "alias": "sideOffset";
145
+ "required": false;
146
+ "isSignal": true;
147
+ };
148
+ "openDelay": {
149
+ "alias": "openDelay";
150
+ "required": false;
151
+ "isSignal": true;
152
+ };
153
+ "closeDelay": {
154
+ "alias": "closeDelay";
155
+ "required": false;
156
+ "isSignal": true;
157
+ };
158
+ "disabled": {
159
+ "alias": "disabled";
160
+ "required": false;
161
+ "isSignal": true;
162
+ };
163
+ }, {
164
+ "openedChange": "openedChange";
165
+ }, never, never, true, never>;
166
+ }
167
+ /** Posisi tooltip; kompatibel dengan nilai `matTooltipPosition` lama. */
168
+ export type TooltipPosition = 'left' | 'right' | 'above' | 'below' | 'before' | 'after';
169
+ /**
170
+ * Shadcn-styled text tooltip — CDK overlay, tanpa dependensi Material.
171
+ *
172
+ * @example
173
+ * <button Button [Tooltip]="'Save changes'" TooltipPosition="above">Save</button>
174
+ */
175
+ export declare class TooltipDirective {
176
+ private readonly overlay;
177
+ private readonly el;
178
+ private readonly destroyRef;
179
+ private readonly idGenerator;
180
+ readonly Tooltip: import("@angular/core").InputSignal<string>;
181
+ readonly TooltipPosition: import("@angular/core").InputSignal<TooltipPosition>;
182
+ readonly TooltipDisabled: import("@angular/core").InputSignal<boolean>;
183
+ readonly TooltipShowDelay: import("@angular/core").InputSignal<number>;
184
+ /**
185
+ * Delay before hiding. It matches the show delay rather than being zero so the
186
+ * pointer can cross the offset gap and land on the panel, which is what makes
187
+ * the panel reachable (WCAG 1.4.13, hoverable). Set `0` for an instant hide,
188
+ * accepting that the panel then cannot be hovered.
189
+ */
190
+ readonly TooltipHideDelay: import("@angular/core").InputSignal<number>;
191
+ private overlayRef;
192
+ private contentRef;
193
+ private showTimeoutId;
194
+ private hideTimeoutId;
195
+ private isPointerInsidePanel;
196
+ private readonly onPanelPointerEnter;
197
+ private readonly onPanelPointerLeave;
198
+ private readonly side;
199
+ constructor();
200
+ show(): void;
201
+ hide(): void;
202
+ protected scheduleShow(): void;
203
+ protected scheduleHide(): void;
204
+ private clearTimers;
205
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
206
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[Tooltip]", ["Tooltip"], {
207
+ "Tooltip": {
208
+ "alias": "Tooltip";
209
+ "required": false;
210
+ "isSignal": true;
211
+ };
212
+ "TooltipPosition": {
213
+ "alias": "TooltipPosition";
214
+ "required": false;
215
+ "isSignal": true;
216
+ };
217
+ "TooltipDisabled": {
218
+ "alias": "TooltipDisabled";
219
+ "required": false;
220
+ "isSignal": true;
221
+ };
222
+ "TooltipShowDelay": {
223
+ "alias": "TooltipShowDelay";
224
+ "required": false;
225
+ "isSignal": true;
226
+ };
227
+ "TooltipHideDelay": {
228
+ "alias": "TooltipHideDelay";
229
+ "required": false;
230
+ "isSignal": true;
231
+ };
232
+ }, {}, never, never, true, never>;
233
+ }
@@ -0,0 +1,175 @@
1
+ import { ClassValue } from "clsx";
2
+ import { InjectionToken } from "@angular/core";
3
+ export declare function cn(...inputs: ClassValue[]): string;
4
+ /** Request/application-scoped DOM id generator with deterministic sequencing. */
5
+ export declare class UiIdGenerator {
6
+ private counter;
7
+ private readonly appInfix;
8
+ constructor(appId?: string);
9
+ next(prefix: string): string;
10
+ }
11
+ /**
12
+ * One generator per Angular application injector. Separate SSR requests and a
13
+ * hydrating browser application therefore start from the same deterministic
14
+ * sequence instead of sharing process-global state.
15
+ */
16
+ export declare const UI_ID_GENERATOR: InjectionToken<UiIdGenerator>;
17
+ /** Generates an id during component/directive construction. */
18
+ export declare function injectUniqueId(prefix: string): string;
19
+ /**
20
+ * One item of a horizontal roving row: a trigger that discloses an overlay, or
21
+ * a plain link sitting beside one. The row only ever asks an item whether it is
22
+ * disabled, moves focus to it, and matches it against an event target -- it
23
+ * never touches roles or ARIA, so a real `menubar` and a disclosure navigation
24
+ * can share it without either inheriting the other's semantics.
25
+ */
26
+ export interface RovingRowItem {
27
+ disabled(): boolean;
28
+ focus(): void;
29
+ containsTarget(target: EventTarget | null): boolean;
30
+ }
31
+ /** The subset of a disclosure trigger the row needs to hand one panel over. */
32
+ export interface RovingRowTrigger extends RovingRowItem {
33
+ close(options: {
34
+ restoreFocus: boolean;
35
+ }): void;
36
+ }
37
+ export type RovingRowDirection = 'previous' | 'next' | 'start' | 'end';
38
+ /** Which items answer for a keyboard event: every one, or only the enabled ones. */
39
+ export type RovingRowScope = 'all' | 'enabled';
40
+ export interface RovingRowConfig<TItem extends RovingRowItem> {
41
+ /** Every row item in DOM order, disabled ones included. */
42
+ items: () => readonly TItem[];
43
+ /** The row element; its resolved writing direction decides which way an arrow steps. */
44
+ host: () => HTMLElement;
45
+ /** Whether arrows wrap around at the ends instead of clamping. */
46
+ loop: () => boolean;
47
+ /**
48
+ * Commits a resolved move. The row has already picked the neighbour and
49
+ * ruled out the no-op cases; what focusing it means for an open panel is the
50
+ * owning component's decision, so it lands here.
51
+ */
52
+ enter: (item: TItem) => void;
53
+ }
54
+ /**
55
+ * Roving focus across one horizontal row of items, with at most one open
56
+ * disclosure among them.
57
+ *
58
+ * Shared by `Menubar` and `NavigationMenu`: both walk a single row with the
59
+ * arrow keys plus Home/End, hold exactly one tab stop, and keep at most one
60
+ * panel open. Everything that differs between the two -- roles, ARIA, and what
61
+ * happens to an open panel when focus moves on -- stays in the components.
62
+ */
63
+ export declare class RovingRow<TItem extends RovingRowItem, TTrigger extends TItem & RovingRowTrigger> {
64
+ private readonly config;
65
+ private readonly activeItem;
66
+ private readonly open;
67
+ constructor(config: RovingRowConfig<TItem>);
68
+ items(): readonly TItem[];
69
+ enabledItems(): TItem[];
70
+ setActive(item: TItem): void;
71
+ /**
72
+ * The roving `tabindex` for one row item.
73
+ *
74
+ * A composite widget carries exactly one tab stop: normally the active item
75
+ * owns it, falling back to the first enabled one. When EVERY item is disabled
76
+ * there is no enabled candidate, and leaving them all at `-1` drops the whole
77
+ * widget out of the tab order -- it becomes unreachable and a keyboard user
78
+ * cannot even discover that it is there. The first item keeps the tab stop
79
+ * instead and announces its state through `aria-disabled`, which is the APG
80
+ * focusable-disabled-item approach.
81
+ */
82
+ tabIndexFor(item: TItem): number;
83
+ openTrigger(): TTrigger | null;
84
+ hasOpenTrigger(except?: TTrigger): boolean;
85
+ notifyOpen(trigger: TTrigger): void;
86
+ notifyClosed(trigger: TTrigger): void;
87
+ /** The row item an event came from, or `null` when it came from outside the row. */
88
+ itemFrom(target: EventTarget | null, scope: RovingRowScope): TItem | null;
89
+ /**
90
+ * Handles the keys that walk the row itself -- Home, End and the horizontal
91
+ * arrows -- and reports whether it claimed the event, so a component can add
92
+ * its own keys around this without restating the row model.
93
+ */
94
+ handleNavigationKey(item: TItem, event: KeyboardEvent): boolean;
95
+ move(currentItem: TItem, direction: RovingRowDirection): void;
96
+ private nextIndex;
97
+ private horizontalStep;
98
+ }
99
+ /**
100
+ * Per-component corner-radius / spacing-density override helpers.
101
+ *
102
+ * These mirror the global `theme-radius` / `theme-space` preset values from
103
+ * `@edsis/angular/theme` — kept as a local copy so this package stays
104
+ * decoupled from the theme package (see its empty peer/deps on -theme).
105
+ *
106
+ * A component that accepts a `radius` / `density` input binds the resolved value
107
+ * onto its surface element via `[style.--radius-base]` / `[style.--spacing-base]`.
108
+ * Tailwind's `rounded-*` utilities resolve `calc(var(--radius-base) * n)` and the
109
+ * spacing utilities resolve `calc(var(--spacing-base) * n)` (see the theme's
110
+ * `base/tailwind.css` `@theme inline` mapping), so the override rescales that
111
+ * subtree and shadows the global `<html theme-radius|theme-space>` axis. The
112
+ * `'inherit'` preset binds nothing, so the component keeps following the axis.
113
+ */
114
+ /** Corner-radius presets for a per-component `radius` input. */
115
+ export declare const COMPONENT_RADII: readonly ["inherit", "none", "xs", "sm", "md", "xl", "full"];
116
+ export type ComponentRadius = (typeof COMPONENT_RADII)[number];
117
+ /** Spacing-density presets for a per-component `density` input. */
118
+ export declare const COMPONENT_DENSITIES: readonly ["inherit", "compact", "normal", "relaxed", "spacious"];
119
+ export type ComponentDensity = (typeof COMPONENT_DENSITIES)[number];
120
+ /**
121
+ * Resolves a `radius` input to a `--radius-base` value, or `null` to inherit the
122
+ * global axis. Bind the result to the surface host: `[style.--radius-base]`.
123
+ */
124
+ export declare function radiusBaseValue(radius: ComponentRadius): string | null;
125
+ /**
126
+ * Resolves a `density` input to a `--spacing-base` value, or `null` to inherit
127
+ * the global axis. Bind the result to the surface host: `[style.--spacing-base]`.
128
+ */
129
+ export declare function densityBaseValue(density: ComponentDensity): string | null;
130
+ /**
131
+ * Returns a document-unique id with the given prefix, e.g. `uniqueId('Checkbox')`
132
+ * → `"checkbox-1"`. Single shared counter for every component in the library.
133
+ *
134
+ * @deprecated Use `injectUniqueId` or inject `UI_ID_GENERATOR`. This legacy
135
+ * function cannot isolate concurrent server-rendering requests.
136
+ */
137
+ export declare function uniqueId(prefix: string): string;
138
+ /**
139
+ * One safe way to touch `localStorage`, for every library that persists a
140
+ * preference.
141
+ *
142
+ * The same "reach localStorage through the document's window, wrap everything in
143
+ * try/catch" block was hand-copied across the theme axes and the navigation
144
+ * persistence unit. Every copy had to get three things right:
145
+ *
146
+ * 1. there may be no document at all (server side rendering),
147
+ * 2. `window.localStorage` can THROW on property access, not just on `getItem`
148
+ * (a blocked or partitioned storage), so the getter itself needs guarding,
149
+ * 3. a quota error on write must never break the caller.
150
+ *
151
+ * This lives in `component/utils/core` rather than in the theme package on
152
+ * purpose: `navigation` also needs it, and navigation must not depend on
153
+ * `theme`, which already depends on navigation. Both already depend on this
154
+ * entry point.
155
+ */
156
+ /** A storage that never throws. Missing storage reads as `null` and writes are dropped. */
157
+ export interface WebStorageRef {
158
+ read(key: string): string | null;
159
+ write(key: string, value: string): void;
160
+ remove(key: string): void;
161
+ }
162
+ /**
163
+ * `localStorage` reached through a document's own window.
164
+ *
165
+ * Resolved lazily on every call and never cached: the property access is the
166
+ * part that can throw, and a storage that is blocked now may be available later
167
+ * (or the other way round).
168
+ */
169
+ export declare function documentLocalStorage(documentRef: Document | null | undefined): WebStorageRef;
170
+ /**
171
+ * `localStorage` from the global scope, for callers that only know whether they
172
+ * are in a browser (the `isPlatformBrowser` flavour) rather than holding a
173
+ * `Document`.
174
+ */
175
+ export declare function globalLocalStorage(isBrowser: boolean): WebStorageRef;
@@ -0,0 +1,17 @@
1
+ import { ConnectedPosition, OverlayRef } from "@angular/cdk/overlay";
2
+ import { Observable } from "rxjs";
3
+ export type OverlaySide = 'top' | 'right' | 'bottom' | 'left';
4
+ export type OverlayAlign = 'start' | 'center' | 'end';
5
+ /**
6
+ * Builds the CDK `ConnectedPosition` for a shadcn-style `side`/`align`/`sideOffset`
7
+ * triple. Shared by every anchored overlay in the library (popover, tooltip,
8
+ * hover-card, menus, combobox).
9
+ */
10
+ export declare function connectedPositionFor(side: OverlaySide, align: OverlayAlign, sideOffset: number): ConnectedPosition;
11
+ export declare function oppositeSide(side: OverlaySide): OverlaySide;
12
+ /**
13
+ * Emits whenever the user dismisses the overlay: pointer down outside (ignoring
14
+ * the origin element so trigger clicks keep toggling), Escape, or detachment.
15
+ * Subscribers decide how to close.
16
+ */
17
+ export declare function overlayDismissals(overlayRef: OverlayRef, origin?: HTMLElement): Observable<unknown>;
@@ -0,0 +1,27 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Shared host behavior for the per-component radius and density axes.
4
+ *
5
+ * Components expose the directive inputs through `hostDirectives`, preserving
6
+ * their public `radius`/`density` API while keeping the CSS-variable mapping in
7
+ * one implementation.
8
+ */
9
+ export declare class ComponentScaleDirective {
10
+ readonly radius: import("@angular/core").InputSignal<"inherit" | "none" | "xs" | "sm" | "md" | "xl" | "full">;
11
+ readonly density: import("@angular/core").InputSignal<"inherit" | "compact" | "normal" | "relaxed" | "spacious">;
12
+ readonly radiusBase: import("@angular/core").Signal<string | null>;
13
+ readonly densityBase: import("@angular/core").Signal<string | null>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComponentScaleDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComponentScaleDirective, never, never, {
16
+ "radius": {
17
+ "alias": "radius";
18
+ "required": false;
19
+ "isSignal": true;
20
+ };
21
+ "density": {
22
+ "alias": "density";
23
+ "required": false;
24
+ "isSignal": true;
25
+ };
26
+ }, {}, never, never, true, never>;
27
+ }
@@ -0,0 +1,2 @@
1
+ export * from "@edsis/angular/component/utils/core";
2
+ export * from "@edsis/angular/component/utils/overlay";
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,55 @@
1
+ import { InjectionToken, Signal } from "@angular/core";
2
+ import { ActivatedRoute, IsActiveMatchOptions } from "@angular/router";
3
+ import { NavigationDockbarMode, NavigationIconContext, NavigationItem, NavigationNormalizedItem, NavigationOrientation, NavigationPosition, NavigationRegisterInput, NavigationResolvedRouteContext, NavigationState, NavigationType } from "@edsis/angular/navigation/types";
4
+ /** Stable contract consumed by navigation UI, independently of its state implementation. */
5
+ export interface NavigationAdapter {
6
+ register(input: NavigationRegisterInput, owner?: object): NavigationState;
7
+ unregister(id: string, owner?: object): void;
8
+ state(id: string): Signal<NavigationState | null>;
9
+ currentState(id: string): NavigationState | null;
10
+ data(id: string): Signal<readonly NavigationItem[]>;
11
+ publishData(id: string, data: readonly NavigationItem[], owner?: object): void;
12
+ clearData(id: string, owner?: object): void;
13
+ currentPanelKey(id: string): string | null;
14
+ update(id: string, patch: Partial<NavigationRegisterInput>): NavigationState;
15
+ setType(id: string, type: NavigationType): NavigationState;
16
+ setPosition(id: string, position: NavigationPosition): NavigationState;
17
+ setCollapsed(id: string, collapsed: boolean): NavigationState;
18
+ toggleCollapsed(id: string): NavigationState;
19
+ setDockbarMode(id: string, mode: NavigationDockbarMode): NavigationState;
20
+ isRouterItem(item: NavigationNormalizedItem): boolean;
21
+ hrefFor(item: NavigationNormalizedItem): string | null;
22
+ relFor(item: NavigationNormalizedItem): string | null;
23
+ routerLinkActiveOptions(item: NavigationNormalizedItem): IsActiveMatchOptions;
24
+ itemRole(orientation: NavigationOrientation, level: number): 'menuitem' | null;
25
+ compactLabel(item: NavigationNormalizedItem, compact: boolean): string | null;
26
+ titleFor(item: NavigationNormalizedItem, compact: boolean): string | null;
27
+ compactFallback(item: NavigationNormalizedItem): string;
28
+ iconContext(item: NavigationNormalizedItem, active: boolean, level: number, orientation: NavigationOrientation): NavigationIconContext;
29
+ isItemActive(item: NavigationNormalizedItem, activeIds: ReadonlySet<string>, explicitActiveUrl: string | null): boolean;
30
+ isPanelOpen(item: NavigationNormalizedItem): boolean;
31
+ isPanelOpen(navId: string, item: NavigationNormalizedItem): boolean;
32
+ openPanel(item: NavigationNormalizedItem): void;
33
+ openPanel(navId: string, item: NavigationNormalizedItem): void;
34
+ togglePanel(item: NavigationNormalizedItem): void;
35
+ togglePanel(navId: string, item: NavigationNormalizedItem): void;
36
+ closePanel(id?: string): void;
37
+ dockbarGroups(items: readonly NavigationNormalizedItem[]): readonly NavigationNormalizedItem[];
38
+ resolveDockbarGroup(id: string, items: readonly NavigationNormalizedItem[], mode: NavigationDockbarMode, activeIds: ReadonlySet<string>, activeUrl: string | null): NavigationNormalizedItem | null;
39
+ isDrawerOpen(id: string): boolean;
40
+ openDrawer(id: string): void;
41
+ toggleDrawer(id: string): void;
42
+ closeDrawer(id: string): void;
43
+ }
44
+ /**
45
+ * Kontrak terpisah untuk Router context agar custom `NavigationAdapter` lama
46
+ * tidak perlu mengimplementasikan method baru.
47
+ */
48
+ export interface NavigationRouteContextAdapter {
49
+ readonly routeContext: Signal<NavigationResolvedRouteContext>;
50
+ isItemRouteActive(item: NavigationNormalizedItem, explicitActiveUrl: string | null, relativeTo?: ActivatedRoute | null): boolean;
51
+ }
52
+ /** Override this token to supply a custom state/persistence adapter. */
53
+ export declare const NAVIGATION_ADAPTER: InjectionToken<NavigationAdapter>;
54
+ /** Override token ini untuk memasok route context dari router/state host lain. */
55
+ export declare const NAVIGATION_ROUTE_CONTEXT_ADAPTER: InjectionToken<NavigationRouteContextAdapter>;
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import { TemplateRef } from "@angular/core";
3
+ import { NavigationIconContext } from "@edsis/angular/navigation/types";
4
+ export declare class NavigationIconDirective {
5
+ readonly template: TemplateRef<NavigationIconContext>;
6
+ static ngTemplateContextGuard(_directive: NavigationIconDirective, context: unknown): context is NavigationIconContext;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavigationIconDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NavigationIconDirective, "ng-template[NavigationIcon]", never, {}, {}, never, never, true, never>;
9
+ }
@@ -0,0 +1,121 @@
1
+ import * as i0 from "@angular/core";
2
+ import { Signal } from "@angular/core";
3
+ import { ActivatedRoute, IsActiveMatchOptions } from "@angular/router";
4
+ import { NavigationDockbarMode, NavigationDockbarMode as NavigationDockbarMode$1, NavigationIconContext, NavigationIconContext as NavigationIconContext$1, NavigationItem, NavigationItem as NavigationItem$1, NavigationLink, NavigationNormalizedItem, NavigationNormalizedItem as NavigationNormalizedItem$1, NavigationOrientation, NavigationOrientation as NavigationOrientation$1, NavigationPosition, NavigationPosition as NavigationPosition$1, NavigationRegisterInput, NavigationRegisterInput as NavigationRegisterInput$1, NavigationResolvedRouteContext, NavigationState, NavigationState as NavigationState$1, NavigationType, NavigationType as NavigationType$1 } from "@edsis/angular/navigation/types";
5
+ export declare class NavigationService {
6
+ private readonly documentRef;
7
+ private readonly persistence;
8
+ private readonly router;
9
+ private readonly urlResolver;
10
+ private readonly location;
11
+ private readonly routerUrl;
12
+ private readonly states;
13
+ private readonly openPanelKeys;
14
+ private readonly drawerOpenState;
15
+ /** Data mentah per id, dipublikasikan oleh `<Navigation>` agar surface lain (mis. apps-launcher di `Page`) bisa membaca nav by id tanpa mendaftarkan ulang id yang sama. */
16
+ private readonly dataById;
17
+ /** Semua publisher hidup per data id. Publisher terakhir menjadi sumber aktif; cleanup owner lama tidak boleh menghapus publisher baru. */
18
+ private readonly dataPublishers;
19
+ /** Token stabil untuk pemanggil legacy yang tidak mengirim owner. */
20
+ private readonly ownerlessDataPublisher;
21
+ /** id navigasi → token owner instance, untuk menjaga setiap id hanya dipakai satu <Navigation> hidup. */
22
+ private readonly idOwners;
23
+ readonly openPanelKey: Signal<string | null>;
24
+ /** Route aktif yang sudah dinormalisasi untuk consumer dockbar route-aware. */
25
+ readonly routeContext: Signal<NavigationResolvedRouteContext>;
26
+ readonly exactMatchOptions: IsActiveMatchOptions;
27
+ readonly subsetMatchOptions: IsActiveMatchOptions;
28
+ constructor();
29
+ /**
30
+ * Panel eksplisit (klik trigger rail/navbar) adalah state telusur sementara.
31
+ * Perpindahan path harus mengembalikan panel ke resolusi URL: tanpa pelepasan
32
+ * ini, dockbar sticky terkunci pada group lama sampai browser di-refresh,
33
+ * karena `resolveDockbarGroup` memprioritaskan panel key di atas pencocokan
34
+ * URL. Navigasi yang hanya mengubah query/fragment tidak melepas panel agar
35
+ * penelusuran group lain tidak tersentak oleh update background (mis. sort
36
+ * state yang ditulis ke query params).
37
+ */
38
+ private releasePanelsAfterNavigation;
39
+ /**
40
+ * Until the first navigation commits, `router.url` is still `/`, so a deep link
41
+ * resolved as home until its lazy route loaded, and the route-aware dockbar then
42
+ * opened late and shifted the content. The address bar already holds the
43
+ * target; `NavigationEnd` replaces this guess with the router's own URL.
44
+ */
45
+ private initialUrl;
46
+ private urlPath;
47
+ private readRouteContext;
48
+ private optionalString;
49
+ register(input: NavigationRegisterInput$1, owner?: object): NavigationState$1;
50
+ unregister(id: string, owner?: object): void;
51
+ /**
52
+ * Validasi keunikan id navigasi: setiap instance `<Navigation>` wajib memakai id unik.
53
+ * `owner` adalah token unik per instance — klaim ulang oleh owner yang sama (mis. perubahan
54
+ * input) diizinkan, tetapi dua instance hidup dengan id sama dianggap salah konfigurasi dan
55
+ * melempar error di mode dev. Pemanggil tanpa owner (akses langsung service) dilewati.
56
+ */
57
+ private claimId;
58
+ private releaseId;
59
+ state(id: string): Signal<NavigationState$1 | null>;
60
+ currentState(id: string): NavigationState$1 | null;
61
+ /** Data terdaftar untuk sebuah id sebagai signal; `[]` bila belum ada `<Navigation>` dengan id tersebut. */
62
+ data(id: string): Signal<readonly NavigationItem$1[]>;
63
+ /** Dipanggil `<Navigation>` untuk mempublikasikan datanya ke registry by id. */
64
+ publishData(id: string, data: readonly NavigationItem$1[], owner?: object): void;
65
+ /** Dipanggil `<Navigation>` saat destroy untuk melepas datanya dari registry. */
66
+ clearData(id: string, owner?: object): void;
67
+ currentPanelKey(id: string): string | null;
68
+ update(id: string, patch: Partial<NavigationRegisterInput$1>): NavigationState$1;
69
+ setType(id: string, type: NavigationType$1): NavigationState$1;
70
+ setPosition(id: string, position: NavigationPosition$1): NavigationState$1;
71
+ setCollapsed(id: string, collapsed: boolean): NavigationState$1;
72
+ toggleCollapsed(id: string): NavigationState$1;
73
+ setDockbarMode(id: string, mode: NavigationDockbarMode$1): NavigationState$1;
74
+ isRouterItem(item: NavigationNormalizedItem$1): boolean;
75
+ hrefFor(item: NavigationNormalizedItem$1): string | null;
76
+ /**
77
+ * A consumer `rel` is unioned with the safe default rather than replacing it:
78
+ * returning `rel="external"` verbatim on a `_blank` link dropped `noopener`
79
+ * and handed the opened page a live `window.opener`.
80
+ */
81
+ relFor(item: NavigationNormalizedItem$1): string | null;
82
+ routerLinkActiveOptions(item: NavigationNormalizedItem$1): IsActiveMatchOptions;
83
+ itemRole(orientation: NavigationOrientation$1, level: number): 'menuitem' | null;
84
+ compactLabel(item: NavigationNormalizedItem$1, compact: boolean): string | null;
85
+ titleFor(item: NavigationNormalizedItem$1, compact: boolean): string | null;
86
+ compactFallback(item: NavigationNormalizedItem$1): string;
87
+ iconContext(item: NavigationNormalizedItem$1, active: boolean, level: number, orientation: NavigationOrientation$1): NavigationIconContext$1;
88
+ isItemActive(item: NavigationNormalizedItem$1, activeIds: ReadonlySet<string>, explicitActiveUrl: string | null): boolean;
89
+ /**
90
+ * Pencocokan route murni untuk state dockbar berbasis Router. Berbeda dari
91
+ * `isItemActive`, konfigurasi legacy `item.active` dan `activeIds` sengaja
92
+ * tidak ikut menentukan group route aktif.
93
+ */
94
+ isItemRouteActive(item: NavigationNormalizedItem$1, explicitActiveUrl: string | null, relativeTo?: ActivatedRoute | null): boolean;
95
+ private matchesActiveTreeDeep;
96
+ /**
97
+ * The active URL is parsed once per top-level call and handed down the
98
+ * recursion; re-parsing it at every node turned one navigation into hundreds
99
+ * of identical `parseUrl` calls.
100
+ */
101
+ private activeMatch;
102
+ isPanelOpen(item: NavigationNormalizedItem$1): boolean;
103
+ isPanelOpen(navId: string, item: NavigationNormalizedItem$1): boolean;
104
+ openPanel(item: NavigationNormalizedItem$1): void;
105
+ openPanel(navId: string, item: NavigationNormalizedItem$1): void;
106
+ togglePanel(item: NavigationNormalizedItem$1): void;
107
+ togglePanel(navId: string, item: NavigationNormalizedItem$1): void;
108
+ closePanel(id?: string): void;
109
+ dockbarGroups(items: readonly NavigationNormalizedItem$1[]): readonly NavigationNormalizedItem$1[];
110
+ resolveDockbarGroup(id: string, items: readonly NavigationNormalizedItem$1[], mode: NavigationDockbarMode$1, activeIds: ReadonlySet<string>, activeUrl: string | null): NavigationNormalizedItem$1 | null;
111
+ isDrawerOpen(id: string): boolean;
112
+ openDrawer(id: string): void;
113
+ toggleDrawer(id: string): void;
114
+ closeDrawer(id: string): void;
115
+ private matchesActiveTree;
116
+ private withoutKey;
117
+ private resolvePanelArgs;
118
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
119
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
120
+ }
121
+ export type { NavigationDockbarMode, NavigationIconContext, NavigationItem, NavigationLink, NavigationNormalizedItem, NavigationOrientation, NavigationPosition, NavigationRegisterInput, NavigationState, NavigationType };