@aeris-ui/core 22.0.0-alpha.8 → 22.0.0-alpha.9

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 (257) hide show
  1. package/README.md +2 -2
  2. package/fesm2022/aeris-ui-core-accordion.mjs +646 -255
  3. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  4. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs +1171 -428
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  8. package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
  10. package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
  11. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  12. package/fesm2022/aeris-ui-core-badge.mjs +562 -115
  13. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  14. package/fesm2022/aeris-ui-core-block-ui.mjs +205 -101
  15. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  16. package/fesm2022/aeris-ui-core-breadcrumb.mjs +547 -177
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  18. package/fesm2022/aeris-ui-core-button-group.mjs +153 -38
  19. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  20. package/fesm2022/aeris-ui-core-button.mjs +730 -110
  21. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  22. package/fesm2022/aeris-ui-core-card.mjs +371 -101
  23. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-carousel.mjs +690 -353
  25. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-cascade-select.mjs +915 -423
  27. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-chart.mjs +455 -258
  29. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-checkbox.mjs +432 -135
  31. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-chip.mjs +430 -117
  33. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  34. package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
  35. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
  36. package/fesm2022/aeris-ui-core-color-picker.mjs +1313 -683
  37. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  38. package/fesm2022/aeris-ui-core-compare.mjs +819 -310
  39. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  40. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1392 -551
  41. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  42. package/fesm2022/aeris-ui-core-confirm-popup.mjs +1447 -744
  43. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  44. package/fesm2022/aeris-ui-core-context-menu.mjs +900 -450
  45. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  46. package/fesm2022/aeris-ui-core-date-picker.mjs +1656 -863
  47. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  48. package/fesm2022/aeris-ui-core-dialog.mjs +1066 -355
  49. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  50. package/fesm2022/aeris-ui-core-divider.mjs +204 -43
  51. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  52. package/fesm2022/aeris-ui-core-drawer.mjs +1002 -326
  53. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  54. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +402 -249
  55. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-editor.mjs +934 -572
  57. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-file-upload.mjs +1313 -511
  59. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
  61. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
  63. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
  65. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-form-field.mjs +672 -170
  67. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -1
  68. package/fesm2022/aeris-ui-core-galleria.mjs +1987 -797
  69. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  70. package/fesm2022/aeris-ui-core-glass.mjs +110 -33
  71. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  72. package/fesm2022/aeris-ui-core-icon-field.mjs +426 -106
  73. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-inplace.mjs +452 -130
  75. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-input-group.mjs +413 -114
  77. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  78. package/fesm2022/aeris-ui-core-input-mask.mjs +650 -248
  79. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  80. package/fesm2022/aeris-ui-core-input-number.mjs +902 -334
  81. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  82. package/fesm2022/aeris-ui-core-input-otp.mjs +667 -253
  83. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  84. package/fesm2022/aeris-ui-core-input-text.mjs +618 -152
  85. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  86. package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
  87. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  88. package/fesm2022/aeris-ui-core-mega-menu.mjs +601 -388
  89. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  90. package/fesm2022/aeris-ui-core-menu.mjs +1032 -495
  91. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-menubar.mjs +960 -491
  93. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-message.mjs +477 -145
  95. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-meter-group.mjs +587 -196
  97. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-multi-select.mjs +1550 -552
  99. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-order-list.mjs +518 -202
  101. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  102. package/fesm2022/aeris-ui-core-organization-chart.mjs +455 -177
  103. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-paginator.mjs +329 -127
  105. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-panel.mjs +596 -196
  107. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-password.mjs +894 -247
  109. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-pick-list.mjs +1280 -659
  111. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  112. package/fesm2022/aeris-ui-core-popover.mjs +892 -386
  113. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  114. package/fesm2022/aeris-ui-core-progress-bar.mjs +545 -177
  115. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  116. package/fesm2022/aeris-ui-core-progress-spinner.mjs +410 -133
  117. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  118. package/fesm2022/aeris-ui-core-radio-button.mjs +386 -119
  119. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  120. package/fesm2022/aeris-ui-core-rating.mjs +502 -225
  121. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
  123. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-scroll-top.mjs +204 -63
  125. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  126. package/fesm2022/aeris-ui-core-select.mjs +1794 -643
  127. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  128. package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
  129. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  130. package/fesm2022/aeris-ui-core-slider.mjs +868 -404
  131. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  132. package/fesm2022/aeris-ui-core-speed-dial.mjs +800 -329
  133. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  134. package/fesm2022/aeris-ui-core-split-button.mjs +880 -270
  135. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  136. package/fesm2022/aeris-ui-core-splitter.mjs +812 -352
  137. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  138. package/fesm2022/aeris-ui-core-stepper.mjs +697 -254
  139. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  140. package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
  141. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  142. package/fesm2022/aeris-ui-core-table.mjs +1984 -865
  143. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  144. package/fesm2022/aeris-ui-core-tabs.mjs +686 -324
  145. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  146. package/fesm2022/aeris-ui-core-textarea.mjs +846 -212
  147. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  148. package/fesm2022/aeris-ui-core-theme-builder.mjs +1256 -1423
  149. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  150. package/fesm2022/aeris-ui-core-theming.mjs +132 -147
  151. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  152. package/fesm2022/aeris-ui-core-tiered-menu.mjs +885 -465
  153. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  154. package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
  155. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  156. package/fesm2022/aeris-ui-core-toast.mjs +855 -615
  157. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  158. package/fesm2022/aeris-ui-core-toggle-switch.mjs +390 -127
  159. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  160. package/fesm2022/aeris-ui-core-toolbar.mjs +458 -121
  161. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  162. package/fesm2022/aeris-ui-core-tooltip.mjs +623 -345
  163. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  164. package/fesm2022/aeris-ui-core-tree-select.mjs +1356 -601
  165. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  166. package/fesm2022/aeris-ui-core-tree-table.mjs +2001 -942
  167. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  168. package/fesm2022/aeris-ui-core-tree.mjs +1103 -658
  169. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  170. package/fesm2022/aeris-ui-core.mjs +861 -842
  171. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  172. package/package.json +1 -1
  173. package/types/aeris-ui-core-accordion.d.ts +166 -93
  174. package/types/aeris-ui-core-animate-on-scroll.d.ts +71 -31
  175. package/types/aeris-ui-core-auto-complete.d.ts +326 -149
  176. package/types/aeris-ui-core-auto-focus.d.ts +24 -16
  177. package/types/aeris-ui-core-avatar.d.ts +112 -42
  178. package/types/aeris-ui-core-badge.d.ts +160 -47
  179. package/types/aeris-ui-core-block-ui.d.ts +47 -27
  180. package/types/aeris-ui-core-breadcrumb.d.ts +162 -92
  181. package/types/aeris-ui-core-button-group.d.ts +37 -16
  182. package/types/aeris-ui-core-button.d.ts +226 -64
  183. package/types/aeris-ui-core-card.d.ts +74 -37
  184. package/types/aeris-ui-core-carousel.d.ts +197 -117
  185. package/types/aeris-ui-core-cascade-select.d.ts +252 -131
  186. package/types/aeris-ui-core-chart.d.ts +134 -84
  187. package/types/aeris-ui-core-checkbox.d.ts +139 -55
  188. package/types/aeris-ui-core-chip.d.ts +116 -51
  189. package/types/aeris-ui-core-class-names.d.ts +22 -20
  190. package/types/aeris-ui-core-color-picker.d.ts +347 -150
  191. package/types/aeris-ui-core-compare.d.ts +224 -101
  192. package/types/aeris-ui-core-confirm-dialog.d.ts +441 -249
  193. package/types/aeris-ui-core-confirm-popup.d.ts +440 -268
  194. package/types/aeris-ui-core-context-menu.d.ts +262 -150
  195. package/types/aeris-ui-core-date-picker.d.ts +488 -226
  196. package/types/aeris-ui-core-dialog.d.ts +288 -121
  197. package/types/aeris-ui-core-divider.d.ts +58 -20
  198. package/types/aeris-ui-core-drawer.d.ts +273 -116
  199. package/types/aeris-ui-core-dynamic-dialog.d.ts +157 -140
  200. package/types/aeris-ui-core-editor.d.ts +243 -124
  201. package/types/aeris-ui-core-file-upload.d.ts +366 -197
  202. package/types/aeris-ui-core-filter-service.d.ts +48 -52
  203. package/types/aeris-ui-core-fluid.d.ts +12 -9
  204. package/types/aeris-ui-core-focus-trap.d.ts +39 -31
  205. package/types/aeris-ui-core-form-field.d.ts +158 -62
  206. package/types/aeris-ui-core-galleria.d.ts +589 -256
  207. package/types/aeris-ui-core-glass.d.ts +24 -11
  208. package/types/aeris-ui-core-icon-field.d.ts +94 -34
  209. package/types/aeris-ui-core-inplace.d.ts +123 -62
  210. package/types/aeris-ui-core-input-group.d.ts +84 -35
  211. package/types/aeris-ui-core-input-mask.d.ts +194 -71
  212. package/types/aeris-ui-core-input-number.d.ts +272 -90
  213. package/types/aeris-ui-core-input-otp.d.ts +190 -82
  214. package/types/aeris-ui-core-input-text.d.ts +185 -62
  215. package/types/aeris-ui-core-key-filter.d.ts +53 -39
  216. package/types/aeris-ui-core-mega-menu.d.ts +174 -123
  217. package/types/aeris-ui-core-menu.d.ts +275 -172
  218. package/types/aeris-ui-core-menubar.d.ts +272 -160
  219. package/types/aeris-ui-core-message.d.ts +132 -61
  220. package/types/aeris-ui-core-meter-group.d.ts +162 -90
  221. package/types/aeris-ui-core-multi-select.d.ts +435 -187
  222. package/types/aeris-ui-core-order-list.d.ts +143 -66
  223. package/types/aeris-ui-core-organization-chart.d.ts +132 -77
  224. package/types/aeris-ui-core-paginator.d.ts +92 -46
  225. package/types/aeris-ui-core-panel.d.ts +149 -78
  226. package/types/aeris-ui-core-password.d.ts +257 -108
  227. package/types/aeris-ui-core-pick-list.d.ts +373 -179
  228. package/types/aeris-ui-core-popover.d.ts +218 -107
  229. package/types/aeris-ui-core-progress-bar.d.ts +156 -74
  230. package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
  231. package/types/aeris-ui-core-radio-button.d.ts +124 -51
  232. package/types/aeris-ui-core-rating.d.ts +149 -76
  233. package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
  234. package/types/aeris-ui-core-scroll-top.d.ts +64 -29
  235. package/types/aeris-ui-core-select.d.ts +474 -226
  236. package/types/aeris-ui-core-skeleton.d.ts +39 -17
  237. package/types/aeris-ui-core-slider.d.ts +270 -116
  238. package/types/aeris-ui-core-speed-dial.d.ts +240 -112
  239. package/types/aeris-ui-core-split-button.d.ts +264 -121
  240. package/types/aeris-ui-core-splitter.d.ts +224 -106
  241. package/types/aeris-ui-core-stepper.d.ts +183 -91
  242. package/types/aeris-ui-core-style-class.d.ts +141 -71
  243. package/types/aeris-ui-core-table.d.ts +595 -308
  244. package/types/aeris-ui-core-tabs.d.ts +163 -90
  245. package/types/aeris-ui-core-textarea.d.ts +261 -81
  246. package/types/aeris-ui-core-theme-builder.d.ts +463 -475
  247. package/types/aeris-ui-core-theming.d.ts +42 -49
  248. package/types/aeris-ui-core-tiered-menu.d.ts +249 -147
  249. package/types/aeris-ui-core-timeline.d.ts +108 -71
  250. package/types/aeris-ui-core-toast.d.ts +219 -155
  251. package/types/aeris-ui-core-toggle-switch.d.ts +125 -52
  252. package/types/aeris-ui-core-toolbar.d.ts +98 -41
  253. package/types/aeris-ui-core-tooltip.d.ts +157 -92
  254. package/types/aeris-ui-core-tree-select.d.ts +359 -179
  255. package/types/aeris-ui-core-tree-table.d.ts +565 -290
  256. package/types/aeris-ui-core-tree.d.ts +269 -165
  257. package/types/aeris-ui-core.d.ts +161 -125
