@exhaustive-ui/mcp 22.4.0 → 22.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/README.md +13 -1
  2. package/data/cards/accordion.md +91 -0
  3. package/data/cards/animateonscroll.md +155 -0
  4. package/data/cards/autocomplete.md +109 -0
  5. package/data/cards/autofocus.md +36 -0
  6. package/data/cards/avatar.md +45 -0
  7. package/data/cards/badge.md +44 -0
  8. package/data/cards/blockui.md +51 -0
  9. package/data/cards/breadcrumb.md +56 -0
  10. package/data/cards/button.md +83 -0
  11. package/data/cards/card.md +49 -0
  12. package/data/cards/carousel.md +101 -0
  13. package/data/cards/cascadeselect.md +77 -0
  14. package/data/cards/chart.md +105 -0
  15. package/data/cards/checkbox.md +59 -0
  16. package/data/cards/chip.md +50 -0
  17. package/data/cards/classnames.md +91 -0
  18. package/data/cards/colorpicker.md +52 -0
  19. package/data/cards/confirmdialog.md +119 -0
  20. package/data/cards/confirmpopup.md +96 -0
  21. package/data/cards/contextmenu.md +60 -0
  22. package/data/cards/dataview.md +134 -0
  23. package/data/cards/datepicker.md +103 -0
  24. package/data/cards/dialog.md +89 -0
  25. package/data/cards/divider.md +55 -0
  26. package/data/cards/dock.md +106 -0
  27. package/data/cards/dragdrop.md +106 -0
  28. package/data/cards/drawer.md +62 -0
  29. package/data/cards/dynamicdialog.md +103 -0
  30. package/data/cards/editor.md +55 -0
  31. package/data/cards/fieldset.md +54 -0
  32. package/data/cards/fileinput.md +72 -0
  33. package/data/cards/fileupload.md +88 -0
  34. package/data/cards/floatlabel.md +41 -0
  35. package/data/cards/fluid.md +49 -0
  36. package/data/cards/focustrap.md +64 -0
  37. package/data/cards/galleria.md +94 -0
  38. package/data/cards/iconfield.md +45 -0
  39. package/data/cards/iftalabel.md +38 -0
  40. package/data/cards/image.md +58 -0
  41. package/data/cards/imagecompare.md +45 -0
  42. package/data/cards/inplace.md +56 -0
  43. package/data/cards/inputgroup.md +77 -0
  44. package/data/cards/inputmask.md +71 -0
  45. package/data/cards/inputnumber.md +78 -0
  46. package/data/cards/inputotp.md +60 -0
  47. package/data/cards/inputtext.md +41 -0
  48. package/data/cards/keyfilter.md +49 -0
  49. package/data/cards/knob.md +55 -0
  50. package/data/cards/listbox.md +105 -0
  51. package/data/cards/megamenu.md +96 -0
  52. package/data/cards/menu.md +64 -0
  53. package/data/cards/menubar.md +102 -0
  54. package/data/cards/message.md +51 -0
  55. package/data/cards/metergroup.md +53 -0
  56. package/data/cards/multiselect.md +115 -0
  57. package/data/cards/orderlist.md +96 -0
  58. package/data/cards/organizationchart.md +84 -0
  59. package/data/cards/overlay.md +63 -0
  60. package/data/cards/paginator.md +62 -0
  61. package/data/cards/panel.md +57 -0
  62. package/data/cards/panelmenu.md +94 -0
  63. package/data/cards/password.md +81 -0
  64. package/data/cards/picklist.md +106 -0
  65. package/data/cards/popover.md +53 -0
  66. package/data/cards/progressbar.md +42 -0
  67. package/data/cards/progressspinner.md +38 -0
  68. package/data/cards/radiobutton.md +52 -0
  69. package/data/cards/rating.md +56 -0
  70. package/data/cards/ripple.md +37 -0
  71. package/data/cards/scroller.md +32 -0
  72. package/data/cards/scrollpanel.md +50 -0
  73. package/data/cards/scrolltop.md +48 -0
  74. package/data/cards/select.md +108 -0
  75. package/data/cards/selectbutton.md +64 -0
  76. package/data/cards/skeleton.md +54 -0
  77. package/data/cards/slider.md +52 -0
  78. package/data/cards/speeddial.md +102 -0
  79. package/data/cards/splitbutton.md +96 -0
  80. package/data/cards/splitter.md +52 -0
  81. package/data/cards/stepper.md +125 -0
  82. package/data/cards/styleclass.md +46 -0
  83. package/data/cards/table.md +305 -0
  84. package/data/cards/tabs.md +97 -0
  85. package/data/cards/tag.md +41 -0
  86. package/data/cards/terminal.md +76 -0
  87. package/data/cards/textarea.md +45 -0
  88. package/data/cards/tieredmenu.md +121 -0
  89. package/data/cards/timeline.md +58 -0
  90. package/data/cards/toast.md +58 -0
  91. package/data/cards/togglebutton.md +59 -0
  92. package/data/cards/toggleswitch.md +52 -0
  93. package/data/cards/toolbar.md +74 -0
  94. package/data/cards/tooltip.md +43 -0
  95. package/data/cards/tree.md +93 -0
  96. package/data/cards/treeselect.md +98 -0
  97. package/data/cards/treetable.md +231 -0
  98. package/data/components/accordion.md +31 -23
  99. package/data/components/animateonscroll.md +18 -15
  100. package/data/components/autocomplete.md +162 -93
  101. package/data/components/autofocus.md +9 -7
  102. package/data/components/avatar.md +56 -43
  103. package/data/components/badge.md +27 -18
  104. package/data/components/blockui.md +15 -8
  105. package/data/components/breadcrumb.md +20 -14
  106. package/data/components/button.md +121 -94
  107. package/data/components/card.md +12 -10
  108. package/data/components/carousel.md +75 -53
  109. package/data/components/cascadeselect.md +271 -238
  110. package/data/components/chart.md +88 -74
  111. package/data/components/checkbox.md +107 -97
  112. package/data/components/chip.md +20 -16
  113. package/data/components/classnames.md +22 -4
  114. package/data/components/colorpicker.md +54 -36
  115. package/data/components/confirmdialog.md +146 -43
  116. package/data/components/confirmpopup.md +95 -22
  117. package/data/components/contextmenu.md +110 -39
  118. package/data/components/dataview.md +176 -83
  119. package/data/components/datepicker.md +171 -141
  120. package/data/components/dialog.md +80 -68
  121. package/data/components/divider.md +17 -12
  122. package/data/components/dock.md +65 -29
  123. package/data/components/dragdrop.md +26 -12
  124. package/data/components/drawer.md +67 -48
  125. package/data/components/dynamicdialog.md +22 -13
  126. package/data/components/editor.md +42 -33
  127. package/data/components/fieldset.md +20 -17
  128. package/data/components/fileinput.md +92 -35
  129. package/data/components/fileupload.md +101 -61
  130. package/data/components/floatlabel.md +20 -11
  131. package/data/components/fluid.md +11 -9
  132. package/data/components/focustrap.md +11 -7
  133. package/data/components/galleria.md +231 -90
  134. package/data/components/iconfield.md +23 -15
  135. package/data/components/iftalabel.md +15 -9
  136. package/data/components/image.md +31 -26
  137. package/data/components/imagecompare.md +8 -6
  138. package/data/components/inplace.md +27 -22
  139. package/data/components/inputgroup.md +53 -29
  140. package/data/components/inputmask.md +107 -85
  141. package/data/components/inputnumber.md +128 -90
  142. package/data/components/inputotp.md +55 -42
  143. package/data/components/inputtext.md +72 -50
  144. package/data/components/keyfilter.md +6 -3
  145. package/data/components/knob.md +70 -58
  146. package/data/components/listbox.md +171 -141
  147. package/data/components/llms.md +4 -0
  148. package/data/components/megamenu.md +24 -23
  149. package/data/components/menu.md +37 -34
  150. package/data/components/menubar.md +27 -22
  151. package/data/components/message.md +44 -32
  152. package/data/components/metergroup.md +48 -17
  153. package/data/components/multiselect.md +232 -168
  154. package/data/components/orderlist.md +55 -48
  155. package/data/components/organizationchart.md +182 -13
  156. package/data/components/overlay.md +31 -26
  157. package/data/components/paginator.md +49 -34
  158. package/data/components/panel.md +23 -19
  159. package/data/components/panelmenu.md +51 -25
  160. package/data/components/password.md +104 -91
  161. package/data/components/picklist.md +93 -71
  162. package/data/components/popover.md +68 -46
  163. package/data/components/progressbar.md +28 -22
  164. package/data/components/progressspinner.md +13 -11
  165. package/data/components/radiobutton.md +69 -35
  166. package/data/components/rating.md +48 -40
  167. package/data/components/ripple.md +8 -6
  168. package/data/components/scroller.md +29 -29
  169. package/data/components/scrollpanel.md +9 -7
  170. package/data/components/scrolltop.md +20 -18
  171. package/data/components/select.md +248 -169
  172. package/data/components/selectbutton.md +118 -56
  173. package/data/components/skeleton.md +22 -18
  174. package/data/components/slider.md +73 -49
  175. package/data/components/speeddial.md +77 -59
  176. package/data/components/splitbutton.md +354 -329
  177. package/data/components/splitter.md +22 -18
  178. package/data/components/stepper.md +38 -21
  179. package/data/components/styleclass.md +12 -6
  180. package/data/components/table.md +524 -315
  181. package/data/components/tabs.md +44 -26
  182. package/data/components/tag.md +18 -14
  183. package/data/components/terminal.md +38 -27
  184. package/data/components/textarea.md +82 -47
  185. package/data/components/tieredmenu.md +34 -29
  186. package/data/components/timeline.md +29 -28
  187. package/data/components/toast.md +115 -57
  188. package/data/components/togglebutton.md +53 -39
  189. package/data/components/toggleswitch.md +41 -28
  190. package/data/components/toolbar.md +19 -18
  191. package/data/components/tooltip.md +43 -32
  192. package/data/components/tree.md +114 -81
  193. package/data/components/treeselect.md +176 -174
  194. package/data/components/treetable.md +1250 -1045
  195. package/data/components.json +4134 -4088
  196. package/data/llms-full.txt +8979 -6437
  197. package/data/llms.txt +100 -96
  198. package/data/manifest.json +183 -15
  199. package/data/pages/llms.md +29 -0
  200. package/data/pages/tailwind.md +20 -10
  201. package/data/snapshot.json +2 -2
  202. package/dist/index.d.mts +37 -2
  203. package/dist/index.mjs +1395 -1079
  204. package/dist/index.mjs.map +1 -1
  205. package/package.json +1 -1
