@ids-group-ltd/ids-design-system 0.14.1 → 0.14.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.
- package/CHANGELOG.md +336 -0
- package/components.md +41 -38
- package/docs/agent/INDEX.md +3 -3
- package/docs/agent/charts/column-series-component.md +1 -1
- package/docs/agent/charts/ds-bar-chart.md +3 -3
- package/docs/agent/charts/ds-chart.md +1 -1
- package/docs/agent/charts/ds-column-chart.md +3 -3
- package/docs/agent/charts/ds-config.md +1 -1
- package/docs/agent/charts/ds-funnel-chart.md +3 -3
- package/docs/agent/charts/ds-heatmap-chart.md +1 -1
- package/docs/agent/charts/ds-line-chart.md +2 -2
- package/docs/agent/charts/ds-pie-chart.md +2 -2
- 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/docs/agent/feedback/ds-description-list.md +3 -0
- package/docs/agent/forms/ds-color-picker.md +1 -1
- package/docs/agent/forms/ds-date-picker.md +1 -1
- package/docs/agent/forms/ds-select.md +1 -1
- package/docs/agent/forms/ds-textarea.md +1 -1
- package/docs/agent/forms/ds-time-picker.md +1 -1
- package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
- package/docs/agent/foundations/tokens.md +1 -1
- package/docs/agent/navigation/ds-pagination.md +1 -1
- package/docs/agent/navigation/ds-tabs.md +2 -1
- package/docs/agent/overlays/ds-bottom-sheet.md +1 -1
- package/docs/agent/overlays/ds-drawer.md +1 -1
- package/docs/agent/overlays/ds-modal.md +1 -1
- package/docs/agent/overlays/ds-popover.md +1 -1
- package/docs/agent/overlays/ds-tooltip.md +4 -4
- package/docs/agent/tables/ds-table.md +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +4 -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 +22 -16
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +16 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +19 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +180 -19
- 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 +175 -93
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +25 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.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-date-picker.mjs +28 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +13 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +32 -18
- 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 +47 -7
- 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 +11 -11
- 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 +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +11 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +15 -13
- 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 +35 -5
- 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 +5 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +32 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +66 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +84 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +16 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +138 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +25 -9
- 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 +87 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +4 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.14.2.json +427 -0
- package/migrations/0.14.3.json +71 -0
- package/package.json +1 -1
- package/schematics/check-overrides/surface.json +36 -2
- package/styles/_chart-frame.scss +34 -12
- package/styles/_chart-interactive.scss +10 -9
- package/styles/_chart-motion.scss +139 -16
- package/styles/_overlay-motion.scss +6 -0
- package/styles/_tokens.scss +19 -4
- package/themes/_semantic.scss +1 -0
- package/themes/dark/_theme.scss +1 -0
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +24 -10
- package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +4 -1
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +33 -2
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +151 -103
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +4 -2
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +8 -9
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +4 -2
- package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +4 -1
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +23 -11
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +29 -2
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +8 -8
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +17 -7
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +20 -2
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +13 -2
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +31 -5
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -2
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +20 -2
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +11 -2
- package/types/ids-group-ltd-ids-design-system-components.d.ts +33 -6
- package/types/ids-group-ltd-ids-design-system-core.d.ts +14 -1
- package/types/ids-group-ltd-ids-design-system.d.ts +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import * as i1 from '@ids-group-ltd/ids-design-system/components';
|
|
4
|
+
import { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';
|
|
3
5
|
|
|
4
6
|
/** Bottom-anchored sheet — the mobile sibling of ds-drawer. Closes on scrim
|
|
5
7
|
* tap, Escape, or a downward drag on the grab strip. While open it locks
|
|
@@ -24,6 +26,7 @@ declare class BottomSheetComponent implements OnDestroy {
|
|
|
24
26
|
readonly snapPoints: _angular_core.InputSignal<readonly number[]>;
|
|
25
27
|
private readonly doc;
|
|
26
28
|
private readonly scrollLock;
|
|
29
|
+
protected readonly preview: DsStaticPreview;
|
|
27
30
|
private readonly sheetRef;
|
|
28
31
|
protected readonly dragOffset: _angular_core.WritableSignal<number | null>;
|
|
29
32
|
/** Sheet is in the DOM (kept true through the leave animation). */
|
|
@@ -55,7 +58,7 @@ declare class BottomSheetComponent implements OnDestroy {
|
|
|
55
58
|
protected onGrabMove(event: PointerEvent): void;
|
|
56
59
|
protected onGrabEnd(): void;
|
|
57
60
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BottomSheetComponent, never>;
|
|
58
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BottomSheetComponent, "ds-bottom-sheet", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "snapPoints": { "alias": "snapPoints"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["*", "[actions]"], true,
|
|
61
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BottomSheetComponent, "ds-bottom-sheet", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "snapPoints": { "alias": "snapPoints"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["*", "[actions]"], true, [{ directive: typeof i1.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
export { BottomSheetComponent };
|
|
@@ -33,8 +33,13 @@ declare class ChartLegendComponent {
|
|
|
33
33
|
* so it renders as a radio group with an "All" option, and toggle renders as checkboxes. That is
|
|
34
34
|
* what gives each the keyboard and screen-reader behaviour it should have. */
|
|
35
35
|
readonly mode: _angular_core.InputSignal<"toggle" | "isolate">;
|
|
36
|
-
/** The item under the pointer or holding focus, which is what the chart dims from.
|
|
36
|
+
/** The item under the pointer or holding focus, which is what the chart dims from. A pointer
|
|
37
|
+
* names it once it has rested for `DS_CONFIG.chart.hoverDelayMs`; focus names it at once. */
|
|
37
38
|
readonly highlighted: _angular_core.ModelSignal<string | null>;
|
|
39
|
+
private readonly dwell;
|
|
40
|
+
constructor();
|
|
41
|
+
protected onItemEnter(id: string, event: PointerEvent): void;
|
|
42
|
+
protected onItemLeave(): void;
|
|
38
43
|
protected isHidden(id: string): boolean;
|
|
39
44
|
protected toggle(id: string): void;
|
|
40
45
|
/** Radio groups are scoped by NAME across the whole document, so a shared name would make every
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { TemplateRef, Signal } from '@angular/core';
|
|
3
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
3
4
|
|
|
4
5
|
/** Which mark a chart's tooltip answers for. `'item'` is the mark under the pointer;
|
|
5
6
|
* `'axis'` is every series at the category under the pointer, which is what a line
|
|
@@ -98,13 +99,43 @@ interface ChartActiveMark {
|
|
|
98
99
|
* Pointer and keyboard write the same pair, so a chart wires `pointerenter` and `focus` to
|
|
99
100
|
* `enter` and gets one code path rather than two.
|
|
100
101
|
*
|
|
102
|
+
* A POINTER WAITS. It is answered once it has rested on a mark for `hoverDelayMs`, and at once
|
|
103
|
+
* while the chart has already answered it; focus, a tap and a pin are answered at once.
|
|
104
|
+
*
|
|
101
105
|
* A TAP LATCHES. A touch fires `pointerleave` the moment the finger lifts, so without this the
|
|
102
106
|
* panel would flash and vanish; latched, it stays until the next tap lands outside the mark. Call
|
|
103
107
|
* from an injection context — the release listener is torn down with the component.
|
|
104
108
|
*
|
|
105
109
|
* @internal
|
|
106
110
|
*/
|
|
107
|
-
declare function chartActiveMark(lingerMs?: () => number): ChartActiveMark;
|
|
111
|
+
declare function chartActiveMark(lingerMs?: () => number, hoverDelayMs?: () => number): ChartActiveMark;
|
|
112
|
+
|
|
113
|
+
/** Radius of the pin disc, in plot pixels. A mark that places a disc inside itself keeps this
|
|
114
|
+
* much room from its edge.
|
|
115
|
+
*
|
|
116
|
+
* @internal */
|
|
117
|
+
declare const CHART_PIN_RADIUS = 11;
|
|
118
|
+
/** How far a disc sits inside the top edge of what it holds. At one radius it sits flush against
|
|
119
|
+
* the edge and reads as part of the mark rather than as a badge on it.
|
|
120
|
+
*
|
|
121
|
+
* @internal */
|
|
122
|
+
declare const CHART_PIN_GAP = 4;
|
|
123
|
+
/**
|
|
124
|
+
* The disc an SVG chart draws on the mark or category it holds. Drawn rather than composed:
|
|
125
|
+
* `ds-icon`'s host is an HTML element, and an element the SVG specification does not know renders
|
|
126
|
+
* nothing inside a canvas. The opaque disc is what keeps the glyph legible on any series colour.
|
|
127
|
+
* Centred on the host's origin; place it with a `transform`.
|
|
128
|
+
*
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
131
|
+
declare class ChartPinMarkerComponent {
|
|
132
|
+
protected readonly radius = 11;
|
|
133
|
+
protected readonly glyphSize = 14;
|
|
134
|
+
protected readonly glyphOffset: number;
|
|
135
|
+
protected readonly glyph: SafeHtml;
|
|
136
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartPinMarkerComponent, never>;
|
|
137
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartPinMarkerComponent, "g[dsChartPinMarker]", never, {}, {}, never, never, true, never>;
|
|
138
|
+
}
|
|
108
139
|
|
|
109
|
-
export { ChartTooltipDirective, chartActiveMark };
|
|
140
|
+
export { CHART_PIN_GAP, CHART_PIN_RADIUS, ChartPinMarkerComponent, ChartTooltipDirective, chartActiveMark };
|
|
110
141
|
export type { ChartActiveMark, ChartItemTooltipTrigger, ChartTooltipContext, ChartTooltipEntry, ChartTooltipOrigin, ChartTooltipTrigger };
|
|
@@ -1,90 +1,20 @@
|
|
|
1
1
|
import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
|
|
2
2
|
import { NiceDomain, leaveMark } from '@ids-group-ltd/ids-design-system/components';
|
|
3
3
|
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
-
import { ChartThresholdDash, ChartStackMode,
|
|
4
|
+
import { ChartAxis, ChartThresholdDash, ChartStackMode, ChartFrame, ChartValueFormat, ChartAxisMode, ChartGaps, ChartCurve, ChartThreshold } from '@ids-group-ltd/ids-design-system/core';
|
|
5
5
|
import * as _ids_group_ltd_ids_design_system_components_chart_tooltip from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
6
6
|
import { ChartTooltipContext, ChartTooltipOrigin, ChartTooltipEntry, ChartItemTooltipTrigger, ChartTooltipTrigger } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
7
7
|
import * as _angular_core from '@angular/core';
|
|
8
8
|
import { InjectionToken, Signal, TemplateRef, OnDestroy } from '@angular/core';
|
|
9
|
-
import { SafeHtml } from '@angular/platform-browser';
|
|
10
9
|
import * as _ids_group_ltd_ids_design_system_components_chart from '@ids-group-ltd/ids-design-system/components/chart';
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* negative mark's label would otherwise print into the category labels: reserving it for every
|
|
19
|
-
* chart costs the all-positive ones - the common case - that much height for nothing.
|
|
20
|
-
*
|
|
21
|
-
* @internal */
|
|
22
|
-
declare function chartViewHeight(plotHeight: number, valueSpace: number, reservesBelowBaseline?: boolean): number;
|
|
23
|
-
/** @internal */
|
|
24
|
-
interface ThresholdMark {
|
|
25
|
-
/** Position in the list, not the reading: two thresholds may legitimately name the same value -
|
|
26
|
-
* a target and the floor of the band around it - and keying on the value would collapse them
|
|
27
|
-
* into one drawn line. */
|
|
28
|
-
readonly key: number;
|
|
29
|
-
readonly label: string;
|
|
30
|
-
readonly color: string | null;
|
|
31
|
-
readonly dash: ChartThresholdDash;
|
|
32
|
-
readonly band: boolean;
|
|
33
|
-
readonly left: number;
|
|
34
|
-
readonly right: number;
|
|
35
|
-
readonly width: number;
|
|
36
|
-
readonly y: number;
|
|
37
|
-
readonly top: number;
|
|
38
|
-
readonly height: number;
|
|
39
|
-
readonly labelX: number;
|
|
40
|
-
readonly labelY: number;
|
|
41
|
-
}
|
|
42
|
-
/** @internal */
|
|
43
|
-
interface SecondaryAxis {
|
|
44
|
-
readonly domain: NiceDomain;
|
|
45
|
-
readonly ticks: readonly number[];
|
|
46
|
-
/** True when the labels below belong on the PRIMARY axis's own tick rows, so the plot carries
|
|
47
|
-
* one set of gridlines rather than two crossing each other. */
|
|
48
|
-
readonly aligned: boolean;
|
|
49
|
-
}
|
|
50
|
-
/** Every segment's span on the value axis, series-major: `offsets[series][category]`.
|
|
51
|
-
*
|
|
52
|
-
* `'none'` and `'grouped'` give every series the same span it would have alone - the two differ in
|
|
53
|
-
* where the band puts them, which is geometry rather than value. The stacking modes run a
|
|
54
|
-
* POSITIVE and a NEGATIVE pile per category, so a negative segment hangs below the baseline
|
|
55
|
-
* instead of being subtracted from the positive pile it sits in.
|
|
56
|
-
*
|
|
57
|
-
* `'normalized'` divides a running SUM rather than each share in turn: adding 20/60 to 40/60
|
|
58
|
-
* lands on 0.9999999999999999, which draws a category that visibly falls short of full.
|
|
59
|
-
*/
|
|
60
|
-
declare function stackOffsets(series: readonly (readonly number[])[], mode: ChartStackMode): readonly (readonly ChartStackOffset[])[];
|
|
61
|
-
/** A label pinned to one reading, so the point it names is legible with no pointer.
|
|
62
|
-
*
|
|
63
|
-
* @internal */
|
|
64
|
-
interface ChartAnnotationMark {
|
|
65
|
-
readonly key: string;
|
|
66
|
-
readonly label: string;
|
|
67
|
-
readonly x: number;
|
|
68
|
-
readonly y: number;
|
|
69
|
-
readonly anchor: 'start' | 'middle' | 'end';
|
|
70
|
-
}
|
|
71
|
-
/** Places a label against each reading it names.
|
|
72
|
-
*
|
|
73
|
-
* @internal */
|
|
74
|
-
declare function annotationMarks(readings: readonly {
|
|
75
|
-
key: string;
|
|
76
|
-
label: string;
|
|
77
|
-
x: number;
|
|
78
|
-
y: number;
|
|
79
|
-
}[], plotWidth: number): readonly ChartAnnotationMark[];
|
|
80
|
-
/** Where one series' segment starts and ends on the value axis, in the axis's own unit - or in
|
|
81
|
-
* shares of the category total under `'normalized'`.
|
|
82
|
-
*/
|
|
83
|
-
interface ChartStackOffset {
|
|
84
|
-
readonly from: number;
|
|
85
|
-
readonly to: number;
|
|
11
|
+
/** A mark's reading at the cursor's category, with the height it is drawn at. */
|
|
12
|
+
interface ChartAxisEntry extends ChartTooltipEntry {
|
|
13
|
+
/** Where the reading is drawn, in plot pixels from the top. A category panel lists its rows in
|
|
14
|
+
* the order the reader sees the marks, top to bottom; a reading without one keeps its place
|
|
15
|
+
* after the placed ones. */
|
|
16
|
+
readonly y?: number;
|
|
86
17
|
}
|
|
87
|
-
|
|
88
18
|
/** What a mark hands the container so the container can open the panel for it. The mark decides
|
|
89
19
|
* WHAT the panel says and WHERE it points; the container decides that there is one, which is what
|
|
90
20
|
* keeps a plot from opening two. */
|
|
@@ -103,7 +33,7 @@ interface ChartTooltipSource {
|
|
|
103
33
|
/** What this mark reads at the category the cursor is on, whatever its own tooltip setting. A
|
|
104
34
|
* category panel names every series at that category, and a mark that answers per-mark still
|
|
105
35
|
* belongs in it. */
|
|
106
|
-
readonly axisEntries?: Signal<readonly
|
|
36
|
+
readonly axisEntries?: Signal<readonly ChartAxisEntry[]>;
|
|
107
37
|
}
|
|
108
38
|
/** The drawable rectangle inside `ds-chart`, in CSS pixels: the container measures itself and
|
|
109
39
|
* sizes its `viewBox` so one user unit is one pixel. A length written into a mark is therefore
|
|
@@ -147,6 +77,19 @@ interface ChartScales {
|
|
|
147
77
|
readonly zeroOffset: Signal<number>;
|
|
148
78
|
/** The category under the pointer or the keyboard, or `-1` for none. */
|
|
149
79
|
readonly activeIndex: Signal<number>;
|
|
80
|
+
/** Whether the category cursor answers the pointer. While it does, its band is the one hover
|
|
81
|
+
* area on the plot: a mark leaves pointer hover to it and answers focus and clicks only.
|
|
82
|
+
* Absent means off. */
|
|
83
|
+
readonly cursorOn?: Signal<boolean>;
|
|
84
|
+
/** The category whose axis label the pointer is on, with the event, while the category cursor
|
|
85
|
+
* is off. A mark answers it as it would the pointer on its own reading at that category. */
|
|
86
|
+
readonly categoryLabelHover?: Signal<{
|
|
87
|
+
readonly index: number;
|
|
88
|
+
readonly event: PointerEvent;
|
|
89
|
+
} | null>;
|
|
90
|
+
/** How long a resting pointer waits before a mark answers it, resolved once for the plot so
|
|
91
|
+
* every mark in it waits alike. Absent means at once. */
|
|
92
|
+
readonly hoverDelayMs?: Signal<number>;
|
|
150
93
|
/** The band drawn over the active category, for a mark that anchors a panel to the CATEGORY
|
|
151
94
|
* rather than to one of its own marks. `null` while `cursor` is off or nothing is active. */
|
|
152
95
|
readonly cursorOrigin: Signal<Element | null>;
|
|
@@ -172,6 +115,82 @@ interface ChartScales {
|
|
|
172
115
|
}
|
|
173
116
|
declare const CHART_SCALES: InjectionToken<ChartScales>;
|
|
174
117
|
|
|
118
|
+
declare const CHART_DEFAULT_VALUE_SPACE = 20;
|
|
119
|
+
/** The viewBox's height, and the `<svg>`'s rendered height in pixels - the two are the same
|
|
120
|
+
* number, which is what holds the 1:1 scale on the vertical axis too.
|
|
121
|
+
*
|
|
122
|
+
* `valueSpace` is always budgeted above the plot, for a value label over the tallest mark. It is
|
|
123
|
+
* budgeted a SECOND time below the baseline only when the domain reaches under zero, where a
|
|
124
|
+
* negative mark's label would otherwise print into the category labels: reserving it for every
|
|
125
|
+
* chart costs the all-positive ones - the common case - that much height for nothing.
|
|
126
|
+
*
|
|
127
|
+
* @internal */
|
|
128
|
+
declare function chartViewHeight(plotHeight: number, valueSpace: number, reservesBelowBaseline?: boolean): number;
|
|
129
|
+
/** @internal */
|
|
130
|
+
interface ThresholdMark {
|
|
131
|
+
/** Position in the list, not the reading: two thresholds may legitimately name the same value -
|
|
132
|
+
* a target and the floor of the band around it - and keying on the value would collapse them
|
|
133
|
+
* into one drawn line. */
|
|
134
|
+
readonly key: number;
|
|
135
|
+
readonly label: string;
|
|
136
|
+
readonly color: string | null;
|
|
137
|
+
readonly dash: ChartThresholdDash;
|
|
138
|
+
readonly band: boolean;
|
|
139
|
+
readonly left: number;
|
|
140
|
+
readonly right: number;
|
|
141
|
+
readonly width: number;
|
|
142
|
+
readonly y: number;
|
|
143
|
+
readonly top: number;
|
|
144
|
+
readonly height: number;
|
|
145
|
+
readonly labelX: number;
|
|
146
|
+
readonly labelY: number;
|
|
147
|
+
}
|
|
148
|
+
/** @internal */
|
|
149
|
+
interface SecondaryAxis {
|
|
150
|
+
readonly domain: NiceDomain;
|
|
151
|
+
readonly ticks: readonly number[];
|
|
152
|
+
/** True when the labels below belong on the PRIMARY axis's own tick rows, so the plot carries
|
|
153
|
+
* one set of gridlines rather than two crossing each other. */
|
|
154
|
+
readonly aligned: boolean;
|
|
155
|
+
}
|
|
156
|
+
/** Every segment's span on the value axis, series-major: `offsets[series][category]`.
|
|
157
|
+
*
|
|
158
|
+
* `'none'` and `'grouped'` give every series the same span it would have alone - the two differ in
|
|
159
|
+
* where the band puts them, which is geometry rather than value. The stacking modes run a
|
|
160
|
+
* POSITIVE and a NEGATIVE pile per category, so a negative segment hangs below the baseline
|
|
161
|
+
* instead of being subtracted from the positive pile it sits in.
|
|
162
|
+
*
|
|
163
|
+
* `'normalized'` divides a running SUM rather than each share in turn: adding 20/60 to 40/60
|
|
164
|
+
* lands on 0.9999999999999999, which draws a category that visibly falls short of full.
|
|
165
|
+
*/
|
|
166
|
+
declare function stackOffsets(series: readonly (readonly number[])[], mode: ChartStackMode): readonly (readonly ChartStackOffset[])[];
|
|
167
|
+
/** A label pinned to one reading, so the point it names is legible with no pointer.
|
|
168
|
+
*
|
|
169
|
+
* @internal */
|
|
170
|
+
interface ChartAnnotationMark {
|
|
171
|
+
readonly key: string;
|
|
172
|
+
readonly label: string;
|
|
173
|
+
readonly x: number;
|
|
174
|
+
readonly y: number;
|
|
175
|
+
readonly anchor: 'start' | 'middle' | 'end';
|
|
176
|
+
}
|
|
177
|
+
/** Places a label against each reading it names.
|
|
178
|
+
*
|
|
179
|
+
* @internal */
|
|
180
|
+
declare function annotationMarks(readings: readonly {
|
|
181
|
+
key: string;
|
|
182
|
+
label: string;
|
|
183
|
+
x: number;
|
|
184
|
+
y: number;
|
|
185
|
+
}[], plotWidth: number): readonly ChartAnnotationMark[];
|
|
186
|
+
/** Where one series' segment starts and ends on the value axis, in the axis's own unit - or in
|
|
187
|
+
* shares of the category total under `'normalized'`.
|
|
188
|
+
*/
|
|
189
|
+
interface ChartStackOffset {
|
|
190
|
+
readonly from: number;
|
|
191
|
+
readonly to: number;
|
|
192
|
+
}
|
|
193
|
+
|
|
175
194
|
declare class ChartComponent implements ChartScales {
|
|
176
195
|
protected readonly renderReady: Signal<boolean>;
|
|
177
196
|
/** The category axis. Every projected mark is positioned against this list, so its length is
|
|
@@ -195,8 +214,9 @@ declare class ChartComponent implements ChartScales {
|
|
|
195
214
|
readonly cursor: _angular_core.InputSignal<"none" | "category" | "auto">;
|
|
196
215
|
/** Whether a press holds the category cursor where it is, so the reader can look away from the
|
|
197
216
|
* plot with the comparison still on screen. Released by pressing it again, by Escape, or by a
|
|
198
|
-
* press outside the plot. */
|
|
199
|
-
readonly cursorPin: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
217
|
+
* press outside the plot. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then `true`. */
|
|
218
|
+
readonly cursorPin: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
219
|
+
readonly cursorPinResolved: Signal<boolean>;
|
|
200
220
|
/** Milliseconds the cursor survives the pointer leaving the plot. The tooltip panel is portaled
|
|
201
221
|
* out of the plot, so without a grace period it closes before the pointer can reach it. */
|
|
202
222
|
readonly tooltipLingerMs: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
@@ -267,6 +287,7 @@ declare class ChartComponent implements ChartScales {
|
|
|
267
287
|
readonly emptyTextResolved: Signal<string>;
|
|
268
288
|
readonly errorTextResolved: Signal<string>;
|
|
269
289
|
readonly valueFormatResolved: Signal<ChartValueFormat>;
|
|
290
|
+
readonly hoverDelayMs: Signal<number>;
|
|
270
291
|
private readonly host;
|
|
271
292
|
private readonly zone;
|
|
272
293
|
private readonly isBrowser;
|
|
@@ -352,6 +373,7 @@ declare class ChartComponent implements ChartScales {
|
|
|
352
373
|
* the category rather than about whichever mark the pointer happens to be over. */
|
|
353
374
|
private readonly composed;
|
|
354
375
|
protected readonly cursorResolved: Signal<"none" | "category">;
|
|
376
|
+
readonly cursorOn: Signal<boolean>;
|
|
355
377
|
/** The offer to show, if any mark is making one. At most one mark has a context at a time: a
|
|
356
378
|
* per-mark tooltip only fills it while that mark is hovered, and an axis tooltip only while the
|
|
357
379
|
* category cursor is on. The container opening the panel is what stops two marks opening two. */
|
|
@@ -399,6 +421,11 @@ declare class ChartComponent implements ChartScales {
|
|
|
399
421
|
private readonly cursorState;
|
|
400
422
|
readonly activeIndex: Signal<number>;
|
|
401
423
|
private readonly pointerAt;
|
|
424
|
+
private readonly pointerInBand;
|
|
425
|
+
protected bandPinY(band: {
|
|
426
|
+
readonly bottom: number;
|
|
427
|
+
}): number;
|
|
428
|
+
protected readonly bandPins: Signal<boolean>;
|
|
402
429
|
readonly cursorPointer: Signal<{
|
|
403
430
|
x: number;
|
|
404
431
|
y: number;
|
|
@@ -432,6 +459,13 @@ declare class ChartComponent implements ChartScales {
|
|
|
432
459
|
* them a reading. Both are decided from the widest label as it actually rendered. */
|
|
433
460
|
protected readonly categoryLabelsRotated: Signal<boolean>;
|
|
434
461
|
private readonly categoryLabelInterval;
|
|
462
|
+
private readonly labelHovered;
|
|
463
|
+
readonly categoryLabelHover: Signal<{
|
|
464
|
+
readonly index: number;
|
|
465
|
+
readonly event: PointerEvent;
|
|
466
|
+
} | null>;
|
|
467
|
+
protected onCategoryLabelEnter(index: number, event: PointerEvent): void;
|
|
468
|
+
protected onCategoryLabelLeave(): void;
|
|
435
469
|
protected readonly categoryLabels: Signal<{
|
|
436
470
|
x: number;
|
|
437
471
|
text: string;
|
|
@@ -474,14 +508,18 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
474
508
|
/** Turns on the click affordance - the pointer cursor and the hover tint. `pointClicked`
|
|
475
509
|
* fires whether or not this is set. */
|
|
476
510
|
readonly interactive: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
477
|
-
/** Holds the hovered mark and its tooltip in place when it is clicked, until
|
|
478
|
-
* press outside releases it.
|
|
479
|
-
|
|
511
|
+
/** Holds the hovered mark and its tooltip in place when it is clicked, until a second click,
|
|
512
|
+
* Escape or a press outside releases it. Under the category cursor the container holds the
|
|
513
|
+
* category instead. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then `true`. */
|
|
514
|
+
readonly pinOnClick: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
515
|
+
readonly pinOnClickResolved: _angular_core.Signal<boolean>;
|
|
516
|
+
protected readonly pins: _angular_core.Signal<boolean>;
|
|
480
517
|
/** Fades every mark but the one under the pointer. Off by default: the dimming buys loudness
|
|
481
518
|
* for one mark and pays for it with the separation between the rest. */
|
|
482
519
|
readonly dimOthers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
483
|
-
/** Milliseconds between one mark's entrance and the next. The
|
|
484
|
-
* series does not crawl in.
|
|
520
|
+
/** Milliseconds between one mark's entrance and the next. The steps narrow to fit the whole
|
|
521
|
+
* spread within 260ms, so a long series does not crawl in.
|
|
522
|
+
* `0` is no stagger. */
|
|
485
523
|
readonly staggerMs: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
486
524
|
/** Declares that the marks are parts of one whole, which is what makes a share of their total
|
|
487
525
|
* a real quantity. On, each mark's share appears on the tooltip's second line. */
|
|
@@ -538,6 +576,7 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
538
576
|
* is its category's running total, not its own reading. */
|
|
539
577
|
private readonly spans;
|
|
540
578
|
constructor();
|
|
579
|
+
protected readonly dimsFromLabel: _angular_core.Signal<boolean>;
|
|
541
580
|
ngOnDestroy(): void;
|
|
542
581
|
readonly activeMark: _ids_group_ltd_ids_design_system_components_chart_tooltip.ChartActiveMark;
|
|
543
582
|
private readonly barElements;
|
|
@@ -545,7 +584,7 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
545
584
|
* a share of it per series when several are grouped. The box that catches the pointer is sized
|
|
546
585
|
* from this rather than from the drawn column, so a short column stays reachable. */
|
|
547
586
|
private readonly slotStep;
|
|
548
|
-
protected readonly
|
|
587
|
+
protected readonly slotBandPx: _angular_core.Signal<string>;
|
|
549
588
|
protected readonly markWidthPx: _angular_core.Signal<string>;
|
|
550
589
|
/** The whole canvas, reserved end included. Overshooting when the container drops that
|
|
551
590
|
* reservation costs nothing - the outer `<svg>` clips it - while falling short would leave a
|
|
@@ -564,10 +603,6 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
564
603
|
y: number;
|
|
565
604
|
height: number;
|
|
566
605
|
};
|
|
567
|
-
protected readonly pinDiscRadius = 11;
|
|
568
|
-
protected readonly pinGlyphSize = 14;
|
|
569
|
-
protected readonly pinGlyphOffset: number;
|
|
570
|
-
protected readonly pinGlyph: SafeHtml;
|
|
571
606
|
protected readonly hatchInUse: _angular_core.Signal<boolean>;
|
|
572
607
|
protected readonly marks: _angular_core.Signal<{
|
|
573
608
|
key: string;
|
|
@@ -599,7 +634,8 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
599
634
|
}): string;
|
|
600
635
|
/** This series' reading at the category the cursor is on. Filled whatever `tooltip` says: it
|
|
601
636
|
* feeds the container's category panel, never a panel of this mark's own. */
|
|
602
|
-
readonly axisEntries: _angular_core.Signal<readonly
|
|
637
|
+
readonly axisEntries: _angular_core.Signal<readonly ChartAxisEntry[]>;
|
|
638
|
+
private shareDetail;
|
|
603
639
|
readonly tooltipContext: _angular_core.Signal<ChartTooltipContext | null>;
|
|
604
640
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnSeriesComponent, never>;
|
|
605
641
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColumnSeriesComponent, "g[dsColumnSeries]", ["dsColumnSeries"], { "data": { "alias": "data"; "required": false; "isSignal": true; }; "showValues": { "alias": "showValues"; "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; }; "partOfWhole": { "alias": "partOfWhole"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "tooltipAnchor": { "alias": "tooltipAnchor"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "columnWidthRatio": { "alias": "columnWidthRatio"; "required": false; "isSignal": true; }; "slot": { "alias": "slot"; "required": false; "isSignal": true; }; "slotCount": { "alias": "slotCount"; "required": false; "isSignal": true; }; "offsets": { "alias": "offsets"; "required": false; "isSignal": true; }; "axis": { "alias": "axis"; "required": false; "isSignal": true; }; "seriesColor": { "alias": "seriesColor"; "required": false; "isSignal": true; }; "seriesFill": { "alias": "seriesFill"; "required": false; "isSignal": true; }; "seriesLabel": { "alias": "seriesLabel"; "required": false; "isSignal": true; }; "seriesKey": { "alias": "seriesKey"; "required": false; "isSignal": true; }; "highlighted": { "alias": "highlighted"; "required": false; "isSignal": true; }; }, { "pointClicked": "pointClicked"; }, never, never, true, never>;
|
|
@@ -623,13 +659,6 @@ interface LineSeriesData {
|
|
|
623
659
|
/** Any CSS colour. Unset takes the categorical palette slot for the series' position. */
|
|
624
660
|
color?: string;
|
|
625
661
|
}
|
|
626
|
-
/**
|
|
627
|
-
* One line per series, drawn against the scales `ds-chart` supplies, on either of its two value
|
|
628
|
-
* axes.
|
|
629
|
-
*
|
|
630
|
-
* Hosted on a `<g>` rather than an element of its own: an element the SVG specification does not
|
|
631
|
-
* know is not rendered, and neither are its descendants. Written as `<svg:g dsLineSeries>`.
|
|
632
|
-
*/
|
|
633
662
|
declare class LineSeriesComponent implements OnDestroy {
|
|
634
663
|
protected readonly leaveMark: typeof leaveMark;
|
|
635
664
|
private readonly scales;
|
|
@@ -646,9 +675,12 @@ declare class LineSeriesComponent implements OnDestroy {
|
|
|
646
675
|
/** Turns on the click affordance - the pointer cursor and the hover tint. `pointClicked`
|
|
647
676
|
* fires whether or not this is set. */
|
|
648
677
|
readonly interactive: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
649
|
-
/** Holds the hovered mark and its tooltip in place when it is clicked, until
|
|
650
|
-
* press outside releases it.
|
|
651
|
-
|
|
678
|
+
/** Holds the hovered mark and its tooltip in place when it is clicked, until a second click,
|
|
679
|
+
* Escape or a press outside releases it. Under the category cursor the container holds the
|
|
680
|
+
* category instead. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then `true`. */
|
|
681
|
+
readonly pinOnClick: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
682
|
+
readonly pinOnClickResolved: _angular_core.Signal<boolean>;
|
|
683
|
+
protected readonly pins: _angular_core.Signal<boolean>;
|
|
652
684
|
/** Fades every series but the one under the pointer. Off by default: the dimming buys loudness
|
|
653
685
|
* for one line and pays for it with the separation between the rest. */
|
|
654
686
|
readonly dimOthers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -665,7 +697,8 @@ declare class LineSeriesComponent implements OnDestroy {
|
|
|
665
697
|
readonly stacked: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
666
698
|
/** The dash for a series' position, or null where it draws solid. */
|
|
667
699
|
protected dashFor(seriesIndex: number): string | null;
|
|
668
|
-
/** Milliseconds between one
|
|
700
|
+
/** Milliseconds between one series' entrance and the next, narrowed so the last series still
|
|
701
|
+
* starts within the stagger budget. `0` turns the stagger off. */
|
|
669
702
|
readonly staggerMs: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
670
703
|
/** What a `null` reading draws: `'break'` leaves a hole in the line, `'zero'` plots a point
|
|
671
704
|
* at zero. A missing measurement and a measured zero are different facts. */
|
|
@@ -744,6 +777,20 @@ declare class LineSeriesComponent implements OnDestroy {
|
|
|
744
777
|
markIndex: number;
|
|
745
778
|
categoryIndex: number;
|
|
746
779
|
}): boolean;
|
|
780
|
+
protected readonly pinnedMarker: _angular_core.Signal<{
|
|
781
|
+
key: string;
|
|
782
|
+
markIndex: number;
|
|
783
|
+
x: number;
|
|
784
|
+
y: number;
|
|
785
|
+
value: number;
|
|
786
|
+
category: string;
|
|
787
|
+
formattedValue: string;
|
|
788
|
+
seriesLabel: string;
|
|
789
|
+
seriesId: string;
|
|
790
|
+
categoryIndex: number;
|
|
791
|
+
color: string;
|
|
792
|
+
} | null>;
|
|
793
|
+
protected readonly pinLift: number;
|
|
747
794
|
protected onMarkerOver(event: PointerEvent): void;
|
|
748
795
|
protected onMarkerOut(event: PointerEvent): void;
|
|
749
796
|
private onMarkerFocus;
|
|
@@ -759,7 +806,8 @@ declare class LineSeriesComponent implements OnDestroy {
|
|
|
759
806
|
/** What this series reads at the category the cursor is on, whatever `tooltip` says. It feeds
|
|
760
807
|
* the container's category panel, so one band answers for every mark on the plot rather than
|
|
761
808
|
* each mark owning a hover field of its own. */
|
|
762
|
-
readonly axisEntries: _angular_core.Signal<readonly
|
|
809
|
+
readonly axisEntries: _angular_core.Signal<readonly ChartAxisEntry[]>;
|
|
810
|
+
private readonly readingsAtCursor;
|
|
763
811
|
readonly tooltipContext: _angular_core.Signal<ChartTooltipContext | null>;
|
|
764
812
|
private readonly markerElements;
|
|
765
813
|
/** The topmost reading at the active category, as its own element. The cursor band spans the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _ids_group_ltd_ids_design_system_components_field_message from '@ids-group-ltd/ids-design-system/components/field-message';
|
|
2
2
|
import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
|
|
3
|
-
import { DsControlValueAccessor, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
|
|
3
|
+
import { DsControlValueAccessor, DsStaticPreview, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
|
|
4
4
|
import * as _angular_core from '@angular/core';
|
|
5
5
|
import { OnDestroy, ElementRef, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
@@ -19,6 +19,7 @@ declare class ColorPickerComponent extends DsControlValueAccessor<string> implem
|
|
|
19
19
|
private readonly vcr;
|
|
20
20
|
private readonly host;
|
|
21
21
|
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
22
|
+
protected readonly preview: DsStaticPreview;
|
|
22
23
|
/** Public panel tokens forwarded onto the portaled overlay pane on open so
|
|
23
24
|
* a consumer's `ds-color-picker { --ds-color-picker-panel-*: … }` reaches it.
|
|
24
25
|
* Not the whole set: `prepareOverlayEnter` also forwards `DROPDOWN_PANEL_TOKENS`
|
|
@@ -49,6 +50,7 @@ declare class ColorPickerComponent extends DsControlValueAccessor<string> implem
|
|
|
49
50
|
private overlayRef;
|
|
50
51
|
private svDragging;
|
|
51
52
|
private hueDragging;
|
|
53
|
+
constructor();
|
|
52
54
|
ngOnDestroy(): void;
|
|
53
55
|
protected readonly uid: string;
|
|
54
56
|
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
@@ -84,7 +86,7 @@ declare class ColorPickerComponent extends DsControlValueAccessor<string> implem
|
|
|
84
86
|
private updateHue;
|
|
85
87
|
private clampPct;
|
|
86
88
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
|
|
87
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorPickerComponent, "ds-color-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true,
|
|
89
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorPickerComponent, "ds-color-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, [{ directive: typeof _ids_group_ltd_ids_design_system_components.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
export { ColorPickerComponent };
|
|
@@ -139,20 +139,19 @@ declare class ColumnChartComponent {
|
|
|
139
139
|
/** The point that was clicked, or activated with Enter or Space. Fires whether or not
|
|
140
140
|
* `interactive` is set. */
|
|
141
141
|
readonly pointClicked: _angular_core.OutputEmitterRef<ColumnChartPoint>;
|
|
142
|
-
/** Holds the
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
|
|
146
|
-
readonly pinOnClick: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
142
|
+
/** Holds the clicked mark and its tooltip in place, with a pin disc on it, until a second click,
|
|
143
|
+
* Escape or a press outside releases it. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then
|
|
144
|
+
* `true`. `pointClicked` fires either way - pinning is a state, not a handler. */
|
|
145
|
+
readonly pinOnClick: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
147
146
|
/** Dims every OTHER mark while one is hovered or focused, so the reader's eye is held on the
|
|
148
147
|
* one under the pointer. Off by default: the dimming costs the separation BETWEEN the dimmed
|
|
149
148
|
* marks — measured 2026-09-13, the worst pair of three dimmed series falls from dE 14.8 at full
|
|
150
149
|
* opacity to 2.1 at `--ds-chart-dim-opacity`'s default 0.3 — so it buys loudness for one mark
|
|
151
150
|
* and pays for it with the rest of the chart. */
|
|
152
151
|
readonly dimOthers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
153
|
-
/** Milliseconds between one mark's entrance and the next.
|
|
154
|
-
*
|
|
155
|
-
*
|
|
152
|
+
/** Milliseconds between one mark's entrance and the next. The steps narrow to fit the whole
|
|
153
|
+
* spread within 260ms, so a long series does not crawl in.
|
|
154
|
+
* `0` is no stagger. */
|
|
156
155
|
readonly staggerMs: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
157
156
|
/** Whether a hovered or focused column opens a tooltip. `'axis'` is not offered — a
|
|
158
157
|
* column chart's marks ARE its categories, so an axis tooltip would repeat the item one. */
|
|
@@ -166,7 +165,7 @@ declare class ColumnChartComponent {
|
|
|
166
165
|
readonly tooltipAnchor: _angular_core.InputSignal<"mark" | "cell">;
|
|
167
166
|
/** The value is printed ABOVE the column, so a panel anchored to the column alone opens on top
|
|
168
167
|
* of that number. One text line of clearance puts it above both. */
|
|
169
|
-
protected readonly valueClearance: _angular_core.Signal<
|
|
168
|
+
protected readonly valueClearance: _angular_core.Signal<18 | 0>;
|
|
170
169
|
protected readonly tooltipLingerResolved: _angular_core.Signal<number>;
|
|
171
170
|
protected readonly geometry: _angular_core.WritableSignal<{
|
|
172
171
|
plotHeight: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _ids_group_ltd_ids_design_system_components_field_message from '@ids-group-ltd/ids-design-system/components/field-message';
|
|
2
2
|
import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
|
|
3
|
-
import { DsControlValueAccessor, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
|
|
3
|
+
import { DsControlValueAccessor, DsStaticPreview, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
|
|
4
4
|
import * as _angular_core from '@angular/core';
|
|
5
5
|
import { OnDestroy, ElementRef, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
@@ -55,6 +55,7 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | DateRang
|
|
|
55
55
|
/** Segment of a ds-field-group: the group owns the border, radius and focus
|
|
56
56
|
* ring, so .in-group strips this control back to its bare contents. */
|
|
57
57
|
protected readonly inGroup: boolean;
|
|
58
|
+
protected readonly preview: DsStaticPreview;
|
|
58
59
|
constructor();
|
|
59
60
|
/** Field text for the DOM: fixed-width `_`-padded once any digit exists,
|
|
60
61
|
* else '' (so an untouched field is genuinely empty — no error on blur,
|
|
@@ -210,6 +211,7 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | DateRang
|
|
|
210
211
|
protected readonly weeksGrid: _angular_core.Signal<DayCell[][]>;
|
|
211
212
|
private getRangeContext;
|
|
212
213
|
protected open(moveFocusToGrid?: boolean): void;
|
|
214
|
+
private selectedAnchorDate;
|
|
213
215
|
protected close(cause?: DsOverlayCloseCause): void;
|
|
214
216
|
ngOnDestroy(): void;
|
|
215
217
|
/**
|
|
@@ -260,7 +262,7 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | DateRang
|
|
|
260
262
|
protected isPresetDisabled(preset: DatePickerPreset): boolean;
|
|
261
263
|
protected applyPreset(preset: DatePickerPreset): void;
|
|
262
264
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
263
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatePickerComponent, "ds-date-picker", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "minYear": { "alias": "minYear"; "required": false; "isSignal": true; }; "maxYear": { "alias": "maxYear"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "disabledDate": { "alias": "disabledDate"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "defaultDate": { "alias": "defaultDate"; "required": false; "isSignal": true; }; "allowInput": { "alias": "allowInput"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true,
|
|
265
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatePickerComponent, "ds-date-picker", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "minYear": { "alias": "minYear"; "required": false; "isSignal": true; }; "maxYear": { "alias": "maxYear"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "disabledDate": { "alias": "disabledDate"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "defaultDate": { "alias": "defaultDate"; "required": false; "isSignal": true; }; "allowInput": { "alias": "allowInput"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, [{ directive: typeof _ids_group_ltd_ids_design_system_components.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
|
|
264
266
|
}
|
|
265
267
|
|
|
266
268
|
export { DatePickerComponent };
|
|
@@ -3,7 +3,7 @@ import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-desig
|
|
|
3
3
|
|
|
4
4
|
type DescriptionListOrientation = 'horizontal' | 'stacked';
|
|
5
5
|
declare class DescriptionListComponent {
|
|
6
|
-
/** horizontal = label column + value; stacked = label above value. */
|
|
6
|
+
/** horizontal = label column + value, every item stacking once a value would get less than --ds-description-list-value-min-width; stacked = label above value at every width. */
|
|
7
7
|
readonly orientation: _angular_core.InputSignal<DescriptionListOrientation>;
|
|
8
8
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DescriptionListComponent, never>;
|
|
9
9
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DescriptionListComponent, "ds-description-list", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|