@ids-group-ltd/ids-design-system 0.12.3 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +895 -6
- package/components.md +94 -2
- package/docs/agent/INDEX.md +12 -1
- package/docs/agent/charts/chart-colour-which-palette-a-chart-takes.md +9 -0
- package/docs/agent/charts/chart-frame-the-box-a-chart-draws-around-itself.md +12 -0
- package/docs/agent/charts/ds-bar-chart.md +15 -0
- package/docs/agent/charts/ds-column-chart.md +14 -0
- package/docs/agent/charts/ds-config.md +12 -0
- package/docs/agent/charts/ds-donut-chart.md +17 -0
- package/docs/agent/charts/ds-funnel-chart.md +16 -0
- package/docs/agent/charts/ds-line-chart.md +15 -0
- package/docs/agent/forms/ds-button.md +4 -2
- package/docs/agent/forms/ds-number-stepper.md +1 -0
- package/docs/agent/navigation/ds-sidenav-item.md +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +25 -18
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.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 +177 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
- 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 +58 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +43 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +212 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +10 -4
- 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 +196 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +18 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +311 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +69 -17
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +388 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +10 -14
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +672 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +5 -5
- 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 +10 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.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-pagination.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +18 -10
- 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 +18 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +4 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +30 -71
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +1 -0
- 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 +10 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +2 -2
- 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 +31 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +448 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +17 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +3 -0
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +10 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.13.0.json +530 -0
- package/migrations/0.13.1.json +236 -0
- package/package.json +57 -1
- package/styles/_chart-data-table.scss +95 -0
- package/styles/_chart-frame.scss +68 -0
- package/styles/_chart-interactive.scss +51 -0
- package/styles/_chart-motion.scss +88 -0
- package/styles/_dropdown-overlay.scss +9 -3
- package/styles/_focus.scss +11 -2
- package/styles/_overlay-motion.scss +10 -1
- package/styles/_tokens-charts.scss +154 -39
- package/styles/_tokens.scss +17 -4
- package/themes/dark/_theme.scss +37 -29
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +17 -10
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +119 -0
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +37 -4
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +34 -0
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +84 -0
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +125 -0
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +10 -2
- package/types/ids-group-ltd-ids-design-system-components-donut-chart.d.ts +127 -0
- package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +52 -11
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +128 -0
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +5 -7
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +268 -0
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +11 -3
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +16 -4
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +13 -28
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +11 -1
- package/types/ids-group-ltd-ids-design-system-components.d.ts +171 -5
- package/types/ids-group-ltd-ids-design-system-core.d.ts +36 -2
- package/types/ids-group-ltd-ids-design-system.d.ts +9 -2
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.13.1",
|
|
3
|
+
"items": [
|
|
4
|
+
{
|
|
5
|
+
"id": "chart-defaults-resolve-through-config",
|
|
6
|
+
"kind": "behavior",
|
|
7
|
+
"old": "BarChartComponent",
|
|
8
|
+
"new": null,
|
|
9
|
+
"surface": "typescript",
|
|
10
|
+
"action": "Only if you SUBCLASS a chart or read its inputs from a template reference: read `dataTableResolved()`, `emptyTextResolved()`, `errorTextResolved()` or `valueFormatResolved()` instead of the raw input. Binding the inputs is unchanged.",
|
|
11
|
+
"appliesWhen": "Only where code reads `dataTable()`, `emptyText()`, `errorText()` or `valueFormat()` off a chart instance. Every template that BINDS them — `dataTable=\"none\"`, `[valueFormat]=\"fn\"` — needs nothing.",
|
|
12
|
+
"pitfall": "The raw input now answers `null` until something binds it, and `null` is a legitimate value rather than an error — a subclass reading it gets no exception, just a missing string where a default used to be.",
|
|
13
|
+
"restore": null,
|
|
14
|
+
"searchHints": [
|
|
15
|
+
"dataTable()",
|
|
16
|
+
"emptyText()",
|
|
17
|
+
"errorText()",
|
|
18
|
+
"valueFormat()"
|
|
19
|
+
],
|
|
20
|
+
"detect": [
|
|
21
|
+
".dataTable()",
|
|
22
|
+
".emptyText()",
|
|
23
|
+
".errorText()",
|
|
24
|
+
".valueFormat()",
|
|
25
|
+
"BarChartComponent",
|
|
26
|
+
"ColumnChartComponent",
|
|
27
|
+
"DonutChartComponent",
|
|
28
|
+
"FunnelChartComponent",
|
|
29
|
+
"LineChartComponent"
|
|
30
|
+
],
|
|
31
|
+
"verify": "No code reads a chart's `dataTable`, `emptyText`, `errorText` or `valueFormat` input directly; every read goes through the matching `*Resolved` signal.",
|
|
32
|
+
"note": "The four moved onto the library's internal config resolver, which requires the input to be `T | null` defaulting to `null`: a signal input cannot report whether it was bound, so `null` is what separates \"not set\" from an explicit value. Same shape as `ds-card`'s `elevation` / `padding` and `ds-button`'s `size`."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "picker-panel-class-input-added",
|
|
36
|
+
"kind": "behavior",
|
|
37
|
+
"old": "SelectComponent",
|
|
38
|
+
"new": null,
|
|
39
|
+
"surface": "typescript",
|
|
40
|
+
"action": "Only if you SUBCLASS one of the six pickers and declare a member called `panelClass`: rename yours, or add `override` where your member genuinely means the panel class.",
|
|
41
|
+
"appliesWhen": "Only a class extending SelectComponent, MultiSelectComponent, AutocompleteComponent, ColorPickerComponent, DatePickerComponent or TimePickerComponent. A template that uses the pickers needs nothing, and neither does code that reads their other inputs.",
|
|
42
|
+
"pitfall": "The collision is a compile error, not a silent one — TS4114 for a same-named member, TS2416 where the signature differs — so a build that passes has none.",
|
|
43
|
+
"restore": null,
|
|
44
|
+
"searchHints": [
|
|
45
|
+
"panelClass"
|
|
46
|
+
],
|
|
47
|
+
"detect": [
|
|
48
|
+
"extends SelectComponent",
|
|
49
|
+
"extends MultiSelectComponent",
|
|
50
|
+
"extends AutocompleteComponent",
|
|
51
|
+
"extends ColorPickerComponent",
|
|
52
|
+
"extends DatePickerComponent",
|
|
53
|
+
"extends TimePickerComponent",
|
|
54
|
+
"extends "
|
|
55
|
+
],
|
|
56
|
+
"verify": "No subclass of the six pickers declares a member named `panelClass` of its own; the app builds with no TS4114 or TS2416 on those classes.",
|
|
57
|
+
"note": "Each picker gained one input, `panelClass`, so a consumer can name the portaled pane. Subclassing a DS component is unsupported, but a release that only adds can still fail such a build on a name collision, which is why the addition is listed here rather than in the additive notes."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "chart-tooltip-directive-gains-detach-scroll-close",
|
|
61
|
+
"kind": "behavior",
|
|
62
|
+
"old": "ChartTooltipDirective",
|
|
63
|
+
"new": null,
|
|
64
|
+
"surface": "typescript",
|
|
65
|
+
"action": "Only if you SUBCLASS the internal `ChartTooltipDirective`, which the package root does not export, and declare a member called `detachScrollClose`: rename yours, or add `override` where your member genuinely means the scroll-close teardown.",
|
|
66
|
+
"appliesWhen": "Only a class extending the internal `ChartTooltipDirective`. It is not exported from the package root — `@ids-group-ltd/ids-design-system/components/chart-tooltip` is the only specifier that reaches it — and a chart that uses it through the five chart components needs nothing.",
|
|
67
|
+
"pitfall": "The collision is a compile error, not a silent one — TS4114 for a same-named member, TS2416 where the signature differs — so a build that passes has none.",
|
|
68
|
+
"restore": null,
|
|
69
|
+
"searchHints": [
|
|
70
|
+
"detachScrollClose",
|
|
71
|
+
"ChartTooltipDirective"
|
|
72
|
+
],
|
|
73
|
+
"detect": [
|
|
74
|
+
"extends ChartTooltipDirective",
|
|
75
|
+
"ChartTooltipDirective"
|
|
76
|
+
],
|
|
77
|
+
"verify": "No subclass of the internal `ChartTooltipDirective` declares a member named `detachScrollClose` of its own; the app builds with no TS4114 or TS2416 on that class.",
|
|
78
|
+
"note": "The directive is internal: it tears down its own scroll subscription when the panel closes, which is what the new member holds. Subclassing a DS directive is unsupported, but a release that only adds can still fail such a build on a name collision."
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": "date-time-picker-panes-carry-dropdown-panel-class",
|
|
82
|
+
"kind": "behavior",
|
|
83
|
+
"old": "DatePickerComponent",
|
|
84
|
+
"new": null,
|
|
85
|
+
"surface": "style",
|
|
86
|
+
"action": "Check any rule of yours written against `.ds-dropdown-panel`: it now also matches the date picker and time picker panes. Narrow it to the picker you meant with that picker’s own pane class.",
|
|
87
|
+
"appliesWhen": "Only a stylesheet of yours that targets `.ds-dropdown-panel`. Neither panel changes appearance from the DS skin: the skin styles option rows, option groups and the list, and a calendar and a time column render none of those class names.",
|
|
88
|
+
"pitfall": "Nothing errors and nothing logs — the date or time panel simply picks up a treatment written for an option list, and only a look at the two panels shows it.",
|
|
89
|
+
"restore": null,
|
|
90
|
+
"searchHints": [
|
|
91
|
+
".ds-dropdown-panel",
|
|
92
|
+
"ds-dropdown-panel"
|
|
93
|
+
],
|
|
94
|
+
"detect": [
|
|
95
|
+
".ds-dropdown-panel",
|
|
96
|
+
"ds-dropdown-panel"
|
|
97
|
+
],
|
|
98
|
+
"verify": "Every consumer rule on `.ds-dropdown-panel` is either intended for all six pickers, or names one pane class — `ds-select-panel`, `ds-multi-select-panel`, `ds-autocomplete-panel`, `ds-color-picker-panel`, `ds-date-picker-panel` or `ds-time-picker-panel`.",
|
|
99
|
+
"note": "The date and time pickers used to pass a panel class that REPLACED the shared pair, so their panes carried `ds-overlay-pane` alone. The shared pair is now unconditional and a caller adds to it, which is what lets each pane also carry a class of its own. This is the inbound direction of a widening: an existing rule starts matching a panel it never matched."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "overlay-role-forwarding-compares-with-the-parent",
|
|
103
|
+
"kind": "behavior",
|
|
104
|
+
"old": "SelectComponent",
|
|
105
|
+
"new": null,
|
|
106
|
+
"surface": "style",
|
|
107
|
+
"action": "If a role token set on an ANCESTOR of a picker was reaching its portaled panel, move it onto the component itself — `ds-select { --ds-radius-panel: 8px }` — or use the panel hook, e.g. `--ds-dropdown-panel-radius`.",
|
|
108
|
+
"appliesWhen": "Only a stylesheet that sets `--ds-radius-inner`, `--ds-radius-control`, `--ds-radius-panel`, `--ds-radius-pill` or one of the four `--ds-elevation-*` roles on an ancestor of a picker, popover, menu or tooltip. A role set on the component, on `:root`, or on the pane is unaffected, and no template or TypeScript changes.",
|
|
109
|
+
"pitfall": "Nothing errors and nothing logs. A panel that was inheriting a shell radius or elevation simply falls back to the root value, and only opening it shows the difference.",
|
|
110
|
+
"restore": null,
|
|
111
|
+
"searchHints": [
|
|
112
|
+
"--ds-radius-panel",
|
|
113
|
+
"--ds-radius-inner",
|
|
114
|
+
"--ds-radius-control",
|
|
115
|
+
"--ds-radius-pill",
|
|
116
|
+
"--ds-elevation-overlay"
|
|
117
|
+
],
|
|
118
|
+
"detect": [
|
|
119
|
+
"--ds-radius-panel",
|
|
120
|
+
"--ds-radius-inner",
|
|
121
|
+
"--ds-radius-control",
|
|
122
|
+
"--ds-radius-pill",
|
|
123
|
+
"--ds-elevation-raised",
|
|
124
|
+
"--ds-elevation-overlay",
|
|
125
|
+
"--ds-elevation-floating",
|
|
126
|
+
"--ds-elevation-modal",
|
|
127
|
+
".ds-overlay-pane"
|
|
128
|
+
],
|
|
129
|
+
"verify": "Every panel whose corner or elevation came from a wrapper still looks right with it open, and a rule on `.ds-overlay-pane` is no longer beaten by an inline value on the pane.",
|
|
130
|
+
"note": "The component copies the roles a portaled pane needs onto it inline, because the pane sits outside the host. It chose what to copy by comparing the host with `:root`; custom properties inherit, so any ancestor value made every component under it an overrider and pinned that value inline, above the `.ds-overlay-pane` rule that is a stylesheet’s only route to a portaled panel. The comparison is against the parent now, which is what separates a role the host declares from one it inherited."
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "title-input-no-longer-leaves-a-native-attribute",
|
|
134
|
+
"kind": "behavior",
|
|
135
|
+
"old": "ds-modal",
|
|
136
|
+
"new": null,
|
|
137
|
+
"surface": "template",
|
|
138
|
+
"action": "Only if you relied on the native browser tooltip these hosts raised, or bound `[attr.title]` on one of them: move the tooltip to a wrapper element or a projected child, or use `dsTooltip`. Binding the `title` INPUT is unchanged.",
|
|
139
|
+
"appliesWhen": "Only a template that wrote `title=\"…\"` or `[attr.title]=\"…\"` on `ds-accordion-item`, `ds-alert`, `ds-banner`, `ds-bottom-sheet`, `ds-drawer`, `ds-empty-state`, `ds-list-item`, `ds-modal`, `ds-modal-card`, `ds-page-header` or `ds-toast` AND wanted the browser tooltip. Every one of these renders the title as visible text, so the visible output is unchanged.",
|
|
140
|
+
"pitfall": "Nothing errors and nothing logs — the tooltip simply stops appearing. The host binding also wins over a `[attr.title]` of your own on these hosts, so binding it explicitly does not bring the attribute back.",
|
|
141
|
+
"restore": null,
|
|
142
|
+
"searchHints": [
|
|
143
|
+
"title=",
|
|
144
|
+
"[attr.title]",
|
|
145
|
+
"ds-modal",
|
|
146
|
+
"ds-drawer",
|
|
147
|
+
"ds-toast"
|
|
148
|
+
],
|
|
149
|
+
"detect": [
|
|
150
|
+
"ds-accordion-item",
|
|
151
|
+
"ds-alert",
|
|
152
|
+
"ds-banner",
|
|
153
|
+
"ds-bottom-sheet",
|
|
154
|
+
"ds-drawer",
|
|
155
|
+
"ds-empty-state",
|
|
156
|
+
"ds-list-item",
|
|
157
|
+
"ds-modal",
|
|
158
|
+
"ds-modal-card",
|
|
159
|
+
"ds-page-header",
|
|
160
|
+
"ds-toast"
|
|
161
|
+
],
|
|
162
|
+
"verify": "Hovering one of these components raises no browser tooltip naming the component, and any tooltip you did want is still shown from its wrapper, its projected child or `dsTooltip`.",
|
|
163
|
+
"note": "`title` is a global HTML attribute, so a static `title=\"…\"` fed the input AND stayed in the DOM, making the whole component a native tooltip that named it rather than whatever the pointer rested on."
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"id": "donut-error-message-class-renamed",
|
|
167
|
+
"kind": "class-rename",
|
|
168
|
+
"old": "empty is-error",
|
|
169
|
+
"new": "empty-text is-error",
|
|
170
|
+
"surface": "style",
|
|
171
|
+
"action": "Retarget any rule written against `.empty.is-error` inside `ds-donut-chart` to `.empty-text.is-error`.",
|
|
172
|
+
"appliesWhen": "Only a stylesheet of yours reaching the donut error message by class. The other four charts still use `.empty.is-error` and are unchanged.",
|
|
173
|
+
"pitfall": "Nothing errors — the rule simply stops matching, and the message falls back to the library default.",
|
|
174
|
+
"restore": null,
|
|
175
|
+
"searchHints": [
|
|
176
|
+
"empty is-error",
|
|
177
|
+
".empty.is-error",
|
|
178
|
+
"is-error"
|
|
179
|
+
],
|
|
180
|
+
"detect": [
|
|
181
|
+
".empty.is-error"
|
|
182
|
+
],
|
|
183
|
+
"verify": "No rule targets `.empty.is-error` within `ds-donut-chart`; the error message still takes your styling.",
|
|
184
|
+
"note": "The error branch moved from a bare paragraph to the same ring-sized box the no-data state uses, so `.empty` is now the wrapper and the message carries `.empty-text`."
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"informational": [
|
|
188
|
+
"Every DS surface that used to travel on its way in now fades instead. `ds-overlay-pane` — the select, autocomplete, multi-select, date-picker, time-picker, colour-picker, popover, menu-submenu and tooltip panels — plus `ds-alert`, `ds-banner` and `ds-toast` defaulted to `ds-slide-in`, which offsets the surface and slides it into place; they default to `ds-fade-in` now, at the same duration and easing. `ds-drawer` and `ds-bottom-sheet` are unchanged (`ds-slide-edge-in`), and so is `ds-modal` (`ds-scale-in`). Nothing in your code changes. If you want the travel back it is one declaration at the root — `:root { --ds-overlay-enter-keyframes: ds-slide-in; }` — or per surface, `ds-toast { --ds-toast-enter-keyframes: ds-slide-in; }`.",
|
|
189
|
+
"A chart mark now arrives by growing from its own baseline rather than by scaling about its centre: a `ds-column-chart` column grows up out of the category axis, a `ds-bar-chart` row grows out from the value axis, and `ds-donut-chart`, `ds-funnel-chart` and `ds-line-chart` marks fade because they have no baseline to grow from. Nothing in your code changes. `staggerMs` still spaces the arrivals on the four charts whose marks arrive one at a time.",
|
|
190
|
+
"The mark cap on `ds-bar-chart` and `ds-column-chart` is 3px, through a new `--ds-chart-mark-cap-radius` with `--ds-bar-chart-cap-radius` and `--ds-column-chart-cap-radius` over it. The bar's end was a full pill (half the track height) and the column's top was `--radius-sm`, so both change shape slightly. Set the hook to your old value if the pill mattered: `ds-bar-chart { --ds-bar-chart-cap-radius: 6px; }`.",
|
|
191
|
+
"`ds-funnel-chart`'s inter-stage gaps and `ds-bar-chart`'s row gap now belong to the marks either side of them, so a pointer between two marks answers for one of them instead of for nothing. The funnel's gaps look exactly as they did. `ds-bar-chart`'s plot is one full `--ds-bar-chart-row-gap` taller — 20px at the default — because the row gap moved from the list onto each row, giving the first row half a gap above it and the last half a gap below. A test that asserted a pointer between two bars hits neither will now see the nearer one, and a layout pinned to the old plot height needs 20px more.",
|
|
192
|
+
"`ds-line-chart`'s crosshair moved into a group that carries a `translateX`, so following the pointer is one transform rather than an attribute write per shape, and it fades in and out. It is deliberately not transitioned — the crosshair belongs under the pointer. A stylesheet that reached `.category-band` or `.cursor-line` to position them by hand is now positioning them inside that group; the classes themselves are unchanged. A rule that adds a transition to either will make the crosshair lag the pointer.",
|
|
193
|
+
"A chart tooltip closes when the page scrolls. `ds-line-chart` reopens it on the next pointer move; the other four reopen when the pointer leaves a mark and enters one again. It used to stay pinned in space while the chart scrolled away, because CDK's reposition strategy watches `window` and registered `cdkScrollable`s only and misses an app's own `overflow: auto` container.",
|
|
194
|
+
"`ds-chart-legend`'s checkboxes were painting the focus ring at all times rather than under `:focus-visible`, so every legend row looked focused. The component's own rule is gone — the library's global `:where(:focus-visible)` already rings them — and nothing in your code changes. A screenshot test of a chart legend will differ.",
|
|
195
|
+
"The dropdown panel gained `--ds-dropdown-panel-border-color` and `--ds-dropdown-panel-shadow`, and a dropdown option gained `--ds-option-weight`, `--ds-option-font-size`, `--ds-option-line-height` and `--ds-option-font-family`. Each defaults to the value that was hardcoded before, and each forwards from the host onto the portaled pane like the panel tokens already there, so one picker can be retyped without a global rule (delete list: deep-option-type-rule).",
|
|
196
|
+
"`ds-modal` gained `--ds-modal-title-font-family`, defaulting to `--font-heading`. It is the one title property that had no hook, which is why a display face needed the doubled `.title.title` selector (delete list: modal-title-doubled-class).",
|
|
197
|
+
"`ds-table`'s pagination footer insets from `--ds-table-cell-pad-left` and `--ds-table-cell-pad-right` when they are set, falling back to `--ds-table-cell-pad-x` as before. A table using only `-x` is unchanged; one with a per-side gutter gets a footer that lines up with column one instead of sitting at the default (delete list: table-pagination-footer-local-inset). One case is not closed: `density=\"compact\"` retunes the cells' padding on the table element and the footer is that element's sibling, so a compact table setting no `--ds-table-cell-pad-*` has 12px cells under a 16px footer.",
|
|
198
|
+
"Fading the marks that are not singled out is now the `dimOthers` input rather than something `interactive` brought with it, and it is OFF by default on all five charts. On `ds-bar-chart`, `ds-column-chart`, `ds-donut-chart` and `ds-funnel-chart` the pointer or focus picks the mark; `ds-line-chart` has no mark between two readings, so its fade follows the legend's highlight. The fade costs the separation between the faded marks — measured 2026-09-13, the worst pair of three dimmed series falls from dE 14.8 at full opacity to 2.1 at the default dim opacity — so it is a trade to make deliberately. A chart that had it back: `<ds-donut-chart interactive dimOthers …>`.",
|
|
199
|
+
"Every chart holds the height of its plot while it shows a message — empty data, an error, or a legend that switched the last series off. What reserves that height differs: `ds-column-chart` and `ds-line-chart` use `--ds-column-chart-plot-height` / `--ds-line-chart-plot-height`, `ds-donut-chart` uses `--ds-donut-chart-size`, and `ds-bar-chart` and `ds-funnel-chart` reserve three rows or stages — so a bar chart that normally draws ten rows still shrinks to that reserve. A layout that relied on a chart collapsing to a line of text in those states will now see a reserved box.",
|
|
200
|
+
"A chart tooltip's default content carries a second line per reading, for what the chart does not already print beside the mark: the mark's share of the total on `ds-bar-chart` and `ds-column-chart`, and the drop into the stage on `ds-funnel-chart`. A mark whose value is zero or negative gets no second line. `ds-donut-chart` carries none — its panel and its legend both already print the percentage. `ChartTooltipEntry` takes an optional `detail` for it. A projected `#dsChartTooltip` template is unaffected — it replaces the panel's contents entirely.",
|
|
201
|
+
"The dropdown panel's hooks all forward from the host onto the portaled pane per instance, the two new ones included — `--ds-dropdown-panel-border-color`, `--ds-dropdown-panel-shadow`, `--ds-option-weight`, `--ds-option-font-size`, `--ds-option-line-height` and `--ds-option-font-family` join `--ds-dropdown-panel-bg-color`, `--ds-dropdown-panel-minw`, `--ds-dropdown-panel-maxw`, `--ds-option-selected-bg-color`, `--ds-option-selected-label-color`, `--ds-option-selected-bg-color-hover` and `--ds-option-check-color`. Setting any of them on one picker reaches that picker's pane with no global rule.",
|
|
202
|
+
"`staggerMs` on `ds-donut-chart` has no effect. The ring fades as one object — arcs share their edges, and fading them one at a time shows the background through every seam — so there is nothing for a per-mark step to stagger. The input stays for parity with the other four charts.",
|
|
203
|
+
"A legend's colour chips now fade in with the marks they name, on the same curve and delay: `ds-chart-legend`'s swatch and, where the legend toggles, its checkbox; `ds-donut-chart`'s legend swatch; and `ds-funnel-chart`'s stage-table swatch. They used to be solid from the first frame. Nothing in your code changes; a screenshot test that captures a chart mid-entrance will differ.",
|
|
204
|
+
"`ds-donut-chart`'s error state holds the ring's height instead of collapsing to a line of text, matching the no-data state. The message element carries `empty-text is-error` where it carried `empty is-error`, so a rule written against `.empty.is-error` inside this chart no longer matches it.",
|
|
205
|
+
"The internal `describeStanding` is renamed: the internal `describeShare` replaces it, returning the share alone with no rank clause, and returning an empty string for a zero or negative reading. Neither name is exported from the package root — `@ids-group-ltd/ids-design-system/components` exports them — so only code reaching in through that specifier has an import to rename."
|
|
206
|
+
],
|
|
207
|
+
"deleteList": [
|
|
208
|
+
{
|
|
209
|
+
"id": "deep-option-type-rule",
|
|
210
|
+
"surface": "style",
|
|
211
|
+
"find": [
|
|
212
|
+
".ds-overlay-pane .dropdown-panel .option"
|
|
213
|
+
],
|
|
214
|
+
"why": "the row's weight, size, line-height and family are public hooks that forward per instance, so no deep selector is needed",
|
|
215
|
+
"replaceWith": "`--ds-option-weight`, `--ds-option-font-size`, `--ds-option-line-height` and `--ds-option-font-family`"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"id": "modal-title-doubled-class",
|
|
219
|
+
"surface": "style",
|
|
220
|
+
"find": [
|
|
221
|
+
"ds-modal .title.title"
|
|
222
|
+
],
|
|
223
|
+
"why": "the title reads a family hook, so the class no longer has to be doubled to out-specify the component's own rule",
|
|
224
|
+
"replaceWith": "`--ds-modal-title-font-family`"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"id": "table-pagination-footer-local-inset",
|
|
228
|
+
"surface": "style",
|
|
229
|
+
"find": [
|
|
230
|
+
".pagination-footer"
|
|
231
|
+
],
|
|
232
|
+
"why": "the footer resolves the same per-side chain the cells do, so it lines up with column one on its own — except under `density=\"compact\"`, where the density retunes the cells on the table element and the footer is that element's sibling",
|
|
233
|
+
"replaceWith": "nothing on a default-density table; on a compact one either set `--ds-table-cell-pad-x: var(--space-3)` on the table or keep the rule, because the footer is otherwise 4px wider than the cells"
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ids-group-ltd/ids-design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "IDS Group Angular design system: components, tokens, themes",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://ids-ds.proto.ids-group.co.uk/",
|
|
@@ -65,6 +65,10 @@
|
|
|
65
65
|
"types": "./types/ids-group-ltd-ids-design-system-components-banner.d.ts",
|
|
66
66
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs"
|
|
67
67
|
},
|
|
68
|
+
"./components/bar-chart": {
|
|
69
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts",
|
|
70
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs"
|
|
71
|
+
},
|
|
68
72
|
"./components/bottom-sheet": {
|
|
69
73
|
"types": "./types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts",
|
|
70
74
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs"
|
|
@@ -89,6 +93,14 @@
|
|
|
89
93
|
"types": "./types/ids-group-ltd-ids-design-system-components-card.d.ts",
|
|
90
94
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-card.mjs"
|
|
91
95
|
},
|
|
96
|
+
"./components/chart-legend": {
|
|
97
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts",
|
|
98
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs"
|
|
99
|
+
},
|
|
100
|
+
"./components/chart-tooltip": {
|
|
101
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts",
|
|
102
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs"
|
|
103
|
+
},
|
|
92
104
|
"./components/checkbox": {
|
|
93
105
|
"types": "./types/ids-group-ltd-ids-design-system-components-checkbox.d.ts",
|
|
94
106
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs"
|
|
@@ -97,6 +109,10 @@
|
|
|
97
109
|
"types": "./types/ids-group-ltd-ids-design-system-components-color-picker.d.ts",
|
|
98
110
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs"
|
|
99
111
|
},
|
|
112
|
+
"./components/column-chart": {
|
|
113
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-column-chart.d.ts",
|
|
114
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs"
|
|
115
|
+
},
|
|
100
116
|
"./components/date-picker": {
|
|
101
117
|
"types": "./types/ids-group-ltd-ids-design-system-components-date-picker.d.ts",
|
|
102
118
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs"
|
|
@@ -109,6 +125,10 @@
|
|
|
109
125
|
"types": "./types/ids-group-ltd-ids-design-system-components-divider.d.ts",
|
|
110
126
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs"
|
|
111
127
|
},
|
|
128
|
+
"./components/donut-chart": {
|
|
129
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-donut-chart.d.ts",
|
|
130
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs"
|
|
131
|
+
},
|
|
112
132
|
"./components/drawer": {
|
|
113
133
|
"types": "./types/ids-group-ltd-ids-design-system-components-drawer.d.ts",
|
|
114
134
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs"
|
|
@@ -133,6 +153,10 @@
|
|
|
133
153
|
"types": "./types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts",
|
|
134
154
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs"
|
|
135
155
|
},
|
|
156
|
+
"./components/funnel-chart": {
|
|
157
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts",
|
|
158
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs"
|
|
159
|
+
},
|
|
136
160
|
"./components/icon-button": {
|
|
137
161
|
"types": "./types/ids-group-ltd-ids-design-system-components-icon-button.d.ts",
|
|
138
162
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs"
|
|
@@ -145,6 +169,10 @@
|
|
|
145
169
|
"types": "./types/ids-group-ltd-ids-design-system-components-layout.d.ts",
|
|
146
170
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs"
|
|
147
171
|
},
|
|
172
|
+
"./components/line-chart": {
|
|
173
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-line-chart.d.ts",
|
|
174
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs"
|
|
175
|
+
},
|
|
148
176
|
"./components/list": {
|
|
149
177
|
"types": "./types/ids-group-ltd-ids-design-system-components-list.d.ts",
|
|
150
178
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-list.mjs"
|
|
@@ -369,6 +397,10 @@
|
|
|
369
397
|
"types": "./types/ids-group-ltd-ids-design-system-components-banner.d.ts",
|
|
370
398
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs"
|
|
371
399
|
},
|
|
400
|
+
"./bar-chart": {
|
|
401
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts",
|
|
402
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs"
|
|
403
|
+
},
|
|
372
404
|
"./bottom-sheet": {
|
|
373
405
|
"types": "./types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts",
|
|
374
406
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs"
|
|
@@ -393,6 +425,14 @@
|
|
|
393
425
|
"types": "./types/ids-group-ltd-ids-design-system-components-card.d.ts",
|
|
394
426
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-card.mjs"
|
|
395
427
|
},
|
|
428
|
+
"./chart-legend": {
|
|
429
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts",
|
|
430
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs"
|
|
431
|
+
},
|
|
432
|
+
"./chart-tooltip": {
|
|
433
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts",
|
|
434
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs"
|
|
435
|
+
},
|
|
396
436
|
"./checkbox": {
|
|
397
437
|
"types": "./types/ids-group-ltd-ids-design-system-components-checkbox.d.ts",
|
|
398
438
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs"
|
|
@@ -401,6 +441,10 @@
|
|
|
401
441
|
"types": "./types/ids-group-ltd-ids-design-system-components-color-picker.d.ts",
|
|
402
442
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs"
|
|
403
443
|
},
|
|
444
|
+
"./column-chart": {
|
|
445
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-column-chart.d.ts",
|
|
446
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs"
|
|
447
|
+
},
|
|
404
448
|
"./date-picker": {
|
|
405
449
|
"types": "./types/ids-group-ltd-ids-design-system-components-date-picker.d.ts",
|
|
406
450
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs"
|
|
@@ -413,6 +457,10 @@
|
|
|
413
457
|
"types": "./types/ids-group-ltd-ids-design-system-components-divider.d.ts",
|
|
414
458
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs"
|
|
415
459
|
},
|
|
460
|
+
"./donut-chart": {
|
|
461
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-donut-chart.d.ts",
|
|
462
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs"
|
|
463
|
+
},
|
|
416
464
|
"./drawer": {
|
|
417
465
|
"types": "./types/ids-group-ltd-ids-design-system-components-drawer.d.ts",
|
|
418
466
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs"
|
|
@@ -437,6 +485,10 @@
|
|
|
437
485
|
"types": "./types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts",
|
|
438
486
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs"
|
|
439
487
|
},
|
|
488
|
+
"./funnel-chart": {
|
|
489
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts",
|
|
490
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs"
|
|
491
|
+
},
|
|
440
492
|
"./icon-button": {
|
|
441
493
|
"types": "./types/ids-group-ltd-ids-design-system-components-icon-button.d.ts",
|
|
442
494
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs"
|
|
@@ -449,6 +501,10 @@
|
|
|
449
501
|
"types": "./types/ids-group-ltd-ids-design-system-components-layout.d.ts",
|
|
450
502
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs"
|
|
451
503
|
},
|
|
504
|
+
"./line-chart": {
|
|
505
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-line-chart.d.ts",
|
|
506
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs"
|
|
507
|
+
},
|
|
452
508
|
"./list": {
|
|
453
509
|
"types": "./types/ids-group-ltd-ids-design-system-components-list.d.ts",
|
|
454
510
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-list.mjs"
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
@use 'visually-hidden';
|
|
2
|
+
|
|
3
|
+
// The annex table every chart offers under a disclosure. All five render the same markup, so the
|
|
4
|
+
// rules live here rather than five times over.
|
|
5
|
+
@mixin chart-data-table {
|
|
6
|
+
.data-table {
|
|
7
|
+
// Half the marker triangle's height. A border-drawn triangle has no token equivalent — these
|
|
8
|
+
// are the arrow's own geometry, not spacing — so the two numbers behind it live in one name.
|
|
9
|
+
--_chart-data-table-marker: var(--space-1);
|
|
10
|
+
|
|
11
|
+
margin-block-start: var(--space-4);
|
|
12
|
+
color: var(--text-secondary);
|
|
13
|
+
font-size: var(--font-size-s);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.data-table > summary {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: var(--space-1);
|
|
20
|
+
padding-block: var(--space-1);
|
|
21
|
+
color: var(--text-tertiary);
|
|
22
|
+
font-size: var(--font-size-xs);
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
list-style: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Safari still draws the default triangle through `list-style: none`.
|
|
28
|
+
.data-table > summary::-webkit-details-marker {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.data-table > summary::before {
|
|
33
|
+
content: '';
|
|
34
|
+
inline-size: 0;
|
|
35
|
+
block-size: 0;
|
|
36
|
+
border-block-start: var(--_chart-data-table-marker) solid transparent;
|
|
37
|
+
border-block-end: var(--_chart-data-table-marker) solid transparent;
|
|
38
|
+
border-inline-start: calc(var(--_chart-data-table-marker) * 1.25) solid
|
|
39
|
+
currentcolor;
|
|
40
|
+
transition: transform var(--duration-fast) var(--ease-standard);
|
|
41
|
+
|
|
42
|
+
@media (prefers-reduced-motion: reduce) {
|
|
43
|
+
transition: none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.data-table[open] > summary::before {
|
|
48
|
+
transform: rotate(90deg);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// An outline follows the border-radius of the box it is painted on, and the focus catch-all in
|
|
52
|
+
// `styles/focus` rings this summary without any help; a square-cornered box would ring square.
|
|
53
|
+
.data-table > summary {
|
|
54
|
+
border-radius: var(--radius-sm);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// The caption repeats the figure's own caption directly beneath it. Kept for a screen reader
|
|
58
|
+
// reaching the table out of context, hidden for the eye — same call as ds-table.
|
|
59
|
+
.data-table caption {
|
|
60
|
+
@include visually-hidden.visually-hidden;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.data-table table {
|
|
64
|
+
inline-size: 100%;
|
|
65
|
+
margin-block-start: var(--space-2);
|
|
66
|
+
border-collapse: collapse;
|
|
67
|
+
font-variant-numeric: tabular-nums;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.data-table th,
|
|
71
|
+
.data-table td {
|
|
72
|
+
padding-block: var(--space-2);
|
|
73
|
+
border-block-end: var(--border-width-default) solid
|
|
74
|
+
var(--ds-chart-grid-line-color);
|
|
75
|
+
text-align: end;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.data-table thead th {
|
|
79
|
+
color: var(--text-tertiary);
|
|
80
|
+
font-size: var(--font-size-xs);
|
|
81
|
+
font-weight: 600;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.data-table th:first-child,
|
|
85
|
+
.data-table td:first-child {
|
|
86
|
+
text-align: start;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Numeric columns end-align, so without a start gutter two adjacent figures touch as soon as the
|
|
90
|
+
// measure tightens. Body cells only, and never the first: the header labels set the table's
|
|
91
|
+
// minimum width, and a gutter on the first column indents the labels off their own heading.
|
|
92
|
+
.data-table td + td {
|
|
93
|
+
padding-inline-start: var(--space-3);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// The box a chart draws around itself. All five draw the same one, so the rules live here.
|
|
2
|
+
//
|
|
3
|
+
// On by default, which is unusual for this library: most components resist owning chrome. A chart
|
|
4
|
+
// is the exception because it is read as an OBJECT — a plot with axes, a legend and an annex table
|
|
5
|
+
// — and without an edge those parts run into whatever sits beside them on the page. A chart already
|
|
6
|
+
// inside a card drops the frame with two declarations rather than a mode flag:
|
|
7
|
+
//
|
|
8
|
+
// ds-bar-chart { --ds-chart-frame-border-width: 0; --ds-chart-frame-padding: 0; }
|
|
9
|
+
@mixin chart-frame {
|
|
10
|
+
:host {
|
|
11
|
+
display: block;
|
|
12
|
+
padding: var(--ds-chart-frame-padding);
|
|
13
|
+
background: var(--ds-chart-frame-bg-color);
|
|
14
|
+
border: var(--ds-chart-frame-border-width) solid
|
|
15
|
+
var(--ds-chart-frame-border-color);
|
|
16
|
+
border-radius: var(--ds-chart-frame-radius);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// The focus indicator, drawn rather than outlined: `outline` on an SVG element paints its BOUNDING
|
|
21
|
+
// BOX, not its silhouette, so a slice would ring as a rectangle. Two tones, because one is not
|
|
22
|
+
// enough — a light stroke carries against a dark mark, the dark halo around it carries against a
|
|
23
|
+
// light one and against the surface, and between them the ring clears 3:1 on every series colour
|
|
24
|
+
// the palette holds. `drop-shadow` rather than a second stroke: an SVG shape has one stroke.
|
|
25
|
+
@mixin drawn-focus-ring {
|
|
26
|
+
stroke: var(--ds-chart-focus-ring-color);
|
|
27
|
+
stroke-width: var(--focus-ring-width);
|
|
28
|
+
paint-order: stroke;
|
|
29
|
+
filter: drop-shadow(0 0 1px var(--ds-chart-focus-halo-color))
|
|
30
|
+
drop-shadow(0 0 1px var(--ds-chart-focus-halo-color));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// `fill` and `stroke` are NOT remapped by forced colours: the chart keeps every series colour and
|
|
34
|
+
// they all become the same one against the forced background, with nothing reporting a problem.
|
|
35
|
+
// The system keywords are what put the structure back.
|
|
36
|
+
@mixin forced-colors {
|
|
37
|
+
@media (forced-colors: active) {
|
|
38
|
+
.axis-line,
|
|
39
|
+
.grid-line {
|
|
40
|
+
stroke: CanvasText;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.axis-label,
|
|
44
|
+
.category-label {
|
|
45
|
+
fill: CanvasText;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:focus-visible {
|
|
49
|
+
stroke: Highlight;
|
|
50
|
+
filter: none;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Every state a chart can be in occupies the same box. A chart that shrinks to a line of text when
|
|
56
|
+
// its data is empty, its request failed, or its legend switched the last series off drags the whole
|
|
57
|
+
// page up under the reader's cursor — and the state they are being told about is exactly the moment
|
|
58
|
+
// they are least able to afford the jump. `$height` is the plot the message stands in for.
|
|
59
|
+
@mixin message-box($height) {
|
|
60
|
+
.empty {
|
|
61
|
+
display: grid;
|
|
62
|
+
place-items: center;
|
|
63
|
+
min-block-size: $height;
|
|
64
|
+
margin: 0;
|
|
65
|
+
color: var(--text-secondary);
|
|
66
|
+
text-align: center;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// The ONLY place a chart derives a hover state.
|
|
2
|
+
//
|
|
3
|
+
// TODO(ds-interactive): migrate this onto `_interaction.scss` once that file exists.
|
|
4
|
+
//
|
|
5
|
+
// Only the fade half lives here. Singling a mark OUT is a direct value label, which the component
|
|
6
|
+
// renders as markup, because a label has to be a node a screen reader can reach — an ::after
|
|
7
|
+
// cannot be.
|
|
8
|
+
|
|
9
|
+
// `.is-dimmed` alone, for a mark whose highlight only ever comes from outside — a legend, or a
|
|
10
|
+
// consumer. A line has no mark between two readings, so it has no `:hover` half to derive.
|
|
11
|
+
//
|
|
12
|
+
// `$also` is how a mark adds its OWN animated properties to the same declaration — a second
|
|
13
|
+
// `transition` on the same selector replaces this one rather than adding to it, and the fade then
|
|
14
|
+
// disappears with nothing reporting it. Pass a leading comma: `', fill 180ms ease'`.
|
|
15
|
+
@mixin dims($mark, $also: '') {
|
|
16
|
+
#{$mark} {
|
|
17
|
+
transition: opacity var(--ds-motion-chart-state-duration)
|
|
18
|
+
var(--ds-motion-chart-state-easing) #{$also};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
#{$mark}.is-dimmed {
|
|
22
|
+
opacity: var(--ds-chart-dim-opacity);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Include on the CONTAINER, never on the mark: `:has()` asks the container whether anything inside
|
|
27
|
+
// it is hovered, which is what lets a pointer highlight work with no component state.
|
|
28
|
+
//
|
|
29
|
+
// Gated on `.dims-others`, which the chart puts on the container from its `dimOthers` input. Off by
|
|
30
|
+
// default, because dimming is not free: measured 2026-09-13, OKLab dE x100, the worst pair of three
|
|
31
|
+
// dimmed series falls from 14.8 at full opacity to 2.1 at 30%. It buys loudness for the mark under
|
|
32
|
+
// the pointer and pays for it with the reader's ability to tell the REST of the chart apart, which
|
|
33
|
+
// is a trade a consumer should make deliberately rather than inherit.
|
|
34
|
+
//
|
|
35
|
+
// Usage: `.columns { @include chart-interactive.fades('.column'); }`
|
|
36
|
+
@mixin fades($mark, $also: '') {
|
|
37
|
+
@include dims($mark, $also);
|
|
38
|
+
|
|
39
|
+
&.dims-others:has(#{$mark}.interactive:hover)
|
|
40
|
+
#{$mark}.interactive:not(:hover),
|
|
41
|
+
&.dims-others:has(#{$mark}.interactive:focus-visible)
|
|
42
|
+
#{$mark}.interactive:not(:focus-visible) {
|
|
43
|
+
opacity: var(--ds-chart-dim-opacity);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@mixin clickable($mark) {
|
|
48
|
+
#{$mark}.interactive {
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
}
|