@@ -1,245 +1,337 @@
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 { Chart, registerables } from "chart.js";
5
+ const AERIS_CHART_FACTORY = new InjectionToken("AERIS_CHART_FACTORY", { factory: () => (canvas, configuration) => new Chart(canvas, configuration) });
13
6
  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.1.6", ngImport: i0, type: AerisChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
242
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.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: `
7
+ var AerisChart = class AerisChart {
8
+ platformId = inject(PLATFORM_ID);
9
+ document = inject(DOCUMENT);
10
+ host = inject(ElementRef);
11
+ chartFactory = inject(AERIS_CHART_FACTORY);
12
+ destroyRef = inject(DestroyRef);
13
+ canvas = viewChild("canvas", ...ngDevMode ? [{ debugName: "canvas" }] : /* istanbul ignore next */ []);
14
+ ready = signal(false, ...ngDevMode ? [{ debugName: "ready" }] : /* istanbul ignore next */ []);
15
+ chartId = `aeris-chart-${++nextChartId}`;
16
+ browser = isPlatformBrowser(this.platformId);
17
+ themeObserver = this.createThemeObserver();
18
+ chart = null;
19
+ renderedType = null;
20
+ renderedPlugins = null;
21
+ type = input("bar", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
22
+ data = input(null, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
23
+ options = input(null, ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
24
+ plugins = input([], ...ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []);
25
+ height = input("20rem", ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
26
+ responsive = input(true, {
27
+ ...ngDevMode ? { debugName: "responsive" } : /* istanbul ignore next */ {},
28
+ transform: booleanAttribute
29
+ });
30
+ redraw = input(false, {
31
+ ...ngDevMode ? { debugName: "redraw" } : /* istanbul ignore next */ {},
32
+ transform: booleanAttribute
33
+ });
34
+ ariaLabel = input("Chart", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
35
+ ariaDescription = input("", ...ngDevMode ? [{ debugName: "ariaDescription" }] : /* istanbul ignore next */ []);
36
+ emptyMessage = input("No chart data available", ...ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []);
37
+ chartReady = output();
38
+ chartError = output();
39
+ hasData = computed(() => Boolean(this.data()?.datasets.length), ...ngDevMode ? [{ debugName: "hasData" }] : /* istanbul ignore next */ []);
40
+ descriptionId = computed(() => `${this.chartId}-description`, ...ngDevMode ? [{ debugName: "descriptionId" }] : /* istanbul ignore next */ []);
41
+ resolvedAriaLabel = computed(() => this.ariaLabel() || "Chart", ...ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []);
42
+ accessibleSummary = computed(() => this.chartSummary(this.data()), ...ngDevMode ? [{ debugName: "accessibleSummary" }] : /* istanbul ignore next */ []);
43
+ constructor() {
44
+ this.destroyRef.onDestroy(() => {
45
+ this.themeObserver?.disconnect();
46
+ this.destroyChart();
47
+ });
48
+ afterNextRender(() => {
49
+ if (this.browser) this.setReady();
50
+ });
51
+ effect((onCleanup) => {
52
+ const canvas = this.canvas()?.nativeElement;
53
+ const ready = this.isReady();
54
+ const data = this.data();
55
+ const type = this.type();
56
+ const options = this.options();
57
+ const plugins = this.plugins();
58
+ const responsive = this.responsive();
59
+ const redraw = this.redraw();
60
+ if (!ready || !canvas || !data?.datasets.length) {
61
+ this.destroyChart();
62
+ return;
63
+ }
64
+ this.renderChart(canvas, type, data, options, plugins, responsive, redraw);
65
+ onCleanup(() => void 0);
66
+ });
67
+ }
68
+ refresh() {
69
+ const canvas = this.canvas()?.nativeElement;
70
+ const data = this.data();
71
+ if (!canvas || !data?.datasets.length || !this.isReady()) return;
72
+ this.renderChart(canvas, this.type(), data, this.options(), this.plugins(), this.responsive(), this.redraw());
73
+ }
74
+ resize(width, height) {
75
+ this.chart?.resize(width, height);
76
+ }
77
+ reset() {
78
+ this.chart?.reset();
79
+ }
80
+ toBase64Image(type, quality) {
81
+ return this.chart?.toBase64Image(type, quality) ?? null;
82
+ }
83
+ setReady() {
84
+ this.ready.set(true);
85
+ }
86
+ isReady() {
87
+ return this.ready();
88
+ }
89
+ renderChart(canvas, type, data, options, plugins, responsive, redraw) {
90
+ try {
91
+ const configuration = this.configuration(type, data, options, plugins, responsive);
92
+ if (!this.chart || this.renderedType !== type || this.renderedPlugins !== plugins || redraw) {
93
+ this.destroyChart();
94
+ this.registerChartJs();
95
+ this.chart = this.chartFactory(canvas, configuration);
96
+ this.renderedType = type;
97
+ this.renderedPlugins = plugins;
98
+ this.chartReady.emit({ chart: this.chart });
99
+ return;
100
+ }
101
+ this.chart.data = configuration.data;
102
+ this.chart.options = configuration.options;
103
+ this.chart.update();
104
+ } catch (error) {
105
+ this.destroyChart();
106
+ this.chartError.emit({ error });
107
+ }
108
+ }
109
+ configuration(type, data, options, plugins, responsive) {
110
+ return {
111
+ type,
112
+ data: this.copyData(data),
113
+ options: this.themedOptions(options, responsive),
114
+ plugins: [...plugins]
115
+ };
116
+ }
117
+ copyData(data) {
118
+ return {
119
+ ...data,
120
+ labels: data.labels ? [...data.labels] : [],
121
+ datasets: data.datasets.map((dataset) => ({ ...dataset }))
122
+ };
123
+ }
124
+ themedOptions(options, responsive) {
125
+ const source = options ?? {};
126
+ const style = getComputedStyle(this.host.nativeElement);
127
+ const text = style.getPropertyValue("--aeris-text").trim() || "#222222";
128
+ const muted = style.getPropertyValue("--aeris-text-muted").trim() || "#6d7068";
129
+ const border = style.getPropertyValue("--aeris-border").trim() || "#deddd7";
130
+ const surface = style.getPropertyValue("--aeris-surface").trim() || "#ffffff";
131
+ const scales = Object.fromEntries(Object.entries(source.scales ?? {}).map(([key, scale]) => {
132
+ const sourceScale = scale ?? {};
133
+ return [key, {
134
+ ...sourceScale,
135
+ grid: {
136
+ color: border,
137
+ ...this.objectValue(sourceScale["grid"])
138
+ },
139
+ ticks: {
140
+ color: muted,
141
+ ...this.objectValue(sourceScale["ticks"])
142
+ },
143
+ border: {
144
+ color: border,
145
+ ...this.objectValue(sourceScale["border"])
146
+ },
147
+ title: {
148
+ color: text,
149
+ ...this.objectValue(sourceScale["title"])
150
+ }
151
+ }];
152
+ }));
153
+ return {
154
+ ...source,
155
+ responsive,
156
+ color: source.color ?? text,
157
+ plugins: {
158
+ ...source.plugins,
159
+ legend: {
160
+ ...source.plugins?.legend,
161
+ labels: {
162
+ color: muted,
163
+ ...source.plugins?.legend?.labels
164
+ }
165
+ },
166
+ tooltip: {
167
+ ...source.plugins?.tooltip,
168
+ backgroundColor: source.plugins?.tooltip?.backgroundColor ?? surface,
169
+ titleColor: source.plugins?.tooltip?.titleColor ?? text,
170
+ bodyColor: source.plugins?.tooltip?.bodyColor ?? muted,
171
+ borderColor: source.plugins?.tooltip?.borderColor ?? border,
172
+ borderWidth: source.plugins?.tooltip?.borderWidth ?? 1
173
+ }
174
+ },
175
+ scales
176
+ };
177
+ }
178
+ registerChartJs() {
179
+ if (chartJsRegistered) return;
180
+ Chart.register(...registerables);
181
+ chartJsRegistered = true;
182
+ }
183
+ destroyChart() {
184
+ this.chart?.destroy();
185
+ this.chart = null;
186
+ this.renderedType = null;
187
+ this.renderedPlugins = null;
188
+ }
189
+ createThemeObserver() {
190
+ if (!this.browser || typeof MutationObserver === "undefined") return null;
191
+ const observer = new MutationObserver(() => this.refresh());
192
+ observer.observe(this.document.documentElement, {
193
+ attributes: true,
194
+ attributeFilter: [
195
+ "class",
196
+ "data-theme",
197
+ "data-palette",
198
+ "style"
199
+ ]
200
+ });
201
+ return observer;
202
+ }
203
+ chartSummary(data) {
204
+ if (!data?.datasets.length) return this.emptyMessage();
205
+ const labels = (data.labels ?? []).map((label) => String(label));
206
+ const datasets = data.datasets.map((dataset, index) => {
207
+ return `${dataset.label || `Dataset ${index + 1}`}: ${dataset.data.map((value) => this.valueText(value)).join(", ")}`;
208
+ });
209
+ return [labels.length ? `Labels: ${labels.join(", ")}.` : "", ...datasets].filter(Boolean).join(" ");
210
+ }
211
+ valueText(value) {
212
+ if (typeof value === "number" || typeof value === "string") return String(value);
213
+ if (value && typeof value === "object") {
214
+ const point = value;
215
+ const x = point["x"];
216
+ const y = point["y"];
217
+ const r = point["r"];
218
+ return [
219
+ x !== void 0 ? `x ${x}` : "",
220
+ y !== void 0 ? `y ${y}` : "",
221
+ r !== void 0 ? `r ${r}` : ""
222
+ ].filter(Boolean).join(", ");
223
+ }
224
+ return String(value);
225
+ }
226
+ objectValue(value) {
227
+ return value && typeof value === "object" ? value : {};
228
+ }
229
+ static ɵfac = i0.ɵɵngDeclareFactory({
230
+ minVersion: "12.0.0",
231
+ version: "22.2.1",
232
+ ngImport: i0,
233
+ type: AerisChart,
234
+ deps: [],
235
+ target: i0.ɵɵFactoryTarget.Component
236
+ });
237
+ static ɵcmp = i0.ɵɵngDeclareComponent({
238
+ minVersion: "17.0.0",
239
+ version: "22.2.1",
240
+ type: AerisChart,
241
+ isStandalone: true,
242
+ selector: "aeris-chart",
243
+ inputs: {
244
+ type: {
245
+ classPropertyName: "type",
246
+ publicName: "type",
247
+ isSignal: true,
248
+ isRequired: false,
249
+ transformFunction: null
250
+ },
251
+ data: {
252
+ classPropertyName: "data",
253
+ publicName: "data",
254
+ isSignal: true,
255
+ isRequired: false,
256
+ transformFunction: null
257
+ },
258
+ options: {
259
+ classPropertyName: "options",
260
+ publicName: "options",
261
+ isSignal: true,
262
+ isRequired: false,
263
+ transformFunction: null
264
+ },
265
+ plugins: {
266
+ classPropertyName: "plugins",
267
+ publicName: "plugins",
268
+ isSignal: true,
269
+ isRequired: false,
270
+ transformFunction: null
271
+ },
272
+ height: {
273
+ classPropertyName: "height",
274
+ publicName: "height",
275
+ isSignal: true,
276
+ isRequired: false,
277
+ transformFunction: null
278
+ },
279
+ responsive: {
280
+ classPropertyName: "responsive",
281
+ publicName: "responsive",
282
+ isSignal: true,
283
+ isRequired: false,
284
+ transformFunction: null
285
+ },
286
+ redraw: {
287
+ classPropertyName: "redraw",
288
+ publicName: "redraw",
289
+ isSignal: true,
290
+ isRequired: false,
291
+ transformFunction: null
292
+ },
293
+ ariaLabel: {
294
+ classPropertyName: "ariaLabel",
295
+ publicName: "ariaLabel",
296
+ isSignal: true,
297
+ isRequired: false,
298
+ transformFunction: null
299
+ },
300
+ ariaDescription: {
301
+ classPropertyName: "ariaDescription",
302
+ publicName: "ariaDescription",
303
+ isSignal: true,
304
+ isRequired: false,
305
+ transformFunction: null
306
+ },
307
+ emptyMessage: {
308
+ classPropertyName: "emptyMessage",
309
+ publicName: "emptyMessage",
310
+ isSignal: true,
311
+ isRequired: false,
312
+ transformFunction: null
313
+ }
314
+ },
315
+ outputs: {
316
+ chartReady: "chartReady",
317
+ chartError: "chartError"
318
+ },
319
+ host: {
320
+ properties: {
321
+ "attr.data-chart-type": "type()",
322
+ "attr.data-responsive": "responsive() || null"
323
+ },
324
+ classAttribute: "aeris-chart"
325
+ },
326
+ viewQueries: [{
327
+ propertyName: "canvas",
328
+ first: true,
329
+ predicate: ["canvas"],
330
+ descendants: true,
331
+ isSignal: true
332
+ }],
333
+ ngImport: i0,
334
+ template: `
243
335
  <div class="aeris-chart__canvas-wrap" [style.block-size]="height()">
