@aeris-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.11

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 (318) hide show
  1. package/README.md +232 -191
  2. package/THIRD_PARTY_LICENSES.md +48 -0
  3. package/fesm2022/aeris-ui-core-accordion.mjs +666 -273
  4. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
  6. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs +1301 -450
  8. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
  10. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
  11. package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
  12. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  13. package/fesm2022/aeris-ui-core-badge.mjs +562 -115
  14. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  15. package/fesm2022/aeris-ui-core-block-ui.mjs +221 -101
  16. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs +609 -199
  18. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  19. package/fesm2022/aeris-ui-core-button-forms.mjs +78 -0
  20. package/fesm2022/aeris-ui-core-button-forms.mjs.map +1 -0
  21. package/fesm2022/aeris-ui-core-button-group.mjs +554 -36
  22. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  23. package/fesm2022/aeris-ui-core-button.mjs +911 -137
  24. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  25. package/fesm2022/aeris-ui-core-card.mjs +371 -101
  26. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  27. package/fesm2022/aeris-ui-core-carousel.mjs +835 -369
  28. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  29. package/fesm2022/aeris-ui-core-cascade-select.mjs +1294 -525
  30. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  31. package/fesm2022/aeris-ui-core-chart.mjs +594 -262
  32. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  33. package/fesm2022/aeris-ui-core-checkbox.mjs +619 -150
  34. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  35. package/fesm2022/aeris-ui-core-chip.mjs +1109 -121
  36. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  37. package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
  38. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
  39. package/fesm2022/aeris-ui-core-code-block.mjs +687 -0
  40. package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
  41. package/fesm2022/aeris-ui-core-color-picker.mjs +2436 -1076
  42. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  43. package/fesm2022/aeris-ui-core-command-palette.mjs +996 -0
  44. package/fesm2022/aeris-ui-core-command-palette.mjs.map +1 -0
  45. package/fesm2022/aeris-ui-core-compare.mjs +870 -338
  46. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  47. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1454 -575
  48. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  49. package/fesm2022/aeris-ui-core-confirm-popup.mjs +1499 -760
  50. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  51. package/fesm2022/aeris-ui-core-context-menu.mjs +975 -449
  52. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  53. package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs +946 -0
  54. package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs.map +1 -0
  55. package/fesm2022/aeris-ui-core-date-picker.mjs +2538 -1183
  56. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  57. package/fesm2022/aeris-ui-core-dialog.mjs +1187 -368
  58. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  59. package/fesm2022/aeris-ui-core-divider.mjs +204 -43
  60. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  61. package/fesm2022/aeris-ui-core-drawer.mjs +1712 -345
  62. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  63. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +418 -254
  64. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  65. package/fesm2022/aeris-ui-core-editor.mjs +1808 -783
  66. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  67. package/fesm2022/aeris-ui-core-file-upload.mjs +1529 -536
  68. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  69. package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
  70. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  71. package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
  72. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  73. package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
  74. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  75. package/fesm2022/aeris-ui-core-form-field.mjs +688 -0
  76. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
  77. package/fesm2022/aeris-ui-core-galleria.mjs +2821 -1143
  78. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  79. package/fesm2022/aeris-ui-core-glass.mjs +110 -33
  80. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  81. package/fesm2022/aeris-ui-core-icon-field.mjs +426 -98
  82. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  83. package/fesm2022/aeris-ui-core-inplace.mjs +496 -132
  84. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  85. package/fesm2022/aeris-ui-core-input-group.mjs +413 -107
  86. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  87. package/fesm2022/aeris-ui-core-input-mask.mjs +713 -257
  88. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  89. package/fesm2022/aeris-ui-core-input-number.mjs +1095 -297
  90. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  91. package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
  92. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  93. package/fesm2022/aeris-ui-core-input-text.mjs +703 -160
  94. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  95. package/fesm2022/aeris-ui-core-kbd.mjs +243 -0
  96. package/fesm2022/aeris-ui-core-kbd.mjs.map +1 -0
  97. package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
  98. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  99. package/fesm2022/aeris-ui-core-listbox.mjs +789 -0
  100. package/fesm2022/aeris-ui-core-listbox.mjs.map +1 -0
  101. package/fesm2022/aeris-ui-core-mega-menu.mjs +662 -388
  102. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  103. package/fesm2022/aeris-ui-core-menu.mjs +1111 -478
  104. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  105. package/fesm2022/aeris-ui-core-menubar.mjs +1081 -411
  106. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  107. package/fesm2022/aeris-ui-core-message.mjs +513 -147
  108. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  109. package/fesm2022/aeris-ui-core-meter-group.mjs +641 -230
  110. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  111. package/fesm2022/aeris-ui-core-multi-select.mjs +1832 -577
  112. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  113. package/fesm2022/aeris-ui-core-navbar.mjs +1407 -0
  114. package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -0
  115. package/fesm2022/aeris-ui-core-order-list.mjs +748 -220
  116. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  117. package/fesm2022/aeris-ui-core-organization-chart.mjs +521 -201
  118. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  119. package/fesm2022/aeris-ui-core-paginator.mjs +671 -127
  120. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  121. package/fesm2022/aeris-ui-core-panel.mjs +602 -210
  122. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  123. package/fesm2022/aeris-ui-core-password.mjs +1046 -269
  124. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  125. package/fesm2022/aeris-ui-core-pick-list.mjs +1796 -703
  126. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  127. package/fesm2022/aeris-ui-core-popover.mjs +1354 -385
  128. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  129. package/fesm2022/aeris-ui-core-progress-bar.mjs +609 -182
  130. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  131. package/fesm2022/aeris-ui-core-progress-spinner.mjs +428 -133
  132. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  133. package/fesm2022/aeris-ui-core-radio-button.mjs +502 -132
  134. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  135. package/fesm2022/aeris-ui-core-rating.mjs +506 -231
  136. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  137. package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
  138. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  139. package/fesm2022/aeris-ui-core-scroll-top.mjs +279 -69
  140. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  141. package/fesm2022/aeris-ui-core-select-native.mjs +145 -0
  142. package/fesm2022/aeris-ui-core-select-native.mjs.map +1 -0
  143. package/fesm2022/aeris-ui-core-select.mjs +1984 -668
  144. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  145. package/fesm2022/aeris-ui-core-sidebar.mjs +1293 -0
  146. package/fesm2022/aeris-ui-core-sidebar.mjs.map +1 -0
  147. package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
  148. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  149. package/fesm2022/aeris-ui-core-slider.mjs +884 -430
  150. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  151. package/fesm2022/aeris-ui-core-speed-dial.mjs +882 -337
  152. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  153. package/fesm2022/aeris-ui-core-split-button.mjs +972 -268
  154. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  155. package/fesm2022/aeris-ui-core-splitter.mjs +831 -356
  156. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  157. package/fesm2022/aeris-ui-core-stepper.mjs +705 -256
  158. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  159. package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
  160. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  161. package/fesm2022/aeris-ui-core-table.mjs +2927 -923
  162. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  163. package/fesm2022/aeris-ui-core-tabs.mjs +855 -283
  164. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  165. package/fesm2022/aeris-ui-core-textarea.mjs +919 -221
  166. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  167. package/fesm2022/aeris-ui-core-theme-builder.mjs +1368 -1407
  168. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  169. package/fesm2022/aeris-ui-core-theming.mjs +132 -144
  170. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  171. package/fesm2022/aeris-ui-core-tiered-menu.mjs +966 -447
  172. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  173. package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
  174. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  175. package/fesm2022/aeris-ui-core-toast.mjs +1109 -384
  176. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  177. package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
  178. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  179. package/fesm2022/aeris-ui-core-toolbar.mjs +1340 -131
  180. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  181. package/fesm2022/aeris-ui-core-tooltip.mjs +625 -330
  182. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  183. package/fesm2022/aeris-ui-core-tree-select.mjs +1650 -627
  184. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  185. package/fesm2022/aeris-ui-core-tree-table.mjs +2442 -994
  186. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  187. package/fesm2022/aeris-ui-core-tree.mjs +1257 -670
  188. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  189. package/fesm2022/aeris-ui-core.mjs +1601 -312
  190. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  191. package/package.json +48 -8
  192. package/schematics/ng-add/schema.json +1 -1
  193. package/schematics/runtime/schematics/ng-add/options.js +4 -4
  194. package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
  195. package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
  196. package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
  197. package/schematics/runtime/theme-builder/aeris-color-derivation.js +1 -1
  198. package/schematics/runtime/theme-builder/aeris-contrast.js +38 -17
  199. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
  200. package/schematics/runtime/theme-builder/aeris-foundation.js +13 -8
  201. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
  202. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +33 -23
  203. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
  204. package/schematics/runtime/theme-builder/aeris-theme-generator.js +8 -2
  205. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
  206. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +63 -76
  207. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
  208. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +15 -5
  209. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
  210. package/schematics/runtime/theme-builder/aeris-theme-validation.js +18 -2
  211. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
  212. package/schematics/runtime/theme-builder/aeris-theme.js +121 -34
  213. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
  214. package/styles/_choice-card.scss +93 -0
  215. package/styles/_fallback-colors.scss +10 -0
  216. package/styles/_icon-artwork.scss +14 -0
  217. package/styles/_icon-template.scss +42 -0
  218. package/styles/_mobile.scss +16 -0
  219. package/styles/_selection-icons.scss +12 -0
  220. package/styles/_table-pinning.scss +119 -0
  221. package/styles/_tokens.scss +5 -5
  222. package/styles/aeris.css +447 -137
  223. package/styles/controls.css +205 -35
  224. package/tools/aeris-theme.mjs +4 -4
  225. package/tools/aeris-theme.schema.json +18 -13
  226. package/types/aeris-ui-core-accordion.d.ts +167 -93
  227. package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
  228. package/types/aeris-ui-core-auto-complete.d.ts +339 -140
  229. package/types/aeris-ui-core-auto-focus.d.ts +24 -16
  230. package/types/aeris-ui-core-avatar.d.ts +112 -42
  231. package/types/aeris-ui-core-badge.d.ts +160 -46
  232. package/types/aeris-ui-core-block-ui.d.ts +48 -27
  233. package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
  234. package/types/aeris-ui-core-button-forms.d.ts +18 -0
  235. package/types/aeris-ui-core-button-group.d.ts +150 -16
  236. package/types/aeris-ui-core-button.d.ts +274 -67
  237. package/types/aeris-ui-core-card.d.ts +74 -37
  238. package/types/aeris-ui-core-carousel.d.ts +213 -117
  239. package/types/aeris-ui-core-cascade-select.d.ts +275 -123
  240. package/types/aeris-ui-core-chart.d.ts +150 -84
  241. package/types/aeris-ui-core-checkbox.d.ts +173 -54
  242. package/types/aeris-ui-core-chip.d.ts +316 -56
  243. package/types/aeris-ui-core-class-names.d.ts +22 -20
  244. package/types/aeris-ui-core-code-block.d.ts +201 -0
  245. package/types/aeris-ui-core-color-picker.d.ts +450 -143
  246. package/types/aeris-ui-core-command-palette.d.ts +267 -0
  247. package/types/aeris-ui-core-compare.d.ts +230 -102
  248. package/types/aeris-ui-core-confirm-dialog.d.ts +450 -245
  249. package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
  250. package/types/aeris-ui-core-context-menu.d.ts +270 -146
  251. package/types/aeris-ui-core-date-picker.d.ts +594 -219
  252. package/types/aeris-ui-core-dialog.d.ts +301 -117
  253. package/types/aeris-ui-core-divider.d.ts +58 -20
  254. package/types/aeris-ui-core-drawer.d.ts +380 -112
  255. package/types/aeris-ui-core-dynamic-dialog.d.ts +162 -137
  256. package/types/aeris-ui-core-editor.d.ts +257 -123
  257. package/types/aeris-ui-core-file-upload.d.ts +385 -197
  258. package/types/aeris-ui-core-filter-service.d.ts +48 -52
  259. package/types/aeris-ui-core-fluid.d.ts +12 -9
  260. package/types/aeris-ui-core-focus-trap.d.ts +39 -31
  261. package/types/aeris-ui-core-form-field.d.ts +163 -0
  262. package/types/aeris-ui-core-galleria.d.ts +636 -256
  263. package/types/aeris-ui-core-glass.d.ts +24 -11
  264. package/types/aeris-ui-core-icon-field.d.ts +94 -32
  265. package/types/aeris-ui-core-inplace.d.ts +129 -62
  266. package/types/aeris-ui-core-input-group.d.ts +84 -33
  267. package/types/aeris-ui-core-input-mask.d.ts +201 -69
  268. package/types/aeris-ui-core-input-number.d.ts +291 -87
  269. package/types/aeris-ui-core-input-otp.d.ts +191 -81
  270. package/types/aeris-ui-core-input-text.d.ts +195 -60
  271. package/types/aeris-ui-core-kbd.d.ts +74 -0
  272. package/types/aeris-ui-core-key-filter.d.ts +53 -39
  273. package/types/aeris-ui-core-listbox.d.ts +222 -0
  274. package/types/aeris-ui-core-mega-menu.d.ts +181 -121
  275. package/types/aeris-ui-core-menu.d.ts +283 -168
  276. package/types/aeris-ui-core-menubar.d.ts +289 -135
  277. package/types/aeris-ui-core-message.d.ts +138 -60
  278. package/types/aeris-ui-core-meter-group.d.ts +169 -90
  279. package/types/aeris-ui-core-multi-select.d.ts +469 -180
  280. package/types/aeris-ui-core-navbar.d.ts +208 -0
  281. package/types/aeris-ui-core-order-list.d.ts +168 -66
  282. package/types/aeris-ui-core-organization-chart.d.ts +139 -77
  283. package/types/aeris-ui-core-paginator.d.ts +129 -38
  284. package/types/aeris-ui-core-panel.d.ts +149 -78
  285. package/types/aeris-ui-core-password.d.ts +276 -102
  286. package/types/aeris-ui-core-pick-list.d.ts +428 -179
  287. package/types/aeris-ui-core-popover.d.ts +294 -105
  288. package/types/aeris-ui-core-progress-bar.d.ts +163 -73
  289. package/types/aeris-ui-core-progress-spinner.d.ts +116 -48
  290. package/types/aeris-ui-core-radio-button.d.ts +146 -50
  291. package/types/aeris-ui-core-rating.d.ts +149 -76
  292. package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
  293. package/types/aeris-ui-core-scroll-top.d.ts +73 -29
  294. package/types/aeris-ui-core-select-native.d.ts +40 -0
  295. package/types/aeris-ui-core-select.d.ts +487 -217
  296. package/types/aeris-ui-core-sidebar.d.ts +220 -0
  297. package/types/aeris-ui-core-skeleton.d.ts +39 -17
  298. package/types/aeris-ui-core-slider.d.ts +270 -115
  299. package/types/aeris-ui-core-speed-dial.d.ts +241 -111
  300. package/types/aeris-ui-core-split-button.d.ts +267 -113
  301. package/types/aeris-ui-core-splitter.d.ts +224 -106
  302. package/types/aeris-ui-core-stepper.d.ts +184 -91
  303. package/types/aeris-ui-core-style-class.d.ts +141 -71
  304. package/types/aeris-ui-core-table.d.ts +729 -304
  305. package/types/aeris-ui-core-tabs.d.ts +193 -76
  306. package/types/aeris-ui-core-textarea.d.ts +271 -78
  307. package/types/aeris-ui-core-theme-builder.d.ts +220 -463
  308. package/types/aeris-ui-core-theming.d.ts +42 -45
  309. package/types/aeris-ui-core-tiered-menu.d.ts +257 -142
  310. package/types/aeris-ui-core-timeline.d.ts +109 -71
  311. package/types/aeris-ui-core-toast.d.ts +231 -115
  312. package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
  313. package/types/aeris-ui-core-toolbar.d.ts +314 -47
  314. package/types/aeris-ui-core-tooltip.d.ts +157 -88
  315. package/types/aeris-ui-core-tree-select.d.ts +394 -171
  316. package/types/aeris-ui-core-tree-table.d.ts +629 -288
  317. package/types/aeris-ui-core-tree.d.ts +294 -165
  318. package/types/aeris-ui-core.d.ts +338 -74
