@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,703 @@
1
+ import { DOCUMENT } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { Component, Directive, ElementRef, booleanAttribute, computed, contentChildren, effect, forwardRef, inject, input, signal, untracked } from "@angular/core";
4
+ import { cn, injectUniqueId } from "@edsis/angular/component/utils/core";
5
+ function clampResizableValue(value, min, max) {
6
+ return Math.min(Math.max(value, min), max);
7
+ }
8
+ function parseResizablePercent(value) {
9
+ if (value == null || value === "") return null;
10
+ if (typeof value === "number") return Number.isFinite(value) ? value : null;
11
+ const parsed = Number.parseFloat(value);
12
+ return Number.isFinite(parsed) ? parsed : null;
13
+ }
14
+ function roundResizablePercentage(value) {
15
+ return Math.round(value * 1e3) / 1e3;
16
+ }
17
+ function resolveInitialResizableSizes(preferred, minimums, maximums) {
18
+ const unresolvedIndexes = preferred.flatMap((value, index) => value == null ? [index] : []);
19
+ const specifiedTotal = sum(preferred.flatMap((value) => value == null ? [] : [value]));
20
+ let sizes;
21
+ if (preferred.every((value) => value == null)) {
22
+ const equalSize = 100 / preferred.length;
23
+ sizes = preferred.map(() => equalSize);
24
+ } else {
25
+ const share = unresolvedIndexes.length ? Math.max(100 - specifiedTotal, 0) / unresolvedIndexes.length : 0;
26
+ sizes = preferred.map((value) => value ?? share);
27
+ }
28
+ sizes = sizes.map((size, index) => clampResizableValue(size, minimums[index], maximums[index]));
29
+ sizes = rebalanceSizes(sizes, minimums, maximums);
30
+ return sizes.map(roundResizablePercentage);
31
+ }
32
+ function toResizableAriaValue(value) {
33
+ return value == null ? null : String(Math.round(value));
34
+ }
35
+ function sum(values) {
36
+ return values.reduce((total, value) => total + value, 0);
37
+ }
38
+ function rebalanceSizes(sizes, minimums, maximums) {
39
+ const next = [...sizes];
40
+ for (let iteration = 0; iteration < next.length * 4; iteration += 1) {
41
+ const difference = roundResizablePercentage(100 - sum(next));
42
+ if (Math.abs(difference) <= .001) return next;
43
+ const adjustableIndexes = next.flatMap((size, index) => {
44
+ return (difference > 0 ? maximums[index] - size : size - minimums[index]) > .001 ? [index] : [];
45
+ });
46
+ if (!adjustableIndexes.length) return next;
47
+ const perPanelDelta = difference / adjustableIndexes.length;
48
+ adjustableIndexes.forEach((index) => {
49
+ next[index] = clampResizableValue(next[index] + perPanelDelta, minimums[index], maximums[index]);
50
+ });
51
+ }
52
+ return next;
53
+ }
54
+ var ResizableGroupContextBase = class ResizableGroupContextBase {
55
+ static ɵfac = i0.ɵɵngDeclareFactory({
56
+ minVersion: "12.0.0",
57
+ version: "22.2.4",
58
+ ngImport: i0,
59
+ type: ResizableGroupContextBase,
60
+ deps: [],
61
+ target: i0.ɵɵFactoryTarget.Directive
62
+ });
63
+ static ɵdir = i0.ɵɵngDeclareDirective({
64
+ minVersion: "14.0.0",
65
+ version: "22.2.4",
66
+ type: ResizableGroupContextBase,
67
+ isStandalone: true,
68
+ ngImport: i0
69
+ });
70
+ };
71
+ i0.ɵɵngDeclareClassMetadata({
72
+ minVersion: "12.0.0",
73
+ version: "22.2.4",
74
+ ngImport: i0,
75
+ type: ResizableGroupContextBase,
76
+ decorators: [{ type: Directive }]
77
+ });
78
+ var ResizablePanelComponent = class ResizablePanelComponent {
79
+ ctx = inject(ResizableGroupContextBase);
80
+ host = inject(ElementRef);
81
+ defaultSize = input(null, ...ngDevMode ? [{ debugName: "defaultSize" }] : /* istanbul ignore next */ []);
82
+ minSize = input("10%", ...ngDevMode ? [{ debugName: "minSize" }] : /* istanbul ignore next */ []);
83
+ maxSize = input("90%", ...ngDevMode ? [{ debugName: "maxSize" }] : /* istanbul ignore next */ []);
84
+ id = input(null, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
85
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
86
+ generatedId = injectUniqueId("ResizablePanel");
87
+ currentSize = signal(null, ...ngDevMode ? [{ debugName: "currentSize" }] : /* istanbul ignore next */ []);
88
+ resolvedId = computed(() => this.id() ?? this.generatedId, ...ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []);
89
+ classes = computed(() => cn("relative block min-h-0 min-w-0 overflow-hidden", this.ctx.groupOrientation() === "horizontal" ? "h-full" : "w-full", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
90
+ flexStyle = computed(() => {
91
+ const size = this.currentSize();
92
+ return size == null ? "1 1 0%" : `0 0 ${size}%`;
93
+ }, ...ngDevMode ? [{ debugName: "flexStyle" }] : /* istanbul ignore next */ []);
94
+ panelId() {
95
+ return this.resolvedId();
96
+ }
97
+ preferredSizePercent() {
98
+ return parseResizablePercent(this.defaultSize());
99
+ }
100
+ minSizePercent() {
101
+ return clampResizableValue(parseResizablePercent(this.minSize()) ?? 10, 0, 100);
102
+ }
103
+ maxSizePercent() {
104
+ return clampResizableValue(parseResizablePercent(this.maxSize()) ?? 90, this.minSizePercent(), 100);
105
+ }
106
+ size() {
107
+ return this.currentSize() ?? 0;
108
+ }
109
+ setSize(size) {
110
+ this.currentSize.set(roundResizablePercentage(clampResizableValue(size, 0, 100)));
111
+ }
112
+ nativeElement() {
113
+ return this.host.nativeElement;
114
+ }
115
+ static ɵfac = i0.ɵɵngDeclareFactory({
116
+ minVersion: "12.0.0",
117
+ version: "22.2.4",
118
+ ngImport: i0,
119
+ type: ResizablePanelComponent,
120
+ deps: [],
121
+ target: i0.ɵɵFactoryTarget.Component
122
+ });
123
+ static ɵcmp = i0.ɵɵngDeclareComponent({
124
+ minVersion: "17.1.0",
125
+ version: "22.2.4",
126
+ type: ResizablePanelComponent,
127
+ isStandalone: true,
128
+ selector: "ResizablePanel",
129
+ inputs: {
130
+ defaultSize: {
131
+ classPropertyName: "defaultSize",
132
+ publicName: "defaultSize",
133
+ isSignal: true,
134
+ isRequired: false,
135
+ transformFunction: null
136
+ },
137
+ minSize: {
138
+ classPropertyName: "minSize",
139
+ publicName: "minSize",
140
+ isSignal: true,
141
+ isRequired: false,
142
+ transformFunction: null
143
+ },
144
+ maxSize: {
145
+ classPropertyName: "maxSize",
146
+ publicName: "maxSize",
147
+ isSignal: true,
148
+ isRequired: false,
149
+ transformFunction: null
150
+ },
151
+ id: {
152
+ classPropertyName: "id",
153
+ publicName: "id",
154
+ isSignal: true,
155
+ isRequired: false,
156
+ transformFunction: null
157
+ },
158
+ class: {
159
+ classPropertyName: "class",
160
+ publicName: "class",
161
+ isSignal: true,
162
+ isRequired: false,
163
+ transformFunction: null
164
+ }
165
+ },
166
+ host: { properties: {
167
+ "class": "classes()",
168
+ "attr.id": "resolvedId()",
169
+ "style.flex": "flexStyle()"
170
+ } },
171
+ ngImport: i0,
172
+ template: `<ng-content />`,
173
+ isInline: true
174
+ });
175
+ };
176
+ i0.ɵɵngDeclareClassMetadata({
177
+ minVersion: "12.0.0",
178
+ version: "22.2.4",
179
+ ngImport: i0,
180
+ type: ResizablePanelComponent,
181
+ decorators: [{
182
+ type: Component,
183
+ args: [{
184
+ selector: "ResizablePanel",
185
+ host: {
186
+ "[class]": "classes()",
187
+ "[attr.id]": "resolvedId()",
188
+ "[style.flex]": "flexStyle()"
189
+ },
190
+ template: `<ng-content />`
191
+ }]
192
+ }],
193
+ propDecorators: {
194
+ defaultSize: [{
195
+ type: i0.Input,
196
+ args: [{
197
+ isSignal: true,
198
+ alias: "defaultSize",
199
+ required: false
200
+ }]
201
+ }],
202
+ minSize: [{
203
+ type: i0.Input,
204
+ args: [{
205
+ isSignal: true,
206
+ alias: "minSize",
207
+ required: false
208
+ }]
209
+ }],
210
+ maxSize: [{
211
+ type: i0.Input,
212
+ args: [{
213
+ isSignal: true,
214
+ alias: "maxSize",
215
+ required: false
216
+ }]
217
+ }],
218
+ id: [{
219
+ type: i0.Input,
220
+ args: [{
221
+ isSignal: true,
222
+ alias: "id",
223
+ required: false
224
+ }]
225
+ }],
226
+ class: [{
227
+ type: i0.Input,
228
+ args: [{
229
+ isSignal: true,
230
+ alias: "class",
231
+ required: false
232
+ }]
233
+ }]
234
+ }
235
+ });
236
+ var ResizableHandleComponent = class ResizableHandleComponent {
237
+ ctx = inject(ResizableGroupContextBase);
238
+ host = inject(ElementRef);
239
+ withHandle = input(false, {
240
+ ...ngDevMode ? { debugName: "withHandle" } : /* istanbul ignore next */ {},
241
+ transform: booleanAttribute
242
+ });
243
+ ariaLabel = input(null, {
244
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
245
+ alias: "aria-label"
246
+ });
247
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
248
+ lastExpandedPrimarySize = signal(null, ...ngDevMode ? [{ debugName: "lastExpandedPrimarySize" }] : /* istanbul ignore next */ []);
249
+ active = signal(false, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
250
+ state = computed(() => this.ctx.pairState(this), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
251
+ classes = computed(() => cn("group relative flex shrink-0 select-none items-center justify-center bg-transparent text-foreground transition-colors", "touch-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background", this.ctx.groupOrientation() === "horizontal" ? "h-full w-2 cursor-col-resize before:absolute before:inset-y-0 before:left-1/2 before:w-px before:-translate-x-1/2 before:bg-border" : "h-2 w-full cursor-row-resize before:absolute before:inset-x-0 before:top-1/2 before:h-px before:-translate-y-1/2 before:bg-border", this.active() ? "before:bg-foreground/60" : "hover:before:bg-foreground/40", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
252
+ resizable = computed(() => this.state() !== null, ...ngDevMode ? [{ debugName: "resizable" }] : /* istanbul ignore next */ []);
253
+ separatorOrientation = computed(() => this.ctx.groupOrientation() === "horizontal" ? "vertical" : "horizontal", ...ngDevMode ? [{ debugName: "separatorOrientation" }] : /* istanbul ignore next */ []);
254
+ controls = computed(() => this.state()?.panelId ?? null, ...ngDevMode ? [{ debugName: "controls" }] : /* istanbul ignore next */ []);
255
+ label = computed(() => this.ariaLabel() ?? "Resize panel", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
256
+ valueNow = computed(() => toResizableAriaValue(this.state()?.valueNow), ...ngDevMode ? [{ debugName: "valueNow" }] : /* istanbul ignore next */ []);
257
+ valueMin = computed(() => toResizableAriaValue(this.state()?.valueMin), ...ngDevMode ? [{ debugName: "valueMin" }] : /* istanbul ignore next */ []);
258
+ valueMax = computed(() => toResizableAriaValue(this.state()?.valueMax), ...ngDevMode ? [{ debugName: "valueMax" }] : /* istanbul ignore next */ []);
259
+ valueText = computed(() => {
260
+ const value = this.state()?.valueNow;
261
+ return value == null ? null : `${Math.round(value)}%`;
262
+ }, ...ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []);
263
+ onPointerDown(event) {
264
+ if (event.button !== 0) return;
265
+ event.preventDefault();
266
+ this.host.nativeElement.focus();
267
+ this.ctx.beginPointerResize(this, event);
268
+ }
269
+ onKeydown(event) {
270
+ this.ctx.handleKeydown(this, event);
271
+ }
272
+ setActive(active) {
273
+ this.active.set(active);
274
+ }
275
+ rememberPrimarySize(size) {
276
+ this.lastExpandedPrimarySize.set(roundResizablePercentage(size));
277
+ }
278
+ rememberedPrimarySize() {
279
+ return this.lastExpandedPrimarySize();
280
+ }
281
+ nativeElement() {
282
+ return this.host.nativeElement;
283
+ }
284
+ static ɵfac = i0.ɵɵngDeclareFactory({
285
+ minVersion: "12.0.0",
286
+ version: "22.2.4",
287
+ ngImport: i0,
288
+ type: ResizableHandleComponent,
289
+ deps: [],
290
+ target: i0.ɵɵFactoryTarget.Component
291
+ });
292
+ static ɵcmp = i0.ɵɵngDeclareComponent({
293
+ minVersion: "17.0.0",
294
+ version: "22.2.4",
295
+ type: ResizableHandleComponent,
296
+ isStandalone: true,
297
+ selector: "ResizableHandle",
298
+ inputs: {
299
+ withHandle: {
300
+ classPropertyName: "withHandle",
301
+ publicName: "withHandle",
302
+ isSignal: true,
303
+ isRequired: false,
304
+ transformFunction: null
305
+ },
306
+ ariaLabel: {
307
+ classPropertyName: "ariaLabel",
308
+ publicName: "aria-label",
309
+ isSignal: true,
310
+ isRequired: false,
311
+ transformFunction: null
312
+ },
313
+ class: {
314
+ classPropertyName: "class",
315
+ publicName: "class",
316
+ isSignal: true,
317
+ isRequired: false,
318
+ transformFunction: null
319
+ }
320
+ },
321
+ host: {
322
+ listeners: {
323
+ "keydown": "onKeydown($event)",
324
+ "pointerdown": "onPointerDown($event)"
325
+ },
326
+ properties: {
327
+ "class": "classes()",
328
+ "attr.role": "resizable() ? \"separator\" : null",
329
+ "attr.tabindex": "resizable() ? 0 : null",
330
+ "attr.data-active": "active() ? \"true\" : null",
331
+ "attr.aria-controls": "controls()",
332
+ "attr.aria-label": "resizable() ? label() : null",
333
+ "attr.aria-orientation": "resizable() ? separatorOrientation() : null",
334
+ "attr.aria-valuenow": "valueNow()",
335
+ "attr.aria-valuemin": "valueMin()",
336
+ "attr.aria-valuemax": "valueMax()",
337
+ "attr.aria-valuetext": "valueText()"
338
+ }
339
+ },
340
+ ngImport: i0,
341
+ template: `
342
+ @if (withHandle()) {
343
+ <span
344
+ aria-hidden="true"
345
+ class="pointer-events-none inline-flex items-center justify-center rounded-sm border border-border bg-background px-1 py-0.5 shadow-sm"
346
+ >
347
+ <svg class="h-3 w-3 text-muted-foreground" viewBox="0 0 24 24" fill="currentColor">
348
+ <circle cx="9" cy="8" r="1.25" />
349
+ <circle cx="15" cy="8" r="1.25" />
350
+ <circle cx="9" cy="12" r="1.25" />
351
+ <circle cx="15" cy="12" r="1.25" />
352
+ <circle cx="9" cy="16" r="1.25" />
353
+ <circle cx="15" cy="16" r="1.25" />
354
+ </svg>
355
+ </span>
356
+ }
357
+ `,
358
+ isInline: true
359
+ });
360
+ };
361
+ i0.ɵɵngDeclareClassMetadata({
362
+ minVersion: "12.0.0",
363
+ version: "22.2.4",
364
+ ngImport: i0,
365
+ type: ResizableHandleComponent,
366
+ decorators: [{
367
+ type: Component,
368
+ args: [{
369
+ selector: "ResizableHandle",
370
+ host: {
371
+ "[class]": "classes()",
372
+ "[attr.role]": "resizable() ? \"separator\" : null",
373
+ "[attr.tabindex]": "resizable() ? 0 : null",
374
+ "[attr.data-active]": "active() ? \"true\" : null",
375
+ "[attr.aria-controls]": "controls()",
376
+ "[attr.aria-label]": "resizable() ? label() : null",
377
+ "[attr.aria-orientation]": "resizable() ? separatorOrientation() : null",
378
+ "[attr.aria-valuenow]": "valueNow()",
379
+ "[attr.aria-valuemin]": "valueMin()",
380
+ "[attr.aria-valuemax]": "valueMax()",
381
+ "[attr.aria-valuetext]": "valueText()",
382
+ "(keydown)": "onKeydown($event)",
383
+ "(pointerdown)": "onPointerDown($event)"
384
+ },
385
+ template: `
386
+ @if (withHandle()) {
387
+ <span
388
+ aria-hidden="true"
389
+ class="pointer-events-none inline-flex items-center justify-center rounded-sm border border-border bg-background px-1 py-0.5 shadow-sm"
390
+ >
391
+ <svg class="h-3 w-3 text-muted-foreground" viewBox="0 0 24 24" fill="currentColor">
392
+ <circle cx="9" cy="8" r="1.25" />
393
+ <circle cx="15" cy="8" r="1.25" />
394
+ <circle cx="9" cy="12" r="1.25" />
395
+ <circle cx="15" cy="12" r="1.25" />
396
+ <circle cx="9" cy="16" r="1.25" />
397
+ <circle cx="15" cy="16" r="1.25" />
398
+ </svg>
399
+ </span>
400
+ }
401
+ `
402
+ }]
403
+ }],
404
+ propDecorators: {
405
+ withHandle: [{
406
+ type: i0.Input,
407
+ args: [{
408
+ isSignal: true,
409
+ alias: "withHandle",
410
+ required: false
411
+ }]
412
+ }],
413
+ ariaLabel: [{
414
+ type: i0.Input,
415
+ args: [{
416
+ isSignal: true,
417
+ alias: "aria-label",
418
+ required: false
419
+ }]
420
+ }],
421
+ class: [{
422
+ type: i0.Input,
423
+ args: [{
424
+ isSignal: true,
425
+ alias: "class",
426
+ required: false
427
+ }]
428
+ }]
429
+ }
430
+ });
431
+ var ResizablePanelGroupComponent = class ResizablePanelGroupComponent extends ResizableGroupContextBase {
432
+ host = inject(ElementRef);
433
+ document = inject(DOCUMENT);
434
+ orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
435
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
436
+ panels = contentChildren(ResizablePanelComponent, ...ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []);
437
+ handles = contentChildren(ResizableHandleComponent, ...ngDevMode ? [{ debugName: "handles" }] : /* istanbul ignore next */ []);
438
+ pointerSession = null;
439
+ removePointerListeners = null;
440
+ classes = computed(() => cn("flex w-full min-h-0 min-w-0 items-stretch", this.orientation() === "horizontal" ? "flex-row" : "flex-col", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
441
+ syncLayout = effect(() => {
442
+ const panels = this.panels();
443
+ this.handles();
444
+ if (!panels.length) return;
445
+ untracked(() => this.initializeLayout(panels));
446
+ }, ...ngDevMode ? [{ debugName: "syncLayout" }] : /* istanbul ignore next */ []);
447
+ groupOrientation() {
448
+ return this.orientation();
449
+ }
450
+ panelDirection() {
451
+ const view = this.document.defaultView;
452
+ if (!view) return "ltr";
453
+ return view.getComputedStyle(this.host.nativeElement).direction === "rtl" ? "rtl" : "ltr";
454
+ }
455
+ pairState(handle) {
456
+ const pair = this.resolvePair(handle);
457
+ if (!pair) return null;
458
+ const bounds = this.boundsForPair(pair);
459
+ return {
460
+ panelId: pair.previous.panelId(),
461
+ valueNow: pair.previous.size(),
462
+ valueMin: bounds.min,
463
+ valueMax: bounds.max
464
+ };
465
+ }
466
+ beginPointerResize(handle, event) {
467
+ const pair = this.resolvePair(handle);
468
+ if (!pair) return;
469
+ this.finishPointerResize();
470
+ handle.setActive(true);
471
+ this.pointerSession = {
472
+ handle,
473
+ pair,
474
+ startCoordinate: this.coordinateFromEvent(event),
475
+ previousSize: pair.previous.size()
476
+ };
477
+ const move = (nextEvent) => {
478
+ const session = this.pointerSession;
479
+ if (!session) return;
480
+ const containerSize = this.containerSize();
481
+ if (containerSize <= 0) return;
482
+ const delta = this.coordinateFromEvent(nextEvent) - session.startCoordinate;
483
+ const directionFactor = this.orientation() === "horizontal" && this.panelDirection() === "rtl" ? -1 : 1;
484
+ const deltaPercent = delta / containerSize * 100 * directionFactor;
485
+ this.applyPrimarySize(session.pair, session.previousSize + deltaPercent);
486
+ };
487
+ const end = () => this.finishPointerResize();
488
+ this.document.addEventListener("pointermove", move);
489
+ this.document.addEventListener("pointerup", end);
490
+ this.document.addEventListener("pointercancel", end);
491
+ this.removePointerListeners = () => {
492
+ this.document.removeEventListener("pointermove", move);
493
+ this.document.removeEventListener("pointerup", end);
494
+ this.document.removeEventListener("pointercancel", end);
495
+ };
496
+ }
497
+ handleKeydown(handle, event) {
498
+ const pair = this.resolvePair(handle);
499
+ if (!pair) return;
500
+ const current = pair.previous.size();
501
+ const bounds = this.boundsForPair(pair);
502
+ const horizontalStep = this.panelDirection() === "rtl" ? -10 : 10;
503
+ switch (event.key) {
504
+ case "ArrowRight":
505
+ if (this.orientation() !== "horizontal") return;
506
+ this.applyPrimarySize(pair, current + horizontalStep);
507
+ break;
508
+ case "ArrowLeft":
509
+ if (this.orientation() !== "horizontal") return;
510
+ this.applyPrimarySize(pair, current - horizontalStep);
511
+ break;
512
+ case "ArrowDown":
513
+ if (this.orientation() !== "vertical") return;
514
+ this.applyPrimarySize(pair, current + 10);
515
+ break;
516
+ case "ArrowUp":
517
+ if (this.orientation() !== "vertical") return;
518
+ this.applyPrimarySize(pair, current - 10);
519
+ break;
520
+ case "Home":
521
+ this.applyPrimarySize(pair, bounds.min);
522
+ break;
523
+ case "End":
524
+ this.applyPrimarySize(pair, bounds.max);
525
+ break;
526
+ case "Enter": {
527
+ const remembered = handle.rememberedPrimarySize();
528
+ if (current > bounds.min + .5) {
529
+ handle.rememberPrimarySize(current);
530
+ this.applyPrimarySize(pair, bounds.min);
531
+ } else if (remembered != null) this.applyPrimarySize(pair, remembered);
532
+ else this.applyPrimarySize(pair, (bounds.min + bounds.max) / 2);
533
+ break;
534
+ }
535
+ default: return;
536
+ }
537
+ event.preventDefault();
538
+ }
539
+ ngOnDestroy() {
540
+ this.finishPointerResize();
541
+ }
542
+ finishPointerResize() {
543
+ this.pointerSession?.handle.setActive(false);
544
+ this.pointerSession = null;
545
+ this.removePointerListeners?.();
546
+ this.removePointerListeners = null;
547
+ }
548
+ initializeLayout(panels) {
549
+ const minimums = panels.map((panel) => panel.minSizePercent());
550
+ const maximums = panels.map((panel, index) => Math.max(minimums[index], panel.maxSizePercent()));
551
+ const sizes = resolveInitialResizableSizes(panels.map((panel) => panel.preferredSizePercent()), minimums, maximums);
552
+ panels.forEach((panel, index) => panel.setSize(sizes[index]));
553
+ }
554
+ resolvePair(handle) {
555
+ const panels = new Map(this.panels().map((panel) => [panel.nativeElement(), panel]));
556
+ const children = Array.from(this.host.nativeElement.children);
557
+ const handleIndex = children.indexOf(handle.nativeElement());
558
+ if (handleIndex === -1) return null;
559
+ let previous = null;
560
+ let next = null;
561
+ for (let index = handleIndex - 1; index >= 0; index -= 1) {
562
+ previous = panels.get(children[index]) ?? null;
563
+ if (previous) break;
564
+ }
565
+ for (let index = handleIndex + 1; index < children.length; index += 1) {
566
+ next = panels.get(children[index]) ?? null;
567
+ if (next) break;
568
+ }
569
+ if (!previous || !next) return null;
570
+ return {
571
+ previous,
572
+ next
573
+ };
574
+ }
575
+ boundsForPair(pair) {
576
+ const pairTotal = pair.previous.size() + pair.next.size();
577
+ const min = Math.max(pair.previous.minSizePercent(), pairTotal - pair.next.maxSizePercent());
578
+ const max = Math.min(pair.previous.maxSizePercent(), pairTotal - pair.next.minSizePercent());
579
+ if (min > max) return {
580
+ min: pairTotal / 2,
581
+ max: pairTotal / 2
582
+ };
583
+ return {
584
+ min: roundResizablePercentage(min),
585
+ max: roundResizablePercentage(max)
586
+ };
587
+ }
588
+ applyPrimarySize(pair, nextPrimarySize) {
589
+ const pairTotal = pair.previous.size() + pair.next.size();
590
+ const bounds = this.boundsForPair(pair);
591
+ const primarySize = roundResizablePercentage(clampResizableValue(nextPrimarySize, bounds.min, bounds.max));
592
+ const secondarySize = roundResizablePercentage(pairTotal - primarySize);
593
+ pair.previous.setSize(primarySize);
594
+ pair.next.setSize(secondarySize);
595
+ }
596
+ containerSize() {
597
+ const rect = this.host.nativeElement.getBoundingClientRect();
598
+ return this.orientation() === "horizontal" ? rect.width : rect.height;
599
+ }
600
+ coordinateFromEvent(event) {
601
+ return this.orientation() === "horizontal" ? event.clientX : event.clientY;
602
+ }
603
+ static ɵfac = i0.ɵɵngDeclareFactory({
604
+ minVersion: "12.0.0",
605
+ version: "22.2.4",
606
+ ngImport: i0,
607
+ type: ResizablePanelGroupComponent,
608
+ deps: null,
609
+ target: i0.ɵɵFactoryTarget.Component
610
+ });
611
+ static ɵcmp = i0.ɵɵngDeclareComponent({
612
+ minVersion: "17.2.0",
613
+ version: "22.2.4",
614
+ type: ResizablePanelGroupComponent,
615
+ isStandalone: true,
616
+ selector: "ResizablePanelGroup",
617
+ inputs: {
618
+ orientation: {
619
+ classPropertyName: "orientation",
620
+ publicName: "orientation",
621
+ isSignal: true,
622
+ isRequired: false,
623
+ transformFunction: null
624
+ },
625
+ class: {
626
+ classPropertyName: "class",
627
+ publicName: "class",
628
+ isSignal: true,
629
+ isRequired: false,
630
+ transformFunction: null
631
+ }
632
+ },
633
+ host: { properties: {
634
+ "class": "classes()",
635
+ "attr.data-orientation": "orientation()"
636
+ } },
637
+ providers: [{
638
+ provide: ResizableGroupContextBase,
639
+ useExisting: forwardRef(() => ResizablePanelGroupComponent)
640
+ }],
641
+ queries: [{
642
+ propertyName: "panels",
643
+ predicate: ResizablePanelComponent,
644
+ isSignal: true
645
+ }, {
646
+ propertyName: "handles",
647
+ predicate: ResizableHandleComponent,
648
+ isSignal: true
649
+ }],
650
+ usesInheritance: true,
651
+ ngImport: i0,
652
+ template: `<ng-content />`,
653
+ isInline: true
654
+ });
655
+ };
656
+ i0.ɵɵngDeclareClassMetadata({
657
+ minVersion: "12.0.0",
658
+ version: "22.2.4",
659
+ ngImport: i0,
660
+ type: ResizablePanelGroupComponent,
661
+ decorators: [{
662
+ type: Component,
663
+ args: [{
664
+ selector: "ResizablePanelGroup",
665
+ providers: [{
666
+ provide: ResizableGroupContextBase,
667
+ useExisting: forwardRef(() => ResizablePanelGroupComponent)
668
+ }],
669
+ host: {
670
+ "[class]": "classes()",
671
+ "[attr.data-orientation]": "orientation()"
672
+ },
673
+ template: `<ng-content />`
674
+ }]
675
+ }],
676
+ propDecorators: {
677
+ orientation: [{
678
+ type: i0.Input,
679
+ args: [{
680
+ isSignal: true,
681
+ alias: "orientation",
682
+ required: false
683
+ }]
684
+ }],
685
+ class: [{
686
+ type: i0.Input,
687
+ args: [{
688
+ isSignal: true,
689
+ alias: "class",
690
+ required: false
691
+ }]
692
+ }],
693
+ panels: [{
694
+ type: i0.ContentChildren,
695
+ args: [i0.forwardRef(() => ResizablePanelComponent), { isSignal: true }]
696
+ }],
697
+ handles: [{
698
+ type: i0.ContentChildren,
699
+ args: [i0.forwardRef(() => ResizableHandleComponent), { isSignal: true }]
700
+ }]
701
+ }
702
+ });
703
+ export { ResizableGroupContextBase, ResizableHandleComponent, ResizablePanelComponent, ResizablePanelGroupComponent, clampResizableValue, parseResizablePercent, resolveInitialResizableSizes, roundResizablePercentage, toResizableAriaValue };