@ids-group-ltd/ids-design-system 0.13.2 → 0.13.3

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 (54) hide show
  1. package/CHANGELOG.md +265 -0
  2. package/components.md +12 -16
  3. package/docs/agent/INDEX.md +1 -2
  4. package/docs/agent/charts/ds-column-chart.md +3 -2
  5. package/docs/agent/feedback/ds-bar.md +13 -0
  6. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +9 -10
  7. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  8. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +95 -0
  9. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -0
  10. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +70 -41
  11. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  12. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +973 -0
  13. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -0
  14. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +141 -120
  15. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +42 -11
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +1 -1
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +16 -7
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +14 -83
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  24. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +163 -21
  25. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  26. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +1 -1
  27. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  28. package/fesm2022/ids-group-ltd-ids-design-system.mjs +2 -2
  29. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  30. package/migrations/0.13.3.json +211 -0
  31. package/package.json +17 -17
  32. package/styles/_chart-frame.scss +16 -6
  33. package/styles/_tokens-charts.scss +29 -5
  34. package/styles/_tokens.scss +1 -1
  35. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +2 -1
  36. package/types/ids-group-ltd-ids-design-system-components-bar.d.ts +63 -0
  37. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
  38. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +7 -4
  39. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +543 -0
  40. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +95 -38
  41. package/types/ids-group-ltd-ids-design-system-components-donut-chart.d.ts +15 -2
  42. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +6 -1
  43. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +8 -18
  44. package/types/ids-group-ltd-ids-design-system-components.d.ts +58 -9
  45. package/types/ids-group-ltd-ids-design-system-core.d.ts +55 -4
  46. package/types/ids-group-ltd-ids-design-system.d.ts +4 -4
  47. package/docs/agent/feedback/ds-meter.md +0 -11
  48. package/docs/agent/feedback/ds-progress.md +0 -10
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-meter.mjs +0 -61
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-meter.mjs.map +0 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs +0 -65
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs.map +0 -1
  53. package/types/ids-group-ltd-ids-design-system-components-meter.d.ts +0 -36
  54. package/types/ids-group-ltd-ids-design-system-components-progress.d.ts +0 -40
@@ -1,9 +1,16 @@
1
- import * as _ids_group_ltd_ids_design_system_components_chart_tooltip from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
2
- import { ChartItemTooltipTrigger, ChartTooltipContext } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
3
1
  import * as _angular_core from '@angular/core';
4
2
  import { TemplateRef } from '@angular/core';
