@ids-group-ltd/ids-design-system 0.14.0 → 0.14.2
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 +573 -4
- package/components.md +103 -62
- package/design-system.md +2 -0
- package/docs/agent/INDEX.md +5 -4
- package/docs/agent/charts/column-series-component.md +1 -1
- package/docs/agent/charts/ds-bar-chart.md +4 -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 +3 -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 +3 -3
- package/docs/agent/charts/ds-pie-chart.md +5 -4
- 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-alert.md +1 -0
- package/docs/agent/feedback/ds-badge.md +1 -1
- package/docs/agent/feedback/ds-banner.md +1 -0
- package/docs/agent/feedback/ds-description-list.md +3 -0
- package/docs/agent/feedback/ds-skeleton.md +2 -2
- package/docs/agent/feedback/ds-tag.md +1 -1
- package/docs/agent/forms/ds-autocomplete.md +2 -2
- package/docs/agent/forms/ds-button.md +1 -1
- package/docs/agent/forms/ds-color-picker.md +1 -1
- package/docs/agent/forms/ds-date-picker.md +2 -2
- package/docs/agent/forms/ds-filter-bar.md +1 -1
- package/docs/agent/forms/ds-icon-button.md +1 -1
- package/docs/agent/forms/ds-input.md +1 -1
- package/docs/agent/forms/ds-multi-select.md +2 -2
- package/docs/agent/forms/ds-otp-input.md +1 -1
- package/docs/agent/forms/ds-search.md +2 -2
- package/docs/agent/forms/ds-split-button.md +1 -1
- package/docs/agent/forms/ds-textarea.md +2 -2
- package/docs/agent/foundations/tokens.md +1 -1
- package/docs/agent/navigation/ds-app-layout.md +2 -2
- package/docs/agent/navigation/ds-auth-layout.md +4 -4
- package/docs/agent/navigation/ds-page-header.md +1 -1
- package/docs/agent/navigation/ds-pagination.md +1 -1
- package/docs/agent/navigation/ds-tabs.md +1 -0
- package/docs/agent/overlays/ds-tooltip.md +3 -3
- package/docs/agent/platform/ds-config.md +2 -3
- package/docs/agent/platform/ds-intl.md +33 -0
- package/docs/agent/surfaces/ds-accordion.md +2 -2
- package/docs/agent/tables/ds-table.md +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +9 -5
- 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 +21 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +9 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +8 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +15 -8
- 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 +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +5 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +12 -8
- 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 +21 -10
- 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 +53 -30
- 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 +7 -6
- 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 +4 -3
- 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 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +20 -6
- 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 +198 -44
- 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 +248 -142
- 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 +9 -5
- 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 +28 -25
- 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 +16 -9
- 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 +5 -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 +7 -4
- 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 +12 -6
- 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-filter-bar.mjs +13 -7
- 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 +64 -43
- 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 +56 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +5 -4
- 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 +32 -29
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +26 -13
- 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 +17 -10
- 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 +5 -4
- 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 +13 -7
- 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 +15 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +12 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +62 -25
- 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 +49 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +6 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +20 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +6 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +16 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +9 -6
- 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 +48 -22
- 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 +68 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +9 -5
- 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 +63 -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 +12 -10
- 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 +8 -6
- 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 +78 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +36 -21
- 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 +355 -81
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +362 -3
- package/fesm2022/ids-group-ltd-ids-design-system-core.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.10.0.json +1 -1
- package/migrations/0.10.1.json +1 -1
- package/migrations/0.14.0.json +28 -4
- package/migrations/0.14.1.json +856 -0
- package/migrations/0.14.2.json +427 -0
- package/package.json +1 -1
- package/schematics/check-overrides/index.cjs +56 -0
- package/schematics/check-overrides/scan.cjs +74 -0
- package/schematics/check-overrides/schema.json +19 -0
- package/schematics/check-overrides/surface.json +2333 -0
- package/schematics/collection.json +5 -0
- package/styles/_chart-frame.scss +34 -12
- package/styles/_chart-interactive.scss +43 -9
- package/styles/_chart-motion.scss +139 -16
- package/styles/_field-box.scss +12 -0
- package/styles/_overlay-motion.scss +12 -4
- package/styles/_tokens-charts.scss +1 -1
- package/styles/_tokens.scss +19 -4
- package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +11 -2
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +4 -0
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +5 -2
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +5 -5
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +7 -4
- package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +5 -3
- package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -0
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +41 -19
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +8 -1
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +34 -6
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +189 -121
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +17 -17
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +9 -3
- package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +3 -0
- package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +9 -4
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +34 -20
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +36 -7
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +21 -18
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +11 -6
- package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +41 -17
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +28 -7
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +7 -3
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -2
- package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +5 -1
- package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +6 -4
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +5 -2
- package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +15 -6
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +15 -2
- package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +24 -4
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -0
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +3 -0
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +10 -1
- package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +18 -7
- package/types/ids-group-ltd-ids-design-system-components.d.ts +75 -25
- package/types/ids-group-ltd-ids-design-system-core.d.ts +421 -11
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -3
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
"description": "Wire the IDS design system's global styles into a project.",
|
|
6
6
|
"factory": "./ng-add/index.cjs#ngAdd",
|
|
7
7
|
"schema": "./ng-add/schema.json"
|
|
8
|
+
},
|
|
9
|
+
"check-overrides": {
|
|
10
|
+
"description": "Report --ds-* overrides the installed version never reads, and ds-* selectors naming classes its components do not render.",
|
|
11
|
+
"factory": "./check-overrides/index.cjs#checkOverrides",
|
|
12
|
+
"schema": "./check-overrides/schema.json"
|
|
8
13
|
}
|
|
9
14
|
}
|
|
10
15
|
}
|
package/styles/_chart-frame.scss
CHANGED
|
@@ -133,25 +133,38 @@
|
|
|
133
133
|
position: relative;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
:host(.framed) {
|
|
137
|
+
--_chart-pin-reset-inset: var(--ds-chart-frame-padding);
|
|
138
|
+
}
|
|
139
139
|
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
// Room on the caption's line while the control is up, so a long caption wraps short of it rather
|
|
141
|
+
// than running under it; a chart with no caption gains the line. The shift answers a click.
|
|
142
|
+
// ponytail: a fixed room fits `Unpin`; a translation longer than about ten characters overlaps
|
|
143
|
+
// the caption's end, measure the control if one ever does.
|
|
144
|
+
:host:has(.pin-reset) figure > figcaption {
|
|
145
|
+
padding-inline-end: calc(5rem + var(--space-2));
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:host:has(.pin-reset) figure:not(:has(> figcaption)) {
|
|
149
|
+
padding-block-start: calc(var(--space-6) + var(--space-2));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Top END, on the caption's line: the bottom of a chart carries its axis labels, its legend or its
|
|
153
|
+
table, and a control floating over them hides the words the reader is comparing. The caption
|
|
154
|
+
line is the one run of a chart with room to its end.
|
|
155
|
+
|
|
156
|
+
Drawn at the caption's height; the 44px the library's touch rule asks of a real control is the
|
|
157
|
+
hit area around it, not its box. */
|
|
142
158
|
.pin-reset {
|
|
143
159
|
position: absolute;
|
|
144
|
-
inset-block-
|
|
145
|
-
inset-inline: 0;
|
|
160
|
+
inset-block-start: var(--_chart-pin-reset-inset, 0);
|
|
161
|
+
inset-inline-end: var(--_chart-pin-reset-inset, 0);
|
|
146
162
|
z-index: 1;
|
|
147
|
-
justify-self: center;
|
|
148
|
-
margin-inline: auto;
|
|
149
163
|
display: inline-flex;
|
|
150
164
|
align-items: center;
|
|
151
165
|
gap: var(--space-1);
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
padding: var(--space-1) var(--space-3);
|
|
166
|
+
block-size: var(--space-6);
|
|
167
|
+
padding: 0 var(--space-2-5);
|
|
155
168
|
border: var(--border-width-default) solid var(--border-divider);
|
|
156
169
|
border-radius: var(--radius-pill);
|
|
157
170
|
background: var(--surface-default);
|
|
@@ -161,6 +174,15 @@
|
|
|
161
174
|
box-shadow: var(--shadow-1);
|
|
162
175
|
cursor: pointer;
|
|
163
176
|
|
|
177
|
+
&::before {
|
|
178
|
+
position: absolute;
|
|
179
|
+
inset: 50% auto auto 50%;
|
|
180
|
+
inline-size: max(100%, var(--hit-comfy));
|
|
181
|
+
block-size: var(--hit-comfy);
|
|
182
|
+
transform: translate(-50%, -50%);
|
|
183
|
+
content: '';
|
|
184
|
+
}
|
|
185
|
+
|
|
164
186
|
&:hover {
|
|
165
187
|
color: var(--text-primary);
|
|
166
188
|
border-color: var(--border-strong);
|
|
@@ -23,8 +23,10 @@
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
// Include on the CONTAINER, never on the mark: `:has()` asks the container whether
|
|
27
|
-
//
|
|
26
|
+
// Include on the CONTAINER, never on the mark: `:has()` asks the container whether one of its
|
|
27
|
+
// marks is the active one. `.is-active` is the component's, set from the same state the tooltip
|
|
28
|
+
// reads, so the highlight waits out the hover delay with the tooltip rather than flashing on every
|
|
29
|
+
// mark the pointer crosses. The component also sets it on focus.
|
|
28
30
|
//
|
|
29
31
|
// Gated on `.dims-others`, which the chart puts on the container from its `dimOthers` input. Off by
|
|
30
32
|
// default, because dimming is not free: measured 2026-09-13, OKLab dE x100, the worst pair of three
|
|
@@ -40,12 +42,8 @@
|
|
|
40
42
|
// it the two rules dim each other out: the hover rule takes down the pinned mark because the
|
|
41
43
|
// pointer has moved off it, the pin rule takes down the hovered mark because it is not the pinned
|
|
42
44
|
// one, and every mark on the chart ends up faded with nothing lit.
|
|
43
|
-
&.dims-others:not(:has(#{$mark}.is-pinned)):has(#{$mark}.
|
|
44
|
-
#{$mark}
|
|
45
|
-
&.dims-others:not(:has(#{$mark}.is-pinned)):has(
|
|
46
|
-
#{$mark}.interactive:focus-visible
|
|
47
|
-
)
|
|
48
|
-
#{$mark}.interactive:not(:focus-visible),
|
|
45
|
+
&.dims-others:not(:has(#{$mark}.is-pinned)):has(#{$mark}.is-active)
|
|
46
|
+
#{$mark}:not(.is-active),
|
|
49
47
|
// A pinned mark keeps the others down after the pointer has gone, which is the whole point of
|
|
50
48
|
// pinning: the reader looks away from the chart and the comparison is still on screen.
|
|
51
49
|
&.dims-others:has(#{$mark}.is-pinned) #{$mark}:not(.is-pinned) {
|
|
@@ -53,8 +51,44 @@
|
|
|
53
51
|
}
|
|
54
52
|
}
|
|
55
53
|
|
|
54
|
+
// `.interactive` is a mark a consumer made clickable, `.pins` one a click would hold. The pointer
|
|
55
|
+
// cursor promises a click, so it goes where one of the two is true and nowhere else.
|
|
56
56
|
@mixin clickable($mark) {
|
|
57
|
-
#{$mark}.interactive
|
|
57
|
+
#{$mark}.interactive,
|
|
58
|
+
#{$mark}.pins {
|
|
58
59
|
cursor: pointer;
|
|
59
60
|
}
|
|
60
61
|
}
|
|
62
|
+
|
|
63
|
+
// A legend entry's own hover state, shared by every chart legend. Keyboard focus inside the entry
|
|
64
|
+
// takes the same state. The padding is paid back as a negative margin, so the tint grows around the
|
|
65
|
+
// entry without moving a single legend row; the legend gaps are wider than the overhang.
|
|
66
|
+
//
|
|
67
|
+
// `$label` names the element to recolour when the label sets its own colour and would not inherit
|
|
68
|
+
// the entry's.
|
|
69
|
+
@mixin legend-entry($entry, $hover-bg-color, $hover-text-color, $label: null) {
|
|
70
|
+
#{$entry} {
|
|
71
|
+
margin: calc(-1 * var(--space-0-5)) calc(-1 * var(--space-1-5));
|
|
72
|
+
padding: var(--space-0-5) var(--space-1-5);
|
|
73
|
+
border-radius: var(--radius-sm);
|
|
74
|
+
transition:
|
|
75
|
+
background-color var(--ds-motion-chart-state-duration)
|
|
76
|
+
var(--ds-motion-chart-state-easing),
|
|
77
|
+
color var(--ds-motion-chart-state-duration)
|
|
78
|
+
var(--ds-motion-chart-state-easing);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#{$entry}:hover,
|
|
82
|
+
#{$entry}:focus-visible,
|
|
83
|
+
#{$entry}:has(:focus-visible) {
|
|
84
|
+
background-color: $hover-bg-color;
|
|
85
|
+
|
|
86
|
+
@if $label {
|
|
87
|
+
#{$label} {
|
|
88
|
+
color: $hover-text-color;
|
|
89
|
+
}
|
|
90
|
+
} @else {
|
|
91
|
+
color: $hover-text-color;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -14,23 +14,26 @@
|
|
|
14
14
|
// its function form: the component puts `.mark-leave` on the mark and Angular removes it on
|
|
15
15
|
// `animationend`, with no `getAnimations()` call.
|
|
16
16
|
//
|
|
17
|
-
// A mark ARRIVES BY GROWING FROM
|
|
18
|
-
// scale reads as the whole chart zooming, and it moves the
|
|
19
|
-
//
|
|
20
|
-
// a line
|
|
17
|
+
// A mark with a baseline ARRIVES BY GROWING FROM IT, never by scaling about its centre: a uniform
|
|
18
|
+
// scale reads as the whole chart zooming, and it moves the baseline, which is the one line on a
|
|
19
|
+
// chart that must not move. A mark with no baseline - a point, a cell, a ring - settles in from a
|
|
20
|
+
// scale close to one, and a line draws on along its own path.
|
|
21
21
|
//
|
|
22
|
-
//
|
|
22
|
+
// The phases are staged by delay, not by script: the marks arrive after the exit, and what follows a
|
|
23
|
+
// mark (its value label, a marker) waits `$after` on top of that.
|
|
24
|
+
//
|
|
25
|
+
// `prefers-reduced-motion` zeroes the durations in `_tokens.scss`. The delays are the one thing that
|
|
26
|
+
// stays, because a stagger is written per mark as a plain length, so `enters` zeroes them here: with
|
|
27
|
+
// a zero duration and `backwards` fill a delayed mark would stay invisible for its delay.
|
|
23
28
|
|
|
24
29
|
@keyframes ds-chart-mark-grow-y {
|
|
25
30
|
from {
|
|
26
|
-
opacity: 0;
|
|
27
31
|
transform: scaleY(0);
|
|
28
32
|
}
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
@keyframes ds-chart-mark-grow-x {
|
|
32
36
|
from {
|
|
33
|
-
opacity: 0;
|
|
34
37
|
transform: scaleX(0);
|
|
35
38
|
}
|
|
36
39
|
}
|
|
@@ -41,6 +44,36 @@
|
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
46
|
|
|
47
|
+
// `--_chart-rise-distance` is for a canvas whose viewBox stretches: there a pixel is a user unit,
|
|
48
|
+
// so a chart sets a percentage of the mark's own box on the canvas instead.
|
|
49
|
+
@keyframes ds-chart-mark-rise {
|
|
50
|
+
from {
|
|
51
|
+
opacity: 0;
|
|
52
|
+
transform: translateY(var(--_chart-rise-distance, 4px));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@keyframes ds-chart-mark-settle {
|
|
57
|
+
from {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
transform: scale(0.96);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@keyframes ds-chart-ring-sweep {
|
|
64
|
+
from {
|
|
65
|
+
opacity: 0;
|
|
66
|
+
transform: rotate(-30deg) scale(0.96);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Needs `pathLength="1"` and `stroke-dasharray: 1` on the path, so one unit is the whole line.
|
|
71
|
+
@keyframes ds-chart-line-draw {
|
|
72
|
+
from {
|
|
73
|
+
stroke-dashoffset: 1;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
44
77
|
@keyframes ds-chart-mark-exit {
|
|
45
78
|
to {
|
|
46
79
|
opacity: 0;
|
|
@@ -54,14 +87,23 @@
|
|
|
54
87
|
}
|
|
55
88
|
}
|
|
56
89
|
|
|
57
|
-
@mixin enters(
|
|
90
|
+
@mixin enters(
|
|
91
|
+
$selector,
|
|
92
|
+
$keyframes,
|
|
93
|
+
$duration: var(--ds-motion-chart-mark-enter-duration),
|
|
94
|
+
$easing: var(--ds-motion-chart-mark-enter-easing),
|
|
95
|
+
$after: 0ms
|
|
96
|
+
) {
|
|
58
97
|
#{$selector} {
|
|
59
|
-
animation: #{$keyframes}
|
|
60
|
-
var(--ds-motion-chart-mark-enter-easing)
|
|
98
|
+
animation: #{$keyframes} #{$duration} #{$easing}
|
|
61
99
|
calc(
|
|
62
|
-
var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)
|
|
100
|
+
var(--ds-motion-chart-mark-exit-duration) + #{$after} + var(--_chart-mark-stagger, 0ms)
|
|
63
101
|
)
|
|
64
102
|
backwards;
|
|
103
|
+
|
|
104
|
+
@media (prefers-reduced-motion: reduce) {
|
|
105
|
+
animation-delay: 0ms;
|
|
106
|
+
}
|
|
65
107
|
}
|
|
66
108
|
}
|
|
67
109
|
|
|
@@ -74,7 +116,12 @@
|
|
|
74
116
|
transform-origin: bottom;
|
|
75
117
|
}
|
|
76
118
|
|
|
77
|
-
@include enters(
|
|
119
|
+
@include enters(
|
|
120
|
+
'#{$fill}',
|
|
121
|
+
ds-chart-mark-grow-y,
|
|
122
|
+
var(--ds-motion-chart-mark-grow-duration),
|
|
123
|
+
var(--ds-motion-chart-mark-grow-easing)
|
|
124
|
+
);
|
|
78
125
|
@include leaves($mark);
|
|
79
126
|
}
|
|
80
127
|
|
|
@@ -84,12 +131,88 @@
|
|
|
84
131
|
transform-origin: left;
|
|
85
132
|
}
|
|
86
133
|
|
|
87
|
-
|
|
134
|
+
#{$mark} #{$fill}:dir(rtl) {
|
|
135
|
+
transform-origin: right;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@include enters(
|
|
139
|
+
'#{$fill}',
|
|
140
|
+
ds-chart-mark-grow-x,
|
|
141
|
+
var(--ds-motion-chart-mark-grow-duration),
|
|
142
|
+
var(--ds-motion-chart-mark-grow-easing)
|
|
143
|
+
);
|
|
88
144
|
@include leaves($mark);
|
|
89
145
|
}
|
|
90
146
|
|
|
91
|
-
/* A mark
|
|
92
|
-
@mixin fades-in($mark) {
|
|
93
|
-
@include enters(
|
|
147
|
+
/* A mark that only appears - an area under its line, a connector, a legend swatch. */
|
|
148
|
+
@mixin fades-in($mark, $after: 0ms, $duration: var(--ds-motion-chart-mark-enter-duration)) {
|
|
149
|
+
@include enters(
|
|
150
|
+
'#{$mark}',
|
|
151
|
+
ds-chart-mark-fade-in,
|
|
152
|
+
$duration,
|
|
153
|
+
var(--ds-motion-chart-mark-enter-easing),
|
|
154
|
+
$after
|
|
155
|
+
);
|
|
156
|
+
@include leaves($mark);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* A mark with no baseline that stands for one reading - a scatter point, a heat map cell - settles
|
|
160
|
+
in about its own centre. */
|
|
161
|
+
@mixin settles-in($mark, $after: 0ms) {
|
|
162
|
+
#{$mark} {
|
|
163
|
+
transform-box: fill-box;
|
|
164
|
+
transform-origin: center;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@include enters(
|
|
168
|
+
'#{$mark}',
|
|
169
|
+
ds-chart-mark-settle,
|
|
170
|
+
var(--ds-motion-chart-mark-enter-duration),
|
|
171
|
+
var(--ds-motion-chart-mark-enter-easing),
|
|
172
|
+
$after
|
|
173
|
+
);
|
|
94
174
|
@include leaves($mark);
|
|
95
175
|
}
|
|
176
|
+
|
|
177
|
+
/* A ring turns into place as one element, so its slices keep their angles relative to each other. */
|
|
178
|
+
@mixin sweeps-in($ring) {
|
|
179
|
+
#{$ring} {
|
|
180
|
+
transform-box: fill-box;
|
|
181
|
+
transform-origin: center;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@include enters(
|
|
185
|
+
'#{$ring}',
|
|
186
|
+
ds-chart-ring-sweep,
|
|
187
|
+
var(--ds-motion-chart-mark-sweep-duration),
|
|
188
|
+
var(--ds-motion-chart-mark-grow-easing)
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* A solid line draws on from its first reading. A dashed line fades instead: the draw animates the
|
|
193
|
+
same dash properties the dash pattern is made of. */
|
|
194
|
+
@mixin draws-on($path) {
|
|
195
|
+
#{$path} {
|
|
196
|
+
stroke-dasharray: 1;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@include enters(
|
|
200
|
+
'#{$path}',
|
|
201
|
+
ds-chart-line-draw,
|
|
202
|
+
var(--ds-motion-chart-mark-sweep-duration),
|
|
203
|
+
var(--ds-motion-chart-mark-enter-easing)
|
|
204
|
+
);
|
|
205
|
+
@include leaves($path);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* What belongs to a mark - its value label, a marker on a line - rises in once the mark has
|
|
209
|
+
arrived. `$after` is how long the mark takes. */
|
|
210
|
+
@mixin follows($detail, $after) {
|
|
211
|
+
@include enters(
|
|
212
|
+
'#{$detail}',
|
|
213
|
+
ds-chart-mark-rise,
|
|
214
|
+
var(--ds-motion-chart-mark-detail-duration),
|
|
215
|
+
var(--ds-motion-chart-mark-enter-easing),
|
|
216
|
+
$after
|
|
217
|
+
);
|
|
218
|
+
}
|
package/styles/_field-box.scss
CHANGED
|
@@ -16,3 +16,15 @@
|
|
|
16
16
|
|
|
17
17
|
#{$prop}: var(--_field-height);
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
// The box colours and type every text-entry field resolves its own token through, so one
|
|
21
|
+
// `--ds-field-*` set retunes input, textarea, select, multi-select, autocomplete and search.
|
|
22
|
+
// The date, time and colour pickers keep their own `-trigger-*` vocabulary and are not in it.
|
|
23
|
+
@mixin field-box-tokens {
|
|
24
|
+
--_field-border-color: var(--ds-field-border-color, var(--border-default));
|
|
25
|
+
--_field-border-color-hover: var(--ds-field-border-color-hover, var(--border-strong));
|
|
26
|
+
--_field-border-color-focus: var(--ds-field-border-color-focus, var(--accent));
|
|
27
|
+
--_field-text-color: var(--ds-field-text-color, var(--text-primary));
|
|
28
|
+
--_field-placeholder-color: var(--ds-field-placeholder-color, var(--text-tertiary));
|
|
29
|
+
--_field-font-size: var(--ds-field-font-size, var(--font-size-s));
|
|
30
|
+
}
|
|
@@ -11,9 +11,10 @@
|
|
|
11
11
|
// both follow it. The keyframe name never changes with placement, so a mid-scroll
|
|
12
12
|
// CDK flip redirects the motion instead of restarting it.
|
|
13
13
|
//
|
|
14
|
-
// Duration/easing stay longhands the library owns
|
|
15
|
-
// duration rather than dropping the
|
|
16
|
-
//
|
|
14
|
+
// Duration/easing stay longhands the library owns, so they outrank a consumer keyframe
|
|
15
|
+
// carrying its own timing. Reduced motion zeroes the duration rather than dropping the
|
|
16
|
+
// animation; at 0s `animationend` is not reliably delivered, and `disposeWithLeave`'s
|
|
17
|
+
// 400 ms timer is what tears the pane down - which is why `.ds-leaving` is inert.
|
|
17
18
|
|
|
18
19
|
.cdk-overlay-pane.ds-overlay-pane {
|
|
19
20
|
--_overlay-enter-keyframes: var(--ds-overlay-enter-keyframes, ds-scale-in);
|
|
@@ -46,6 +47,12 @@
|
|
|
46
47
|
--_overlay-enter-origin: center left;
|
|
47
48
|
}
|
|
48
49
|
|
|
50
|
+
// A chart tooltip reopens on every mark the pointer crosses, and a scale shifts its rows while it
|
|
51
|
+
// settles, so a hop reads as the swatch drifting into place. It fades instead.
|
|
52
|
+
&.ds-chart-tooltip-pane {
|
|
53
|
+
--_overlay-enter-keyframes: var(--ds-overlay-enter-keyframes, ds-fade-in);
|
|
54
|
+
}
|
|
55
|
+
|
|
49
56
|
@media (prefers-reduced-motion: reduce) {
|
|
50
57
|
--_overlay-enter-duration: 0ms;
|
|
51
58
|
}
|
|
@@ -63,7 +70,8 @@
|
|
|
63
70
|
lagging behind it, which is why the old unconditional leave was cut. Opacity
|
|
64
71
|
only, no travel: a dismissal has nowhere to travel to, and movement would
|
|
65
72
|
re-add exactly the lag this avoids. Reduced motion zeroes the duration at
|
|
66
|
-
`:root
|
|
73
|
+
`:root`; at 0s `animationend` is not reliably delivered, and `disposeWithLeave`'s
|
|
74
|
+
400 ms timer tears the pane down. */
|
|
67
75
|
&.ds-leaving {
|
|
68
76
|
/* A fading panel must not swallow the click aimed at what is behind it. */
|
|
69
77
|
pointer-events: none;
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
/* Stripes wide enough to survive a 24px-wide mark at a glance, and drawn in the surface colour
|
|
161
161
|
so they read as gaps cut out of the mark rather than a second hue competing with it. */
|
|
162
162
|
--chart-hatch-color: var(--surface-default);
|
|
163
|
-
--chart-hatch-width:
|
|
163
|
+
--chart-hatch-width: 1.5px;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
/* Public override layer.
|
package/styles/_tokens.scss
CHANGED
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
--duration-base: 180ms;
|
|
116
116
|
--duration-slow: 260ms;
|
|
117
117
|
--duration-slower: 400ms;
|
|
118
|
+
--duration-slowest: 600ms;
|
|
118
119
|
|
|
119
120
|
/* Loop durations sit outside the transition scale on purpose — they describe
|
|
120
121
|
rhythm, not response. */
|
|
@@ -126,12 +127,17 @@
|
|
|
126
127
|
- emphasized: overlay / modal / drawer entries and exits; overshoots
|
|
127
128
|
- decelerate: something appearing (toast, tooltip, popover open)
|
|
128
129
|
- accelerate: something leaving (toast dismiss, modal close)
|
|
129
|
-
- spring: overshoot for small celebratory feedback; sparingly
|
|
130
|
+
- spring: overshoot for small celebratory feedback; sparingly
|
|
131
|
+
- emphasized-decelerate: a large mark arriving, long and calm at the end
|
|
132
|
+
- settle: a mark growing into its value; a critically damped spring, so it never
|
|
133
|
+
overshoots and never shows a value the data does not hold */
|
|
130
134
|
--ease-standard: cubic-bezier(.2, 0, 0, 1);
|
|
131
135
|
--ease-emphasized: cubic-bezier(.3, 0, .1, 1.4);
|
|
132
136
|
--ease-decelerate: cubic-bezier(0, 0, 0, 1);
|
|
133
137
|
--ease-accelerate: cubic-bezier(.3, 0, 1, 1);
|
|
134
138
|
--ease-spring: cubic-bezier(.5, 1.5, .5, 1);
|
|
139
|
+
--ease-emphasized-decelerate: cubic-bezier(.05, .7, .1, 1);
|
|
140
|
+
--ease-settle: linear(0, 0.09 6.3%, 0.265 12.5%, 0.444 18.8%, 0.596 25%, 0.715 31.3%, 0.803 37.5%, 0.867 43.8%, 0.911 50%, 0.942 56.3%, 0.962 62.5%, 0.976 68.8%, 0.986 75%, 0.992 81.3%, 0.996 87.5%, 0.998 93.8%, 1);
|
|
135
141
|
|
|
136
142
|
/* Motion ROLES — name the intent once and every surface at that scale follows. `exit` and
|
|
137
143
|
`exit-large` stay separate because panel LEAVES run at --duration-base, not fast, and a few
|
|
@@ -163,9 +169,16 @@
|
|
|
163
169
|
--ds-motion-chart-mark-easing: var(--ease-decelerate);
|
|
164
170
|
|
|
165
171
|
/* A mark arriving and a mark leaving are separate roles because the enter waits out the exit:
|
|
166
|
-
the two durations are added, and one role could not carry both halves of that sum.
|
|
167
|
-
|
|
168
|
-
|
|
172
|
+
the two durations are added, and one role could not carry both halves of that sum. An arrival
|
|
173
|
+
is timed by what arrives: `enter` for a mark that fades or settles in place, `grow` for one that
|
|
174
|
+
grows out of its baseline and `sweep` for a ring or a line drawing on, `detail` for what
|
|
175
|
+
follows a mark (its value label, a marker). */
|
|
176
|
+
--ds-motion-chart-mark-enter-duration: var(--duration-slower);
|
|
177
|
+
--ds-motion-chart-mark-enter-easing: var(--ease-emphasized-decelerate);
|
|
178
|
+
--ds-motion-chart-mark-grow-duration: var(--duration-slowest);
|
|
179
|
+
--ds-motion-chart-mark-grow-easing: var(--ease-settle);
|
|
180
|
+
--ds-motion-chart-mark-sweep-duration: var(--duration-slowest);
|
|
181
|
+
--ds-motion-chart-mark-detail-duration: var(--duration-base);
|
|
169
182
|
--ds-motion-chart-mark-exit-duration: var(--duration-fast);
|
|
170
183
|
--ds-motion-chart-mark-exit-easing: var(--ease-accelerate);
|
|
171
184
|
|
|
@@ -495,6 +508,7 @@
|
|
|
495
508
|
--grid-cols-card-minh: 120px;
|
|
496
509
|
--grid-cols-card-thumb: 80px;
|
|
497
510
|
--dl-spec-label-w: 120px;
|
|
511
|
+
--dl-spec-value-min-w: 14rem;
|
|
498
512
|
--scroll-spec-h: 220px;
|
|
499
513
|
--tab-spec-maxw: 220px;
|
|
500
514
|
--tab-spec-dot-offset: var(--border-width-strong); /* negated at the use site */
|
|
@@ -507,6 +521,7 @@
|
|
|
507
521
|
--duration-base: 0ms;
|
|
508
522
|
--duration-slow: 0ms;
|
|
509
523
|
--duration-slower: 0ms;
|
|
524
|
+
--duration-slowest: 0ms;
|
|
510
525
|
|
|
511
526
|
/* Loops are slowed, never frozen: a stopped spinner reads as "hung", not
|
|
512
527
|
"loading". The one large motion that does halt is the page-wide skeleton
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
+
|
|
5
|
+
/** Which way the closed chevron points. `right` turns down when the item opens; `down` turns up. */
|
|
6
|
+
type AccordionChevron = 'right' | 'down';
|
|
3
7
|
|
|
4
8
|
/** Contract that ds-accordion-item reads from its parent ds-accordion. */
|
|
5
9
|
interface AccordionContract {
|
|
6
10
|
readonly multiple: () => boolean;
|
|
11
|
+
readonly chevron: () => AccordionChevron;
|
|
7
12
|
/** Called when an item opens; coordinator may close other items. */
|
|
8
13
|
notifyOpen(item: AccordionItemRef): void;
|
|
9
14
|
}
|
|
@@ -17,10 +22,12 @@ declare const ACCORDION: InjectionToken<AccordionContract>;
|
|
|
17
22
|
declare class AccordionComponent implements AccordionContract {
|
|
18
23
|
/** When false, opening one item automatically closes all others. */
|
|
19
24
|
readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
25
|
+
/** Which way the closed chevron points on every item: `right` turns down when an item opens, `down` turns up. */
|
|
26
|
+
readonly chevron: _angular_core.InputSignal<AccordionChevron>;
|
|
20
27
|
private readonly items;
|
|
21
28
|
notifyOpen(opened: AccordionItemRef): void;
|
|
22
29
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AccordionComponent, never>;
|
|
23
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AccordionComponent, "ds-accordion", never, { "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; }, {}, ["items"], ["*"], true, never>;
|
|
30
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AccordionComponent, "ds-accordion", never, { "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "chevron": { "alias": "chevron"; "required": false; "isSignal": true; }; }, {}, ["items"], ["*"], true, never>;
|
|
24
31
|
}
|
|
25
32
|
|
|
26
33
|
declare class AccordionItemComponent implements AccordionItemRef {
|
|
@@ -34,6 +41,8 @@ declare class AccordionItemComponent implements AccordionItemRef {
|
|
|
34
41
|
protected readonly headId: string;
|
|
35
42
|
protected readonly bodyId: string;
|
|
36
43
|
private readonly accordion;
|
|
44
|
+
protected readonly chevronDown: _angular_core.Signal<boolean>;
|
|
45
|
+
protected readonly chevronName: _angular_core.Signal<IconName>;
|
|
37
46
|
/** Tracks last expanded state so we only notify on a true open transition. */
|
|
38
47
|
private previousExpanded;
|
|
39
48
|
constructor();
|
|
@@ -45,4 +54,4 @@ declare class AccordionItemComponent implements AccordionItemRef {
|
|
|
45
54
|
}
|
|
46
55
|
|
|
47
56
|
export { ACCORDION, AccordionComponent, AccordionItemComponent };
|
|
48
|
-
export type { AccordionContract, AccordionItemRef };
|
|
57
|
+
export type { AccordionChevron, AccordionContract, AccordionItemRef };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
2
3
|
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
3
4
|
|
|
4
5
|
type AlertVariant = 'info' | 'success' | 'warning' | 'error' | 'neutral';
|
|
5
6
|
|
|
6
7
|
declare class AlertComponent {
|
|
8
|
+
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
7
9
|
/** Severity — drives colour, the default icon and the ARIA role/live. */
|
|
8
10
|
readonly variant: _angular_core.InputSignal<AlertVariant>;
|
|
9
11
|
/** Optional bold heading above the message. */
|
|
@@ -19,8 +21,10 @@ declare class AlertComponent {
|
|
|
19
21
|
* and prefer `ToastService` for anything transient. */
|
|
20
22
|
readonly announce: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
21
23
|
readonly announceResolved: _angular_core.Signal<boolean>;
|
|
24
|
+
private readonly liveRole;
|
|
22
25
|
protected get ariaRole(): 'alert' | 'status' | null;
|
|
23
26
|
protected get ariaLive(): 'assertive' | 'polite' | null;
|
|
27
|
+
constructor();
|
|
24
28
|
protected readonly classes: _angular_core.Signal<string>;
|
|
25
29
|
protected readonly defaultIcon: _angular_core.Signal<IconName>;
|
|
26
30
|
protected readonly resolvedIcon: _angular_core.Signal<IconName>;
|
|
@@ -131,8 +131,11 @@ declare class AppLayoutComponent {
|
|
|
131
131
|
* ignored. Two-way, so a burger in your topbar can drive it.
|
|
132
132
|
*/
|
|
133
133
|
readonly railOpen: _angular_core.ModelSignal<boolean>;
|
|
134
|
-
/** Accessible name for the rail while it is a modal overlay.
|
|
135
|
-
|
|
134
|
+
/** Accessible name for the rail while it is a modal overlay. Unset falls back to
|
|
135
|
+
* `DS_INTL.appLayout.railLabel`. */
|
|
136
|
+
readonly railLabel: _angular_core.InputSignal<string | null>;
|
|
137
|
+
private readonly intl;
|
|
138
|
+
protected readonly railLabelResolved: _angular_core.Signal<string>;
|
|
136
139
|
/**
|
|
137
140
|
* Remember the content scroll per path and restore it on the way BACK. Off by
|
|
138
141
|
* default: a layout that silently moved the scroll would surprise every existing
|
|
@@ -16,7 +16,7 @@ import { BrandNameDirective } from '@ids-group-ltd/ids-design-system/components/
|
|
|
16
16
|
* projects a two-tone wordmark (import `BrandNameDirective` alongside this
|
|
17
17
|
* component, or the attribute is inert and the wordmark lands in the card), and
|
|
18
18
|
* `[brand]` projects a real logo. The two are not pixel-identical: the rail's tile
|
|
19
|
-
* is a fixed 28px at weight 800, this one
|
|
19
|
+
* is a fixed 28px at weight 800, this one 28px at 700, and each has its own
|
|
20
20
|
* `--ds-*-mark-*` hooks, so retinting the mark means setting both.
|
|
21
21
|
*
|
|
22
22
|
* Projecting into `[brand]` does NOT suppress the tile — leave `brand`/`logoLetter`
|
|
@@ -57,10 +57,10 @@ declare class AuthLayoutComponent {
|
|
|
57
57
|
/** Card padding, passed through to `ds-card`. `md` tightens a short form. */
|
|
58
58
|
readonly cardPadding: _angular_core.InputSignal<CardPadding>;
|
|
59
59
|
/** Announce the card as the page's `main` landmark. `ds-card` renders an
|
|
60
|
-
* `<article>`, which is
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
60
|
+
* `<article>`, which is not a landmark, so this is what lets a screen-reader
|
|
61
|
+
* user jump to the form. Set `'none'` where the layout sits inside a page
|
|
62
|
+
* that already owns a `main`, such as `ds-app-layout`: two `main` landmarks
|
|
63
|
+
* is its own violation. */
|
|
64
64
|
readonly landmark: _angular_core.InputSignal<"none" | "main">;
|
|
65
65
|
protected readonly brandNameRef: _angular_core.Signal<BrandNameDirective | undefined>;
|
|
66
66
|
protected readonly hasBrandName: _angular_core.Signal<boolean>;
|
|
@@ -1,10 +1,10 @@
|
|
|
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
3
|
import { DsControlValueAccessor, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
|
|
4
|
-
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
5
|
-
import { DsOptionItem, DsOption, DsOptionGroup, DsControlWidth, DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
6
4
|
import * as _angular_core from '@angular/core';
|
|
7
5
|
import { OnDestroy, TemplateRef, ElementRef } from '@angular/core';
|
|
6
|
+
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
7
|
+
import { DsOptionItem, DsOption, DsOptionGroup, DsControlWidth, DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
8
8
|
import { describedByIds } from '@ids-group-ltd/ids-design-system/components/field-group';
|
|
9
9
|
|
|
10
10
|
/** `content` here also reserves a minimum typing area beside the chips. */
|
|
@@ -24,6 +24,7 @@ declare class AutocompleteComponent<T = unknown> extends DsControlValueAccessor<
|
|
|
24
24
|
private readonly overlay;
|
|
25
25
|
private readonly vcr;
|
|
26
26
|
private readonly host;
|
|
27
|
+
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
27
28
|
/** Public panel tokens forwarded onto the portaled overlay pane on open, so a consumer's
|
|
28
29
|
* `ds-autocomplete { --ds-autocomplete-panel-bg-color | -radius | -maxh: … }` reaches it.
|
|
29
30
|
* Not the whole set: `prepareOverlayEnter` also forwards `DROPDOWN_PANEL_TOKENS`
|
|
@@ -58,8 +59,10 @@ declare class AutocompleteComponent<T = unknown> extends DsControlValueAccessor<
|
|
|
58
59
|
* `ellipsis`; `wrap` lets the value break onto a second line and pushes the chevron
|
|
59
60
|
* down. Multi mode is unaffected — its chips have their own measured cap. */
|
|
60
61
|
readonly valueOverflow: _angular_core.InputSignal<AutocompleteValueOverflow>;
|
|
61
|
-
/** Placeholder shown in the input when empty.
|
|
62
|
-
|
|
62
|
+
/** Placeholder shown in the input when empty.
|
|
63
|
+
* Unset falls back to `DS_INTL.picker.placeholder`. */
|
|
64
|
+
readonly placeholder: _angular_core.InputSignal<string | null>;
|
|
65
|
+
readonly placeholderResolved: _angular_core.Signal<string>;
|
|
63
66
|
/** Disables the trigger and blocks all interaction. */
|
|
64
67
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
65
68
|
/** Confirmation text, shown when there is no error or warning — and it paints
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
2
3
|
|
|
3
4
|
declare class AvatarGroupComponent {
|
|
5
|
+
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
4
6
|
/** Maximum avatars shown before the rest collapse into an overflow chip. */
|
|
5
7
|
readonly max: _angular_core.InputSignal<number>;
|
|
6
8
|
/** Total avatar count driving the `+N` overflow; null counts the projected children. */
|