@aeris-ui/core 22.0.0-alpha.0

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 (295) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +189 -0
  3. package/fesm2022/aeris-ui-core-accordion.mjs +412 -0
  4. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -0
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +107 -0
  6. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -0
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs +754 -0
  8. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -0
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs +63 -0
  10. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -0
  11. package/fesm2022/aeris-ui-core-avatar.mjs +133 -0
  12. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -0
  13. package/fesm2022/aeris-ui-core-badge.mjs +163 -0
  14. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -0
  15. package/fesm2022/aeris-ui-core-block-ui.mjs +139 -0
  16. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -0
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs +433 -0
  18. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -0
  19. package/fesm2022/aeris-ui-core-button-group.mjs +39 -0
  20. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -0
  21. package/fesm2022/aeris-ui-core-button.mjs +246 -0
  22. package/fesm2022/aeris-ui-core-button.mjs.map +1 -0
  23. package/fesm2022/aeris-ui-core-card.mjs +134 -0
  24. package/fesm2022/aeris-ui-core-card.mjs.map +1 -0
  25. package/fesm2022/aeris-ui-core-carousel.mjs +542 -0
  26. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -0
  27. package/fesm2022/aeris-ui-core-cascade-select.mjs +673 -0
  28. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -0
  29. package/fesm2022/aeris-ui-core-chart.mjs +296 -0
  30. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -0
  31. package/fesm2022/aeris-ui-core-checkbox.mjs +220 -0
  32. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -0
  33. package/fesm2022/aeris-ui-core-chip.mjs +200 -0
  34. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -0
  35. package/fesm2022/aeris-ui-core-class-names.mjs +67 -0
  36. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -0
  37. package/fesm2022/aeris-ui-core-color-picker.mjs +1192 -0
  38. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -0
  39. package/fesm2022/aeris-ui-core-compare.mjs +508 -0
  40. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -0
  41. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +818 -0
  42. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -0
  43. package/fesm2022/aeris-ui-core-confirm-popup.mjs +1010 -0
  44. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -0
  45. package/fesm2022/aeris-ui-core-context-menu.mjs +720 -0
  46. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -0
  47. package/fesm2022/aeris-ui-core-date-picker.mjs +1471 -0
  48. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -0
  49. package/fesm2022/aeris-ui-core-dialog.mjs +574 -0
  50. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -0
  51. package/fesm2022/aeris-ui-core-divider.mjs +51 -0
  52. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -0
  53. package/fesm2022/aeris-ui-core-drawer.mjs +549 -0
  54. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -0
  55. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +333 -0
  56. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -0
  57. package/fesm2022/aeris-ui-core-editor.mjs +1548 -0
  58. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -0
  59. package/fesm2022/aeris-ui-core-file-upload.mjs +965 -0
  60. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -0
  61. package/fesm2022/aeris-ui-core-filter-service.mjs +304 -0
  62. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -0
  63. package/fesm2022/aeris-ui-core-fluid.mjs +23 -0
  64. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -0
  65. package/fesm2022/aeris-ui-core-focus-trap.mjs +185 -0
  66. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -0
  67. package/fesm2022/aeris-ui-core-galleria.mjs +1657 -0
  68. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -0
  69. package/fesm2022/aeris-ui-core-glass.mjs +35 -0
  70. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -0
  71. package/fesm2022/aeris-ui-core-icon-field.mjs +113 -0
  72. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -0
  73. package/fesm2022/aeris-ui-core-inplace.mjs +243 -0
  74. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -0
  75. package/fesm2022/aeris-ui-core-input-group.mjs +110 -0
  76. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -0
  77. package/fesm2022/aeris-ui-core-input-mask.mjs +343 -0
  78. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -0
  79. package/fesm2022/aeris-ui-core-input-number.mjs +497 -0
  80. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -0
  81. package/fesm2022/aeris-ui-core-input-otp.mjs +361 -0
  82. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -0
  83. package/fesm2022/aeris-ui-core-input-text.mjs +226 -0
  84. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -0
  85. package/fesm2022/aeris-ui-core-key-filter.mjs +208 -0
  86. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -0
  87. package/fesm2022/aeris-ui-core-mega-menu.mjs +835 -0
  88. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -0
  89. package/fesm2022/aeris-ui-core-menu.mjs +796 -0
  90. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -0
  91. package/fesm2022/aeris-ui-core-menubar.mjs +729 -0
  92. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -0
  93. package/fesm2022/aeris-ui-core-message.mjs +225 -0
  94. package/fesm2022/aeris-ui-core-message.mjs.map +1 -0
  95. package/fesm2022/aeris-ui-core-meter-group.mjs +377 -0
  96. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -0
  97. package/fesm2022/aeris-ui-core-multi-select.mjs +1033 -0
  98. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -0
  99. package/fesm2022/aeris-ui-core-order-list.mjs +351 -0
  100. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -0
  101. package/fesm2022/aeris-ui-core-organization-chart.mjs +382 -0
  102. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -0
  103. package/fesm2022/aeris-ui-core-paginator.mjs +254 -0
  104. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -0
  105. package/fesm2022/aeris-ui-core-panel.mjs +352 -0
  106. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -0
  107. package/fesm2022/aeris-ui-core-password.mjs +479 -0
  108. package/fesm2022/aeris-ui-core-password.mjs.map +1 -0
  109. package/fesm2022/aeris-ui-core-pick-list.mjs +939 -0
  110. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -0
  111. package/fesm2022/aeris-ui-core-popover.mjs +535 -0
  112. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -0
  113. package/fesm2022/aeris-ui-core-progress-bar.mjs +260 -0
  114. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -0
  115. package/fesm2022/aeris-ui-core-progress-spinner.mjs +218 -0
  116. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -0
  117. package/fesm2022/aeris-ui-core-radio-button.mjs +194 -0
  118. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -0
  119. package/fesm2022/aeris-ui-core-rating.mjs +385 -0
  120. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -0
  121. package/fesm2022/aeris-ui-core-scroll-panel.mjs +211 -0
  122. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -0
  123. package/fesm2022/aeris-ui-core-scroll-top.mjs +94 -0
  124. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -0
  125. package/fesm2022/aeris-ui-core-select.mjs +1134 -0
  126. package/fesm2022/aeris-ui-core-select.mjs.map +1 -0
  127. package/fesm2022/aeris-ui-core-skeleton.mjs +47 -0
  128. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -0
  129. package/fesm2022/aeris-ui-core-slider.mjs +724 -0
  130. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -0
  131. package/fesm2022/aeris-ui-core-speed-dial.mjs +589 -0
  132. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -0
  133. package/fesm2022/aeris-ui-core-split-button.mjs +532 -0
  134. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -0
  135. package/fesm2022/aeris-ui-core-splitter.mjs +488 -0
  136. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -0
  137. package/fesm2022/aeris-ui-core-stepper.mjs +437 -0
  138. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -0
  139. package/fesm2022/aeris-ui-core-style-class.mjs +344 -0
  140. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -0
  141. package/fesm2022/aeris-ui-core-table.mjs +1580 -0
  142. package/fesm2022/aeris-ui-core-table.mjs.map +1 -0
  143. package/fesm2022/aeris-ui-core-tabs.mjs +438 -0
  144. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -0
  145. package/fesm2022/aeris-ui-core-textarea.mjs +349 -0
  146. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -0
  147. package/fesm2022/aeris-ui-core-theme-builder.mjs +1565 -0
  148. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -0
  149. package/fesm2022/aeris-ui-core-theming.mjs +150 -0
  150. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -0
  151. package/fesm2022/aeris-ui-core-tiered-menu.mjs +718 -0
  152. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -0
  153. package/fesm2022/aeris-ui-core-timeline.mjs +278 -0
  154. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -0
  155. package/fesm2022/aeris-ui-core-toast.mjs +422 -0
  156. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -0
  157. package/fesm2022/aeris-ui-core-toggle-switch.mjs +202 -0
  158. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -0
  159. package/fesm2022/aeris-ui-core-toolbar.mjs +136 -0
  160. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -0
  161. package/fesm2022/aeris-ui-core-tooltip.mjs +365 -0
  162. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -0
  163. package/fesm2022/aeris-ui-core-tree-select.mjs +995 -0
  164. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -0
  165. package/fesm2022/aeris-ui-core-tree-table.mjs +1600 -0
  166. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -0
  167. package/fesm2022/aeris-ui-core-tree.mjs +962 -0
  168. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -0
  169. package/fesm2022/aeris-ui-core.mjs +360 -0
  170. package/fesm2022/aeris-ui-core.mjs.map +1 -0
  171. package/package.json +432 -0
  172. package/schematics/aeris-setup.schema.json +52 -0
  173. package/schematics/collection.json +10 -0
  174. package/schematics/ng-add/schema.json +64 -0
  175. package/schematics/runtime/package.json +3 -0
  176. package/schematics/runtime/schematics/ng-add/index.js +13 -0
  177. package/schematics/runtime/schematics/ng-add/index.js.map +1 -0
  178. package/schematics/runtime/schematics/ng-add/options.js +338 -0
  179. package/schematics/runtime/schematics/ng-add/options.js.map +1 -0
  180. package/schematics/runtime/schematics/ng-add/schema.js +3 -0
  181. package/schematics/runtime/schematics/ng-add/schema.js.map +1 -0
  182. package/schematics/runtime/schematics/ng-add/workspace.js +273 -0
  183. package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -0
  184. package/schematics/runtime/theme-builder/aeris-color-derivation.js +12 -0
  185. package/schematics/runtime/theme-builder/aeris-color-derivation.js.map +1 -0
  186. package/schematics/runtime/theme-builder/aeris-color.js +263 -0
  187. package/schematics/runtime/theme-builder/aeris-color.js.map +1 -0
  188. package/schematics/runtime/theme-builder/aeris-contrast.js +245 -0
  189. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -0
  190. package/schematics/runtime/theme-builder/aeris-foundation.js +47 -0
  191. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -0
  192. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +121 -0
  193. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -0
  194. package/schematics/runtime/theme-builder/aeris-theme-generator.js +238 -0
  195. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -0
  196. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +101 -0
  197. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -0
  198. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +82 -0
  199. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -0
  200. package/schematics/runtime/theme-builder/aeris-theme-validation.js +183 -0
  201. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -0
  202. package/schematics/runtime/theme-builder/aeris-theme.js +322 -0
  203. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -0
  204. package/schematics/runtime/theme-builder/public-api.js +17 -0
  205. package/schematics/runtime/theme-builder/public-api.js.map +1 -0
  206. package/styles/_index.scss +1 -0
  207. package/styles/_tokens.scss +13 -0
  208. package/styles/aeris.css +555 -0
  209. package/styles/controls.css +169 -0
  210. package/tools/aeris-theme.mjs +149 -0
  211. package/tools/aeris-theme.schema.json +143 -0
  212. package/types/aeris-ui-core-accordion.d.ts +101 -0
  213. package/types/aeris-ui-core-animate-on-scroll.d.ts +34 -0
  214. package/types/aeris-ui-core-auto-complete.d.ts +154 -0
  215. package/types/aeris-ui-core-auto-focus.d.ts +17 -0
  216. package/types/aeris-ui-core-avatar.d.ts +44 -0
  217. package/types/aeris-ui-core-badge.d.ts +48 -0
  218. package/types/aeris-ui-core-block-ui.d.ts +28 -0
  219. package/types/aeris-ui-core-breadcrumb.d.ts +104 -0
  220. package/types/aeris-ui-core-button-group.d.ts +17 -0
  221. package/types/aeris-ui-core-button.d.ts +71 -0
  222. package/types/aeris-ui-core-card.d.ts +43 -0
  223. package/types/aeris-ui-core-carousel.d.ts +126 -0
  224. package/types/aeris-ui-core-cascade-select.d.ts +130 -0
  225. package/types/aeris-ui-core-chart.d.ts +92 -0
  226. package/types/aeris-ui-core-checkbox.d.ts +55 -0
  227. package/types/aeris-ui-core-chip.d.ts +56 -0
  228. package/types/aeris-ui-core-class-names.d.ts +21 -0
  229. package/types/aeris-ui-core-color-picker.d.ts +149 -0
  230. package/types/aeris-ui-core-compare.d.ts +109 -0
  231. package/types/aeris-ui-core-confirm-dialog.d.ts +263 -0
  232. package/types/aeris-ui-core-confirm-popup.d.ts +281 -0
  233. package/types/aeris-ui-core-context-menu.d.ts +156 -0
  234. package/types/aeris-ui-core-date-picker.d.ts +226 -0
  235. package/types/aeris-ui-core-dialog.d.ts +124 -0
  236. package/types/aeris-ui-core-divider.d.ts +21 -0
  237. package/types/aeris-ui-core-drawer.d.ts +119 -0
  238. package/types/aeris-ui-core-dynamic-dialog.d.ts +148 -0
  239. package/types/aeris-ui-core-editor.d.ts +130 -0
  240. package/types/aeris-ui-core-file-upload.d.ts +199 -0
  241. package/types/aeris-ui-core-filter-service.d.ts +54 -0
  242. package/types/aeris-ui-core-fluid.d.ts +10 -0
  243. package/types/aeris-ui-core-focus-trap.d.ts +32 -0
  244. package/types/aeris-ui-core-galleria.d.ts +273 -0
  245. package/types/aeris-ui-core-glass.d.ts +17 -0
  246. package/types/aeris-ui-core-icon-field.d.ts +36 -0
  247. package/types/aeris-ui-core-inplace.d.ts +68 -0
  248. package/types/aeris-ui-core-input-group.d.ts +38 -0
  249. package/types/aeris-ui-core-input-mask.d.ts +73 -0
  250. package/types/aeris-ui-core-input-number.d.ts +87 -0
  251. package/types/aeris-ui-core-input-otp.d.ts +88 -0
  252. package/types/aeris-ui-core-input-text.d.ts +63 -0
  253. package/types/aeris-ui-core-key-filter.d.ts +41 -0
  254. package/types/aeris-ui-core-mega-menu.d.ts +130 -0
  255. package/types/aeris-ui-core-menu.d.ts +182 -0
  256. package/types/aeris-ui-core-menubar.d.ts +145 -0
  257. package/types/aeris-ui-core-message.d.ts +65 -0
  258. package/types/aeris-ui-core-meter-group.d.ts +100 -0
  259. package/types/aeris-ui-core-multi-select.d.ts +193 -0
  260. package/types/aeris-ui-core-order-list.d.ts +73 -0
  261. package/types/aeris-ui-core-organization-chart.d.ts +85 -0
  262. package/types/aeris-ui-core-paginator.d.ts +39 -0
  263. package/types/aeris-ui-core-panel.d.ts +85 -0
  264. package/types/aeris-ui-core-password.d.ts +110 -0
  265. package/types/aeris-ui-core-pick-list.d.ts +193 -0
  266. package/types/aeris-ui-core-popover.d.ts +112 -0
  267. package/types/aeris-ui-core-progress-bar.d.ts +81 -0
  268. package/types/aeris-ui-core-progress-spinner.d.ts +51 -0
  269. package/types/aeris-ui-core-radio-button.d.ts +51 -0
  270. package/types/aeris-ui-core-rating.d.ts +80 -0
  271. package/types/aeris-ui-core-scroll-panel.d.ts +66 -0
  272. package/types/aeris-ui-core-scroll-top.d.ts +29 -0
  273. package/types/aeris-ui-core-select.d.ts +223 -0
  274. package/types/aeris-ui-core-skeleton.d.ts +18 -0
  275. package/types/aeris-ui-core-slider.d.ts +117 -0
  276. package/types/aeris-ui-core-speed-dial.d.ts +119 -0
  277. package/types/aeris-ui-core-split-button.d.ts +122 -0
  278. package/types/aeris-ui-core-splitter.d.ts +113 -0
  279. package/types/aeris-ui-core-stepper.d.ts +99 -0
  280. package/types/aeris-ui-core-style-class.d.ts +73 -0
  281. package/types/aeris-ui-core-table.d.ts +333 -0
  282. package/types/aeris-ui-core-tabs.d.ts +82 -0
  283. package/types/aeris-ui-core-textarea.d.ts +80 -0
  284. package/types/aeris-ui-core-theme-builder.d.ts +499 -0
  285. package/types/aeris-ui-core-theming.d.ts +47 -0
  286. package/types/aeris-ui-core-tiered-menu.d.ts +152 -0
  287. package/types/aeris-ui-core-timeline.d.ts +80 -0
  288. package/types/aeris-ui-core-toast.d.ts +127 -0
  289. package/types/aeris-ui-core-toggle-switch.d.ts +52 -0
  290. package/types/aeris-ui-core-toolbar.d.ts +47 -0
  291. package/types/aeris-ui-core-tooltip.d.ts +92 -0
  292. package/types/aeris-ui-core-tree-select.d.ts +187 -0
  293. package/types/aeris-ui-core-tree-table.d.ts +311 -0
  294. package/types/aeris-ui-core-tree.d.ts +179 -0
  295. package/types/aeris-ui-core.d.ts +85 -0
