@edsis/angular 22.1.3 → 22.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +87 -399
  3. package/SECURITY.md +18 -0
  4. package/SUPPORT.md +15 -0
  5. package/chart/README.md +272 -0
  6. package/component/README.md +89 -0
  7. package/component/accordion/README.md +195 -0
  8. package/component/alert/README.md +184 -0
  9. package/component/alert-dialog/README.md +255 -0
  10. package/component/aspect-ratio/README.md +116 -0
  11. package/component/avatar/README.md +182 -0
  12. package/component/badge/README.md +143 -0
  13. package/component/breadcrumb/README.md +223 -0
  14. package/component/button/README.md +141 -0
  15. package/component/button-group/README.md +214 -0
  16. package/component/calendar/README.md +125 -0
  17. package/component/card/README.md +232 -0
  18. package/component/carousel/README.md +276 -0
  19. package/component/checkbox/README.md +153 -0
  20. package/component/collapsible/README.md +216 -0
  21. package/component/combobox/README.md +202 -0
  22. package/component/command/README.md +287 -0
  23. package/component/composer/README.md +241 -0
  24. package/component/context-menu/README.md +268 -0
  25. package/component/date-picker/README.md +202 -0
  26. package/component/dialog/README.md +276 -0
  27. package/component/drawer/README.md +146 -0
  28. package/component/dropdown-menu/README.md +336 -0
  29. package/component/editor/README.md +152 -0
  30. package/component/empty/README.md +193 -0
  31. package/component/form/README.md +216 -0
  32. package/component/hover-card/README.md +150 -0
  33. package/component/icon/README.md +52 -0
  34. package/component/input/README.md +160 -0
  35. package/component/input-group/README.md +245 -0
  36. package/component/input-otp/README.md +331 -0
  37. package/component/item/README.md +254 -0
  38. package/component/kanban/README.md +81 -0
  39. package/component/kbd/README.md +141 -0
  40. package/component/label/README.md +137 -0
  41. package/component/menubar/README.md +270 -0
  42. package/component/native-select/README.md +176 -0
  43. package/component/navigation-menu/README.md +165 -0
  44. package/component/pagination/README.md +151 -0
  45. package/component/pillbox/README.md +68 -0
  46. package/component/popover/README.md +54 -0
  47. package/component/progress/README.md +160 -0
  48. package/component/radio/README.md +212 -0
  49. package/component/resizable/README.md +178 -0
  50. package/component/scroll-area/README.md +150 -0
  51. package/component/select/README.md +228 -0
  52. package/component/separator/README.md +175 -0
  53. package/component/sheet/README.md +190 -0
  54. package/component/skeleton/README.md +158 -0
  55. package/component/slider/README.md +207 -0
  56. package/component/spinner/README.md +160 -0
  57. package/component/switch/README.md +170 -0
  58. package/component/table/README.md +292 -0
  59. package/component/tabs/README.md +220 -0
  60. package/component/textarea/README.md +169 -0
  61. package/component/timeline/README.md +94 -0
  62. package/component/toast/README.md +173 -0
  63. package/component/toggle/README.md +133 -0
  64. package/component/toggle-group/README.md +234 -0
  65. package/component/tooltip/README.md +230 -0
  66. package/fesm2022/edsis-angular-chart-area.mjs +508 -0
  67. package/fesm2022/edsis-angular-chart-bar.mjs +946 -0
  68. package/fesm2022/edsis-angular-chart-core.mjs +1282 -0
  69. package/fesm2022/edsis-angular-chart-line.mjs +544 -0
  70. package/fesm2022/edsis-angular-chart-pie.mjs +524 -0
  71. package/fesm2022/edsis-angular-chart-primitives.mjs +1647 -0
  72. package/fesm2022/edsis-angular-chart-radar.mjs +693 -0
  73. package/fesm2022/edsis-angular-chart-radial.mjs +542 -0
  74. package/fesm2022/edsis-angular-chart-scatter.mjs +486 -0
  75. package/fesm2022/edsis-angular-chart.mjs +3 -0
  76. package/fesm2022/edsis-angular-component-accordion.mjs +513 -0
  77. package/fesm2022/edsis-angular-component-alert-dialog.mjs +1001 -0
  78. package/fesm2022/edsis-angular-component-alert.mjs +268 -0
  79. package/fesm2022/edsis-angular-component-aspect-ratio.mjs +80 -0
  80. package/fesm2022/edsis-angular-component-avatar.mjs +410 -0
  81. package/fesm2022/edsis-angular-component-badge.mjs +111 -0
  82. package/fesm2022/edsis-angular-component-breadcrumb.mjs +464 -0
  83. package/fesm2022/edsis-angular-component-button-group.mjs +252 -0
  84. package/fesm2022/edsis-angular-component-button.mjs +155 -0
  85. package/fesm2022/edsis-angular-component-calendar.mjs +835 -0
  86. package/fesm2022/edsis-angular-component-card.mjs +460 -0
  87. package/fesm2022/edsis-angular-component-carousel.mjs +700 -0
  88. package/fesm2022/edsis-angular-component-checkbox.mjs +398 -0
  89. package/fesm2022/edsis-angular-component-collapsible.mjs +305 -0
  90. package/fesm2022/edsis-angular-component-combobox.mjs +544 -0
  91. package/fesm2022/edsis-angular-component-command.mjs +815 -0
  92. package/fesm2022/edsis-angular-component-composer.mjs +840 -0
  93. package/fesm2022/edsis-angular-component-context-menu.mjs +197 -0
  94. package/fesm2022/edsis-angular-component-date-picker.mjs +798 -0
  95. package/fesm2022/edsis-angular-component-dialog.mjs +798 -0
  96. package/fesm2022/edsis-angular-component-drawer.mjs +2 -0
  97. package/fesm2022/edsis-angular-component-dropdown-menu.mjs +1259 -0
  98. package/fesm2022/edsis-angular-component-editor.mjs +1000 -0
  99. package/fesm2022/edsis-angular-component-empty.mjs +351 -0
  100. package/fesm2022/edsis-angular-component-form.mjs +821 -0
  101. package/fesm2022/edsis-angular-component-hover-card.mjs +486 -0
  102. package/fesm2022/edsis-angular-component-icon.mjs +253 -0
  103. package/fesm2022/edsis-angular-component-input-group.mjs +453 -0
  104. package/fesm2022/edsis-angular-component-input-otp.mjs +957 -0
  105. package/fesm2022/edsis-angular-component-input.mjs +87 -0
  106. package/fesm2022/edsis-angular-component-item.mjs +720 -0
  107. package/fesm2022/edsis-angular-component-kanban.mjs +812 -0
  108. package/fesm2022/edsis-angular-component-kbd.mjs +124 -0
  109. package/fesm2022/edsis-angular-component-label.mjs +82 -0
  110. package/fesm2022/edsis-angular-component-menubar.mjs +481 -0
  111. package/fesm2022/edsis-angular-component-native-select.mjs +168 -0
  112. package/fesm2022/edsis-angular-component-navigation-menu.mjs +685 -0
  113. package/fesm2022/edsis-angular-component-pagination.mjs +425 -0
  114. package/fesm2022/edsis-angular-component-pillbox.mjs +1679 -0
  115. package/fesm2022/edsis-angular-component-popover.mjs +292 -0
  116. package/fesm2022/edsis-angular-component-progress.mjs +184 -0
  117. package/fesm2022/edsis-angular-component-radio.mjs +491 -0
  118. package/fesm2022/edsis-angular-component-resizable.mjs +703 -0
  119. package/fesm2022/edsis-angular-component-scroll-area.mjs +133 -0
  120. package/fesm2022/edsis-angular-component-segmented-control.mjs +408 -0
  121. package/fesm2022/edsis-angular-component-select.mjs +743 -0
  122. package/fesm2022/edsis-angular-component-separator.mjs +102 -0
  123. package/fesm2022/edsis-angular-component-sheet.mjs +874 -0
  124. package/fesm2022/edsis-angular-component-skeleton.mjs +62 -0
  125. package/fesm2022/edsis-angular-component-slider.mjs +676 -0
  126. package/fesm2022/edsis-angular-component-spinner.mjs +157 -0
  127. package/fesm2022/edsis-angular-component-switch.mjs +361 -0
  128. package/fesm2022/edsis-angular-component-table.mjs +446 -0
  129. package/fesm2022/edsis-angular-component-tabs.mjs +592 -0
  130. package/fesm2022/edsis-angular-component-textarea.mjs +85 -0
  131. package/fesm2022/edsis-angular-component-timeline.mjs +619 -0
  132. package/fesm2022/edsis-angular-component-toast.mjs +231 -0
  133. package/fesm2022/edsis-angular-component-toggle-group.mjs +579 -0
  134. package/fesm2022/edsis-angular-component-toggle.mjs +189 -0
  135. package/fesm2022/edsis-angular-component-tooltip.mjs +804 -0
  136. package/fesm2022/edsis-angular-component-utils-core.mjs +181 -0
  137. package/fesm2022/edsis-angular-component-utils-overlay.mjs +54 -0
  138. package/fesm2022/edsis-angular-component-utils-scale.mjs +76 -0
  139. package/fesm2022/edsis-angular-component-utils.mjs +2 -0
  140. package/fesm2022/edsis-angular-component.mjs +0 -0
  141. package/fesm2022/edsis-angular-navigation-core.mjs +15 -0
  142. package/fesm2022/edsis-angular-navigation-icon.mjs +35 -0
  143. package/fesm2022/edsis-angular-navigation-navigation-badge-count.component-BWWWaUgy.mjs +234 -0
  144. package/fesm2022/edsis-angular-navigation-navigation-dockbar-menu.component-Bx2bxTID.mjs +834 -0
  145. package/fesm2022/edsis-angular-navigation-navigation-entry-grid.component-Duzt1ffz.mjs +823 -0
  146. package/fesm2022/edsis-angular-navigation-navigation-flyout-menu.component-cJ8Q1vM6.mjs +670 -0
  147. package/fesm2022/edsis-angular-navigation-navigation-horizontal.component-CDQ1wt2_.mjs +689 -0
  148. package/fesm2022/edsis-angular-navigation-navigation-item.component-C1VzerJp.mjs +1522 -0
  149. package/fesm2022/edsis-angular-navigation-navigation-list.component-BPYLfrID.mjs +346 -0
  150. package/fesm2022/edsis-angular-navigation-service.mjs +558 -0
  151. package/fesm2022/edsis-angular-navigation-types.mjs +151 -0
  152. package/fesm2022/edsis-angular-navigation.mjs +3338 -0
  153. package/fesm2022/edsis-angular-sdk.mjs +100 -0
  154. package/fesm2022/edsis-angular-theme-component-settings.mjs +1877 -0
  155. package/fesm2022/edsis-angular-theme-layout-services.mjs +252 -0
  156. package/fesm2022/edsis-angular-theme-layout-types.mjs +45 -0
  157. package/fesm2022/edsis-angular-theme-layout-wrapper.mjs +2568 -0
  158. package/fesm2022/edsis-angular-theme-layout.mjs +1089 -0
  159. package/fesm2022/edsis-angular-theme-page-core.mjs +315 -0
  160. package/fesm2022/edsis-angular-theme-page-filter.mjs +409 -0
  161. package/fesm2022/edsis-angular-theme-page-overview.mjs +88 -0
  162. package/fesm2022/edsis-angular-theme-page-root.mjs +693 -0
  163. package/fesm2022/edsis-angular-theme-page-side.mjs +342 -0
  164. package/fesm2022/edsis-angular-theme-page-slots.mjs +258 -0
  165. package/fesm2022/edsis-angular-theme-page.mjs +7 -0
  166. package/fesm2022/edsis-angular-theme-shell-services.mjs +231 -0
  167. package/fesm2022/edsis-angular-theme-shell-types.mjs +102 -0
  168. package/fesm2022/edsis-angular-theme-shell.mjs +1352 -0
  169. package/fesm2022/edsis-angular-theme-styles.mjs +572 -0
  170. package/fesm2022/edsis-angular-theme.mjs +0 -0
  171. package/fesm2022/edsis-angular.mjs +5 -8
  172. package/navigation/README.md +576 -0
  173. package/package.json +477 -52
  174. package/sdk/README.md +212 -0
  175. package/sdk/schematics/collection.json +20 -0
  176. package/sdk/schematics/init/index.js +83 -0
  177. package/sdk/schematics/init/schema.json +19 -0
  178. package/sdk/schematics/ng-add/index.js +147 -0
  179. package/sdk/schematics/ng-add/schema.json +14 -0
  180. package/sdk/schematics/package.json +3 -0
  181. package/sdk/schematics/sdk/index.js +175 -0
  182. package/sdk/schematics/sdk/schema.json +19 -0
  183. package/sdk/sdk.config.example.json +24 -0
  184. package/sdk/src/config/loader.js +43 -0
  185. package/sdk/src/config/schema.js +59 -0
  186. package/sdk/src/emit/client.js +251 -0
  187. package/sdk/src/emit/metadata.js +310 -0
  188. package/sdk/src/emit/models.js +104 -0
  189. package/sdk/src/emit/navigation.js +56 -0
  190. package/sdk/src/emit/operations.js +118 -0
  191. package/sdk/src/emit/public-api.js +54 -0
  192. package/sdk/src/emit/services.js +110 -0
  193. package/sdk/src/engine.js +67 -0
  194. package/sdk/src/layout/per-domain.js +360 -0
  195. package/sdk/src/package.json +3 -0
  196. package/sdk/src/parser/bundle.js +25 -0
  197. package/sdk/src/parser/ir.js +429 -0
  198. package/sdk/src/parser/types.js +7 -0
  199. package/sdk/src/render/template.js +152 -0
  200. package/sdk/src/writer/index.js +286 -0
  201. package/theme/README.md +120 -0
  202. package/theme/component/settings/README.md +154 -0
  203. package/theme/layout/README.md +604 -0
  204. package/theme/page/README.md +505 -0
  205. package/theme/shell/README.md +344 -0
  206. package/theme/styles/README.md +202 -0
  207. package/theme/styles/css/base/components.css +577 -0
  208. package/theme/styles/css/base/index.css +14 -0
  209. package/theme/styles/css/base/package.css +9 -0
  210. package/theme/styles/css/base/prefers-dark.css +86 -0
  211. package/theme/styles/css/base/print.css +62 -0
  212. package/theme/styles/css/base/status.css +38 -0
  213. package/theme/styles/css/base/tailwind.css +208 -0
  214. package/theme/styles/css/base/theme.css +353 -0
  215. package/theme/styles/css/base/tokens.css +388 -0
  216. package/theme/styles/css/color/amber.css +72 -0
  217. package/theme/styles/css/color/blue.css +72 -0
  218. package/theme/styles/css/color/brand.css +38 -0
  219. package/theme/styles/css/color/cyan.css +72 -0
  220. package/theme/styles/css/color/emerald.css +72 -0
  221. package/theme/styles/css/color/fuchsia.css +72 -0
  222. package/theme/styles/css/color/green.css +72 -0
  223. package/theme/styles/css/color/index.css +19 -0
  224. package/theme/styles/css/color/indigo.css +72 -0
  225. package/theme/styles/css/color/lime.css +72 -0
  226. package/theme/styles/css/color/orange.css +72 -0
  227. package/theme/styles/css/color/pink.css +72 -0
  228. package/theme/styles/css/color/purple.css +72 -0
  229. package/theme/styles/css/color/red.css +72 -0
  230. package/theme/styles/css/color/rose.css +72 -0
  231. package/theme/styles/css/color/sky.css +72 -0
  232. package/theme/styles/css/color/teal.css +72 -0
  233. package/theme/styles/css/color/violet.css +72 -0
  234. package/theme/styles/css/color/yellow.css +72 -0
  235. package/theme/styles/css/fonts.css +85 -0
  236. package/theme/styles/css/index.css +18 -0
  237. package/theme/styles/css/neutral/gray.css +63 -0
  238. package/theme/styles/css/neutral/index.css +11 -0
  239. package/theme/styles/css/neutral/mauve.css +63 -0
  240. package/theme/styles/css/neutral/mist.css +63 -0
  241. package/theme/styles/css/neutral/neutral.css +63 -0
  242. package/theme/styles/css/neutral/olive.css +63 -0
  243. package/theme/styles/css/neutral/slate.css +63 -0
  244. package/theme/styles/css/neutral/stone.css +63 -0
  245. package/theme/styles/css/neutral/taupe.css +63 -0
  246. package/theme/styles/css/neutral/zinc.css +63 -0
  247. package/theme/styles/css/radius/index.css +30 -0
  248. package/theme/styles/css/space/index.css +20 -0
  249. package/types/edsis-angular-chart-area.d.ts +139 -0
  250. package/types/edsis-angular-chart-bar.d.ts +291 -0
  251. package/types/edsis-angular-chart-core.d.ts +822 -0
  252. package/types/edsis-angular-chart-line.d.ts +148 -0
  253. package/types/edsis-angular-chart-pie.d.ts +202 -0
  254. package/types/edsis-angular-chart-primitives.d.ts +360 -0
  255. package/types/edsis-angular-chart-radar.d.ts +198 -0
  256. package/types/edsis-angular-chart-radial.d.ts +187 -0
  257. package/types/edsis-angular-chart-scatter.d.ts +181 -0
  258. package/types/edsis-angular-chart.d.ts +3 -0
  259. package/types/edsis-angular-component-accordion.d.ts +139 -0
  260. package/types/edsis-angular-component-alert-dialog.d.ts +288 -0
  261. package/types/edsis-angular-component-alert.d.ts +72 -0
  262. package/types/edsis-angular-component-aspect-ratio.d.ts +20 -0
  263. package/types/edsis-angular-component-avatar.d.ts +111 -0
  264. package/types/edsis-angular-component-badge.d.ts +36 -0
  265. package/types/edsis-angular-component-breadcrumb.d.ts +85 -0
  266. package/types/edsis-angular-component-button-group.d.ts +50 -0
  267. package/types/edsis-angular-component-button.d.ts +44 -0
  268. package/types/edsis-angular-component-calendar.d.ts +150 -0
  269. package/types/edsis-angular-component-card.d.ts +123 -0
  270. package/types/edsis-angular-component-carousel.d.ts +155 -0
  271. package/types/edsis-angular-component-checkbox.d.ts +100 -0
  272. package/types/edsis-angular-component-collapsible.d.ts +68 -0
  273. package/types/edsis-angular-component-combobox.d.ts +105 -0
  274. package/types/edsis-angular-component-command.d.ts +215 -0
  275. package/types/edsis-angular-component-composer.d.ts +190 -0
  276. package/types/edsis-angular-component-context-menu.d.ts +64 -0
  277. package/types/edsis-angular-component-date-picker.d.ts +199 -0
  278. package/types/edsis-angular-component-dialog.d.ts +231 -0
  279. package/types/edsis-angular-component-drawer.d.ts +2 -0
  280. package/types/edsis-angular-component-dropdown-menu.d.ts +370 -0
  281. package/types/edsis-angular-component-editor.d.ts +234 -0
  282. package/types/edsis-angular-component-empty.d.ts +85 -0
  283. package/types/edsis-angular-component-form.d.ts +223 -0
  284. package/types/edsis-angular-component-hover-card.d.ts +133 -0
  285. package/types/edsis-angular-component-icon.d.ts +90 -0
  286. package/types/edsis-angular-component-input-group.d.ts +98 -0
  287. package/types/edsis-angular-component-input-otp.d.ts +249 -0
  288. package/types/edsis-angular-component-input.d.ts +31 -0
  289. package/types/edsis-angular-component-item.d.ts +169 -0
  290. package/types/edsis-angular-component-kanban.d.ts +165 -0
  291. package/types/edsis-angular-component-kbd.d.ts +25 -0
  292. package/types/edsis-angular-component-label.d.ts +19 -0
  293. package/types/edsis-angular-component-menubar.d.ts +123 -0
  294. package/types/edsis-angular-component-native-select.d.ts +39 -0
  295. package/types/edsis-angular-component-navigation-menu.d.ts +163 -0
  296. package/types/edsis-angular-component-pagination.d.ts +83 -0
  297. package/types/edsis-angular-component-pillbox.d.ts +380 -0
  298. package/types/edsis-angular-component-popover.d.ts +96 -0
  299. package/types/edsis-angular-component-progress.d.ts +45 -0
  300. package/types/edsis-angular-component-radio.d.ts +137 -0
  301. package/types/edsis-angular-component-resizable.d.ts +166 -0
  302. package/types/edsis-angular-component-scroll-area.d.ts +37 -0
  303. package/types/edsis-angular-component-segmented-control.d.ts +102 -0
  304. package/types/edsis-angular-component-select.d.ts +138 -0
  305. package/types/edsis-angular-component-separator.d.ts +26 -0
  306. package/types/edsis-angular-component-sheet.d.ts +240 -0
  307. package/types/edsis-angular-component-skeleton.d.ts +13 -0
  308. package/types/edsis-angular-component-slider.d.ts +148 -0
  309. package/types/edsis-angular-component-spinner.d.ts +31 -0
  310. package/types/edsis-angular-component-switch.d.ts +101 -0
  311. package/types/edsis-angular-component-table.d.ts +109 -0
  312. package/types/edsis-angular-component-tabs.d.ts +183 -0
  313. package/types/edsis-angular-component-textarea.d.ts +27 -0
  314. package/types/edsis-angular-component-timeline.d.ts +146 -0
  315. package/types/edsis-angular-component-toast.d.ts +60 -0
  316. package/types/edsis-angular-component-toggle-group.d.ts +161 -0
  317. package/types/edsis-angular-component-toggle.d.ts +47 -0
  318. package/types/edsis-angular-component-tooltip.d.ts +233 -0
  319. package/types/edsis-angular-component-utils-core.d.ts +175 -0
  320. package/types/edsis-angular-component-utils-overlay.d.ts +17 -0
  321. package/types/edsis-angular-component-utils-scale.d.ts +27 -0
  322. package/types/edsis-angular-component-utils.d.ts +2 -0
  323. package/types/edsis-angular-component.d.ts +1 -0
  324. package/types/edsis-angular-navigation-core.d.ts +55 -0
  325. package/types/edsis-angular-navigation-icon.d.ts +9 -0
  326. package/types/edsis-angular-navigation-service.d.ts +121 -0
  327. package/types/edsis-angular-navigation-types.d.ts +185 -0
  328. package/types/edsis-angular-navigation.d.ts +862 -0
  329. package/types/edsis-angular-sdk.d.ts +87 -0
  330. package/types/edsis-angular-theme-component-settings.d.ts +205 -0
  331. package/types/edsis-angular-theme-layout-services.d.ts +143 -0
  332. package/types/edsis-angular-theme-layout-types.d.ts +36 -0
  333. package/types/edsis-angular-theme-layout-wrapper.d.ts +670 -0
  334. package/types/edsis-angular-theme-layout.d.ts +218 -0
  335. package/types/edsis-angular-theme-page-core.d.ts +151 -0
  336. package/types/edsis-angular-theme-page-filter.d.ts +127 -0
  337. package/types/edsis-angular-theme-page-overview.d.ts +28 -0
  338. package/types/edsis-angular-theme-page-root.d.ts +172 -0
  339. package/types/edsis-angular-theme-page-side.d.ts +90 -0
  340. package/types/edsis-angular-theme-page-slots.d.ts +61 -0
  341. package/types/edsis-angular-theme-page.d.ts +7 -0
  342. package/types/edsis-angular-theme-shell-services.d.ts +188 -0
  343. package/types/edsis-angular-theme-shell-types.d.ts +102 -0
  344. package/types/edsis-angular-theme-shell.d.ts +178 -0
  345. package/types/edsis-angular-theme-styles.d.ts +295 -0
  346. package/types/edsis-angular-theme.d.ts +1 -0
  347. package/types/edsis-angular.d.ts +5 -2
  348. package/fesm2022/edsis-angular-block-shell.mjs +0 -1329
  349. package/fesm2022/edsis-angular-block-shell.mjs.map +0 -1
  350. package/fesm2022/edsis-angular-block-themes.mjs +0 -1007
  351. package/fesm2022/edsis-angular-block-themes.mjs.map +0 -1
  352. package/fesm2022/edsis-angular-module-auth.mjs +0 -2582
  353. package/fesm2022/edsis-angular-module-auth.mjs.map +0 -1
  354. package/fesm2022/edsis-angular-platform-mfe.mjs +0 -329
  355. package/fesm2022/edsis-angular-platform-mfe.mjs.map +0 -1
  356. package/fesm2022/edsis-angular-services-runtime.mjs +0 -385
  357. package/fesm2022/edsis-angular-services-runtime.mjs.map +0 -1
  358. package/fesm2022/edsis-angular.mjs.map +0 -1
  359. package/types/edsis-angular-block-shell.d.ts +0 -190
  360. package/types/edsis-angular-block-themes.d.ts +0 -94
  361. package/types/edsis-angular-module-auth.d.ts +0 -533
  362. package/types/edsis-angular-platform-mfe.d.ts +0 -126
  363. package/types/edsis-angular-services-runtime.d.ts +0 -118
