@konce-pt/angular 0.11.2 → 0.14.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 (116) hide show
  1. package/CHANGELOG.md +792 -333
  2. package/README.md +111 -55
  3. package/charts/src/lib/llms.txt +23 -15
  4. package/chat/src/lib/llms.txt +68 -33
  5. package/fesm2022/konce-pt-angular-charts.mjs +149 -68
  6. package/fesm2022/konce-pt-angular-charts.mjs.map +1 -1
  7. package/fesm2022/konce-pt-angular-chat.mjs +296 -135
  8. package/fesm2022/konce-pt-angular-chat.mjs.map +1 -1
  9. package/fesm2022/konce-pt-angular-grid.mjs +16 -16
  10. package/fesm2022/konce-pt-angular-grid.mjs.map +1 -1
  11. package/fesm2022/konce-pt-angular-icons.mjs +5 -5
  12. package/fesm2022/konce-pt-angular-icons.mjs.map +1 -1
  13. package/fesm2022/konce-pt-angular-map.mjs +360 -293
  14. package/fesm2022/konce-pt-angular-map.mjs.map +1 -1
  15. package/fesm2022/konce-pt-angular-roadmap.mjs +120 -34
  16. package/fesm2022/konce-pt-angular-roadmap.mjs.map +1 -1
  17. package/fesm2022/konce-pt-angular.mjs +7117 -3373
  18. package/fesm2022/konce-pt-angular.mjs.map +1 -1
  19. package/grid/src/lib/llms.txt +18 -18
  20. package/map/src/lib/llms.txt +142 -140
  21. package/package.json +14 -12
  22. package/roadmap/src/lib/llms.txt +37 -27
  23. package/src/lib/accordion/llms.txt +18 -6
  24. package/src/lib/alert/llms.txt +5 -4
  25. package/src/lib/app-shell/llms.txt +25 -22
  26. package/src/lib/auth/llms.txt +26 -22
  27. package/src/lib/autocomplete/llms.txt +18 -4
  28. package/src/lib/avatar/llms.txt +3 -3
  29. package/src/lib/avatar-group/llms.txt +5 -5
  30. package/src/lib/backdrop/llms.txt +35 -35
  31. package/src/lib/badge/llms.txt +7 -7
  32. package/src/lib/bottom-sheet/llms.txt +6 -3
  33. package/src/lib/breadcrumb/llms.txt +9 -1
  34. package/src/lib/breakpoint/llms.txt +8 -8
  35. package/src/lib/button/llms.txt +26 -18
  36. package/src/lib/button-group/llms.txt +40 -31
  37. package/src/lib/card/llms.txt +19 -19
  38. package/src/lib/carousel/llms.txt +6 -6
  39. package/src/lib/checkbox/llms.txt +17 -2
  40. package/src/lib/chip/llms.txt +6 -6
  41. package/src/lib/chips-input/llms.txt +14 -4
  42. package/src/lib/color-picker/llms.txt +7 -4
  43. package/src/lib/confirm/llms.txt +9 -3
  44. package/src/lib/context-menu/llms.txt +7 -4
  45. package/src/lib/data-table/llms.txt +280 -227
  46. package/src/lib/data-view/llms.txt +25 -4
  47. package/src/lib/date-range/llms.txt +37 -18
  48. package/src/lib/datepicker/llms.txt +46 -29
  49. package/src/lib/dialog/llms.txt +29 -26
  50. package/src/lib/divider/llms.txt +2 -1
  51. package/src/lib/drawer/llms.txt +9 -6
  52. package/src/lib/empty/llms.txt +4 -4
  53. package/src/lib/fab/llms.txt +6 -2
  54. package/src/lib/fieldset/llms.txt +22 -4
  55. package/src/lib/file-upload/llms.txt +3 -0
  56. package/src/lib/form-field/llms.txt +33 -19
  57. package/src/lib/galleria/llms.txt +3 -3
  58. package/src/lib/i18n/llms.txt +15 -8
  59. package/src/lib/icon/llms.txt +9 -9
  60. package/src/lib/icon-button/llms.txt +8 -3
  61. package/src/lib/image/llms.txt +4 -4
  62. package/src/lib/input/llms.txt +21 -7
  63. package/src/lib/input-mask/llms.txt +5 -2
  64. package/src/lib/input-number/llms.txt +18 -15
  65. package/src/lib/input-otp/llms.txt +15 -4
  66. package/src/lib/knob/llms.txt +14 -7
  67. package/src/lib/listbox/llms.txt +8 -5
  68. package/src/lib/loader/llms.txt +72 -0
  69. package/src/lib/megamenu/llms.txt +16 -5
  70. package/src/lib/mention/llms.txt +15 -15
  71. package/src/lib/menu/llms.txt +12 -12
  72. package/src/lib/menubar/llms.txt +16 -5
  73. package/src/lib/meter-group/llms.txt +7 -7
  74. package/src/lib/order-list/llms.txt +20 -5
  75. package/src/lib/paginator/llms.txt +5 -5
  76. package/src/lib/panel/llms.txt +20 -8
  77. package/src/lib/password/llms.txt +17 -5
  78. package/src/lib/peek/llms.txt +11 -11
  79. package/src/lib/pick-list/llms.txt +28 -5
  80. package/src/lib/popover/llms.txt +9 -6
  81. package/src/lib/progress/llms.txt +16 -16
  82. package/src/lib/radio-group/llms.txt +13 -3
  83. package/src/lib/rating/llms.txt +13 -6
  84. package/src/lib/rich-text/llms.txt +42 -24
  85. package/src/lib/scroll-top/llms.txt +3 -3
  86. package/src/lib/select/llms.txt +23 -13
  87. package/src/lib/sidenav/llms.txt +8 -8
  88. package/src/lib/slider/llms.txt +23 -7
  89. package/src/lib/speech/llms.txt +108 -0
  90. package/src/lib/speed-dial/llms.txt +9 -3
  91. package/src/lib/spinner/llms.txt +2 -2
  92. package/src/lib/split-button/llms.txt +14 -8
  93. package/src/lib/splitter/llms.txt +8 -8
  94. package/src/lib/stepper/llms.txt +26 -7
  95. package/src/lib/switch/llms.txt +13 -3
  96. package/src/lib/switch-group/llms.txt +12 -9
  97. package/src/lib/tabs/llms.txt +7 -4
  98. package/src/lib/textarea/llms.txt +16 -5
  99. package/src/lib/timeline/llms.txt +1 -1
  100. package/src/lib/toast/llms.txt +36 -5
  101. package/src/lib/toolbar/llms.txt +3 -3
  102. package/src/lib/tooltip/llms.txt +13 -10
  103. package/src/lib/tree/llms.txt +19 -5
  104. package/src/lib/update/llms.txt +52 -0
  105. package/types/konce-pt-angular-charts.d.ts +11 -0
  106. package/types/konce-pt-angular-charts.d.ts.map +1 -1
  107. package/types/konce-pt-angular-chat.d.ts +98 -40
  108. package/types/konce-pt-angular-chat.d.ts.map +1 -1
  109. package/types/konce-pt-angular-grid.d.ts +14 -14
  110. package/types/konce-pt-angular-icons.d.ts +3 -3
  111. package/types/konce-pt-angular-map.d.ts +147 -119
  112. package/types/konce-pt-angular-map.d.ts.map +1 -1
  113. package/types/konce-pt-angular-roadmap.d.ts +34 -9
  114. package/types/konce-pt-angular-roadmap.d.ts.map +1 -1
  115. package/types/konce-pt-angular.d.ts +1774 -651
  116. package/types/konce-pt-angular.d.ts.map +1 -1
@@ -1,6 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, output, ViewEncapsulation, ChangeDetectionStrategy, Component, computed, signal } from '@angular/core';
3
- import { seriesColor, extent, niceScale, plotArea, linearScale, areaPath, linePath, formatNumber, barLayout, bandScale, radialArea, polarSlices, pieSlices, radarGrid, radarPoints, polygonPath, polarToCartesian } from '@konce-pt/chart';
2
+ import { input, output, ViewEncapsulation, ChangeDetectionStrategy, Component, computed, inject, signal } from '@angular/core';
3
+ import { KptI18n } from '@konce-pt/angular';
4
+ import { chartAccessibleName, chartDataTable, seriesColor, extent, niceScale, plotArea, linearScale, areaPath, linePath, formatNumber, barLayout, bandScale, radialArea, polarSlices, pieSlices, radarGrid, radarPoints, polygonPath, polarToCartesian } from '@konce-pt/chart';
4
5
  export { KPT_CHART_PALETTE, areaPath, barLayout, linePath, niceScale, pieSlices, polarSlices, radarGrid, radarPoints, seriesColor } from '@konce-pt/chart';
5
6
 
6
7
  const _forTrack0$1 = ($index, $item) => $item.key;
@@ -34,9 +35,9 @@ function KptChartLegend_For_4_Template(rf, ctx) { if (rf & 1) {
34
35
  i0.ɵɵtextInterpolate(item_r3.name);
35
36
  } }
36
37
  /**
37
- * Legenda wykresu — klikalne elementy (toggle serii), podświetlanie na hover,
38
+ * Legenda wykresu - klikalne elementy (toggle serii), podświetlanie na hover,
38
39
  * pozycjonowanie, wyrównanie, styl punktu i opcjonalny tytuł.
39
- * Element wewnętrzny biblioteki — nie jest częścią publicznego API.
40
+ * Element wewnętrzny biblioteki - nie jest częścią publicznego API.
40
41
  */
41
42
  class KptChartLegend {
42
43
  constructor() {
@@ -50,13 +51,15 @@ class KptChartLegend {
50
51
  ...(ngDevMode ? [{ debugName: "pointStyle" }] : /* istanbul ignore next */ []));
51
52
  this.title = input(undefined, /* @ts-ignore */
52
53
  ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
53
- /** Kliknięcie elementu — przełącz widoczność serii/wycinka (klucz). */
54
+ /** Kliknięcie elementu - przełącz widoczność serii/wycinka (klucz). */
54
55
  this.seriesToggle = output();
55
- /** Wejście/wyjście kursora — podświetl serię (klucz) lub wyczyść (null). */
56
+ /** Wejście/wyjście kursora - podświetl serię (klucz) lub wyczyść (null). */
56
57
  this.highlight = output();
57
58
  }
58
59
  static { this.ɵfac = function KptChartLegend_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptChartLegend)(); }; }