@@ -0,0 +1,382 @@
1
+ import { NgTemplateOutlet } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { inject, TemplateRef, Directive, input, model, booleanAttribute, output, contentChild, viewChildren, computed, Component } from '@angular/core';
4
+
5
+ class AerisOrganizationChartNodeTemplate {
6
+ template = inject(TemplateRef);
7
+ static ngTemplateContextGuard(_directive, context) {
8
+ return true;
9
+ }
10
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisOrganizationChartNodeTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisOrganizationChartNodeTemplate, isStandalone: true, selector: "ng-template[aerisOrganizationChartNode]", ngImport: i0 });
12
+ }
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisOrganizationChartNodeTemplate, decorators: [{
14
+ type: Directive,
15
+ args: [{ selector: 'ng-template[aerisOrganizationChartNode]' }]
16
+ }] });
17
+ class AerisOrganizationChartEmptyTemplate {
18
+ template = inject(TemplateRef);
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisOrganizationChartEmptyTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
20
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisOrganizationChartEmptyTemplate, isStandalone: true, selector: "ng-template[aerisOrganizationChartEmpty]", ngImport: i0 });
21
+ }
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisOrganizationChartEmptyTemplate, decorators: [{
23
+ type: Directive,
24
+ args: [{ selector: 'ng-template[aerisOrganizationChartEmpty]' }]
25
+ }] });
26
+ class AerisOrganizationChart {
27
+ value = input([], /* @ts-ignore */
28
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
29
+ selectionKeys = model([], /* @ts-ignore */
30
+ ...(ngDevMode ? [{ debugName: "selectionKeys" }] : /* istanbul ignore next */ []));
31
+ collapsedKeys = model([], /* @ts-ignore */
32
+ ...(ngDevMode ? [{ debugName: "collapsedKeys" }] : /* istanbul ignore next */ []));
33
+ selectionMode = input(null, /* @ts-ignore */
34
+ ...(ngDevMode ? [{ debugName: "selectionMode" }] : /* istanbul ignore next */ []));
35
+ collapsible = input(true, { ...(ngDevMode ? { debugName: "collapsible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
36
+ fluid = input(true, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
37
+ ariaLabel = input('Organization chart', /* @ts-ignore */
38
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
39
+ emptyMessage = input('No organization chart data available', /* @ts-ignore */
40
+ ...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
41
+ expandAriaLabel = input('Expand node', /* @ts-ignore */
42
+ ...(ngDevMode ? [{ debugName: "expandAriaLabel" }] : /* istanbul ignore next */ []));
43
+ collapseAriaLabel = input('Collapse node', /* @ts-ignore */
44
+ ...(ngDevMode ? [{ debugName: "collapseAriaLabel" }] : /* istanbul ignore next */ []));
45
+ nodeSelected = output();
46
+ nodeUnselected = output();
47
+ selectionChanged = output();
48
+ nodeExpanded = output();
49
+ nodeCollapsed = output();
50
+ nodeTemplateDirective = contentChild((AerisOrganizationChartNodeTemplate), /* @ts-ignore */
51
+ ...(ngDevMode ? [{ debugName: "nodeTemplateDirective" }] : /* istanbul ignore next */ []));
52
+ emptyTemplate = contentChild(AerisOrganizationChartEmptyTemplate, /* @ts-ignore */
53
+ ...(ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []));
54
+ nodeElements = viewChildren('nodeElement', /* @ts-ignore */
55
+ ...(ngDevMode ? [{ debugName: "nodeElements" }] : /* istanbul ignore next */ []));
56
+ renderedKeys = computed(() => this.collectRenderedKeys(this.value()), /* @ts-ignore */
57
+ ...(ngDevMode ? [{ debugName: "renderedKeys" }] : /* istanbul ignore next */ []));
58
+ nodeKey(node, fallback) {
59
+ return node.key ?? String(fallback);
60
+ }
61
+ nodeLabel(node) {
62
+ return node.label ?? '';
63
+ }
64
+ nodeAriaLabel(node) {
65
+ return this.nodeLabel(node) || node.type || 'Organization chart node';
66
+ }
67
+ hasChildren(node) {
68
+ return Boolean(node.children?.length);
69
+ }
70
+ isCollapsed(key) {
71
+ return this.collapsedKeys().includes(key);
72
+ }
73
+ hasVisibleChildren(node, key) {
74
+ return this.hasChildren(node) && !this.isCollapsed(key);
75
+ }
76
+ visibleChildren(node, key) {
77
+ return this.hasVisibleChildren(node, key) ? (node.children ?? []) : [];
78
+ }
79
+ isSelected(key) {
80
+ return this.selectionKeys().includes(key);
81
+ }
82
+ isNodeSelectable(node) {
83
+ return Boolean(this.selectionMode()) && node.selectable !== false;
84
+ }
85
+ selectNode(node, key, originalEvent) {
86
+ if (!this.isNodeSelectable(node))
87
+ return;
88
+ const wasSelected = this.isSelected(key);
89
+ const selectedKeys = this.selectionMode() === 'single'
90
+ ? wasSelected
91
+ ? []
92
+ : [key]
93
+ : wasSelected
94
+ ? this.selectionKeys().filter((selectedKey) => selectedKey !== key)
95
+ : [...this.selectionKeys(), key];
96
+ this.selectionKeys.set(selectedKeys);
97
+ const event = { originalEvent, selectedKeys, node, key };
98
+ this.selectionChanged.emit(event);
99
+ if (wasSelected) {
100
+ this.nodeUnselected.emit(event);
101
+ }
102
+ else {
103
+ this.nodeSelected.emit(event);
104
+ }
105
+ }
106
+ toggleNode(node, key, originalEvent) {
107
+ originalEvent.stopPropagation();
108
+ if (!this.hasChildren(node))
109
+ return;
110
+ if (this.isCollapsed(key)) {
111
+ this.collapsedKeys.set(this.collapsedKeys().filter((item) => item !== key));
112
+ this.nodeExpanded.emit({ originalEvent, node, key });
113
+ }
114
+ else {
115
+ this.collapsedKeys.set([...this.collapsedKeys(), key]);
116
+ this.nodeCollapsed.emit({ originalEvent, node, key });
117
+ }
118
+ }
119
+ handleNodeKeydown(event, node, key) {
120
+ if (event.key === 'Enter' || event.key === ' ') {
121
+ event.preventDefault();
122
+ this.selectNode(node, key, event);
123
+ }
124
+ else if (event.key === 'ArrowLeft' && this.hasChildren(node) && !this.isCollapsed(key)) {
125
+ event.preventDefault();
126
+ this.toggleNode(node, key, event);
127
+ }
128
+ else if (event.key === 'ArrowRight' && this.hasChildren(node) && this.isCollapsed(key)) {
129
+ event.preventDefault();
130
+ this.toggleNode(node, key, event);
131
+ }
132
+ else if (event.key === 'Home') {
133
+ event.preventDefault();
134
+ this.focusRenderedKey(this.renderedKeys()[0]);
135
+ }
136
+ else if (event.key === 'End') {
137
+ event.preventDefault();
138
+ const keys = this.renderedKeys();
139
+ this.focusRenderedKey(keys[keys.length - 1]);
140
+ }
141
+ }
142
+ collectRenderedKeys(nodes, parentKey = '') {
143
+ const keys = [];
144
+ nodes.forEach((node, index) => {
145
+ const key = this.nodeKey(node, parentKey ? `${parentKey}-${index}` : String(index));
146
+ keys.push(key);
147
+ if (node.children?.length && !this.isCollapsed(key)) {
148
+ keys.push(...this.collectRenderedKeys(node.children, key));
149
+ }
150
+ });
151
+ return keys;
152
+ }
153
+ focusRenderedKey(key) {
154
+ if (!key)
155
+ return;
156
+ this.nodeElements()
157
+ .find((element) => element.nativeElement.getAttribute('data-aeris-key') === key)
158
+ ?.nativeElement.focus();
159
+ }
160
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisOrganizationChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
161
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisOrganizationChart, isStandalone: true, selector: "aeris-organization-chart", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, selectionKeys: { classPropertyName: "selectionKeys", publicName: "selectionKeys", isSignal: true, isRequired: false, transformFunction: null }, collapsedKeys: { classPropertyName: "collapsedKeys", publicName: "collapsedKeys", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, expandAriaLabel: { classPropertyName: "expandAriaLabel", publicName: "expandAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, collapseAriaLabel: { classPropertyName: "collapseAriaLabel", publicName: "collapseAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectionKeys: "selectionKeysChange", collapsedKeys: "collapsedKeysChange", nodeSelected: "nodeSelected", nodeUnselected: "nodeUnselected", selectionChanged: "selectionChanged", nodeExpanded: "nodeExpanded", nodeCollapsed: "nodeCollapsed" }, queries: [{ propertyName: "nodeTemplateDirective", first: true, predicate: (AerisOrganizationChartNodeTemplate), descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: AerisOrganizationChartEmptyTemplate, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "nodeElements", predicate: ["nodeElement"], descendants: true, isSignal: true }], ngImport: i0, template: `
162
+ <div class="aeris-organization-chart" [attr.data-fluid]="fluid() || null">
163
+ @if (value().length) {
164
+ <div class="aeris-organization-chart__viewport" tabindex="0">
165
+ <ng-template
166
+ #nodeTemplate
167
+ let-node
168
+ let-key="key"
169
+ let-level="level"
170
+ >
171
+ <li class="aeris-organization-chart__branch">
172
+ <div class="aeris-organization-chart__node-shell">
173
+ <div
174
+ #nodeElement
175
+ class="aeris-organization-chart__node"
176
+ role="treeitem"
177
+ tabindex="0"
178
+ [attr.aria-label]="nodeAriaLabel(node)"
179
+ [attr.aria-selected]="selectionMode() ? isSelected(key) : null"
180
+ [attr.aria-expanded]="hasChildren(node) ? !isCollapsed(key) : null"
181
+ [attr.data-selected]="isSelected(key) || null"
182
+ [attr.data-selectable]="isNodeSelectable(node) || null"
183
+ [attr.data-type]="node.type || null"
184
+ [attr.data-aeris-key]="key"
185
+ [style.--aeris-org-level]="level"
186
+ (click)="selectNode(node, key, $event)"
187
+ (keydown)="handleNodeKeydown($event, node, key)"
188
+ >
189
+ @if (nodeTemplateDirective(); as customNode) {
190
+ <ng-container
191
+ [ngTemplateOutlet]="customNode.template"
192
+ [ngTemplateOutletContext]="{
193
+ $implicit: node,
194
+ node,
195
+ key,
196
+ selected: isSelected(key),
197
+ expanded: !isCollapsed(key),
198
+ leaf: !hasChildren(node),
199
+ level
200
+ }"
201
+ />
202
+ } @else {
203
+ <span class="aeris-organization-chart__label">{{ nodeLabel(node) }}</span>
204
+ @if (node.type) {
205
+ <small>{{ node.type }}</small>
206
+ }
207
+ }
208
+ </div>
209
+
210
+ @if (collapsible() && hasChildren(node)) {
211
+ <button
212
+ class="aeris-organization-chart__toggle"
213
+ type="button"
214
+ [attr.aria-label]="isCollapsed(key) ? expandAriaLabel() : collapseAriaLabel()"
215
+ [attr.aria-expanded]="!isCollapsed(key)"
216
+ (click)="toggleNode(node, key, $event)"
217
+ >
218
+ <span aria-hidden="true"></span>
219
+ </button>
220
+ }
221
+ </div>
222
+
223
+ @if (hasVisibleChildren(node, key)) {
224
+ <ul role="group" class="aeris-organization-chart__children">
225
+ @for (child of visibleChildren(node, key); track nodeKey(child, childIndex); let childIndex = $index) {
226
+ <ng-container
227
+ [ngTemplateOutlet]="nodeTemplate"
228
+ [ngTemplateOutletContext]="{
229
+ $implicit: child,
230
+ key: nodeKey(child, key + '-' + childIndex),
231
+ level: level + 1
232
+ }"
233
+ />
234
+ }
235
+ </ul>
236
+ }
237
+ </li>
238
+ </ng-template>
239
+
240
+ <ul class="aeris-organization-chart__tree" role="tree" [attr.aria-label]="ariaLabel()">
241
+ @for (node of value(); track nodeKey(node, $index); let index = $index) {
242
+ <ng-container
243
+ [ngTemplateOutlet]="nodeTemplate"
244
+ [ngTemplateOutletContext]="{
245
+ $implicit: node,
246
+ key: nodeKey(node, index),
247
+ level: 1
248
+ }"
249
+ />
250
+ }
251
+ </ul>
252
+ </div>
253
+ } @else {
254
+ <div class="aeris-organization-chart__empty" role="status">
255
+ @if (emptyTemplate(); as customEmpty) {
256
+ <ng-container [ngTemplateOutlet]="customEmpty.template" />
257
+ } @else {
258
+ {{ emptyMessage() }}
259
+ }
260
+ </div>
261
+ }
262
+ </div>
263
+ `, isInline: true, styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:block;min-width:0;max-width:100%}.aeris-organization-chart{width:max-content;min-width:0;max-width:100%;color:var(--aeris-text, #222222)}.aeris-organization-chart[data-fluid=true]{width:100%}.aeris-organization-chart__viewport{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:var(--aeris-organization-chart-padding, 1rem);overflow:auto}.aeris-organization-chart__viewport:focus-visible{outline:0;box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--aeris-focus, #536437) 22%,transparent)}.aeris-organization-chart__tree,.aeris-organization-chart__children{display:flex;justify-content:center;width:max-content;margin:0;padding:0;list-style:none}.aeris-organization-chart__tree{min-width:100%}.aeris-organization-chart__branch{position:relative;display:grid;justify-items:center;padding:0 var(--aeris-organization-chart-node-gap, .625rem)}.aeris-organization-chart__node-shell{position:relative;display:grid;justify-items:center}.aeris-organization-chart__node{min-width:var(--aeris-organization-chart-node-min-width, 9.5rem);max-width:var(--aeris-organization-chart-node-max-width, 14rem);display:grid;gap:.25rem;padding:var(--aeris-organization-chart-node-padding, .625rem .75rem);border:1px solid var(--aeris-organization-chart-node-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-organization-chart-node-radius, var(--aeris-radius-lg, .875rem));background:var(--aeris-organization-chart-node-background, var(--aeris-surface, #fff));color:var(--aeris-organization-chart-node-color, var(--aeris-text, #222222));box-shadow:var(--aeris-organization-chart-node-shadow, 0 .75rem 1.75rem rgba(31, 35, 27, .08));text-align:center;cursor:default}.aeris-organization-chart__node[data-selectable=true]{cursor:pointer}.aeris-organization-chart__node[data-selectable=true]:hover{border-color:var(--aeris-focus, #536437);background:var(--aeris-surface-2, #f2f0ec)}.aeris-organization-chart__node[data-selected=true]{border-color:color-mix(in srgb,var(--aeris-primary, #879566) 58%,var(--aeris-border, #deddd7));background:var(--aeris-primary-soft, #eef2e6);color:var(--aeris-primary-text, #536437)}.aeris-organization-chart__node:focus-visible,.aeris-organization-chart__toggle:focus-visible{outline:0;box-shadow:var(--aeris-organization-chart-node-shadow, 0 .75rem 1.75rem rgba(31, 35, 27, .08)),0 0 0 3px color-mix(in srgb,var(--aeris-focus, #536437) 24%,transparent)}.aeris-organization-chart__label{font-size:.875rem;font-weight:750;line-height:1.25}.aeris-organization-chart__node small{color:var(--aeris-text-muted, #6d7068);font-size:.75rem;font-weight:600}.aeris-organization-chart__toggle{width:1.625rem;height:1.625rem;display:grid;place-items:center;margin-top:.625rem;padding:0;border:1px solid var(--aeris-border, #deddd7);border-radius:999px;background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);cursor:pointer}.aeris-organization-chart__toggle:hover{border-color:var(--aeris-focus, #536437);background:var(--aeris-surface-2, #f2f0ec)}.aeris-organization-chart__toggle span{position:relative;width:1rem;height:1rem}.aeris-organization-chart__toggle span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-organization-chart__toggle[aria-expanded=false] span:before{transform:translate(-50%,-50%) rotate(-90deg)}.aeris-organization-chart__children{position:relative;gap:0}.aeris-organization-chart__children>.aeris-organization-chart__branch{padding-top:var(--aeris-organization-chart-level-gap, 2rem)}.aeris-organization-chart__children:before{position:absolute;top:0;left:50%;width:1px;height:calc(var(--aeris-organization-chart-level-gap, 2rem) / 2);background:var(--aeris-organization-chart-connector, var(--aeris-border, #deddd7));content:\"\"}.aeris-organization-chart__children>.aeris-organization-chart__branch:before,.aeris-organization-chart__children>.aeris-organization-chart__branch:after{position:absolute;top:calc(var(--aeris-organization-chart-level-gap, 2rem) / 2);height:1px;background:var(--aeris-organization-chart-connector, var(--aeris-border, #deddd7));content:\"\"}.aeris-organization-chart__children>.aeris-organization-chart__branch:before{right:50%;left:0}.aeris-organization-chart__children>.aeris-organization-chart__branch:after{right:0;left:50%}.aeris-organization-chart__children>.aeris-organization-chart__branch:first-child:before,.aeris-organization-chart__children>.aeris-organization-chart__branch:last-child:after{content:none}.aeris-organization-chart__children>.aeris-organization-chart__branch:only-child:before,.aeris-organization-chart__children>.aeris-organization-chart__branch:only-child:after{content:none}.aeris-organization-chart__children>.aeris-organization-chart__branch>.aeris-organization-chart__node-shell:before{position:absolute;top:calc(-1 * var(--aeris-organization-chart-level-gap, 2rem) / 2);left:50%;width:1px;height:calc(var(--aeris-organization-chart-level-gap, 2rem) / 2);background:var(--aeris-organization-chart-connector, var(--aeris-border, #deddd7));content:\"\"}.aeris-organization-chart__empty{min-height:10rem;display:grid;place-items:center;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-lg, .875rem);background:var(--aeris-surface, #fff);color:var(--aeris-text-muted, #6d7068);text-align:center}@media(max-width:44rem){.aeris-organization-chart__node{min-width:var(--aeris-organization-chart-node-min-width, 8.5rem)}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
264
+ }
265
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisOrganizationChart, decorators: [{
266
+ type: Component,
267
+ args: [{ selector: 'aeris-organization-chart', imports: [NgTemplateOutlet], template: `
268
+ <div class="aeris-organization-chart" [attr.data-fluid]="fluid() || null">
269
+ @if (value().length) {
270
+ <div class="aeris-organization-chart__viewport" tabindex="0">
271
+ <ng-template
272
+ #nodeTemplate
273
+ let-node
274
+ let-key="key"
275
+ let-level="level"
276
+ >
277
+ <li class="aeris-organization-chart__branch">
278
+ <div class="aeris-organization-chart__node-shell">
279
+ <div
280
+ #nodeElement
281
+ class="aeris-organization-chart__node"
282
+ role="treeitem"
283
+ tabindex="0"
284
+ [attr.aria-label]="nodeAriaLabel(node)"
285
+ [attr.aria-selected]="selectionMode() ? isSelected(key) : null"
286
+ [attr.aria-expanded]="hasChildren(node) ? !isCollapsed(key) : null"
287
+ [attr.data-selected]="isSelected(key) || null"
288
+ [attr.data-selectable]="isNodeSelectable(node) || null"
289
+ [attr.data-type]="node.type || null"
290
+ [attr.data-aeris-key]="key"
291
+ [style.--aeris-org-level]="level"
292
+ (click)="selectNode(node, key, $event)"
293
+ (keydown)="handleNodeKeydown($event, node, key)"
294
+ >
295
+ @if (nodeTemplateDirective(); as customNode) {
296
+ <ng-container
297
+ [ngTemplateOutlet]="customNode.template"
298
+ [ngTemplateOutletContext]="{
299
+ $implicit: node,
300
+ node,
301
+ key,
302
+ selected: isSelected(key),
303
+ expanded: !isCollapsed(key),
304
+ leaf: !hasChildren(node),
305
+ level
306
+ }"
307
+ />
308
+ } @else {
309
+ <span class="aeris-organization-chart__label">{{ nodeLabel(node) }}</span>
310
+ @if (node.type) {
311
+ <small>{{ node.type }}</small>
312
+ }
313
+ }
314
+ </div>
315
+
316
+ @if (collapsible() && hasChildren(node)) {
317
+ <button
318
+ class="aeris-organization-chart__toggle"
319
+ type="button"
320
+ [attr.aria-label]="isCollapsed(key) ? expandAriaLabel() : collapseAriaLabel()"
321
+ [attr.aria-expanded]="!isCollapsed(key)"
322
+ (click)="toggleNode(node, key, $event)"
323
+ >
324
+ <span aria-hidden="true"></span>
325
+ </button>
326
+ }
327
+ </div>
328
+
329
+ @if (hasVisibleChildren(node, key)) {
330
+ <ul role="group" class="aeris-organization-chart__children">
331
+ @for (child of visibleChildren(node, key); track nodeKey(child, childIndex); let childIndex = $index) {
332
+ <ng-container
333
+ [ngTemplateOutlet]="nodeTemplate"
334
+ [ngTemplateOutletContext]="{
335
+ $implicit: child,
336
+ key: nodeKey(child, key + '-' + childIndex),
337
+ level: level + 1
338
+ }"
339
+ />
340
+ }
341
+ </ul>
342
+ }
343
+ </li>
344
+ </ng-template>
345
+
346
+ <ul class="aeris-organization-chart__tree" role="tree" [attr.aria-label]="ariaLabel()">
347
+ @for (node of value(); track nodeKey(node, $index); let index = $index) {
348
+ <ng-container
349
+ [ngTemplateOutlet]="nodeTemplate"
350
+ [ngTemplateOutletContext]="{
351
+ $implicit: node,
352
+ key: nodeKey(node, index),
353
+ level: 1
354
+ }"
355
+ />
356
+ }
357
+ </ul>
358
+ </div>
359
+ } @else {
360
+ <div class="aeris-organization-chart__empty" role="status">
361
+ @if (emptyTemplate(); as customEmpty) {
362
+ <ng-container [ngTemplateOutlet]="customEmpty.template" />
363
+ } @else {
364
+ {{ emptyMessage() }}
365
+ }
366
+ </div>
367
+ }
368
+ </div>
369
+ `, styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:block;min-width:0;max-width:100%}.aeris-organization-chart{width:max-content;min-width:0;max-width:100%;color:var(--aeris-text, #222222)}.aeris-organization-chart[data-fluid=true]{width:100%}.aeris-organization-chart__viewport{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:var(--aeris-organization-chart-padding, 1rem);overflow:auto}.aeris-organization-chart__viewport:focus-visible{outline:0;box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--aeris-focus, #536437) 22%,transparent)}.aeris-organization-chart__tree,.aeris-organization-chart__children{display:flex;justify-content:center;width:max-content;margin:0;padding:0;list-style:none}.aeris-organization-chart__tree{min-width:100%}.aeris-organization-chart__branch{position:relative;display:grid;justify-items:center;padding:0 var(--aeris-organization-chart-node-gap, .625rem)}.aeris-organization-chart__node-shell{position:relative;display:grid;justify-items:center}.aeris-organization-chart__node{min-width:var(--aeris-organization-chart-node-min-width, 9.5rem);max-width:var(--aeris-organization-chart-node-max-width, 14rem);display:grid;gap:.25rem;padding:var(--aeris-organization-chart-node-padding, .625rem .75rem);border:1px solid var(--aeris-organization-chart-node-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-organization-chart-node-radius, var(--aeris-radius-lg, .875rem));background:var(--aeris-organization-chart-node-background, var(--aeris-surface, #fff));color:var(--aeris-organization-chart-node-color, var(--aeris-text, #222222));box-shadow:var(--aeris-organization-chart-node-shadow, 0 .75rem 1.75rem rgba(31, 35, 27, .08));text-align:center;cursor:default}.aeris-organization-chart__node[data-selectable=true]{cursor:pointer}.aeris-organization-chart__node[data-selectable=true]:hover{border-color:var(--aeris-focus, #536437);background:var(--aeris-surface-2, #f2f0ec)}.aeris-organization-chart__node[data-selected=true]{border-color:color-mix(in srgb,var(--aeris-primary, #879566) 58%,var(--aeris-border, #deddd7));background:var(--aeris-primary-soft, #eef2e6);color:var(--aeris-primary-text, #536437)}.aeris-organization-chart__node:focus-visible,.aeris-organization-chart__toggle:focus-visible{outline:0;box-shadow:var(--aeris-organization-chart-node-shadow, 0 .75rem 1.75rem rgba(31, 35, 27, .08)),0 0 0 3px color-mix(in srgb,var(--aeris-focus, #536437) 24%,transparent)}.aeris-organization-chart__label{font-size:.875rem;font-weight:750;line-height:1.25}.aeris-organization-chart__node small{color:var(--aeris-text-muted, #6d7068);font-size:.75rem;font-weight:600}.aeris-organization-chart__toggle{width:1.625rem;height:1.625rem;display:grid;place-items:center;margin-top:.625rem;padding:0;border:1px solid var(--aeris-border, #deddd7);border-radius:999px;background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);cursor:pointer}.aeris-organization-chart__toggle:hover{border-color:var(--aeris-focus, #536437);background:var(--aeris-surface-2, #f2f0ec)}.aeris-organization-chart__toggle span{position:relative;width:1rem;height:1rem}.aeris-organization-chart__toggle span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-organization-chart__toggle[aria-expanded=false] span:before{transform:translate(-50%,-50%) rotate(-90deg)}.aeris-organization-chart__children{position:relative;gap:0}.aeris-organization-chart__children>.aeris-organization-chart__branch{padding-top:var(--aeris-organization-chart-level-gap, 2rem)}.aeris-organization-chart__children:before{position:absolute;top:0;left:50%;width:1px;height:calc(var(--aeris-organization-chart-level-gap, 2rem) / 2);background:var(--aeris-organization-chart-connector, var(--aeris-border, #deddd7));content:\"\"}.aeris-organization-chart__children>.aeris-organization-chart__branch:before,.aeris-organization-chart__children>.aeris-organization-chart__branch:after{position:absolute;top:calc(var(--aeris-organization-chart-level-gap, 2rem) / 2);height:1px;background:var(--aeris-organization-chart-connector, var(--aeris-border, #deddd7));content:\"\"}.aeris-organization-chart__children>.aeris-organization-chart__branch:before{right:50%;left:0}.aeris-organization-chart__children>.aeris-organization-chart__branch:after{right:0;left:50%}.aeris-organization-chart__children>.aeris-organization-chart__branch:first-child:before,.aeris-organization-chart__children>.aeris-organization-chart__branch:last-child:after{content:none}.aeris-organization-chart__children>.aeris-organization-chart__branch:only-child:before,.aeris-organization-chart__children>.aeris-organization-chart__branch:only-child:after{content:none}.aeris-organization-chart__children>.aeris-organization-chart__branch>.aeris-organization-chart__node-shell:before{position:absolute;top:calc(-1 * var(--aeris-organization-chart-level-gap, 2rem) / 2);left:50%;width:1px;height:calc(var(--aeris-organization-chart-level-gap, 2rem) / 2);background:var(--aeris-organization-chart-connector, var(--aeris-border, #deddd7));content:\"\"}.aeris-organization-chart__empty{min-height:10rem;display:grid;place-items:center;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-lg, .875rem);background:var(--aeris-surface, #fff);color:var(--aeris-text-muted, #6d7068);text-align:center}@media(max-width:44rem){.aeris-organization-chart__node{min-width:var(--aeris-organization-chart-node-min-width, 8.5rem)}}\n"] }]
370
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], selectionKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionKeys", required: false }] }, { type: i0.Output, args: ["selectionKeysChange"] }], collapsedKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsedKeys", required: false }] }, { type: i0.Output, args: ["collapsedKeysChange"] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], expandAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandAriaLabel", required: false }] }], collapseAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapseAriaLabel", required: false }] }], nodeSelected: [{ type: i0.Output, args: ["nodeSelected"] }], nodeUnselected: [{ type: i0.Output, args: ["nodeUnselected"] }], selectionChanged: [{ type: i0.Output, args: ["selectionChanged"] }], nodeExpanded: [{ type: i0.Output, args: ["nodeExpanded"] }], nodeCollapsed: [{ type: i0.Output, args: ["nodeCollapsed"] }], nodeTemplateDirective: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisOrganizationChartNodeTemplate), { isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisOrganizationChartEmptyTemplate), { isSignal: true }] }], nodeElements: [{ type: i0.ViewChildren, args: ['nodeElement', { isSignal: true }] }] } });
371
+ const AerisOrganizationChartModule = [
372
+ AerisOrganizationChart,
373
+ AerisOrganizationChartNodeTemplate,
374
+ AerisOrganizationChartEmptyTemplate,
375
+ ];
376
+
377
+ /**
378
+ * Generated bundle index. Do not edit.
379
+ */
380
+
381
+ export { AerisOrganizationChart, AerisOrganizationChartEmptyTemplate, AerisOrganizationChartModule, AerisOrganizationChartNodeTemplate };
382
+ //# sourceMappingURL=aeris-ui-core-organization-chart.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aeris-ui-core-organization-chart.mjs","sources":["../../../projects/aeris-ui/organization-chart/aeris-organization-chart.ts","../../../projects/aeris-ui/organization-chart/aeris-ui-core-organization-chart.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n ElementRef,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n model,\n output,\n viewChildren,\n} from '@angular/core';\n\nexport type AerisOrganizationChartSelectionMode = 'single' | 'multiple';\n\nexport interface AerisOrganizationChartNode<TData = unknown> {\n readonly key?: string;\n readonly label?: string;\n readonly type?: string;\n readonly data?: TData;\n readonly children?: readonly AerisOrganizationChartNode<TData>[];\n readonly selectable?: boolean;\n readonly expanded?: boolean;\n}\n\nexport interface AerisOrganizationChartNodeEvent<TData = unknown> {\n readonly originalEvent: Event;\n readonly node: AerisOrganizationChartNode<TData>;\n readonly key: string;\n}\n\nexport interface AerisOrganizationChartSelectionEvent<TData = unknown> {\n readonly originalEvent: Event;\n readonly selectedKeys: readonly string[];\n readonly node: AerisOrganizationChartNode<TData>;\n readonly key: string;\n}\n\ninterface AerisOrganizationChartNodeContext<TData = unknown> {\n readonly $implicit: AerisOrganizationChartNode<TData>;\n readonly node: AerisOrganizationChartNode<TData>;\n readonly key: string;\n readonly selected: boolean;\n readonly expanded: boolean;\n readonly leaf: boolean;\n readonly level: number;\n}\n\n@Directive({ selector: 'ng-template[aerisOrganizationChartNode]' })\nexport class AerisOrganizationChartNodeTemplate<TData = unknown> {\n readonly template = inject<TemplateRef<AerisOrganizationChartNodeContext<TData>>>(TemplateRef);\n\n static ngTemplateContextGuard<TData>(\n _directive: AerisOrganizationChartNodeTemplate<TData>,\n context: unknown,\n ): context is AerisOrganizationChartNodeContext<TData> {\n return true;\n }\n}\n\n@Directive({ selector: 'ng-template[aerisOrganizationChartEmpty]' })\nexport class AerisOrganizationChartEmptyTemplate {\n readonly template = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Component({\n selector: 'aeris-organization-chart',\n imports: [NgTemplateOutlet],\n template: `\n <div class=\"aeris-organization-chart\" [attr.data-fluid]=\"fluid() || null\">\n @if (value().length) {\n <div class=\"aeris-organization-chart__viewport\" tabindex=\"0\">\n <ng-template\n #nodeTemplate\n let-node\n let-key=\"key\"\n let-level=\"level\"\n >\n <li class=\"aeris-organization-chart__branch\">\n <div class=\"aeris-organization-chart__node-shell\">\n <div\n #nodeElement\n class=\"aeris-organization-chart__node\"\n role=\"treeitem\"\n tabindex=\"0\"\n [attr.aria-label]=\"nodeAriaLabel(node)\"\n [attr.aria-selected]=\"selectionMode() ? isSelected(key) : null\"\n [attr.aria-expanded]=\"hasChildren(node) ? !isCollapsed(key) : null\"\n [attr.data-selected]=\"isSelected(key) || null\"\n [attr.data-selectable]=\"isNodeSelectable(node) || null\"\n [attr.data-type]=\"node.type || null\"\n [attr.data-aeris-key]=\"key\"\n [style.--aeris-org-level]=\"level\"\n (click)=\"selectNode(node, key, $event)\"\n (keydown)=\"handleNodeKeydown($event, node, key)\"\n >\n @if (nodeTemplateDirective(); as customNode) {\n <ng-container\n [ngTemplateOutlet]=\"customNode.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: node,\n node,\n key,\n selected: isSelected(key),\n expanded: !isCollapsed(key),\n leaf: !hasChildren(node),\n level\n }\"\n />\n } @else {\n <span class=\"aeris-organization-chart__label\">{{ nodeLabel(node) }}</span>\n @if (node.type) {\n <small>{{ node.type }}</small>\n }\n }\n </div>\n\n @if (collapsible() && hasChildren(node)) {\n <button\n class=\"aeris-organization-chart__toggle\"\n type=\"button\"\n [attr.aria-label]=\"isCollapsed(key) ? expandAriaLabel() : collapseAriaLabel()\"\n [attr.aria-expanded]=\"!isCollapsed(key)\"\n (click)=\"toggleNode(node, key, $event)\"\n >\n <span aria-hidden=\"true\"></span>\n </button>\n }\n </div>\n\n @if (hasVisibleChildren(node, key)) {\n <ul role=\"group\" class=\"aeris-organization-chart__children\">\n @for (child of visibleChildren(node, key); track nodeKey(child, childIndex); let childIndex = $index) {\n <ng-container\n [ngTemplateOutlet]=\"nodeTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: child,\n key: nodeKey(child, key + '-' + childIndex),\n level: level + 1\n }\"\n />\n }\n </ul>\n }\n </li>\n </ng-template>\n\n <ul class=\"aeris-organization-chart__tree\" role=\"tree\" [attr.aria-label]=\"ariaLabel()\">\n @for (node of value(); track nodeKey(node, $index); let index = $index) {\n <ng-container\n [ngTemplateOutlet]=\"nodeTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: node,\n key: nodeKey(node, index),\n level: 1\n }\"\n />\n }\n </ul>\n </div>\n } @else {\n <div class=\"aeris-organization-chart__empty\" role=\"status\">\n @if (emptyTemplate(); as customEmpty) {\n <ng-container [ngTemplateOutlet]=\"customEmpty.template\" />\n } @else {\n {{ emptyMessage() }}\n }\n </div>\n }\n </div>\n `,\n styleUrl: './aeris-organization-chart.scss',\n})\nexport class AerisOrganizationChart<TData = unknown> {\n readonly value = input<readonly AerisOrganizationChartNode<TData>[]>([]);\n readonly selectionKeys = model<readonly string[]>([]);\n readonly collapsedKeys = model<readonly string[]>([]);\n readonly selectionMode = input<AerisOrganizationChartSelectionMode | null>(null);\n readonly collapsible = input(true, { transform: booleanAttribute });\n readonly fluid = input(true, { transform: booleanAttribute });\n readonly ariaLabel = input('Organization chart');\n readonly emptyMessage = input('No organization chart data available');\n readonly expandAriaLabel = input('Expand node');\n readonly collapseAriaLabel = input('Collapse node');\n\n readonly nodeSelected = output<AerisOrganizationChartSelectionEvent<TData>>();\n readonly nodeUnselected = output<AerisOrganizationChartSelectionEvent<TData>>();\n readonly selectionChanged = output<AerisOrganizationChartSelectionEvent<TData>>();\n readonly nodeExpanded = output<AerisOrganizationChartNodeEvent<TData>>();\n readonly nodeCollapsed = output<AerisOrganizationChartNodeEvent<TData>>();\n\n protected readonly nodeTemplateDirective = contentChild(AerisOrganizationChartNodeTemplate<TData>);\n protected readonly emptyTemplate = contentChild(AerisOrganizationChartEmptyTemplate);\n private readonly nodeElements = viewChildren<ElementRef<HTMLElement>>('nodeElement');\n protected readonly renderedKeys = computed(() => this.collectRenderedKeys(this.value()));\n\n protected nodeKey(node: AerisOrganizationChartNode<TData>, fallback: string | number): string {\n return node.key ?? String(fallback);\n }\n\n protected nodeLabel(node: AerisOrganizationChartNode<TData>): string {\n return node.label ?? '';\n }\n\n protected nodeAriaLabel(node: AerisOrganizationChartNode<TData>): string {\n return this.nodeLabel(node) || node.type || 'Organization chart node';\n }\n\n protected hasChildren(node: AerisOrganizationChartNode<TData>): boolean {\n return Boolean(node.children?.length);\n }\n\n protected isCollapsed(key: string): boolean {\n return this.collapsedKeys().includes(key);\n }\n\n protected hasVisibleChildren(node: AerisOrganizationChartNode<TData>, key: string): boolean {\n return this.hasChildren(node) && !this.isCollapsed(key);\n }\n\n protected visibleChildren(\n node: AerisOrganizationChartNode<TData>,\n key: string,\n ): readonly AerisOrganizationChartNode<TData>[] {\n return this.hasVisibleChildren(node, key) ? (node.children ?? []) : [];\n }\n\n protected isSelected(key: string): boolean {\n return this.selectionKeys().includes(key);\n }\n\n protected isNodeSelectable(node: AerisOrganizationChartNode<TData>): boolean {\n return Boolean(this.selectionMode()) && node.selectable !== false;\n }\n\n protected selectNode(\n node: AerisOrganizationChartNode<TData>,\n key: string,\n originalEvent: Event,\n ): void {\n if (!this.isNodeSelectable(node)) return;\n\n const wasSelected = this.isSelected(key);\n const selectedKeys =\n this.selectionMode() === 'single'\n ? wasSelected\n ? []\n : [key]\n : wasSelected\n ? this.selectionKeys().filter((selectedKey) => selectedKey !== key)\n : [...this.selectionKeys(), key];\n\n this.selectionKeys.set(selectedKeys);\n const event = { originalEvent, selectedKeys, node, key };\n this.selectionChanged.emit(event);\n if (wasSelected) {\n this.nodeUnselected.emit(event);\n } else {\n this.nodeSelected.emit(event);\n }\n }\n\n protected toggleNode(\n node: AerisOrganizationChartNode<TData>,\n key: string,\n originalEvent: Event,\n ): void {\n originalEvent.stopPropagation();\n if (!this.hasChildren(node)) return;\n\n if (this.isCollapsed(key)) {\n this.collapsedKeys.set(this.collapsedKeys().filter((item) => item !== key));\n this.nodeExpanded.emit({ originalEvent, node, key });\n } else {\n this.collapsedKeys.set([...this.collapsedKeys(), key]);\n this.nodeCollapsed.emit({ originalEvent, node, key });\n }\n }\n\n protected handleNodeKeydown(\n event: KeyboardEvent,\n node: AerisOrganizationChartNode<TData>,\n key: string,\n ): void {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.selectNode(node, key, event);\n } else if (event.key === 'ArrowLeft' && this.hasChildren(node) && !this.isCollapsed(key)) {\n event.preventDefault();\n this.toggleNode(node, key, event);\n } else if (event.key === 'ArrowRight' && this.hasChildren(node) && this.isCollapsed(key)) {\n event.preventDefault();\n this.toggleNode(node, key, event);\n } else if (event.key === 'Home') {\n event.preventDefault();\n this.focusRenderedKey(this.renderedKeys()[0]);\n } else if (event.key === 'End') {\n event.preventDefault();\n const keys = this.renderedKeys();\n this.focusRenderedKey(keys[keys.length - 1]);\n }\n }\n\n private collectRenderedKeys(\n nodes: readonly AerisOrganizationChartNode<TData>[],\n parentKey = '',\n ): readonly string[] {\n const keys: string[] = [];\n nodes.forEach((node, index) => {\n const key = this.nodeKey(node, parentKey ? `${parentKey}-${index}` : String(index));\n keys.push(key);\n if (node.children?.length && !this.isCollapsed(key)) {\n keys.push(...this.collectRenderedKeys(node.children, key));\n }\n });\n return keys;\n }\n\n private focusRenderedKey(key: string | undefined): void {\n if (!key) return;\n this.nodeElements()\n .find((element) => element.nativeElement.getAttribute('data-aeris-key') === key)\n ?.nativeElement.focus();\n }\n}\n\nexport const AerisOrganizationChartModule = [\n AerisOrganizationChart,\n AerisOrganizationChartNodeTemplate,\n AerisOr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