244
336
  <canvas
245
337
  #canvas
@@ -257,11 +349,21 @@ class AerisChart {
257
349
  <p class="aeris-chart__description" [id]="descriptionId()">{{ ariaDescription() }}</p>
258
350
  }
259
351
  <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));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:3px solid color-mix(in srgb,var(--aeris-focus, #2c432c) 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.1.6", ngImport: i0, type: AerisChart, decorators: [{
263
- type: Component,
264
- args: [{ selector: 'aeris-chart', template: `
352
+ `,
353
+ isInline: true,
354
+ 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));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:3px solid color-mix(in srgb,var(--aeris-focus, #2c432c) 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"]
355
+ });
356
+ };
357
+ i0.ɵɵngDeclareClassMetadata({
358
+ minVersion: "12.0.0",
359
+ version: "22.2.1",
360
+ ngImport: i0,
361
+ type: AerisChart,
362
+ decorators: [{
363
+ type: Component,
364
+ args: [{
365
+ selector: "aeris-chart",
366
+ template: `
265
367
  <div class="aeris-chart__canvas-wrap" [style.block-size]="height()">
266
368
  <canvas
267
369
  #canvas
@@ -279,18 +381,113 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
279
381
  <p class="aeris-chart__description" [id]="descriptionId()">{{ ariaDescription() }}</p>
280
382
  }
281
383
  <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));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:3px solid color-mix(in srgb,var(--aeris-focus, #2c432c) 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"] }] } });
384
+ `,
385
+ host: {
386
+ class: "aeris-chart",
387
+ "[attr.data-chart-type]": "type()",
388
+ "[attr.data-responsive]": "responsive() || null"
389
+ },
390
+ 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));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:3px solid color-mix(in srgb,var(--aeris-focus, #2c432c) 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"]
391
+ }]
392
+ }],
393
+ ctorParameters: () => [],
394
+ propDecorators: {
395
+ canvas: [{
396
+ type: i0.ViewChild,
397
+ args: ["canvas", { isSignal: true }]
398
+ }],
399
+ type: [{
400
+ type: i0.Input,
401
+ args: [{
402
+ isSignal: true,
403
+ alias: "type",
404
+ required: false
405
+ }]
406
+ }],
407
+ data: [{
408
+ type: i0.Input,
409
+ args: [{
410
+ isSignal: true,
411
+ alias: "data",
412
+ required: false
413
+ }]
414
+ }],
415
+ options: [{
416
+ type: i0.Input,
417
+ args: [{
418
+ isSignal: true,
419
+ alias: "options",
420
+ required: false
421
+ }]
422
+ }],
423
+ plugins: [{
424
+ type: i0.Input,
425
+ args: [{
426
+ isSignal: true,
427
+ alias: "plugins",
428
+ required: false
429
+ }]
430
+ }],
431
+ height: [{
432
+ type: i0.Input,
433
+ args: [{
434
+ isSignal: true,
435
+ alias: "height",
436
+ required: false
437
+ }]
438
+ }],
439
+ responsive: [{
440
+ type: i0.Input,
441
+ args: [{
442
+ isSignal: true,
443
+ alias: "responsive",
444
+ required: false
445
+ }]
446
+ }],
447
+ redraw: [{
448
+ type: i0.Input,
449
+ args: [{
450
+ isSignal: true,
451
+ alias: "redraw",
452
+ required: false
453
+ }]
454
+ }],
455
+ ariaLabel: [{
456
+ type: i0.Input,
457
+ args: [{
458
+ isSignal: true,
459
+ alias: "ariaLabel",
460
+ required: false
461
+ }]
462
+ }],
463
+ ariaDescription: [{
464
+ type: i0.Input,
465
+ args: [{
466
+ isSignal: true,
467
+ alias: "ariaDescription",
468
+ required: false
469
+ }]
470
+ }],
471
+ emptyMessage: [{
472
+ type: i0.Input,
473
+ args: [{
474
+ isSignal: true,
475
+ alias: "emptyMessage",
476
+ required: false
477
+ }]
478
+ }],
479
+ chartReady: [{
480
+ type: i0.Output,
481
+ args: ["chartReady"]
482
+ }],
483
+ chartError: [{
484
+ type: i0.Output,
485
+ args: ["chartError"]
486
+ }]
487
+ }
488
+ });
288
489
  let nextChartId = 0;
289
490
  const AerisChartModule = [AerisChart];
290
-
291
- /**
292
- * Generated bundle index. Do not edit.
293
- */
294
-
295
491
  export { AERIS_CHART_FACTORY, AerisChart, AerisChartModule };
296
- //# sourceMappingURL=aeris-ui-core-chart.mjs.map
492
+
493
+ //# sourceMappingURL=aeris-ui-core-chart.mjs.map