@ids-group-ltd/ids-design-system 0.12.3 → 0.13.1

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 (147) hide show
  1. package/CHANGELOG.md +895 -6
  2. package/components.md +94 -2
  3. package/docs/agent/INDEX.md +12 -1
  4. package/docs/agent/charts/chart-colour-which-palette-a-chart-takes.md +9 -0
  5. package/docs/agent/charts/chart-frame-the-box-a-chart-draws-around-itself.md +12 -0
  6. package/docs/agent/charts/ds-bar-chart.md +15 -0
  7. package/docs/agent/charts/ds-column-chart.md +14 -0
  8. package/docs/agent/charts/ds-config.md +12 -0
  9. package/docs/agent/charts/ds-donut-chart.md +17 -0
  10. package/docs/agent/charts/ds-funnel-chart.md +16 -0
  11. package/docs/agent/charts/ds-line-chart.md +15 -0
  12. package/docs/agent/forms/ds-button.md +4 -2
  13. package/docs/agent/forms/ds-number-stepper.md +1 -0
  14. package/docs/agent/navigation/ds-sidenav-item.md +1 -0
  15. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +25 -18
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +177 -0
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -0
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +58 -8
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +43 -0
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -0
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +212 -0
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -0
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +1 -0
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +10 -4
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +196 -0
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -0
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +18 -10
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +311 -0
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +1 -0
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +69 -17
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +388 -0
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -0
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +10 -14
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +672 -0
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -0
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +5 -5
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +10 -4
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +1 -0
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -10
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +1 -0
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +18 -10
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +18 -7
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +1 -0
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +4 -3
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +1 -0
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +30 -71
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +1 -0
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +10 -4
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +2 -2
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +31 -9
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +448 -12
  106. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +17 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +3 -0
  110. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system.mjs +10 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  113. package/migrations/0.13.0.json +530 -0
  114. package/migrations/0.13.1.json +236 -0
  115. package/package.json +57 -1
  116. package/styles/_chart-data-table.scss +95 -0
  117. package/styles/_chart-frame.scss +68 -0
  118. package/styles/_chart-interactive.scss +51 -0
  119. package/styles/_chart-motion.scss +88 -0
  120. package/styles/_dropdown-overlay.scss +9 -3
  121. package/styles/_focus.scss +11 -2
  122. package/styles/_overlay-motion.scss +10 -1
  123. package/styles/_tokens-charts.scss +154 -39
  124. package/styles/_tokens.scss +17 -4
  125. package/themes/dark/_theme.scss +37 -29
  126. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +17 -10
  127. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +119 -0
  128. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +37 -4
  129. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +34 -0
  130. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +84 -0
  131. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +6 -1
  132. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +125 -0
  133. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +10 -2
  134. package/types/ids-group-ltd-ids-design-system-components-donut-chart.d.ts +127 -0
  135. package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +52 -11
  136. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +128 -0
  137. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +5 -7
  138. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +268 -0
  139. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +6 -1
  140. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +11 -3
  141. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +16 -4
  142. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +13 -28
  143. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +6 -1
  144. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +11 -1
  145. package/types/ids-group-ltd-ids-design-system-components.d.ts +171 -5
  146. package/types/ids-group-ltd-ids-design-system-core.d.ts +36 -2
  147. package/types/ids-group-ltd-ids-design-system.d.ts +9 -2