@@ -11,13 +11,14 @@ Screen Reader Chart components internally use canvas element, refer to the Chart
11
11
  A chart is configured with 3 properties; type , data and options . Chart type is defined using the type property that accepts pie , doughtnut , line , bar , radar and polarArea as a value. The data defines datasets represented with the chart and the options provide numerous customization options to customize the presentation.
12
12
 
13
13
  ```typescript
14
- import { Component, OnInit, inject } from '@angular/core';
14
+ import { isPlatformBrowser } from '@angular/common';
15
+ import { Component, inject, OnInit, PLATFORM_ID } from '@angular/core';
15
16
  import { ChartModule } from '@exhaustive-ui/core/chart';
16
17
 
17
18
  @Component({
18
19
  template: `
19
20
  <div class="card">
20
- <p-chart type="bar" [data]="basicData" [options]="basicOptions" />
21
+ <p-chart type="bar" ariaLabel="Bar chart of sales by quarter" [data]="basicData" [options]="basicOptions" />
21
22
  </div>
22
23
  `,
23
24
  standalone: true,
@@ -25,9 +26,10 @@ import { ChartModule } from '@exhaustive-ui/core/chart';
25
26
  })
26
27
  export class ChartBasicDemo implements OnInit {
27
28
  basicData: any;
29
+
28
30
  basicOptions: any;
31
+
29
32
  platformId = inject(PLATFORM_ID);
30
- configService = inject(AppConfigService);
31
33
 
32
34
  ngOnInit() {
33
35
  this.initChart();
@@ -39,7 +41,7 @@ export class ChartBasicDemo implements OnInit {
39
41
  const textColor = documentStyle.getPropertyValue('--p-text-color');
40
42
  const textColorSecondary = documentStyle.getPropertyValue('--p-text-muted-color');
41
43
  const surfaceBorder = documentStyle.getPropertyValue('--p-content-border-color');
42
-
44
+
43
45
  this.basicData = {
44
46
  labels: ['Q1', 'Q2', 'Q3', 'Q4'],
45
47
  datasets: [
@@ -52,7 +54,7 @@ export class ChartBasicDemo implements OnInit {
52
54
  }
53
55
  ]
54
56
  };
55
-
57
+
56
58
  this.basicOptions = {
57
59
  maintainAspectRatio: false,
58
60
  aspectRatio: 0.8,
@@ -83,7 +85,6 @@ export class ChartBasicDemo implements OnInit {
83
85
  }
84
86
  }
85
87
  };
86
- this.cd.markForCheck();
87
88
  }
88
89
  }
89
90
  }
@@ -98,13 +99,14 @@ To begin with, first you must install the charts.js package using npm and then i
98
99
  Different chart types can be combined in the same graph using the type option of a dataset.
99
100
 
100
101
  ```typescript