@@ -1,252 +1,427 @@
1
- import { DOCUMENT, isPlatformBrowser } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { InjectionToken, inject, PLATFORM_ID, ElementRef, DestroyRef, viewChild, signal, input, booleanAttribute, output, computed, afterNextRender, effect, Component } from '@angular/core';
4
- import { Chart, registerables } from 'chart.js';
5
-
6
- /**
7
- * Advanced integration point for supplying a Chart.js-compatible renderer.
8
- * Chart uses the default Chart.js renderer unless this provider is overridden.
9
- */
10
- const AERIS_CHART_FACTORY = new InjectionToken('AERIS_CHART_FACTORY', {
11
- factory: () => (canvas, configuration) => new Chart(canvas, configuration),
12
- });
1
+ import { DOCUMENT, isPlatformBrowser } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { Component, DestroyRef, ElementRef, InjectionToken, PLATFORM_ID, afterNextRender, booleanAttribute, computed, effect, inject, input, output, signal, viewChild } from "@angular/core";
4
+ import { aerisInternalCreateFrameScheduler } from "@aeris-ui/core";
5
+ import { Chart, registerables } from "chart.js";
6
+ import { color } from "chart.js/helpers";
7
+ const AERIS_CHART_FACTORY = new InjectionToken("AERIS_CHART_FACTORY", { factory: () => (canvas, configuration) => new Chart(canvas, configuration) });
13
8
  let chartJsRegistered = false;
