@ids-group-ltd/ids-design-system 0.14.3 → 0.14.4
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.
- package/CHANGELOG.md +119 -0
- package/components.md +11 -11
- package/docs/agent/charts/column-series-component.md +1 -1
- package/docs/agent/charts/ds-bar-chart.md +1 -1
- package/docs/agent/charts/ds-chart.md +1 -1
- package/docs/agent/charts/ds-column-chart.md +1 -1
- package/docs/agent/charts/ds-funnel-chart.md +1 -1
- package/docs/agent/charts/ds-heatmap-chart.md +1 -1
- package/docs/agent/charts/ds-line-chart.md +1 -1
- package/docs/agent/charts/ds-pie-chart.md +1 -1
- package/docs/agent/charts/ds-scatter-chart.md +1 -1
- package/docs/agent/charts/ds-waterfall-chart.md +1 -1
- package/docs/agent/charts/line-series-component.md +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +10 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +69 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +27 -26
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +10 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +10 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +15 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +10 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +48 -16
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +147 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +6 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +11 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.14.4.json +231 -0
- package/package.json +9 -1
- package/schematics/check-overrides/surface.json +14 -1
- package/styles/_chart-frame.scss +4 -6
- package/styles/_toast-overlay.scss +9 -0
- package/styles/_tokens.scss +6 -0
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +9 -9
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +5 -1
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +15 -8
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +8 -9
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +9 -9
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +7 -3
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +11 -11
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +9 -9
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +9 -3
- package/types/ids-group-ltd-ids-design-system-components-sparkline.d.ts +54 -0
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +4 -1
- package/types/ids-group-ltd-ids-design-system-components.d.ts +11 -2
- package/types/ids-group-ltd-ids-design-system-core.d.ts +6 -4
- package/types/ids-group-ltd-ids-design-system.d.ts +1 -0
|
@@ -45,14 +45,13 @@ declare class FunnelChartComponent {
|
|
|
45
45
|
* Unset falls back to `DS_CONFIG.chart.frame`, then `'auto'` — whether charts live inside cards
|
|
46
46
|
* is one decision per app rather than per plot. */
|
|
47
47
|
readonly frame: _angular_core.InputSignal<ChartFrame | null>;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* `DS_CONFIG.chart.tooltipLingerMs`, then 0. */
|
|
48
|
+
/** Whether the tooltip draws a colour dot beside each reading. Unset falls back to
|
|
49
|
+
* `DS_CONFIG.chart.tooltipSwatches`, then draws them for up to four readings. */
|
|
50
|
+
readonly tooltipSwatches: _angular_core.InputSignalWithTransform<boolean | null, boolean | null>;
|
|
51
|
+
/** How long the tooltip stays after the pointer leaves the mark, in milliseconds. The default,
|
|
52
|
+
* 500, lets the pointer cross to the next mark and find the same panel, which glides there
|
|
53
|
+
* instead of closing and opening again. Zero takes it away at once. Unset falls back to
|
|
54
|
+
* `DS_CONFIG.chart.tooltipLingerMs`, then 500. */
|
|
56
55
|
readonly tooltipLingerMs: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
57
56
|
/** Printed above the plot as the chart's visible title, and reused as the annex table's
|
|
58
57
|
* caption. */
|
|
@@ -96,6 +95,7 @@ declare class FunnelChartComponent {
|
|
|
96
95
|
tooltipLingerMs: _angular_core.Signal<number>;
|
|
97
96
|
pinOnClick: _angular_core.Signal<boolean>;
|
|
98
97
|
hoverDelayMs: _angular_core.Signal<number>;
|
|
98
|
+
tooltipSwatches: _angular_core.Signal<boolean | "auto">;
|
|
99
99
|
};
|
|
100
100
|
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
101
101
|
readonly frameResolved: _angular_core.Signal<ChartFrame>;
|
|
@@ -184,7 +184,7 @@ declare class FunnelChartComponent {
|
|
|
184
184
|
* table's skeleton rows. */
|
|
185
185
|
protected readonly skeletonStages: _angular_core.Signal<("88%" | "62%" | "80%" | "54%" | "72%")[]>;
|
|
186
186
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FunnelChartComponent, never>;
|
|
187
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FunnelChartComponent, "ds-funnel-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "showTable": { "alias": "showTable"; "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; }; "drop": { "alias": "drop"; "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; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "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; }; }, { "stageClicked": "stageClicked"; }, ["tooltipTemplate"], never, true, never>;
|
|
187
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FunnelChartComponent, "ds-funnel-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "showTable": { "alias": "showTable"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "tooltipSwatches": { "alias": "tooltipSwatches"; "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; }; "drop": { "alias": "drop"; "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; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "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; }; }, { "stageClicked": "stageClicked"; }, ["tooltipTemplate"], never, true, never>;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
export { FunnelChartComponent };
|
|
@@ -56,11 +56,11 @@ declare class HeatmapChartComponent {
|
|
|
56
56
|
readonly caption: _angular_core.InputSignal<string | null>;
|
|
57
57
|
/** Pins the floor of the colour scale. It only ever OPENS the scale further, so a floor above
|
|
58
58
|
* the data cannot push a reading off the ramp. Unset, the scale starts at the lowest reading. */
|
|
59
|
-
readonly min: _angular_core.
|
|
59
|
+
readonly min: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
60
60
|
/** Pins the ceiling of the colour scale, the same way `min` pins its floor. Set both to compare
|
|
61
61
|
* two heat maps by colour: unset, each one spans its own readings and the same hue means a
|
|
62
62
|
* different quantity on each. */
|
|
63
|
-
readonly max: _angular_core.
|
|
63
|
+
readonly max: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
64
64
|
/** Prints each cell's reading inside it. Off by default: a grid dense enough to be worth a heat
|
|
65
65
|
* map has no room for the numbers, which is why the annex table is always there. */
|
|
66
66
|
readonly showValues: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -77,6 +77,9 @@ declare class HeatmapChartComponent {
|
|
|
77
77
|
/** `'auto'` draws the bordered, padded box; `'none'` leaves it bare for a chart inside a card the
|
|
78
78
|
* page has already drawn. Unset falls back to `DS_CONFIG.chart.frame`. */
|
|
79
79
|
readonly frame: _angular_core.InputSignal<ChartFrame | null>;
|
|
80
|
+
/** Whether the tooltip draws a colour dot beside each reading. Unset falls back to
|
|
81
|
+
* `DS_CONFIG.chart.tooltipSwatches`, then draws them for up to four readings. */
|
|
82
|
+
readonly tooltipSwatches: _angular_core.InputSignalWithTransform<boolean | null, boolean | null>;
|
|
80
83
|
/** A skeleton at the grid's own height, so the page does not resize when the data lands. */
|
|
81
84
|
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
82
85
|
/** Separate from an empty matrix: "the request failed" and "there is nothing to show" read the
|
|
@@ -111,6 +114,7 @@ declare class HeatmapChartComponent {
|
|
|
111
114
|
tooltipLingerMs: _angular_core.Signal<number>;
|
|
112
115
|
pinOnClick: _angular_core.Signal<boolean>;
|
|
113
116
|
hoverDelayMs: _angular_core.Signal<number>;
|
|
117
|
+
tooltipSwatches: _angular_core.Signal<boolean | "auto">;
|
|
114
118
|
};
|
|
115
119
|
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
116
120
|
readonly frameResolved: _angular_core.Signal<ChartFrame>;
|
|
@@ -146,7 +150,7 @@ declare class HeatmapChartComponent {
|
|
|
146
150
|
protected readonly tooltipContext: _angular_core.Signal<ChartTooltipContext | null>;
|
|
147
151
|
protected onCellClick(row: PlacedRow, cell: PlacedCell, rowIndex: number): void;
|
|
148
152
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeatmapChartComponent, never>;
|
|
149
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HeatmapChartComponent, "ds-heatmap-chart", ["dsHeatmapChart"], { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "showValues": { "alias": "showValues"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; }, { "cellClicked": "cellClicked"; }, never, never, true, never>;
|
|
153
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HeatmapChartComponent, "ds-heatmap-chart", ["dsHeatmapChart"], { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "showValues": { "alias": "showValues"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "tooltipSwatches": { "alias": "tooltipSwatches"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; }, { "cellClicked": "cellClicked"; }, never, never, true, never>;
|
|
150
154
|
}
|
|
151
155
|
|
|
152
156
|
export { HeatmapChartComponent };
|
|
@@ -119,14 +119,13 @@ declare class LineChartComponent {
|
|
|
119
119
|
* Unset falls back to `DS_CONFIG.chart.frame`, then `'auto'` — whether charts live inside cards
|
|
120
120
|
* is one decision per app rather than per plot. */
|
|
121
121
|
readonly frame: _angular_core.InputSignal<ChartFrame | null>;
|
|
122
|
-
/**
|
|
123
|
-
*
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* `DS_CONFIG.chart.tooltipLingerMs`, then 0. */
|
|
122
|
+
/** Whether the tooltip draws a colour dot beside each reading. Unset falls back to
|
|
123
|
+
* `DS_CONFIG.chart.tooltipSwatches`, then draws them for up to four readings. */
|
|
124
|
+
readonly tooltipSwatches: _angular_core.InputSignalWithTransform<boolean | null, boolean | null>;
|
|
125
|
+
/** How long the tooltip stays after the pointer leaves the mark, in milliseconds. The default,
|
|
126
|
+
* 500, lets the pointer cross to the next mark and find the same panel, which glides there
|
|
127
|
+
* instead of closing and opening again. Zero takes it away at once. Unset falls back to
|
|
128
|
+
* `DS_CONFIG.chart.tooltipLingerMs`, then 500. */
|
|
130
129
|
readonly tooltipLingerMs: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
131
130
|
/** Printed above the plot as the chart's visible title, and reused as the annex table's
|
|
132
131
|
* caption. */
|
|
@@ -147,9 +146,9 @@ declare class LineChartComponent {
|
|
|
147
146
|
* the second one where a series sets `axis: 'secondary'`. A maximum below the data does not clip
|
|
148
147
|
* it — the larger of the two wins, because silently hiding a reading is worse than a taller axis
|
|
149
148
|
* than you asked for. */
|
|
150
|
-
readonly max: _angular_core.
|
|
149
|
+
readonly max: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
151
150
|
/** Pins the secondary value axis. See `max`. */
|
|
152
|
-
readonly maxSecondary: _angular_core.
|
|
151
|
+
readonly maxSecondary: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
153
152
|
/** Draws skeleton marks in place of the data, at the same count, so the chart does not resize
|
|
154
153
|
* when the data lands. */
|
|
155
154
|
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -226,6 +225,7 @@ declare class LineChartComponent {
|
|
|
226
225
|
* category under the pointer, which is the reading a multi-series line is compared on;
|
|
227
226
|
* `'item'` names only the marker itself. */
|
|
228
227
|
readonly tooltip: _angular_core.InputSignal<ChartTooltipTrigger>;
|
|
228
|
+
protected readonly plotCursor: _angular_core.Signal<"none" | "category">;
|
|
229
229
|
protected readonly tooltipTemplate: _angular_core.Signal<TemplateRef<{
|
|
230
230
|
$implicit: ChartTooltipContext;
|
|
231
231
|
}> | undefined>;
|
|
@@ -280,7 +280,7 @@ declare class LineChartComponent {
|
|
|
280
280
|
* is still empty. */
|
|
281
281
|
protected readonly skeletonSeries: _angular_core.Signal<unknown[]>;
|
|
282
282
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LineChartComponent, never>;
|
|
283
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LineChartComponent, "ds-line-chart", never, { "categories": { "alias": "categories"; "required": true; "isSignal": true; }; "series": { "alias": "series"; "required": true; "isSignal": true; }; "yAxisMode": { "alias": "yAxisMode"; "required": false; "isSignal": true; }; "showMarkers": { "alias": "showMarkers"; "required": false; "isSignal": true; }; "outline": { "alias": "outline"; "required": false; "isSignal": true; }; "annotations": { "alias": "annotations"; "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; }; "gaps": { "alias": "gaps"; "required": false; "isSignal": true; }; "curve": { "alias": "curve"; "required": false; "isSignal": true; }; "stack": { "alias": "stack"; "required": false; "isSignal": true; }; "yAxisLabel": { "alias": "yAxisLabel"; "required": false; "isSignal": true; }; "secondaryAxisLabel": { "alias": "secondaryAxisLabel"; "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; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "maxSecondary": { "alias": "maxSecondary"; "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; }; "hiddenSeries": { "alias": "hiddenSeries"; "required": false; "isSignal": true; }; "rescaleOnHide": { "alias": "rescaleOnHide"; "required": false; "isSignal": true; }; "legendFilters": { "alias": "legendFilters"; "required": false; "isSignal": true; }; "legendMode": { "alias": "legendMode"; "required": false; "isSignal": true; }; "noVisibleSeriesText": { "alias": "noVisibleSeriesText"; "required": false; "isSignal": true; }; "patterns": { "alias": "patterns"; "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"; "hiddenSeries": "hiddenSeriesChange"; }, ["tooltipTemplate"], never, true, never>;
|
|
283
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LineChartComponent, "ds-line-chart", never, { "categories": { "alias": "categories"; "required": true; "isSignal": true; }; "series": { "alias": "series"; "required": true; "isSignal": true; }; "yAxisMode": { "alias": "yAxisMode"; "required": false; "isSignal": true; }; "showMarkers": { "alias": "showMarkers"; "required": false; "isSignal": true; }; "outline": { "alias": "outline"; "required": false; "isSignal": true; }; "annotations": { "alias": "annotations"; "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; }; "gaps": { "alias": "gaps"; "required": false; "isSignal": true; }; "curve": { "alias": "curve"; "required": false; "isSignal": true; }; "stack": { "alias": "stack"; "required": false; "isSignal": true; }; "yAxisLabel": { "alias": "yAxisLabel"; "required": false; "isSignal": true; }; "secondaryAxisLabel": { "alias": "secondaryAxisLabel"; "required": false; "isSignal": true; }; "tickCount": { "alias": "tickCount"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "tooltipSwatches": { "alias": "tooltipSwatches"; "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; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "maxSecondary": { "alias": "maxSecondary"; "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; }; "hiddenSeries": { "alias": "hiddenSeries"; "required": false; "isSignal": true; }; "rescaleOnHide": { "alias": "rescaleOnHide"; "required": false; "isSignal": true; }; "legendFilters": { "alias": "legendFilters"; "required": false; "isSignal": true; }; "legendMode": { "alias": "legendMode"; "required": false; "isSignal": true; }; "noVisibleSeriesText": { "alias": "noVisibleSeriesText"; "required": false; "isSignal": true; }; "patterns": { "alias": "patterns"; "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"; "hiddenSeries": "hiddenSeriesChange"; }, ["tooltipTemplate"], never, true, never>;
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
export { LineChartComponent };
|
|
@@ -43,14 +43,13 @@ declare class PieChartComponent {
|
|
|
43
43
|
* Unset falls back to `DS_CONFIG.chart.frame`, then `'auto'` — whether charts live inside cards
|
|
44
44
|
* is one decision per app rather than per plot. */
|
|
45
45
|
readonly frame: _angular_core.InputSignal<ChartFrame | null>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* `DS_CONFIG.chart.tooltipLingerMs`, then 0. */
|
|
46
|
+
/** Whether the tooltip draws a colour dot beside each reading. Unset falls back to
|
|
47
|
+
* `DS_CONFIG.chart.tooltipSwatches`, then draws them for up to four readings. */
|
|
48
|
+
readonly tooltipSwatches: _angular_core.InputSignalWithTransform<boolean | null, boolean | null>;
|
|
49
|
+
/** How long the tooltip stays after the pointer leaves the mark, in milliseconds. The default,
|
|
50
|
+
* 500, lets the pointer cross to the next mark and find the same panel, which glides there
|
|
51
|
+
* instead of closing and opening again. Zero takes it away at once. Unset falls back to
|
|
52
|
+
* `DS_CONFIG.chart.tooltipLingerMs`, then 500. */
|
|
54
53
|
readonly tooltipLingerMs: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
55
54
|
/** Printed above the plot as the chart's visible title, and reused as the annex table's
|
|
56
55
|
* caption. */
|
|
@@ -97,6 +96,7 @@ declare class PieChartComponent {
|
|
|
97
96
|
tooltipLingerMs: _angular_core.Signal<number>;
|
|
98
97
|
pinOnClick: _angular_core.Signal<boolean>;
|
|
99
98
|
hoverDelayMs: _angular_core.Signal<number>;
|
|
99
|
+
tooltipSwatches: _angular_core.Signal<boolean | "auto">;
|
|
100
100
|
};
|
|
101
101
|
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
102
102
|
readonly frameResolved: _angular_core.Signal<ChartFrame>;
|
|
@@ -185,7 +185,7 @@ declare class PieChartComponent {
|
|
|
185
185
|
* is still empty. */
|
|
186
186
|
protected readonly skeletonRows: _angular_core.Signal<unknown[]>;
|
|
187
187
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PieChartComponent, never>;
|
|
188
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PieChartComponent, "ds-pie-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; }; "innerRadius": { "alias": "innerRadius"; "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; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "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>;
|
|
188
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PieChartComponent, "ds-pie-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; }; "innerRadius": { "alias": "innerRadius"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "tooltipSwatches": { "alias": "tooltipSwatches"; "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; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "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>;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
export { PieChartComponent };
|
|
@@ -90,6 +90,9 @@ declare class ScatterChartComponent {
|
|
|
90
90
|
/** `'auto'` draws the bordered, padded box; `'none'` leaves it bare for a chart inside a card
|
|
91
91
|
* the page has already drawn. Unset falls back to `DS_CONFIG.chart.frame`. */
|
|
92
92
|
readonly frame: _angular_core.InputSignal<ChartFrame | null>;
|
|
93
|
+
/** Whether the tooltip draws a colour dot beside each reading. Unset falls back to
|
|
94
|
+
* `DS_CONFIG.chart.tooltipSwatches`, then draws them for up to four readings. */
|
|
95
|
+
readonly tooltipSwatches: _angular_core.InputSignalWithTransform<boolean | null, boolean | null>;
|
|
93
96
|
/** The annex table under the plot. It lists EVERY reading, including the ones decimation left
|
|
94
97
|
* out of the drawing, which is what keeps a thinned chart honest. */
|
|
95
98
|
readonly dataTable: _angular_core.InputSignal<ChartDataTable | null>;
|
|
@@ -128,6 +131,7 @@ declare class ScatterChartComponent {
|
|
|
128
131
|
tooltipLingerMs: _angular_core.Signal<number>;
|
|
129
132
|
pinOnClick: _angular_core.Signal<boolean>;
|
|
130
133
|
hoverDelayMs: _angular_core.Signal<number>;
|
|
134
|
+
tooltipSwatches: _angular_core.Signal<boolean | "auto">;
|
|
131
135
|
};
|
|
132
136
|
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
133
137
|
readonly frameResolved: _angular_core.Signal<ChartFrame>;
|
|
@@ -193,8 +197,10 @@ declare class ScatterChartComponent {
|
|
|
193
197
|
* and the series' one listener reads it back. */
|
|
194
198
|
protected readonly seriesStart: _angular_core.Signal<Map<string, number>>;
|
|
195
199
|
constructor();
|
|
196
|
-
|
|
197
|
-
protected
|
|
200
|
+
private hoveredIndex;
|
|
201
|
+
protected onCanvasPointer(event: PointerEvent): void;
|
|
202
|
+
protected onCanvasLeave(): void;
|
|
203
|
+
private nearestMark;
|
|
198
204
|
protected onPointPress(event: Event): void;
|
|
199
205
|
protected readonly pinnedPoint: _angular_core.Signal<PlacedPoint | null>;
|
|
200
206
|
protected readonly pinLift: number;
|
|
@@ -203,7 +209,7 @@ declare class ScatterChartComponent {
|
|
|
203
209
|
protected onPointClick(series: ScatterChartSeries, point: ScatterPoint): void;
|
|
204
210
|
protected pointLabel(series: ScatterChartSeries, point: ScatterPoint): string;
|
|
205
211
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScatterChartComponent, never>;
|
|
206
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ScatterChartComponent, "ds-scatter-chart", ["dsScatterChart"], { "data": { "alias": "data"; "required": false; "isSignal": true; }; "xLabel": { "alias": "xLabel"; "required": false; "isSignal": true; }; "yLabel": { "alias": "yLabel"; "required": false; "isSignal": true; }; "decimator": { "alias": "decimator"; "required": false; "isSignal": true; }; "tickCount": { "alias": "tickCount"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "dataTable": { "alias": "dataTable"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; }, { "pointClicked": "pointClicked"; }, never, never, true, never>;
|
|
212
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ScatterChartComponent, "ds-scatter-chart", ["dsScatterChart"], { "data": { "alias": "data"; "required": false; "isSignal": true; }; "xLabel": { "alias": "xLabel"; "required": false; "isSignal": true; }; "yLabel": { "alias": "yLabel"; "required": false; "isSignal": true; }; "decimator": { "alias": "decimator"; "required": false; "isSignal": true; }; "tickCount": { "alias": "tickCount"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "tooltipSwatches": { "alias": "tooltipSwatches"; "required": false; "isSignal": true; }; "dataTable": { "alias": "dataTable"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; }, { "pointClicked": "pointClicked"; }, never, never, true, never>;
|
|
207
213
|
}
|
|
208
214
|
|
|
209
215
|
export { ScatterChartComponent };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ChartTooltipOrigin, ChartTooltipContext } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
3
|
+
|
|
4
|
+
/** `'data'` spans the readings' own min..max, which shows the shape: a dip from 99.5 to 93.1 fills
|
|
5
|
+
* the box. `'zero'` keeps zero on the scale, which shows the size: the same dip is a sliver at
|
|
6
|
+
* the top. */
|
|
7
|
+
type SparklineScale = 'data' | 'zero';
|
|
8
|
+
|
|
9
|
+
interface SparklinePoint {
|
|
10
|
+
readonly index: number;
|
|
11
|
+
readonly x: number;
|
|
12
|
+
readonly y: number;
|
|
13
|
+
}
|
|
14
|
+
interface SparklineGeometry {
|
|
15
|
+
readonly path: string;
|
|
16
|
+
readonly points: readonly SparklinePoint[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** A word-sized trend line: no axes, gridlines, legend or frame, a dot on the last reading, and a
|
|
20
|
+
* tooltip naming the reading under the pointer. Sized by `--ds-sparkline-width` and
|
|
21
|
+
* `--ds-sparkline-height`. */
|
|
22
|
+
declare class SparklineComponent {
|
|
23
|
+
/** One reading per step, oldest first. `null` breaks the line. */
|
|
24
|
+
readonly data: _angular_core.InputSignal<readonly (number | null)[]>;
|
|
25
|
+
/** What each reading is, for the tooltip. Left out, the tooltip prints the value alone. */
|
|
26
|
+
readonly categories: _angular_core.InputSignal<readonly string[]>;
|
|
27
|
+
/** Accessible name, and the series name in the tooltip. Left out, the sparkline is decorative
|
|
28
|
+
* and hidden from assistive technology: it is then taken to sit beside a value that says it. */
|
|
29
|
+
readonly label: _angular_core.InputSignal<string | null>;
|
|
30
|
+
readonly scale: _angular_core.InputSignal<SparklineScale>;
|
|
31
|
+
/** Shows the reading under the pointer, and under the keyboard where `label` makes the
|
|
32
|
+
* sparkline focusable: focus opens the last reading, the arrow keys, Home and End move. */
|
|
33
|
+
readonly tooltip: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
34
|
+
/** Formats the value the tooltip prints. Unset, the locale's plain number format. */
|
|
35
|
+
readonly valueFormat: _angular_core.InputSignal<((value: number) => string) | null>;
|
|
36
|
+
private readonly locale;
|
|
37
|
+
private readonly canvas;
|
|
38
|
+
protected readonly focusable: _angular_core.Signal<boolean>;
|
|
39
|
+
protected readonly geometry: _angular_core.Signal<SparklineGeometry>;
|
|
40
|
+
protected readonly activePoint: _angular_core.WritableSignal<SparklinePoint | null>;
|
|
41
|
+
protected readonly shownPoint: _angular_core.Signal<SparklinePoint | null>;
|
|
42
|
+
protected readonly tooltipOrigin: _angular_core.WritableSignal<ChartTooltipOrigin | null>;
|
|
43
|
+
protected readonly tooltipContext: _angular_core.Signal<ChartTooltipContext | null>;
|
|
44
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
45
|
+
protected onFocus(): void;
|
|
46
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
47
|
+
protected clearActive(): void;
|
|
48
|
+
private activate;
|
|
49
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparklineComponent, never>;
|
|
50
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SparklineComponent, "ds-sparkline", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "categories": { "alias": "categories"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "scale": { "alias": "scale"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { SparklineComponent };
|
|
54
|
+
export type { SparklineScale };
|
|
@@ -62,6 +62,9 @@ declare class WaterfallChartComponent {
|
|
|
62
62
|
/** `'auto'` draws the bordered, padded box; `'none'` leaves it bare for a chart inside a card
|
|
63
63
|
* the page has already drawn. Unset falls back to `DS_CONFIG.chart.frame`. */
|
|
64
64
|
readonly frame: _angular_core.InputSignal<ChartFrame | null>;
|
|
65
|
+
/** Whether the tooltip draws a colour dot beside each reading. Unset falls back to
|
|
66
|
+
* `DS_CONFIG.chart.tooltipSwatches`, then draws them for up to four readings. */
|
|
67
|
+
readonly tooltipSwatches: _angular_core.InputSignalWithTransform<boolean | null, boolean | null>;
|
|
65
68
|
/** The annex table under the plot. Unset falls back to `DS_CONFIG.chart.dataTable`, then
|
|
66
69
|
* `'none'`. It prints each step's direction, its own reading and the running total. */
|
|
67
70
|
readonly dataTable: _angular_core.InputSignal<ChartDataTable | null>;
|
|
@@ -120,7 +123,7 @@ declare class WaterfallChartComponent {
|
|
|
120
123
|
protected readonly skeletonBars: _angular_core.Signal<unknown[]>;
|
|
121
124
|
protected onPointClicked(point: ColumnSeriesPoint): void;
|
|
122
125
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WaterfallChartComponent, never>;
|
|
123
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WaterfallChartComponent, "ds-waterfall-chart", ["dsWaterfallChart"], { "data": { "alias": "data"; "required": false; "isSignal": true; }; "showValues": { "alias": "showValues"; "required": false; "isSignal": true; }; "showConnectors": { "alias": "showConnectors"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "tickCount": { "alias": "tickCount"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "dataTable": { "alias": "dataTable"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; }, { "barClicked": "barClicked"; }, never, never, true, never>;
|
|
126
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WaterfallChartComponent, "ds-waterfall-chart", ["dsWaterfallChart"], { "data": { "alias": "data"; "required": false; "isSignal": true; }; "showValues": { "alias": "showValues"; "required": false; "isSignal": true; }; "showConnectors": { "alias": "showConnectors"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "tickCount": { "alias": "tickCount"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "tooltipSwatches": { "alias": "tooltipSwatches"; "required": false; "isSignal": true; }; "dataTable": { "alias": "dataTable"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; }, { "barClicked": "barClicked"; }, never, never, true, never>;
|
|
124
127
|
}
|
|
125
128
|
|
|
126
129
|
export { WaterfallChartComponent };
|
|
@@ -1041,11 +1041,19 @@ interface ChartDefaultInputs {
|
|
|
1041
1041
|
/** Absent on a chart with nothing to pin. */
|
|
1042
1042
|
readonly pinOnClick?: Signal<boolean | null>;
|
|
1043
1043
|
readonly hoverDelayMs?: Signal<number | null>;
|
|
1044
|
+
/** Absent on a chart with no tooltip of its own. */
|
|
1045
|
+
readonly tooltipSwatches?: Signal<boolean | null>;
|
|
1044
1046
|
}
|
|
1045
1047
|
/** How long a resting pointer waits before a chart answers it, when nothing sets it.
|
|
1046
1048
|
*
|
|
1047
1049
|
* @internal */
|
|
1048
|
-
declare const CHART_HOVER_DELAY_MS =
|
|
1050
|
+
declare const CHART_HOVER_DELAY_MS = 0;
|
|
1051
|
+
/** How long a tooltip outlives the pointer leaving its mark, when nothing sets it. Long enough
|
|
1052
|
+
* that the pointer crossing the gap to the next mark finds the same panel and it glides there,
|
|
1053
|
+
* where a shorter wait closes it and opens a new one.
|
|
1054
|
+
*
|
|
1055
|
+
* @internal */
|
|
1056
|
+
declare const CHART_TOOLTIP_LINGER_MS = 500;
|
|
1049
1057
|
/** Each resolved input → `DS_CONFIG.chart` → the built-in; copy resolves input → `DS_INTL.chart`.
|
|
1050
1058
|
* Call from an injection context.
|
|
1051
1059
|
*
|
|
@@ -1060,7 +1068,8 @@ declare function resolveChartDefaults(inputs: ChartDefaultInputs): {
|
|
|
1060
1068
|
tooltipLingerMs: Signal<number>;
|
|
1061
1069
|
pinOnClick: Signal<boolean>;
|
|
1062
1070
|
hoverDelayMs: Signal<number>;
|
|
1071
|
+
tooltipSwatches: Signal<boolean | "auto">;
|
|
1063
1072
|
};
|
|
1064
1073
|
|
|
1065
|
-
export { CHART_HEAT_COLORS, CHART_HOVER_DELAY_MS, CHART_RAMP_COLORS, CHART_RENDER_GATE_PASSED, CHART_SERIES_COLORS, DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, announceOptionCount, areaPath, bandPath, bandScale, chartColors, chartDwell, chartRenderGate, chartValueFormat, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, decimationTarget, describeSeries, describeShare, disposeWithLeave, domainMinOf, dropdownOverlay, dsAriaCurrent, dsDestination, elementWidth, focusIsInside, focusMark, formatPercent, formatTick, formatValue, formatWholePercent, forwardOverlayTokens, labelInterval, largestRemainder, leaveMark, linePath, lineSegments, linearScale, listenForMarkFocus, lttbDecimate, markAt, markOf, minMaxDecimate, needsDecimating, nextControlId, nextRovingIndex, niceDomain, overlayPlacementOf, panelClassesOf, pointScale, polylinePoints, prepareOverlayEnter, resolveBrandValue, resolveChartDefaults, resolveFieldMessage, rotationWouldFit, roundStepAtLeast, rovingMarks, scrollActiveOptionIntoView, shareOfTotal, staggerDelay, tickStep, tickValues, trimmedText, valueControlBridge };
|
|
1074
|
+
export { CHART_HEAT_COLORS, CHART_HOVER_DELAY_MS, CHART_RAMP_COLORS, CHART_RENDER_GATE_PASSED, CHART_SERIES_COLORS, CHART_TOOLTIP_LINGER_MS, DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, announceOptionCount, areaPath, bandPath, bandScale, chartColors, chartDwell, chartRenderGate, chartValueFormat, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, decimationTarget, describeSeries, describeShare, disposeWithLeave, domainMinOf, dropdownOverlay, dsAriaCurrent, dsDestination, elementWidth, focusIsInside, focusMark, formatPercent, formatTick, formatValue, formatWholePercent, forwardOverlayTokens, labelInterval, largestRemainder, leaveMark, linePath, lineSegments, linearScale, listenForMarkFocus, lttbDecimate, markAt, markOf, minMaxDecimate, needsDecimating, nextControlId, nextRovingIndex, niceDomain, overlayPlacementOf, panelClassesOf, pointScale, polylinePoints, prepareOverlayEnter, resolveBrandValue, resolveChartDefaults, resolveFieldMessage, rotationWouldFit, roundStepAtLeast, rovingMarks, scrollActiveOptionIntoView, shareOfTotal, staggerDelay, tickStep, tickValues, trimmedText, valueControlBridge };
|
|
1066
1075
|
export type { BandScale, ChartDwell, DsAriaCurrent, DsDestination, DsFieldError, DsFieldErrorsInput, DsFieldMessage, DsLinkModifiers, DsOverlayCloseCause, DsRouterLink, LinePoint, MarkHit, NiceDomain, PointScale, RovingMarks, SummaryPoint };
|
|
@@ -375,19 +375,21 @@ interface DsConfig {
|
|
|
375
375
|
* global stylesheet. */
|
|
376
376
|
frame?: ChartFrame;
|
|
377
377
|
/** How long every chart's tooltip stays after the pointer leaves the mark, in milliseconds.
|
|
378
|
-
* Default
|
|
379
|
-
*
|
|
380
|
-
* than of one plot. About 140 is enough to cross the gap at an ordinary pointer speed. */
|
|
378
|
+
* Default 500: the pointer crossing to the next mark finds the same panel, which glides there
|
|
379
|
+
* instead of closing and opening again. Zero takes it away at once. */
|
|
381
380
|
tooltipLingerMs?: number;
|
|
382
381
|
/** Whether a click on a mark, or on a category under the category cursor, holds its tooltip
|
|
383
382
|
* and highlight in place, for every chart. Default `true`. A held mark shows a pin disc; a
|
|
384
383
|
* second click, Escape or a press elsewhere lets go. A tap holds whatever this says. */
|
|
385
384
|
pinOnClick?: boolean;
|
|
386
385
|
/** How long the pointer rests on a mark, a category or a legend entry before the chart answers
|
|
387
|
-
* it - highlight and tooltip alike - in milliseconds. Default
|
|
386
|
+
* it - highlight and tooltip alike - in milliseconds. Default 0. Once a chart has answered,
|
|
388
387
|
* the next mark answers at once until the pointer leaves the chart; focus, a tap and a click
|
|
389
388
|
* that pins answer at once. */
|
|
390
389
|
hoverDelayMs?: number;
|
|
390
|
+
/** Whether every chart's tooltip draws a colour dot beside each reading. Unset draws them for up
|
|
391
|
+
* to four readings and leaves them out from five, where a column of dots reads as noise. */
|
|
392
|
+
tooltipSwatches?: boolean;
|
|
391
393
|
/** How every chart formats its values, the annex table and the generated description included.
|
|
392
394
|
* Default groups digits in `locale` and abbreviates on a tick (`1.2M`). The same reason
|
|
393
395
|
* `datePicker.locale` lives here: a number reads one way in an app, and a formatter passed
|
|
@@ -59,6 +59,7 @@ export { BrandNameDirective, SIDENAV, SidenavComponent, SidenavContract, Sidenav
|
|
|
59
59
|
export { SidenavAlertItem, SidenavFooterComponent, SidenavSearchProvider, SidenavSearchResult } from '@ids-group-ltd/ids-design-system/components/sidenav-footer';
|
|
60
60
|
export { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';
|
|
61
61
|
export { SliderComponent } from '@ids-group-ltd/ids-design-system/components/slider';
|
|
62
|
+
export { SparklineComponent, SparklineScale } from '@ids-group-ltd/ids-design-system/components/sparkline';
|
|
62
63
|
export { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';
|
|
63
64
|
export { SplitButtonComponent, SplitButtonItem, SplitButtonVariant } from '@ids-group-ltd/ids-design-system/components/split-button';
|
|
64
65
|
export { StatComponent } from '@ids-group-ltd/ids-design-system/components/stat';
|