101
- import { Component, OnInit, inject } from '@angular/core';
102
+ import { isPlatformBrowser } from '@angular/common';
103
+ import { Component, inject, OnInit, PLATFORM_ID } from '@angular/core';
102
104
  import { ChartModule } from '@exhaustive-ui/core/chart';
103
105
 
104
106
  @Component({
105
107
  template: `
106
108
  <div class="card">
107
- <p-chart type="line" [data]="data" [options]="options" class="h-120" />
109
+ <p-chart type="line" ariaLabel="Combined line and bar chart of three datasets from January to July" [data]="data" [options]="options" class="h-120" />
108
110
  </div>
109
111
  `,
110
112
  standalone: true,
@@ -112,9 +114,10 @@ import { ChartModule } from '@exhaustive-ui/core/chart';
112
114
  })
113
115
  export class ChartComboDemo implements OnInit {
114
116
  data: any;
117
+
115
118
  options: any;
119
+
116
120
  platformId = inject(PLATFORM_ID);
117
- configService = inject(AppConfigService);
118
121
 
119
122
  ngOnInit() {
120
123
  this.initChart();
@@ -126,7 +129,7 @@ export class ChartComboDemo implements OnInit {
126
129
  const textColor = documentStyle.getPropertyValue('--p-text-color');
127
130
  const textColorSecondary = documentStyle.getPropertyValue('--p-text-muted-color');
128
131
  const surfaceBorder = documentStyle.getPropertyValue('--p-content-border-color');
129
-
132
+
130
133
  this.data = {
131
134
  labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
132
135
  datasets: [
@@ -155,7 +158,7 @@ export class ChartComboDemo implements OnInit {
155
158
  }
156
159
  ]
157
160
  };
158
-
161
+
159
162
  this.options = {
160
163
  maintainAspectRatio: false,
161
164
  aspectRatio: 0.6,
@@ -185,7 +188,6 @@ export class ChartComboDemo implements OnInit {
185
188
  }
186
189
  }
187
190
  };
188
- this.cd.markForCheck();
189
191
  }
190
192
  }