@@ -0,0 +1,172 @@
1
+ import { NavigationItem } from "@edsis/angular/navigation/types";
2
+ import { PageFilterComponent } from "@edsis/angular/theme/page/filter";
3
+ import { PageOverviewComponent } from "@edsis/angular/theme/page/overview";
4
+ import { PageHeaderComponent } from "@edsis/angular/theme/page/slots";
5
+ import { PageSideComponent } from "@edsis/angular/theme/page/side";
6
+ import { PageStateService } from "@edsis/angular/theme/page/core";
7
+ import * as i0 from "@angular/core";
8
+ export declare class PageComponent {
9
+ protected readonly page: PageStateService;
10
+ private readonly layout;
11
+ private readonly navigation;
12
+ private readonly identity;
13
+ protected readonly projectedSide: import("@angular/core").Signal<PageSideComponent | undefined>;
14
+ protected readonly projectedHeader: import("@angular/core").Signal<PageHeaderComponent | undefined>;
15
+ protected readonly projectedFilter: import("@angular/core").Signal<PageFilterComponent | undefined>;
16
+ protected readonly projectedOverview: import("@angular/core").Signal<PageOverviewComponent | undefined>;
17
+ readonly variant: import("@angular/core").InputSignal<"stacked" | "side">;
18
+ readonly height: import("@angular/core").InputSignal<"auto" | "fix">;
19
+ readonly scroll: import("@angular/core").InputSignal<"content" | "page">;
20
+ /** Visual appearance shared with the layout (`flat | border-rail`); unifies header/footer borders. */
21
+ readonly appearance: import("@angular/core").InputSignal<"flat" | "border-rail">;
22
+ readonly position: import("@angular/core").InputSignal<"left" | "right">;
23
+ readonly sideMode: import("@angular/core").InputSignal<"sticky" | "drawer" | "overlay">;
24
+ readonly sideOpen: import("@angular/core").InputSignal<boolean | null>;
25
+ readonly sideWidth: import("@angular/core").InputSignal<string>;
26
+ /** Controlled state for a drawer/overlay `PageFilter`. `null` is uncontrolled — the toggle, backdrop, and Esc drive it. */
27
+ readonly filterOpen: import("@angular/core").InputSignal<boolean | null>;
28
+ readonly class: import("@angular/core").InputSignal<string>;
29
+ readonly sideOpenChange: import("@angular/core").OutputEmitterRef<boolean>;
30
+ readonly filterOpenChange: import("@angular/core").OutputEmitterRef<boolean>;
31
+ /** Under the `empty` layout, show the apps button (a flyout of the main navigation) in the top-right corner. `false` turns it off. */
32
+ readonly appsLauncher: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
33
+ /** Id of the navigation the apps launcher surfaces (`main` by default). */
34
+ readonly appsNavId: import("@angular/core").InputSignal<string>;
35
+ /** Lucide icon name for the apps launcher button. */
36
+ readonly appsIcon: import("@angular/core").InputSignal<string>;
37
+ /** Label and `aria-label` for the icon-only apps launcher button. */
38
+ readonly appsLabel: import("@angular/core").InputSignal<string>;
39
+ /** Accessible name for the backdrop button that dismisses an open overlay panel. */
40
+ readonly overlayCloseLabel: import("@angular/core").InputSignal<string>;
41
+ /** Id unik untuk instance `<Navigation>` apps-launcher; tak boleh memakai id `main` (akan bentrok `claimId`). */
42
+ protected readonly launcherNavId: string;
43
+ protected readonly resolvedPosition: import("@angular/core").Signal<"left" | "right">;
44
+ protected readonly resolvedSideMode: import("@angular/core").Signal<"sticky" | "drawer" | "overlay">;
45
+ protected readonly isLeftSide: import("@angular/core").Signal<boolean>;
46
+ protected readonly isRightSide: import("@angular/core").Signal<boolean>;
47
+ protected readonly hasFilter: import("@angular/core").Signal<boolean>;
48
+ protected readonly filterPlacement: import("@angular/core").Signal<"stacked" | "side">;
49
+ /** Mode efektif: `stacked` selalu `sticky`; `side` memakai mode pada `PageFilter`. */
50
+ protected readonly filterMode: import("@angular/core").Signal<"sticky" | "drawer" | "overlay">;
51
+ protected readonly filterPosition: import("@angular/core").Signal<"left" | "right">;
52
+ protected readonly filterWidthVar: import("@angular/core").Signal<string>;
53
+ protected readonly hasOverview: import("@angular/core").Signal<boolean>;
54
+ protected readonly showsSideOverlayBackdrop: import("@angular/core").Signal<boolean>;
55
+ protected readonly showsFilterOverlayBackdrop: import("@angular/core").Signal<boolean>;
56
+ protected readonly showsOverlayBackdrop: import("@angular/core").Signal<boolean>;
57
+ /** Signal data untuk id yang dipilih; di-recompute hanya saat `appsNavId` berubah. */
58
+ private readonly appsNavSource;
59
+ protected readonly appsNavData: import("@angular/core").Signal<readonly NavigationItem[]>;
60
+ /** Apps-launcher hanya muncul di layout `empty`, saat diaktifkan, dan saat nav target punya data. */
61
+ protected readonly showsAppsLauncher: import("@angular/core").Signal<boolean>;
62
+ /**
63
+ * Host `<Navigation>` launcher di-absolute ke pojok kanan-atas (hanya membungkus tombol trigger;
64
+ * panel flyout tetap membentang selebar `Page` lewat pengukuran container). Saat ada `PageHeader`,
65
+ * tombol menyatu di dalam pita header (offset rapat); tanpa header, mengambang di atas konten.
66
+ */
67
+ protected readonly appsLauncherHostClass: import("@angular/core").Signal<string>;
68
+ /** Appearance flyout mengikuti layout (seperti shell flyout); fallback ke appearance `Page`. */
69
+ protected readonly appsLauncherAppearance: import("@angular/core").Signal<"flat" | "border-rail">;
70
+ /** Brand/user untuk header & footer flyout — sama seperti shell flyout; `null` saat tak ada shell. */
71
+ protected readonly appsBrand: import("@angular/core").Signal<import("@edsis/angular/theme/layout/wrapper").BrandIdentity | null>;
72
+ protected readonly appsUser: import("@angular/core").Signal<import("@edsis/angular/theme/layout/wrapper").UserIdentity | null>;
73
+ protected readonly hostClasses: import("@angular/core").Signal<string>;
74
+ protected readonly shellClasses: import("@angular/core").Signal<string>;
75
+ protected readonly bodyClasses: import("@angular/core").Signal<string>;
76
+ /**
77
+ * Wrapper di sekitar `PageFilter` + `PageContent`. Tanpa filter, memakai `display: contents`
78
+ * agar transparan (perilaku body lama dipertahankan persis). Dengan filter, menjadi grid/flex
79
+ * yang menata filter (baris untuk `stacked`, kolom untuk `side`); drawer/overlay menjadikannya
80
+ * `relative` sebagai positioning context untuk panel yang mengambang.
81
+ */
82
+ protected readonly contentRegionClasses: import("@angular/core").Signal<string>;
83
+ /**
84
+ * Content region saat `PageOverview` hadir: overview selalu satu baris `auto` tepat di atas
85
+ * content, di bawah filter stacked bila ada. Filter side sticky tetap menjadi kolom yang
86
+ * membentang setinggi overview + content.
87
+ */
88
+ private overviewRegionClasses;
89
+ constructor();
90
+ protected handleBackdropClick(): void;
91
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, never>;
92
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageComponent, "Page", never, {
93
+ "variant": {
94
+ "alias": "variant";
95
+ "required": false;
96
+ "isSignal": true;
97
+ };
98
+ "height": {
99
+ "alias": "height";
100
+ "required": false;
101
+ "isSignal": true;
102
+ };
103
+ "scroll": {
104
+ "alias": "scroll";
105
+ "required": false;
106
+ "isSignal": true;
107
+ };
108
+ "appearance": {
109
+ "alias": "appearance";
110
+ "required": false;
111
+ "isSignal": true;
112
+ };
113
+ "position": {
114
+ "alias": "position";
115
+ "required": false;
116
+ "isSignal": true;
117
+ };
118
+ "sideMode": {
119
+ "alias": "sideMode";
120
+ "required": false;
121
+ "isSignal": true;
122
+ };
123
+ "sideOpen": {
124
+ "alias": "sideOpen";
125
+ "required": false;
126
+ "isSignal": true;
127
+ };
128
+ "sideWidth": {
129
+ "alias": "sideWidth";
130
+ "required": false;
131
+ "isSignal": true;
132
+ };
133
+ "filterOpen": {
134
+ "alias": "filterOpen";
135
+ "required": false;
136
+ "isSignal": true;
137
+ };
138
+ "class": {
139
+ "alias": "class";
140
+ "required": false;
141
+ "isSignal": true;
142
+ };
143
+ "appsLauncher": {
144
+ "alias": "appsLauncher";
145
+ "required": false;
146
+ "isSignal": true;
147
+ };
148
+ "appsNavId": {
149
+ "alias": "appsNavId";
150
+ "required": false;
151
+ "isSignal": true;
152
+ };
153
+ "appsIcon": {
154
+ "alias": "appsIcon";
155
+ "required": false;
156
+ "isSignal": true;
157
+ };
158
+ "appsLabel": {
159
+ "alias": "appsLabel";
160
+ "required": false;
161
+ "isSignal": true;
162
+ };
163
+ "overlayCloseLabel": {
164
+ "alias": "overlayCloseLabel";
165
+ "required": false;
166
+ "isSignal": true;
167
+ };
168
+ }, {
169
+ "sideOpenChange": "sideOpenChange";
170
+ "filterOpenChange": "filterOpenChange";
171
+ }, ["projectedSide", "projectedHeader", "projectedFilter", "projectedOverview"], ["PageHeader", "PageSideToggle, PageFilterToggle", "PageSide", "PageFilter", "PageOverview", "PageContent, PageDashboard", "PageFooter"], true, never>;
172
+ }
@@ -0,0 +1,90 @@
1
+ import { PageStateService } from "@edsis/angular/theme/page/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class PageSideComponent {
4
+ private readonly document;
5
+ private readonly host;
6
+ protected readonly page: PageStateService;
7
+ protected readonly resolvedId: string;
8
+ readonly mode: import("@angular/core").InputSignal<"sticky" | "drawer" | "overlay" | null>;
9
+ readonly position: import("@angular/core").InputSignal<"left" | "right" | null>;
10
+ readonly width: import("@angular/core").InputSignal<string | null>;
11
+ readonly closeOnEsc: import("@angular/core").InputSignal<boolean>;
12
+ /** Accessible name for the panel in `drawer`/`overlay` mode (set as the dialog's `aria-label`). */
13
+ readonly ariaLabel: import("@angular/core").InputSignal<string>;
14
+ readonly class: import("@angular/core").InputSignal<string>;
15
+ protected readonly resolvedMode: import("@angular/core").Signal<"sticky" | "drawer" | "overlay">;
16
+ protected readonly resolvedPosition: import("@angular/core").Signal<"left" | "right">;
17
+ protected readonly resolvedWidth: import("@angular/core").Signal<string>;
18
+ protected readonly isSticky: import("@angular/core").Signal<boolean>;
19
+ protected readonly isDrawer: import("@angular/core").Signal<boolean>;
20
+ protected readonly isOverlay: import("@angular/core").Signal<boolean>;
21
+ /** Mode mengambang (drawer/overlay) — bersifat dialog dan butuh manajemen fokus + `inert` saat tertutup. */
22
+ protected readonly isInteractive: import("@angular/core").Signal<boolean>;
23
+ protected readonly resolvedScroll: import("@angular/core").Signal<"content" | "page">;
24
+ protected readonly ariaHidden: import("@angular/core").Signal<"true" | null>;
25
+ /** Saat panel mengambang tertutup, `inert` mengeluarkan isinya dari tab order & pohon aksesibilitas (AXE). */
26
+ protected readonly inertWhenClosed: import("@angular/core").Signal<"" | null>;
27
+ protected readonly dialogRole: import("@angular/core").Signal<"dialog" | null>;
28
+ protected readonly ariaModal: import("@angular/core").Signal<"true" | null>;
29
+ protected readonly dialogLabel: import("@angular/core").Signal<string | null>;
30
+ protected readonly dialogTabindex: import("@angular/core").Signal<"-1" | null>;
31
+ protected readonly classes: import("@angular/core").Signal<string>;
32
+ constructor();
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageSideComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageSideComponent, "PageSide", never, {
35
+ "mode": {
36
+ "alias": "mode";
37
+ "required": false;
38
+ "isSignal": true;
39
+ };
40
+ "position": {
41
+ "alias": "position";
42
+ "required": false;
43
+ "isSignal": true;
44
+ };
45
+ "width": {
46
+ "alias": "width";
47
+ "required": false;
48
+ "isSignal": true;
49
+ };
50
+ "closeOnEsc": {
51
+ "alias": "closeOnEsc";
52
+ "required": false;
53
+ "isSignal": true;
54
+ };
55
+ "ariaLabel": {
56
+ "alias": "ariaLabel";
57
+ "required": false;
58
+ "isSignal": true;
59
+ };
60
+ "class": {
61
+ "alias": "class";
62
+ "required": false;
63
+ "isSignal": true;
64
+ };
65
+ }, {}, never, ["*"], true, never>;
66
+ }
67
+ export declare class PageSideToggleComponent {
68
+ protected readonly page: PageStateService;
69
+ readonly ariaLabel: import("@angular/core").InputSignal<string>;
70
+ readonly class: import("@angular/core").InputSignal<string>;
71
+ readonly toggled: import("@angular/core").OutputEmitterRef<boolean>;
72
+ protected readonly hostClasses: import("@angular/core").Signal<string>;
73
+ protected readonly buttonClasses: import("@angular/core").Signal<string>;
74
+ protected handleClick(event: MouseEvent): void;
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageSideToggleComponent, never>;
76
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageSideToggleComponent, "PageSideToggle", never, {
77
+ "ariaLabel": {
78
+ "alias": "ariaLabel";
79
+ "required": false;
80
+ "isSignal": true;
81
+ };
82
+ "class": {
83
+ "alias": "class";
84
+ "required": false;
85
+ "isSignal": true;
86
+ };
87
+ }, {
88
+ "toggled": "toggled";
89
+ }, never, ["*"], true, never>;
90
+ }
@@ -0,0 +1,61 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class PageHeaderComponent {
3
+ private readonly page;
4
+ readonly class: import("@angular/core").InputSignal<string>;
5
+ protected readonly resolvedHeight: import("@angular/core").Signal<"auto" | "fix">;
6
+ /** Saat tombol apps mengambang di atas header, sisakan ruang kanan agar isi header tidak tertimpa. */
7
+ protected readonly reservesAppsLauncher: import("@angular/core").Signal<boolean>;
8
+ /** Lebar tombol apps (h-9 w-9 = 36px) + offset kanan (right-2 = 8px) + jarak aman; `null` = tak memesan. */
9
+ protected readonly appsLauncherReservePadding: import("@angular/core").Signal<"3.5rem" | null>;
10
+ protected readonly classes: import("@angular/core").Signal<string>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderComponent, "PageHeader", never, {
13
+ "class": {
14
+ "alias": "class";
15
+ "required": false;
16
+ "isSignal": true;
17
+ };
18
+ }, {}, never, ["*"], true, never>;
19
+ }
20
+ export declare class PageContentComponent {
21
+ private readonly page;
22
+ readonly class: import("@angular/core").InputSignal<string>;
23
+ protected readonly resolvedScroll: import("@angular/core").Signal<"content" | "page">;
24
+ protected readonly classes: import("@angular/core").Signal<string>;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageContentComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageContentComponent, "PageContent", never, {
27
+ "class": {
28
+ "alias": "class";
29
+ "required": false;
30
+ "isSignal": true;
31
+ };
32
+ }, {}, never, ["*"], true, never>;
33
+ }
34
+ export declare class PageDashboardComponent {
35
+ private readonly page;
36
+ readonly class: import("@angular/core").InputSignal<string>;
37
+ protected readonly resolvedScroll: import("@angular/core").Signal<"content" | "page">;
38
+ protected readonly classes: import("@angular/core").Signal<string>;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageDashboardComponent, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageDashboardComponent, "PageDashboard", never, {
41
+ "class": {
42
+ "alias": "class";
43
+ "required": false;
44
+ "isSignal": true;
45
+ };
46
+ }, {}, never, ["*"], true, never>;
47
+ }
48
+ export declare class PageFooterComponent {
49
+ private readonly page;
50
+ readonly class: import("@angular/core").InputSignal<string>;
51
+ protected readonly resolvedHeight: import("@angular/core").Signal<"auto" | "fix">;
52
+ protected readonly classes: import("@angular/core").Signal<string>;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageFooterComponent, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageFooterComponent, "PageFooter", never, {
55
+ "class": {
56
+ "alias": "class";
57
+ "required": false;
58
+ "isSignal": true;
59
+ };
60
+ }, {}, never, ["*"], true, never>;
61
+ }
@@ -0,0 +1,7 @@
1
+ import { PAGE_APPEARANCES, PAGE_DEFAULT_APPEARANCE, PAGE_DEFAULT_FILTER_MODE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_POSITION, PAGE_DEFAULT_FILTER_WIDTH, PAGE_DEFAULT_HEIGHT, PAGE_DEFAULT_SCROLL, PAGE_DEFAULT_SIDE_MODE, PAGE_DEFAULT_SIDE_POSITION, PAGE_DEFAULT_SIDE_WIDTH, PAGE_DEFAULT_VARIANT, PAGE_FILTER_PLACEMENTS, PAGE_HEIGHT_VALUES, PAGE_SCROLL_VALUES, PAGE_SIDE_MODES, PAGE_SIDE_POSITIONS, PAGE_VARIANTS, PageAppearance, PageFilterPlacement, PageHeight, PageScroll, PageSideMode, PageSidePosition, PageVariant, isUiPageAppearance, isUiPageFilterPlacement, isUiPageHeight, isUiPageScroll, isUiPageSideMode, isUiPageSidePosition, isUiPageVariant } from "@edsis/angular/theme/page/core";
2
+ import { PageFilterComponent, PageFilterToggleComponent } from "@edsis/angular/theme/page/filter";
3
+ import { PageOverviewComponent } from "@edsis/angular/theme/page/overview";
4
+ import { PageComponent } from "@edsis/angular/theme/page/root";
5
+ import { PageSideComponent, PageSideToggleComponent } from "@edsis/angular/theme/page/side";
6
+ import { PageContentComponent, PageDashboardComponent, PageFooterComponent, PageHeaderComponent } from "@edsis/angular/theme/page/slots";
7
+ export { PAGE_APPEARANCES, PAGE_DEFAULT_APPEARANCE, PAGE_DEFAULT_FILTER_MODE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_POSITION, PAGE_DEFAULT_FILTER_WIDTH, PAGE_DEFAULT_HEIGHT, PAGE_DEFAULT_SCROLL, PAGE_DEFAULT_SIDE_MODE, PAGE_DEFAULT_SIDE_POSITION, PAGE_DEFAULT_SIDE_WIDTH, PAGE_DEFAULT_VARIANT, PAGE_FILTER_PLACEMENTS, PAGE_HEIGHT_VALUES, PAGE_SCROLL_VALUES, PAGE_SIDE_MODES, PAGE_SIDE_POSITIONS, PAGE_VARIANTS, type PageAppearance, PageComponent, PageContentComponent, PageDashboardComponent, PageFilterComponent, type PageFilterPlacement, PageFilterToggleComponent, PageFooterComponent, PageHeaderComponent, type PageHeight, PageOverviewComponent, type PageScroll, PageSideComponent, type PageSideMode, type PageSidePosition, PageSideToggleComponent, type PageVariant, isUiPageAppearance, isUiPageFilterPlacement, isUiPageHeight, isUiPageScroll, isUiPageSideMode, isUiPageSidePosition, isUiPageVariant };
@@ -0,0 +1,188 @@
1
+ import * as i0 from "@angular/core";
2
+ import { EnvironmentProviders, InjectionToken } from "@angular/core";
3
+ import { ShellColor, ShellDevice, ShellFrame, ShellMode, ShellPlatform, ShellWindowState } from "@edsis/angular/theme/shell/types";
4
+ /** What the shell needs to know about the host window right now. */
5
+ export interface ShellWindowSnapshot {
6
+ readonly state: ShellWindowState;
7
+ readonly focused: boolean;
8
+ }
9
+ /**
10
+ * The seam between the shell and a desktop runtime.
11
+ *
12
+ * The theme package never imports a desktop SDK: Tauri, Electron, or anything
13
+ * else is reached through this interface, so an app that ships to the browser
14
+ * pays nothing and an app that ships to a native window provides one adapter.
15
+ * Commands may be sync or async — the shell always awaits them.
16
+ */
17
+ export interface ShellWindowBridge {
18
+ readonly platform: ShellPlatform;
19
+ /**
20
+ * Host OS, when the runtime can report it. `null` means "cannot tell" — the
21
+ * shell then falls back to its `device` input, storage, or the mode's default,
22
+ * rather than guessing.
23
+ */
24
+ device(): ShellDevice | null | Promise<ShellDevice | null>;
25
+ snapshot(): ShellWindowSnapshot | Promise<ShellWindowSnapshot>;
26
+ minimize(): void | Promise<void>;
27
+ toggleMaximize(): void | Promise<void>;
28
+ close(): void | Promise<void>;
29
+ /**
30
+ * Move the window with the pointer. Tauri and Electron both mark their drag
31
+ * surface declaratively (`data-tauri-drag-region` / `-webkit-app-region`, both
32
+ * stamped on the titlebar), so this is only needed by runtimes that require an
33
+ * explicit call.
34
+ */
35
+ startDragging?(): void | Promise<void>;
36
+ /** Observe window resize/move/focus changes; resolves to the unsubscribe. */
37
+ watch?(onChange: () => void): (() => void) | Promise<() => void>;
38
+ }
39
+ export declare const SHELL_WINDOW_BRIDGE: InjectionToken<ShellWindowBridge>;
40
+ /**
41
+ * Browser fallback used when no bridge is provided: a page has no window to
42
+ * drive, so it reports the web platform, no device opinion, and every command is
43
+ * a no-op. This is what keeps `<Shell>` renderable (and testable) outside a
44
+ * desktop runtime.
45
+ */
46
+ export declare const WEB_SHELL_WINDOW_BRIDGE: ShellWindowBridge;
47
+ /**
48
+ * Register the bridge `ShellService` drives. Pass a factory to defer any runtime
49
+ * probing until the injector is created.
50
+ */
51
+ export declare function provideShellWindowBridge(bridge: ShellWindowBridge | (() => ShellWindowBridge)): EnvironmentProviders;
52
+ /**
53
+ * The slice of a Tauri `Window` the shell drives, declared structurally so the
54
+ * theme package never has to depend on `@tauri-apps/api`. Any object with these
55
+ * methods works, which is also what makes the bridge testable with a fake.
56
+ */
57
+ export interface TauriWindowHandle {
58
+ minimize(): Promise<void>;
59
+ toggleMaximize(): Promise<void>;
60
+ close(): Promise<void>;
61
+ isMaximized(): Promise<boolean>;
62
+ isFullscreen(): Promise<boolean>;
63
+ startDragging(): Promise<void>;
64
+ isFocused?(): Promise<boolean>;
65
+ onResized?(handler: () => void): Promise<() => void>;
66
+ onFocusChanged?(handler: () => void): Promise<() => void>;
67
+ }
68
+ export interface TauriShellBridgeOptions {
69
+ /**
70
+ * Resolve the window to drive. Defaults to the `withGlobalTauri` global
71
+ * (`window.__TAURI__.window.getCurrentWindow()`). Apps that keep the global
72
+ * off pass the module instead:
73
+ * `{ currentWindow: () => import('@tauri-apps/api/window').then((m) => m.getCurrentWindow()) }`.
74
+ */
75
+ readonly currentWindow?: () => TauriWindowHandle | null | Promise<TauriWindowHandle | null>;
76
+ /**
77
+ * Resolve the host OS, mapped onto the shell's `device` axis. Defaults to the
78
+ * `withGlobalTauri` os plugin, then the browser platform string. Apps without
79
+ * the global pass
80
+ * `{ platform: () => import('@tauri-apps/plugin-os').then((m) => m.platform()) }`.
81
+ */
82
+ readonly platform?: () => string | Promise<string>;
83
+ }
84
+ /** `true` when the page is running inside a Tauri webview. */
85
+ export declare function isTauriRuntime(): boolean;
86
+ /**
87
+ * Adapter from a Tauri window onto {@link ShellWindowBridge}.
88
+ *
89
+ * Every call resolves the window lazily and tolerates its absence, so the same
90
+ * bridge can be registered unconditionally: run the app in a browser and the
91
+ * commands become no-ops rather than errors.
92
+ */
93
+ export declare function createTauriShellWindowBridge(options?: TauriShellBridgeOptions): ShellWindowBridge;
94
+ /**
95
+ * Register the Tauri window bridge for `ShellService`. Safe to call in a build
96
+ * that also ships to the browser — outside a Tauri webview the bridge resolves
97
+ * no window and the shell falls back to inert commands.
98
+ */
99
+ export declare function provideTauriShellWindowBridge(options?: TauriShellBridgeOptions): EnvironmentProviders;
100
+ interface ShellMutationOptions {
101
+ /** `false` keeps the change out of localStorage (a host-driven override, not a user choice). */
102
+ persist?: boolean;
103
+ }
104
+ /**
105
+ * State behind `<Shell>`: the persisted `mode` / `device` / `color` / `frame`
106
+ * axes, plus
107
+ * live window state read from whichever {@link ShellWindowBridge} the app
108
+ * registered.
109
+ *
110
+ * Every axis resolves through a fallback chain, so an app can declare as much or
111
+ * as little as it knows — and each is readable *and* writable through
112
+ * localStorage, so a target can be flipped without a rebuild:
113
+ *
114
+ * - `mode` — stored `shell-mode`, else `desktop` when a desktop runtime is
115
+ * registered (a Tauri window *is* a desktop shell), else `web`.
116
+ * - `device` — stored `shell-device`, else whatever the bridge reports, else the
117
+ * mode's default device.
118
+ * - `color` — stored `shell-color`, else `sync`.
119
+ * - `frame` — stored `shell-frame`, else `classic`.
120
+ *
121
+ * `<Shell>`'s own inputs sit in front of all of them, and `<Shell>` is also where
122
+ * the pairs are forced to stay coherent (device with mode, frame with mode) — the values here are preferences,
123
+ * so a stored `macos` survives a temporary switch to `mode='web'` instead of being
124
+ * erased.
125
+ *
126
+ * With no bridge registered this resolves to the inert web bridge, so the same
127
+ * component tree renders in a browser tab, in a unit test, and under SSR.
128
+ */
129
+ export declare class ShellService {
130
+ private readonly platformId;
131
+ private readonly storage;
132
+ private readonly destroyRef;
133
+ private readonly bridge;
134
+ /** Runtime hosting the shell; `web` whenever no bridge is registered. */
135
+ readonly platform: ShellPlatform;
136
+ /** `true` for any non-browser runtime — i.e. there is a real OS window to drive. */
137
+ readonly isDesktopRuntime: boolean;
138
+ private readonly modeState;
139
+ private readonly deviceState;
140
+ private readonly colorState;
141
+ private readonly frameState;
142
+ private readonly reportedDeviceState;
143
+ private readonly windowStateState;
144
+ private readonly focusedState;
145
+ readonly mode: import("@angular/core").Signal<"web" | "desktop" | "tablet" | "mobile">;
146
+ /**
147
+ * Preferred device: the stored choice, else what the runtime reports, else the
148
+ * current mode's default. Not forced to match `mode()` — see the class note.
149
+ */
150
+ readonly device: import("@angular/core").Signal<"browser" | "macos" | "windows" | "linux" | "ipad" | "android" | "ios">;
151
+ /** Where the shell's chrome takes its colors from: the design system, or the device's native look. */
152
+ readonly color: import("@angular/core").Signal<"sync" | "default">;
153
+ /** How the app sits in its window: flush (`classic`) or inset as a panel (`modern`). */
154
+ readonly frame: import("@angular/core").Signal<"classic" | "modern">;
155
+ readonly windowState: import("@angular/core").Signal<"normal" | "maximized" | "fullscreen">;
156
+ readonly focused: import("@angular/core").Signal<boolean>;
157
+ readonly isMaximized: import("@angular/core").Signal<boolean>;
158
+ readonly isFullscreen: import("@angular/core").Signal<boolean>;
159
+ constructor();
160
+ setMode(mode: ShellMode, options?: ShellMutationOptions): void;
161
+ setDevice(device: ShellDevice, options?: ShellMutationOptions): void;
162
+ setColor(color: ShellColor, options?: ShellMutationOptions): void;
163
+ setFrame(frame: ShellFrame, options?: ShellMutationOptions): void;
164
+ /** Adopt `mode` as the default, unless a choice is already stored. */
165
+ registerMode(mode: ShellMode): void;
166
+ /** Adopt `device` as the default, unless a choice is already stored. */
167
+ registerDevice(device: ShellDevice): void;
168
+ /** Adopt `color` as the default, unless a choice is already stored. */
169
+ registerColor(color: ShellColor): void;
170
+ /** Adopt `frame` as the default, unless a choice is already stored. */
171
+ registerFrame(frame: ShellFrame): void;
172
+ /** Re-read the device and window state from the bridge. */
173
+ sync(): Promise<void>;
174
+ minimize(): Promise<void>;
175
+ toggleMaximize(): Promise<void>;
176
+ close(): Promise<void>;
177
+ /** Start a pointer-driven window move, for runtimes that need an explicit call. */
178
+ startDragging(): Promise<void>;
179
+ private command;
180
+ private watchWindow;
181
+ private storedMode;
182
+ private storedDevice;
183
+ private storedColor;
184
+ private storedFrame;
185
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShellService, never>;
186
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
187
+ }
188
+ export {};
@@ -0,0 +1,102 @@
1
+ /**
2
+ * Delivery target the shell is rendering for. `web` is a page in a browser tab;
3
+ * the rest are app targets where the shell owns the whole surface. Only
4
+ * `desktop` has window chrome to draw, which is what gates `<ShellBar>`.
5
+ *
6
+ * Persisted under {@link SHELL_MODE_STORAGE_KEY}.
7
+ */
8
+ export declare const SHELL_MODES: readonly ["web", "desktop", "tablet", "mobile"];
9
+ /**
10
+ * Concrete host the shell is running on. Each mode owns a set of these (see
11
+ * {@link SHELL_MODE_DEVICES}) — `android` deliberately belongs to both `tablet`
12
+ * and `mobile`, because the same OS ships on both form factors.
13
+ *
14
+ * Persisted under {@link SHELL_DEVICE_STORAGE_KEY}.
15
+ */
16
+ export declare const SHELL_DEVICES: readonly ["browser", "macos", "windows", "linux", "ipad", "android", "ios"];
17
+ /**
18
+ * Where the shell's own chrome takes its colors from. `sync` keeps the titlebar
19
+ * inside the design system, so it recolors with `theme-color` / `theme-neutral`
20
+ * and `data-mode` like everything else. `default` paints the native look of the
21
+ * active `device` instead, for an app that wants to disappear into its OS.
22
+ *
23
+ * Persisted under {@link SHELL_COLOR_STORAGE_KEY}.
24
+ */
25
+ export declare const SHELL_COLORS: readonly ["sync", "default"];
26
+ /**
27
+ * How the app sits inside its window.
28
+ *
29
+ * `classic` is the traditional desktop frame: the app is flush to the window edge
30
+ * and a bordered titlebar sits on top of it.
31
+ *
32
+ * `modern` insets the app instead, so it floats as a panel inside the window with
33
+ * the chrome showing around it. The titlebar drops its border and takes the same
34
+ * colour as that surround, so the two read as one continuous frame rather than a
35
+ * bar stacked on a body.
36
+ *
37
+ * Only a desktop window has a frame to shape, so this is coerced to `classic` on
38
+ * every other mode — see {@link resolveShellFrameForMode}.
39
+ *
40
+ * Persisted under {@link SHELL_FRAME_STORAGE_KEY}.
41
+ */
42
+ export declare const SHELL_FRAMES: readonly ["classic", "modern"];
43
+ /**
44
+ * Runtime hosting the shell — distinct from `device`, which is the OS. `web`
45
+ * means no bridge is registered, so there is no window to drive.
46
+ */
47
+ export declare const SHELL_PLATFORMS: readonly ["web", "tauri", "electron", "custom"];
48
+ export declare const SHELL_WINDOW_STATES: readonly ["normal", "maximized", "fullscreen"];
49
+ export type ShellMode = (typeof SHELL_MODES)[number];
50
+ export type ShellDevice = (typeof SHELL_DEVICES)[number];
51
+ export type ShellColor = (typeof SHELL_COLORS)[number];
52
+ export type ShellFrame = (typeof SHELL_FRAMES)[number];
53
+ export type ShellPlatform = (typeof SHELL_PLATFORMS)[number];
54
+ export type ShellWindowState = (typeof SHELL_WINDOW_STATES)[number];
55
+ export declare const SHELL_DEFAULT_MODE: ShellMode;
56
+ export declare const SHELL_DEFAULT_DEVICE: ShellDevice;
57
+ export declare const SHELL_DEFAULT_COLOR: ShellColor;
58
+ export declare const SHELL_DEFAULT_FRAME: ShellFrame;
59
+ export declare const SHELL_DEFAULT_PLATFORM: ShellPlatform;
60
+ export declare const SHELL_DEFAULT_WINDOW_STATE: ShellWindowState;
61
+ export declare const SHELL_MODE_STORAGE_KEY = "shell-mode";
62
+ export declare const SHELL_DEVICE_STORAGE_KEY = "shell-device";
63
+ export declare const SHELL_COLOR_STORAGE_KEY = "shell-color";
64
+ export declare const SHELL_FRAME_STORAGE_KEY = "shell-frame";
65
+ /**
66
+ * Which devices each mode can run on. The first entry is the mode's default, used
67
+ * when nothing else resolves — and to correct a device that cannot belong to the
68
+ * active mode (`mode='desktop' device='ipad'` has no meaning).
69
+ */
70
+ export declare const SHELL_MODE_DEVICES: Readonly<Record<ShellMode, readonly ShellDevice[]>>;
71
+ export declare function isShellMode(value: string | null | undefined): value is ShellMode;
72
+ export declare function isShellDevice(value: string | null | undefined): value is ShellDevice;
73
+ export declare function isShellColor(value: string | null | undefined): value is ShellColor;
74
+ export declare function isShellFrame(value: string | null | undefined): value is ShellFrame;
75
+ export declare function isShellPlatform(value: string | null | undefined): value is ShellPlatform;
76
+ export declare function isShellWindowState(value: string | null | undefined): value is ShellWindowState;
77
+ export declare function normalizeShellMode(value: string | null | undefined): ShellMode;
78
+ export declare function normalizeShellColor(value: string | null | undefined): ShellColor;
79
+ export declare function normalizeShellFrame(value: string | null | undefined): ShellFrame;
80
+ /**
81
+ * Resolve a frame that is coherent with `mode`. Only a desktop window has a frame
82
+ * to shape — the other modes have no titlebar to fuse with a surround — so
83
+ * `modern` collapses to `classic` there rather than insetting an app for no reason.
84
+ */
85
+ export declare function resolveShellFrameForMode(mode: ShellMode, frame: string | null | undefined): ShellFrame;
86
+ /** Devices the mode can run on; the first is its default. */
87
+ export declare function shellDevicesForMode(mode: ShellMode): readonly ShellDevice[];
88
+ export declare function defaultShellDeviceForMode(mode: ShellMode): ShellDevice;
89
+ export declare function isShellDeviceForMode(mode: ShellMode, device: ShellDevice): boolean;
90
+ /**
91
+ * Resolve a device that is coherent with `mode`. An unknown device, or one that
92
+ * belongs to a different form factor, falls back to the mode's default rather
93
+ * than leaving the pair in a state no styling can describe.
94
+ */
95
+ export declare function resolveShellDeviceForMode(mode: ShellMode, device: string | null | undefined): ShellDevice;
96
+ /**
97
+ * Map a raw platform identifier onto the device axis — a Tauri `platform()`
98
+ * result, an Electron `process.platform`, or a `navigator.platform`/user-agent
99
+ * string. Order matters: iPadOS reports itself as a Mac, and Android tablets and
100
+ * phones share a token, so the narrower match has to win first.
101
+ */
102
+ export declare function normalizeShellDevice(value: string | null | undefined): ShellDevice | null;