@ids-group-ltd/ids-design-system 0.12.0 → 0.12.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 +568 -52
- 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-app-layout.mjs +2 -2
- 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 +4 -4
- 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 +10 -13
- 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 +2 -2
- 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 +2 -2
- 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 +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-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 +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
- 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 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +13 -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 +2 -2
- 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 +2 -2
- 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-message.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +2 -2
- 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 +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +12 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +6 -6
- 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 -13
- 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 +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.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-password-rules.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +15 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +21 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -2
- 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 +10 -13
- 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 +2 -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 +15 -8
- 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 +2 -2
- 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 +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +15 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +428 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +186 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +227 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +304 -437
- 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 +2 -2
- 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 +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 +2 -2
- 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 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +9 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +27 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +12 -4
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -38
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +3 -0
- 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.10.2.json +1 -30
- package/migrations/0.11.1.json +0 -23
- package/migrations/0.11.3.json +1 -1
- package/migrations/0.11.4.json +27 -7
- package/migrations/0.12.0.json +30 -2
- package/migrations/0.12.1.json +341 -0
- package/migrations/0.12.2.json +291 -0
- package/migrations/0.5.0.json +0 -54
- package/migrations/0.5.1.json +3 -1
- package/migrations/0.7.0.json +0 -11
- package/migrations/0.9.0.json +22 -3
- package/migrations/0.9.1.json +1 -1
- package/package.json +25 -1
- package/styles/_check-box.scss +91 -0
- package/styles/_check-mark.scss +59 -0
- package/styles/_clear-button.scss +28 -0
- package/styles/_dropdown-overlay.scss +12 -2
- package/styles/_field-group-segment.scss +4 -1
- package/styles/_focus.scss +103 -50
- package/styles/_link.scss +4 -2
- package/styles/_table-controls.scss +66 -0
- package/styles/_tokens.scss +20 -0
- package/styles/_typography.scss +6 -0
- package/themes/_semantic.scss +7 -8
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +3 -0
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +8 -4
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +9 -2
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +3 -2
- package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +43 -0
- package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +48 -0
- package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +79 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +196 -155
- package/types/ids-group-ltd-ids-design-system-components.d.ts +26 -1
- package/types/ids-group-ltd-ids-design-system-core.d.ts +17 -4
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.12.1",
|
|
3
|
+
"items": [
|
|
4
|
+
{
|
|
5
|
+
"id": "split-button-empty-menu-items-disables-chevron",
|
|
6
|
+
"kind": "behavior",
|
|
7
|
+
"surface": "template",
|
|
8
|
+
"old": "ds-split-button[menuItems]",
|
|
9
|
+
"new": null,
|
|
10
|
+
"action": "On every `<ds-split-button>` whose `menuItems` can be empty, pass the items or replace the control with `<ds-button>`.",
|
|
11
|
+
"appliesWhen": "Only a `<ds-split-button>` that renders with `menuItems` empty — a list filled after the first render, a list built by a filter that can return nothing, or a split button used for one action. A split button whose items are always present behaves exactly as before.",
|
|
12
|
+
"pitfall": "Nothing errors and the main button keeps working, so this is only visible on the chevron: it is disabled while the list is empty. Items fetched after the first render therefore leave a disabled chevron for as long as the fetch takes, which reads as a broken control to anyone who does not know it is waiting. Render the split button once the items are in hand, or keep the interval deliberately.",
|
|
13
|
+
"note": "The chevron previously opened a `ds-menu` with nothing in it. It is now disabled while `menuItems` is empty and enables itself when items arrive — disabled rather than hidden, so the control keeps its geometry either way. A development build warns and names `ds-button` as the control for a single action. The panel can only ever be the `ds-menu` built from `menuItems`; anything else composes from `ds-button` and `ds-popover`.",
|
|
14
|
+
"verify": "A split button with an empty `menuItems` shows a disabled chevron and opens no panel, and one with items opens its menu as before.",
|
|
15
|
+
"searchHints": [
|
|
16
|
+
"ds-split-button",
|
|
17
|
+
"menuItems",
|
|
18
|
+
"SplitButtonItem",
|
|
19
|
+
"SplitButtonComponent"
|
|
20
|
+
],
|
|
21
|
+
"detect": [
|
|
22
|
+
"SplitButtonItem[]",
|
|
23
|
+
"menuItems =",
|
|
24
|
+
"menuItems:",
|
|
25
|
+
".filter(",
|
|
26
|
+
"signal<SplitButtonItem"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "control-focus-ring-is-an-outline",
|
|
31
|
+
"kind": "behavior",
|
|
32
|
+
"surface": "style",
|
|
33
|
+
"old": "--focus-ring-inner",
|
|
34
|
+
"new": null,
|
|
35
|
+
"action": "If you set `--focus-ring-inner` to a colour to get a visible ring back, remove that override — it no longer reaches a control's ring. To restyle the ring, set `--focus-ring-width`, `--focus-ring-color` or `--focus-ring-offset`. Wrap any `outline: none` you keep on a DS control in `@media not (forced-colors: active)`.",
|
|
36
|
+
"appliesWhen": "Every focusable control in the library — buttons, checkboxes, radios, switches, tabs, menu rows, list rows, segments, days, links. Fields keep their soft halo and are unaffected; `--focus-ring-inner` still composes the halo that `data-focus=\"ring\"` opts into.",
|
|
37
|
+
"pitfall": "An `outline: none` in your own stylesheet now removes a control's indicator outright, where before it removed nothing because the ring was a shadow. Any reset that zeroes outlines on DS controls leaves a keyboard user with no indicator, and nothing errors.",
|
|
38
|
+
"note": "Controls draw the ring with `outline` + `outline-offset` instead of a two-layer box-shadow. `outline-offset` leaves its gap UNPAINTED, so the gap shows whatever the control actually sits on; the shadow gap had to be filled with a guessed colour, which was a coloured rim wherever the guess was wrong. A negative offset draws the ring inside the element, so a clipping ancestor can no longer eat it. Components no longer touch `box-shadow` on focus, so a focused card keeps its elevation and a selected segment keeps its shadow.",
|
|
39
|
+
"verify": "Focus a button standing on a tinted band: the gap shows the band, not a surface-coloured rim. Focus a menu row: the ring is drawn inside the row and is not clipped.",
|
|
40
|
+
"restore": "--focus-ring-width: 0;",
|
|
41
|
+
"supersedes": [
|
|
42
|
+
"0.10.2#focus-ring-inner-transparent"
|
|
43
|
+
],
|
|
44
|
+
"searchHints": [
|
|
45
|
+
"--focus-ring-inner",
|
|
46
|
+
"--focus-ring-width",
|
|
47
|
+
"--focus-ring-offset",
|
|
48
|
+
"--focus-ring-color",
|
|
49
|
+
"outline-offset",
|
|
50
|
+
"outline: none",
|
|
51
|
+
"outline: 0",
|
|
52
|
+
"outline:none"
|
|
53
|
+
],
|
|
54
|
+
"detect": [
|
|
55
|
+
"outline: none",
|
|
56
|
+
"outline:none",
|
|
57
|
+
"outline: 0",
|
|
58
|
+
"outline:0",
|
|
59
|
+
":focus { outline",
|
|
60
|
+
":focus-visible { outline"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "per-component-focus-shadow-tokens-removed",
|
|
65
|
+
"kind": "removed-api",
|
|
66
|
+
"surface": "style",
|
|
67
|
+
"old": "--ds-button-focus-shadow",
|
|
68
|
+
"new": "--focus-ring-color",
|
|
69
|
+
"action": "Replace every `--ds-<component>-focus-shadow` override on a control with `--focus-ring-color`, `--focus-ring-width` or `--focus-ring-offset` on the same scope.",
|
|
70
|
+
"appliesWhen": "Only the thirteen control components that published one: button, icon-button, card, checkbox, radio, switch, tabs, toast, breadcrumbs, pagination, sidenav-item, sidenav-group, menu-item. Field tokens such as `--ds-input-focus-shadow` are unchanged. The umbrella `--ds-control-focus-shadow` is the same case and needs the same edit: it still resolves, and the date and time pickers still read it, but none of the thirteen does any more — an override that used to recolour every control is now a silent no-op on them.",
|
|
71
|
+
"pitfall": "An override of a removed token is a custom property like any other — it sets, it cascades, and it changes nothing. The control keeps the default ring and no build or console says why.",
|
|
72
|
+
"note": "Each of these resolved to `--ds-control-focus-shadow`, which controls no longer read. The three ring tokens replace them and cascade the same way, so a per-component override becomes a scoped one: set them on the component's own selector rather than at `:root`.",
|
|
73
|
+
"verify": "Focus the component you overrode: the ring shows your colour and thickness, not the default brand ring.",
|
|
74
|
+
"searchHints": [
|
|
75
|
+
"--ds-button-focus-shadow",
|
|
76
|
+
"--ds-tabs-focus-shadow",
|
|
77
|
+
"--ds-card-focus-shadow",
|
|
78
|
+
"--ds-control-focus-shadow",
|
|
79
|
+
"focus-shadow"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "data-focus-field-and-outline-removed",
|
|
84
|
+
"kind": "removed-api",
|
|
85
|
+
"surface": "template",
|
|
86
|
+
"old": "data-focus=\"field\"",
|
|
87
|
+
"new": "data-focus=\"edge\"",
|
|
88
|
+
"action": "Remove `data-focus=\"field\"` and `data-focus=\"outline\"` from `<html>`. For a tighter ring use `data-focus=\"edge\"`; for a thicker or recoloured one set `--focus-ring-width` and `--focus-ring-color`.",
|
|
89
|
+
"appliesWhen": "Only an app that sets one of those two values. `ring`, `edge` and `inset` are unchanged and keep their meaning.",
|
|
90
|
+
"pitfall": "An unknown `data-focus` value matches nothing and is silently ignored, so the app keeps the default indicator and looks merely un-themed rather than misconfigured.",
|
|
91
|
+
"note": "Both values described a swap of one box-shadow for another. `field` gave controls the halo and `outline` blanked both roles so a single global rule could draw an outline — neither survives now that controls draw their own outline and never a shadow. The ring tokens express what those modes were reaching for, per scope rather than only at the root.",
|
|
92
|
+
"verify": "Focus a button with the attribute removed: the ring is the default brand outline held off the control.",
|
|
93
|
+
"searchHints": [
|
|
94
|
+
"data-focus",
|
|
95
|
+
"data-focus=\"field\"",
|
|
96
|
+
"data-focus=\"outline\""
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"id": "subclass-members-grew",
|
|
101
|
+
"kind": "behavior",
|
|
102
|
+
"surface": "typescript",
|
|
103
|
+
"old": "class MyThing extends MenuComponent | RadioComponent | TableComponent",
|
|
104
|
+
"new": null,
|
|
105
|
+
"action": "Build after upgrading, then rename or mark `override` any member the compiler reports as colliding.",
|
|
106
|
+
"appliesWhen": "Only a class that extends MenuComponent, RadioComponent or TableComponent. Template users need nothing; `deselectable` is a new input and nothing existing changed name or type.",
|
|
107
|
+
"pitfall": "Three of the four new members are not public API, which is no protection: a redeclared private or protected member fails with TS2415 exactly as a public collision does. And an `override anyIcon`, `override onClick` or `override anySelected` written before this release compiles clean while overriding nothing.",
|
|
108
|
+
"note": "MenuComponent gained `anyIcon`, a computed over its content children that decides whether every row reserves the icon slot. RadioComponent gained `deselectable` (a new input) and `onClick`. TableComponent gained `anySelected` plus the anchors and the seam the opt-in features write into, and LOST the whole data-grid half: `columnOrder`, `hiddenKeys`, `columnWidths`, `reorderableColumns`, `resizableColumns`, `exportButton` and their handlers moved to `dsTableColumns`, `dsTableResize` and `dsTableExport`. A subclass that overrode one of those now overrides nothing, which the compiler does NOT report — the member is simply gone and the override runs never. The three directives and the panel components they create are new classes, listed so a name collision in a subclass of one is greppable from the first release that has them.",
|
|
109
|
+
"verify": "The app builds with no TS4114 / TS2415 / TS2416 naming MenuComponent, RadioComponent or TableComponent, and no override of anyIcon, deselectable, onClick or anySelected remains in your source.",
|
|
110
|
+
"searchHints": [
|
|
111
|
+
"extends MenuComponent",
|
|
112
|
+
"extends RadioComponent",
|
|
113
|
+
"extends TableComponent",
|
|
114
|
+
"anyIcon",
|
|
115
|
+
"deselectable",
|
|
116
|
+
"onClick",
|
|
117
|
+
"anySelected",
|
|
118
|
+
"TS2415",
|
|
119
|
+
"TS4114"
|
|
120
|
+
],
|
|
121
|
+
"detect": [
|
|
122
|
+
"extends MenuComponent",
|
|
123
|
+
"extends RadioComponent",
|
|
124
|
+
"extends TableComponent",
|
|
125
|
+
"override anyIcon",
|
|
126
|
+
"override onClick",
|
|
127
|
+
"override deselectable",
|
|
128
|
+
"override anySelected",
|
|
129
|
+
"extends DsTableColumns",
|
|
130
|
+
"extends DsTableExport",
|
|
131
|
+
"extends DsTableResize",
|
|
132
|
+
"extends DsTableLayout",
|
|
133
|
+
"extends TableColumnsPanelComponent",
|
|
134
|
+
"extends TableColumnsTriggerComponent",
|
|
135
|
+
"extends TableExportButtonComponent",
|
|
136
|
+
"override columnOrder",
|
|
137
|
+
"override columnWidths",
|
|
138
|
+
"override hiddenKeys",
|
|
139
|
+
"override resizableColumns",
|
|
140
|
+
"override reorderableColumns",
|
|
141
|
+
"override exportButton"
|
|
142
|
+
],
|
|
143
|
+
"restore": null
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": "selection-controls-ring-the-row",
|
|
147
|
+
"kind": "behavior",
|
|
148
|
+
"surface": "style",
|
|
149
|
+
"old": "--ds-checkbox-focus-shadow",
|
|
150
|
+
"new": null,
|
|
151
|
+
"action": "If you positioned anything against a checkbox, radio or switch focus ring, re-measure it against the row rather than the glyph.",
|
|
152
|
+
"appliesWhen": "Only `ds-checkbox`, `ds-radio` and `ds-switch`. `ds-table`'s cell checkbox is unchanged — it has no label row, so it keeps ringing its own box.",
|
|
153
|
+
"pitfall": "Nothing errors and the control still rings, so this shows up only as a ring that is wider than it was and starts at the label's far edge. A layout that reserved space for a 24px ring around a 20px glyph now has a ring as wide as the label.",
|
|
154
|
+
"note": "Ringing the glyph drew a brand ring concentric with the brand ring the checked state already paints, which reads as a target rather than as two states a keyboard user must tell apart while moving through a group. The row is what the pointer already hits, because the label carries the hit area. A control with no label collapses back onto the glyph, and there the ring stands further off instead.",
|
|
155
|
+
"verify": "Tab to a checked radio: the ring surrounds glyph and label together, and is not concentric with the dot.",
|
|
156
|
+
"searchHints": [
|
|
157
|
+
"ds-checkbox",
|
|
158
|
+
"ds-radio",
|
|
159
|
+
"ds-switch",
|
|
160
|
+
"control-line",
|
|
161
|
+
"--focus-ring-offset"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"id": "table-export-behind-directive",
|
|
166
|
+
"kind": "input-rename",
|
|
167
|
+
"old": "ds-table[exportButton]",
|
|
168
|
+
"new": "dsTableExport",
|
|
169
|
+
"action": "Import DsTableExport from '@ids-group-ltd/ids-design-system/table-export', add it to the component's imports, and replace [exportButton]=\"true\" on the element with the dsTableExport attribute. Move exportFilename, exportFetcher and (exportFailed) bindings across unchanged — they are the directive's inputs now and still sit on the same element.",
|
|
170
|
+
"appliesWhen": "A <ds-table> that renders the built-in CSV button, binds any export input, or calls table.runExport() / table.exportCsv() from a button of its own — the methods stay on the component, but they carry out an export only while the directive is on that table. To keep a button of your own and hide the built-in one, put dsTableExport on the element and bind [dsTableExport]=\"false\". NOT affected: a table with no export of any kind.",
|
|
171
|
+
"pitfall": "Forgetting the import is a build error, not a silent loss: exportFilename, exportFetcher and exportFailed left the component with the button, so a template that still binds them fails with NG8002 \"Can't bind to 'exportFetcher' since it isn't a known property of 'ds-table'\". The silent case is the other one — a table that renders no export binding at all and drives the feature from a button of its own through runExport() or exportCsv(): those still compile, and with no directive present they do nothing but log a development-mode warning.",
|
|
172
|
+
"surface": "template",
|
|
173
|
+
"searchHints": [
|
|
174
|
+
"exportButton",
|
|
175
|
+
"exportFetcher",
|
|
176
|
+
"exportFilename",
|
|
177
|
+
"exportFailed"
|
|
178
|
+
],
|
|
179
|
+
"detect": [
|
|
180
|
+
".runExport(",
|
|
181
|
+
".exportCsv(",
|
|
182
|
+
".exporting()",
|
|
183
|
+
"viewChild(TableComponent",
|
|
184
|
+
"ViewChild(TableComponent"
|
|
185
|
+
],
|
|
186
|
+
"verify": "Every table that used to show the CSV button carries the dsTableExport attribute AND the component declaring it imports DsTableExport.",
|
|
187
|
+
"note": "The button was the only rendered part of the feature, so it is the one thing a reader loses if the directive is forgotten. The export code left the component because a static reference is what a bundler cannot remove — a runtime flag would have shipped it to every table regardless."
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"id": "table-columns-behind-directive",
|
|
191
|
+
"kind": "code-add",
|
|
192
|
+
"old": "ds-table[reorderableColumns]",
|
|
193
|
+
"new": "dsTableColumns",
|
|
194
|
+
"action": "Import DsTableColumns from '@ids-group-ltd/ids-design-system/table-columns', add it to the component's imports, and put the dsTableColumns attribute on any <ds-table> that reorders columns or offers the column picker. Leave [reorderableColumns], [(hiddenKeys)] and [(columnOrder)] where they are — they are the directive's inputs now and stay on the same element.",
|
|
195
|
+
"appliesWhen": "A <ds-table> binding reorderableColumns, hiddenKeys or columnOrder, or relying on a column's hideable flag to offer the picker. NOT affected: a table with fixed columns.",
|
|
196
|
+
"pitfall": "Hiding needs no input at all — a column marked hideable used to grow a picker on its own. Without the directive that picker never appears, and nothing in the markup says so.",
|
|
197
|
+
"surface": "template",
|
|
198
|
+
"searchHints": [
|
|
199
|
+
"reorderableColumns",
|
|
200
|
+
"hiddenKeys",
|
|
201
|
+
"columnOrder",
|
|
202
|
+
"hideable"
|
|
203
|
+
],
|
|
204
|
+
"detect": [
|
|
205
|
+
"hideable: true",
|
|
206
|
+
"hidden: true",
|
|
207
|
+
"TableColumn",
|
|
208
|
+
"hiddenKeys",
|
|
209
|
+
"columnOrder",
|
|
210
|
+
"viewChild(TableComponent",
|
|
211
|
+
"ViewChild(TableComponent"
|
|
212
|
+
],
|
|
213
|
+
"verify": "Every table whose columns can be reordered, hidden or shown carries dsTableColumns, and the picker opens from the header.",
|
|
214
|
+
"note": "This is the feature that earned the split: it takes @angular/cdk/drag-drop with it, which is most of the 19 KB a table no longer costs."
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "table-column-hidden-flag-needs-the-directive",
|
|
218
|
+
"kind": "behavior",
|
|
219
|
+
"surface": "typescript",
|
|
220
|
+
"old": "hidden: true",
|
|
221
|
+
"new": null,
|
|
222
|
+
"action": "Put dsTableColumns on every table whose column definitions carry hidden or hideable, or drop those columns from the array.",
|
|
223
|
+
"appliesWhen": "A column array where any entry sets hidden or hideable — wherever that array lives, including a service, a constant or a computed. The flags keep their names and their types; nothing in the template says which tables have them.",
|
|
224
|
+
"pitfall": "Nothing errors and nothing is logged. A column marked hidden simply renders, so a table that was hiding a cost or an internal identifier now shows it to every reader, and the reviewer sees a table that looks complete rather than one that leaked a column. The column COUNT moves with it, in both directions: a table with hideable columns and no rowActions loses the trailing utility cell that carried the picker button, and a reorder-only table that takes the directive gains one. A positional selector, a colspan or a DOM assertion counting cells lands one off either way, and still passes its own type check.",
|
|
225
|
+
"note": "Both flags are read by the directive now, so the component alone honours neither: hidden is an initial state the picker owns, and the picker is the directive's. This is the one part of the split that a template search cannot find, because the flags are written in TypeScript and the element carries no binding for them.",
|
|
226
|
+
"verify": "Every table whose columns declare hidden or hideable carries dsTableColumns, and a column marked hidden is absent from the rendered header.",
|
|
227
|
+
"searchHints": [
|
|
228
|
+
"hidden",
|
|
229
|
+
"hideable",
|
|
230
|
+
"TableColumn",
|
|
231
|
+
"columns"
|
|
232
|
+
],
|
|
233
|
+
"detect": [
|
|
234
|
+
"hidden: true",
|
|
235
|
+
"hideable: true",
|
|
236
|
+
"TableColumn<",
|
|
237
|
+
"TableColumn[]",
|
|
238
|
+
": TableColumn"
|
|
239
|
+
],
|
|
240
|
+
"restore": null
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"id": "table-persisted-layout-holds-only-what-the-directives-own",
|
|
244
|
+
"kind": "behavior",
|
|
245
|
+
"surface": "template",
|
|
246
|
+
"old": "ds-table[persistLayout]",
|
|
247
|
+
"new": null,
|
|
248
|
+
"action": "On a table with persistLayout, carry every directive whose part of the layout you want kept — dsTableColumns for order and hidden columns, dsTableResize for widths.",
|
|
249
|
+
"appliesWhen": "Only a table binding persistLayout, and only where it carried more than one part of the layout before. persistLayout and storageKey keep their names and stay on the element, and the stored shape is unchanged, so a layout written by an earlier version still restores.",
|
|
250
|
+
"pitfall": "The loss is one-way and arrives on the first save, not on the upgrade: the table restores the full stored layout, then writes back only the parts a directive registered, so a table carrying dsTableResize alone replaces a stored { order, widths, hidden } with widths alone. The reader sees their column order come back once and never again, and nothing was logged.",
|
|
251
|
+
"note": "Each directive registers the slice it owns, and the save writes the registered slices as the whole entry rather than merging into what is there. That is what makes the parts independent, and it is why a table that persists a layout needs the directives for every part of it.",
|
|
252
|
+
"verify": "Reorder and resize a persisted table, reload twice, and both the order and the widths come back the second time.",
|
|
253
|
+
"searchHints": [
|
|
254
|
+
"persistLayout",
|
|
255
|
+
"storageKey",
|
|
256
|
+
"ds-table:"
|
|
257
|
+
],
|
|
258
|
+
"detect": [
|
|
259
|
+
"persistLayout",
|
|
260
|
+
"storageKey",
|
|
261
|
+
"localStorage.getItem('ds-table:",
|
|
262
|
+
"localStorage.setItem('ds-table:"
|
|
263
|
+
],
|
|
264
|
+
"restore": null
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"id": "table-resize-behind-directive",
|
|
268
|
+
"kind": "code-add",
|
|
269
|
+
"old": "ds-table[resizableColumns]",
|
|
270
|
+
"new": "dsTableResize",
|
|
271
|
+
"action": "Import DsTableResize from '@ids-group-ltd/ids-design-system/table-resize', add it to the component's imports, and replace [resizableColumns]=\"true\" with the bare dsTableResize attribute. Delete any [(columnWidths)], [columnWidths] or (columnWidthsChange) binding: the directive declares no inputs and no outputs, so none of them compiles. Seed a width through the column's own width instead, and read the live ones through a viewChild(DsTableResize) where you need them.",
|
|
272
|
+
"appliesWhen": "A <ds-table> with resizable columns, or one that reads or seeds columnWidths. NOT affected: a table whose widths come only from column.width.",
|
|
273
|
+
"pitfall": "Without the directive the header renders no resize handle and the width buttons vanish from the column panel, while column.width keeps working — so the table looks right and is simply not resizable.",
|
|
274
|
+
"surface": "template",
|
|
275
|
+
"searchHints": [
|
|
276
|
+
"resizableColumns",
|
|
277
|
+
"columnWidths"
|
|
278
|
+
],
|
|
279
|
+
"detect": [
|
|
280
|
+
"columnWidths",
|
|
281
|
+
"columnWidthsChange",
|
|
282
|
+
"viewChild(DsTableResize",
|
|
283
|
+
"viewChild(TableComponent",
|
|
284
|
+
"ViewChild(TableComponent"
|
|
285
|
+
],
|
|
286
|
+
"verify": "Every table that could be resized carries dsTableResize, and its header separators are focusable.",
|
|
287
|
+
"note": "Truncation stayed on the component: it measures the DOM rather than the dragged width, so it never depended on resizing."
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
"deleteList": [
|
|
291
|
+
{
|
|
292
|
+
"id": "menu-icon-indent-compensation",
|
|
293
|
+
"surface": "style",
|
|
294
|
+
"find": [
|
|
295
|
+
"::ng-deep ds-menu-item",
|
|
296
|
+
"ds-menu-item { padding-left",
|
|
297
|
+
"ds-menu-item { margin-left"
|
|
298
|
+
],
|
|
299
|
+
"why": "The menu reserves the icon slot on every row as soon as one item in it carries an icon, so rows without one already line up.",
|
|
300
|
+
"replaceWith": "nothing"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"id": "split-button-press-styling",
|
|
304
|
+
"surface": "style",
|
|
305
|
+
"find": [
|
|
306
|
+
"::ng-deep ds-split-button",
|
|
307
|
+
"ds-split-button:active"
|
|
308
|
+
],
|
|
309
|
+
"why": "Both halves darken and scale on press on their own, and the scale runs away from the seam — a hand-rolled centred scale opens a hairline gap in the joint that the built-in one avoids.",
|
|
310
|
+
"replaceWith": "--ds-split-button-bg-color-active, --ds-split-button-press-scale"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"id": "hand-added-focus-indicators",
|
|
314
|
+
"surface": "style",
|
|
315
|
+
"find": [
|
|
316
|
+
"::ng-deep .search",
|
|
317
|
+
"::ng-deep .cell-editor",
|
|
318
|
+
"::ng-deep .col-filter"
|
|
319
|
+
],
|
|
320
|
+
"why": "A picker's search box, a column filter, a cell editor and a clipped icon button each draw the control ring themselves now, and the ring is an outline drawn inside the element, so a clipping ancestor no longer eats it.",
|
|
321
|
+
"replaceWith": "nothing"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"informational": [
|
|
325
|
+
"The focus ring now eases its colour in over `--duration-fast`, as a CSS animation rather than a transition so a component's own transition list is untouched. Geometry does not animate, so nothing moves and no layout shifts. `--duration-fast` is already 0ms under `prefers-reduced-motion: reduce`, so there is nothing to opt out of.",
|
|
326
|
+
"`ds-multi-select`'s panel search field had no focus indicator — it zeroed its own outline and nothing above it painted one. The row around it rings now, drawn inward because the panel clips. Nothing to change on your side.",
|
|
327
|
+
"Three fields whose only focus indicator was a 1px border tint now draw the standard ring: `ds-sidenav-footer`'s search box, and `ds-table`'s column filter and inline cell editor. Nothing to change on your side.",
|
|
328
|
+
"A ds-date-picker day outside the allowed range no longer highlights under the pointer. The day button is only aria-disabled and never natively disabled, so its hover rule matched a date that could not be picked; hover skips a disabled day now, and the colour and cursor it already carried are unchanged. NO ACTION.",
|
|
329
|
+
"Every hand-written `outline: none` in the library is now `focus.own-indicator`, which skips the suppression under forced colours. Silencing a DS control in your own stylesheet should be wrapped the same way: `@media not (forced-colors: active)`.",
|
|
330
|
+
"A ds-table selection column draws the design system checkbox instead of the browser default, and answers the same hooks as ds-checkbox: --ds-checkbox-bg-color, --ds-checkbox-border-color, --ds-checkbox-hover-border-color, --ds-checkbox-selected-bg-color, --ds-checkbox-selected-border-color and --ds-checkbox-radius reach a table where they previously did nothing. Setting one to restyle your checkboxes now also restyles table row selection, which is the intent. The element is still an input[type=\"checkbox\"], so a selector of your own aimed at it still matches; it now competes with the library rule rather than styling something nothing else touched, and the box sets appearance: none. NO ACTION unless that override is what you were relying on.",
|
|
331
|
+
"Text under .t-mono no longer ligates: the face draws === as one triple-bar glyph and != as a struck equals, so prose naming an operator showed something other than the characters it discussed. Set --ds-t-mono-ligatures to normal to get them back. The change is visual and applies wherever .t-mono is used; nothing about the class, the font size or the weight moved. NO ACTION.",
|
|
332
|
+
"A ds-menu reserves an icon slot on every row as soon as one item projects an icon, so a mixed menu has one text axis instead of two. --ds-menu-item-icon-size is new and sets the width that slot reserves. A menu whose items project no icon anywhere is unchanged and stays flush to its padding. NO ACTION unless you had compensated for the ragged indent yourself.",
|
|
333
|
+
"A ds-split-button darkens and scales each half under a press, like every other button in the library. --ds-split-button-bg-color-active, --ds-split-button-outline-bg-color-active and --ds-split-button-press-scale are new and set what a press does; --ds-split-button-pressed-shadow is an opt-in pressed halo, default none. The scale runs away from the seam, so the two halves do not part under the finger. NO ACTION.",
|
|
334
|
+
"`ds-table`'s bulk-action bar was hidden when every row was selected — it read the header checkbox's indeterminate predicate rather than \"is anything selected\". It shows for any non-empty selection now. Nothing to change on your side.",
|
|
335
|
+
"A focused first or last `ds-accordion-item` header takes the accordion's own corner radius, so its focus ring is no longer square inside the rounded box.",
|
|
336
|
+
"The `ds-skeleton` shimmer is one viewport-wide wave again: every skeleton shows the slice passing over its own position, anchored with `background-attachment: fixed` instead of the inherited custom property that used to be animated on `:root` and invalidated the whole document each frame. `--ds-skeleton-shimmer-color` and the reduced-motion opt-out are unchanged. Inside a transformed or filtered ancestor the anchor becomes that ancestor, and those skeletons share a wave with each other rather than with the page.",
|
|
337
|
+
"`focus.owns-the-focus-ring($control)` still does its job and needs no edit. It silenced a shadow before and silences an outline now, and it is the shape the ring change asks for: it wraps `outline: none` in `@media not (forced-colors: active)`, so a shell that rings on its control's behalf keeps an indicator in forced colours. If you silence a DS control by hand anywhere else, this mixin is what to use instead.",
|
|
338
|
+
"persistLayout and storageKey stay on ds-table. The stored JSON keeps its { order, widths, hidden } shape, so a layout saved by an earlier version still restores; what a table then writes back is covered by table-persisted-layout-holds-only-what-the-directives-own.",
|
|
339
|
+
"table.runExport(), table.exporting() and table.exportCsv() stay on the component and keep their signatures — they delegate to whichever export directive is present, so a button of your own in [toolbar] or a page header still drives the export. Called with no directive present they log a dev-mode warning instead of doing nothing quietly."
|
|
340
|
+
]
|
|
341
|
+
}
|