191
193
  }
@@ -196,13 +198,14 @@ export class ChartComboDemo implements OnInit {
196
198
  A doughnut chart is a variant of the pie chart, with a blank center allowing for additional information about the data as a whole to be included.
197
199
 
198
200
  ```typescript
199
- import { Component, OnInit, inject } from '@angular/core';
201
+ import { isPlatformBrowser } from '@angular/common';
202
+ import { Component, inject, OnInit, PLATFORM_ID } from '@angular/core';
200
203
  import { ChartModule } from '@exhaustive-ui/core/chart';
201
204
 
202
205
  @Component({
203
206
  template: `
204
207
  <div class="card flex justify-center">
205
- <p-chart type="doughnut" [data]="data" [options]="options" class="w-full md:w-120" />
208
+ <p-chart type="doughnut" ariaLabel="Doughnut chart of categories A, B and C" [data]="data" [options]="options" class="w-full md:w-120" />
206
209
  </div>
207
210
  `,
208
211
  standalone: true,
@@ -210,9 +213,10 @@ import { ChartModule } from '@exhaustive-ui/core/chart';
210
213
  })
211
214
  export class ChartDoughnutDemo implements OnInit {
212
215
  data: any;
216
+
213
217
  options: any;
218
+
214
219
  platformId = inject(PLATFORM_ID);
215
- configService = inject(AppConfigService);
216
220
 
217
221
  ngOnInit() {
218
222
  this.initChart();
@@ -222,7 +226,7 @@ export class ChartDoughnutDemo implements OnInit {
222
226
  if (isPlatformBrowser(this.platformId)) {
223
227
  const documentStyle = getComputedStyle(document.documentElement);
224
228
  const textColor = documentStyle.getPropertyValue('--p-text-color');
225
-
229
+
226
230
  this.data = {
227
231
  labels: ['A', 'B', 'C'],
228
232
  datasets: [
@@ -233,7 +237,7 @@ export class ChartDoughnutDemo implements OnInit {
233
237
  }
234
238
  ]
235
239
  };
236
-
240
+
237
241
  this.options = {
238
242
  cutout: '60%',
239
243
  plugins: {
@@ -244,7 +248,6 @@ export class ChartDoughnutDemo implements OnInit {
244
248
  }
245
249
  }
246
250
  };
247
- this.cd.markForCheck();
248
251
  }
249
252
  }
250
253
  }
@@ -255,13 +258,14 @@ export class ChartDoughnutDemo implements OnInit {
255
258
  A bar chart is rendered horizontally when indexAxis option is set as y .
256
259
 
257
260
  ```typescript
258
- import { Component, OnInit, inject } from '@angular/core';
261
+ import { isPlatformBrowser } from '@angular/common';
262
+ import { Component, inject, OnInit, PLATFORM_ID } from '@angular/core';
259
263
  import { ChartModule } from '@exhaustive-ui/core/chart';
260
264
 
261
265
  @Component({
262
266
  template: `
263
267
  <div class="card">
264
- <p-chart type="bar" [data]="data" [options]="options" class="h-120" />
268
+ <p-chart type="bar" ariaLabel="Horizontal bar chart of two datasets from January to July" [data]="data" [options]="options" class="h-120" />
265
269
  </div>
266
270
  `,
267
271
  standalone: true,
@@ -269,9 +273,10 @@ import { ChartModule } from '@exhaustive-ui/core/chart';
269
273
  })
270
274
  export class ChartHorizontalbarDemo implements OnInit {
271
275
  data: any;
276
+
272
277
  options: any;
278
+
273
279
  platformId = inject(PLATFORM_ID);
274
- configService = inject(AppConfigService);
275
280
 
276
281
  ngOnInit() {
277
282
  this.initChart();
@@ -283,7 +288,7 @@ export class ChartHorizontalbarDemo implements OnInit {
283
288
  const textColor = documentStyle.getPropertyValue('--p-text-color');
284
289
  const textColorSecondary = documentStyle.getPropertyValue('--p-text-muted-color');
285
290
  const surfaceBorder = documentStyle.getPropertyValue('--p-content-border-color');
286
-
291
+
287
292
  this.data = {
288
293
  labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
289
294
  datasets: [
@@ -301,7 +306,7 @@ export class ChartHorizontalbarDemo implements OnInit {
301
306
  }
302
307
  ]
303
308
  };
304
-
309
+
305
310
  this.options = {
306
311
  indexAxis: 'y',
307
312
  maintainAspectRatio: false,
@@ -337,7 +342,6 @@ export class ChartHorizontalbarDemo implements OnInit {
337
342
  }
338
343
  }
339
344
  };
340
- this.cd.markForCheck();
341
345
  }
342
346
  }
343
347
  }
