@ids-group-ltd/ids-design-system 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +322 -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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.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 +2 -2
- 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 +6 -6
- 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 +440 -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 +223 -432
- 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 +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-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-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.1.json +215 -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 +84 -0
- package/styles/_check-mark.scss +59 -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/_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-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-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 +179 -155
- package/types/ids-group-ltd-ids-design-system-core.d.ts +12 -4
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -0
|
@@ -0,0 +1,215 @@
|
|
|
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
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "control-focus-ring-is-an-outline",
|
|
24
|
+
"kind": "behavior",
|
|
25
|
+
"surface": "style",
|
|
26
|
+
"old": "--focus-ring-inner",
|
|
27
|
+
"new": null,
|
|
28
|
+
"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`.",
|
|
29
|
+
"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.",
|
|
30
|
+
"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.",
|
|
31
|
+
"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.",
|
|
32
|
+
"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.",
|
|
33
|
+
"restore": "--focus-ring-width: 0;",
|
|
34
|
+
"supersedes": [
|
|
35
|
+
"0.10.2#focus-ring-inner-transparent"
|
|
36
|
+
],
|
|
37
|
+
"searchHints": [
|
|
38
|
+
"--focus-ring-inner",
|
|
39
|
+
"--focus-ring-width",
|
|
40
|
+
"--focus-ring-offset",
|
|
41
|
+
"--focus-ring-color",
|
|
42
|
+
"outline-offset"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "per-component-focus-shadow-tokens-removed",
|
|
47
|
+
"kind": "removed-api",
|
|
48
|
+
"surface": "style",
|
|
49
|
+
"old": "--ds-button-focus-shadow",
|
|
50
|
+
"new": "--focus-ring-color",
|
|
51
|
+
"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.",
|
|
52
|
+
"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.",
|
|
53
|
+
"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.",
|
|
54
|
+
"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`.",
|
|
55
|
+
"verify": "Focus the component you overrode: the ring shows your colour and thickness, not the default brand ring.",
|
|
56
|
+
"searchHints": [
|
|
57
|
+
"--ds-button-focus-shadow",
|
|
58
|
+
"--ds-tabs-focus-shadow",
|
|
59
|
+
"--ds-card-focus-shadow",
|
|
60
|
+
"focus-shadow"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "data-focus-field-and-outline-removed",
|
|
65
|
+
"kind": "removed-api",
|
|
66
|
+
"surface": "template",
|
|
67
|
+
"old": "data-focus=\"field\"",
|
|
68
|
+
"new": "data-focus=\"edge\"",
|
|
69
|
+
"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`.",
|
|
70
|
+
"appliesWhen": "Only an app that sets one of those two values. `ring`, `edge` and `inset` are unchanged and keep their meaning.",
|
|
71
|
+
"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.",
|
|
72
|
+
"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.",
|
|
73
|
+
"verify": "Focus a button with the attribute removed: the ring is the default brand outline held off the control.",
|
|
74
|
+
"searchHints": [
|
|
75
|
+
"data-focus",
|
|
76
|
+
"data-focus=\"field\"",
|
|
77
|
+
"data-focus=\"outline\""
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": "subclass-members-grew",
|
|
82
|
+
"kind": "behavior",
|
|
83
|
+
"surface": "typescript",
|
|
84
|
+
"old": "class MyThing extends MenuComponent | RadioComponent | TableComponent",
|
|
85
|
+
"new": null,
|
|
86
|
+
"action": "Build after upgrading, then rename or mark `override` any member the compiler reports as colliding.",
|
|
87
|
+
"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.",
|
|
88
|
+
"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.",
|
|
89
|
+
"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.",
|
|
90
|
+
"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.",
|
|
91
|
+
"searchHints": [
|
|
92
|
+
"extends MenuComponent",
|
|
93
|
+
"extends RadioComponent",
|
|
94
|
+
"extends TableComponent",
|
|
95
|
+
"anyIcon",
|
|
96
|
+
"deselectable",
|
|
97
|
+
"onClick",
|
|
98
|
+
"anySelected",
|
|
99
|
+
"TS2415",
|
|
100
|
+
"TS4114"
|
|
101
|
+
],
|
|
102
|
+
"detect": [
|
|
103
|
+
"extends MenuComponent",
|
|
104
|
+
"extends RadioComponent",
|
|
105
|
+
"extends TableComponent",
|
|
106
|
+
"override anyIcon",
|
|
107
|
+
"override onClick",
|
|
108
|
+
"override deselectable",
|
|
109
|
+
"override anySelected",
|
|
110
|
+
"extends DsTableColumns",
|
|
111
|
+
"extends DsTableExport",
|
|
112
|
+
"extends DsTableResize",
|
|
113
|
+
"extends DsTableLayout",
|
|
114
|
+
"extends TableColumnsPanelComponent",
|
|
115
|
+
"extends TableColumnsTriggerComponent",
|
|
116
|
+
"extends TableExportButtonComponent",
|
|
117
|
+
"override columnOrder",
|
|
118
|
+
"override columnWidths",
|
|
119
|
+
"override hiddenKeys",
|
|
120
|
+
"override resizableColumns",
|
|
121
|
+
"override reorderableColumns",
|
|
122
|
+
"override exportButton"
|
|
123
|
+
],
|
|
124
|
+
"restore": null
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "selection-controls-ring-the-row",
|
|
128
|
+
"kind": "behavior",
|
|
129
|
+
"surface": "style",
|
|
130
|
+
"old": "--ds-checkbox-focus-shadow",
|
|
131
|
+
"new": null,
|
|
132
|
+
"action": "If you positioned anything against a checkbox, radio or switch focus ring, re-measure it against the row rather than the glyph.",
|
|
133
|
+
"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.",
|
|
134
|
+
"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.",
|
|
135
|
+
"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.",
|
|
136
|
+
"verify": "Tab to a checked radio: the ring surrounds glyph and label together, and is not concentric with the dot.",
|
|
137
|
+
"searchHints": [
|
|
138
|
+
"ds-checkbox",
|
|
139
|
+
"ds-radio",
|
|
140
|
+
"ds-switch",
|
|
141
|
+
"control-line",
|
|
142
|
+
"--focus-ring-offset"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": "table-export-behind-directive",
|
|
147
|
+
"kind": "input-rename",
|
|
148
|
+
"old": "ds-table[exportButton]",
|
|
149
|
+
"new": "dsTableExport",
|
|
150
|
+
"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.",
|
|
151
|
+
"appliesWhen": "A <ds-table> that renders the built-in CSV button or binds any export input. NOT affected: a table that only calls table.runExport() from a button of its own — those methods stay on the component and keep working.",
|
|
152
|
+
"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.",
|
|
153
|
+
"surface": "template",
|
|
154
|
+
"searchHints": [
|
|
155
|
+
"exportButton",
|
|
156
|
+
"exportFetcher",
|
|
157
|
+
"exportFilename",
|
|
158
|
+
"exportFailed"
|
|
159
|
+
],
|
|
160
|
+
"verify": "Every table that used to show the CSV button carries the dsTableExport attribute AND the component declaring it imports DsTableExport.",
|
|
161
|
+
"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."
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": "table-columns-behind-directive",
|
|
165
|
+
"kind": "code-add",
|
|
166
|
+
"old": "ds-table[reorderableColumns]",
|
|
167
|
+
"new": "dsTableColumns",
|
|
168
|
+
"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.",
|
|
169
|
+
"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.",
|
|
170
|
+
"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.",
|
|
171
|
+
"surface": "template",
|
|
172
|
+
"searchHints": [
|
|
173
|
+
"reorderableColumns",
|
|
174
|
+
"hiddenKeys",
|
|
175
|
+
"columnOrder",
|
|
176
|
+
"hideable"
|
|
177
|
+
],
|
|
178
|
+
"verify": "Every table whose columns can be reordered, hidden or shown carries dsTableColumns, and the picker opens from the header.",
|
|
179
|
+
"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."
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"id": "table-resize-behind-directive",
|
|
183
|
+
"kind": "code-add",
|
|
184
|
+
"old": "ds-table[resizableColumns]",
|
|
185
|
+
"new": "dsTableResize",
|
|
186
|
+
"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.",
|
|
187
|
+
"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.",
|
|
188
|
+
"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.",
|
|
189
|
+
"surface": "template",
|
|
190
|
+
"searchHints": [
|
|
191
|
+
"resizableColumns",
|
|
192
|
+
"columnWidths"
|
|
193
|
+
],
|
|
194
|
+
"verify": "Every table that could be resized carries dsTableResize, and its header separators are focusable.",
|
|
195
|
+
"note": "Truncation stayed on the component: it measures the DOM rather than the dragged width, so it never depended on resizing."
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"deleteList": [],
|
|
199
|
+
"informational": [
|
|
200
|
+
"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.",
|
|
201
|
+
"`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.",
|
|
202
|
+
"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.",
|
|
203
|
+
"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.",
|
|
204
|
+
"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)`.",
|
|
205
|
+
"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.",
|
|
206
|
+
"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.",
|
|
207
|
+
"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.",
|
|
208
|
+
"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.",
|
|
209
|
+
"`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.",
|
|
210
|
+
"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.",
|
|
211
|
+
"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.",
|
|
212
|
+
"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; a part whose directive is absent is not applied.",
|
|
213
|
+
"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."
|
|
214
|
+
]
|
|
215
|
+
}
|
package/migrations/0.5.0.json
CHANGED
|
@@ -37,17 +37,6 @@
|
|
|
37
37
|
],
|
|
38
38
|
"surface": "typescript"
|
|
39
39
|
},
|
|
40
|
-
{
|
|
41
|
-
"id": "combobox-option-group-type-rename",
|
|
42
|
-
"kind": "type-rename",
|
|
43
|
-
"old": "ComboboxOptionGroup",
|
|
44
|
-
"new": "AutocompleteOptionGroup",
|
|
45
|
-
"action": "Replace `ComboboxOptionGroup` with `AutocompleteOptionGroup`. Apply this before the shorter `ComboboxOption`.",
|
|
46
|
-
"searchHints": [
|
|
47
|
-
"ComboboxOptionGroup"
|
|
48
|
-
],
|
|
49
|
-
"surface": "typescript"
|
|
50
|
-
},
|
|
51
40
|
{
|
|
52
41
|
"id": "combobox-size-type-rename",
|
|
53
42
|
"kind": "type-rename",
|
|
@@ -59,17 +48,6 @@
|
|
|
59
48
|
],
|
|
60
49
|
"surface": "typescript"
|
|
61
50
|
},
|
|
62
|
-
{
|
|
63
|
-
"id": "combobox-width-type-rename",
|
|
64
|
-
"kind": "type-rename",
|
|
65
|
-
"old": "ComboboxWidth",
|
|
66
|
-
"new": "AutocompleteWidth",
|
|
67
|
-
"action": "Replace `ComboboxWidth` with `AutocompleteWidth`.",
|
|
68
|
-
"searchHints": [
|
|
69
|
-
"ComboboxWidth"
|
|
70
|
-
],
|
|
71
|
-
"surface": "typescript"
|
|
72
|
-
},
|
|
73
51
|
{
|
|
74
52
|
"id": "combobox-token-prefix-rename",
|
|
75
53
|
"kind": "token-rename",
|
|
@@ -126,27 +104,6 @@
|
|
|
126
104
|
],
|
|
127
105
|
"surface": "template"
|
|
128
106
|
},
|
|
129
|
-
{
|
|
130
|
-
"id": "dropdown-option-groups-fold",
|
|
131
|
-
"kind": "behavior",
|
|
132
|
-
"old": "ds-dropdown[optionGroups]",
|
|
133
|
-
"new": null,
|
|
134
|
-
"action": "Merge the flat options and the groups into one `[options]` array. `SelectItem` is `SelectOption | SelectOptionGroup`, so both shapes sit in the same list.",
|
|
135
|
-
"pitfall": "The array order IS the render order now. Two separate inputs used to be rendered in a fixed sequence, so concatenating them the other way round silently reshuffles the list and nothing warns.",
|
|
136
|
-
"note": "`[optionGroups]` no longer exists on ds-select.",
|
|
137
|
-
"searchHints": [
|
|
138
|
-
"[optionGroups]="
|
|
139
|
-
],
|
|
140
|
-
"surface": [
|
|
141
|
-
"template",
|
|
142
|
-
"typescript"
|
|
143
|
-
],
|
|
144
|
-
"detect": [
|
|
145
|
-
"optionGroups",
|
|
146
|
-
"[optionGroups]"
|
|
147
|
-
],
|
|
148
|
-
"verify": "No ds-select binds optionGroups; the groups sit inside [options] in render order."
|
|
149
|
-
},
|
|
150
107
|
{
|
|
151
108
|
"id": "dropdown-component-class-rename",
|
|
152
109
|
"kind": "type-rename",
|
|
@@ -170,17 +127,6 @@
|
|
|
170
127
|
],
|
|
171
128
|
"surface": "typescript"
|
|
172
129
|
},
|
|
173
|
-
{
|
|
174
|
-
"id": "dropdown-option-group-type-rename",
|
|
175
|
-
"kind": "type-rename",
|
|
176
|
-
"old": "DropdownOptionGroup",
|
|
177
|
-
"new": "SelectOptionGroup",
|
|
178
|
-
"action": "Replace `DropdownOptionGroup` with `SelectOptionGroup`. Apply this before the shorter `DropdownOption`.",
|
|
179
|
-
"searchHints": [
|
|
180
|
-
"DropdownOptionGroup"
|
|
181
|
-
],
|
|
182
|
-
"surface": "typescript"
|
|
183
|
-
},
|
|
184
130
|
{
|
|
185
131
|
"id": "dropdown-size-type-rename",
|
|
186
132
|
"kind": "type-rename",
|
package/migrations/0.5.1.json
CHANGED
|
@@ -436,7 +436,9 @@
|
|
|
436
436
|
"--secondary-h",
|
|
437
437
|
"--tertiary-h",
|
|
438
438
|
"--secondary",
|
|
439
|
-
"--tertiary"
|
|
439
|
+
"--tertiary",
|
|
440
|
+
"--orange-h",
|
|
441
|
+
"--violet-h"
|
|
440
442
|
],
|
|
441
443
|
"surface": "style",
|
|
442
444
|
"restore": "--secondary-h/s/l and --tertiary-h/s/l pointed back at the --primary channels",
|
package/migrations/0.7.0.json
CHANGED
|
@@ -47,17 +47,6 @@
|
|
|
47
47
|
],
|
|
48
48
|
"surface": "typescript"
|
|
49
49
|
},
|
|
50
|
-
{
|
|
51
|
-
"id": "size-type-search-to-dssize",
|
|
52
|
-
"kind": "type-rename",
|
|
53
|
-
"old": "SearchSize",
|
|
54
|
-
"new": "DsSize",
|
|
55
|
-
"action": "Replace `SearchSize` with `DsSize`, imported from the package root.",
|
|
56
|
-
"searchHints": [
|
|
57
|
-
"SearchSize"
|
|
58
|
-
],
|
|
59
|
-
"surface": "typescript"
|
|
60
|
-
},
|
|
61
50
|
{
|
|
62
51
|
"id": "size-type-checkbox-to-dssize",
|
|
63
52
|
"kind": "type-rename",
|
package/migrations/0.9.0.json
CHANGED
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"searchHints": [
|
|
90
90
|
"ds-search",
|
|
91
91
|
"--ds-search-height",
|
|
92
|
-
|
|
92
|
+
"--hit-min",
|
|
93
93
|
"--search-h"
|
|
94
94
|
],
|
|
95
95
|
"surface": "style",
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
"ds-modal / ds-modal-card gained a [title-badge] content slot and a subtitle input, so a dialog header can carry a status chip and a second line without abandoning the component. Additive, NO ACTION - both are absent by default and the header renders exactly as before. WORTH A LOOK IF YOU HAND-ROLLED A DIALOG: a header that has to carry `title + ds-badge` over a second line used to be a reason to drop ds-modal and re-implement the scrim, the body scroll lock, backdrop-click and Escape by hand - which costs the focus trap, focus restore, the enter/leave animation and, easily, the footer, leaving a destructive action next to the close button. The shape matches ds-page-header: [title-badge] projects beside the title, subtitle is a plain string under it. The accessible name is still the title string - projected markup never enters aria-labelledby. Retune with --ds-modal-subtitle-text-color and --ds-modal-subtitle-font-size.",
|
|
261
261
|
"NEW COMPONENT ds-field-group: several controls in one bordered box (select + input, input + button, search + date-picker). Additive, NO ACTION. If you hand-rolled a glued row by stripping borders off two controls and wrapping them, this replaces it - wrap them in <ds-field-group> and mark the stretching one with grow. Six controls can be segments: ds-input, ds-select, ds-search, ds-autocomplete, ds-date-picker, ds-button. ds-number-stepper and ds-multi-select are excluded by design. Grouped controls must not be given a label or hint - the message row would break the glued line and is suppressed.",
|
|
262
262
|
"ds-table gained [lazy] + (lazyLoad) for fetching rows as they scroll into view. Additive and opt-in, NO ACTION. If you paged a long list yourself to keep it responsive, this is the alternative: set lazy with virtualScroll and total, make data a SPARSE array total long, and write each fetched row at its ABSOLUTE index - gaps inside the window render skeleton rows. Note sortMode must not be \"client\" (it would sort only the rows that happen to have arrived); the new server default is already right.",
|
|
263
|
-
"--ds-field-height now reaches ds-autocomplete, ds-multi-select, ds-color-picker, ds-number-stepper, ds-split-button and the ds-modal confirm input. All six spelled their height as the raw --hit-* value, so the token the name advertises did nothing for them; they read the field scale now. Pixel-identical at every size EXCEPT ds-number-stepper at size=\"lg\" (its own actionable entry above). NO ACTION unless you had already worked around the gap by pinning height on one of these - that pin can go.",
|
|
263
|
+
"--ds-field-height now reaches ds-autocomplete, ds-multi-select, ds-color-picker, ds-number-stepper, ds-split-button and the ds-modal confirm input. All six spelled their height as the raw --hit-* value, so the token the name advertises did nothing for them; they read the field scale now. Pixel-identical at every size EXCEPT ds-number-stepper at size=\"lg\" (its own actionable entry above). NO ACTION unless you had already worked around the gap by pinning height on one of these - that pin can go (delete list: field-height-pin-on-late-adopters).",
|
|
264
264
|
"The six connected panels (ds-select, ds-multi-select, ds-autocomplete, ds-color-picker, ds-date-picker, ds-time-picker) now build their overlay from one shared helper instead of six identical copies. Internal only, NO ACTION: the position, the 4px gap, the flip-above fallback, the panel classes and the scroll strategy are byte-for-byte what they were.",
|
|
265
265
|
"ds-autocomplete gained dsAutocompletePrefix / dsAutocompleteSuffix content slots and [showChevron] (default true). Additive, NO ACTION. If you absolutely positioned a search glyph over the field and re-padded the input, or hid the arrow with a global rule reaching for .autocomplete-chevron, replace both: put the icon in the prefix slot and set [showChevron]=\"false\". The slot names and behaviour match ds-input's dsInputPrefix / dsInputSuffix.",
|
|
266
266
|
"ds-autocomplete gained a public clear() that empties the value AND the typed text. If you reset the field by querying the inner <input> out of the DS's DOM and dispatching a synthetic input event, delete that and call clear() on a viewChild ref - the DOM shape it depended on is not part of the public API. It deliberately does not move focus. (delete list: autocomplete-synthetic-input-clear)",
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
"ds-table gained --ds-table-head-pad-top / --ds-table-head-pad-bottom, plus showPageSize and showLabel forwarded to its footer pager. All additive with today's values as defaults, NO ACTION. Separately FIXED: density=\"compact\" pinned padding onto the cells, which out-specified every --ds-table-*-pad-* hook, so a compact table silently ignored all of them; it now retunes the density tokens instead. Spacing is unchanged - but if you fought that with an !important, it can go. (delete list: compact-cell-padding-important)",
|
|
269
269
|
"ds-date-picker and ds-time-picker resolve their trigger's horizontal padding from --field-pad-x (new hooks: --ds-date-picker-trigger-pad-x, --ds-time-picker-trigger-pad-x) instead of a hard-coded --space-3. Identical at the default density; the difference shows under [data-density], where the token shrinks and the literal did not, leaving a picker 8px wider than the input beside it. NO ACTION unless you hand-pinned picker padding to compensate.",
|
|
270
270
|
"The ds-auth-shell -> ds-auth-layout rename is vocabulary only: no input, output, slot, token value or behaviour changed, and it is the same component 0.8.0 shipped. If you never adopted ds-auth-shell (it was added in 0.8.0), there is nothing to do.",
|
|
271
|
-
"FIXED in ds-textarea: size=\"sm\" and size=\"lg\" rendered the md vertical padding (12px top and bottom) regardless of the size. The size blocks set the inner textarea's vertical pad, but a :host-prefixed pin at the end of the file out-ranked them once emulated encapsulation shimmed both selectors - it carries one more attribute than the size selector. There are now three pins, one per size, and the size blocks keep only the horizontal padding they own. NO ACTION: the change is visible only on a non-md textarea and the md default is unchanged. Note that retuning --ds-input-pad-y previously moved all three sizes together; if you compensated for the wrong padding with your own override on a sm or lg textarea, that override now stacks on the corrected value and can go.",
|
|
271
|
+
"FIXED in ds-textarea: size=\"sm\" and size=\"lg\" rendered the md vertical padding (12px top and bottom) regardless of the size. The size blocks set the inner textarea's vertical pad, but a :host-prefixed pin at the end of the file out-ranked them once emulated encapsulation shimmed both selectors - it carries one more attribute than the size selector. There are now three pins, one per size, and the size blocks keep only the horizontal padding they own. NO ACTION: the change is visible only on a non-md textarea and the md default is unchanged. Note that retuning --ds-input-pad-y previously moved all three sizes together; if you compensated for the wrong padding with your own override on a sm or lg textarea, that override now stacks on the corrected value and can go (delete list: textarea-size-padding-compensation).",
|
|
272
272
|
"ds-auth-layout now COMPRESSES its own chrome on a short viewport: block padding, the column gap, the letter-mark tile and the masthead inner gap clamp against svh. No action - behaviour only, and a viewport 800px tall or more renders exactly what it did before. Read that as a VIEWPORT height, not a screen size: a 1366x768 laptop sits near 630px after browser and OS chrome, and a 1080p screen at 150% display scaling near 585px, so plenty of desktops do get the compressed furniture. Type is deliberately NOT clamped: the wordmark and the tile's glyph were measured to buy zero vertical space (the tile sets the row height at every viewport, and the glyph sits in a fixed-size box) while flattening the brand against a fixed 14px tagline, so both keep the fixed sizes 0.8.0 ships. Below 800px the remaining furniture shrinks so it is not what pushes a card into scrolling (~131px instead of ~219px at a landscape phone's ~330px). Two tokens opt out per dimension: --ds-auth-layout-pad-block and --ds-auth-layout-mark-size; setting any of those or the existing --ds-auth-layout-gap to a fixed value stops that one compressing. A card taller than the remaining space still scrolls - that is intended.",
|
|
273
273
|
"ds-auth-layout audit fixes, all additive or corrective - NO ACTION. The letter-mark tile is now aria-hidden (a screen reader announced 'A MyAdmin', now 'MyAdmin') and carries flex-shrink: 0 so a long wordmark cannot squash it out of square; logoLetter on its own renders its tile instead of nothing; the glyph is taken by code point rather than charAt(0), which returned half a surrogate pair for a brand starting with an emoji; box-sizing: border-box is declared on the host rather than inherited, so the component still avoids its own overflow scrollbar for a consumer composing style partials without styles/reset. The four env(safe-area-inset-*) calls gained 0px fallbacks and moved to physical padding-left/padding-right so the insets cannot swap sides under RTL - and note they are inert unless YOUR app sets viewport-fit=cover in its viewport meta, which the library cannot set for you. New tokens, both defaulting to today's behaviour: --ds-auth-layout-mark-radius (the tile's radius was the one value with no override hop) and --ds-auth-layout-brand-max-height (none by default; set it to cap a projected [brand] logo, which nothing constrained). New input landmark, default 'none': set landmark=\"main\" on a standalone auth page so the card - an <article>, which is not a landmark - becomes something a screen-reader user can jump to; it stays opt-in because this layout is also embedded inside pages that already own a main.",
|
|
274
274
|
"ds-icon now logs a dev-mode warning when an icon name is in neither the DS set nor your provideDsIcons() registry - previously it rendered an empty <svg> silently. No action, and nothing changes in production. Expect the warning to surface real typos the moment you upgrade.",
|
|
@@ -568,6 +568,25 @@
|
|
|
568
568
|
],
|
|
569
569
|
"why": "A live region you wrapped around ds-table to announce sort state or row range. The table announces both through its own role=\"status\" region now, so keeping yours gives the screen reader every change twice.",
|
|
570
570
|
"replaceWith": "nothing - retune the wording through sortAnnouncement and rangeAnnouncement"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"id": "textarea-size-padding-compensation",
|
|
574
|
+
"surface": "style",
|
|
575
|
+
"find": [
|
|
576
|
+
"--ds-input-pad-y"
|
|
577
|
+
],
|
|
578
|
+
"why": "sm/lg textareas rendered the md vertical padding; an override scoped to a sm or lg textarea compensating for it now stacks on the corrected value. A deliberate global --ds-input-pad-y retune is a legitimate hook and stays.",
|
|
579
|
+
"replaceWith": "nothing"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"id": "field-height-pin-on-late-adopters",
|
|
583
|
+
"surface": "style",
|
|
584
|
+
"find": [
|
|
585
|
+
"min-height",
|
|
586
|
+
"height"
|
|
587
|
+
],
|
|
588
|
+
"why": "ds-autocomplete, ds-multi-select, ds-color-picker, ds-number-stepper and ds-split-button spelled their height as the raw --hit-* value, so --ds-field-height did nothing for them and consumers pinned height directly; they read the field scale now. Only a height/min-height pinned on one of those five counts — any other height in the app stays.",
|
|
589
|
+
"replaceWith": "--ds-field-height (or nothing - the default now lands)"
|
|
571
590
|
}
|
|
572
591
|
]
|
|
573
592
|
}
|
package/migrations/0.9.1.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"items": [],
|
|
4
4
|
"informational": [
|
|
5
5
|
"Nothing in this release changes the package's runtime. The entire change is documentation, feeding the token and component reference; every component behaves exactly as it did on 0.9.0.",
|
|
6
|
-
"THREE
|
|
6
|
+
"THREE behaviours are easy to guess wrong, so check these if you use them - the code has always worked this way. (1) ds-time-columns `value` is always HH:mm in 24h and `format` changes only the DISPLAY, so a picker showing 12h still emits 24h - code that parsed the emitted value as 12h was wrong. (2) ds-time-columns `minTime`/`maxTime` DISABLE the out-of-range rows rather than removing them, so the columns keep their height as a bound moves - a layout that assumed the list shortens was wrong. (3) ds-calendar-day `tabIndex` is a roving tabindex owned by the grid (exactly one cell at 0, the rest at -1), not a tab position to set per day - setting it per cell fights the grid's keyboard model.",
|
|
7
7
|
"41 public tokens and props gained descriptions in the reference: 10 --ds-* tokens (the whole --ds-password-rules-* set, --ds-multi-select-panel-bg-color and --ds-menu-item-radius among them) and 31 inputs and outputs across ds-calendar-day, ds-time-columns, ds-field-message, ds-divider, ds-sidenav-footer and the three layout primitives. Names, types and defaults are unchanged.",
|
|
8
8
|
"A release manifest carries a deleteList wherever that release made a workaround unnecessary, so an upgrade tool can act on what became redundant and not only on what broke. Each row is machine-readable: { id, surface, find, why, replaceWith }."
|
|
9
9
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ids-group-ltd/ids-design-system",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "IDS Group Angular design system: components, tokens, themes",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://ids-ds.proto.ids-group.co.uk/",
|
|
@@ -261,6 +261,18 @@
|
|
|
261
261
|
"types": "./types/ids-group-ltd-ids-design-system-components-table.d.ts",
|
|
262
262
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-table.mjs"
|
|
263
263
|
},
|
|
264
|
+
"./components/table-columns": {
|
|
265
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-table-columns.d.ts",
|
|
266
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs"
|
|
267
|
+
},
|
|
268
|
+
"./components/table-export": {
|
|
269
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-table-export.d.ts",
|
|
270
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs"
|
|
271
|
+
},
|
|
272
|
+
"./components/table-resize": {
|
|
273
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-table-resize.d.ts",
|
|
274
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs"
|
|
275
|
+
},
|
|
264
276
|
"./components/tabs": {
|
|
265
277
|
"types": "./types/ids-group-ltd-ids-design-system-components-tabs.d.ts",
|
|
266
278
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs"
|
|
@@ -553,6 +565,18 @@
|
|
|
553
565
|
"types": "./types/ids-group-ltd-ids-design-system-components-table.d.ts",
|
|
554
566
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-table.mjs"
|
|
555
567
|
},
|
|
568
|
+
"./table-columns": {
|
|
569
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-table-columns.d.ts",
|
|
570
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs"
|
|
571
|
+
},
|
|
572
|
+
"./table-export": {
|
|
573
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-table-export.d.ts",
|
|
574
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs"
|
|
575
|
+
},
|
|
576
|
+
"./table-resize": {
|
|
577
|
+
"types": "./types/ids-group-ltd-ids-design-system-components-table-resize.d.ts",
|
|
578
|
+
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs"
|
|
579
|
+
},
|
|
556
580
|
"./tabs": {
|
|
557
581
|
"types": "./types/ids-group-ltd-ids-design-system-components-tabs.d.ts",
|
|
558
582
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs"
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
@use 'check-mark' as check-mark;
|
|
2
|
+
@use 'press' as press;
|
|
3
|
+
|
|
4
|
+
// The box a checkbox draws, in one place.
|
|
5
|
+
//
|
|
6
|
+
// ds-checkbox is a native `<input type="checkbox">` with `appearance: none` and a styled `::after`,
|
|
7
|
+
// so anything else that already renders a native checkbox — ds-table's row selection — becomes the
|
|
8
|
+
// design system's checkbox by including this, without swapping in a component or rewiring an
|
|
9
|
+
// event.
|
|
10
|
+
|
|
11
|
+
// Declared on the SCOPE rather than on the box, so a state override on the host (error, warning)
|
|
12
|
+
// still reaches the box through the cascade: a declaration on the element itself would outrank the
|
|
13
|
+
// inherited one and pin the resting colour.
|
|
14
|
+
@mixin resolvers {
|
|
15
|
+
--_checkbox-bg: var(--ds-checkbox-bg-color, var(--surface-default));
|
|
16
|
+
--_checkbox-border: var(--ds-checkbox-border-color, var(--border-strong));
|
|
17
|
+
--_checkbox-hover-border: var(--ds-checkbox-hover-border-color, var(--accent));
|
|
18
|
+
--_checkbox-selected-bg: var(--ds-checkbox-selected-bg-color, var(--accent));
|
|
19
|
+
--_checkbox-selected-border: var(--ds-checkbox-selected-border-color, var(--accent));
|
|
20
|
+
--_checkbox-radius: var(--ds-checkbox-radius, var(--ds-radius-inner));
|
|
21
|
+
--_checkbox-glyph: var(--check-size);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Every reference to a `--_checkbox-*` resolver carries that resolver's OWN default, so a box which
|
|
25
|
+
// never saw `resolvers` still paints. The `:root` tokens it also reads — `--check-bw`,
|
|
26
|
+
// `--check-size`, `--icon-on-primary` — are global and need no fallback; strip the token layer and
|
|
27
|
+
// the border goes invalid again. That is not belt and braces: a checkbox inside a portaled CDK panel is
|
|
28
|
+
// outside its component's host, custom properties inherit by DOM position, and the whole
|
|
29
|
+
// declaration is then invalid at computed-value time — measured on ds-table's column picker, where
|
|
30
|
+
// six boxes came out 12x12 with no border and no fill, invisible on the panel.
|
|
31
|
+
@mixin box {
|
|
32
|
+
appearance: none;
|
|
33
|
+
width: var(--_checkbox-glyph, var(--check-size));
|
|
34
|
+
height: var(--_checkbox-glyph, var(--check-size));
|
|
35
|
+
border: var(--check-bw) solid
|
|
36
|
+
var(--_checkbox-border, var(--ds-checkbox-border-color, var(--border-strong)));
|
|
37
|
+
background: var(--_checkbox-bg, var(--ds-checkbox-bg-color, var(--surface-default)));
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
display: inline-grid;
|
|
40
|
+
place-items: center;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
margin: 0;
|
|
43
|
+
border-radius: var(--_checkbox-radius, var(--ds-checkbox-radius, var(--ds-radius-inner)));
|
|
44
|
+
transition: background-color var(--duration-fast) var(--ease-standard),
|
|
45
|
+
border-color var(--duration-fast) var(--ease-standard);
|
|
46
|
+
|
|
47
|
+
&:hover:not(:disabled) {
|
|
48
|
+
border-color: var(--_checkbox-hover-border, var(--ds-checkbox-hover-border-color, var(--accent)));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@include press.feedback;
|
|
52
|
+
&:disabled {
|
|
53
|
+
background: var(--surface-disabled);
|
|
54
|
+
border-color: var(--border-disabled);
|
|
55
|
+
cursor: not-allowed;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// The mark paints in currentColor, and an input inherits the label's text colour — so without
|
|
59
|
+
// this the tick would come out dark on the filled box.
|
|
60
|
+
color: var(--icon-on-primary);
|
|
61
|
+
|
|
62
|
+
// Persistent pseudo (content always set) so the check/indeterminate mark scales + fades in and
|
|
63
|
+
// out — a checked-only ::after would just pop in.
|
|
64
|
+
&::after {
|
|
65
|
+
content: "";
|
|
66
|
+
|
|
67
|
+
@include check-mark.mark;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:checked {
|
|
71
|
+
background: var(--_checkbox-selected-bg, var(--ds-checkbox-selected-bg-color, var(--accent)));
|
|
72
|
+
border-color: var(--_checkbox-selected-border, var(--ds-checkbox-selected-border-color, var(--accent)));
|
|
73
|
+
&::after { @include check-mark.shown; }
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:indeterminate {
|
|
77
|
+
background: var(--_checkbox-selected-bg, var(--ds-checkbox-selected-bg-color, var(--accent)));
|
|
78
|
+
border-color: var(--_checkbox-selected-border, var(--ds-checkbox-selected-border-color, var(--accent)));
|
|
79
|
+
&::after {
|
|
80
|
+
@include check-mark.shown;
|
|
81
|
+
@include check-mark.dash;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// The tick a selection draws, in one place.
|
|
2
|
+
//
|
|
3
|
+
// ds-checkbox owns the canonical mark; multi-select and autocomplete draw their own box in an
|
|
4
|
+
// option row rather than composing ds-checkbox, so they need the mark on its own. Do not reach
|
|
5
|
+
// for `ds-icon name="check"` in those boxes: it is a 24-viewBox path at stroke 1.75, which at a
|
|
6
|
+
// 13px glyph paints a 0.95px line against this mark's 2px — one box, two different ticks.
|
|
7
|
+
//
|
|
8
|
+
// Painted as a MASK over `currentColor`, not as a coloured image: the same mark then serves a
|
|
9
|
+
// filled box (white on the accent) and a bare trailing indicator in a select row (accent on the
|
|
10
|
+
// surface) without a second copy of the path.
|
|
11
|
+
@mixin mark {
|
|
12
|
+
--_check-mark-enter-duration: var(--ds-check-mark-enter-duration, var(--ds-motion-check-enter-duration));
|
|
13
|
+
--_check-mark-enter-easing: var(--ds-check-mark-enter-easing, var(--ds-motion-check-enter-easing));
|
|
14
|
+
--_check-mark-exit-duration: var(--ds-check-mark-exit-duration, var(--ds-motion-check-exit-duration));
|
|
15
|
+
--_check-mark-exit-easing: var(--ds-check-mark-exit-easing, var(--ds-motion-check-exit-easing));
|
|
16
|
+
|
|
17
|
+
width: var(--check-tick-size);
|
|
18
|
+
height: var(--check-tick-size);
|
|
19
|
+
|
|
20
|
+
// Always rendered, so it can scale and fade rather than pop: an element that does not exist has
|
|
21
|
+
// no resting state to transition from. `.checked` on the box is what brings it in.
|
|
22
|
+
transform: scale(0.6);
|
|
23
|
+
opacity: 0;
|
|
24
|
+
transform-origin: center;
|
|
25
|
+
|
|
26
|
+
// The resting rule carries the EXIT timing and the entered rule the enter timing — a transition
|
|
27
|
+
// belongs to the state being moved TO, which is the only way one property pair can run two
|
|
28
|
+
// different curves in the two directions.
|
|
29
|
+
transition: transform var(--_check-mark-exit-duration) var(--_check-mark-exit-easing),
|
|
30
|
+
opacity var(--_check-mark-exit-duration) var(--_check-mark-exit-easing);
|
|
31
|
+
background-color: currentcolor;
|
|
32
|
+
|
|
33
|
+
// Forced colours override `background-color` and leave `background-image` alone, so moving the
|
|
34
|
+
// tick from an image to a masked fill made it vanish under Windows High Contrast: the mark was
|
|
35
|
+
// forced to Canvas, the same colour the box fill becomes, leaving checked and unchecked
|
|
36
|
+
// pixel-identical. The mask itself survives, so naming the text colour puts the glyph back.
|
|
37
|
+
@media (forced-colors: active) {
|
|
38
|
+
background-color: CanvasText;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// The entered state, for a box that carries `.checked` rather than a `:checked` input.
|
|
45
|
+
@mixin shown {
|
|
46
|
+
transform: scale(1);
|
|
47
|
+
opacity: 1;
|
|
48
|
+
transition: transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),
|
|
49
|
+
opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// The bar a mixed selection draws, on the SAME element as the tick: a second span would sit beside
|
|
53
|
+
// it in the centred box rather than replacing it, and the two could not cross-fade.
|
|
54
|
+
@mixin dash {
|
|
55
|
+
width: var(--check-indet-w);
|
|
56
|
+
height: var(--check-indet-h);
|
|
57
|
+
border-radius: var(--ds-radius-inner);
|
|
58
|
+
mask: none;
|
|
59
|
+
}
|