14
- class AerisChart {
15
- platformId = inject(PLATFORM_ID);
16
- document = inject(DOCUMENT);
17
- host = inject((ElementRef));
18
- chartFactory = inject(AERIS_CHART_FACTORY);
19
- destroyRef = inject(DestroyRef);
20
- canvas = viewChild('canvas', /* @ts-ignore */
21
- ...(ngDevMode ? [{ debugName: "canvas" }] : /* istanbul ignore next */ []));
22
- ready = signal(false, /* @ts-ignore */
23
- ...(ngDevMode ? [{ debugName: "ready" }] : /* istanbul ignore next */ []));
24
- chartId = `aeris-chart-${++nextChartId}`;
25
- browser = isPlatformBrowser(this.platformId);
26
- themeObserver = this.createThemeObserver();
27
- chart = null;
28
- renderedType = null;
29
- renderedPlugins = null;
30
- type = input('bar', /* @ts-ignore */
31
- ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
32
- data = input(null, /* @ts-ignore */
33
- ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
34
- options = input(null, /* @ts-ignore */
35
- ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
36
- plugins = input([], /* @ts-ignore */
37
- ...(ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []));
38
- height = input('20rem', /* @ts-ignore */
39
- ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
40
- responsive = input(true, { ...(ngDevMode ? { debugName: "responsive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
41
- redraw = input(false, { ...(ngDevMode ? { debugName: "redraw" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
42
- ariaLabel = input('Chart', /* @ts-ignore */
43
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
44
- ariaDescription = input('', /* @ts-ignore */
45
- ...(ngDevMode ? [{ debugName: "ariaDescription" }] : /* istanbul ignore next */ []));
46
- emptyMessage = input('No chart data available', /* @ts-ignore */
47
- ...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
48
- chartReady = output();
49
- chartError = output();
50
- hasData = computed(() => Boolean(this.data()?.datasets.length), /* @ts-ignore */
51
- ...(ngDevMode ? [{ debugName: "hasData" }] : /* istanbul ignore next */ []));
52
- descriptionId = computed(() => `${this.chartId}-description`, /* @ts-ignore */
53
- ...(ngDevMode ? [{ debugName: "descriptionId" }] : /* istanbul ignore next */ []));
54
- resolvedAriaLabel = computed(() => this.ariaLabel() || 'Chart', /* @ts-ignore */
55
- ...(ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []));
56
- accessibleSummary = computed(() => this.chartSummary(this.data()), /* @ts-ignore */
57
- ...(ngDevMode ? [{ debugName: "accessibleSummary" }] : /* istanbul ignore next */ []));
58
- constructor() {
59
- this.destroyRef.onDestroy(() => {
60
- this.themeObserver?.disconnect();
61
- this.destroyChart();
62
- });
63
- afterNextRender(() => {
64
- if (this.browser)
65
- this.setReady();
66
- });
67
- effect((onCleanup) => {
68
- const canvas = this.canvas()?.nativeElement;
69
- const ready = this.isReady();
70
- const data = this.data();
71
- const type = this.type();
72
- const options = this.options();
73
- const plugins = this.plugins();
74
- const responsive = this.responsive();
75
- const redraw = this.redraw();
76
- if (!ready || !canvas || !data?.datasets.length) {
77
- this.destroyChart();
78
- return;
79
- }
80
- this.renderChart(canvas, type, data, options, plugins, responsive, redraw);
81
- onCleanup(() => undefined);
82
- });
83
- }
84
- /** Updates the chart using its current data and options. */
85
- refresh() {
86
- const canvas = this.canvas()?.nativeElement;
87
- const data = this.data();
88
- if (!canvas || !data?.datasets.length || !this.isReady())
89
- return;
90
- this.renderChart(canvas, this.type(), data, this.options(), this.plugins(), this.responsive(), this.redraw());
91
- }
92
- /** Resizes the underlying chart to its container or supplied pixel dimensions. */
93
- resize(width, height) {
94
- this.chart?.resize(width, height);
95
- }
96
- /** Restores the current chart to its initial animation state. */
97
- reset() {
98
- this.chart?.reset();
99
- }
100
- /** Returns a data URL snapshot when a chart is currently rendered. */
101
- toBase64Image(type, quality) {
102
- return this.chart?.toBase64Image(type, quality) ?? null;
103
- }
104
- setReady() {
105
- this.ready.set(true);
106
- }
107
- isReady() {
108
- return this.ready();
109
- }
110
- renderChart(canvas, type, data, options, plugins, responsive, redraw) {
111
- try {
112
- const configuration = this.configuration(type, data, options, plugins, responsive);
113
- if (!this.chart || this.renderedType !== type || this.renderedPlugins !== plugins || redraw) {
114
- this.destroyChart();
115
- this.registerChartJs();
116
- this.chart = this.chartFactory(canvas, configuration);
117
- this.renderedType = type;
118
- this.renderedPlugins = plugins;
119
- this.chartReady.emit({ chart: this.chart });
120
- return;
121
- }
122
- this.chart.data = configuration.data;
123
- this.chart.options = configuration.options;
124
- this.chart.update();
125
- }
126
- catch (error) {
127
- this.destroyChart();
128
- this.chartError.emit({ error });
129
- }
130
- }
131
- configuration(type, data, options, plugins, responsive) {
132
- return {
133
- type,
134
- data: this.copyData(data),
135
- options: this.themedOptions(options, responsive),
136
- plugins: [...plugins],
137
- };
138
- }
139
- copyData(data) {
140
- return {
141
- ...data,
142
- labels: data.labels ? [...data.labels] : [],
143
- datasets: data.datasets.map((dataset) => ({ ...dataset })),
144
- };
145
- }
146
- themedOptions(options, responsive) {
147
- const source = options ?? {};
148
- const style = getComputedStyle(this.host.nativeElement);
149
- const text = style.getPropertyValue('--aeris-text').trim() || '#222222';
150
- const muted = style.getPropertyValue('--aeris-text-muted').trim() || '#6d7068';
151
- const border = style.getPropertyValue('--aeris-border').trim() || '#deddd7';
152
- const surface = style.getPropertyValue('--aeris-surface').trim() || '#ffffff';
153
- const scales = Object.fromEntries(Object.entries(source.scales ?? {}).map(([key, scale]) => {
154
- const sourceScale = (scale ?? {});
155
- return [
156
- key,
157
- {
158
- ...sourceScale,
159
- grid: { color: border, ...this.objectValue(sourceScale['grid']) },
160
- ticks: { color: muted, ...this.objectValue(sourceScale['ticks']) },
161
- border: { color: border, ...this.objectValue(sourceScale['border']) },
162
- title: { color: text, ...this.objectValue(sourceScale['title']) },
163
- },
164
- ];
165
- }));
166
- return {
167
- ...source,
168
- responsive,
169
- color: source.color ?? text,
170
- plugins: {
171
- ...source.plugins,
172
- legend: {
173
- ...source.plugins?.legend,
174
- labels: {
175
- color: muted,
176
- ...source.plugins?.legend?.labels,
177
- },
178
- },
179
- tooltip: {
180
- ...source.plugins?.tooltip,
181
- backgroundColor: source.plugins?.tooltip?.backgroundColor ?? surface,
182
- titleColor: source.plugins?.tooltip?.titleColor ?? text,
183
- bodyColor: source.plugins?.tooltip?.bodyColor ?? muted,
184
- borderColor: source.plugins?.tooltip?.borderColor ?? border,
185
- borderWidth: source.plugins?.tooltip?.borderWidth ?? 1,
186
- },
187
- },
188
- scales,
189
- };
190
- }
191
- registerChartJs() {
192
- if (chartJsRegistered)
193
- return;
194
- Chart.register(...registerables);
195
- chartJsRegistered = true;
196
- }
197
- destroyChart() {
198
- this.chart?.destroy();
199
- this.chart = null;
200
- this.renderedType = null;
201
- this.renderedPlugins = null;
202
- }
203
- createThemeObserver() {
204
- if (!this.browser || typeof MutationObserver === 'undefined')
205
- return null;
206
- const observer = new MutationObserver(() => this.refresh());
207
- observer.observe(this.document.documentElement, {
208
- attributes: true,
209
- attributeFilter: ['class', 'data-theme', 'data-palette', 'style'],
210
- });
211
- return observer;
212
- }
213
- chartSummary(data) {
214
- if (!data?.datasets.length)
215
- return this.emptyMessage();
216
- const labels = (data.labels ?? []).map((label) => String(label));
217
- const datasets = data.datasets.map((dataset, index) => {
218
- const label = dataset.label || `Dataset ${index + 1}`;
219
- const values = dataset.data.map((value) => this.valueText(value)).join(', ');
220
- return `${label}: ${values}`;
221
- });
222
- return [labels.length ? `Labels: ${labels.join(', ')}.` : '', ...datasets].filter(Boolean).join(' ');
223
- }
224
- valueText(value) {
225
- if (typeof value === 'number' || typeof value === 'string')
226
- return String(value);
227
- if (value && typeof value === 'object') {
228
- const point = value;
229
- const x = point['x'];
230
- const y = point['y'];
231
- const r = point['r'];
232
- return [x !== undefined ? `x ${x}` : '', y !== undefined ? `y ${y}` : '', r !== undefined ? `r ${r}` : '']
233
- .filter(Boolean)
234
- .join(', ');
235
- }
236
- return String(value);
237
- }
238
- objectValue(value) {
239
- return value && typeof value === 'object' ? value : {};
240
- }
241
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
242
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisChart, isStandalone: true, selector: "aeris-chart", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, responsive: { classPropertyName: "responsive", publicName: "responsive", isSignal: true, isRequired: false, transformFunction: null }, redraw: { classPropertyName: "redraw", publicName: "redraw", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaDescription: { classPropertyName: "ariaDescription", publicName: "ariaDescription", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { chartReady: "chartReady", chartError: "chartError" }, host: { properties: { "attr.data-chart-type": "type()", "attr.data-responsive": "responsive() || null" }, classAttribute: "aeris-chart" }, viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true, isSignal: true }], ngImport: i0, template: `
9
+ var AerisChart = class AerisChart {
10
+ platformId = inject(PLATFORM_ID);
11
+ document = inject(DOCUMENT);
12
+ host = inject(ElementRef);
13
+ chartFactory = inject(AERIS_CHART_FACTORY);
14
+ destroyRef = inject(DestroyRef);
15
+ canvas = viewChild("canvas", ...ngDevMode ? [{ debugName: "canvas" }] : /* istanbul ignore next */ []);
16
+ ready = signal(false, ...ngDevMode ? [{ debugName: "ready" }] : /* istanbul ignore next */ []);
17
+ chartId = `aeris-chart-${++nextChartId}`;
18
+ browser = isPlatformBrowser(this.platformId);
19
+ themeObserver = null;
20
+ themeFrame = aerisInternalCreateFrameScheduler(() => this.refresh());
21
+ motion = null;
22
+ chart = null;
23
+ renderedType = null;
24
+ renderedPlugins = null;
25
+ type = input("bar", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
26
+ data = input(null, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
27
+ options = input(null, ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
28
+ plugins = input([], ...ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []);
29
+ height = input("20rem", ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
30
+ responsive = input(true, {
31
+ ...ngDevMode ? { debugName: "responsive" } : /* istanbul ignore next */ {},
32
+ transform: booleanAttribute
33
+ });
34
+ redraw = input(false, {
35
+ ...ngDevMode ? { debugName: "redraw" } : /* istanbul ignore next */ {},
36
+ transform: booleanAttribute
37
+ });
38
+ ariaLabel = input("Chart", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
39
+ ariaDescription = input("", ...ngDevMode ? [{ debugName: "ariaDescription" }] : /* istanbul ignore next */ []);
40
+ emptyMessage = input("No chart data available", ...ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []);
41
+ chartReady = output();
42
+ chartError = output();
43
+ hasData = computed(() => Boolean(this.data()?.datasets.some((dataset) => dataset.data.length)), ...ngDevMode ? [{ debugName: "hasData" }] : /* istanbul ignore next */ []);
44
+ summaryId = `${this.chartId}-summary`;
45
+ describedBy = computed(() => [this.ariaDescription() ? this.descriptionId() : "", this.summaryId].filter(Boolean).join(" "), ...ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []);
46
+ descriptionId = computed(() => `${this.chartId}-description`, ...ngDevMode ? [{ debugName: "descriptionId" }] : /* istanbul ignore next */ []);
47
+ resolvedAriaLabel = computed(() => this.ariaLabel() || "Chart", ...ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []);
48
+ accessibleSummary = computed(() => this.chartSummary(this.data()), ...ngDevMode ? [{ debugName: "accessibleSummary" }] : /* istanbul ignore next */ []);
49
+ constructor() {
50
+ this.destroyRef.onDestroy(() => {
51
+ this.themeObserver?.disconnect();
52
+ this.themeFrame.cancel();
53
+ this.destroyChart();
54
+ });
55
+ afterNextRender(() => {
56
+ if (!this.browser) return;
57
+ const view = this.document.defaultView;
58
+ this.motion = view?.matchMedia?.("(prefers-reduced-motion: reduce)") ?? null;
59
+ const scheme = view?.matchMedia?.("(prefers-color-scheme: dark)");
60
+ const refresh = () => this.themeFrame.schedule();
61
+ this.motion?.addEventListener("change", refresh);
62
+ scheme?.addEventListener("change", refresh);
63
+ this.destroyRef.onDestroy(() => {
64
+ this.motion?.removeEventListener("change", refresh);
65
+ scheme?.removeEventListener("change", refresh);
66
+ });
67
+ this.themeObserver = this.createThemeObserver();
68
+ this.setReady();
69
+ });
70
+ effect(() => {
71
+ const canvas = this.canvas()?.nativeElement;
72
+ const ready = this.isReady();
73
+ const data = this.data();
74
+ const type = this.type();
75
+ const options = this.options();
76
+ const plugins = this.plugins();
77
+ const responsive = this.responsive();
78
+ const redraw = this.redraw();
79
+ if (!ready || !canvas || !data || !this.hasData()) {
80
+ this.destroyChart();
81
+ return;
82
+ }
83
+ this.renderChart(canvas, type, data, options, plugins, responsive, redraw);
84
+ });
85
+ }
86
+ refresh() {
87
+ const canvas = this.canvas()?.nativeElement;
88
+ const data = this.data();
89
+ if (!canvas || !data || !this.hasData() || !this.isReady()) return;
90
+ this.renderChart(canvas, this.type(), data, this.options(), this.plugins(), this.responsive(), this.redraw());
91
+ }
92
+ resize(width, height) {
93
+ this.chart?.resize(width, height);
94
+ }
95
+ reset() {
96
+ this.chart?.reset();
97
+ }
98
+ toBase64Image(type, quality) {
99
+ return this.chart?.toBase64Image(type, quality) ?? null;
100
+ }
101
+ setReady() {
102
+ this.ready.set(true);
103
+ }
104
+ isReady() {
105
+ return this.ready();
106
+ }
107
+ renderChart(canvas, type, data, options, plugins, responsive, redraw) {
108
+ try {
109
+ const configuration = this.configuration(type, data, options, plugins, responsive);
110
+ if (!this.chart || this.renderedType !== type || this.renderedPlugins !== plugins || redraw) {
111
+ this.destroyChart();
112
+ this.registerChartJs();
113
+ this.chart = this.chartFactory(canvas, configuration);
114
+ this.renderedType = type;
115
+ this.renderedPlugins = plugins;
116
+ this.chartReady.emit({ chart: this.chart });
117
+ return;
118
+ }
119
+ this.chart.data = configuration.data;
120
+ this.chart.options = configuration.options;
121
+ this.chart.update();
122
+ } catch (error) {
123
+ this.destroyChart();
124
+ this.chartError.emit({ error });
125
+ }
126
+ }
127
+ configuration(type, data, options, plugins, responsive) {
128
+ return {
129
+ type,
130
+ data: this.copyData(data),
131
+ options: this.themedOptions(type, data, options, responsive),
132
+ plugins: [...plugins]
133
+ };
134
+ }
135
+ copyData(data) {
136
+ return {
137
+ ...data,
138
+ labels: data.labels ? [...data.labels] : [],
139
+ datasets: data.datasets.map((dataset) => ({
140
+ ...dataset,
141
+ data: [...dataset.data]
142
+ }))
143
+ };
144
+ }
145
+ themedOptions(type, data, options, responsive) {
146
+ const source = options ?? {};
147
+ const style = getComputedStyle(this.host.nativeElement);
148
+ const text = style.getPropertyValue("--aeris-chart-color").trim() || style.getPropertyValue("--aeris-text").trim() || "#222222";
149
+ const muted = style.getPropertyValue("--aeris-text-muted").trim() || "#6d7068";
150
+ const border = style.getPropertyValue("--aeris-border").trim() || "#deddd7";
151
+ const surface = style.getPropertyValue("--aeris-surface").trim() || "#ffffff";
152
+ const font = {
153
+ family: style.fontFamily || "system-ui",
154
+ size: Number.parseFloat(style.fontSize) || 14
155
+ };
156
+ const rtl = style.direction === "rtl";
157
+ const plugins = source.plugins;
158
+ const legend = plugins?.legend;
159
+ const tooltip = plugins?.tooltip;
160
+ const filler = plugins?.filler;
161
+ const defaultScales = {};
162
+ const radialScales = /* @__PURE__ */ new Set();
163
+ for (const dataset of data.datasets) {
164
+ const kind = dataset.type ?? type;
165
+ const axes = dataset;
166
+ if (kind === "radar" || kind === "polarArea") {
167
+ const id = axes.rAxisID ?? "r";
168
+ defaultScales[id] = {};
169
+ radialScales.add(id);
170
+ } else if (kind !== "pie" && kind !== "doughnut") {
171
+ defaultScales[axes.xAxisID ?? "x"] = {};
172
+ defaultScales[axes.yAxisID ?? "y"] = {};
173
+ }
174
+ }
175
+ const scales = Object.fromEntries(Object.entries({
176
+ ...defaultScales,
177
+ ...source.scales
178
+ }).map(([key, scale]) => {
179
+ const sourceScale = scale ?? {};
180
+ return [key, {
181
+ ...sourceScale,
182
+ grid: {
183
+ color: border,
184
+ ...this.objectValue(sourceScale["grid"])
185
+ },
186
+ ticks: {
187
+ color: muted,
188
+ ...radialScales.has(key) ? { backdropColor: surface } : {},
189
+ ...this.objectValue(sourceScale["ticks"])
190
+ },
191
+ border: {
192
+ color: border,
193
+ ...this.objectValue(sourceScale["border"])
194
+ },
195
+ title: {
196
+ color: text,
197
+ ...this.objectValue(sourceScale["title"])
198
+ },
199
+ pointLabels: {
200
+ color: muted,
201
+ ...this.objectValue(sourceScale["pointLabels"])
202
+ },
203
+ angleLines: {
204
+ color: border,
205
+ ...this.objectValue(sourceScale["angleLines"])
206
+ }
207
+ }];
208
+ }));
209
+ return {
210
+ ...source,
211
+ responsive,
212
+ color: source.color ?? text,
213
+ font: {
214
+ ...font,
215
+ ...source.font
216
+ },
217
+ animation: this.motion?.matches ? false : source.animation ?? { duration: 220 },
218
+ plugins: plugins === false ? false : {
219
+ ...plugins,
220
+ filler: filler === false ? false : {
221
+ drawTime: "beforeDatasetsDraw",
222
+ ...filler
223
+ },
224
+ legend: legend === false ? false : {
225
+ rtl,
226
+ textDirection: rtl ? "rtl" : "ltr",
227
+ ...legend,
228
+ labels: {
229
+ color: muted,
230
+ ...legend?.labels
231
+ }
232
+ },
233
+ tooltip: tooltip === false ? false : {
234
+ rtl,
235
+ textDirection: rtl ? "rtl" : "ltr",
236
+ padding: 12,
237
+ titleFont: () => ({
238
+ ...font,
239
+ weight: "bold"
240
+ }),
241
+ bodyFont: () => font,
242
+ footerFont: () => ({
243
+ ...font,
244
+ weight: "bold"
245
+ }),
246
+ ...tooltip,
247
+ backgroundColor: tooltip?.backgroundColor ?? surface,
248
+ titleColor: tooltip?.titleColor ?? text,
249
+ bodyColor: tooltip?.bodyColor ?? text,
250
+ footerColor: tooltip?.footerColor ?? text,
251
+ borderColor: tooltip?.borderColor ?? border,
252
+ borderWidth: tooltip?.borderWidth ?? 1
253
+ }
254
+ },
255
+ scales
256
+ };
257
+ }
258
+ registerChartJs() {
259
+ if (chartJsRegistered) return;
260
+ Chart.register(...registerables);
261
+ chartJsRegistered = true;
262
+ }
263
+ destroyChart() {
264
+ this.chart?.destroy();
265
+ this.chart = null;
266
+ this.renderedType = null;
267
+ this.renderedPlugins = null;
268
+ }
269
+ createThemeObserver() {
270
+ if (!this.browser || typeof MutationObserver === "undefined") return null;
271
+ const observer = new MutationObserver(() => this.themeFrame.schedule());
272
+ for (let element = this.host.nativeElement; element; element = element.parentElement) observer.observe(element, {
273
+ attributes: true,
274
+ attributeFilter: [
275
+ "class",
276
+ "data-aeris-theme",
277
+ "data-aeris-density",
278
+ "data-aeris-radius",
279
+ "data-theme",
280
+ "data-palette",
281
+ "dir",
282
+ "style"
283
+ ]
284
+ });
285
+ return observer;
286
+ }
287
+ chartSummary(data) {
288
+ if (!this.hasData() || !data) return this.emptyMessage();
289
+ const labels = (data.labels ?? []).map((label) => String(label));
290
+ const datasets = data.datasets.map((dataset, index) => {
291
+ return `${dataset.label || `Dataset ${index + 1}`}: ${dataset.data.map((value) => this.valueText(value)).join(", ")}`;
292
+ });
293
+ return [labels.length ? `Labels: ${labels.join(", ")}.` : "", ...datasets].filter(Boolean).join(" ");
294
+ }
295
+ valueText(value) {
296
+ if (value && typeof value === "object") {
297
+ const point = value;
298
+ const x = point["x"];
299
+ const y = point["y"];
300
+ const r = point["r"];
301
+ return [
302
+ x !== void 0 ? `x ${x}` : "",
303
+ y !== void 0 ? `y ${y}` : "",
304
+ r !== void 0 ? `r ${r}` : ""
305
+ ].filter(Boolean).join(", ");
306
+ }
307
+ return String(value);
308
+ }
309
+ objectValue(value) {
310
+ return value && typeof value === "object" ? value : {};
311
+ }
312
+ static ɵfac = i0.ɵɵngDeclareFactory({
313
+ minVersion: "12.0.0",
314
+ version: "22.2.3",
315
+ ngImport: i0,
316
+ type: AerisChart,
317
+ deps: [],
318
+ target: i0.ɵɵFactoryTarget.Component
319
+ });
320
+ static ɵcmp = i0.ɵɵngDeclareComponent({
321
+ minVersion: "17.0.0",
322
+ version: "22.2.3",
323
+ type: AerisChart,
324
+ isStandalone: true,
325
+ selector: "aeris-chart",
326
+ inputs: {
327
+ type: {
328
+ classPropertyName: "type",
329
+ publicName: "type",
330
+ isSignal: true,
331
+ isRequired: false,
332
+ transformFunction: null
333
+ },
334
+ data: {
335
+ classPropertyName: "data",
336
+ publicName: "data",
337
+ isSignal: true,
338
+ isRequired: false,
339
+ transformFunction: null
340
+ },
341
+ options: {
342
+ classPropertyName: "options",
343
+ publicName: "options",
344
+ isSignal: true,
345
+ isRequired: false,
346
+ transformFunction: null
347
+ },
348
+ plugins: {
349
+ classPropertyName: "plugins",
350
+ publicName: "plugins",
351
+ isSignal: true,
352
+ isRequired: false,
353
+ transformFunction: null
354
+ },
355
+ height: {
356
+ classPropertyName: "height",
357
+ publicName: "height",
358
+ isSignal: true,
359
+ isRequired: false,
360
+ transformFunction: null
361
+ },
362
+ responsive: {
363
+ classPropertyName: "responsive",
364
+ publicName: "responsive",
365
+ isSignal: true,
366
+ isRequired: false,
367
+ transformFunction: null
368
+ },
369
+ redraw: {
370
+ classPropertyName: "redraw",
371
+ publicName: "redraw",
372
+ isSignal: true,
373
+ isRequired: false,
374
+ transformFunction: null
375
+ },
376
+ ariaLabel: {
377
+ classPropertyName: "ariaLabel",
378
+ publicName: "ariaLabel",
379
+ isSignal: true,
380
+ isRequired: false,
381
+ transformFunction: null
382
+ },
383
+ ariaDescription: {
384
+ classPropertyName: "ariaDescription",
385
+ publicName: "ariaDescription",
386
+ isSignal: true,
387
+ isRequired: false,
388
+ transformFunction: null
389
+ },
390
+ emptyMessage: {
391
+ classPropertyName: "emptyMessage",
392
+ publicName: "emptyMessage",
393
+ isSignal: true,
394
+ isRequired: false,
395
+ transformFunction: null
396
+ }
397
+ },
398
+ outputs: {
399
+ chartReady: "chartReady",
400
+ chartError: "chartError"
401
+ },
402
+ host: {
403
+ properties: {
404
+ "attr.data-chart-type": "type()",
405
+ "attr.data-responsive": "responsive() || null"
406
+ },
407
+ classAttribute: "aeris-chart"
408
+ },
409
+ viewQueries: [{
410
+ propertyName: "canvas",
411
+ first: true,
412
+ predicate: ["canvas"],
413
+ descendants: true,
414
+ isSignal: true
415
+ }],
416
+ ngImport: i0,
417
+ template: `
243
418
  <div class="aeris-chart__canvas-wrap" [style.block-size]="height()">
244
419
  <canvas
245
420
  #canvas
246
421
  class="aeris-chart__canvas"
247
422
  role="img"
248
423
  [attr.aria-label]="resolvedAriaLabel()"
249
- [attr.aria-describedby]="ariaDescription() ? descriptionId() : null"
424
+ [attr.aria-describedby]="describedBy()"
250
425
  [attr.aria-hidden]="hasData() ? null : 'true'"
251
426
  ></canvas>
252
427
  @if (!hasData()) {
@@ -256,19 +431,29 @@ class AerisChart {
256
431
  @if (ariaDescription()) {
257
432
  <p class="aeris-chart__description" [id]="descriptionId()">{{ ariaDescription() }}</p>
258
433
  }
259
- <p class="aeris-chart__summary">{{ accessibleSummary() }}</p>
260
- `, isInline: true, styles: [":host{display:block;min-inline-size:0;color:var(--aeris-chart-color, var(--aeris-text, #222222))}.aeris-chart__canvas-wrap{position:relative;box-sizing:border-box;min-block-size:var(--aeris-chart-min-height, 12rem);inline-size:100%;min-inline-size:0;padding:var(--aeris-chart-padding, 1rem);overflow:hidden;border:1px solid var(--aeris-chart-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-chart-radius, var(--aeris-radius-lg, .875rem));background:var(--aeris-chart-background, var(--aeris-surface, #fff))}.aeris-chart__canvas{display:block;inline-size:100%!important;block-size:100%!important}.aeris-chart__canvas:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 26%,transparent);outline-offset:-3px}.aeris-chart__empty{position:absolute;inset:0;display:grid;place-items:center;padding:1rem;color:var(--aeris-chart-empty-color, var(--aeris-text-muted, #6d7068));font-size:.875rem;font-weight:650;text-align:center}.aeris-chart__description,.aeris-chart__summary{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media(prefers-reduced-motion:reduce){.aeris-chart__canvas{transition:none!important}}\n"] });
261
- }
262
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisChart, decorators: [{
263
- type: Component,
264
- args: [{ selector: 'aeris-chart', template: `
434
+ <p class="aeris-chart__summary" [id]="summaryId">{{ accessibleSummary() }}</p>
435
+ `,
436
+ isInline: true,
437
+ styles: [":host{display:block;min-inline-size:0;color:var(--aeris-chart-color, var(--aeris-text, #111111))}.aeris-chart__canvas-wrap{position:relative;box-sizing:border-box;min-block-size:var(--aeris-chart-min-height, 12rem);inline-size:100%;min-inline-size:0;padding:var(--aeris-chart-padding, 1rem);overflow:hidden;border:1px solid var(--aeris-chart-border, var(--aeris-border));border-radius:var(--aeris-chart-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-chart-background, var(--aeris-surface, #fff))}.aeris-chart__canvas{display:block;inline-size:100%!important;block-size:100%!important}.aeris-chart__canvas:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid color-mix(in srgb,var(--aeris-focus, #111111) 26%,transparent);outline-offset:-3px}.aeris-chart__empty{position:absolute;inset:0;display:grid;place-items:center;padding:1rem;color:var(--aeris-chart-empty-color, var(--aeris-text-muted, #6d7068));font-size:var(--aeris-font-size-lg, .875rem);font-weight:var(--aeris-font-weight-bold, 700);text-align:center}.aeris-chart__description,.aeris-chart__summary{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media(prefers-reduced-motion:reduce){.aeris-chart__canvas{transition:none!important}}\n"]
438
+ });
439
+ };
440
+ i0.ɵɵngDeclareClassMetadata({
441
+ minVersion: "12.0.0",
442
+ version: "22.2.3",
443
+ ngImport: i0,
444
+ type: AerisChart,
445
+ decorators: [{
446
+ type: Component,
447
+ args: [{
448
+ selector: "aeris-chart",
449
+ template: `
265
450
  <div class="aeris-chart__canvas-wrap" [style.block-size]="height()">
266
451
  <canvas
267
452
  #canvas
268
453
  class="aeris-chart__canvas"
269
454
  role="img"
270
455
  [attr.aria-label]="resolvedAriaLabel()"
271
- [attr.aria-describedby]="ariaDescription() ? descriptionId() : null"
456
+ [attr.aria-describedby]="describedBy()"
272
457
  [attr.aria-hidden]="hasData() ? null : 'true'"
273
458
  ></canvas>
274
459
  @if (!hasData()) {
@@ -278,19 +463,166 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
278
463
  @if (ariaDescription()) {
279
464
  <p class="aeris-chart__description" [id]="descriptionId()">{{ ariaDescription() }}</p>
280
465
  }
281
- <p class="aeris-chart__summary">{{ accessibleSummary() }}</p>
282
- `, host: {
283
- class: 'aeris-chart',
284
- '[attr.data-chart-type]': 'type()',
285
- '[attr.data-responsive]': 'responsive() || null',
286
- }, styles: [":host{display:block;min-inline-size:0;color:var(--aeris-chart-color, var(--aeris-text, #222222))}.aeris-chart__canvas-wrap{position:relative;box-sizing:border-box;min-block-size:var(--aeris-chart-min-height, 12rem);inline-size:100%;min-inline-size:0;padding:var(--aeris-chart-padding, 1rem);overflow:hidden;border:1px solid var(--aeris-chart-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-chart-radius, var(--aeris-radius-lg, .875rem));background:var(--aeris-chart-background, var(--aeris-surface, #fff))}.aeris-chart__canvas{display:block;inline-size:100%!important;block-size:100%!important}.aeris-chart__canvas:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 26%,transparent);outline-offset:-3px}.aeris-chart__empty{position:absolute;inset:0;display:grid;place-items:center;padding:1rem;color:var(--aeris-chart-empty-color, var(--aeris-text-muted, #6d7068));font-size:.875rem;font-weight:650;text-align:center}.aeris-chart__description,.aeris-chart__summary{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media(prefers-reduced-motion:reduce){.aeris-chart__canvas{transition:none!important}}\n"] }]
287
- }], ctorParameters: () => [], propDecorators: { canvas: [{ type: i0.ViewChild, args: ['canvas', { isSignal: true }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], plugins: [{ type: i0.Input, args: [{ isSignal: true, alias: "plugins", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], responsive: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsive", required: false }] }], redraw: [{ type: i0.Input, args: [{ isSignal: true, alias: "redraw", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaDescription: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescription", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], chartReady: [{ type: i0.Output, args: ["chartReady"] }], chartError: [{ type: i0.Output, args: ["chartError"] }] } });
466
+ <p class="aeris-chart__summary" [id]="summaryId">{{ accessibleSummary() }}</p>
467
+ `,
468
+ host: {
469
+ class: "aeris-chart",
470
+ "[attr.data-chart-type]": "type()",
471
+ "[attr.data-responsive]": "responsive() || null"
472
+ },
473
+ styles: [":host{display:block;min-inline-size:0;color:var(--aeris-chart-color, var(--aeris-text, #111111))}.aeris-chart__canvas-wrap{position:relative;box-sizing:border-box;min-block-size:var(--aeris-chart-min-height, 12rem);inline-size:100%;min-inline-size:0;padding:var(--aeris-chart-padding, 1rem);overflow:hidden;border:1px solid var(--aeris-chart-border, var(--aeris-border));border-radius:var(--aeris-chart-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-chart-background, var(--aeris-surface, #fff))}.aeris-chart__canvas{display:block;inline-size:100%!important;block-size:100%!important}.aeris-chart__canvas:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid color-mix(in srgb,var(--aeris-focus, #111111) 26%,transparent);outline-offset:-3px}.aeris-chart__empty{position:absolute;inset:0;display:grid;place-items:center;padding:1rem;color:var(--aeris-chart-empty-color, var(--aeris-text-muted, #6d7068));font-size:var(--aeris-font-size-lg, .875rem);font-weight:var(--aeris-font-weight-bold, 700);text-align:center}.aeris-chart__description,.aeris-chart__summary{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media(prefers-reduced-motion:reduce){.aeris-chart__canvas{transition:none!important}}\n"]
474
+ }]
475
+ }],
476
+ ctorParameters: () => [],
477
+ propDecorators: {
478
+ canvas: [{
479
+ type: i0.ViewChild,
480
+ args: ["canvas", { isSignal: true }]
481
+ }],
482
+ type: [{
483
+ type: i0.Input,
484
+ args: [{
485
+ isSignal: true,
486
+ alias: "type",
487
+ required: false
488
+ }]
489
+ }],
490
+ data: [{
491
+ type: i0.Input,
492
+ args: [{
493
+ isSignal: true,
494
+ alias: "data",
495
+ required: false
496
+ }]
497
+ }],
498
+ options: [{
499
+ type: i0.Input,
500
+ args: [{
501
+ isSignal: true,
502
+ alias: "options",
503
+ required: false
504
+ }]
505
+ }],
506
+ plugins: [{
507
+ type: i0.Input,
508
+ args: [{
509
+ isSignal: true,
510
+ alias: "plugins",
511
+ required: false
512
+ }]
513
+ }],
514
+ height: [{
515
+ type: i0.Input,
516
+ args: [{
517
+ isSignal: true,
518
+ alias: "height",
519
+ required: false
520
+ }]
521
+ }],
522
+ responsive: [{
523
+ type: i0.Input,
524
+ args: [{
525
+ isSignal: true,
526
+ alias: "responsive",
527
+ required: false
528
+ }]
529
+ }],
530
+ redraw: [{
531
+ type: i0.Input,
532
+ args: [{
533
+ isSignal: true,
534
+ alias: "redraw",
535
+ required: false
536
+ }]
537
+ }],
538
+ ariaLabel: [{
539
+ type: i0.Input,
540
+ args: [{
541
+ isSignal: true,
542
+ alias: "ariaLabel",
543
+ required: false
544
+ }]
545
+ }],
546
+ ariaDescription: [{
547
+ type: i0.Input,
548
+ args: [{
549
+ isSignal: true,
550
+ alias: "ariaDescription",
551
+ required: false
552
+ }]
553
+ }],
554
+ emptyMessage: [{
555
+ type: i0.Input,
556
+ args: [{
557
+ isSignal: true,
558
+ alias: "emptyMessage",
559
+ required: false
560
+ }]
561
+ }],
562
+ chartReady: [{
563
+ type: i0.Output,
564
+ args: ["chartReady"]
565
+ }],
566
+ chartError: [{
567
+ type: i0.Output,
568
+ args: ["chartError"]
569
+ }]
570
+ }
571
+ });
288
572
  let nextChartId = 0;
289
573
  const AerisChartModule = [AerisChart];
574
+ function createAerisChartAreaFill(fillColor, opacity = .24) {
575
+ const alpha = Number.isFinite(opacity) ? Math.max(0, Math.min(1, opacity)) : .24;
576
+ const parsed = color(fillColor);
577
+ const topColor = parsed.valid ? parsed.alpha(alpha).rgbString() : "transparent";
578
+ const bottomColor = parsed.valid ? parsed.alpha(0).rgbString() : "transparent";
579
+ const cache = /* @__PURE__ */ new WeakMap();
580
+ return ({ chart }) => {
581
+ const area = chart.chartArea;
582
+ if (!area || area.bottom <= area.top) return topColor;
583
+ const key = `${area.top}:${area.bottom}:${chart.currentDevicePixelRatio}`;
584
+ const existing = cache.get(chart);
585
+ if (existing?.key === key) return existing.gradient;
586
+ const gradient = chart.ctx.createLinearGradient(0, area.top, 0, area.bottom);
587
+ gradient.addColorStop(0, topColor);
588
+ gradient.addColorStop(1, bottomColor);
589
+ cache.set(chart, {
590
+ key,
591
+ gradient
592
+ });
593
+ return gradient;
594
+ };
595
+ }
596
+ function createAerisChartComparisonGuide(options = {}) {
597
+ const width = Number.isFinite(options.width) ? Math.max(0, options.width ?? 1) : 1;
598
+ const dash = (options.dash ?? [3, 4]).filter((value) => Number.isFinite(value) && value >= 0);
599
+ return {
600
+ id: "aeris-comparison-guide",
601
+ afterDatasetsDraw(chart) {
602
+ const active = chart.getActiveElements().find(({ datasetIndex }) => {
603
+ const type = chart.getDatasetMeta(datasetIndex).type;
604
+ return type === "line" || type === "bar" || type === "scatter" || type === "bubble";
605
+ });
606
+ const area = chart.chartArea;
607
+ const x = active?.element.x;
608
+ if (!area || x === void 0 || !Number.isFinite(x) || x < area.left || x > area.right || !width) return;
609
+ const ctx = chart.ctx;
610
+ const inheritedColor = chart.canvas.ownerDocument?.defaultView?.getComputedStyle(chart.canvas).getPropertyValue("--aeris-text-3").trim();
611
+ ctx.save();
612
+ ctx.beginPath();
613
+ ctx.rect(area.left, area.top, area.right - area.left, area.bottom - area.top);
614
+ ctx.clip();
615
+ ctx.setLineDash(dash);
616
+ ctx.lineWidth = width;
617
+ ctx.strokeStyle = options.color ?? (inheritedColor || "#777777");
618
+ ctx.beginPath();
619
+ ctx.moveTo(x, area.top);
620
+ ctx.lineTo(x, area.bottom);
621
+ ctx.stroke();
622
+ ctx.restore();
623
+ }
624
+ };
625
+ }
626
+ export { AERIS_CHART_FACTORY, AerisChart, AerisChartModule, createAerisChartAreaFill, createAerisChartComparisonGuide };
290
627
 
291
- /**
292
- * Generated bundle index. Do not edit.
293
- */
294
-
295
- export { AERIS_CHART_FACTORY, AerisChart, AerisChartModule };
296
- //# sourceMappingURL=aeris-ui-core-chart.mjs.map
628
+ //# sourceMappingURL=aeris-ui-core-chart.mjs.map