@@ -348,13 +352,14 @@ export class ChartHorizontalbarDemo implements OnInit {
348
352
  A line chart or line graph is a type of chart which displays information as a series of data points called 'markers' connected by straight line segments.
349
353
 
350
354
  ```typescript
351
- import { Component, OnInit, inject } from '@angular/core';
355
+ import { isPlatformBrowser } from '@angular/common';
356
+ import { Component, inject, OnInit, PLATFORM_ID } from '@angular/core';
352
357
  import { ChartModule } from '@exhaustive-ui/core/chart';
353
358
 
354
359
  @Component({
355
360
  template: `
356
361
  <div class="card">
357
- <p-chart type="line" [data]="data" [options]="options" class="h-120" />
362
+ <p-chart type="line" ariaLabel="Line chart of two datasets from January to July" [data]="data" [options]="options" class="h-120" />
358
363
  </div>
359
364
  `,
360
365
  standalone: true,
@@ -362,9 +367,10 @@ import { ChartModule } from '@exhaustive-ui/core/chart';
362
367
  })
363
368
  export class ChartLineDemo implements OnInit {
364
369
  data: any;
370
+
365
371
  options: any;
372
+
366
373
  platformId = inject(PLATFORM_ID);
367
- configService = inject(AppConfigService);
368
374
 
369
375
  ngOnInit() {
370
376
  this.initChart();
@@ -376,7 +382,7 @@ export class ChartLineDemo implements OnInit {
376
382
  const textColor = documentStyle.getPropertyValue('--p-text-color');
377
383
  const textColorSecondary = documentStyle.getPropertyValue('--p-text-muted-color');
378
384
  const surfaceBorder = documentStyle.getPropertyValue('--p-content-border-color');
379
-
385
+
380
386
  this.data = {
381
387
  labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
382
388
  datasets: [
@@ -396,7 +402,7 @@ export class ChartLineDemo implements OnInit {
396
402
  }
397
403
  ]
398
404
  };
399
-
405
+
400
406
  this.options = {
401
407
  maintainAspectRatio: false,
402
408
  aspectRatio: 0.6,
@@ -428,7 +434,6 @@ export class ChartLineDemo implements OnInit {
428
434
  }
429
435
  }
430
436
  };
431
- this.cd.markForCheck();
432
437
  }
433
438
  }
434
439
  }
@@ -439,13 +444,14 @@ export class ChartLineDemo implements OnInit {
439
444
  Various styles of a line series can be customized to display customizations like an area chart.
440
445
 
441
446
  ```typescript
442
- import { Component, OnInit, inject } from '@angular/core';
447
+ import { isPlatformBrowser } from '@angular/common';
448
+ import { Component, inject, OnInit, PLATFORM_ID } from '@angular/core';
443
449
  import { ChartModule } from '@exhaustive-ui/core/chart';
444
450
 
445
451
  @Component({
446
452
  template: `
447
453
  <div class="card">
448
- <p-chart type="line" [data]="data" [options]="options" class="h-120" />
454
+ <p-chart type="line" ariaLabel="Line chart of three styled datasets from January to July" [data]="data" [options]="options" class="h-120" />
449
455
  </div>
450
456
  `,
451
457
  standalone: true,
@@ -453,9 +459,10 @@ import { ChartModule } from '@exhaustive-ui/core/chart';
453
459
  })
454
460
  export class ChartLinestyleDemo implements OnInit {
455
461
  data: any;
462
+
456
463
  options: any;
464
+
457
465
  platformId = inject(PLATFORM_ID);
458
- configService = inject(AppConfigService);
459
466
 
460
467
  ngOnInit() {
461
468
  this.initChart();
@@ -467,7 +474,7 @@ export class ChartLinestyleDemo implements OnInit {
467
474
  const textColor = documentStyle.getPropertyValue('--p-text-color');
468
475
  const textColorSecondary = documentStyle.getPropertyValue('--p-text-muted-color');
469
476
  const surfaceBorder = documentStyle.getPropertyValue('--p-content-border-color');
470
-
477
+
471
478
  this.data = {
472
479
  labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
473
480
  datasets: [
@@ -496,7 +503,7 @@ export class ChartLinestyleDemo implements OnInit {
496
503
  }
497
504
  ]
498
505
  };
499
-
506
+
500
507
  this.options = {
501
508
  maintainAspectRatio: false,
502
509
  aspectRatio: 0.6,
@@ -526,7 +533,6 @@ export class ChartLinestyleDemo implements OnInit {
526
533
  }
527
534
  }
528
535
  };
529
- this.cd.markForCheck();
530
536
  }
531
537
  }
532
538
  }