5
- import { ChartFrame, ChartDataTable, ChartValueFormat } from '@ids-group-ltd/ids-design-system/core';
3
+ import { defaultChartFormat } from '@ids-group-ltd/ids-design-system/components';
4
+ import { ChartStackMode, ChartThreshold, ChartFrame, ChartDataTable, ChartValueFormat } from '@ids-group-ltd/ids-design-system/core';
5
+ import { ColumnSeriesComponent, ChartStackOffset } from '@ids-group-ltd/ids-design-system/components/chart';
6
+ import { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';
7
+ import { ChartItemTooltipTrigger, ChartTooltipContext } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
6
8
 
9
+ /** How a mark is painted. `'hatched'` is the second encoding channel a colour cannot carry on its
10
+ * own: it survives greyscale, print and colour-vision deficiency, which is what makes it the right
11
+ * way to separate readings of different STANDING - a projection from a settled figure, an estimate
12
+ * from a measurement - rather than a second hue nobody can name. */
13
+ type ChartMarkFill = 'solid' | 'hatched';
7
14
  interface ColumnChartPoint {
8
15
  /** Falls back to the column's position when left out, so a reorder rewrites the DOM. */
9
16
  id?: string;
@@ -13,11 +20,59 @@ interface ColumnChartPoint {
13
20
  * position; set this where a column carries a meaning its position does not,
14
21
  * such as the accent on the period the reader should land on. */
15
22
  color?: string;
23
+ /** Defaults to `'solid'`. The chart draws what it is given and reads nothing into it: which
24
+ * columns are projections is the caller's fact, not one a chart can derive. */
25
+ fill?: ChartMarkFill;
26
+ }
27
+ /** One named set of columns, for a chart that compares two or more readings per category.
28
+ *
29
+ * A chart handed a flat `ColumnChartPoint[]` stays exactly what it was - one series whose marks
30
+ * ARE the categories, coloured by position. The series form is the one that needs a key, so it
31
+ * carries a label and takes one colour for all of its marks. */
32
+ interface ColumnChartSeries {
33
+ /** Names the series in the legend and in the tooltip, and keys it in the DOM. */
34
+ id: string;
35
+ label: string;
36
+ /** One point per category, in the same order for every series. */
37
+ data: readonly ColumnChartPoint[];
38
+ /** Overrides the palette slot this series would take. A point's own `color` wins over it. */
39
+ color?: string;
40
+ /** Paints every mark of this series, so a whole projected or estimated series is written once
41
+ * rather than per point. A point's own `fill` wins over it. */
42
+ fill?: ChartMarkFill;
16
43
  }
17
44
 
45
+ /** One series, ready to draw. `points` is the caller's own array, never a copy: the colour and the
46
+ * fill reach the marks as series-wide defaults so a clicked point comes back as the object that
47
+ * was handed in. */
48
+ interface ResolvedColumnSeries {
49
+ readonly key: string;
50
+ readonly label: string;
51
+ /** Null leaves each mark on the categorical palette by its own position, which is what a chart
52
+ * of one series has always drawn. */
53
+ readonly color: string | null;
54
+ readonly fill: ChartMarkFill | null;
55
+ readonly points: readonly ColumnChartPoint[];
56
+ }
18
57
  declare class ColumnChartComponent {
19
- /** One column per point, drawn in the order given. */
20
- readonly data: _angular_core.InputSignal<readonly ColumnChartPoint[]>;
58
+ /** One column per point, drawn in the order given - or one NAMED SERIES per entry, where every
59
+ * category carries a column from each. The two forms are told apart by their shape, so a chart
60
+ * handed a flat list behaves exactly as it always has. */
61
+ readonly data: _angular_core.InputSignal<readonly ColumnChartPoint[] | readonly ColumnChartSeries[]>;
62
+ /** How several series share one category's band. `'none'`, the default, and `'grouped'` draw
63
+ * them side by side - a chart of one series takes the whole band either way, so the two differ
64
+ * only in spelling. `'stacked'` puts each series on top of the one before it, and
65
+ * `'normalized'` stacks then divides by the category's total, so every band is full and the
66
+ * axis reads in shares.
67
+ *
68
+ * Unrelated to `ds-line-chart`'s `axisMode="stacked"`, which is two PLOTS one above the
69
+ * other. */
70
+ readonly stack: _angular_core.InputSignal<ChartStackMode>;
71
+ /** Reference lines and bands drawn across the plot, behind the columns: a target, a budget, an
72
+ * SLA. Each one opens the value axis far enough to hold it, so a target above every column is
73
+ * still on the plot, and each is named in the generated description - a line only the sighted
74
+ * reader gets is an annotation half the audience never receives. */
75
+ readonly thresholds: _angular_core.InputSignal<readonly ChartThreshold[]>;
21
76
  /** Prints each column's value above the column. */
22
77
  readonly showValues: _angular_core.InputSignalWithTransform<boolean, unknown>;
23
78
  /** How many value-axis ticks to aim for. A hint, not a count: ticks are
@@ -73,7 +128,7 @@ declare class ColumnChartComponent {
73
128
  readonly dataTableResolved: _angular_core.Signal<ChartDataTable>;
74
129
  readonly emptyTextResolved: _angular_core.Signal<string>;
75
130
  readonly errorTextResolved: _angular_core.Signal<string>;
76
- readonly valueFormatResolved: _angular_core.Signal<ChartValueFormat>;
131
+ readonly valueFormatResolved: _angular_core.Signal<typeof defaultChartFormat>;
77
132
  /** Turns on the click affordance — the pointer cursor and any hover tint.
78
133
  * The click output fires whether or not this is set, so a consumer that
79
134
  * binds the output and forgets the flag still receives every click. */
@@ -96,7 +151,6 @@ declare class ColumnChartComponent {
96
151
  * all; `40` is the documented non-zero step. The total is capped, so a long series does not
97
152
  * crawl in. */
98
153
  readonly staggerMs: _angular_core.InputSignalWithTransform<number, unknown>;
99
- protected markStagger(index: number): string;
100
154
  /** Whether a hovered or focused column opens a tooltip. `'axis'` is not offered — a
101
155
  * column chart's marks ARE its categories, so an axis tooltip would repeat the item one. */
102
156
  readonly tooltip: _angular_core.InputSignal<ChartItemTooltipTrigger>;
@@ -110,47 +164,50 @@ declare class ColumnChartComponent {
110
164
  /** The value is printed ABOVE the column, so a panel anchored to the column alone opens on top
111
165
  * of that number. One text line of clearance puts it above both. */
112
166
  protected readonly valueClearance: _angular_core.Signal<0 | 18>;
113
- private readonly tooltipLingerResolved;
114
- protected readonly activeMark: _ids_group_ltd_ids_design_system_components_chart_tooltip.ChartActiveMark;
115
- protected onMarkClick(payload: ColumnChartPoint, index: number, event: Event): void;
116
- protected onMarkEnter(index: number, event: Event): void;
117
- /** One tab stop per chart, not one per mark: WCAG 2.1.1's Understanding is explicit that not
118
- * every mouse-operable control has to be separately focusable, and that is what keeps a
119
- * twenty-five mark chart from being twenty-five stops in the page's tab order. */
120
- protected readonly rovingIndex: _angular_core.WritableSignal<number>;
121
- protected readonly tabStopIndex: _angular_core.Signal<number>;
122
- protected onMarkFocus(index: number, event: FocusEvent): void;
123
- protected onMarkNavigation(event: KeyboardEvent, index: number): void;
124
- protected readonly tooltipContext: _angular_core.Signal<ChartTooltipContext | null>;
125
- protected readonly domainMax: _angular_core.Signal<number>;
126
- /** Top of the value axis: the domain rounded up to a whole tick, so the
127
- * tallest column ends on a gridline rather than between two. */
128
- protected readonly axisMax: _angular_core.Signal<number>;
129
- protected readonly ticks: _angular_core.Signal<{
130
- label: string;
131
- offsetPercent: number;
132
- }[]>;
133
- protected readonly columns: _angular_core.Signal<{
167
+ protected readonly tooltipLingerResolved: _angular_core.Signal<number>;
168
+ protected readonly geometry: _angular_core.WritableSignal<{
169
+ plotHeight: number;
170
+ axisGutter: number;
171
+ valueSpace: number;
172
+ columnWidthRatio: number;
173
+ }>;
174
+ /** Every state occupies the box the plot would have, so nothing on the page moves when the data
175
+ * lands or the request fails. */
176
+ protected readonly viewHeightPx: _angular_core.Signal<string>;
177
+ protected readonly skeletonHeightPx: _angular_core.Signal<string>;
178
+ protected readonly seriesRefs: _angular_core.Signal<readonly ColumnSeriesComponent[]>;
179
+ protected readonly pinnedSeries: _angular_core.Signal<ColumnSeriesComponent | null>;
180
+ protected readonly resolvedSeries: _angular_core.Signal<readonly ResolvedColumnSeries[]>;
181
+ /** Stacking collapses every series onto ONE slot, which is also why a stacked series is drawn
182
+ * at slot 0 rather than at its own index - its segments sit on top of each other, not beside
183
+ * them. */
184
+ protected readonly slotCount: _angular_core.Signal<number>;
185
+ private readonly offsets;
186
+ protected offsetsFor(index: number): readonly ChartStackOffset[];
187
+ /** The categories come from the LONGEST series: a series that stops early leaves the bands past
188
+ * its end standing rather than taking them off the axis for every other series too. */
189
+ protected readonly categories: _angular_core.Signal<string[]>;
190
+ protected readonly multiSeries: _angular_core.Signal<boolean>;
191
+ protected readonly legendItems: _angular_core.Signal<readonly ChartLegendItem[]>;
192
+ /** A normalized stack draws shares, not readings, so the axis has to say so - the value printed
193
+ * beside each mark stays the reading, which is what `valueFormat` goes on formatting. */
194
+ protected readonly axisFormat: _angular_core.Signal<ChartValueFormat | null>;
195
+ protected readonly tableRows: _angular_core.Signal<{
134
196
  key: string;
135
- point: ColumnChartPoint;
136
- heightPercent: number;
197
+ series: string;
198
+ label: string;
137
199
  formattedValue: string;
138
200
  share: string;
139
- color: string;
140
201
  }[]>;
141
202
  protected readonly accessibleName: _angular_core.Signal<string>;
142
- protected entryLabel(entry: {
143
- point: ColumnChartPoint;
144
- formattedValue: string;
145
- }): string;
146
- protected onPointKey(point: ColumnChartPoint, event: Event): void;
147
203
  protected readonly isEmpty: _angular_core.Signal<boolean>;
148
204
  /** Placeholder columns while loading. Follows the real point count so the chart does not resize
149
205
  * when the data lands; falls back to three when `data` is still empty. */
150
206
  protected readonly skeletonColumns: _angular_core.Signal<unknown[]>;
207
+ constructor();
151
208
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnChartComponent, never>;
152
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColumnChartComponent, "ds-column-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "showValues": { "alias": "showValues"; "required": false; "isSignal": true; }; "tickCount": { "alias": "tickCount"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "dataTable": { "alias": "dataTable"; "required": false; "isSignal": true; }; "partOfWhole": { "alias": "partOfWhole"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "tooltipAnchor": { "alias": "tooltipAnchor"; "required": false; "isSignal": true; }; }, { "pointClicked": "pointClicked"; }, ["tooltipTemplate"], never, true, never>;
209
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColumnChartComponent, "ds-column-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "stack": { "alias": "stack"; "required": false; "isSignal": true; }; "thresholds": { "alias": "thresholds"; "required": false; "isSignal": true; }; "showValues": { "alias": "showValues"; "required": false; "isSignal": true; }; "tickCount": { "alias": "tickCount"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "dataTable": { "alias": "dataTable"; "required": false; "isSignal": true; }; "partOfWhole": { "alias": "partOfWhole"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "tooltipAnchor": { "alias": "tooltipAnchor"; "required": false; "isSignal": true; }; }, { "pointClicked": "pointClicked"; }, ["tooltipTemplate"], never, true, never>;
153
210
  }
154
211
 
155
212
  export { ColumnChartComponent };
156
- export type { ColumnChartPoint };
213
+ export type { ColumnChartPoint, ColumnChartSeries };
@@ -2,6 +2,7 @@ import * as _ids_group_ltd_ids_design_system_components_chart_tooltip from '@ids
2
2
  import { ChartItemTooltipTrigger, ChartTooltipContext } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
3
3
  import * as _angular_core from '@angular/core';
4
4
  import { TemplateRef } from '@angular/core';
5
+ import { defaultChartFormat } from '@ids-group-ltd/ids-design-system/components';
5
6
  import { ChartFrame, ChartDataTable, ChartValueFormat } from '@ids-group-ltd/ids-design-system/core';
6
7
 
7
8
  interface DonutChartSlice {
@@ -56,6 +57,11 @@ declare class DonutChartComponent {
56
57
  * `'none'` belongs only where the same data is already in a table on the page.
57
58
  * Unset falls back to `DS_CONFIG.chart.dataTable`, then `'none'`. */
58
59
  readonly dataTable: _angular_core.InputSignal<ChartDataTable | null>;
60
+ /** Prints each slice's share of the ring — in the legend, on the tooltip and in the data table.
61
+ * On by default, unlike every other chart, because a ring IS parts of one whole: the share is a
62
+ * real quantity here whatever the data, not a claim the consumer has to make. Off drops all
63
+ * three, for a ring whose slices are already labelled in percent. */
64
+ readonly partOfWhole: _angular_core.InputSignalWithTransform<boolean, unknown>;
59
65
  /** Draws skeleton marks in place of the data, at the same count, so the chart does not resize
60
66
  * when the data lands. */
61
67
  readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
@@ -77,7 +83,7 @@ declare class DonutChartComponent {
77
83
  readonly dataTableResolved: _angular_core.Signal<ChartDataTable>;
78
84
  readonly emptyTextResolved: _angular_core.Signal<string>;
79
85
  readonly errorTextResolved: _angular_core.Signal<string>;
80
- readonly valueFormatResolved: _angular_core.Signal<ChartValueFormat>;
86
+ readonly valueFormatResolved: _angular_core.Signal<typeof defaultChartFormat>;
81
87
  /** Turns on the click affordance — the pointer cursor and any hover tint.
82
88
  * The click output fires whether or not this is set, so a consumer that
83
89
  * binds the output and forgets the flag still receives every click. */
@@ -114,6 +120,13 @@ declare class DonutChartComponent {
114
120
  protected readonly rovingIndex: _angular_core.WritableSignal<number>;
115
121
  protected readonly tabStopIndex: _angular_core.Signal<number>;
116
122
  protected onMarkFocus(index: number, event: FocusEvent): void;
123
+ /** A legend item stands for its arc, so it opens the arc's tooltip over the ARC and dims the
124
+ * other slices — the same state hovering the arc itself produces. */
125
+ protected onLegendEnter(index: number, event: Event): void;
126
+ protected onLegendFocus(index: number, event: FocusEvent): void;
127
+ protected onLegendClick(slice: DonutChartSlice, index: number, event: Event): void;
128
+ private arcAt;
129
+ protected isDimmed(index: number): boolean;
117
130
  protected onMarkNavigation(event: KeyboardEvent, index: number, scope: string): void;
118
131
  protected readonly tooltipContext: _angular_core.Signal<ChartTooltipContext | null>;
119
132
  protected readonly viewBox = "0 0 100 100";
@@ -146,7 +159,7 @@ declare class DonutChartComponent {
146
159
  * is still empty. */
147
160
  protected readonly skeletonRows: _angular_core.Signal<unknown[]>;
148
161
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DonutChartComponent, never>;
149
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DonutChartComponent, "ds-donut-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "centerValue": { "alias": "centerValue"; "required": false; "isSignal": true; }; "centerLabel": { "alias": "centerLabel"; "required": false; "isSignal": true; }; "legend": { "alias": "legend"; "required": false; "isSignal": true; }; "maxSlices": { "alias": "maxSlices"; "required": false; "isSignal": true; }; "otherLabel": { "alias": "otherLabel"; "required": false; "isSignal": true; }; "thickness": { "alias": "thickness"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "dataTable": { "alias": "dataTable"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; }, { "sliceClicked": "sliceClicked"; }, ["tooltipTemplate"], never, true, never>;
162
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DonutChartComponent, "ds-donut-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "centerValue": { "alias": "centerValue"; "required": false; "isSignal": true; }; "centerLabel": { "alias": "centerLabel"; "required": false; "isSignal": true; }; "legend": { "alias": "legend"; "required": false; "isSignal": true; }; "maxSlices": { "alias": "maxSlices"; "required": false; "isSignal": true; }; "otherLabel": { "alias": "otherLabel"; "required": false; "isSignal": true; }; "thickness": { "alias": "thickness"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "dataTable": { "alias": "dataTable"; "required": false; "isSignal": true; }; "partOfWhole": { "alias": "partOfWhole"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; }, { "sliceClicked": "sliceClicked"; }, ["tooltipTemplate"], never, true, never>;
150
163
  }
151
164
 
152
165
  export { DonutChartComponent };
@@ -2,6 +2,7 @@ import * as _ids_group_ltd_ids_design_system_components_chart_tooltip from '@ids
2
2
  import { ChartItemTooltipTrigger, ChartTooltipContext } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
3
3
  import * as _angular_core from '@angular/core';
4
4
  import { TemplateRef } from '@angular/core';
5
+ import { defaultChartFormat } from '@ids-group-ltd/ids-design-system/components';
5
6
  import { ChartFrame, ChartDataTable, ChartValueFormat } from '@ids-group-ltd/ids-design-system/core';
6
7
 
7
8
  interface FunnelChartStage {
@@ -81,7 +82,7 @@ declare class FunnelChartComponent {
81
82
  readonly dataTableResolved: _angular_core.Signal<ChartDataTable>;
82
83
  readonly emptyTextResolved: _angular_core.Signal<string>;
83
84
  readonly errorTextResolved: _angular_core.Signal<string>;
84
- readonly valueFormatResolved: _angular_core.Signal<ChartValueFormat>;
85
+ readonly valueFormatResolved: _angular_core.Signal<typeof defaultChartFormat>;
85
86
  /** Turns on the click affordance — the pointer cursor and any hover tint.
86
87
  * The click output fires whether or not this is set, so a consumer that
87
88
  * binds the output and forgets the flag still receives every click. */
@@ -127,6 +128,10 @@ declare class FunnelChartComponent {
127
128
  protected readonly rovingIndex: _angular_core.WritableSignal<number>;
128
129
  protected readonly tabStopIndex: _angular_core.Signal<number>;
129
130
  protected onMarkFocus(index: number, event: FocusEvent): void;
131
+ /** A table row stands for its band, so it opens the band's tooltip over the BAND and dims the
132
+ * others — the same state hovering the band itself produces. */
133
+ protected onRowEnter(index: number, event: Event): void;
134
+ protected isDimmed(index: number): boolean;
130
135
  protected onMarkNavigation(event: KeyboardEvent, index: number): void;
131
136
  protected readonly tooltipContext: _angular_core.Signal<ChartTooltipContext | null>;
132
137
  protected readonly viewBox = "0 0 100 100";
@@ -1,7 +1,9 @@
1
1
  import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
2
+ import { defaultChartFormat, LinePoint } from '@ids-group-ltd/ids-design-system/components';
3
+ import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
4
+ import { ChartAxisMode, ChartFrame, ChartDataTable, ChartValueFormat } from '@ids-group-ltd/ids-design-system/core';
2
5
  import * as _angular_core from '@angular/core';
3
6
  import { TemplateRef } from '@angular/core';
4
- import { ChartFrame, ChartDataTable, ChartValueFormat } from '@ids-group-ltd/ids-design-system/core';
5
7
  import { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';
6
8
  import { ChartTooltipTrigger, ChartTooltipContext, ChartTooltipOrigin } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
7
9
 
@@ -18,15 +20,9 @@ interface LineChartSeries {
18
20
  * when one is hidden; left out, a series takes the colour of its position. */
19
21
  slot?: number;
20
22
  }
21
- /** How the secondary axis relates to the primary one.
22
- *
23
- * - `'rounded'` — one set of gridlines, and the secondary axis rounds its step up
24
- * to a round number, so its series stops short of the top.
25
- * - `'exact'` — one set of gridlines, and the secondary axis ends exactly at its
26
- * largest reading, so its series uses the full height and the labels are not round.
27
- * - `'independent'` — each axis is scaled and gridded on its own.
28
- * - `'stacked'` — two plots one above the other, sharing the category axis. */
29
- type LineChartAxisMode = 'rounded' | 'exact' | 'independent' | 'stacked';
23
+ /** How the secondary axis relates to the primary one. The same four words `ds-chart` takes for a
24
+ * composed two-scale plot, so a combo and a line chart are read the same way. */
25
+ type LineChartAxisMode = ChartAxisMode;
30
26
  /** What a `null` reading draws: a hole in the line, or a point at zero. */
31
27
  type LineChartGaps = 'break' | 'zero';
32
28
  /** A label pinned to one reading, so the point it names is legible with no pointer — a peak, a
@@ -72,12 +68,6 @@ interface ChartLayout {
72
68
  readonly categoryLabelY: number;
73
69
  readonly stacked: boolean;
74
70
  }
75
- interface LinePoint {
76
- readonly categoryIndex: number;
77
- readonly x: number;
78
- readonly y: number;
79
- readonly value: number;
80
- }
81
71
 
82
72
  interface ResolvedSeries {
83
73
  readonly series: LineChartSeries;
@@ -107,7 +97,7 @@ declare class LineChartComponent {
107
97
  * loses its tail and a shorter one ends early. */
108
98
  readonly series: _angular_core.InputSignal<readonly LineChartSeries[]>;
109
99
  /** How a secondary axis relates to the primary one. */
110
- readonly yAxisMode: _angular_core.InputSignal<LineChartAxisMode>;
100
+ readonly yAxisMode: _angular_core.InputSignal<_ids_group_ltd_ids_design_system_core.ChartAxisMode>;
111
101
  /** Draws a dot at every reading. Off, the dots appear on hover and on focus only. */
112
102
  readonly showMarkers: _angular_core.InputSignalWithTransform<boolean, unknown>;
113
103
  /** Labels pinned over their readings, for the points that have to read without a pointer. They
@@ -198,7 +188,7 @@ declare class LineChartComponent {
198
188
  readonly dataTableResolved: _angular_core.Signal<ChartDataTable>;
199
189
  readonly emptyTextResolved: _angular_core.Signal<string>;
200
190
  readonly errorTextResolved: _angular_core.Signal<string>;
201
- readonly valueFormatResolved: _angular_core.Signal<ChartValueFormat>;
191
+ readonly valueFormatResolved: _angular_core.Signal<typeof defaultChartFormat>;
202
192
  protected readonly viewBox = "0 0 640 320";
203
193
  protected readonly resolvedSeries: _angular_core.Signal<readonly ResolvedSeries[]>;
204
194
  /** Ids of the series the legend has switched off. Two-way, so a page can drive it from a URL
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Signal, ElementRef, TemplateRef, ModelSignal, WritableSignal } from '@angular/core';
3
+ import { ChartFormatLocation, ChartThreshold, IconName } from '@ids-group-ltd/ids-design-system/core';
3
4
  import { ControlValueAccessor } from '@angular/forms';
4
- import { IconName } from '@ids-group-ltd/ids-design-system/core';
5
5
  import { FieldMessageState } from '@ids-group-ltd/ids-design-system/components/field-message';
6
6
  import { Params, QueryParamsHandling, UrlTree } from '@angular/router';
7
7
  import { OverlayRef, Overlay, FlexibleConnectedPositionStrategy, OverlayConfig } from '@angular/cdk/overlay';
@@ -47,6 +47,12 @@ declare const CHART_RAMP_COLORS: readonly string[];
47
47
 
48
48
  /** @internal */
49
49
  declare function formatValue(value: number, locale?: string): string;
50
+ /** The built-in `valueFormat`: compact on a tick (`1.2M`), spelled out everywhere else
51
+ * (`1 248 392`). A caller-supplied formatter receives the same `location` and decides for
52
+ * itself; this is only the default.
53
+ *
54
+ * @internal */
55
+ declare function defaultChartFormat(value: number, location: ChartFormatLocation): string;
50
56
  /** @internal */
51
57
  declare function formatPercent(value: number, total: number): string;
52
58
  /** Whole percentages that sum to exactly 100. Rounding each share on its own
@@ -76,17 +82,49 @@ declare function describeShare(values: readonly number[], index: number): string
76
82
  * @internal */
77
83
  declare function elementWidth(host: ElementRef<HTMLElement>): Signal<number>;
78
84
 
85
+ /** One plotted reading, in the canvas's own coordinates.
86
+ *
87
+ * @internal */
88
+ interface LinePoint {
89
+ readonly categoryIndex: number;
90
+ readonly x: number;
91
+ readonly y: number;
92
+ readonly value: number;
93
+ }
94
+ /** The unbroken runs of a series: a missing reading ends one run and starts the next.
95
+ *
96
+ * @internal */
97
+ declare function lineSegments(points: readonly (LinePoint | null)[]): LinePoint[][];
98
+ /** `''` rather than a partial list when a coordinate is unplottable: one `NaN` in a
99
+ * `points` list or a path `d` voids the whole attribute, and the line then vanishes
100
+ * with nothing logged.
101
+ *
102
+ * @internal */
103
+ declare function polylinePoints(segment: readonly LinePoint[]): string;
104
+ /** @internal */
105
+ declare function areaPath(segment: readonly LinePoint[], baselineY: number): string;
106
+
107
+ /** The floor of a domain that has to include zero: zero itself for an all-positive
108
+ * series, and the most negative reading otherwise.
109
+ *
110
+ * @internal */
111
+ declare function domainMinOf(values: readonly number[]): number;
112
+ /** @internal */
113
+ declare function tickValues(domainMin: number, domainMax: number, targetCount: number): number[];
79
114
  /** @internal */
80
- declare function tickValues(domainMax: number, targetCount: number): number[];
115
+ interface NiceDomain {
116
+ readonly min: number;
117
+ readonly max: number;
118
+ }
81
119
  /** @internal */
82
- declare function niceMax(domainMax: number, targetCount: number): number;
120
+ declare function niceDomain(domainMin: number, domainMax: number, targetCount: number): NiceDomain;
83
121
  /** Distance between two ticks, which `formatTick` needs to pick a precision. A
84
122
  * degenerate series yields a single tick and therefore no step.
85
123
  *
86
124
  * @internal */
87
125
  declare function tickStep(ticks: readonly number[]): number;
88
126
  /** @internal */
89
- declare function linearScale(domainMax: number, rangeSize: number): (value: number) => number;
127
+ declare function linearScale(domainMin: number, domainMax: number, rangeSize: number): (value: number) => number;
90
128
  /** @internal */
91
129
  interface PointScale {
92
130
  readonly step: number;
@@ -117,6 +155,13 @@ interface BandScale {
117
155
  declare function pointScale(count: number, rangeSize: number): PointScale;
118
156
  /** @internal */
119
157
  declare function bandScale(count: number, rangeSize: number, paddingRatio: number): BandScale;
158
+ /** The smallest 1/2/5/10 x power-of-ten step that is not below `minimumStep`.
159
+ * `niceDomain` picks its own number of intervals, so it cannot answer this: a second
160
+ * axis drawn against the first's gridlines has to reach its data within the intervals
161
+ * the first already drew.
162
+ *
163
+ * @internal */
164
+ declare function roundStepAtLeast(minimumStep: number): number;
120
165
 
121
166
  /** Entrance delay for the mark at `index`, in milliseconds. `stepMs` of `0` is the default and
122
167
  * means no stagger at all.
@@ -131,9 +176,13 @@ declare function staggerDelay(index: number, stepMs: number): number;
131
176
  *
132
177
  * @internal */
133
178
  declare function nextRovingIndex(key: string, current: number, count: number): number | null;
179
+ /** The mark `index` within `scope`. `within` narrows the search for a chart whose marks repeat the
180
+ * same index once per series.
181
+ *
182
+ * @internal */
183
+ declare function markAt(scope: Element | null, index: number, within?: string): Element | null;
134
184
  /** Moves DOM focus to the mark `index` within `scope`, which is what makes the roving tabindex a
135
- * traversal rather than a state change nobody can see. `within` narrows the search for a chart
136
- * whose marks repeat the same index once per series.
185
+ * traversal rather than a state change nobody can see.
137
186
  *
138
187
  * @internal */
139
188
  declare function focusMark(scope: Element | null, index: number, within?: string): void;
@@ -152,7 +201,7 @@ interface SummaryPoint {
152
201
  * levels of chart description, and the encoding is the one thing a screen-reader user cannot use.
153
202
  *
154
203
  * @internal */
155
- declare function describeSeries(label: string, points: readonly SummaryPoint[], format?: (value: number) => string, tableFollows?: boolean): string;
204
+ declare function describeSeries(label: string, points: readonly SummaryPoint[], format?: (value: number) => string, tableFollows?: boolean, thresholds?: readonly ChartThreshold[]): string;
156
205
 
157
206
  /** @internal */
158
207
  declare function chipFit(count: Signal<number>, chipRow: Signal<ElementRef<HTMLElement> | undefined>, enabled: Signal<boolean>,
@@ -827,5 +876,5 @@ interface DsTypeAhead {
827
876
  /** @internal */
828
877
  declare function createTypeAhead(): DsTypeAhead;
829
878
 
830
- export { CHART_RAMP_COLORS, CHART_SERIES_COLORS, DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, announceOptionCount, bandScale, chartColors, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, describeSeries, describeShare, disposeWithLeave, dropdownOverlay, dsAriaCurrent, dsDestination, elementWidth, focusIsInside, focusMark, formatPercent, formatTick, formatValue, forwardOverlayTokens, largestRemainder, linearScale, nextControlId, nextRovingIndex, niceMax, overlayPlacementOf, panelClassesOf, pointScale, prepareOverlayEnter, resolveBrandValue, resolveFieldMessage, scrollActiveOptionIntoView, shareOfTotal, staggerDelay, tickStep, tickValues, trimmedText, valueControlBridge };
831
- export type { BandScale, DsAriaCurrent, DsDestination, DsFieldError, DsFieldErrorsInput, DsFieldMessage, DsLinkModifiers, DsOverlayCloseCause, DsRouterLink, PointScale, SummaryPoint };
879
+ export { CHART_RAMP_COLORS, CHART_SERIES_COLORS, DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, announceOptionCount, areaPath, bandScale, chartColors, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, defaultChartFormat, describeSeries, describeShare, disposeWithLeave, domainMinOf, dropdownOverlay, dsAriaCurrent, dsDestination, elementWidth, focusIsInside, focusMark, formatPercent, formatTick, formatValue, forwardOverlayTokens, largestRemainder, lineSegments, linearScale, markAt, nextControlId, nextRovingIndex, niceDomain, overlayPlacementOf, panelClassesOf, pointScale, polylinePoints, prepareOverlayEnter, resolveBrandValue, resolveFieldMessage, roundStepAtLeast, scrollActiveOptionIntoView, shareOfTotal, staggerDelay, tickStep, tickValues, trimmedText, valueControlBridge };
880
+ export type { BandScale, DsAriaCurrent, DsDestination, DsFieldError, DsFieldErrorsInput, DsFieldMessage, DsLinkModifiers, DsOverlayCloseCause, DsRouterLink, LinePoint, NiceDomain, PointScale, SummaryPoint };
@@ -26,8 +26,59 @@ type ChartDataTable = 'toggle' | 'visible' | 'none';
26
26
  /** Whether a chart draws its own bordered, padded box. `'auto'` draws it; `'none'` leaves the
27
27
  * chart bare, for a chart placed inside a card the page has already drawn. */
28
28
  type ChartFrame = 'auto' | 'none';
29
- /** Formats every value a chart prints — the annex table and the generated description included. */
30
- type ChartValueFormat = (value: number) => string;
29
+ /** Where a chart-value formatter is printing: the compact `'tick'` label on the value axis, or
30
+ * `'tooltip'` everywhere else a value is spelled out in full, meaning the annex table, the
31
+ * generated description, and a value printed beside a mark. */
32
+ type ChartFormatLocation = 'tick' | 'tooltip';
33
+ /** Formats every value a chart prints — the annex table and the generated description included.
34
+ * Called with the location it is formatting for, so one function can abbreviate on the axis and
35
+ * spell the value out everywhere else. */
36
+ type ChartValueFormat = (value: number, location: ChartFormatLocation) => string;
37
+ /** How a reference line is stroked. Named rather than a `stroke-dasharray`, so the rhythm is the
38
+ * design system's to retune once and the same word draws the same line on every chart. */
39
+ type ChartThresholdDash = 'solid' | 'dashed' | 'dotted';
40
+ /** A line drawn across a chart's plot at one reading - a target, a budget, an SLA - or, with `to`,
41
+ * the band between two of them.
42
+ *
43
+ * ONE number, not a coordinate pair: a horizontal line has a single reading, and a shape that
44
+ * makes it write that reading twice is a shape whose two ends can drift apart. */
45
+ interface ChartThreshold {
46
+ readonly value: number;
47
+ /** Printed at the line's left end and named in the generated description. An unlabelled one
48
+ * reads as "Threshold" there. */
49
+ readonly label?: string;
50
+ /** Any CSS colour. Unset takes `--ds-chart-threshold-color`. */
51
+ readonly color?: string;
52
+ /** The band's other end. Present, the threshold is drawn as a filled region between the two
53
+ * readings rather than a line; either order reads the same. */
54
+ readonly to?: number;
55
+ /** Defaults to `'dashed'`, which is what separates an annotation from another series. Carries
56
+ * nothing on a band, which is a fill. */
57
+ readonly dash?: ChartThresholdDash;
58
+ }
59
+ /** Which of a chart's two value axes a mark is measured against. */
60
+ type ChartAxis = 'primary' | 'secondary';
61
+ /** How a chart's second value axis relates to its first.
62
+ *
63
+ * - `'rounded'` - one set of gridlines, and the secondary axis rounds its step up to a round
64
+ * number, so its series stops short of the top.
65
+ * - `'exact'` - one set of gridlines, and the secondary axis ends exactly at its largest
66
+ * reading, so its series uses the full height and the labels are not round.
67
+ * - `'independent'` - each axis is scaled and gridded on its own.
68
+ * - `'stacked'` - two plots one above the other, sharing the category axis. */
69
+ type ChartAxisMode = 'rounded' | 'exact' | 'independent' | 'stacked';
70
+ /** How several series share one category's band.
71
+ *
72
+ * - `'none'` - every series draws from the baseline at the band's centre, which is the single
73
+ * series case and what a chart that was handed one list has always done.
74
+ * - `'grouped'` - each series takes its own slot inside the band, side by side.
75
+ * - `'stacked'` - each series starts where the one before it ended, so the band's full height is
76
+ * the category's total.
77
+ * - `'normalized'` - stacked, then divided by the category's own total, so every band is full and
78
+ * the axis reads in shares rather than in the data's own unit.
79
+ *
80
+ * Unrelated to `ChartAxisMode`'s `'stacked'`, which puts two PLOTS one above the other. */
81
+ type ChartStackMode = 'none' | 'grouped' | 'stacked' | 'normalized';
31
82
 
32
83
  declare const ICONS: {
33
84
  readonly search: "<circle cx=\"11\" cy=\"11\" r=\"7\" /><path d=\"m20 20-3.5-3.5\" />";
@@ -89,7 +140,7 @@ declare const ICONS: {
89
140
  readonly lock: "<rect x=\"4\" y=\"11\" width=\"16\" height=\"10\" rx=\"2\" /><path d=\"M8 11V7a4 4 0 0 1 8 0v4\" />";
90
141
  readonly logout: "<path d=\"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\" /><path d=\"m16 17 5-5-5-5M21 12H9\" />";
91
142
  readonly help: "<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M9.5 9a2.5 2.5 0 0 1 5 0c0 1.5-2.5 2-2.5 4M12 17v.01\" />";
92
- readonly pin: "<path d=\"M12 22v-7\" /><path d=\"m9 15 6 0M8 9l8 0M9 15c-2-1.5-3-4-3-7l12 0c0 3-1 5.5-3 7\" />";
143
+ readonly pin: "<path d=\"M15 4.5 11 8.5 7 10 5.5 11.5 12.5 18.5 14 17 15.5 13 19.5 9\" /><path d=\"m9 15-4.5 4.5\" /><path d=\"m14.5 4 5.5 5.5\" />";
93
144
  readonly bookmark: "<path d=\"M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16l-7-4z\" />";
94
145
  readonly sparkle: "<path d=\"M12 3v6M12 15v6M3 12h6M15 12h6M5.6 5.6l4.2 4.2M14.2 14.2l4.2 4.2M5.6 18.4l4.2-4.2M14.2 9.8l4.2-4.2\" />";
95
146
  readonly layers: "<path d=\"m12 3 9 5-9 5-9-5z\" /><path d=\"m3 13 9 5 9-5M3 18l9 5 9-5\" />";
@@ -488,4 +539,4 @@ type DsTriggerDisplay = 'full' | 'count' | 'labels';
488
539
  type DsControlWidth = 'fill' | 'content';
489
540
 
490
541
  export { DS_CONFIG, ICONS, backdropDismiss, boundOr, devWarn, firstEnabledIndex, flattenDsOptions, inheritDsConfig, isDsOptionGroup, isTextClipped, isTextEntryTarget, lastEnabledIndex, nextEnabledIndex, optionalBound, provideDsConfig, resolveWithConfig };
491
- export type { CardElevation, CardPadding, ChartDataTable, ChartFrame, ChartValueFormat, DsConfig, DsControlWidth, DsOption, DsOptionGroup, DsOptionItem, DsSize, DsStatus, DsStatusKey, DsStatusRegistry, DsToastHorizontalPosition, DsToastPosition, DsToastVerticalPosition, DsTriggerDisplay, IconName };
542
+ export type { CardElevation, CardPadding, ChartAxis, ChartAxisMode, ChartDataTable, ChartFormatLocation, ChartFrame, ChartStackMode, ChartThreshold, ChartThresholdDash, ChartValueFormat, DsConfig, DsControlWidth, DsOption, DsOptionGroup, DsOptionItem, DsSize, DsStatus, DsStatusKey, DsStatusRegistry, DsToastHorizontalPosition, DsToastPosition, DsToastVerticalPosition, DsTriggerDisplay, IconName };
@@ -8,17 +8,19 @@ export { AvatarComponent, AvatarSize, AvatarStatus, AvatarTintOptions, avatarTin
8
8
  export { AvatarGroupComponent } from '@ids-group-ltd/ids-design-system/components/avatar-group';
9
9
  export { BadgeComponent } from '@ids-group-ltd/ids-design-system/components/badge';
10
10
  export { BannerComponent, BannerVariant } from '@ids-group-ltd/ids-design-system/components/banner';
11
+ export { BarComponent, BarSemantics, BarVariant } from '@ids-group-ltd/ids-design-system/components/bar';
11
12
  export { BarChartComponent, BarChartRow, BarChartSegment } from '@ids-group-ltd/ids-design-system/components/bar-chart';
12
13
  export { BottomSheetComponent } from '@ids-group-ltd/ids-design-system/components/bottom-sheet';
13
14
  export { BreadcrumbItem, BreadcrumbsComponent, BreadcrumbsService } from '@ids-group-ltd/ids-design-system/components/breadcrumbs';
14
15
  export { ButtonColor, ButtonComponent, ButtonType, ButtonVariant } from '@ids-group-ltd/ids-design-system/components/button';
15
16
  export { ButtonGroupComponent } from '@ids-group-ltd/ids-design-system/components/button-group';
16
17
  export { CardComponent, CardElevation, CardPadding } from '@ids-group-ltd/ids-design-system/components/card';
18
+ export { CHART_SCALES, ChartComponent, ChartPlot, ChartScales } from '@ids-group-ltd/ids-design-system/components/chart';
17
19
  export { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';
18
20
  export { ChartItemTooltipTrigger, ChartTooltipContext, ChartTooltipEntry, ChartTooltipOrigin, ChartTooltipTrigger } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
19
21
  export { CheckboxComponent } from '@ids-group-ltd/ids-design-system/components/checkbox';
20
22
  export { ColorPickerComponent } from '@ids-group-ltd/ids-design-system/components/color-picker';
21
- export { ColumnChartComponent, ColumnChartPoint } from '@ids-group-ltd/ids-design-system/components/column-chart';
23
+ export { ColumnChartComponent, ColumnChartPoint, ColumnChartSeries } from '@ids-group-ltd/ids-design-system/components/column-chart';
22
24
  export { DatePickerComponent, DatePickerMode, DatePickerPreset, DatePickerValue, DateValue, RangeValue } from '@ids-group-ltd/ids-design-system/components/date-picker';
23
25
  export { DescriptionItemComponent, DescriptionListComponent, DescriptionListOrientation } from '@ids-group-ltd/ids-design-system/components/description-list';
24
26
  export { DividerComponent, DividerSpacing, DividerVariant } from '@ids-group-ltd/ids-design-system/components/divider';
@@ -36,7 +38,6 @@ export { LineChartAnnotation, LineChartAxisMode, LineChartComponent, LineChartGa
36
38
  export { ListComponent, ListItemComponent } from '@ids-group-ltd/ids-design-system/components/list';
37
39
  export { LoadingOverlayComponent } from '@ids-group-ltd/ids-design-system/components/loading-overlay';
38
40
  export { MenuComponent, MenuDividerComponent, MenuItemComponent } from '@ids-group-ltd/ids-design-system/components/menu';
39
- export { MeterComponent } from '@ids-group-ltd/ids-design-system/components/meter';
40
41
  export { ModalCardComponent, ModalComponent, ModalConfirmOptions, ModalConfirmTone, ModalService, ModalSize } from '@ids-group-ltd/ids-design-system/components/modal';
41
42
  export { MultiSelectComponent, MultiSelectItem, MultiSelectOption, MultiSelectOptionGroup, MultiSelectWidth } from '@ids-group-ltd/ids-design-system/components/multi-select';
42
43
  export { NumberStepperComponent } from '@ids-group-ltd/ids-design-system/components/number-stepper';
@@ -46,7 +47,6 @@ export { PageHeaderComponent } from '@ids-group-ltd/ids-design-system/components
46
47
  export { PaginationComponent } from '@ids-group-ltd/ids-design-system/components/pagination';
47
48
  export { DsPasswordRule, DsPasswordRuleState, PasswordRulesComponent, passwordRulesMet } from '@ids-group-ltd/ids-design-system/components/password-rules';
48
49
  export { PopoverAlign, PopoverComponent, PopoverPlacement } from '@ids-group-ltd/ids-design-system/components/popover';
49
- export { ProgressComponent, ProgressVariant } from '@ids-group-ltd/ids-design-system/components/progress';
50
50
  export { RADIO_GROUP, RadioComponent, RadioGroupChild, RadioGroupComponent, RadioGroupContract } from '@ids-group-ltd/ids-design-system/components/radio-group';
51
51
  export { ReserveMessagesDirective } from '@ids-group-ltd/ids-design-system/components/reserve-messages';
52
52
  export { SearchComponent } from '@ids-group-ltd/ids-design-system/components/search';
@@ -77,7 +77,7 @@ export { TooltipDirective, TooltipPanelComponent, TooltipPlacement } from '@ids-
77
77
  export { TopBarComponent } from '@ids-group-ltd/ids-design-system/components/topbar';
78
78
  export { TreeComponent, TreeNode } from '@ids-group-ltd/ids-design-system/components/tree';
79
79
  export { W3wComponent } from '@ids-group-ltd/ids-design-system/components/w3w';
80
- export { ChartDataTable, ChartFrame, ChartValueFormat, DS_CONFIG, DsConfig, DsControlWidth, DsOption, DsOptionGroup, DsOptionItem, DsSize, DsStatus, DsStatusKey, DsStatusRegistry, DsTriggerDisplay, ICONS, IconName, flattenDsOptions, inheritDsConfig, isDsOptionGroup, isTextClipped, provideDsConfig } from '@ids-group-ltd/ids-design-system/core';
80
+ export { ChartAxis, ChartAxisMode, ChartDataTable, ChartFormatLocation, ChartFrame, ChartStackMode, ChartThreshold, ChartThresholdDash, ChartValueFormat, DS_CONFIG, DsConfig, DsControlWidth, DsOption, DsOptionGroup, DsOptionItem, DsSize, DsStatus, DsStatusKey, DsStatusRegistry, DsTriggerDisplay, ICONS, IconName, flattenDsOptions, inheritDsConfig, isDsOptionGroup, isTextClipped, provideDsConfig } from '@ids-group-ltd/ids-design-system/core';
81
81
  export { DS_ICON_REGISTRY, DsIconRegistry, IconComponent, provideDsIcons } from '@ids-group-ltd/ids-design-system/icons';
82
82
  export { BodyScrollLockService, DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';
83
83
  export { DsThemeOptions, provideDsTheme } from '@ids-group-ltd/ids-design-system/theme';
@@ -1,11 +0,0 @@
1
- <!-- GENERATED by tools/split-agent-catalogue.mjs from components.md. Do not edit. -->
2
- # `<ds-meter>` — `MeterComponent`
3
-
4
- Group: Display & feedback
5
-
6
- One track and one fill, for a measurement inside a table cell — no caption, no legend, no annex table.
7
- Inputs: `value: number = 0` (in units of `max`, clamped), `max: number = 100` (zero or less falls back to 100), `color: string | null = null`, `ariaLabel: string | null = null`.
8
- Not `<ds-progress>`: that reports how far a task has got and says so with `role="progressbar"`, which a table of two hundred measurements would announce two hundred times. Here the mark is `aria-hidden` unless `ariaLabel` names it — leave it unset where the cell prints the figure beside the bar, set it where the bar is the only place the number appears.
9
- `max` is usually the column's own largest value, so the longest bar fills its track and the rest are its share.
10
- The meter fills whatever box it is in, so the column decides the bar's width. A box sized to its content — `width: 'content'` on `ds-table`, or a shrink-to-fit flex or grid item — is sized by what its contents contribute intrinsically, and a bar that is 100% of its cell contributes nothing, so the host carries a `min-inline-size` of `3rem`. Give it a width of your own where the bar should be a fixed size.
11
- Tokens: `--ds-meter-height`, `--ds-meter-min-width`, `--ds-meter-track-color`, `--ds-meter-radius`, `--ds-meter-fill-color`.