@@ -0,0 +1,672 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, booleanAttribute, output, numberAttribute, computed, model, signal, contentChild, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
+ import { tickValues, niceMax, bandScale, linearScale, formatValue, CHART_SERIES_COLORS, staggerDelay, nextRovingIndex, focusMark, describeSeries, tickStep, formatTick } from '@ids-group-ltd/ids-design-system/components';
4
+ import { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';
5
+ import { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';
6
+ import { ChartTooltipDirective } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
7
+ import { ChartLegendComponent } from '@ids-group-ltd/ids-design-system/components/chart-legend';
8
+
9
+ const LINE_CHART_VIEW_WIDTH = 640;
10
+ const LINE_CHART_VIEW_HEIGHT = 320;
11
+ const LINE_CHART_DEFAULT_TICK_COUNT = 5;
12
+ const LINE_CHART_AXIS_LABEL_GAP = 8;
13
+ const AXIS_GUTTER = 46;
14
+ const BARE_EDGE_GUTTER = 12;
15
+ const PLOT_TOP = 14;
16
+ const CATEGORY_GUTTER = 30;
17
+ const CATEGORY_LABEL_OFFSET = 18;
18
+ const STACKED_PLOT_GAP = 34;
19
+ const MAX_CATEGORY_LABELS = 12;
20
+ const COORDINATE_DECIMALS = 2;
21
+ const TICK_DECIMALS = 6;
22
+ const ROUND_STEP_FACTORS = [1, 2, 5, 10];
23
+ // A step divided out of a domain and multiplied back rarely lands on itself, so a
24
+ // candidate equal to the minimum can compare as smaller by one bit and push the
25
+ // whole axis up a rung.
26
+ const ROUND_STEP_TOLERANCE = 1 - 1e-12;
27
+ function roundTo(value, decimals) {
28
+ if (!Number.isFinite(value)) {
29
+ return 0;
30
+ }
31
+ return Number(value.toFixed(decimals));
32
+ }
33
+ function normalizeTickCount(tickCount) {
34
+ return Number.isFinite(tickCount) && tickCount >= 1
35
+ ? Math.floor(tickCount)
36
+ : LINE_CHART_DEFAULT_TICK_COUNT;
37
+ }
38
+ /** One reading per category, however long the series actually was. A series longer
39
+ * than `categories` loses its tail and a shorter one ends early: a line that stops
40
+ * short is a defect the reader can see, while a thrown error takes down the page
41
+ * around it. Anything that is not a finite number is a missing reading, so `NaN`
42
+ * and `Infinity` follow the `gaps` policy rather than reaching a coordinate. */
43
+ function alignSeriesValues(data, categoryCount, gaps) {
44
+ const length = Number.isFinite(categoryCount) && categoryCount > 0
45
+ ? Math.floor(categoryCount)
46
+ : 0;
47
+ const aligned = [];
48
+ for (let index = 0; index < length; index++) {
49
+ const raw = data[index];
50
+ const reading = typeof raw === 'number' && Number.isFinite(raw) ? raw : null;
51
+ aligned.push(reading === null && gaps === 'zero' ? 0 : reading);
52
+ }
53
+ return aligned;
54
+ }
55
+ /** Largest finite reading across the given series, or zero. Never negative: the
56
+ * tick helpers only describe axes that start at zero, and a negative domain there
57
+ * is a division waiting to happen. */
58
+ function domainMaxOf(valueGroups) {
59
+ let max = 0;
60
+ for (const values of valueGroups) {
61
+ for (const value of values) {
62
+ if (value !== null && Number.isFinite(value) && value > max) {
63
+ max = value;
64
+ }
65
+ }
66
+ }
67
+ return max;
68
+ }
69
+ /** The smallest 1/2/5/10 × power-of-ten step that is not below `minimumStep`.
70
+ * `niceMax` picks its own number of intervals, so it cannot answer this: an aligned
71
+ * secondary axis has to reach its data within the intervals the primary already
72
+ * drew. */
73
+ function roundStepAtLeast(minimumStep) {
74
+ if (!Number.isFinite(minimumStep) || minimumStep <= 0) {
75
+ return 0;
76
+ }
77
+ const base = Math.pow(10, Math.floor(Math.log10(minimumStep)));
78
+ for (const factor of ROUND_STEP_FACTORS) {
79
+ const candidate = factor * base;
80
+ if (candidate >= minimumStep * ROUND_STEP_TOLERANCE) {
81
+ return candidate;
82
+ }
83
+ }
84
+ return 10 * base;
85
+ }
86
+ function nicedAxis(domainMax, tickCount) {
87
+ return {
88
+ max: niceMax(domainMax, tickCount),
89
+ ticks: tickValues(domainMax, tickCount),
90
+ };
91
+ }
92
+ /** Both y axes, as the four modes define them. `'rounded'` and `'exact'` share the
93
+ * primary's gridlines and differ only in the step they divide the secondary domain
94
+ * by: `'rounded'` snaps the step up to a round number and overshoots the data,
95
+ * `'exact'` takes the domain itself and lands on it. `'independent'` and
96
+ * `'stacked'` nice each axis on its own — stacked plots sit one above the other,
97
+ * so there is nothing to align. */
98
+ function axisLayout(primaryDomainMax, secondaryDomainMax, mode, tickCount) {
99
+ const count = normalizeTickCount(tickCount);
100
+ const primary = nicedAxis(primaryDomainMax, count);
101
+ if (secondaryDomainMax === null) {
102
+ return { primary, secondary: null, alignedTicks: true };
103
+ }
104
+ const intervals = primary.ticks.length - 1;
105
+ const canAlign = (mode === 'rounded' || mode === 'exact') &&
106
+ intervals >= 1 &&
107
+ Number.isFinite(secondaryDomainMax) &&
108
+ secondaryDomainMax > 0;
109
+ if (!canAlign) {
110
+ return {
111
+ primary,
112
+ secondary: nicedAxis(secondaryDomainMax, count),
113
+ alignedTicks: false,
114
+ };
115
+ }
116
+ const step = mode === 'rounded'
117
+ ? roundStepAtLeast(secondaryDomainMax / intervals)
118
+ : secondaryDomainMax / intervals;
119
+ if (step <= 0) {
120
+ return { primary, secondary: { max: 0, ticks: [0] }, alignedTicks: true };
121
+ }
122
+ const ticks = [];
123
+ for (let index = 0; index <= intervals; index++) {
124
+ ticks.push(roundTo(step * index, TICK_DECIMALS));
125
+ }
126
+ return {
127
+ primary,
128
+ secondary: { max: roundTo(step * intervals, TICK_DECIMALS), ticks },
129
+ alignedTicks: true,
130
+ };
131
+ }
132
+ function chartLayout(mode, hasSecondaryAxis) {
133
+ const stacked = mode === 'stacked' && hasSecondaryAxis;
134
+ const left = AXIS_GUTTER;
135
+ const right = hasSecondaryAxis && !stacked ? AXIS_GUTTER : BARE_EDGE_GUTTER;
136
+ const width = LINE_CHART_VIEW_WIDTH - left - right;
137
+ const plotBottom = LINE_CHART_VIEW_HEIGHT - CATEGORY_GUTTER;
138
+ const categoryLabelY = plotBottom + CATEGORY_LABEL_OFFSET;
139
+ if (!stacked) {
140
+ const plot = {
141
+ left,
142
+ top: PLOT_TOP,
143
+ width,
144
+ height: plotBottom - PLOT_TOP,
145
+ };
146
+ return {
147
+ primaryPlot: plot,
148
+ secondaryPlot: plot,
149
+ categoryLabelY,
150
+ stacked: false,
151
+ };
152
+ }
153
+ const height = (plotBottom - PLOT_TOP - STACKED_PLOT_GAP) / 2;
154
+ return {
155
+ primaryPlot: { left, top: PLOT_TOP, width, height },
156
+ secondaryPlot: {
157
+ left,
158
+ top: PLOT_TOP + height + STACKED_PLOT_GAP,
159
+ width,
160
+ height,
161
+ },
162
+ categoryLabelY,
163
+ stacked: true,
164
+ };
165
+ }
166
+ function categoryCenters(count, plot) {
167
+ const total = Number.isFinite(count) && count > 0 ? Math.floor(count) : 0;
168
+ const band = bandScale(total, plot.width, 0);
169
+ const centers = [];
170
+ for (let index = 0; index < total; index++) {
171
+ centers.push(plot.left + band.position(index) + band.bandWidth / 2);
172
+ }
173
+ return centers;
174
+ }
175
+ /** The y a reading sits at, always inside the plot. The clamp is what keeps a
176
+ * negative reading — which no zero-based axis can place — off the category labels
177
+ * below, and the finite test is what stops an unplottable one becoming `NaN`. */
178
+ function valueY(value, axisMax, plot) {
179
+ const baseline = plot.top + plot.height;
180
+ const y = baseline - linearScale(axisMax, plot.height)(value);
181
+ if (!Number.isFinite(y)) {
182
+ return baseline;
183
+ }
184
+ return Math.min(Math.max(y, plot.top), baseline);
185
+ }
186
+ function seriesPoints(values, axisMax, plot, centers) {
187
+ return values.map((value, index) => {
188
+ const x = centers[index];
189
+ if (value === null || !Number.isFinite(value) || !Number.isFinite(x)) {
190
+ return null;
191
+ }
192
+ return { categoryIndex: index, x, y: valueY(value, axisMax, plot), value };
193
+ });
194
+ }
195
+ function lineSegments(points) {
196
+ const segments = [];
197
+ let current = [];
198
+ for (const point of points) {
199
+ if (point === null) {
200
+ if (current.length > 0) {
201
+ segments.push(current);
202
+ }
203
+ current = [];
204
+ }
205
+ else {
206
+ current.push(point);
207
+ }
208
+ }
209
+ if (current.length > 0) {
210
+ segments.push(current);
211
+ }
212
+ return segments;
213
+ }
214
+ /** `''` rather than a partial list when a coordinate is unplottable: one `NaN` in a
215
+ * `points` list or a path `d` voids the whole attribute, and the line then vanishes
216
+ * with nothing logged. */
217
+ function polylinePoints(segment) {
218
+ if (segment.length === 0 || !segment.every(isPlottable)) {
219
+ return '';
220
+ }
221
+ return segment.map((point) => coordinatePair(point)).join(' ');
222
+ }
223
+ function areaPath(segment, baselineY) {
224
+ if (segment.length < 2 ||
225
+ !Number.isFinite(baselineY) ||
226
+ !segment.every(isPlottable)) {
227
+ return '';
228
+ }
229
+ const first = segment[0];
230
+ const last = segment[segment.length - 1];
231
+ const along = segment.map((point) => coordinatePair(point)).join(' L ');
232
+ const baseline = roundTo(baselineY, COORDINATE_DECIMALS);
233
+ return `M ${along} L ${roundTo(last.x, COORDINATE_DECIMALS)},${baseline} L ${roundTo(first.x, COORDINATE_DECIMALS)},${baseline} Z`;
234
+ }
235
+ function isPlottable(point) {
236
+ return Number.isFinite(point.x) && Number.isFinite(point.y);
237
+ }
238
+ function coordinatePair(point) {
239
+ return `${roundTo(point.x, COORDINATE_DECIMALS)},${roundTo(point.y, COORDINATE_DECIMALS)}`;
240
+ }
241
+ /** Show every nth category label. Every label at 60 categories is a grey smear, and
242
+ * the axis stops saying anything at all. */
243
+ function categoryLabelStride(count, maxLabels = MAX_CATEGORY_LABELS) {
244
+ if (!Number.isFinite(count) || count <= 0 || maxLabels < 1) {
245
+ return 1;
246
+ }
247
+ return Math.max(1, Math.ceil(count / maxLabels));
248
+ }
249
+ function paletteIndexFor(slot, index, paletteSize) {
250
+ if (!Number.isFinite(paletteSize) || paletteSize < 1) {
251
+ return 0;
252
+ }
253
+ const chosen = slot !== undefined && Number.isFinite(slot) && slot >= 1
254
+ ? Math.floor(slot) - 1
255
+ : index;
256
+ return ((chosen % paletteSize) + paletteSize) % paletteSize;
257
+ }
258
+
259
+ const defaultValueFormat = (value) => formatValue(value);
260
+ // One dash per palette slot, in the same order the colours are. Slot 1 stays solid so a
261
+ // single-series chart is unchanged by turning patterns on.
262
+ const SERIES_DASH_ARRAYS = [
263
+ 'none',
264
+ '7 4',
265
+ '2 3',
266
+ '11 4 2 4',
267
+ '1 4',
268
+ '8 3 2 3',
269
+ '4 2',
270
+ '14 5',
271
+ ];
272
+ function baselineOf(plot) {
273
+ return plot.top + plot.height;
274
+ }
275
+ class LineChartComponent {
276
+ /** X labels. Every series' `data` is read against this length. */
277
+ categories = input.required(...(ngDevMode ? [{ debugName: "categories" }] : /* istanbul ignore next */ []));
278
+ /** One line per entry. Every series is read against `categories`, so a series longer than it
279
+ * loses its tail and a shorter one ends early. */
280
+ series = input.required(...(ngDevMode ? [{ debugName: "series" }] : /* istanbul ignore next */ []));
281
+ /** How a secondary axis relates to the primary one. */
282
+ yAxisMode = input('rounded', ...(ngDevMode ? [{ debugName: "yAxisMode" }] : /* istanbul ignore next */ []));
283
+ /** Draws a dot at every reading. Off, the dots appear on hover and on focus only. */
284
+ showMarkers = input(true, { ...(ngDevMode ? { debugName: "showMarkers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
285
+ /** Makes every reading focusable and clickable. A series drawn without markers grows invisible
286
+ * ones so there is something to land on; they appear on hover and on focus.
287
+ *
288
+ * The click output fires whether or not this is set, so a consumer that binds the output and
289
+ * forgets the flag still receives every click. */
290
+ interactive = input(false, { ...(ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
291
+ /** The point that was clicked, or activated with Enter or Space. Fires whether or not
292
+ * `interactive` is set. */
293
+ pointClicked = output();
294
+ /** Dims every OTHER mark while one is hovered or focused, so the reader's eye is held on the
295
+ * one under the pointer. Off by default: the dimming costs the separation BETWEEN the dimmed
296
+ * marks — measured 2026-09-13, the worst pair of three dimmed series falls from dE 14.8 at full
297
+ * opacity to 2.1 at `--ds-chart-dim-opacity`'s default 0.3 — so it buys loudness for one mark
298
+ * and pays for it with the rest of the chart. */
299
+ dimOthers = input(false, { ...(ngDevMode ? { debugName: "dimOthers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
300
+ /** What a `null` reading draws. The default refuses to assert that a missing
301
+ * reading is a zero. */
302
+ gaps = input('break', ...(ngDevMode ? [{ debugName: "gaps" }] : /* istanbul ignore next */ []));
303
+ /** How many value-axis ticks to aim for. A hint, not a count: ticks snap to a round step, so
304
+ * the axis may carry one more or one fewer. */
305
+ tickCount = input(LINE_CHART_DEFAULT_TICK_COUNT, { ...(ngDevMode ? { debugName: "tickCount" } : /* istanbul ignore next */ {}), transform: numberAttribute });
306
+ /** Printed above the plot as the chart's visible title, and reused as the annex table's
307
+ * caption. */
308
+ caption = input(null, ...(ngDevMode ? [{ debugName: "caption" }] : /* istanbul ignore next */ []));
309
+ /** Accessible name. Generated from the data when omitted. */
310
+ summary = input(null, ...(ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []));
311
+ /** The label-and-value table under the plot: `'toggle'` puts it behind a disclosure,
312
+ * `'visible'` opens it, `'none'` renders none. It is the non-visual route to the numbers, so
313
+ * `'none'` belongs only where the same data is already in a table on the page.
314
+ * Unset falls back to `DS_CONFIG.chart.dataTable`, then `'toggle'`. */
315
+ dataTable = input(null, ...(ngDevMode ? [{ debugName: "dataTable" }] : /* istanbul ignore next */ []));
316
+ /** Draws skeleton marks in place of the data, at the same count, so the chart does not resize
317
+ * when the data lands. */
318
+ loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
319
+ /** Shown in place of the plot when `data` is empty. Unset falls back to
320
+ * `DS_CONFIG.chart.emptyText`, then `'No data'`. */
321
+ emptyText = input(null, ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
322
+ /** Shows `errorText` in place of the plot. Separate from `loading` and from an empty `data`,
323
+ * because "the request failed" and "there is nothing to show" read the same to a reader and
324
+ * mean opposite things. */
325
+ error = input(false, { ...(ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
326
+ /** The message the error state prints. Unset falls back to `DS_CONFIG.chart.errorText`, then
327
+ * `'Could not load the data'`. */
328
+ errorText = input(null, ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
329
+ /** Formats every value the chart prints, the annex table and the generated description
330
+ * included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then the browser's locale
331
+ * grouping with a K/M/B suffix past four digits. */
332
+ valueFormat = input(null, ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
333
+ dataTableResolved = resolveWithConfig(this.dataTable, (config) => config.chart?.dataTable, 'toggle');
334
+ emptyTextResolved = resolveWithConfig(this.emptyText, (config) => config.chart?.emptyText, 'No data');
335
+ errorTextResolved = resolveWithConfig(this.errorText, (config) => config.chart?.errorText, 'Could not load the data');
336
+ valueFormatResolved = resolveWithConfig(this.valueFormat, (config) => config.chart?.valueFormat, defaultValueFormat);
337
+ viewBox = `0 0 ${LINE_CHART_VIEW_WIDTH} ${LINE_CHART_VIEW_HEIGHT}`;
338
+ resolvedSeries = computed(() => {
339
+ const categoryCount = this.categories().length;
340
+ const gaps = this.gaps();
341
+ const patterns = this.patterns();
342
+ return this.series().map((series, index) => {
343
+ const slot = paletteIndexFor(series.slot, index, CHART_SERIES_COLORS.length);
344
+ return {
345
+ series,
346
+ values: alignSeriesValues(series.data, categoryCount, gaps),
347
+ onSecondaryAxis: series.axis === 'secondary',
348
+ color: CHART_SERIES_COLORS[slot],
349
+ dash: patterns ? SERIES_DASH_ARRAYS[slot] : null,
350
+ };
351
+ });
352
+ }, ...(ngDevMode ? [{ debugName: "resolvedSeries" }] : /* istanbul ignore next */ []));
353
+ /** Ids of the series the legend has switched off. Two-way, so a page can drive it from a URL
354
+ * parameter and read back what the reader chose. */
355
+ hiddenSeries = model([], ...(ngDevMode ? [{ debugName: "hiddenSeries" }] : /* istanbul ignore next */ []));
356
+ /** Whether hiding a series re-scales the value axis to what is left. Default `false`: a silent
357
+ * rescale turns a period-over-period comparison into a different claim, and a comparison
358
+ * dashboard is the common case. */
359
+ rescaleOnHide = input(false, { ...(ngDevMode ? { debugName: "rescaleOnHide" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
360
+ /** Whether the legend switches series off. Off leaves it a plain key. */
361
+ legendFilters = input(false, { ...(ngDevMode ? { debugName: "legendFilters" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
362
+ /** Shown in place of the plot once the legend has switched every series off. Without it the
363
+ * reader is left with an empty grid and nothing saying why. */
364
+ noVisibleSeriesText = input('All series are hidden', ...(ngDevMode ? [{ debugName: "noVisibleSeriesText" }] : /* istanbul ignore next */ []));
365
+ /** Gives every series a dash pattern of its own, so the lines are told apart by shape as well
366
+ * as by colour — WCAG technique G111. Off by default: the shipped palette clears the
367
+ * colour-blind separation threshold on its own, so the patterns are for monochrome print, for a
368
+ * retuned palette, and for a reader who asks for them. */
369
+ patterns = input(false, { ...(ngDevMode ? { debugName: "patterns" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
370
+ /** Milliseconds between one series' entrance and the next. `0`, the default, is no stagger at
371
+ * all; `40` is the documented non-zero step. The total is capped, so a long list of series does
372
+ * not crawl in. */
373
+ staggerMs = input(0, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
374
+ markStagger(index) {
375
+ return `${staggerDelay(index, this.staggerMs())}ms`;
376
+ }
377
+ highlightedSeries = signal(null, ...(ngDevMode ? [{ debugName: "highlightedSeries" }] : /* istanbul ignore next */ []));
378
+ visibleSeries = computed(() => {
379
+ const hidden = this.hiddenSeries();
380
+ return this.resolvedSeries().filter((entry) => !hidden.includes(entry.series.id));
381
+ }, ...(ngDevMode ? [{ debugName: "visibleSeries" }] : /* istanbul ignore next */ []));
382
+ legendItems = computed(() => this.resolvedSeries().map((entry) => ({
383
+ id: entry.series.id,
384
+ label: entry.series.label,
385
+ color: entry.color,
386
+ })), ...(ngDevMode ? [{ debugName: "legendItems" }] : /* istanbul ignore next */ []));
387
+ isDimmed(seriesId) {
388
+ const highlighted = this.highlightedSeries();
389
+ return this.dimOthers() && highlighted !== null && highlighted !== seriesId;
390
+ }
391
+ hasSecondaryAxis = computed(() => this.visibleSeries().some((entry) => entry.onSecondaryAxis), ...(ngDevMode ? [{ debugName: "hasSecondaryAxis" }] : /* istanbul ignore next */ []));
392
+ layout = computed(() => chartLayout(this.yAxisMode(), this.hasSecondaryAxis()), ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
393
+ axes = computed(() => {
394
+ // The axis is scaled from every series unless `rescaleOnHide` says otherwise, so switching one
395
+ // off does not move the gridlines under the ones still drawn.
396
+ const entries = this.rescaleOnHide()
397
+ ? this.visibleSeries()
398
+ : this.resolvedSeries();
399
+ const valuesOn = (secondary) => entries
400
+ .filter((entry) => entry.onSecondaryAxis === secondary)
401
+ .map((entry) => entry.values);
402
+ return axisLayout(domainMaxOf(valuesOn(false)), this.hasSecondaryAxis() ? domainMaxOf(valuesOn(true)) : null, this.yAxisMode(), this.tickCount());
403
+ }, ...(ngDevMode ? [{ debugName: "axes" }] : /* istanbul ignore next */ []));
404
+ categoryPositions = computed(() => categoryCenters(this.categories().length, this.layout().primaryPlot), ...(ngDevMode ? [{ debugName: "categoryPositions" }] : /* istanbul ignore next */ []));
405
+ plottedSeries = computed(() => {
406
+ const axes = this.axes();
407
+ const centers = this.categoryPositions();
408
+ return this.visibleSeries().map((entry) => {
409
+ const plot = this.plotFor(entry.onSecondaryAxis);
410
+ const axisMax = entry.onSecondaryAxis && axes.secondary
411
+ ? axes.secondary.max
412
+ : axes.primary.max;
413
+ const segments = lineSegments(seriesPoints(entry.values, axisMax, plot, centers));
414
+ const baselineY = plot.top + plot.height;
415
+ return {
416
+ ...entry,
417
+ polylines: segments
418
+ .map((segment) => polylinePoints(segment))
419
+ .filter((points) => points.length > 0),
420
+ areaPaths: entry.series.area
421
+ ? segments
422
+ .map((segment) => areaPath(segment, baselineY))
423
+ .filter((path) => path.length > 0)
424
+ : [],
425
+ markers: segments.flat(),
426
+ };
427
+ });
428
+ }, ...(ngDevMode ? [{ debugName: "plottedSeries" }] : /* istanbul ignore next */ []));
429
+ primaryTicks = computed(() => this.ticksFor(this.axes().primary.ticks, this.axes().primary.max, false), ...(ngDevMode ? [{ debugName: "primaryTicks" }] : /* istanbul ignore next */ []));
430
+ secondaryTicks = computed(() => {
431
+ const secondary = this.axes().secondary;
432
+ return secondary ? this.ticksFor(secondary.ticks, secondary.max, true) : [];
433
+ }, ...(ngDevMode ? [{ debugName: "secondaryTicks" }] : /* istanbul ignore next */ []));
434
+ /** Drawn only when the two axes do not share the primary's gridlines, and only
435
+ * when the axis has more than the single tick a degenerate domain leaves. */
436
+ showSecondaryGridlines = computed(() => !this.axes().alignedTicks && this.secondaryTicks().length > 1, ...(ngDevMode ? [{ debugName: "showSecondaryGridlines" }] : /* istanbul ignore next */ []));
437
+ stacked = computed(() => this.layout().stacked, ...(ngDevMode ? [{ debugName: "stacked" }] : /* istanbul ignore next */ []));
438
+ categoryLabelY = computed(() => this.layout().categoryLabelY, ...(ngDevMode ? [{ debugName: "categoryLabelY" }] : /* istanbul ignore next */ []));
439
+ /** The category under the pointer, or -1. */
440
+ activeCategory = signal(-1, ...(ngDevMode ? [{ debugName: "activeCategory" }] : /* istanbul ignore next */ []));
441
+ categoryBands = computed(() => bandScale(this.categories().length, this.layout().primaryPlot.width, 0), ...(ngDevMode ? [{ debugName: "categoryBands" }] : /* istanbul ignore next */ []));
442
+ activeBandX = computed(() => this.layout().primaryPlot.left +
443
+ this.categoryBands().position(this.activeCategory()), ...(ngDevMode ? [{ debugName: "activeBandX" }] : /* istanbul ignore next */ []));
444
+ activeBandWidth = computed(() => this.categoryBands().bandWidth, ...(ngDevMode ? [{ debugName: "activeBandWidth" }] : /* istanbul ignore next */ []));
445
+ activeCategoryX = computed(() => this.activeBandX() + this.activeBandWidth() / 2, ...(ngDevMode ? [{ debugName: "activeCategoryX" }] : /* istanbul ignore next */ []));
446
+ onPlotPointer(event) {
447
+ const canvas = event.currentTarget;
448
+ const screen = canvas.getScreenCTM();
449
+ if (!screen) {
450
+ return;
451
+ }
452
+ // Client pixels are not viewBox units — the plot scales to the card's width.
453
+ const point = new DOMPoint(event.clientX, event.clientY).matrixTransform(screen.inverse());
454
+ const plot = this.layout().primaryPlot;
455
+ const category = this.categoryBands().indexAt(point.x - plot.left);
456
+ this.activeCategory.set(category);
457
+ this.tooltipOrigin.set(this.tooltipAnchor() === 'pointer'
458
+ ? { x: event.clientX, y: event.clientY }
459
+ : this.readingAnchor(screen, category));
460
+ }
461
+ /** The highest reading in the category, mapped back into client pixels. Anchoring there rather
462
+ * than at the cursor keeps the panel still while the pointer travels within one band, and puts
463
+ * it over the readings it names instead of over the finger. */
464
+ readingAnchor(screen, category) {
465
+ const tops = this.plottedSeries().flatMap((entry) => entry.markers
466
+ .filter((marker) => marker.categoryIndex === category)
467
+ .map((marker) => marker.y));
468
+ const y = tops.length ? Math.min(...tops) : this.layout().primaryPlot.top;
469
+ const point = new DOMPoint(this.plotLeft() +
470
+ this.categoryBands().position(category) +
471
+ this.categoryBands().bandWidth / 2, y).matrixTransform(screen);
472
+ return { x: point.x, y: point.y };
473
+ }
474
+ clearActiveCategory() {
475
+ this.activeCategory.set(-1);
476
+ this.tooltipOrigin.set(null);
477
+ }
478
+ /** Whether the plot opens a tooltip, and for what. `'axis'` names every series at the
479
+ * category under the pointer, which is the reading a multi-series line is compared on;
480
+ * `'item'` names only the marker itself. */
481
+ tooltip = input('axis', ...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
482
+ tooltipTemplate = contentChild('dsChartTooltip', ...(ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []));
483
+ /** Where the tooltip is pinned. `'point'`, the default, is the highest reading in the category,
484
+ * so the panel stays put while the pointer moves within one band. `'pointer'` follows the
485
+ * cursor. */
486
+ tooltipAnchor = input('point', ...(ngDevMode ? [{ debugName: "tooltipAnchor" }] : /* istanbul ignore next */ []));
487
+ tooltipOrigin = signal(null, ...(ngDevMode ? [{ debugName: "tooltipOrigin" }] : /* istanbul ignore next */ []));
488
+ /** The series focus is on, or -1 for the whole category. A pointer answers for every
489
+ * series at once; a focused marker answers for its own. */
490
+ activeSeries = signal(-1, ...(ngDevMode ? [{ debugName: "activeSeries" }] : /* istanbul ignore next */ []));
491
+ /** One tab stop PER SERIES, keyed by series id — each line is a strand the reader walks with
492
+ * the arrows. WCAG 2.1.1's Understanding is explicit that not every mouse-operable control has
493
+ * to be separately focusable, which is what keeps a 12-category, 2-series plot from being
494
+ * twenty-four stops in the page's tab order. */
495
+ rovingByCategory = signal(new Map(), ...(ngDevMode ? [{ debugName: "rovingByCategory" }] : /* istanbul ignore next */ []));
496
+ isTabStop(seriesId, categoryIndex) {
497
+ return (this.rovingByCategory().get(seriesId) ?? 0) === categoryIndex;
498
+ }
499
+ onMarkerFocus(seriesIndex, categoryIndex, event) {
500
+ if (event.currentTarget instanceof Element) {
501
+ this.tooltipOrigin.set(event.currentTarget);
502
+ }
503
+ this.activeSeries.set(seriesIndex);
504
+ this.activeCategory.set(categoryIndex);
505
+ this.setRoving(seriesIndex, categoryIndex);
506
+ }
507
+ onMarkerNavigation(event, seriesIndex, categoryIndex) {
508
+ const markers = this.plottedSeries()[seriesIndex]?.markers ?? [];
509
+ const positions = markers.map((marker) => marker.categoryIndex);
510
+ const current = positions.indexOf(categoryIndex);
511
+ const next = nextRovingIndex(event.key, current, positions.length);
512
+ if (next === null) {
513
+ return;
514
+ }
515
+ event.preventDefault();
516
+ const nextCategory = positions[next];
517
+ this.setRoving(seriesIndex, nextCategory);
518
+ focusMark(event.currentTarget.closest('svg'), nextCategory, `[data-series-index="${seriesIndex}"]`);
519
+ }
520
+ setRoving(seriesIndex, categoryIndex) {
521
+ const seriesId = this.plottedSeries()[seriesIndex]?.series.id;
522
+ if (seriesId === undefined) {
523
+ return;
524
+ }
525
+ const next = new Map(this.rovingByCategory());
526
+ next.set(seriesId, categoryIndex);
527
+ this.rovingByCategory.set(next);
528
+ }
529
+ onMarkerBlur() {
530
+ this.activeSeries.set(-1);
531
+ this.clearActiveCategory();
532
+ }
533
+ tooltipContext = computed(() => {
534
+ const categoryIndex = this.activeCategory();
535
+ const categories = this.categories();
536
+ if (this.tooltip() === 'none' ||
537
+ categoryIndex < 0 ||
538
+ categoryIndex >= categories.length) {
539
+ return null;
540
+ }
541
+ const format = this.valueFormatResolved();
542
+ const focusedSeries = this.activeSeries();
543
+ const perSeries = this.tooltip() === 'item' || focusedSeries >= 0
544
+ ? this.visibleSeries().slice(Math.max(focusedSeries, 0), Math.max(focusedSeries, 0) + 1)
545
+ : this.visibleSeries();
546
+ return {
547
+ category: categories[categoryIndex],
548
+ entries: perSeries
549
+ .map((entry) => ({ entry, value: entry.values[categoryIndex] }))
550
+ .filter((reading) => typeof reading.value === 'number' &&
551
+ Number.isFinite(reading.value))
552
+ .map(({ entry, value }) => ({
553
+ label: entry.series.label,
554
+ value,
555
+ formatted: format(value),
556
+ color: entry.color,
557
+ })),
558
+ };
559
+ }, ...(ngDevMode ? [{ debugName: "tooltipContext" }] : /* istanbul ignore next */ []));
560
+ plotLeft = computed(() => this.layout().primaryPlot.left, ...(ngDevMode ? [{ debugName: "plotLeft" }] : /* istanbul ignore next */ []));
561
+ plotRight = computed(() => this.layout().primaryPlot.left + this.layout().primaryPlot.width, ...(ngDevMode ? [{ debugName: "plotRight" }] : /* istanbul ignore next */ []));
562
+ primaryTopY = computed(() => this.layout().primaryPlot.top, ...(ngDevMode ? [{ debugName: "primaryTopY" }] : /* istanbul ignore next */ []));
563
+ secondaryTopY = computed(() => this.layout().secondaryPlot.top, ...(ngDevMode ? [{ debugName: "secondaryTopY" }] : /* istanbul ignore next */ []));
564
+ primaryBaselineY = computed(() => baselineOf(this.layout().primaryPlot), ...(ngDevMode ? [{ debugName: "primaryBaselineY" }] : /* istanbul ignore next */ []));
565
+ secondaryBaselineY = computed(() => baselineOf(this.layout().secondaryPlot), ...(ngDevMode ? [{ debugName: "secondaryBaselineY" }] : /* istanbul ignore next */ []));
566
+ /** Where the crosshair stops. Under `'stacked'` the two plots sit one above the other over one
567
+ * category axis, so a crosshair that ends at the upper plot's baseline leaves the lower plot —
568
+ * the same category, the same pointer — with nothing marked at all. */
569
+ cursorBottomY = computed(() => this.stacked() ? this.secondaryBaselineY() : this.primaryBaselineY(), ...(ngDevMode ? [{ debugName: "cursorBottomY" }] : /* istanbul ignore next */ []));
570
+ primaryLabelX = computed(() => this.layout().primaryPlot.left - LINE_CHART_AXIS_LABEL_GAP, ...(ngDevMode ? [{ debugName: "primaryLabelX" }] : /* istanbul ignore next */ []));
571
+ secondaryLabelX = computed(() => {
572
+ const layout = this.layout();
573
+ return layout.stacked
574
+ ? layout.secondaryPlot.left - LINE_CHART_AXIS_LABEL_GAP
575
+ : layout.primaryPlot.left +
576
+ layout.primaryPlot.width +
577
+ LINE_CHART_AXIS_LABEL_GAP;
578
+ }, ...(ngDevMode ? [{ debugName: "secondaryLabelX" }] : /* istanbul ignore next */ []));
579
+ secondaryLabelAnchor = computed(() => this.layout().stacked ? 'end' : 'start', ...(ngDevMode ? [{ debugName: "secondaryLabelAnchor" }] : /* istanbul ignore next */ []));
580
+ categoryLabels = computed(() => {
581
+ const categories = this.categories();
582
+ const centers = this.categoryPositions();
583
+ const stride = categoryLabelStride(categories.length);
584
+ const labels = [];
585
+ for (let index = 0; index < categories.length; index += stride) {
586
+ labels.push({ x: centers[index], text: categories[index] });
587
+ }
588
+ return labels;
589
+ }, ...(ngDevMode ? [{ debugName: "categoryLabels" }] : /* istanbul ignore next */ []));
590
+ tableRows = computed(() => {
591
+ const format = this.valueFormatResolved();
592
+ return this.categories().map((category, index) => ({
593
+ category,
594
+ cells: this.resolvedSeries().map((entry) => {
595
+ const value = entry.values[index];
596
+ return value === null || value === undefined ? '—' : format(value);
597
+ }),
598
+ }));
599
+ }, ...(ngDevMode ? [{ debugName: "tableRows" }] : /* istanbul ignore next */ []));
600
+ accessibleName = computed(() => {
601
+ const summary = this.summary();
602
+ if (summary !== null) {
603
+ return summary;
604
+ }
605
+ const title = this.caption() ?? 'Chart';
606
+ const format = this.valueFormatResolved();
607
+ const categories = this.categories();
608
+ // The pointer belongs to the WHOLE chart, not to each series, or a two-series plot promises
609
+ // the table twice.
610
+ const sentences = this.resolvedSeries().map((entry) => describeSeries(entry.series.label, entry.values.flatMap((value, index) => value === null ? [] : [{ label: categories[index] ?? '', value }]), format, false));
611
+ const pointer = this.dataTableResolved() === 'none'
612
+ ? ''
613
+ : ' Full values in the table below.';
614
+ return sentences.length === 0
615
+ ? describeSeries(title, [], format, this.dataTableResolved() !== 'none')
616
+ : `${title}. ${sentences.join(' ')}${pointer}`;
617
+ }, ...(ngDevMode ? [{ debugName: "accessibleName" }] : /* istanbul ignore next */ []));
618
+ pointOf(entry, marker) {
619
+ return {
620
+ series: entry.series,
621
+ categoryIndex: marker.categoryIndex,
622
+ category: this.categories()[marker.categoryIndex] ?? '',
623
+ value: marker.value,
624
+ };
625
+ }
626
+ markerLabel(entry, marker) {
627
+ const point = this.pointOf(entry, marker);
628
+ return `${entry.series.label}, ${point.category}, ${this.valueFormatResolved()(marker.value)}`;
629
+ }
630
+ onMarkerKey(entry, marker, event) {
631
+ if (!this.interactive() || event.target !== event.currentTarget) {
632
+ return;
633
+ }
634
+ event.preventDefault();
635
+ this.pointClicked.emit(this.pointOf(entry, marker));
636
+ }
637
+ isEmpty = computed(() => this.series().length === 0 || this.categories().length === 0, ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
638
+ showLegend = computed(() => this.series().length > 1, ...(ngDevMode ? [{ debugName: "showLegend" }] : /* istanbul ignore next */ []));
639
+ noVisibleSeries = computed(() => this.series().length > 0 && this.visibleSeries().length === 0, ...(ngDevMode ? [{ debugName: "noVisibleSeries" }] : /* istanbul ignore next */ []));
640
+ /** Placeholder legend rows while loading. Follows the real series count so the
641
+ * chart does not resize when the data lands; falls back to three when `series`
642
+ * is still empty. */
643
+ skeletonSeries = computed(() => Array.from({ length: Math.max(this.series().length, 3) }), ...(ngDevMode ? [{ debugName: "skeletonSeries" }] : /* istanbul ignore next */ []));
644
+ plotFor(onSecondaryAxis) {
645
+ const layout = this.layout();
646
+ return onSecondaryAxis && layout.stacked
647
+ ? layout.secondaryPlot
648
+ : layout.primaryPlot;
649
+ }
650
+ ticksFor(ticks, axisMax, onSecondaryAxis) {
651
+ const plot = this.plotFor(onSecondaryAxis);
652
+ const step = tickStep(ticks);
653
+ const format = this.valueFormatResolved();
654
+ return ticks.map((value) => ({
655
+ y: valueY(value, axisMax, plot),
656
+ label: format === defaultValueFormat ? formatTick(value, step) : format(value),
657
+ }));
658
+ }
659
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LineChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
660
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: LineChartComponent, isStandalone: true, selector: "ds-line-chart", inputs: { categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: true, transformFunction: null }, series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: true, transformFunction: null }, yAxisMode: { classPropertyName: "yAxisMode", publicName: "yAxisMode", isSignal: true, isRequired: false, transformFunction: null }, showMarkers: { classPropertyName: "showMarkers", publicName: "showMarkers", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, gaps: { classPropertyName: "gaps", publicName: "gaps", isSignal: true, isRequired: false, transformFunction: null }, tickCount: { classPropertyName: "tickCount", publicName: "tickCount", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, hiddenSeries: { classPropertyName: "hiddenSeries", publicName: "hiddenSeries", isSignal: true, isRequired: false, transformFunction: null }, rescaleOnHide: { classPropertyName: "rescaleOnHide", publicName: "rescaleOnHide", isSignal: true, isRequired: false, transformFunction: null }, legendFilters: { classPropertyName: "legendFilters", publicName: "legendFilters", isSignal: true, isRequired: false, transformFunction: null }, noVisibleSeriesText: { classPropertyName: "noVisibleSeriesText", publicName: "noVisibleSeriesText", isSignal: true, isRequired: false, transformFunction: null }, patterns: { classPropertyName: "patterns", publicName: "patterns", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipAnchor: { classPropertyName: "tooltipAnchor", publicName: "tooltipAnchor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked", hiddenSeries: "hiddenSeriesChange" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["dsChartTooltip"], descendants: true, isSignal: true }], ngImport: i0, template: "<figure class=\"line-chart\">\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton height=\"var(--_line-chart-plot-height)\" />\n\n @if (skeletonSeries().length > 1) {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonSeries(); track $index) {\n <ds-skeleton\n width=\"var(--space-16)\"\n height=\"var(--space-3)\" />\n }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else if (noVisibleSeries()) {\n <p\n class=\"empty\"\n role=\"status\">\n {{ noVisibleSeriesText() }}\n </p>\n\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n } @else {\n <div\n class=\"plot\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n <svg\n class=\"canvas\"\n preserveAspectRatio=\"xMidYMid meet\"\n [attr.aria-hidden]=\"interactive() ? null : true\"\n [attr.viewBox]=\"viewBox\"\n (pointermove)=\"onPlotPointer($event)\"\n (pointerdown)=\"onPlotPointer($event)\"\n (pointerleave)=\"clearActiveCategory()\">\n @if (activeCategory() >= 0) {\n <g\n class=\"cursor\"\n animate.enter=\"cursor-in\"\n animate.leave=\"cursor-out\"\n [style.transform]=\"'translateX(' + activeBandX() + 'px)'\">\n <rect\n class=\"category-band\"\n aria-hidden=\"true\"\n x=\"0\"\n [attr.y]=\"primaryTopY()\"\n [attr.width]=\"activeBandWidth()\"\n [attr.height]=\"cursorBottomY() - primaryTopY()\" />\n\n <line\n class=\"cursor-line\"\n aria-hidden=\"true\"\n [attr.x1]=\"activeBandWidth() / 2\"\n [attr.x2]=\"activeBandWidth() / 2\"\n [attr.y1]=\"primaryTopY()\"\n [attr.y2]=\"cursorBottomY()\" />\n </g>\n }\n\n @for (tick of primaryTicks(); track $index) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n\n @if (showSecondaryGridlines()) {\n @for (tick of secondaryTicks(); track $index) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\"\n [class.secondary]=\"!stacked()\" />\n }\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"primaryBaselineY()\"\n [attr.y2]=\"primaryBaselineY()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotLeft()\"\n [attr.y1]=\"primaryTopY()\"\n [attr.y2]=\"primaryBaselineY()\" />\n\n @if (stacked()) {\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"secondaryBaselineY()\"\n [attr.y2]=\"secondaryBaselineY()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotLeft()\"\n [attr.y1]=\"secondaryTopY()\"\n [attr.y2]=\"secondaryBaselineY()\" />\n }\n\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (path of entry.areaPaths; track $index) {\n <path\n class=\"series-area\"\n animate.enter=\"mark-enter\"\n animate.leave=\"mark-leave\"\n [style.--_chart-mark-stagger]=\"markStagger(seriesIndex)\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.d]=\"path\"\n [attr.fill]=\"entry.color\" />\n }\n }\n\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (points of entry.polylines; track $index) {\n <polyline\n class=\"series-line\"\n animate.enter=\"mark-enter\"\n animate.leave=\"mark-leave\"\n [attr.stroke-dasharray]=\"entry.dash\"\n [style.--_chart-mark-stagger]=\"markStagger(seriesIndex)\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.points]=\"points\"\n [attr.stroke]=\"entry.color\" />\n }\n }\n\n @if (showMarkers() || interactive()) {\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (marker of entry.markers; track marker.categoryIndex) {\n <circle\n class=\"series-marker\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.is-active]=\"marker.categoryIndex === activeCategory()\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.data-series-index]=\"seriesIndex\"\n [attr.data-mark-index]=\"marker.categoryIndex\"\n [attr.tabindex]=\"\n interactive()\n ? isTabStop(entry.series.id, marker.categoryIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"\n interactive() ? markerLabel(entry, marker) : null\n \"\n (focus)=\"\n onMarkerFocus(seriesIndex, marker.categoryIndex, $event)\n \"\n (blur)=\"onMarkerBlur()\"\n (keydown)=\"\n onMarkerNavigation($event, seriesIndex, marker.categoryIndex)\n \"\n (click)=\"pointClicked.emit(pointOf(entry, marker))\"\n (keydown.enter)=\"onMarkerKey(entry, marker, $event)\"\n (keydown.space)=\"onMarkerKey(entry, marker, $event)\" />\n }\n }\n }\n\n @for (tick of primaryTicks(); track $index) {\n <text\n class=\"axis-label\"\n text-anchor=\"end\"\n [attr.x]=\"primaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of secondaryTicks(); track $index) {\n <text\n class=\"axis-label\"\n [attr.text-anchor]=\"secondaryLabelAnchor()\"\n [attr.x]=\"secondaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (label of categoryLabels(); track $index) {\n <text\n class=\"category-label\"\n text-anchor=\"middle\"\n [attr.x]=\"label.x\"\n [attr.y]=\"categoryLabelY()\">\n {{ label.text }}\n </text>\n }\n </svg>\n </div>\n\n @if (showLegend()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <details\n class=\"data-table\"\n [open]=\"dataTableResolved() === 'visible'\">\n <summary>\n Data table\n </summary>\n\n <table>\n <caption>\n {{\n caption() ?? 'Chart data'\n }}\n </caption>\n\n <thead>\n <tr>\n <th scope=\"col\">\n Category\n </th>\n\n @for (entry of resolvedSeries(); track entry.series.id) {\n <th scope=\"col\">\n {{ entry.series.label }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (row of tableRows(); track $index) {\n <tr>\n <th scope=\"row\">\n {{ row.category }}\n </th>\n\n @for (cell of row.cells; track $index) {\n <td>\n {{ cell }}\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </details>\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{opacity:0;transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{opacity:0;transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-exit{to{opacity:0}}.series-line.mark-enter{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) both}.series-line.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-area.mark-enter{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) both}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-marker.mark-enter{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) both}.series-marker.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}:host{display:block;padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.line-chart{--_line-chart-grid-line-color: var(--ds-line-chart-grid-line-color, var(--ds-chart-grid-line-color));--_line-chart-axis-line-color: var(--ds-line-chart-axis-line-color, var(--ds-chart-axis-line-color));--_line-chart-axis-label-color: var(--ds-line-chart-axis-label-color, var(--ds-chart-axis-label-color));--_line-chart-axis-font-size: var(--ds-line-chart-axis-font-size, var(--ds-chart-axis-font-size));--_line-chart-line-width: var(--ds-line-chart-line-width, var(--ds-chart-line-width));--_line-chart-dot-radius: var(--ds-line-chart-dot-radius, var(--ds-chart-dot-radius));--_line-chart-dot-radius-active: var(--ds-line-chart-dot-radius-active, var(--ds-chart-dot-radius-active));--_line-chart-hover-bg-color: var(--ds-line-chart-hover-bg-color, var(--ds-chart-hover-bg-color));--_line-chart-cursor-line-color: var(--ds-line-chart-cursor-line-color, var(--ds-chart-cursor-line-color));--_line-chart-line-width-bold: var( --ds-line-chart-line-width-bold, var(--ds-chart-line-width-bold) );--_line-chart-focus-color: var(--ds-line-chart-focus-color, var(--focus-ring-color));--_line-chart-focus-width: var(--ds-line-chart-focus-width, var(--focus-ring-width));--_line-chart-area-opacity: var(--ds-line-chart-area-opacity, .16);--_line-chart-plot-height: var(--ds-line-chart-plot-height, 240px);--_line-chart-swatch-size: var(--ds-line-chart-swatch-size, 10px);margin:0}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:600}.empty{display:grid;place-items:center;min-block-size:var(--_line-chart-plot-height);margin:0;color:var(--text-secondary);text-align:center}.canvas{display:block;inline-size:100%;block-size:auto}.grid-line{stroke:var(--_line-chart-grid-line-color);stroke-width:1}.grid-line.secondary{stroke-dasharray:4 4}.axis-line{stroke:var(--_line-chart-axis-line-color);stroke-width:1}.axis-label,.category-label{fill:var(--_line-chart-axis-label-color);font-size:var(--_line-chart-axis-font-size)}.axis-label{dominant-baseline:middle}.series-area{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.series-area.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-line{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),stroke-width var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-line.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),r var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-marker.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-area{fill-opacity:var(--_line-chart-area-opacity);stroke:none}.series-line{fill:none;stroke-width:var(--_line-chart-line-width);stroke-linecap:round;stroke-linejoin:round}.plot:has(.series-line.is-dimmed) .series-line:not(.is-dimmed){stroke-width:var(--_line-chart-line-width-bold)}.series-marker{r:var(--_line-chart-dot-radius)}.cursor.cursor-in{animation:ds-chart-mark-fade-in var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.cursor.cursor-out{animation:ds-chart-mark-exit var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.category-band{fill:var(--_line-chart-hover-bg-color)}.cursor-line{stroke:var(--_line-chart-cursor-line-color);stroke-width:1}.series-marker.is-active{r:var(--_line-chart-dot-radius-active)}.series-marker.ghost.is-active{fill-opacity:1}.series-marker.interactive{cursor:pointer;stroke:transparent;stroke-width:24px;vector-effect:non-scaling-stroke}@media(hover:none)and (pointer:coarse){.series-marker.interactive{stroke-width:44px}}.series-marker.ghost{fill-opacity:0}.series-marker.ghost:hover,.series-marker.ghost:focus-visible{fill-opacity:1}@media not (forced-colors:active){.series-marker.interactive:focus-visible{outline:none}}.series-marker.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 1px var(--ds-chart-focus-halo-color)) drop-shadow(0 0 1px var(--ds-chart-focus-halo-color));r:var(--_line-chart-dot-radius-active)}.legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin:var(--space-3) 0 0;padding:0;list-style:none}.legend-item{display:inline-flex;gap:var(--space-2);align-items:center;color:var(--text-secondary);font-size:var(--font-size-xs)}.legend-swatch{flex:none;inline-size:var(--_line-chart-swatch-size);block-size:var(--_line-chart-swatch-size);border-radius:var(--radius-pill)}.skeleton{display:grid}.skeleton-legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin-block-start:var(--space-3)}.empty.is-error{color:var(--error)}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate"] }, { kind: "component", type: ChartLegendComponent, selector: "ds-chart-legend", inputs: ["items", "hidden", "toggleable", "highlighted"], outputs: ["hiddenChange", "highlightedChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
661
+ }
662
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LineChartComponent, decorators: [{
663
+ type: Component,
664
+ args: [{ selector: 'ds-line-chart', standalone: true, imports: [SkeletonComponent, ChartTooltipDirective, ChartLegendComponent], encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure class=\"line-chart\">\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton height=\"var(--_line-chart-plot-height)\" />\n\n @if (skeletonSeries().length > 1) {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonSeries(); track $index) {\n <ds-skeleton\n width=\"var(--space-16)\"\n height=\"var(--space-3)\" />\n }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else if (noVisibleSeries()) {\n <p\n class=\"empty\"\n role=\"status\">\n {{ noVisibleSeriesText() }}\n </p>\n\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n } @else {\n <div\n class=\"plot\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n <svg\n class=\"canvas\"\n preserveAspectRatio=\"xMidYMid meet\"\n [attr.aria-hidden]=\"interactive() ? null : true\"\n [attr.viewBox]=\"viewBox\"\n (pointermove)=\"onPlotPointer($event)\"\n (pointerdown)=\"onPlotPointer($event)\"\n (pointerleave)=\"clearActiveCategory()\">\n @if (activeCategory() >= 0) {\n <g\n class=\"cursor\"\n animate.enter=\"cursor-in\"\n animate.leave=\"cursor-out\"\n [style.transform]=\"'translateX(' + activeBandX() + 'px)'\">\n <rect\n class=\"category-band\"\n aria-hidden=\"true\"\n x=\"0\"\n [attr.y]=\"primaryTopY()\"\n [attr.width]=\"activeBandWidth()\"\n [attr.height]=\"cursorBottomY() - primaryTopY()\" />\n\n <line\n class=\"cursor-line\"\n aria-hidden=\"true\"\n [attr.x1]=\"activeBandWidth() / 2\"\n [attr.x2]=\"activeBandWidth() / 2\"\n [attr.y1]=\"primaryTopY()\"\n [attr.y2]=\"cursorBottomY()\" />\n </g>\n }\n\n @for (tick of primaryTicks(); track $index) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n\n @if (showSecondaryGridlines()) {\n @for (tick of secondaryTicks(); track $index) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\"\n [class.secondary]=\"!stacked()\" />\n }\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"primaryBaselineY()\"\n [attr.y2]=\"primaryBaselineY()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotLeft()\"\n [attr.y1]=\"primaryTopY()\"\n [attr.y2]=\"primaryBaselineY()\" />\n\n @if (stacked()) {\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"secondaryBaselineY()\"\n [attr.y2]=\"secondaryBaselineY()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotLeft()\"\n [attr.y1]=\"secondaryTopY()\"\n [attr.y2]=\"secondaryBaselineY()\" />\n }\n\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (path of entry.areaPaths; track $index) {\n <path\n class=\"series-area\"\n animate.enter=\"mark-enter\"\n animate.leave=\"mark-leave\"\n [style.--_chart-mark-stagger]=\"markStagger(seriesIndex)\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.d]=\"path\"\n [attr.fill]=\"entry.color\" />\n }\n }\n\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (points of entry.polylines; track $index) {\n <polyline\n class=\"series-line\"\n animate.enter=\"mark-enter\"\n animate.leave=\"mark-leave\"\n [attr.stroke-dasharray]=\"entry.dash\"\n [style.--_chart-mark-stagger]=\"markStagger(seriesIndex)\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.points]=\"points\"\n [attr.stroke]=\"entry.color\" />\n }\n }\n\n @if (showMarkers() || interactive()) {\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (marker of entry.markers; track marker.categoryIndex) {\n <circle\n class=\"series-marker\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.is-active]=\"marker.categoryIndex === activeCategory()\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.data-series-index]=\"seriesIndex\"\n [attr.data-mark-index]=\"marker.categoryIndex\"\n [attr.tabindex]=\"\n interactive()\n ? isTabStop(entry.series.id, marker.categoryIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"\n interactive() ? markerLabel(entry, marker) : null\n \"\n (focus)=\"\n onMarkerFocus(seriesIndex, marker.categoryIndex, $event)\n \"\n (blur)=\"onMarkerBlur()\"\n (keydown)=\"\n onMarkerNavigation($event, seriesIndex, marker.categoryIndex)\n \"\n (click)=\"pointClicked.emit(pointOf(entry, marker))\"\n (keydown.enter)=\"onMarkerKey(entry, marker, $event)\"\n (keydown.space)=\"onMarkerKey(entry, marker, $event)\" />\n }\n }\n }\n\n @for (tick of primaryTicks(); track $index) {\n <text\n class=\"axis-label\"\n text-anchor=\"end\"\n [attr.x]=\"primaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of secondaryTicks(); track $index) {\n <text\n class=\"axis-label\"\n [attr.text-anchor]=\"secondaryLabelAnchor()\"\n [attr.x]=\"secondaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (label of categoryLabels(); track $index) {\n <text\n class=\"category-label\"\n text-anchor=\"middle\"\n [attr.x]=\"label.x\"\n [attr.y]=\"categoryLabelY()\">\n {{ label.text }}\n </text>\n }\n </svg>\n </div>\n\n @if (showLegend()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <details\n class=\"data-table\"\n [open]=\"dataTableResolved() === 'visible'\">\n <summary>\n Data table\n </summary>\n\n <table>\n <caption>\n {{\n caption() ?? 'Chart data'\n }}\n </caption>\n\n <thead>\n <tr>\n <th scope=\"col\">\n Category\n </th>\n\n @for (entry of resolvedSeries(); track entry.series.id) {\n <th scope=\"col\">\n {{ entry.series.label }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (row of tableRows(); track $index) {\n <tr>\n <th scope=\"row\">\n {{ row.category }}\n </th>\n\n @for (cell of row.cells; track $index) {\n <td>\n {{ cell }}\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </details>\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{opacity:0;transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{opacity:0;transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-exit{to{opacity:0}}.series-line.mark-enter{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) both}.series-line.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-area.mark-enter{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) both}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-marker.mark-enter{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) both}.series-marker.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}:host{display:block;padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.line-chart{--_line-chart-grid-line-color: var(--ds-line-chart-grid-line-color, var(--ds-chart-grid-line-color));--_line-chart-axis-line-color: var(--ds-line-chart-axis-line-color, var(--ds-chart-axis-line-color));--_line-chart-axis-label-color: var(--ds-line-chart-axis-label-color, var(--ds-chart-axis-label-color));--_line-chart-axis-font-size: var(--ds-line-chart-axis-font-size, var(--ds-chart-axis-font-size));--_line-chart-line-width: var(--ds-line-chart-line-width, var(--ds-chart-line-width));--_line-chart-dot-radius: var(--ds-line-chart-dot-radius, var(--ds-chart-dot-radius));--_line-chart-dot-radius-active: var(--ds-line-chart-dot-radius-active, var(--ds-chart-dot-radius-active));--_line-chart-hover-bg-color: var(--ds-line-chart-hover-bg-color, var(--ds-chart-hover-bg-color));--_line-chart-cursor-line-color: var(--ds-line-chart-cursor-line-color, var(--ds-chart-cursor-line-color));--_line-chart-line-width-bold: var( --ds-line-chart-line-width-bold, var(--ds-chart-line-width-bold) );--_line-chart-focus-color: var(--ds-line-chart-focus-color, var(--focus-ring-color));--_line-chart-focus-width: var(--ds-line-chart-focus-width, var(--focus-ring-width));--_line-chart-area-opacity: var(--ds-line-chart-area-opacity, .16);--_line-chart-plot-height: var(--ds-line-chart-plot-height, 240px);--_line-chart-swatch-size: var(--ds-line-chart-swatch-size, 10px);margin:0}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:600}.empty{display:grid;place-items:center;min-block-size:var(--_line-chart-plot-height);margin:0;color:var(--text-secondary);text-align:center}.canvas{display:block;inline-size:100%;block-size:auto}.grid-line{stroke:var(--_line-chart-grid-line-color);stroke-width:1}.grid-line.secondary{stroke-dasharray:4 4}.axis-line{stroke:var(--_line-chart-axis-line-color);stroke-width:1}.axis-label,.category-label{fill:var(--_line-chart-axis-label-color);font-size:var(--_line-chart-axis-font-size)}.axis-label{dominant-baseline:middle}.series-area{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.series-area.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-line{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),stroke-width var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-line.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),r var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-marker.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-area{fill-opacity:var(--_line-chart-area-opacity);stroke:none}.series-line{fill:none;stroke-width:var(--_line-chart-line-width);stroke-linecap:round;stroke-linejoin:round}.plot:has(.series-line.is-dimmed) .series-line:not(.is-dimmed){stroke-width:var(--_line-chart-line-width-bold)}.series-marker{r:var(--_line-chart-dot-radius)}.cursor.cursor-in{animation:ds-chart-mark-fade-in var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.cursor.cursor-out{animation:ds-chart-mark-exit var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.category-band{fill:var(--_line-chart-hover-bg-color)}.cursor-line{stroke:var(--_line-chart-cursor-line-color);stroke-width:1}.series-marker.is-active{r:var(--_line-chart-dot-radius-active)}.series-marker.ghost.is-active{fill-opacity:1}.series-marker.interactive{cursor:pointer;stroke:transparent;stroke-width:24px;vector-effect:non-scaling-stroke}@media(hover:none)and (pointer:coarse){.series-marker.interactive{stroke-width:44px}}.series-marker.ghost{fill-opacity:0}.series-marker.ghost:hover,.series-marker.ghost:focus-visible{fill-opacity:1}@media not (forced-colors:active){.series-marker.interactive:focus-visible{outline:none}}.series-marker.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 1px var(--ds-chart-focus-halo-color)) drop-shadow(0 0 1px var(--ds-chart-focus-halo-color));r:var(--_line-chart-dot-radius-active)}.legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin:var(--space-3) 0 0;padding:0;list-style:none}.legend-item{display:inline-flex;gap:var(--space-2);align-items:center;color:var(--text-secondary);font-size:var(--font-size-xs)}.legend-swatch{flex:none;inline-size:var(--_line-chart-swatch-size);block-size:var(--_line-chart-swatch-size);border-radius:var(--radius-pill)}.skeleton{display:grid}.skeleton-legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin-block-start:var(--space-3)}.empty.is-error{color:var(--error)}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}\n"] }]
665
+ }], propDecorators: { categories: [{ type: i0.Input, args: [{ isSignal: true, alias: "categories", required: true }] }], series: [{ type: i0.Input, args: [{ isSignal: true, alias: "series", required: true }] }], yAxisMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "yAxisMode", required: false }] }], showMarkers: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMarkers", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], gaps: [{ type: i0.Input, args: [{ isSignal: true, alias: "gaps", required: false }] }], tickCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "tickCount", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], hiddenSeries: [{ type: i0.Input, args: [{ isSignal: true, alias: "hiddenSeries", required: false }] }, { type: i0.Output, args: ["hiddenSeriesChange"] }], rescaleOnHide: [{ type: i0.Input, args: [{ isSignal: true, alias: "rescaleOnHide", required: false }] }], legendFilters: [{ type: i0.Input, args: [{ isSignal: true, alias: "legendFilters", required: false }] }], noVisibleSeriesText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noVisibleSeriesText", required: false }] }], patterns: [{ type: i0.Input, args: [{ isSignal: true, alias: "patterns", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipTemplate: [{ type: i0.ContentChild, args: ['dsChartTooltip', { isSignal: true }] }], tooltipAnchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipAnchor", required: false }] }] } });
666
+
667
+ /**
668
+ * Generated bundle index. Do not edit.
669
+ */
670
+
671
+ export { LineChartComponent };
672
+ //# sourceMappingURL=ids-group-ltd-ids-design-system-components-line-chart.mjs.map