@@ -571,7 +577,8 @@ import { Component } from '@angular/core';
571
577
  standalone: true,
572
578
  imports: []
573
579
  })
574
- export class ChartMethodsDemo {}
580
+ export class ChartMethodsDemo {
581
+ }
575
582
  ```
576
583
 
577
584
  ## MultiAxis
@@ -579,13 +586,14 @@ export class ChartMethodsDemo {}
579
586
  Multiple axes can be added using the scales option.
580
587
 
581
588
  ```typescript
582
- import { Component, OnInit, inject } from '@angular/core';
589
+ import { isPlatformBrowser } from '@angular/common';
590
+ import { Component, inject, OnInit, PLATFORM_ID } from '@angular/core';
583
591
  import { ChartModule } from '@exhaustive-ui/core/chart';
584
592
 
585
593
  @Component({
586
594
  template: `
587
595
  <div class="card">
588
- <p-chart type="line" [data]="data" [options]="options" class="h-120" />
596
+ <p-chart type="line" ariaLabel="Line chart of two datasets on separate axes from January to July" [data]="data" [options]="options" class="h-120" />
589
597
  </div>
590
598
  `,
591
599
  standalone: true,
@@ -593,9 +601,10 @@ import { ChartModule } from '@exhaustive-ui/core/chart';
593
601
  })
594
602
  export class ChartMultiaxisDemo implements OnInit {
595
603
  data: any;
604
+
596
605
  options: any;
606
+
597
607
  platformId = inject(PLATFORM_ID);
598
- configService = inject(AppConfigService);
599
608
 
600
609
  ngOnInit() {
601
610
  this.initChart();
@@ -607,7 +616,7 @@ export class ChartMultiaxisDemo implements OnInit {
607
616
  const textColor = documentStyle.getPropertyValue('--p-text-color');
608
617
  const textColorSecondary = documentStyle.getPropertyValue('--p-text-muted-color');
609
618
  const surfaceBorder = documentStyle.getPropertyValue('--p-content-border-color');
610
-
619
+
611
620
  this.data = {
612
621
  labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
613
622
  datasets: [
@@ -629,7 +638,7 @@ export class ChartMultiaxisDemo implements OnInit {
629
638
  }
630
639
  ]
631
640
  };
632
-
641
+
633
642
  this.options = {
634
643
  stacked: false,
635
644
  maintainAspectRatio: false,
@@ -675,7 +684,6 @@ export class ChartMultiaxisDemo implements OnInit {
675
684
  }
676
685
  }
677
686
  };
678
- this.cd.markForCheck();
679
687
  }
680
688
  }
681
689
  }
