@ids-group-ltd/ids-design-system 0.14.6 → 0.14.8
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 +122 -0
- package/components.md +9 -7
- package/docs/agent/charts/ds-pie-chart.md +1 -1
- package/docs/agent/overlays/ds-drawer.md +1 -1
- package/docs/agent/overlays/ds-modal-card.md +1 -1
- package/docs/agent/overlays/ds-modal.md +1 -1
- package/docs/agent/overlays/ds-tooltip.md +2 -2
- package/docs/agent/platform/toast-service.md +1 -0
- package/docs/agent/tables/ds-table.md +2 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +16 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +16 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +4 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +1 -1
- 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 +68 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +15 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +63 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +96 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +1 -1
- 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 +4 -4
- 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 +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +14 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +12 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +18 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +126 -9
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +17 -6
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +5 -2
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.14.7.json +140 -0
- package/migrations/0.14.8.json +32 -0
- package/migrations/0.4.0.json +3 -1
- package/package.json +1 -1
- package/schematics/check-overrides/surface.json +12 -10
- package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +4 -2
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +4 -3
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +19 -4
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +2 -1
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +21 -4
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +22 -3
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +4 -0
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +4 -1
- package/types/ids-group-ltd-ids-design-system-components.d.ts +7 -2
- package/types/ids-group-ltd-ids-design-system-core.d.ts +33 -3
- package/types/ids-group-ltd-ids-design-system-icons.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-theme.d.ts +4 -2
- package/types/ids-group-ltd-ids-design-system.d.ts +2 -2
|
@@ -23,7 +23,7 @@ declare class ModalComponent implements OnDestroy {
|
|
|
23
23
|
readonly subtitle: _angular_core.InputSignal<string | null>;
|
|
24
24
|
/** Fires once the close (leave) animation finishes. */
|
|
25
25
|
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
26
|
-
/**
|
|
26
|
+
/** Fires when the projected `dsModalConfirm` action is pressed. The modal stays open. */
|
|
27
27
|
readonly confirmed: _angular_core.OutputEmitterRef<void>;
|
|
28
28
|
/** Draws the rules under the header and over the actions; off also tightens the vertical padding.
|
|
29
29
|
* Unset falls back to `DS_CONFIG.modal.dividers`, then `true`. */
|
|
@@ -38,6 +38,7 @@ declare class ModalComponent implements OnDestroy {
|
|
|
38
38
|
protected readonly closing: _angular_core.WritableSignal<boolean>;
|
|
39
39
|
private wasOpen;
|
|
40
40
|
private closeFallbackTimer;
|
|
41
|
+
private readonly unslotted;
|
|
41
42
|
constructor();
|
|
42
43
|
ngOnDestroy(): void;
|
|
43
44
|
protected onClose(): void;
|
|
@@ -50,7 +51,7 @@ declare class ModalComponent implements OnDestroy {
|
|
|
50
51
|
protected onBackdropRelease(event: PointerEvent): void;
|
|
51
52
|
protected onEscape(): void;
|
|
52
53
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
53
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalComponent, "ds-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "dividers": { "alias": "dividers"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "persistent": { "alias": "persistent"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; "confirmed": "confirmed"; }, never, ["[eyebrow]", "[title-badge]", "[body]", "[impact]", "[actions]"], true, [{ directive: typeof i1.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
|
|
54
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalComponent, "ds-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "dividers": { "alias": "dividers"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "persistent": { "alias": "persistent"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; "confirmed": "confirmed"; }, never, ["[eyebrow]", "[title-badge]", "[body]", "*", "[impact]", "[actions]"], true, [{ directive: typeof i1.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
declare class ModalCardComponent {
|
|
@@ -80,6 +81,7 @@ declare class ModalCardComponent {
|
|
|
80
81
|
protected readonly titleId: string;
|
|
81
82
|
private readonly header;
|
|
82
83
|
private readonly actionsRow;
|
|
84
|
+
private readonly unslotted;
|
|
83
85
|
constructor();
|
|
84
86
|
private stackOverflowingActions;
|
|
85
87
|
protected readonly resolvedIcon: _angular_core.Signal<IconName | null>;
|
|
@@ -87,7 +89,22 @@ declare class ModalCardComponent {
|
|
|
87
89
|
protected readonly classes: _angular_core.Signal<string>;
|
|
88
90
|
protected onClose(): void;
|
|
89
91
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalCardComponent, never>;
|
|
90
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalCardComponent, "ds-modal-card", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "showClose": { "alias": "showClose"; "required": false; "isSignal": true; }; "dividers": { "alias": "dividers"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "dialogRole": { "alias": "dialogRole"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["[eyebrow]", "[title-badge]", "[body]", "[impact]", "[actions]"], true, never>;
|
|
92
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalCardComponent, "ds-modal-card", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "showClose": { "alias": "showClose"; "required": false; "isSignal": true; }; "dividers": { "alias": "dividers"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "dialogRole": { "alias": "dialogRole"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["[eyebrow]", "[title-badge]", "[body]", "*", "[impact]", "[actions]"], true, never>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Marks the confirm action inside a `ds-modal`; pressing it fires the modal's `confirmed`.
|
|
97
|
+
* On a `ds-button` it follows `pressed`, so a disabled or loading button never confirms; on any
|
|
98
|
+
* other element it follows `click` and skips `aria-disabled="true"`. The modal stays open:
|
|
99
|
+
* close it from the `confirmed` handler once the work is done.
|
|
100
|
+
*/
|
|
101
|
+
declare class ModalConfirmActionDirective {
|
|
102
|
+
private readonly modal;
|
|
103
|
+
private readonly button;
|
|
104
|
+
constructor();
|
|
105
|
+
protected onClick(event: MouseEvent): void;
|
|
106
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalConfirmActionDirective, never>;
|
|
107
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ModalConfirmActionDirective, "[dsModalConfirm]", never, {}, {}, never, never, true, never>;
|
|
91
108
|
}
|
|
92
109
|
|
|
93
110
|
type ModalConfirmTone = 'default' | 'error';
|
|
@@ -113,5 +130,5 @@ declare class ModalService {
|
|
|
113
130
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ModalService>;
|
|
114
131
|
}
|
|
115
132
|
|
|
116
|
-
export { ModalCardComponent, ModalComponent, ModalService };
|
|
133
|
+
export { ModalCardComponent, ModalComponent, ModalConfirmActionDirective, ModalService };
|
|
117
134
|
export type { ModalConfirmOptions, ModalConfirmTone, ModalSize };
|
|
@@ -14,6 +14,8 @@ interface PieChartSlice {
|
|
|
14
14
|
/** 1-based palette slot; left off, the colour follows the index. */
|
|
15
15
|
slot?: number;
|
|
16
16
|
}
|
|
17
|
+
/** Where `ds-pie-chart` prints its centre value. */
|
|
18
|
+
type PieChartCenterPlacement = 'inside' | 'below';
|
|
17
19
|
|
|
18
20
|
declare class PieChartComponent extends DsChartBase implements ChartDimmable, ChartWithDataTable, ChartWithTooltipTrigger {
|
|
19
21
|
protected readonly renderReady: _angular_core.Signal<boolean>;
|
|
@@ -23,8 +25,14 @@ declare class PieChartComponent extends DsChartBase implements ChartDimmable, Ch
|
|
|
23
25
|
readonly centerValue: _angular_core.InputSignal<string | null>;
|
|
24
26
|
/** Caption under the centre value. */
|
|
25
27
|
readonly centerLabel: _angular_core.InputSignal<string | null>;
|
|
28
|
+
/** When the sum does not fit the hole even at `--ds-pie-chart-center-value-min-font-size`, prints
|
|
29
|
+
* it in the `'tick'` form of `valueFormat` (`32.4K`). A `centerValue` string is never shortened. */
|
|
30
|
+
readonly centerCompact: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
31
|
+
/** `'below'` prints the value and its caption under the ring at full size, never shrunk or
|
|
32
|
+
* shortened. */
|
|
33
|
+
readonly centerPlacement: _angular_core.InputSignal<PieChartCenterPlacement>;
|
|
26
34
|
/** Legend placement, logical so it flips in right-to-left. */
|
|
27
|
-
readonly legend: _angular_core.InputSignal<"
|
|
35
|
+
readonly legend: _angular_core.InputSignal<"end" | "bottom" | "none">;
|
|
28
36
|
/** Longest legend to draw; past it the smallest slices are summed into one. Values below 2 are ignored. */
|
|
29
37
|
readonly maxSlices: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
30
38
|
/** Names the grouped slice. Unset falls back to `DS_INTL.chart.other`. */
|
|
@@ -88,8 +96,19 @@ declare class PieChartComponent extends DsChartBase implements ChartDimmable, Ch
|
|
|
88
96
|
};
|
|
89
97
|
} | null>;
|
|
90
98
|
protected readonly resolvedCenterValue: _angular_core.Signal<string>;
|
|
99
|
+
private readonly compactCenterValue;
|
|
100
|
+
private readonly ringElement;
|
|
101
|
+
private readonly centerValueElement;
|
|
102
|
+
private readonly centerFit;
|
|
103
|
+
protected readonly centerText: _angular_core.Signal<string>;
|
|
104
|
+
protected readonly centerFontSize: _angular_core.Signal<number | null>;
|
|
105
|
+
private readonly ringWidth;
|
|
106
|
+
private readonly fitsInside;
|
|
107
|
+
private fitCenter;
|
|
91
108
|
protected readonly accessibleName: _angular_core.Signal<string>;
|
|
92
109
|
protected readonly hole: _angular_core.Signal<number>;
|
|
110
|
+
private readonly watchRing;
|
|
111
|
+
private readonly refit;
|
|
93
112
|
protected entryLabel(entry: {
|
|
94
113
|
slice: PieChartSlice;
|
|
95
114
|
formattedValue: string;
|
|
@@ -101,8 +120,8 @@ declare class PieChartComponent extends DsChartBase implements ChartDimmable, Ch
|
|
|
101
120
|
/** Placeholder legend rows while loading. */
|
|
102
121
|
protected readonly skeletonRows: _angular_core.Signal<unknown[]>;
|
|
103
122
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PieChartComponent, never>;
|
|
104
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PieChartComponent, "ds-pie-chart", never, { "data": { "alias": "data"; "required": false; "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; }; "dataTable": { "alias": "dataTable"; "required": false; "isSignal": true; }; "partOfWhole": { "alias": "partOfWhole"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; }, { "sliceClicked": "sliceClicked"; }, ["tooltipTemplate"], never, true, never>;
|
|
123
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PieChartComponent, "ds-pie-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "centerValue": { "alias": "centerValue"; "required": false; "isSignal": true; }; "centerLabel": { "alias": "centerLabel"; "required": false; "isSignal": true; }; "centerCompact": { "alias": "centerCompact"; "required": false; "isSignal": true; }; "centerPlacement": { "alias": "centerPlacement"; "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; }; "dataTable": { "alias": "dataTable"; "required": false; "isSignal": true; }; "partOfWhole": { "alias": "partOfWhole"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; }, { "sliceClicked": "sliceClicked"; }, ["tooltipTemplate"], never, true, never>;
|
|
105
124
|
}
|
|
106
125
|
|
|
107
126
|
export { PieChartComponent };
|
|
108
|
-
export type { PieChartSlice };
|
|
127
|
+
export type { PieChartCenterPlacement, PieChartSlice };
|
|
@@ -97,6 +97,10 @@ interface TableColumn<T = unknown> {
|
|
|
97
97
|
label: string;
|
|
98
98
|
/** Visually-hidden header name, for an intentionally empty `label`. */
|
|
99
99
|
screenReaderLabel?: string;
|
|
100
|
+
/** Defines the column's term: the header label gets a dotted underline, a Tab stop, and shows
|
|
101
|
+
* this text in a tooltip on hover and keyboard focus, announced as the label's description.
|
|
102
|
+
* Replaces the tooltip that otherwise shows a clipped label in full. */
|
|
103
|
+
hint?: string;
|
|
100
104
|
sortable?: boolean;
|
|
101
105
|
/** Include the column in `filterQuery` matching; when none is marked, all match. Works on `hidden` columns. */
|
|
102
106
|
filterable?: boolean;
|
|
@@ -21,6 +21,9 @@ declare class TooltipDirective implements OnDestroy {
|
|
|
21
21
|
/** Selector for the element inside the host whose clipping `dsTooltipWhenClipped` tests and
|
|
22
22
|
* whose text it discloses. Resolved on every open; while nothing matches, no clipped tip opens. */
|
|
23
23
|
readonly dsTooltipTextSelector: _angular_core.InputSignal<string | null>;
|
|
24
|
+
/** Opens the tip with this line above `dsTooltip` while the host shows less text than it holds.
|
|
25
|
+
* The tip keeps its own line break, so the two read as separate lines. */
|
|
26
|
+
readonly dsTooltipClippedLead: _angular_core.InputSignal<string>;
|
|
24
27
|
get hostElement(): HTMLElement;
|
|
25
28
|
private textElement;
|
|
26
29
|
isClipped(): boolean;
|
|
@@ -57,7 +60,7 @@ declare class TooltipDirective implements OnDestroy {
|
|
|
57
60
|
private positionFor;
|
|
58
61
|
ngOnDestroy(): void;
|
|
59
62
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
60
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[dsTooltip], [dsTooltipWhenClipped]", never, { "dsTooltip": { "alias": "dsTooltip"; "required": false; "isSignal": true; }; "dsTooltipPlacement": { "alias": "dsTooltipPlacement"; "required": false; "isSignal": true; }; "dsTooltipDelay": { "alias": "dsTooltipDelay"; "required": false; "isSignal": true; }; "dsTooltipWhenClipped": { "alias": "dsTooltipWhenClipped"; "required": false; "isSignal": true; }; "dsTooltipTextSelector": { "alias": "dsTooltipTextSelector"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
63
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[dsTooltip], [dsTooltipWhenClipped]", never, { "dsTooltip": { "alias": "dsTooltip"; "required": false; "isSignal": true; }; "dsTooltipPlacement": { "alias": "dsTooltipPlacement"; "required": false; "isSignal": true; }; "dsTooltipDelay": { "alias": "dsTooltipDelay"; "required": false; "isSignal": true; }; "dsTooltipWhenClipped": { "alias": "dsTooltipWhenClipped"; "required": false; "isSignal": true; }; "dsTooltipTextSelector": { "alias": "dsTooltipTextSelector"; "required": false; "isSignal": true; }; "dsTooltipClippedLead": { "alias": "dsTooltipClippedLead"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
declare class TooltipPanelComponent {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Signal, ElementRef, InjectionToken, AnimationCallbackEvent, TemplateRef, ModelSignal
|
|
2
|
+
import { Signal, ElementRef, WritableSignal, InjectionToken, AnimationCallbackEvent, TemplateRef, ModelSignal } from '@angular/core';
|
|
3
3
|
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
4
4
|
import { ChartValueFormat, ChartCurve, DsIntl, ChartThreshold, IconName, ChartDataTable, ChartFrame } from '@ids-group-ltd/ids-design-system/core';
|
|
5
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
@@ -84,6 +84,11 @@ declare function describeShare(values: readonly number[], index: number, locale:
|
|
|
84
84
|
*
|
|
85
85
|
* @internal */
|
|
86
86
|
declare function elementWidth(host: ElementRef<HTMLElement>): Signal<number>;
|
|
87
|
+
/** Writes `element`'s rounded content width into `width` on every change, through the one observer
|
|
88
|
+
* every chart shares. Returns the call that stops it.
|
|
89
|
+
*
|
|
90
|
+
* @internal */
|
|
91
|
+
declare function watchElementWidth(element: Element, width: WritableSignal<number>): () => void;
|
|
87
92
|
/** `read(host)` as a signal, re-read whenever the host's width changes, so a geometry token re-pointed
|
|
88
93
|
* at a breakpoint reaches the chart. `initial` until the host is laid out, and under SSR.
|
|
89
94
|
*
|
|
@@ -923,5 +928,5 @@ declare function resolveChartDefaults(inputs: ChartDefaultInputs): {
|
|
|
923
928
|
tooltipSwatches: Signal<boolean | "auto">;
|
|
924
929
|
};
|
|
925
930
|
|
|
926
|
-
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, DsChartBase, 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, readOnHostResize, resolveBrandValue, resolveChartDefaults, resolveFieldMessage, rotationWouldFit, roundStepAtLeast, rovingMarks, scrollActiveOptionIntoView, shareOfTotal, staggerDelay, tickStep, tickValues, trimmedText, valueControlBridge };
|
|
931
|
+
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, DsChartBase, 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, readOnHostResize, resolveBrandValue, resolveChartDefaults, resolveFieldMessage, rotationWouldFit, roundStepAtLeast, rovingMarks, scrollActiveOptionIntoView, shareOfTotal, staggerDelay, tickStep, tickValues, trimmedText, valueControlBridge, watchElementWidth };
|
|
927
932
|
export type { BandScale, ChartDimmable, ChartDwell, ChartStaggered, ChartWithDataTable, ChartWithTooltipTrigger, DsAriaCurrent, DsDestination, DsFieldError, DsFieldErrorsInput, DsFieldMessage, DsLinkModifiers, DsOverlayCloseCause, DsRouterLink, LinePoint, MarkHit, NiceDomain, PointScale, RovingMarks, SummaryPoint };
|
|
@@ -263,6 +263,10 @@ interface DsConfig {
|
|
|
263
263
|
maxVisible?: number;
|
|
264
264
|
/** Show a `+N` strip while toasts wait behind `maxVisible`. Default `true`. */
|
|
265
265
|
showQueueCount?: boolean;
|
|
266
|
+
/** In dev mode, also show each library warning from the console as a warning toast, once the
|
|
267
|
+
* app has injected `ToastService`; warnings raised earlier show when it is. Never in a
|
|
268
|
+
* production build. Default `true`. */
|
|
269
|
+
mirrorDevWarnings?: boolean;
|
|
266
270
|
};
|
|
267
271
|
picker?: {
|
|
268
272
|
/** Default for `ds-multi-select`'s `searchable`. `true` always shows the panel's filter row,
|
|
@@ -367,8 +371,24 @@ declare function inheritDsConfig(config: DsConfig): DsConfig;
|
|
|
367
371
|
declare function resolveWithConfig<T>(value: Signal<T | null>, pick: (config: DsConfig) => T | undefined, fallback: T): Signal<T>;
|
|
368
372
|
|
|
369
373
|
/**
|
|
370
|
-
*
|
|
371
|
-
*
|
|
374
|
+
* The one exit for every dev-mode warning of the library: logs `message` with `console.warn` once
|
|
375
|
+
* per page, however many instances raise it, and hands it to each sink (`ToastService` registers
|
|
376
|
+
* one). Messages raised before any sink exists are kept, up to 50, for the first one.
|
|
377
|
+
*
|
|
378
|
+
* Callers wrap this in `if (typeof ngDevMode === 'undefined' || ngDevMode)`, so the message text
|
|
379
|
+
* folds out of a production build.
|
|
380
|
+
* @internal
|
|
381
|
+
*/
|
|
382
|
+
declare function reportDevWarning(message: string): void;
|
|
383
|
+
/**
|
|
384
|
+
* Receives every dev warning from now on, plus the ones raised before the first sink existed.
|
|
385
|
+
* Returns the unregister function.
|
|
386
|
+
* @internal
|
|
387
|
+
*/
|
|
388
|
+
declare function addDevWarningSink(sink: (message: string) => void): () => void;
|
|
389
|
+
/**
|
|
390
|
+
* Reports `message()` through `reportDevWarning` each time it yields a text: the effect re-runs
|
|
391
|
+
* whenever a signal the condition reads changes, and `reportDevWarning` drops a repeat.
|
|
372
392
|
*
|
|
373
393
|
* Must be called from an injection context.
|
|
374
394
|
*
|
|
@@ -396,6 +416,16 @@ interface AnnounceState {
|
|
|
396
416
|
*/
|
|
397
417
|
declare function warnAnnounceOversight(tag: 'ds-banner' | 'ds-alert', section: 'banner' | 'alert', state: () => AnnounceState): void;
|
|
398
418
|
|
|
419
|
+
/**
|
|
420
|
+
* Warns when content reaches an overlay's default slot: it renders in the body, but it carries no
|
|
421
|
+
* slot attribute, or one the overlay does not have. `container` is the element wrapping the
|
|
422
|
+
* default `<ng-content />`; content that appears later (an `@if` resolving) is caught by a
|
|
423
|
+
* MutationObserver. Reported through `reportDevWarning`, dev mode only; the caller wraps the call in the
|
|
424
|
+
* `typeof ngDevMode` guard (see `devWarn`). Must be called from an injection context.
|
|
425
|
+
* @internal
|
|
426
|
+
*/
|
|
427
|
+
declare function warnUnslottedContent(tag: string, bodySlot: string, slots: readonly string[], container: () => HTMLElement | undefined): void;
|
|
428
|
+
|
|
399
429
|
type DsIntlStepState = 'error' | 'completed' | 'current' | 'upcoming';
|
|
400
430
|
type DsIntlSortDirection = 'asc' | 'desc' | null;
|
|
401
431
|
/** Every string the library invents, grouped by the component that renders it. A function member
|
|
@@ -858,5 +888,5 @@ type DsTriggerDisplay = 'full' | 'count' | 'labels';
|
|
|
858
888
|
*/
|
|
859
889
|
type DsControlWidth = 'fill' | 'content';
|
|
860
890
|
|
|
861
|
-
export { DS_CONFIG, DS_INTL, DS_INTL_DEFAULTS, ICONS, backdropDismiss, boundOr, devWarn, firstEnabledIndex, flattenDsOptions, inheritDsConfig, injectDsLocale, isDsOptionGroup, isTextClipped, isTextEntryTarget, lastEnabledIndex, nextEnabledIndex, optionalBound, provideDsConfig, provideDsIntl, resolveWithConfig, warnAnnounceOversight };
|
|
891
|
+
export { DS_CONFIG, DS_INTL, DS_INTL_DEFAULTS, ICONS, addDevWarningSink, backdropDismiss, boundOr, devWarn, firstEnabledIndex, flattenDsOptions, inheritDsConfig, injectDsLocale, isDsOptionGroup, isTextClipped, isTextEntryTarget, lastEnabledIndex, nextEnabledIndex, optionalBound, provideDsConfig, provideDsIntl, reportDevWarning, resolveWithConfig, warnAnnounceOversight, warnUnslottedContent };
|
|
862
892
|
export type { AnnounceState, CardElevation, CardPadding, ChartAxis, ChartAxisMode, ChartCurve, ChartDataTable, ChartFormatLocation, ChartFrame, ChartGaps, ChartRendering, ChartStackMode, ChartThreshold, ChartThresholdDash, ChartValueFormat, DsConfig, DsControlWidth, DsIntl, DsIntlOverrides, DsIntlSortDirection, DsIntlStepState, DsOption, DsOptionGroup, DsOptionItem, DsSize, DsStatus, DsStatusKey, DsStatusRegistry, DsToastHorizontalPosition, DsToastPosition, DsToastVerticalPosition, DsTriggerDisplay, IconName, PaginationLayout };
|
|
@@ -23,7 +23,9 @@ declare class IconComponent {
|
|
|
23
23
|
/** Custom icon name -> SVG body markup (the inside of the host's 24x24 stroke `<svg>`). Omit the `stroke` attribute; the host template sets stroke, caps and joins. */
|
|
24
24
|
type DsIconRegistry = Readonly<Record<string, string>>;
|
|
25
25
|
declare const DS_ICON_REGISTRY: InjectionToken<Readonly<Record<string, string>>>;
|
|
26
|
-
/** Register additional icons for `<ds-icon [name]>`. Built-in names win: a clashing consumer name is ignored.
|
|
26
|
+
/** Register additional icons for `<ds-icon [name]>`. Built-in names win: a clashing consumer name is ignored.
|
|
27
|
+
* Calls add up: sibling calls and a lazy route's call merge with the icons above them, a later
|
|
28
|
+
* call winning a shared name. */
|
|
27
29
|
declare function provideDsIcons(icons: DsIconRegistry): Provider;
|
|
28
30
|
|
|
29
31
|
export { DS_ICON_REGISTRY, IconComponent, provideDsIcons };
|
|
@@ -3,7 +3,8 @@ import { EnvironmentProviders } from '@angular/core';
|
|
|
3
3
|
interface DsThemeOptions {
|
|
4
4
|
/**
|
|
5
5
|
* Follow the operating-system colour scheme: sets `data-theme` on `<html>`
|
|
6
|
-
* from `prefers-color-scheme` at startup and on every OS change
|
|
6
|
+
* from `prefers-color-scheme` at startup and on every OS change, unless
|
|
7
|
+
* `<html>` already carries `data-theme` at startup.
|
|
7
8
|
* Default `false`: light, with dark opt-in via `<html data-theme="dark">`.
|
|
8
9
|
*/
|
|
9
10
|
followSystem?: boolean;
|
|
@@ -19,7 +20,8 @@ interface DsThemeOptions {
|
|
|
19
20
|
* ```
|
|
20
21
|
*
|
|
21
22
|
* Light is the default with no provider; `followSystem` opts into OS-driven
|
|
22
|
-
* switching. A
|
|
23
|
+
* switching. A `data-theme` already on `<html>` at startup is an explicit
|
|
24
|
+
* choice: it is kept, and OS changes do not override it.
|
|
23
25
|
*/
|
|
24
26
|
declare function provideDsTheme(options?: DsThemeOptions): EnvironmentProviders;
|
|
25
27
|
|
|
@@ -39,7 +39,7 @@ export { LineChartAnnotation, LineChartComponent, LineChartReading, LineChartSer
|
|
|
39
39
|
export { ListComponent, ListItemComponent } from '@ids-group-ltd/ids-design-system/components/list';
|
|
40
40
|
export { LoadingOverlayComponent } from '@ids-group-ltd/ids-design-system/components/loading-overlay';
|
|
41
41
|
export { MenuComponent, MenuDividerComponent, MenuItemComponent } from '@ids-group-ltd/ids-design-system/components/menu';
|
|
42
|
-
export { ModalCardComponent, ModalComponent, ModalConfirmOptions, ModalConfirmTone, ModalService, ModalSize } from '@ids-group-ltd/ids-design-system/components/modal';
|
|
42
|
+
export { ModalCardComponent, ModalComponent, ModalConfirmActionDirective, ModalConfirmOptions, ModalConfirmTone, ModalService, ModalSize } from '@ids-group-ltd/ids-design-system/components/modal';
|
|
43
43
|
export { MultiSelectComponent, MultiSelectItem, MultiSelectOption, MultiSelectOptionGroup, MultiSelectWidth } from '@ids-group-ltd/ids-design-system/components/multi-select';
|
|
44
44
|
export { NumberStepperComponent } from '@ids-group-ltd/ids-design-system/components/number-stepper';
|
|
45
45
|
export { OtpInputComponent, OtpMode } from '@ids-group-ltd/ids-design-system/components/otp-input';
|
|
@@ -47,7 +47,7 @@ export { PageFooterComponent, PageFooterVariant } from '@ids-group-ltd/ids-desig
|
|
|
47
47
|
export { PageHeaderComponent } from '@ids-group-ltd/ids-design-system/components/page-header';
|
|
48
48
|
export { PaginationComponent, PaginationLayout } from '@ids-group-ltd/ids-design-system/components/pagination';
|
|
49
49
|
export { DsPasswordRule, DsPasswordRuleState, PasswordRulesComponent, passwordRulesMet } from '@ids-group-ltd/ids-design-system/components/password-rules';
|
|
50
|
-
export { PieChartComponent, PieChartSlice } from '@ids-group-ltd/ids-design-system/components/pie-chart';
|
|
50
|
+
export { PieChartCenterPlacement, PieChartComponent, PieChartSlice } from '@ids-group-ltd/ids-design-system/components/pie-chart';
|
|
51
51
|
export { PopoverAlign, PopoverComponent, PopoverPlacement } from '@ids-group-ltd/ids-design-system/components/popover';
|
|
52
52
|
export { RADIO_GROUP, RadioComponent, RadioGroupChild, RadioGroupComponent, RadioGroupContract } from '@ids-group-ltd/ids-design-system/components/radio-group';
|
|
53
53
|
export { ReserveMessagesDirective } from '@ids-group-ltd/ids-design-system/components/reserve-messages';
|