59
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptChartLegend, selectors: [["kpt-chart-legend"]], hostAttrs: [1, "kpt-chart-legend-host"], inputs: { items: [1, "items"], position: [1, "position"], align: [1, "align"], pointStyle: [1, "pointStyle"], title: [1, "title"] }, outputs: { seriesToggle: "seriesToggle", highlight: "highlight" }, decls: 5, vars: 3, consts: [[1, "kpt-chart__legend"], [1, "kpt-chart__legend-title"], [1, "kpt-chart__legend-list"], ["type", "button", 1, "kpt-chart__legend-item", 3, "click", "pointerenter", "pointerleave"], [1, "kpt-chart__legend-marker"], [1, "kpt-chart__legend-label"]], template: function KptChartLegend_Template(rf, ctx) { if (rf & 1) {
60
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptChartLegend, selectors: [["kpt-chart-legend"]], hostAttrs: [1, "kpt-chart-legend-host"], hostVars: 1, hostBindings: function KptChartLegend_HostBindings(rf, ctx) { if (rf & 2) {
61
+ i0.ɵɵattribute("title", null);
62
+ } }, inputs: { items: [1, "items"], position: [1, "position"], align: [1, "align"], pointStyle: [1, "pointStyle"], title: [1, "title"] }, outputs: { seriesToggle: "seriesToggle", highlight: "highlight" }, decls: 5, vars: 3, consts: [[1, "kpt-chart__legend"], [1, "kpt-chart__legend-title"], [1, "kpt-chart__legend-list"], ["type", "button", 1, "kpt-chart__legend-item", 3, "click", "pointerenter", "pointerleave"], [1, "kpt-chart__legend-marker"], [1, "kpt-chart__legend-label"]], template: function KptChartLegend_Template(rf, ctx) { if (rf & 1) {
60
63
  i0.ɵɵdomElementStart(0, "div", 0);
61
64
  i0.ɵɵconditionalCreate(1, KptChartLegend_Conditional_1_Template, 2, 2, "div", 1);
62
65
  i0.ɵɵdomElementStart(2, "ul", 2);
@@ -100,10 +103,12 @@ class KptChartLegend {
100
103
  </ul>
101
104
  </div>
102
105
  `,
103
- host: { class: 'kpt-chart-legend-host' },
106
+ // `title` to tu wejście (nagłówek), nie podpowiedź: statyczny atrybut zostałby na hoście i dał
107
+ // natywny dymek nad całym komponentem - zdejmujemy go z DOM.
108
+ host: { class: 'kpt-chart-legend-host', '[attr.title]': 'null' },
104
109
  }]
105
110
  }], null, { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], pointStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "pointStyle", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], seriesToggle: [{ type: i0.Output, args: ["seriesToggle"] }], highlight: [{ type: i0.Output, args: ["highlight"] }] }); })();
106
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptChartLegend, { className: "KptChartLegend", filePath: "lib/chart-legend.component.ts", lineNumber: 46 }); })();
111
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptChartLegend, { className: "KptChartLegend", filePath: "lib/chart-legend.component.ts", lineNumber: 48 }); })();
107
112
 
108
113
  function KptChartTooltip_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
109
114
  i0.ɵɵdomElementStart(0, "div", 2);
@@ -148,9 +153,9 @@ function KptChartTooltip_Conditional_0_Template(rf, ctx) { if (rf & 1) {
148
153
  i0.ɵɵrepeater(t_r1.rows);
149
154
  } }
150
155
  /**
151
- * Dymek (tooltip) wykresu — pozycjonowany procentowo względem kontenera
156
+ * Dymek (tooltip) wykresu - pozycjonowany procentowo względem kontenera
152
157
  * (niezależnie od skali SVG). Zabezpieczony przed wyjściem poza krawędzie.
153
- * Element wewnętrzny biblioteki — nie jest częścią publicznego API.
158
+ * Element wewnętrzny biblioteki - nie jest częścią publicznego API.
154
159
  */
155
160
  class KptChartTooltip {
156
161
  constructor() {
@@ -203,7 +208,7 @@ class KptChartTooltip {
203
208
  const _forTrack0 = ($index, $item) => $item.key;
204
209
  const _forTrack1 = ($index, $item) => $item.key + "#" + $item.index;
205
210
  function KptChart_Conditional_1_Template(rf, ctx) { if (rf & 1) {
206
- i0.ɵɵelementStart(0, "div", 8);
211
+ i0.ɵɵelementStart(0, "div", 11);
207
212
  i0.ɵɵtext(1);
208
213
  i0.ɵɵelementEnd();
209
214
  } if (rf & 2) {
@@ -213,7 +218,7 @@ function KptChart_Conditional_1_Template(rf, ctx) { if (rf & 1) {
213
218
  i0.ɵɵtextInterpolate1(" ", ctx_r0.titleOpts()?.text, " ");
214
219
  } }
215
220
  function KptChart_Conditional_2_Template(rf, ctx) { if (rf & 1) {
216
- i0.ɵɵelementStart(0, "div", 9);
221
+ i0.ɵɵelementStart(0, "div", 12);
217
222
  i0.ɵɵtext(1);
218
223
  i0.ɵɵelementEnd();
219
224
  } if (rf & 2) {
@@ -224,14 +229,14 @@ function KptChart_Conditional_2_Template(rf, ctx) { if (rf & 1) {
224
229
  } }
225
230
  function KptChart_Case_6_Conditional_0_For_2_Template(rf, ctx) { if (rf & 1) {
226
231
  i0.ɵɵnamespaceSVG();
227
- i0.ɵɵelement(0, "line", 11);
232
+ i0.ɵɵelement(0, "line", 14);
228
233
  } if (rf & 2) {
229
234
  const g_r2 = ctx.$implicit;
230
235
  i0.ɵɵattribute("x1", g_r2.x1)("y1", g_r2.y1)("x2", g_r2.x2)("y2", g_r2.y2);
231
236
  } }
232
237
  function KptChart_Case_6_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
233
238
  i0.ɵɵnamespaceSVG();
234
- i0.ɵɵelement(0, "line", 12);
239
+ i0.ɵɵelement(0, "line", 15);
235
240
  } if (rf & 2) {
236
241
  const ch_r3 = ctx;
237
242
  i0.ɵɵattribute("x1", ch_r3.x)("y1", ch_r3.y1)("x2", ch_r3.x)("y2", ch_r3.y2);
@@ -260,9 +265,9 @@ function KptChart_Case_6_Conditional_0_For_8_Template(rf, ctx) { if (rf & 1) {
260
265
  } }
261
266
  function KptChart_Case_6_Conditional_0_Conditional_9_Template(rf, ctx) { if (rf & 1) {
262
267
  i0.ɵɵnamespaceSVG();
263
- i0.ɵɵelementStart(0, "g", 14);
268
+ i0.ɵɵelementStart(0, "g", 17);
264
269
  i0.ɵɵelement(1, "rect");
265
- i0.ɵɵelementStart(2, "text", 16);
270
+ i0.ɵɵelementStart(2, "text", 19);
266
271
  i0.ɵɵtext(3);
267
272
  i0.ɵɵelementEnd()();
268
273
  } if (rf & 2) {
@@ -276,7 +281,7 @@ function KptChart_Case_6_Conditional_0_Conditional_9_Template(rf, ctx) { if (rf
276
281
  } }
277
282
  function KptChart_Case_6_Conditional_0_For_11_Conditional_1_Template(rf, ctx) { if (rf & 1) {
278
283
  i0.ɵɵnamespaceSVG();
279
- i0.ɵɵelement(0, "path", 20);
284
+ i0.ɵɵelement(0, "path", 23);
280
285
  } if (rf & 2) {
281
286
  const s_r7 = i0.ɵɵnextContext().$implicit;
282
287
  i0.ɵɵstyleProp("fill", s_r7.color);
@@ -284,7 +289,7 @@ function KptChart_Case_6_Conditional_0_For_11_Conditional_1_Template(rf, ctx) {
284
289
  } }
285
290
  function KptChart_Case_6_Conditional_0_For_11_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
286
291
  i0.ɵɵnamespaceSVG();
287
- i0.ɵɵelement(0, "circle", 23);
292
+ i0.ɵɵelement(0, "circle", 26);
288
293
  } if (rf & 2) {
289
294
  const ctx_r8 = i0.ɵɵnextContext();
290
295
  const p_r10 = ctx_r8.$implicit;
@@ -297,9 +302,9 @@ function KptChart_Case_6_Conditional_0_For_11_For_4_Conditional_0_Template(rf, c
297
302
  } }
298
303
  function KptChart_Case_6_Conditional_0_For_11_For_4_Template(rf, ctx) { if (rf & 1) {
299
304
  const _r8 = i0.ɵɵgetCurrentView();
300
- i0.ɵɵconditionalCreate(0, KptChart_Case_6_Conditional_0_For_11_For_4_Conditional_0_Template, 1, 8, ":svg:circle", 21);
305
+ i0.ɵɵconditionalCreate(0, KptChart_Case_6_Conditional_0_For_11_For_4_Conditional_0_Template, 1, 8, ":svg:circle", 24);
301
306
  i0.ɵɵnamespaceSVG();
302
- i0.ɵɵelementStart(1, "circle", 22);
307
+ i0.ɵɵelementStart(1, "circle", 25);
303
308
  i0.ɵɵlistener("pointerenter", function KptChart_Case_6_Conditional_0_For_11_For_4_Template_circle_pointerenter_1_listener() { const ctx_r11 = i0.ɵɵrestoreView(_r8); const p_r10 = ctx_r11.$implicit; const $index_r11 = ctx_r11.$index; const s_r7 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.onLineEnter($index_r11, p_r10.x, p_r10.y, s_r7.name, p_r10.label, p_r10.value, s_r7.color)); })("pointerleave", function KptChart_Case_6_Conditional_0_For_11_For_4_Template_circle_pointerleave_1_listener() { i0.ɵɵrestoreView(_r8); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.onLineLeave()); });
304
309
  i0.ɵɵelementEnd();
305
310
  } if (rf & 2) {
@@ -311,9 +316,9 @@ function KptChart_Case_6_Conditional_0_For_11_For_4_Template(rf, ctx) { if (rf &
311
316
  } }
312
317
  function KptChart_Case_6_Conditional_0_For_11_Template(rf, ctx) { if (rf & 1) {
313
318
  i0.ɵɵnamespaceSVG();
314
- i0.ɵɵelementStart(0, "g", 17);
315
- i0.ɵɵconditionalCreate(1, KptChart_Case_6_Conditional_0_For_11_Conditional_1_Template, 1, 3, ":svg:path", 18);
316
- i0.ɵɵelement(2, "path", 19);
319
+ i0.ɵɵelementStart(0, "g", 20);
320
+ i0.ɵɵconditionalCreate(1, KptChart_Case_6_Conditional_0_For_11_Conditional_1_Template, 1, 3, ":svg:path", 21);
321
+ i0.ɵɵelement(2, "path", 22);
317
322
  i0.ɵɵrepeaterCreate(3, KptChart_Case_6_Conditional_0_For_11_For_4_Template, 2, 3, null, null, i0.ɵɵrepeaterTrackByIndex);
318
323
  i0.ɵɵelementEnd();
319
324
  } if (rf & 2) {
@@ -330,16 +335,16 @@ function KptChart_Case_6_Conditional_0_For_11_Template(rf, ctx) { if (rf & 1) {
330
335
  } }
331
336
  function KptChart_Case_6_Conditional_0_Template(rf, ctx) { if (rf & 1) {
332
337
  i0.ɵɵnamespaceSVG();
333
- i0.ɵɵelementStart(0, "g", 10);
334
- i0.ɵɵrepeaterCreate(1, KptChart_Case_6_Conditional_0_For_2_Template, 1, 4, ":svg:line", 11, i0.ɵɵrepeaterTrackByIndex);
338
+ i0.ɵɵelementStart(0, "g", 13);
339
+ i0.ɵɵrepeaterCreate(1, KptChart_Case_6_Conditional_0_For_2_Template, 1, 4, ":svg:line", 14, i0.ɵɵrepeaterTrackByIndex);
335
340
  i0.ɵɵelementEnd();
336
- i0.ɵɵconditionalCreate(3, KptChart_Case_6_Conditional_0_Conditional_3_Template, 1, 4, ":svg:line", 12);
337
- i0.ɵɵelementStart(4, "g", 13);
341
+ i0.ɵɵconditionalCreate(3, KptChart_Case_6_Conditional_0_Conditional_3_Template, 1, 4, ":svg:line", 15);
342
+ i0.ɵɵelementStart(4, "g", 16);
338
343
  i0.ɵɵrepeaterCreate(5, KptChart_Case_6_Conditional_0_For_6_Template, 2, 4, ":svg:text", null, i0.ɵɵrepeaterTrackByIndex);
339
344
  i0.ɵɵrepeaterCreate(7, KptChart_Case_6_Conditional_0_For_8_Template, 2, 4, ":svg:text", null, i0.ɵɵrepeaterTrackByIndex);
340
345
  i0.ɵɵelementEnd();
341
- i0.ɵɵconditionalCreate(9, KptChart_Case_6_Conditional_0_Conditional_9_Template, 4, 8, ":svg:g", 14);
342
- i0.ɵɵrepeaterCreate(10, KptChart_Case_6_Conditional_0_For_11_Template, 5, 6, ":svg:g", 15, _forTrack0);
346
+ i0.ɵɵconditionalCreate(9, KptChart_Case_6_Conditional_0_Conditional_9_Template, 4, 8, ":svg:g", 17);
347
+ i0.ɵɵrepeaterCreate(10, KptChart_Case_6_Conditional_0_For_11_Template, 5, 6, ":svg:g", 18, _forTrack0);
343
348
  } if (rf & 2) {
344
349
  let tmp_4_0;
345
350
  let tmp_7_0;
@@ -367,7 +372,7 @@ function KptChart_Case_6_Template(rf, ctx) { if (rf & 1) {
367
372
  } }
368
373
  function KptChart_Case_7_Conditional_0_For_2_Template(rf, ctx) { if (rf & 1) {
369
374
  i0.ɵɵnamespaceSVG();
370
- i0.ɵɵelement(0, "line", 11);
375
+ i0.ɵɵelement(0, "line", 14);
371
376
  } if (rf & 2) {
372
377
  const g_r14 = ctx.$implicit;
373
378
  i0.ɵɵattribute("x1", g_r14.x1)("y1", g_r14.y1)("x2", g_r14.x2)("y2", g_r14.y2);
@@ -397,7 +402,7 @@ function KptChart_Case_7_Conditional_0_For_7_Template(rf, ctx) { if (rf & 1) {
397
402
  function KptChart_Case_7_Conditional_0_For_10_Template(rf, ctx) { if (rf & 1) {
398
403
  const _r17 = i0.ɵɵgetCurrentView();
399
404
  i0.ɵɵnamespaceSVG();
400
- i0.ɵɵelementStart(0, "path", 26);
405
+ i0.ɵɵelementStart(0, "path", 29);
401
406
  i0.ɵɵlistener("pointerenter", function KptChart_Case_7_Conditional_0_For_10_Template_path_pointerenter_0_listener() { const b_r18 = i0.ɵɵrestoreView(_r17).$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.showTip(b_r18.tipX, b_r18.tipY, b_r18.name, b_r18.label, b_r18.value, b_r18.color)); })("pointerleave", function KptChart_Case_7_Conditional_0_For_10_Template_path_pointerleave_0_listener() { i0.ɵɵrestoreView(_r17); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.hideTip()); });
402
407
  i0.ɵɵelementEnd();
403
408
  } if (rf & 2) {
@@ -409,15 +414,15 @@ function KptChart_Case_7_Conditional_0_For_10_Template(rf, ctx) { if (rf & 1) {
409
414
  } }
410
415
  function KptChart_Case_7_Conditional_0_Template(rf, ctx) { if (rf & 1) {
411
416
  i0.ɵɵnamespaceSVG();
412
- i0.ɵɵelementStart(0, "g", 10);
413
- i0.ɵɵrepeaterCreate(1, KptChart_Case_7_Conditional_0_For_2_Template, 1, 4, ":svg:line", 11, i0.ɵɵrepeaterTrackByIndex);
417
+ i0.ɵɵelementStart(0, "g", 13);
418
+ i0.ɵɵrepeaterCreate(1, KptChart_Case_7_Conditional_0_For_2_Template, 1, 4, ":svg:line", 14, i0.ɵɵrepeaterTrackByIndex);
414
419
  i0.ɵɵelementEnd();
415
- i0.ɵɵelementStart(3, "g", 13);
420
+ i0.ɵɵelementStart(3, "g", 16);
416
421
  i0.ɵɵrepeaterCreate(4, KptChart_Case_7_Conditional_0_For_5_Template, 2, 4, ":svg:text", null, i0.ɵɵrepeaterTrackByIndex);
417
422
  i0.ɵɵrepeaterCreate(6, KptChart_Case_7_Conditional_0_For_7_Template, 2, 4, ":svg:text", null, i0.ɵɵrepeaterTrackByIndex);
418
423
  i0.ɵɵelementEnd();
419
- i0.ɵɵelementStart(8, "g", 24);
420
- i0.ɵɵrepeaterCreate(9, KptChart_Case_7_Conditional_0_For_10_Template, 1, 7, ":svg:path", 25, _forTrack1);
424
+ i0.ɵɵelementStart(8, "g", 27);
425
+ i0.ɵɵrepeaterCreate(9, KptChart_Case_7_Conditional_0_For_10_Template, 1, 7, ":svg:path", 28, _forTrack1);
421
426
  i0.ɵɵelementEnd();
422
427
  } if (rf & 2) {
423
428
  const vm_r19 = ctx;
@@ -441,14 +446,14 @@ function KptChart_Case_7_Template(rf, ctx) { if (rf & 1) {
441
446
  } }
442
447
  function KptChart_Case_8_Conditional_0_For_2_Template(rf, ctx) { if (rf & 1) {
443
448
  i0.ɵɵnamespaceSVG();
444
- i0.ɵɵelement(0, "path", 27);
449
+ i0.ɵɵelement(0, "path", 30);
445
450
  } if (rf & 2) {
446
451
  const r_r20 = ctx.$implicit;
447
452
  i0.ɵɵattribute("d", r_r20);
448
453
  } }
449
454
  function KptChart_Case_8_Conditional_0_For_4_Template(rf, ctx) { if (rf & 1) {
450
455
  i0.ɵɵnamespaceSVG();
451
- i0.ɵɵelement(0, "line", 11);
456
+ i0.ɵɵelement(0, "line", 14);
452
457
  } if (rf & 2) {
453
458
  const a_r21 = ctx.$implicit;
454
459
  i0.ɵɵattribute("x1", a_r21.x1)("y1", a_r21.y1)("x2", a_r21.x2)("y2", a_r21.y2);
@@ -467,7 +472,7 @@ function KptChart_Case_8_Conditional_0_For_7_Template(rf, ctx) { if (rf & 1) {
467
472
  function KptChart_Case_8_Conditional_0_For_9_For_3_Template(rf, ctx) { if (rf & 1) {
468
473
  const _r23 = i0.ɵɵgetCurrentView();
469
474
  i0.ɵɵnamespaceSVG();
470
- i0.ɵɵelementStart(0, "circle", 32);
475
+ i0.ɵɵelementStart(0, "circle", 35);
471
476
  i0.ɵɵlistener("pointerenter", function KptChart_Case_8_Conditional_0_For_9_For_3_Template_circle_pointerenter_0_listener() { const p_r24 = i0.ɵɵrestoreView(_r23).$implicit; const s_r25 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.showTip(p_r24.x, p_r24.y, s_r25.name, p_r24.label, p_r24.value, s_r25.color)); })("pointerleave", function KptChart_Case_8_Conditional_0_For_9_For_3_Template_circle_pointerleave_0_listener() { i0.ɵɵrestoreView(_r23); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.hideTip()); });
472
477
  i0.ɵɵelementEnd();
473
478
  } if (rf & 2) {
@@ -479,9 +484,9 @@ function KptChart_Case_8_Conditional_0_For_9_For_3_Template(rf, ctx) { if (rf &
479
484
  } }
480
485
  function KptChart_Case_8_Conditional_0_For_9_Template(rf, ctx) { if (rf & 1) {
481
486
  i0.ɵɵnamespaceSVG();
482
- i0.ɵɵelementStart(0, "g", 29);
483
- i0.ɵɵelement(1, "path", 30);
484
- i0.ɵɵrepeaterCreate(2, KptChart_Case_8_Conditional_0_For_9_For_3_Template, 1, 6, ":svg:circle", 31, i0.ɵɵrepeaterTrackByIndex);
487
+ i0.ɵɵelementStart(0, "g", 32);
488
+ i0.ɵɵelement(1, "path", 33);
489
+ i0.ɵɵrepeaterCreate(2, KptChart_Case_8_Conditional_0_For_9_For_3_Template, 1, 6, ":svg:circle", 34, i0.ɵɵrepeaterTrackByIndex);
485
490
  i0.ɵɵelementEnd();
486
491
  } if (rf & 2) {
487
492
  const s_r25 = ctx.$implicit;
@@ -495,14 +500,14 @@ function KptChart_Case_8_Conditional_0_For_9_Template(rf, ctx) { if (rf & 1) {
495
500
  } }
496
501
  function KptChart_Case_8_Conditional_0_Template(rf, ctx) { if (rf & 1) {
497
502
  i0.ɵɵnamespaceSVG();
498
- i0.ɵɵelementStart(0, "g", 10);
499
- i0.ɵɵrepeaterCreate(1, KptChart_Case_8_Conditional_0_For_2_Template, 1, 1, ":svg:path", 27, i0.ɵɵrepeaterTrackByIndex);
500
- i0.ɵɵrepeaterCreate(3, KptChart_Case_8_Conditional_0_For_4_Template, 1, 4, ":svg:line", 11, i0.ɵɵrepeaterTrackByIndex);
503
+ i0.ɵɵelementStart(0, "g", 13);
504
+ i0.ɵɵrepeaterCreate(1, KptChart_Case_8_Conditional_0_For_2_Template, 1, 1, ":svg:path", 30, i0.ɵɵrepeaterTrackByIndex);
505
+ i0.ɵɵrepeaterCreate(3, KptChart_Case_8_Conditional_0_For_4_Template, 1, 4, ":svg:line", 14, i0.ɵɵrepeaterTrackByIndex);
501
506
  i0.ɵɵelementEnd();
502
- i0.ɵɵelementStart(5, "g", 13);
507
+ i0.ɵɵelementStart(5, "g", 16);
503
508
  i0.ɵɵrepeaterCreate(6, KptChart_Case_8_Conditional_0_For_7_Template, 2, 4, ":svg:text", null, i0.ɵɵrepeaterTrackByIndex);
504
509
  i0.ɵɵelementEnd();
505
- i0.ɵɵrepeaterCreate(8, KptChart_Case_8_Conditional_0_For_9_Template, 4, 7, ":svg:g", 28, _forTrack0);
510
+ i0.ɵɵrepeaterCreate(8, KptChart_Case_8_Conditional_0_For_9_Template, 4, 7, ":svg:g", 31, _forTrack0);
506
511
  } if (rf & 2) {
507
512
  const vm_r27 = ctx;
508
513
  i0.ɵɵadvance();
@@ -524,7 +529,7 @@ function KptChart_Case_8_Template(rf, ctx) { if (rf & 1) {
524
529
  function KptChart_Case_9_Conditional_0_For_2_Template(rf, ctx) { if (rf & 1) {
525
530
  const _r28 = i0.ɵɵgetCurrentView();
526
531
  i0.ɵɵnamespaceSVG();
527
- i0.ɵɵelementStart(0, "path", 35);
532
+ i0.ɵɵelementStart(0, "path", 38);
528
533
  i0.ɵɵlistener("pointerenter", function KptChart_Case_9_Conditional_0_For_2_Template_path_pointerenter_0_listener() { const sl_r29 = i0.ɵɵrestoreView(_r28).$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.showTip(sl_r29.tipX, sl_r29.tipY, sl_r29.label, "", sl_r29.value, sl_r29.color)); })("pointerleave", function KptChart_Case_9_Conditional_0_For_2_Template_path_pointerleave_0_listener() { i0.ɵɵrestoreView(_r28); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.hideTip()); });
529
534
  i0.ɵɵelementEnd();
530
535
  } if (rf & 2) {
@@ -537,29 +542,71 @@ function KptChart_Case_9_Conditional_0_For_2_Template(rf, ctx) { if (rf & 1) {
537
542
  } }
538
543
  function KptChart_Case_9_Conditional_0_Template(rf, ctx) { if (rf & 1) {
539
544
  i0.ɵɵnamespaceSVG();
540
- i0.ɵɵelementStart(0, "g", 33);
541
- i0.ɵɵrepeaterCreate(1, KptChart_Case_9_Conditional_0_For_2_Template, 1, 7, ":svg:path", 34, _forTrack0);
545
+ i0.ɵɵelementStart(0, "g", 36);
546
+ i0.ɵɵrepeaterCreate(1, KptChart_Case_9_Conditional_0_For_2_Template, 1, 7, ":svg:path", 37, _forTrack0);
542
547
  i0.ɵɵelementEnd();
543
548
  } if (rf & 2) {
544
549
  i0.ɵɵadvance();
545
550
  i0.ɵɵrepeater(ctx);
546
551
  } }
547
552
  function KptChart_Case_9_Template(rf, ctx) { if (rf & 1) {
548
- i0.ɵɵconditionalCreate(0, KptChart_Case_9_Conditional_0_Template, 3, 0, ":svg:g", 33);
553
+ i0.ɵɵconditionalCreate(0, KptChart_Case_9_Conditional_0_Template, 3, 0, ":svg:g", 36);
549
554
  } if (rf & 2) {
550
555
  let tmp_1_0;
551
556
  const ctx_r0 = i0.ɵɵnextContext();
552
557
  i0.ɵɵconditional((tmp_1_0 = ctx_r0.pieVm()) ? 0 : -1, tmp_1_0);
553
558
  } }
554
- function KptChart_Conditional_11_Template(rf, ctx) { if (rf & 1) {
555
- const _r31 = i0.ɵɵgetCurrentView();
556
- i0.ɵɵelementStart(0, "kpt-chart-legend", 36);
557
- i0.ɵɵlistener("seriesToggle", function KptChart_Conditional_11_Template_kpt_chart_legend_seriesToggle_0_listener($event) { i0.ɵɵrestoreView(_r31); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onToggle($event)); })("highlight", function KptChart_Conditional_11_Template_kpt_chart_legend_highlight_0_listener($event) { i0.ɵɵrestoreView(_r31); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onHighlight($event)); });
559
+ function KptChart_Conditional_10_Template(rf, ctx) { if (rf & 1) {
560
+ i0.ɵɵelementStart(0, "p", 6);
561
+ i0.ɵɵtext(1);
562
+ i0.ɵɵelementEnd();
563
+ } if (rf & 2) {
564
+ const ctx_r0 = i0.ɵɵnextContext();
565
+ i0.ɵɵproperty("id", ctx_r0.descId);
566
+ i0.ɵɵadvance();
567
+ i0.ɵɵtextInterpolate(ctx_r0.config().description);
568
+ } }
569
+ function KptChart_For_19_Template(rf, ctx) { if (rf & 1) {
570
+ i0.ɵɵelementStart(0, "th", 8);
571
+ i0.ɵɵtext(1);
572
+ i0.ɵɵelementEnd();
573
+ } if (rf & 2) {
574
+ const col_r31 = ctx.$implicit;
575
+ i0.ɵɵadvance();
576
+ i0.ɵɵtextInterpolate(col_r31);
577
+ } }
578
+ function KptChart_For_22_For_4_Template(rf, ctx) { if (rf & 1) {
579
+ i0.ɵɵelementStart(0, "td");
580
+ i0.ɵɵtext(1);
581
+ i0.ɵɵelementEnd();
582
+ } if (rf & 2) {
583
+ const value_r32 = ctx.$implicit;
584
+ i0.ɵɵadvance();
585
+ i0.ɵɵtextInterpolate(value_r32);
586
+ } }
587
+ function KptChart_For_22_Template(rf, ctx) { if (rf & 1) {
588
+ i0.ɵɵelementStart(0, "tr")(1, "th", 39);
589
+ i0.ɵɵtext(2);
590
+ i0.ɵɵelementEnd();
591
+ i0.ɵɵrepeaterCreate(3, KptChart_For_22_For_4_Template, 2, 1, "td", null, i0.ɵɵrepeaterTrackByIndex);
592
+ i0.ɵɵelementEnd();
593
+ } if (rf & 2) {
594
+ const row_r33 = ctx.$implicit;
595
+ i0.ɵɵadvance(2);
596
+ i0.ɵɵtextInterpolate(row_r33.label);
597
+ i0.ɵɵadvance();
598
+ i0.ɵɵrepeater(row_r33.values);
599
+ } }
600
+ function KptChart_Conditional_24_Template(rf, ctx) { if (rf & 1) {
601
+ const _r34 = i0.ɵɵgetCurrentView();
602
+ i0.ɵɵelementStart(0, "kpt-chart-legend", 40);
603
+ i0.ɵɵlistener("seriesToggle", function KptChart_Conditional_24_Template_kpt_chart_legend_seriesToggle_0_listener($event) { i0.ɵɵrestoreView(_r34); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onToggle($event)); })("highlight", function KptChart_Conditional_24_Template_kpt_chart_legend_highlight_0_listener($event) { i0.ɵɵrestoreView(_r34); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onHighlight($event)); });
558
604
  i0.ɵɵelementEnd();
559
605
  } if (rf & 2) {
560
606
  const ctx_r0 = i0.ɵɵnextContext();
561
607
  i0.ɵɵproperty("items", ctx_r0.legendItems())("position", ctx_r0.legendOpts().position)("align", ctx_r0.legendOpts().align)("pointStyle", ctx_r0.legendOpts().pointStyle)("title", ctx_r0.legendOpts().title);
562
608
  } }
609
+ let nextChartId = 0;
563
610
  const VERTICAL_INSETS = { top: 12, right: 16, bottom: 28, left: 46 };
564
611
  const HORIZONTAL_INSETS = { top: 12, right: 16, bottom: 28, left: 76 };
565
612
  /**
@@ -581,6 +628,18 @@ class KptChart {
581
628
  /** Wysokość viewBoxa (jednostki SVG). */
582
629
  this.height = input(360, /* @ts-ignore */
583
630
  ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
631
+ this.i18n = inject(KptI18n);
632
+ /** Id opisu (`config.description`) dla `aria-describedby` wykresu. */
633
+ this.descId = `kpt-chart-${++nextChartId}-desc`;
634
+ /**
635
+ * Alternatywa tekstowa (WCAG 1.1.1): SVG `role="img"` dostaje nazwę (`ariaLabel` -> tytuł -> i18n),
636
+ * a dane idą do ukrytej wizualnie tabeli, po której czytnik chodzi komórka po komórce - dymek
637
+ * na najechanie jest dostępny tylko myszą.
638
+ */
639
+ this.accessibleName = computed(() => chartAccessibleName(this.config(), this.i18n.t('chart.label')), /* @ts-ignore */
640
+ ...(ngDevMode ? [{ debugName: "accessibleName" }] : /* istanbul ignore next */ []));
641
+ this.dataTable = computed(() => chartDataTable(this.config(), this.i18n.locale()), /* @ts-ignore */
642
+ ...(ngDevMode ? [{ debugName: "dataTable" }] : /* istanbul ignore next */ []));
584
643
  // --- Stan interakcji ---
585
644
  this.hidden = signal(new Set(), /* @ts-ignore */
586
645
  ...(ngDevMode ? [{ debugName: "hidden" }] : /* istanbul ignore next */ []));
@@ -848,7 +907,7 @@ class KptChart {
848
907
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptChart, selectors: [["kpt-chart"]], hostAttrs: [1, "kpt-chart-host"], hostVars: 8, hostBindings: function KptChart_HostBindings(rf, ctx) { if (rf & 2) {
849
908
  i0.ɵɵstyleProp("--%NS%kpt-chart-duration", ctx.anim().duration + "ms")("--%NS%kpt-chart-stagger", ctx.anim().stagger + "ms")("--%NS%kpt-chart-delay", ctx.anim().delay + "ms");
850
909
  i0.ɵɵclassProp("kpt-chart--no-anim", !ctx.anim().enabled);
851
- } }, inputs: { config: [1, "config"], width: [1, "width"], height: [1, "height"] }, decls: 12, vars: 7, consts: [[1, "kpt-chart"], [1, "kpt-chart__title", 3, "text-align", "color", "font-family", "font-size", "font-weight", "padding-top", "padding-bottom"], [1, "kpt-chart__subtitle", 3, "text-align", "color", "font-family", "font-size", "font-weight", "padding-top", "padding-bottom"], [1, "kpt-chart__body"], [1, "kpt-chart__canvas"], ["role", "img", "preserveAspectRatio", "xMidYMid meet", 1, "kpt-chart__svg"], [3, "state"], [3, "items", "position", "align", "pointStyle", "title"], [1, "kpt-chart__title"], [1, "kpt-chart__subtitle"], [1, "kpt-chart__grid"], [1, "kpt-chart__gridline"], [1, "kpt-chart__crosshair"], [1, "kpt-chart__axis"], [1, "kpt-chart__cat-active"], [1, "kpt-chart__series", 3, "kpt-chart__series--dim"], ["text-anchor", "middle"], [1, "kpt-chart__series"], [1, "kpt-chart__area", 3, "fill"], ["pathLength", "1", 1, "kpt-chart__line"], [1, "kpt-chart__area"], ["r", "4", 1, "kpt-chart__point", 3, "kpt-chart__point--active", "fill", "--%NS%kpt-chart-i"], ["r", "12", 1, "kpt-chart__hit", 3, "pointerenter", "pointerleave"], ["r", "4", 1, "kpt-chart__point"], [1, "kpt-chart__bars"], [1, "kpt-chart__bar", 3, "kpt-chart__series--dim", "fill", "--%NS%kpt-chart-i"], [1, "kpt-chart__bar", 3, "pointerenter", "pointerleave"], [1, "kpt-chart__ring"], [1, "kpt-chart__series", "kpt-chart__radar", 3, "kpt-chart__series--dim"], [1, "kpt-chart__series", "kpt-chart__radar"], [1, "kpt-chart__radar-area"], ["r", "4", 1, "kpt-chart__point", 3, "fill", "--%NS%kpt-chart-i"], ["r", "4", 1, "kpt-chart__point", 3, "pointerenter", "pointerleave"], [1, "kpt-chart__slices"], [1, "kpt-chart__slice", 3, "kpt-chart__series--dim", "fill", "--%NS%kpt-chart-i"], [1, "kpt-chart__slice", 3, "pointerenter", "pointerleave"], [3, "seriesToggle", "highlight", "items", "position", "align", "pointStyle", "title"]], template: function KptChart_Template(rf, ctx) { if (rf & 1) {
910
+ } }, inputs: { config: [1, "config"], width: [1, "width"], height: [1, "height"] }, decls: 25, vars: 13, consts: [[1, "kpt-chart"], [1, "kpt-chart__title", 3, "text-align", "color", "font-family", "font-size", "font-weight", "padding-top", "padding-bottom"], [1, "kpt-chart__subtitle", 3, "text-align", "color", "font-family", "font-size", "font-weight", "padding-top", "padding-bottom"], [1, "kpt-chart__body"], [1, "kpt-chart__canvas"], ["role", "img", "preserveAspectRatio", "xMidYMid meet", 1, "kpt-chart__svg"], [1, "kpt-chart__sr", 3, "id"], [1, "kpt-chart__sr"], ["scope", "col"], [3, "state"], [3, "items", "position", "align", "pointStyle", "title"], [1, "kpt-chart__title"], [1, "kpt-chart__subtitle"], [1, "kpt-chart__grid"], [1, "kpt-chart__gridline"], [1, "kpt-chart__crosshair"], [1, "kpt-chart__axis"], [1, "kpt-chart__cat-active"], [1, "kpt-chart__series", 3, "kpt-chart__series--dim"], ["text-anchor", "middle"], [1, "kpt-chart__series"], [1, "kpt-chart__area", 3, "fill"], ["pathLength", "1", 1, "kpt-chart__line"], [1, "kpt-chart__area"], ["r", "4", 1, "kpt-chart__point", 3, "kpt-chart__point--active", "fill", "--%NS%kpt-chart-i"], ["r", "12", 1, "kpt-chart__hit", 3, "pointerenter", "pointerleave"], ["r", "4", 1, "kpt-chart__point"], [1, "kpt-chart__bars"], [1, "kpt-chart__bar", 3, "kpt-chart__series--dim", "fill", "--%NS%kpt-chart-i"], [1, "kpt-chart__bar", 3, "pointerenter", "pointerleave"], [1, "kpt-chart__ring"], [1, "kpt-chart__series", "kpt-chart__radar", 3, "kpt-chart__series--dim"], [1, "kpt-chart__series", "kpt-chart__radar"], [1, "kpt-chart__radar-area"], ["r", "4", 1, "kpt-chart__point", 3, "fill", "--%NS%kpt-chart-i"], ["r", "4", 1, "kpt-chart__point", 3, "pointerenter", "pointerleave"], [1, "kpt-chart__slices"], [1, "kpt-chart__slice", 3, "kpt-chart__series--dim", "fill", "--%NS%kpt-chart-i"], [1, "kpt-chart__slice", 3, "pointerenter", "pointerleave"], ["scope", "row"], [3, "seriesToggle", "highlight", "items", "position", "align", "pointStyle", "title"]], template: function KptChart_Template(rf, ctx) { if (rf & 1) {
852
911
  i0.ɵɵelementStart(0, "div", 0);
853
912
  i0.ɵɵconditionalCreate(1, KptChart_Conditional_1_Template, 2, 15, "div", 1);
854
913
  i0.ɵɵconditionalCreate(2, KptChart_Conditional_2_Template, 2, 15, "div", 2);
@@ -857,27 +916,49 @@ class KptChart {
857
916
  i0.ɵɵelementStart(5, "svg", 5);
858
917
  i0.ɵɵconditionalCreate(6, KptChart_Case_6_Template, 1, 1)(7, KptChart_Case_7_Template, 1, 1)(8, KptChart_Case_8_Template, 1, 1)(9, KptChart_Case_9_Template, 1, 1);
859
918
  i0.ɵɵelementEnd();
919
+ i0.ɵɵconditionalCreate(10, KptChart_Conditional_10_Template, 2, 2, "p", 6);
860
920
  i0.ɵɵnamespaceHTML();
861
- i0.ɵɵelement(10, "kpt-chart-tooltip", 6);
921
+ i0.ɵɵelementStart(11, "table", 7)(12, "caption");
922
+ i0.ɵɵtext(13);
923
+ i0.ɵɵelementEnd();
924
+ i0.ɵɵelementStart(14, "thead")(15, "tr")(16, "th", 8);
925
+ i0.ɵɵtext(17);
862
926
  i0.ɵɵelementEnd();
863
- i0.ɵɵconditionalCreate(11, KptChart_Conditional_11_Template, 1, 5, "kpt-chart-legend", 7);
927
+ i0.ɵɵrepeaterCreate(18, KptChart_For_19_Template, 2, 1, "th", 8, i0.ɵɵrepeaterTrackByIndex);
928
+ i0.ɵɵelementEnd()();
929
+ i0.ɵɵelementStart(20, "tbody");
930
+ i0.ɵɵrepeaterCreate(21, KptChart_For_22_Template, 5, 1, "tr", null, i0.ɵɵrepeaterTrackByIndex);
931
+ i0.ɵɵelementEnd()();
932
+ i0.ɵɵelement(23, "kpt-chart-tooltip", 9);
933
+ i0.ɵɵelementEnd();
934
+ i0.ɵɵconditionalCreate(24, KptChart_Conditional_24_Template, 1, 5, "kpt-chart-legend", 10);
864
935
  i0.ɵɵelementEnd()();
865
936
  } if (rf & 2) {
866
- let tmp_4_0;
937
+ let tmp_6_0;
867
938
  i0.ɵɵattribute("data-legend", ctx.legendOpts().display ? ctx.legendOpts().position : null);
868
939
  i0.ɵɵadvance();
869
940
  i0.ɵɵconditional(ctx.titleOpts()?.display && ctx.titleOpts()?.text ? 1 : -1);
870
941
  i0.ɵɵadvance();
871
942
  i0.ɵɵconditional(ctx.subtitleOpts()?.display && ctx.subtitleOpts()?.text ? 2 : -1);
872
943
  i0.ɵɵadvance(3);
873
- i0.ɵɵattribute("viewBox", "0 0 " + ctx.width() + " " + ctx.height());
944
+ i0.ɵɵattribute("viewBox", "0 0 " + ctx.width() + " " + ctx.height())("aria-label", ctx.accessibleName())("aria-describedby", ctx.config().description ? ctx.descId : null);
874
945
  i0.ɵɵadvance();
875
- i0.ɵɵconditional((tmp_4_0 = ctx.type()) === "line" ? 6 : tmp_4_0 === "bar" ? 7 : tmp_4_0 === "radar" ? 8 : 9);
946
+ i0.ɵɵconditional((tmp_6_0 = ctx.type()) === "line" ? 6 : tmp_6_0 === "bar" ? 7 : tmp_6_0 === "radar" ? 8 : 9);
947
+ i0.ɵɵadvance(4);
948
+ i0.ɵɵconditional(ctx.config().description ? 10 : -1);
949
+ i0.ɵɵadvance(3);
950
+ i0.ɵɵtextInterpolate2("", ctx.i18n.t("chart.dataTable"), ": ", ctx.accessibleName());
876
951
  i0.ɵɵadvance(4);
952
+ i0.ɵɵtextInterpolate(ctx.i18n.t("chart.category"));
953
+ i0.ɵɵadvance();
954
+ i0.ɵɵrepeater(ctx.dataTable().columns);
955
+ i0.ɵɵadvance(3);
956
+ i0.ɵɵrepeater(ctx.dataTable().rows);
957
+ i0.ɵɵadvance(2);
877
958
  i0.ɵɵproperty("state", ctx.tooltip());
878
959
  i0.ɵɵadvance();
879
- i0.ɵɵconditional(ctx.legendOpts().display ? 11 : -1);
880
- } }, dependencies: [KptChartLegend, KptChartTooltip], styles: ["@layer kpt.components{.kpt-chart-host{display:block;--%NS%kpt-chart-duration: .4s;--%NS%kpt-chart-stagger: 60ms;--%NS%kpt-chart-delay: 0ms;--%NS%kpt-chart-ease: cubic-bezier(.25, 1, .5, 1)}.kpt-chart{display:flex;flex-direction:column;gap:var(--%NS%kpt-space-2, .5rem);color:var(--%NS%kpt-color-on-surface)}.kpt-chart__title{font-size:var(--%NS%kpt-font-size-lg, 1.125rem);font-weight:var(--%NS%kpt-font-weight-semibold, 600);color:var(--%NS%kpt-color-on-surface)}.kpt-chart__subtitle{font-size:var(--%NS%kpt-font-size-sm, .875rem);color:var(--%NS%kpt-color-on-surface-muted, #6b7280)}.kpt-chart__body{display:flex;gap:var(--%NS%kpt-space-3, .75rem);align-items:center;min-width:0}.kpt-chart[data-legend=top] .kpt-chart__body,.kpt-chart[data-legend=bottom] .kpt-chart__body{flex-direction:column}.kpt-chart[data-legend=top] .kpt-chart-legend-host,.kpt-chart[data-legend=left] .kpt-chart-legend-host{order:-1}.kpt-chart__canvas{position:relative;flex:1 1 auto;min-width:0;width:100%}.kpt-chart__svg{display:block;width:100%;height:auto}.kpt-chart__gridline{stroke:var(--%NS%kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__ring{fill:none;stroke:var(--%NS%kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__axis text{fill:var(--%NS%kpt-color-on-surface-muted, #6b7280);font-size:11px;font-family:var(--%NS%kpt-font-family-sans)}.kpt-chart__crosshair{stroke:var(--%NS%kpt-color-border-strong);stroke-width:1;stroke-dasharray:4 4;opacity:.75;pointer-events:none}.kpt-chart__cat-active{pointer-events:none}.kpt-chart__cat-active rect{fill:var(--%NS%kpt-color-on-surface)}.kpt-chart__cat-active text{fill:var(--%NS%kpt-color-surface);font-size:11px;font-weight:var(--%NS%kpt-font-weight-medium, 500);font-family:var(--%NS%kpt-font-family-sans)}.kpt-chart__series,.kpt-chart__bar,.kpt-chart__slice{transition:opacity .2s var(--%NS%kpt-chart-ease)}.kpt-chart__series--dim{opacity:.22}.kpt-chart__line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.kpt-chart__area{stroke:none;opacity:.15}.kpt-chart__point{stroke:var(--%NS%kpt-color-surface);stroke-width:2;cursor:pointer;transition:transform .15s var(--%NS%kpt-chart-ease);transform-box:fill-box;transform-origin:center}.kpt-chart__point:hover{transform:scale(1.4)}.kpt-chart__point--active{transform:scale(1.5)}.kpt-chart__hit{fill:transparent;pointer-events:all;cursor:pointer}.kpt-chart__bar{cursor:pointer}.kpt-chart__slice{cursor:pointer;stroke:var(--%NS%kpt-color-surface);stroke-width:1.5}.kpt-chart__radar-area{fill-opacity:.18;stroke-width:2;stroke-linejoin:round}.kpt-chart__legend-title{font-size:var(--%NS%kpt-font-size-sm, .875rem);font-weight:var(--%NS%kpt-font-weight-medium, 500);color:var(--%NS%kpt-color-on-surface-muted);margin-bottom:var(--%NS%kpt-space-1, .25rem)}.kpt-chart__legend-list{display:flex;flex-wrap:wrap;gap:var(--%NS%kpt-space-2, .5rem) var(--%NS%kpt-space-4, 1rem);align-items:center;justify-content:center;margin:0;padding:0;list-style:none}.kpt-chart__legend[data-align=start] .kpt-chart__legend-list{justify-content:flex-start}.kpt-chart__legend[data-align=end] .kpt-chart__legend-list{justify-content:flex-end}.kpt-chart__legend[data-position=left] .kpt-chart__legend-list,.kpt-chart__legend[data-position=right] .kpt-chart__legend-list{flex-direction:column;align-items:flex-start}.kpt-chart__legend-item{display:inline-flex;align-items:center;gap:var(--%NS%kpt-space-2, .5rem);padding:0;border:0;background:none;cursor:pointer;font:inherit;font-size:var(--%NS%kpt-font-size-sm, .875rem);color:var(--%NS%kpt-color-on-surface)}.kpt-chart__legend-item--hidden{opacity:.45}.kpt-chart__legend-item--hidden .kpt-chart__legend-label{text-decoration:line-through}.kpt-chart__legend-marker{display:inline-block;width:12px;height:12px;background:var(--%NS%kpt-chart-legend-color);flex:none}.kpt-chart__legend-marker[data-style=circle]{border-radius:var(--%NS%kpt-radius-full, 9999px)}.kpt-chart__legend-marker[data-style=rect]{border-radius:var(--%NS%kpt-radius-sm, .25rem)}.kpt-chart__legend-marker[data-style=rectRot]{transform:rotate(45deg);border-radius:2px}.kpt-chart__legend-marker[data-style=triangle]{background:none;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:12px solid var(--%NS%kpt-chart-legend-color)}.kpt-chart__legend-marker[data-style=line]{height:3px;border-radius:var(--%NS%kpt-radius-full, 9999px)}.kpt-chart__tooltip{position:absolute;transform:translate(-50%,calc(-100% - 10px));pointer-events:none;background:var(--%NS%kpt-color-surface-raised, var(--%NS%kpt-color-surface));color:var(--%NS%kpt-color-on-surface);border:1px solid var(--%NS%kpt-color-border);border-radius:var(--%NS%kpt-radius-md, .5rem);box-shadow:0 4px 16px #0000001f;padding:var(--%NS%kpt-space-2, .5rem) var(--%NS%kpt-space-3, .75rem);font-size:var(--%NS%kpt-font-size-sm, .875rem);white-space:nowrap;z-index:2}.kpt-chart__tooltip--flip{transform:translate(-50%,12px)}.kpt-chart__tooltip-title{font-weight:var(--%NS%kpt-font-weight-semibold, 600);margin-bottom:2px}.kpt-chart__tooltip-row{display:flex;align-items:center;gap:var(--%NS%kpt-space-2, .5rem)}.kpt-chart__tooltip-dot{width:8px;height:8px;border-radius:var(--%NS%kpt-radius-full, 9999px);flex:none}.kpt-chart__tooltip-name{color:var(--%NS%kpt-color-on-surface-muted)}.kpt-chart__tooltip-val{margin-left:auto;font-weight:var(--%NS%kpt-font-weight-medium, 500)}.kpt-chart__line{stroke-dasharray:1;stroke-dashoffset:1;animation:kpt-chart-draw var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) var(--%NS%kpt-chart-delay) forwards}.kpt-chart__area{animation:kpt-chart-fade var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) var(--%NS%kpt-chart-delay) backwards}.kpt-chart__point{animation:kpt-chart-fade var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-duration) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=vertical] .kpt-chart__bar{transform-box:fill-box;transform-origin:bottom;animation:kpt-chart-grow-y var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=horizontal] .kpt-chart__bar{transform-box:fill-box;transform-origin:left;animation:kpt-chart-grow-x var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__slice,.kpt-chart__radar-area{transform-box:fill-box;transform-origin:center}.kpt-chart__slice{animation:kpt-chart-pop var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__radar-area{animation:kpt-chart-pop var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) var(--%NS%kpt-chart-delay) backwards}@keyframes kpt-chart-draw{to{stroke-dashoffset:0}}@keyframes kpt-chart-fade{0%{opacity:0}}@keyframes kpt-chart-grow-y{0%{transform:scaleY(0)}}@keyframes kpt-chart-grow-x{0%{transform:scaleX(0)}}@keyframes kpt-chart-pop{0%{transform:scale(0);opacity:0}}.kpt-chart--%NS%no-anim :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}@media(prefers-reduced-motion:reduce){.kpt-chart :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}}}\n"], encapsulation: 2 }); }
960
+ i0.ɵɵconditional(ctx.legendOpts().display ? 24 : -1);
961
+ } }, dependencies: [KptChartLegend, KptChartTooltip], styles: ["@layer kpt.components{.kpt-chart-host{display:block;--%NS%kpt-chart-duration: .4s;--%NS%kpt-chart-stagger: 60ms;--%NS%kpt-chart-delay: 0ms;--%NS%kpt-chart-ease: cubic-bezier(.25, 1, .5, 1)}.kpt-chart{display:flex;flex-direction:column;gap:var(--%NS%kpt-space-2, .5rem);color:var(--%NS%kpt-color-on-surface)}.kpt-chart__title{font-size:var(--%NS%kpt-font-size-lg, 1.125rem);font-weight:var(--%NS%kpt-font-weight-semibold, 600);color:var(--%NS%kpt-color-on-surface)}.kpt-chart__subtitle{font-size:var(--%NS%kpt-font-size-sm, .875rem);color:var(--%NS%kpt-color-on-surface-muted, #6b7280)}.kpt-chart__body{display:flex;gap:var(--%NS%kpt-space-3, .75rem);align-items:center;min-width:0}.kpt-chart[data-legend=top] .kpt-chart__body,.kpt-chart[data-legend=bottom] .kpt-chart__body{flex-direction:column}.kpt-chart[data-legend=top] .kpt-chart-legend-host,.kpt-chart[data-legend=left] .kpt-chart-legend-host{order:-1}.kpt-chart__canvas{position:relative;flex:1 1 auto;min-width:0;width:100%}.kpt-chart__svg{display:block;width:100%;height:auto}.kpt-chart__gridline{stroke:var(--%NS%kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__ring{fill:none;stroke:var(--%NS%kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__axis text{fill:var(--%NS%kpt-color-on-surface-muted, #6b7280);font-size:11px;font-family:var(--%NS%kpt-font-family-sans)}.kpt-chart__crosshair{stroke:var(--%NS%kpt-color-border-strong);stroke-width:1;stroke-dasharray:4 4;opacity:.75;pointer-events:none}.kpt-chart__cat-active{pointer-events:none}.kpt-chart__cat-active rect{fill:var(--%NS%kpt-color-on-surface)}.kpt-chart__cat-active text{fill:var(--%NS%kpt-color-surface);font-size:11px;font-weight:var(--%NS%kpt-font-weight-medium, 500);font-family:var(--%NS%kpt-font-family-sans)}.kpt-chart__series,.kpt-chart__bar,.kpt-chart__slice{transition:opacity .2s var(--%NS%kpt-chart-ease)}.kpt-chart__series--dim{opacity:.22}.kpt-chart__line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.kpt-chart__area{stroke:none;opacity:.15}.kpt-chart__point{stroke:var(--%NS%kpt-color-surface);stroke-width:2;cursor:pointer;transition:transform .15s var(--%NS%kpt-chart-ease);transform-box:fill-box;transform-origin:center}.kpt-chart__point:hover{transform:scale(1.4)}.kpt-chart__point--active{transform:scale(1.5)}.kpt-chart__hit{fill:transparent;pointer-events:all;cursor:pointer}.kpt-chart__bar{cursor:pointer}.kpt-chart__slice{cursor:pointer;stroke:var(--%NS%kpt-color-surface);stroke-width:1.5}.kpt-chart__radar-area{fill-opacity:.18;stroke-width:2;stroke-linejoin:round}.kpt-chart__legend-title{font-size:var(--%NS%kpt-font-size-sm, .875rem);font-weight:var(--%NS%kpt-font-weight-medium, 500);color:var(--%NS%kpt-color-on-surface-muted);margin-bottom:var(--%NS%kpt-space-1, .25rem)}.kpt-chart__legend-list{display:flex;flex-wrap:wrap;gap:var(--%NS%kpt-space-2, .5rem) var(--%NS%kpt-space-4, 1rem);align-items:center;justify-content:center;margin:0;padding:0;list-style:none}.kpt-chart__legend[data-align=start] .kpt-chart__legend-list{justify-content:flex-start}.kpt-chart__legend[data-align=end] .kpt-chart__legend-list{justify-content:flex-end}.kpt-chart__legend[data-position=left] .kpt-chart__legend-list,.kpt-chart__legend[data-position=right] .kpt-chart__legend-list{flex-direction:column;align-items:flex-start}.kpt-chart__legend-item{display:inline-flex;align-items:center;gap:var(--%NS%kpt-space-2, .5rem);padding:0;border:0;background:none;cursor:pointer;font:inherit;font-size:var(--%NS%kpt-font-size-sm, .875rem);color:var(--%NS%kpt-color-on-surface)}.kpt-chart__legend-item--hidden{opacity:.45}.kpt-chart__legend-item--hidden .kpt-chart__legend-label{text-decoration:line-through}.kpt-chart__legend-marker{display:inline-block;width:12px;height:12px;background:var(--%NS%kpt-chart-legend-color);flex:none}.kpt-chart__legend-marker[data-style=circle]{border-radius:var(--%NS%kpt-radius-full, 9999px)}.kpt-chart__legend-marker[data-style=rect]{border-radius:var(--%NS%kpt-radius-sm, .25rem)}.kpt-chart__legend-marker[data-style=rectRot]{transform:rotate(45deg);border-radius:2px}.kpt-chart__legend-marker[data-style=triangle]{background:none;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:12px solid var(--%NS%kpt-chart-legend-color)}.kpt-chart__legend-marker[data-style=line]{height:3px;border-radius:var(--%NS%kpt-radius-full, 9999px)}.kpt-chart__tooltip{position:absolute;transform:translate(-50%,calc(-100% - 10px));pointer-events:none;background:var(--%NS%kpt-color-surface-raised, var(--%NS%kpt-color-surface));color:var(--%NS%kpt-color-on-surface);border:1px solid var(--%NS%kpt-color-border);border-radius:var(--%NS%kpt-radius-md, .5rem);box-shadow:0 4px 16px #0000001f;padding:var(--%NS%kpt-space-2, .5rem) var(--%NS%kpt-space-3, .75rem);font-size:var(--%NS%kpt-font-size-sm, .875rem);white-space:nowrap;z-index:2}.kpt-chart__tooltip--flip{transform:translate(-50%,12px)}.kpt-chart__tooltip-title{font-weight:var(--%NS%kpt-font-weight-semibold, 600);margin-bottom:2px}.kpt-chart__tooltip-row{display:flex;align-items:center;gap:var(--%NS%kpt-space-2, .5rem)}.kpt-chart__tooltip-dot{width:8px;height:8px;border-radius:var(--%NS%kpt-radius-full, 9999px);flex:none}.kpt-chart__tooltip-name{color:var(--%NS%kpt-color-on-surface-muted)}.kpt-chart__tooltip-val{margin-left:auto;font-weight:var(--%NS%kpt-font-weight-medium, 500)}.kpt-chart__line{stroke-dasharray:1;stroke-dashoffset:1;animation:kpt-chart-draw var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) var(--%NS%kpt-chart-delay) forwards}.kpt-chart__area{animation:kpt-chart-fade var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) var(--%NS%kpt-chart-delay) backwards}.kpt-chart__point{animation:kpt-chart-fade var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-duration) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=vertical] .kpt-chart__bar{transform-box:fill-box;transform-origin:bottom;animation:kpt-chart-grow-y var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=horizontal] .kpt-chart__bar{transform-box:fill-box;transform-origin:left;animation:kpt-chart-grow-x var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__slice,.kpt-chart__radar-area{transform-box:fill-box;transform-origin:center}.kpt-chart__slice{animation:kpt-chart-pop var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__radar-area{animation:kpt-chart-pop var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) var(--%NS%kpt-chart-delay) backwards}@keyframes kpt-chart-draw{to{stroke-dashoffset:0}}@keyframes kpt-chart-fade{0%{opacity:0}}@keyframes kpt-chart-grow-y{0%{transform:scaleY(0)}}@keyframes kpt-chart-grow-x{0%{transform:scaleX(0)}}@keyframes kpt-chart-pop{0%{transform:scale(0);opacity:0}}.kpt-chart--%NS%no-anim :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}@media(prefers-reduced-motion:reduce){.kpt-chart :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}}.kpt-chart__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}\n"], encapsulation: 2 }); }
881
962
  }
882
963
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(KptChart, [{
883
964
  type: Component,
@@ -887,9 +968,9 @@ class KptChart {
887
968
  '[style.--kpt-chart-duration]': "anim().duration + 'ms'",
888
969
  '[style.--kpt-chart-stagger]': "anim().stagger + 'ms'",
889
970
  '[style.--kpt-chart-delay]': "anim().delay + 'ms'",
890
- }, template: "<div class=\"kpt-chart\" [attr.data-legend]=\"legendOpts().display ? legendOpts().position : null\">\n @if (titleOpts()?.display && titleOpts()?.text) {\n <div\n class=\"kpt-chart__title\"\n [style.text-align]=\"titleStyle()\"\n [style.color]=\"titleOpts()?.color\"\n [style.font-family]=\"titleOpts()?.font?.family\"\n [style.font-size.px]=\"titleOpts()?.font?.size\"\n [style.font-weight]=\"titleOpts()?.font?.weight\"\n [style.padding-top.px]=\"titleOpts()?.padding?.top\"\n [style.padding-bottom.px]=\"titleOpts()?.padding?.bottom\"\n >\n {{ titleOpts()?.text }}\n </div>\n }\n @if (subtitleOpts()?.display && subtitleOpts()?.text) {\n <div\n class=\"kpt-chart__subtitle\"\n [style.text-align]=\"subtitleStyle()\"\n [style.color]=\"subtitleOpts()?.color\"\n [style.font-family]=\"subtitleOpts()?.font?.family\"\n [style.font-size.px]=\"subtitleOpts()?.font?.size\"\n [style.font-weight]=\"subtitleOpts()?.font?.weight\"\n [style.padding-top.px]=\"subtitleOpts()?.padding?.top\"\n [style.padding-bottom.px]=\"subtitleOpts()?.padding?.bottom\"\n >\n {{ subtitleOpts()?.text }}\n </div>\n }\n\n <div class=\"kpt-chart__body\">\n <div class=\"kpt-chart__canvas\">\n <svg [attr.viewBox]=\"'0 0 ' + width() + ' ' + height()\" class=\"kpt-chart__svg\" role=\"img\" preserveAspectRatio=\"xMidYMid meet\">\n @switch (type()) {\n @case ('line') {\n @if (lineVm(); as vm) {\n <g class=\"kpt-chart__grid\">\n @for (g of vm.grid; track $index) {\n <line class=\"kpt-chart__gridline\" [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\" />\n }\n </g>\n @if (crosshair(); as ch) {\n <line class=\"kpt-chart__crosshair\" [attr.x1]=\"ch.x\" [attr.y1]=\"ch.y1\" [attr.x2]=\"ch.x\" [attr.y2]=\"ch.y2\" />\n }\n <g class=\"kpt-chart__axis\">\n @for (l of vm.valueLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n @for (l of vm.catLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n </g>\n @if (crosshair(); as ch) {\n <g class=\"kpt-chart__cat-active\">\n <rect [attr.x]=\"ch.pillX\" [attr.y]=\"ch.pillY\" [attr.width]=\"ch.pillW\" [attr.height]=\"ch.pillH\" [attr.rx]=\"ch.pillH / 2\" />\n <text [attr.x]=\"ch.labelX\" [attr.y]=\"ch.labelY\" text-anchor=\"middle\">{{ ch.text }}</text>\n </g>\n }\n @for (s of vm.series; track s.key) {\n <g class=\"kpt-chart__series\" [class.kpt-chart__series--dim]=\"dim(s.key)\">\n @if (s.area) {\n <path class=\"kpt-chart__area\" [attr.d]=\"s.area\" [style.fill]=\"s.color\" />\n }\n <path class=\"kpt-chart__line\" [attr.d]=\"s.path\" [style.stroke]=\"s.color\" pathLength=\"1\" />\n @for (p of s.points; track $index) {\n @if (vm.showPoints) {\n <circle\n class=\"kpt-chart__point\"\n [class.kpt-chart__point--active]=\"activeIndex() === $index\"\n [attr.cx]=\"p.x\"\n [attr.cy]=\"p.y\"\n r=\"4\"\n [style.fill]=\"s.color\"\n [style.--kpt-chart-i]=\"$index\"\n />\n }\n <circle\n class=\"kpt-chart__hit\"\n [attr.cx]=\"p.x\"\n [attr.cy]=\"p.y\"\n r=\"12\"\n (pointerenter)=\"onLineEnter($index, p.x, p.y, s.name, p.label, p.value, s.color)\"\n (pointerleave)=\"onLineLeave()\"\n />\n }\n </g>\n }\n }\n }\n\n @case ('bar') {\n @if (barVm(); as vm) {\n <g class=\"kpt-chart__grid\">\n @for (g of vm.grid; track $index) {\n <line class=\"kpt-chart__gridline\" [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\" />\n }\n </g>\n <g class=\"kpt-chart__axis\">\n @for (l of vm.valueLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n @for (l of vm.catLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n </g>\n <g class=\"kpt-chart__bars\" [attr.data-orientation]=\"vm.orientation\">\n @for (b of vm.bars; track b.key + '#' + b.index) {\n <path\n class=\"kpt-chart__bar\"\n [class.kpt-chart__series--dim]=\"dim(b.key)\"\n [attr.d]=\"b.path\"\n [style.fill]=\"b.color\"\n [style.--kpt-chart-i]=\"b.index\"\n (pointerenter)=\"showTip(b.tipX, b.tipY, b.name, b.label, b.value, b.color)\"\n (pointerleave)=\"hideTip()\"\n />\n }\n </g>\n }\n }\n\n @case ('radar') {\n @if (radarVm(); as vm) {\n <g class=\"kpt-chart__grid\">\n @for (r of vm.rings; track $index) {\n <path class=\"kpt-chart__ring\" [attr.d]=\"r\" />\n }\n @for (a of vm.axisLines; track $index) {\n <line class=\"kpt-chart__gridline\" [attr.x1]=\"a.x1\" [attr.y1]=\"a.y1\" [attr.x2]=\"a.x2\" [attr.y2]=\"a.y2\" />\n }\n </g>\n <g class=\"kpt-chart__axis\">\n @for (l of vm.axisLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n </g>\n @for (s of vm.series; track s.key) {\n <g class=\"kpt-chart__series kpt-chart__radar\" [class.kpt-chart__series--dim]=\"dim(s.key)\">\n <path class=\"kpt-chart__radar-area\" [attr.d]=\"s.polygon\" [style.fill]=\"s.color\" [style.stroke]=\"s.color\" />\n @for (p of s.points; track $index) {\n <circle\n class=\"kpt-chart__point\"\n [attr.cx]=\"p.x\"\n [attr.cy]=\"p.y\"\n r=\"4\"\n [style.fill]=\"s.color\"\n [style.--kpt-chart-i]=\"$index\"\n (pointerenter)=\"showTip(p.x, p.y, s.name, p.label, p.value, s.color)\"\n (pointerleave)=\"hideTip()\"\n />\n }\n </g>\n }\n }\n }\n\n @default {\n @if (pieVm(); as slices) {\n <g class=\"kpt-chart__slices\">\n @for (sl of slices; track sl.key) {\n <path\n class=\"kpt-chart__slice\"\n [class.kpt-chart__series--dim]=\"dim(sl.key)\"\n [attr.d]=\"sl.path\"\n [style.fill]=\"sl.color\"\n [style.--kpt-chart-i]=\"$index\"\n (pointerenter)=\"showTip(sl.tipX, sl.tipY, sl.label, '', sl.value, sl.color)\"\n (pointerleave)=\"hideTip()\"\n />\n }\n </g>\n }\n }\n }\n </svg>\n\n <kpt-chart-tooltip [state]=\"tooltip()\" />\n </div>\n\n @if (legendOpts().display) {\n <kpt-chart-legend\n [items]=\"legendItems()\"\n [position]=\"legendOpts().position\"\n [align]=\"legendOpts().align\"\n [pointStyle]=\"legendOpts().pointStyle\"\n [title]=\"legendOpts().title\"\n (seriesToggle)=\"onToggle($event)\"\n (highlight)=\"onHighlight($event)\"\n />\n }\n </div>\n</div>\n", styles: ["@layer kpt.components{.kpt-chart-host{display:block;--kpt-chart-duration: .4s;--kpt-chart-stagger: 60ms;--kpt-chart-delay: 0ms;--kpt-chart-ease: cubic-bezier(.25, 1, .5, 1)}.kpt-chart{display:flex;flex-direction:column;gap:var(--kpt-space-2, .5rem);color:var(--kpt-color-on-surface)}.kpt-chart__title{font-size:var(--kpt-font-size-lg, 1.125rem);font-weight:var(--kpt-font-weight-semibold, 600);color:var(--kpt-color-on-surface)}.kpt-chart__subtitle{font-size:var(--kpt-font-size-sm, .875rem);color:var(--kpt-color-on-surface-muted, #6b7280)}.kpt-chart__body{display:flex;gap:var(--kpt-space-3, .75rem);align-items:center;min-width:0}.kpt-chart[data-legend=top] .kpt-chart__body,.kpt-chart[data-legend=bottom] .kpt-chart__body{flex-direction:column}.kpt-chart[data-legend=top] .kpt-chart-legend-host,.kpt-chart[data-legend=left] .kpt-chart-legend-host{order:-1}.kpt-chart__canvas{position:relative;flex:1 1 auto;min-width:0;width:100%}.kpt-chart__svg{display:block;width:100%;height:auto}.kpt-chart__gridline{stroke:var(--kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__ring{fill:none;stroke:var(--kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__axis text{fill:var(--kpt-color-on-surface-muted, #6b7280);font-size:11px;font-family:var(--kpt-font-family-sans)}.kpt-chart__crosshair{stroke:var(--kpt-color-border-strong);stroke-width:1;stroke-dasharray:4 4;opacity:.75;pointer-events:none}.kpt-chart__cat-active{pointer-events:none}.kpt-chart__cat-active rect{fill:var(--kpt-color-on-surface)}.kpt-chart__cat-active text{fill:var(--kpt-color-surface);font-size:11px;font-weight:var(--kpt-font-weight-medium, 500);font-family:var(--kpt-font-family-sans)}.kpt-chart__series,.kpt-chart__bar,.kpt-chart__slice{transition:opacity .2s var(--kpt-chart-ease)}.kpt-chart__series--dim{opacity:.22}.kpt-chart__line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.kpt-chart__area{stroke:none;opacity:.15}.kpt-chart__point{stroke:var(--kpt-color-surface);stroke-width:2;cursor:pointer;transition:transform .15s var(--kpt-chart-ease);transform-box:fill-box;transform-origin:center}.kpt-chart__point:hover{transform:scale(1.4)}.kpt-chart__point--active{transform:scale(1.5)}.kpt-chart__hit{fill:transparent;pointer-events:all;cursor:pointer}.kpt-chart__bar{cursor:pointer}.kpt-chart__slice{cursor:pointer;stroke:var(--kpt-color-surface);stroke-width:1.5}.kpt-chart__radar-area{fill-opacity:.18;stroke-width:2;stroke-linejoin:round}.kpt-chart__legend-title{font-size:var(--kpt-font-size-sm, .875rem);font-weight:var(--kpt-font-weight-medium, 500);color:var(--kpt-color-on-surface-muted);margin-bottom:var(--kpt-space-1, .25rem)}.kpt-chart__legend-list{display:flex;flex-wrap:wrap;gap:var(--kpt-space-2, .5rem) var(--kpt-space-4, 1rem);align-items:center;justify-content:center;margin:0;padding:0;list-style:none}.kpt-chart__legend[data-align=start] .kpt-chart__legend-list{justify-content:flex-start}.kpt-chart__legend[data-align=end] .kpt-chart__legend-list{justify-content:flex-end}.kpt-chart__legend[data-position=left] .kpt-chart__legend-list,.kpt-chart__legend[data-position=right] .kpt-chart__legend-list{flex-direction:column;align-items:flex-start}.kpt-chart__legend-item{display:inline-flex;align-items:center;gap:var(--kpt-space-2, .5rem);padding:0;border:0;background:none;cursor:pointer;font:inherit;font-size:var(--kpt-font-size-sm, .875rem);color:var(--kpt-color-on-surface)}.kpt-chart__legend-item--hidden{opacity:.45}.kpt-chart__legend-item--hidden .kpt-chart__legend-label{text-decoration:line-through}.kpt-chart__legend-marker{display:inline-block;width:12px;height:12px;background:var(--kpt-chart-legend-color);flex:none}.kpt-chart__legend-marker[data-style=circle]{border-radius:var(--kpt-radius-full, 9999px)}.kpt-chart__legend-marker[data-style=rect]{border-radius:var(--kpt-radius-sm, .25rem)}.kpt-chart__legend-marker[data-style=rectRot]{transform:rotate(45deg);border-radius:2px}.kpt-chart__legend-marker[data-style=triangle]{background:none;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:12px solid var(--kpt-chart-legend-color)}.kpt-chart__legend-marker[data-style=line]{height:3px;border-radius:var(--kpt-radius-full, 9999px)}.kpt-chart__tooltip{position:absolute;transform:translate(-50%,calc(-100% - 10px));pointer-events:none;background:var(--kpt-color-surface-raised, var(--kpt-color-surface));color:var(--kpt-color-on-surface);border:1px solid var(--kpt-color-border);border-radius:var(--kpt-radius-md, .5rem);box-shadow:0 4px 16px #0000001f;padding:var(--kpt-space-2, .5rem) var(--kpt-space-3, .75rem);font-size:var(--kpt-font-size-sm, .875rem);white-space:nowrap;z-index:2}.kpt-chart__tooltip--flip{transform:translate(-50%,12px)}.kpt-chart__tooltip-title{font-weight:var(--kpt-font-weight-semibold, 600);margin-bottom:2px}.kpt-chart__tooltip-row{display:flex;align-items:center;gap:var(--kpt-space-2, .5rem)}.kpt-chart__tooltip-dot{width:8px;height:8px;border-radius:var(--kpt-radius-full, 9999px);flex:none}.kpt-chart__tooltip-name{color:var(--kpt-color-on-surface-muted)}.kpt-chart__tooltip-val{margin-left:auto;font-weight:var(--kpt-font-weight-medium, 500)}.kpt-chart__line{stroke-dasharray:1;stroke-dashoffset:1;animation:kpt-chart-draw var(--kpt-chart-duration) var(--kpt-chart-ease) var(--kpt-chart-delay) forwards}.kpt-chart__area{animation:kpt-chart-fade var(--kpt-chart-duration) var(--kpt-chart-ease) var(--kpt-chart-delay) backwards}.kpt-chart__point{animation:kpt-chart-fade var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-duration) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=vertical] .kpt-chart__bar{transform-box:fill-box;transform-origin:bottom;animation:kpt-chart-grow-y var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=horizontal] .kpt-chart__bar{transform-box:fill-box;transform-origin:left;animation:kpt-chart-grow-x var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__slice,.kpt-chart__radar-area{transform-box:fill-box;transform-origin:center}.kpt-chart__slice{animation:kpt-chart-pop var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__radar-area{animation:kpt-chart-pop var(--kpt-chart-duration) var(--kpt-chart-ease) var(--kpt-chart-delay) backwards}@keyframes kpt-chart-draw{to{stroke-dashoffset:0}}@keyframes kpt-chart-fade{0%{opacity:0}}@keyframes kpt-chart-grow-y{0%{transform:scaleY(0)}}@keyframes kpt-chart-grow-x{0%{transform:scaleX(0)}}@keyframes kpt-chart-pop{0%{transform:scale(0);opacity:0}}.kpt-chart--no-anim :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}@media(prefers-reduced-motion:reduce){.kpt-chart :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}}}\n"] }]
971
+ }, template: "<div class=\"kpt-chart\" [attr.data-legend]=\"legendOpts().display ? legendOpts().position : null\">\n @if (titleOpts()?.display && titleOpts()?.text) {\n <div\n class=\"kpt-chart__title\"\n [style.text-align]=\"titleStyle()\"\n [style.color]=\"titleOpts()?.color\"\n [style.font-family]=\"titleOpts()?.font?.family\"\n [style.font-size.px]=\"titleOpts()?.font?.size\"\n [style.font-weight]=\"titleOpts()?.font?.weight\"\n [style.padding-top.px]=\"titleOpts()?.padding?.top\"\n [style.padding-bottom.px]=\"titleOpts()?.padding?.bottom\"\n >\n {{ titleOpts()?.text }}\n </div>\n }\n @if (subtitleOpts()?.display && subtitleOpts()?.text) {\n <div\n class=\"kpt-chart__subtitle\"\n [style.text-align]=\"subtitleStyle()\"\n [style.color]=\"subtitleOpts()?.color\"\n [style.font-family]=\"subtitleOpts()?.font?.family\"\n [style.font-size.px]=\"subtitleOpts()?.font?.size\"\n [style.font-weight]=\"subtitleOpts()?.font?.weight\"\n [style.padding-top.px]=\"subtitleOpts()?.padding?.top\"\n [style.padding-bottom.px]=\"subtitleOpts()?.padding?.bottom\"\n >\n {{ subtitleOpts()?.text }}\n </div>\n }\n\n <div class=\"kpt-chart__body\">\n <div class=\"kpt-chart__canvas\">\n <svg\n [attr.viewBox]=\"'0 0 ' + width() + ' ' + height()\"\n class=\"kpt-chart__svg\"\n role=\"img\"\n [attr.aria-label]=\"accessibleName()\"\n [attr.aria-describedby]=\"config().description ? descId : null\"\n preserveAspectRatio=\"xMidYMid meet\"\n >\n @switch (type()) {\n @case ('line') {\n @if (lineVm(); as vm) {\n <g class=\"kpt-chart__grid\">\n @for (g of vm.grid; track $index) {\n <line class=\"kpt-chart__gridline\" [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\" />\n }\n </g>\n @if (crosshair(); as ch) {\n <line class=\"kpt-chart__crosshair\" [attr.x1]=\"ch.x\" [attr.y1]=\"ch.y1\" [attr.x2]=\"ch.x\" [attr.y2]=\"ch.y2\" />\n }\n <g class=\"kpt-chart__axis\">\n @for (l of vm.valueLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n @for (l of vm.catLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n </g>\n @if (crosshair(); as ch) {\n <g class=\"kpt-chart__cat-active\">\n <rect [attr.x]=\"ch.pillX\" [attr.y]=\"ch.pillY\" [attr.width]=\"ch.pillW\" [attr.height]=\"ch.pillH\" [attr.rx]=\"ch.pillH / 2\" />\n <text [attr.x]=\"ch.labelX\" [attr.y]=\"ch.labelY\" text-anchor=\"middle\">{{ ch.text }}</text>\n </g>\n }\n @for (s of vm.series; track s.key) {\n <g class=\"kpt-chart__series\" [class.kpt-chart__series--dim]=\"dim(s.key)\">\n @if (s.area) {\n <path class=\"kpt-chart__area\" [attr.d]=\"s.area\" [style.fill]=\"s.color\" />\n }\n <path class=\"kpt-chart__line\" [attr.d]=\"s.path\" [style.stroke]=\"s.color\" pathLength=\"1\" />\n @for (p of s.points; track $index) {\n @if (vm.showPoints) {\n <circle\n class=\"kpt-chart__point\"\n [class.kpt-chart__point--active]=\"activeIndex() === $index\"\n [attr.cx]=\"p.x\"\n [attr.cy]=\"p.y\"\n r=\"4\"\n [style.fill]=\"s.color\"\n [style.--kpt-chart-i]=\"$index\"\n />\n }\n <circle\n class=\"kpt-chart__hit\"\n [attr.cx]=\"p.x\"\n [attr.cy]=\"p.y\"\n r=\"12\"\n (pointerenter)=\"onLineEnter($index, p.x, p.y, s.name, p.label, p.value, s.color)\"\n (pointerleave)=\"onLineLeave()\"\n />\n }\n </g>\n }\n }\n }\n\n @case ('bar') {\n @if (barVm(); as vm) {\n <g class=\"kpt-chart__grid\">\n @for (g of vm.grid; track $index) {\n <line class=\"kpt-chart__gridline\" [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\" />\n }\n </g>\n <g class=\"kpt-chart__axis\">\n @for (l of vm.valueLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n @for (l of vm.catLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n </g>\n <g class=\"kpt-chart__bars\" [attr.data-orientation]=\"vm.orientation\">\n @for (b of vm.bars; track b.key + '#' + b.index) {\n <path\n class=\"kpt-chart__bar\"\n [class.kpt-chart__series--dim]=\"dim(b.key)\"\n [attr.d]=\"b.path\"\n [style.fill]=\"b.color\"\n [style.--kpt-chart-i]=\"b.index\"\n (pointerenter)=\"showTip(b.tipX, b.tipY, b.name, b.label, b.value, b.color)\"\n (pointerleave)=\"hideTip()\"\n />\n }\n </g>\n }\n }\n\n @case ('radar') {\n @if (radarVm(); as vm) {\n <g class=\"kpt-chart__grid\">\n @for (r of vm.rings; track $index) {\n <path class=\"kpt-chart__ring\" [attr.d]=\"r\" />\n }\n @for (a of vm.axisLines; track $index) {\n <line class=\"kpt-chart__gridline\" [attr.x1]=\"a.x1\" [attr.y1]=\"a.y1\" [attr.x2]=\"a.x2\" [attr.y2]=\"a.y2\" />\n }\n </g>\n <g class=\"kpt-chart__axis\">\n @for (l of vm.axisLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n </g>\n @for (s of vm.series; track s.key) {\n <g class=\"kpt-chart__series kpt-chart__radar\" [class.kpt-chart__series--dim]=\"dim(s.key)\">\n <path class=\"kpt-chart__radar-area\" [attr.d]=\"s.polygon\" [style.fill]=\"s.color\" [style.stroke]=\"s.color\" />\n @for (p of s.points; track $index) {\n <circle\n class=\"kpt-chart__point\"\n [attr.cx]=\"p.x\"\n [attr.cy]=\"p.y\"\n r=\"4\"\n [style.fill]=\"s.color\"\n [style.--kpt-chart-i]=\"$index\"\n (pointerenter)=\"showTip(p.x, p.y, s.name, p.label, p.value, s.color)\"\n (pointerleave)=\"hideTip()\"\n />\n }\n </g>\n }\n }\n }\n\n @default {\n @if (pieVm(); as slices) {\n <g class=\"kpt-chart__slices\">\n @for (sl of slices; track sl.key) {\n <path\n class=\"kpt-chart__slice\"\n [class.kpt-chart__series--dim]=\"dim(sl.key)\"\n [attr.d]=\"sl.path\"\n [style.fill]=\"sl.color\"\n [style.--kpt-chart-i]=\"$index\"\n (pointerenter)=\"showTip(sl.tipX, sl.tipY, sl.label, '', sl.value, sl.color)\"\n (pointerleave)=\"hideTip()\"\n />\n }\n </g>\n }\n }\n }\n </svg>\n @if (config().description) {\n <p class=\"kpt-chart__sr\" [id]=\"descId\">{{ config().description }}</p>\n }\n <!-- Dane wykresu dla czytnika: tabela ukryta wizualnie, nie przez display:none. -->\n <table class=\"kpt-chart__sr\">\n <caption>{{ i18n.t('chart.dataTable') }}: {{ accessibleName() }}</caption>\n <thead>\n <tr>\n <th scope=\"col\">{{ i18n.t('chart.category') }}</th>\n @for (col of dataTable().columns; track $index) {\n <th scope=\"col\">{{ col }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of dataTable().rows; track $index) {\n <tr>\n <th scope=\"row\">{{ row.label }}</th>\n @for (value of row.values; track $index) {\n <td>{{ value }}</td>\n }\n </tr>\n }\n </tbody>\n </table>\n\n <kpt-chart-tooltip [state]=\"tooltip()\" />\n </div>\n\n @if (legendOpts().display) {\n <kpt-chart-legend\n [items]=\"legendItems()\"\n [position]=\"legendOpts().position\"\n [align]=\"legendOpts().align\"\n [pointStyle]=\"legendOpts().pointStyle\"\n [title]=\"legendOpts().title\"\n (seriesToggle)=\"onToggle($event)\"\n (highlight)=\"onHighlight($event)\"\n />\n }\n </div>\n</div>\n", styles: ["@layer kpt.components{.kpt-chart-host{display:block;--kpt-chart-duration: .4s;--kpt-chart-stagger: 60ms;--kpt-chart-delay: 0ms;--kpt-chart-ease: cubic-bezier(.25, 1, .5, 1)}.kpt-chart{display:flex;flex-direction:column;gap:var(--kpt-space-2, .5rem);color:var(--kpt-color-on-surface)}.kpt-chart__title{font-size:var(--kpt-font-size-lg, 1.125rem);font-weight:var(--kpt-font-weight-semibold, 600);color:var(--kpt-color-on-surface)}.kpt-chart__subtitle{font-size:var(--kpt-font-size-sm, .875rem);color:var(--kpt-color-on-surface-muted, #6b7280)}.kpt-chart__body{display:flex;gap:var(--kpt-space-3, .75rem);align-items:center;min-width:0}.kpt-chart[data-legend=top] .kpt-chart__body,.kpt-chart[data-legend=bottom] .kpt-chart__body{flex-direction:column}.kpt-chart[data-legend=top] .kpt-chart-legend-host,.kpt-chart[data-legend=left] .kpt-chart-legend-host{order:-1}.kpt-chart__canvas{position:relative;flex:1 1 auto;min-width:0;width:100%}.kpt-chart__svg{display:block;width:100%;height:auto}.kpt-chart__gridline{stroke:var(--kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__ring{fill:none;stroke:var(--kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__axis text{fill:var(--kpt-color-on-surface-muted, #6b7280);font-size:11px;font-family:var(--kpt-font-family-sans)}.kpt-chart__crosshair{stroke:var(--kpt-color-border-strong);stroke-width:1;stroke-dasharray:4 4;opacity:.75;pointer-events:none}.kpt-chart__cat-active{pointer-events:none}.kpt-chart__cat-active rect{fill:var(--kpt-color-on-surface)}.kpt-chart__cat-active text{fill:var(--kpt-color-surface);font-size:11px;font-weight:var(--kpt-font-weight-medium, 500);font-family:var(--kpt-font-family-sans)}.kpt-chart__series,.kpt-chart__bar,.kpt-chart__slice{transition:opacity .2s var(--kpt-chart-ease)}.kpt-chart__series--dim{opacity:.22}.kpt-chart__line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.kpt-chart__area{stroke:none;opacity:.15}.kpt-chart__point{stroke:var(--kpt-color-surface);stroke-width:2;cursor:pointer;transition:transform .15s var(--kpt-chart-ease);transform-box:fill-box;transform-origin:center}.kpt-chart__point:hover{transform:scale(1.4)}.kpt-chart__point--active{transform:scale(1.5)}.kpt-chart__hit{fill:transparent;pointer-events:all;cursor:pointer}.kpt-chart__bar{cursor:pointer}.kpt-chart__slice{cursor:pointer;stroke:var(--kpt-color-surface);stroke-width:1.5}.kpt-chart__radar-area{fill-opacity:.18;stroke-width:2;stroke-linejoin:round}.kpt-chart__legend-title{font-size:var(--kpt-font-size-sm, .875rem);font-weight:var(--kpt-font-weight-medium, 500);color:var(--kpt-color-on-surface-muted);margin-bottom:var(--kpt-space-1, .25rem)}.kpt-chart__legend-list{display:flex;flex-wrap:wrap;gap:var(--kpt-space-2, .5rem) var(--kpt-space-4, 1rem);align-items:center;justify-content:center;margin:0;padding:0;list-style:none}.kpt-chart__legend[data-align=start] .kpt-chart__legend-list{justify-content:flex-start}.kpt-chart__legend[data-align=end] .kpt-chart__legend-list{justify-content:flex-end}.kpt-chart__legend[data-position=left] .kpt-chart__legend-list,.kpt-chart__legend[data-position=right] .kpt-chart__legend-list{flex-direction:column;align-items:flex-start}.kpt-chart__legend-item{display:inline-flex;align-items:center;gap:var(--kpt-space-2, .5rem);padding:0;border:0;background:none;cursor:pointer;font:inherit;font-size:var(--kpt-font-size-sm, .875rem);color:var(--kpt-color-on-surface)}.kpt-chart__legend-item--hidden{opacity:.45}.kpt-chart__legend-item--hidden .kpt-chart__legend-label{text-decoration:line-through}.kpt-chart__legend-marker{display:inline-block;width:12px;height:12px;background:var(--kpt-chart-legend-color);flex:none}.kpt-chart__legend-marker[data-style=circle]{border-radius:var(--kpt-radius-full, 9999px)}.kpt-chart__legend-marker[data-style=rect]{border-radius:var(--kpt-radius-sm, .25rem)}.kpt-chart__legend-marker[data-style=rectRot]{transform:rotate(45deg);border-radius:2px}.kpt-chart__legend-marker[data-style=triangle]{background:none;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:12px solid var(--kpt-chart-legend-color)}.kpt-chart__legend-marker[data-style=line]{height:3px;border-radius:var(--kpt-radius-full, 9999px)}.kpt-chart__tooltip{position:absolute;transform:translate(-50%,calc(-100% - 10px));pointer-events:none;background:var(--kpt-color-surface-raised, var(--kpt-color-surface));color:var(--kpt-color-on-surface);border:1px solid var(--kpt-color-border);border-radius:var(--kpt-radius-md, .5rem);box-shadow:0 4px 16px #0000001f;padding:var(--kpt-space-2, .5rem) var(--kpt-space-3, .75rem);font-size:var(--kpt-font-size-sm, .875rem);white-space:nowrap;z-index:2}.kpt-chart__tooltip--flip{transform:translate(-50%,12px)}.kpt-chart__tooltip-title{font-weight:var(--kpt-font-weight-semibold, 600);margin-bottom:2px}.kpt-chart__tooltip-row{display:flex;align-items:center;gap:var(--kpt-space-2, .5rem)}.kpt-chart__tooltip-dot{width:8px;height:8px;border-radius:var(--kpt-radius-full, 9999px);flex:none}.kpt-chart__tooltip-name{color:var(--kpt-color-on-surface-muted)}.kpt-chart__tooltip-val{margin-left:auto;font-weight:var(--kpt-font-weight-medium, 500)}.kpt-chart__line{stroke-dasharray:1;stroke-dashoffset:1;animation:kpt-chart-draw var(--kpt-chart-duration) var(--kpt-chart-ease) var(--kpt-chart-delay) forwards}.kpt-chart__area{animation:kpt-chart-fade var(--kpt-chart-duration) var(--kpt-chart-ease) var(--kpt-chart-delay) backwards}.kpt-chart__point{animation:kpt-chart-fade var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-duration) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=vertical] .kpt-chart__bar{transform-box:fill-box;transform-origin:bottom;animation:kpt-chart-grow-y var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=horizontal] .kpt-chart__bar{transform-box:fill-box;transform-origin:left;animation:kpt-chart-grow-x var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__slice,.kpt-chart__radar-area{transform-box:fill-box;transform-origin:center}.kpt-chart__slice{animation:kpt-chart-pop var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__radar-area{animation:kpt-chart-pop var(--kpt-chart-duration) var(--kpt-chart-ease) var(--kpt-chart-delay) backwards}@keyframes kpt-chart-draw{to{stroke-dashoffset:0}}@keyframes kpt-chart-fade{0%{opacity:0}}@keyframes kpt-chart-grow-y{0%{transform:scaleY(0)}}@keyframes kpt-chart-grow-x{0%{transform:scaleX(0)}}@keyframes kpt-chart-pop{0%{transform:scale(0);opacity:0}}.kpt-chart--no-anim :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}@media(prefers-reduced-motion:reduce){.kpt-chart :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}}.kpt-chart__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}\n"] }]
891
972
  }], null, { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }] }); })();
892
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptChart, { className: "KptChart", filePath: "lib/chart.component.ts", lineNumber: 119 }); })();
973
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptChart, { className: "KptChart", filePath: "lib/chart.component.ts", lineNumber: 124 }); })();
893
974
  // Buduje SliceVm z pozycją tooltipa na promieniu środka wycinka.
894
975
  function tipSlice(entry, midAngle, tipRadius, cx, cy, path) {
895
976
  const p = polarToCartesian(cx, cy, tipRadius, midAngle);
@@ -904,8 +985,8 @@ function styleFor(align) {
904
985
  }
905
986
 
906
987
  /*
907
- * Public API — @konce-pt/angular/charts
908
- * Wykresy SVG dla Angulara (sygnały, zoneless). Rdzeń obliczeń mieszka w `@konce-pt/chart` —
988
+ * Public API - @konce-pt/angular/charts
989
+ * Wykresy SVG dla Angulara (sygnały, zoneless). Rdzeń obliczeń mieszka w `@konce-pt/chart` -
909
990
  * paczce bez frameworka, wspólnej z portem Reacta; tu tylko re-eksport, żeby publiczne API
910
991
  * subpathu się nie zmieniło.
911
992
  */