@@ -686,13 +694,14 @@ export class ChartMultiaxisDemo implements OnInit {
686
694
  A pie chart is a circular statistical graphic which is divided into slices to illustrate numerical proportion.
687
695
 
688
696
  ```typescript
689
- import { Component, OnInit, inject } from '@angular/core';
697
+ import { isPlatformBrowser } from '@angular/common';
698
+ import { Component, inject, OnInit, PLATFORM_ID } from '@angular/core';
690
699
  import { ChartModule } from '@exhaustive-ui/core/chart';
691
700
 
692
701
  @Component({
693
702
  template: `
694
703
  <div class="card flex justify-center">
695
- <p-chart type="pie" [data]="data" [options]="options" class="w-full md:w-120" />
704
+ <p-chart type="pie" ariaLabel="Pie chart of categories A, B and C" [data]="data" [options]="options" class="w-full md:w-120" />
696
705
  </div>
697
706
  `,
698
707
  standalone: true,
@@ -700,9 +709,10 @@ import { ChartModule } from '@exhaustive-ui/core/chart';
700
709
  })
701
710
  export class ChartPieDemo implements OnInit {
702
711
  data: any;
712
+
703
713
  options: any;
714
+
704
715
  platformId = inject(PLATFORM_ID);
705
- configService = inject(AppConfigService);
706
716
 
707
717
  ngOnInit() {
708
718
  this.initChart();
@@ -712,7 +722,7 @@ export class ChartPieDemo implements OnInit {
712
722
  if (isPlatformBrowser(this.platformId)) {
713
723
  const documentStyle = getComputedStyle(document.documentElement);
714
724
  const textColor = documentStyle.getPropertyValue('--text-color');
715
-
725
+
716
726
  this.data = {
717
727
  labels: ['A', 'B', 'C'],
718
728
  datasets: [
@@ -723,7 +733,7 @@ export class ChartPieDemo implements OnInit {
723
733
  }
724
734
  ]
725
735
  };
726
-
736
+
727
737
  this.options = {
728
738
  plugins: {
729
739
  legend: {
@@ -734,7 +744,6 @@ export class ChartPieDemo implements OnInit {
734
744
  }
735
745
  }
736
746
  };
737
- this.cd.markForCheck();
738
747
  }
739
748
  }
740
749
  }
@@ -745,13 +754,14 @@ export class ChartPieDemo implements OnInit {
745
754
  Polar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending on the value.
746
755
 
747
756
  ```typescript
748
- import { Component, OnInit, inject } from '@angular/core';
757
+ import { isPlatformBrowser } from '@angular/common';
758
+ import { Component, inject, OnInit, PLATFORM_ID } from '@angular/core';
749
759
  import { ChartModule } from '@exhaustive-ui/core/chart';
750
760
 
751
761
  @Component({
752
762
  template: `
753
763
  <div class="card flex justify-center">
754
- <p-chart type="polarArea" [data]="data" [options]="options" class="w-full md:w-120" />
764
+ <p-chart type="polarArea" ariaLabel="Polar area chart of five values" [data]="data" [options]="options" class="w-full md:w-120" />
755
765
  </div>
756
766
  `,
757
767
  standalone: true,
@@ -759,9 +769,10 @@ import { ChartModule } from '@exhaustive-ui/core/chart';
759
769
  })
760
770
  export class ChartPolarareaDemo implements OnInit {
761
771
  data: any;
772
+
762
773
  options: any;
774
+
763
775
  platformId = inject(PLATFORM_ID);
764
- configService = inject(AppConfigService);
765
776
 
766
777
  ngOnInit() {
767
778
  this.initChart();
@@ -772,7 +783,7 @@ export class ChartPolarareaDemo implements OnInit {
772
783
  const documentStyle = getComputedStyle(document.documentElement);
773
784
  const textColor = documentStyle.getPropertyValue('--p-text-color');
774
785
  const surfaceBorder = documentStyle.getPropertyValue('--p-content-border-color');
775
-
786
+
776
787
  this.data = {
777
788
  datasets: [
778
789
  {
@@ -789,7 +800,7 @@ export class ChartPolarareaDemo implements OnInit {
789
800
  ],
790
801
  labels: ['Pink', 'Gray', 'Orange', 'Purple', 'Cyan']
791
802
  };
792
-
803
+
793
804
  this.options = {
794
805
  plugins: {
795
806
  legend: {
@@ -806,7 +817,6 @@ export class ChartPolarareaDemo implements OnInit {
806
817
  }
807
818
  }
808
819
  };
809
- this.cd.markForCheck();
810
820
  }
811
821
  }
812
822
  }
@@ -885,7 +895,8 @@ import { Component } from '@angular/core';
885
895
  standalone: true,
886
896
  imports: []
887
897
  })
888
- export class ChartPropsDemo {}
898
+ export class ChartPropsDemo {
899
+ }
889
900
  ```
890
901
 
891
902
  ## radar-doc
@@ -893,13 +904,14 @@ export class ChartPropsDemo {}
893
904
  A radar chart is a graphical method of displaying multivariate data in the form of a two-dimensional chart of three or more quantitative variables represented on axes starting from the same point.
894
905
 
895
906
  ```typescript
896
- import { Component, OnInit, inject } from '@angular/core';
907
+ import { isPlatformBrowser } from '@angular/common';
908
+ import { Component, inject, OnInit, PLATFORM_ID } from '@angular/core';
897
909
  import { ChartModule } from '@exhaustive-ui/core/chart';
898
910
 
899
911
  @Component({
900
912
  template: `
901
913
  <div class="card flex justify-center">
902
- <p-chart type="radar" [data]="data" [options]="options" class="w-full md:w-120" />
914
+ <p-chart type="radar" ariaLabel="Radar chart comparing two datasets across seven activities" [data]="data" [options]="options" class="w-full md:w-120" />
903
915
  </div>
904
916
  `,
905
917
  standalone: true,
@@ -907,9 +919,10 @@ import { ChartModule } from '@exhaustive-ui/core/chart';
907
919
  })
908
920
  export class ChartRadarDemo implements OnInit {
909
921
  data: any;
922
+
910
923
  options: any;
924
+
911
925
  platformId = inject(PLATFORM_ID);
912
- configService = inject(AppConfigService);
913
926
 
914
927
  ngOnInit() {
915
928
  this.initChart();
@@ -920,7 +933,7 @@ export class ChartRadarDemo implements OnInit {
920
933
  const documentStyle = getComputedStyle(document.documentElement);
921
934
  const textColor = documentStyle.getPropertyValue('--p-text-color');
922
935
  const textColorSecondary = documentStyle.getPropertyValue('--p-text-muted-color');
923
-
936
+
924
937
  this.data = {
925
938
  labels: ['Eating', 'Drinking', 'Sleeping', 'Designing', 'Coding', 'Cycling', 'Running'],
926
939
  datasets: [
@@ -944,7 +957,7 @@ export class ChartRadarDemo implements OnInit {
944
957
  }
945
958
  ]
946
959
  };
947
-
960
+
948
961
  this.options = {
949
962
  plugins: {
950
963
  legend: {
@@ -962,7 +975,6 @@ export class ChartRadarDemo implements OnInit {
962
975
  }
963
976
  };
964
977
  }
965
- this.cd.markForCheck();
966
978
  }
967
979
  }
968
980
  ```
@@ -972,13 +984,14 @@ export class ChartRadarDemo implements OnInit {
972
984
  Bars can be stacked on top of each other when stacked option of a scale is enabled.
973
985
 
974
986
  ```typescript
975
- import { Component, OnInit, inject } from '@angular/core';
987
+ import { isPlatformBrowser } from '@angular/common';
988
+ import { Component, inject, OnInit, PLATFORM_ID } from '@angular/core';
976
989
  import { ChartModule } from '@exhaustive-ui/core/chart';
977
990
 
978
991
  @Component({
979
992
  template: `
980
993
  <div class="card">
981
- <p-chart type="bar" [data]="data" [options]="options" class="h-120" />
994
+ <p-chart type="bar" ariaLabel="Stacked bar chart of three datasets from January to July" [data]="data" [options]="options" class="h-120" />
982
995
  </div>
983
996
  `,
984
997
  standalone: true,
@@ -986,9 +999,10 @@ import { ChartModule } from '@exhaustive-ui/core/chart';
986
999
  })
987
1000
  export class ChartStackedbarDemo implements OnInit {
988
1001
  data: any;
1002
+
989
1003
  options: any;
1004
+
990
1005
  platformId = inject(PLATFORM_ID);
991
- configService = inject(AppConfigService);
992
1006
 
993
1007
  ngOnInit() {
994
1008
  this.initChart();
@@ -1000,7 +1014,7 @@ export class ChartStackedbarDemo implements OnInit {
1000
1014
  const textColor = documentStyle.getPropertyValue('--p-text-color');
1001
1015
  const textColorSecondary = documentStyle.getPropertyValue('--p-text-muted-color');
1002
1016
  const surfaceBorder = documentStyle.getPropertyValue('--p-content-border-color');
1003
-
1017
+
1004
1018
  this.data = {
1005
1019
  labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
1006
1020
  datasets: [
@@ -1024,7 +1038,7 @@ export class ChartStackedbarDemo implements OnInit {
1024
1038
  }
1025
1039
  ]
1026
1040
  };
1027
-
1041
+
1028
1042
  this.options = {
1029
1043
  maintainAspectRatio: false,
1030
1044
  aspectRatio: 0.8,
@@ -1062,7 +1076,6 @@ export class ChartStackedbarDemo implements OnInit {
1062
1076
  }
1063
1077
  }
1064
1078
  };
1065
- this.cd.markForCheck();
1066
1079
  }
1067
1080
  }
1068
1081
  }
@@ -1073,13 +1086,14 @@ export class ChartStackedbarDemo implements OnInit {
1073
1086
  A bar chart or bar graph is a chart that presents grouped data with rectangular bars with lengths proportional to the values that they represent.
1074
1087
 
1075
1088
  ```typescript
1076
- import { Component, OnInit, inject } from '@angular/core';
1089
+ import { isPlatformBrowser } from '@angular/common';
1090
+ import { Component, inject, OnInit, PLATFORM_ID } from '@angular/core';
1077
1091
  import { ChartModule } from '@exhaustive-ui/core/chart';
1078
1092
 
1079
1093
  @Component({
1080
1094
  template: `
1081
1095
  <div class="card">
1082
- <p-chart type="bar" [data]="data" [options]="options" class="h-120" />
1096
+ <p-chart type="bar" ariaLabel="Vertical bar chart of two datasets from January to July" [data]="data" [options]="options" class="h-120" />
1083
1097
  </div>
1084
1098
  `,
1085
1099
  standalone: true,
@@ -1087,9 +1101,10 @@ import { ChartModule } from '@exhaustive-ui/core/chart';
1087
1101
  })
1088
1102
  export class ChartVerticalbarDemo implements OnInit {
1089
1103
  data: any;
1104
+
1090
1105
  options: any;
1106
+
1091
1107
  platformId = inject(PLATFORM_ID);
1092
- configService = inject(AppConfigService);
1093
1108
 
1094
1109
  ngOnInit() {
1095
1110
  this.initChart();
@@ -1101,7 +1116,7 @@ export class ChartVerticalbarDemo implements OnInit {
1101
1116
  const textColor = documentStyle.getPropertyValue('--p-text-color');
1102
1117
  const textColorSecondary = documentStyle.getPropertyValue('--p-text-muted-color');
1103
1118
  const surfaceBorder = documentStyle.getPropertyValue('--p-content-border-color');
1104
-
1119
+
1105
1120
  this.data = {
1106
1121
  labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
1107
1122
  datasets: [
@@ -1119,7 +1134,7 @@ export class ChartVerticalbarDemo implements OnInit {
1119
1134
  }
1120
1135
  ]
1121
1136
  };
1122
-
1137
+
1123
1138
  this.options = {
1124
1139
  maintainAspectRatio: false,
1125
1140
  aspectRatio: 0.8,
@@ -1154,7 +1169,6 @@ export class ChartVerticalbarDemo implements OnInit {
1154
1169
  }
1155
1170
  }
1156
1171
  };
1157
- this.cd.markForCheck();
1158
1172
  }
1159
1173
  }
1160
1174
  }