@ids-group-ltd/ids-design-system 0.10.0 → 0.10.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.
@@ -12,21 +12,32 @@
12
12
  "styles/ds",
13
13
  "@use 'styles/",
14
14
  "ids-design-system/styles"
15
- ]
15
+ ],
16
+ "surface": "style"
16
17
  },
17
18
  {
18
19
  "id": "table-sortkey-non-null-when-unsorted",
19
20
  "kind": "behavior",
20
21
  "old": "ds-table[sortKey]",
21
22
  "new": null,
22
- "note": "`ds-table` no longer nulls `sortKey` when the sort cycle reaches \"unsorted\" — the key keeps naming the column the user last touched and `sortDir === null` alone means unsorted. Fixes a header desync for hosts that map \"off\" back to their own default sort. ACTION: any host that treats a non-null `sortKey` as \"a sort is active\" must gate on `sortDir` instead — e.g. `if (sortKey())` becomes `if (sortDir())`, and a server query built as `orderBy: sortKey()` must skip the clause when `sortDir()` is null. Hosts that already read both, or that pass `sortingOrder: ['asc','desc']` (no unsorted state), need no change. The table's own rendering (icons, aria-sort) and its client-side sorting were already gated on `sortDir` and are unchanged.",
23
+ "note": "`ds-table` no longer nulls `sortKey` when the sort cycle reaches \"unsorted\" — the key keeps naming the column the user last touched and `sortDir === null` alone means unsorted. Fixes a header desync for hosts that map \"off\" back to their own default sort. ACTION: any host that treats a non-null `sortKey` as \"a sort is active\" must gate on `sortDir` instead — e.g. `if (sortKey())` becomes `if (sortDir())`, and a server query built as `orderBy: sortKey()` must skip the clause when `sortDir()` is null. Hosts that already read both, or that pass `sortingOrder: ['asc','desc']` (no unsorted state), need no change. The table's own rendering (icons, aria-sort) and its client-side sorting were already gated on `sortDir` and are unchanged. WHERE TO LOOK, because this item finds nothing in a template: the code that breaks is the HOST'S OWN - a store, a page class, a query builder - and it names no DS symbol at all. mm-broker had three of them (2026-08-21), each written as `sorting: store.sortKey() ? { path: store.sortKey()!, order: store.sortDir() ?? 'Asc' } : undefined`, and all three kept ordering a server-paged list by the last column the reader touched while its header showed no sort. Grep the consumer's `.ts` for the `detect` shapes, not their templates for `ds-table`.",
23
24
  "searchHints": [
24
25
  "sortKey",
25
26
  "sortDir",
26
27
  "sortChange",
27
28
  "(sortChange)",
28
29
  "[(sortKey)]"
29
- ]
30
+ ],
31
+ "surface": "typescript",
32
+ "detect": [
33
+ "sortKey() ?",
34
+ "sortKey ?",
35
+ "orderBy: sortKey",
36
+ "if (sortKey",
37
+ "sortKey()!",
38
+ "sortDir() ?? 'Asc'"
39
+ ],
40
+ "verify": "No host builds a sort clause from the key alone: every place that turns (sortChange) into a query gates on the DIRECTION (`sortDir`), and a store that keeps both nulls the clause when the direction is null."
30
41
  },
31
42
  {
32
43
  "id": "field-reserve-message-default-off",
@@ -40,6 +51,20 @@
40
51
  "provideDsConfig",
41
52
  "field: {",
42
53
  "DS_CONFIG"
54
+ ],
55
+ "surface": [
56
+ "template",
57
+ "config"
58
+ ],
59
+ "detect": [
60
+ "[reserveMessage]",
61
+ "reserveMessage",
62
+ "dsReserveMessages"
63
+ ],
64
+ "restore": "provideDsConfig({ field: { reserveMessage: true } })",
65
+ "verify": "Every surviving `[reserveMessage]=\"false\"` sits under a `dsReserveMessages` host or an app config that turns the flag ON - anywhere else it restates the new default and does nothing.",
66
+ "supersedes": [
67
+ "0.7.0#field-reserve-message-default-on"
43
68
  ]
44
69
  },
45
70
  {
@@ -52,7 +77,12 @@
52
77
  "provideDsConfig",
53
78
  "DS_CONFIG",
54
79
  "providers: [provideDsConfig"
55
- ]
80
+ ],
81
+ "surface": "config",
82
+ "detect": [
83
+ "provideDsConfig"
84
+ ],
85
+ "verify": "No nested provideDsConfig relies on RESETTING a section it does not name - a nested call merges now, so a reset has to spell the section out."
56
86
  },
57
87
  {
58
88
  "id": "exported-classes-gained-members",
@@ -75,7 +105,14 @@
75
105
  "extends AppLayoutComponent",
76
106
  "extends ",
77
107
  "override readonly"
78
- ]
108
+ ],
109
+ "surface": "typescript",
110
+ "detect": [
111
+ "extends TableComponent",
112
+ "extends ",
113
+ "onOpen"
114
+ ],
115
+ "verify": "A typecheck reports no TS4114 / TS2415 / TS2416 on any class extending a DS component; a subclass that overrode TooltipDirective.onOpen has moved its body to onPointerEnter / onFocusIn."
79
116
  },
80
117
  {
81
118
  "id": "app-layout-scroll-reset-path-only",
@@ -88,7 +125,14 @@
88
125
  "scrollToTop",
89
126
  "ds-app-layout",
90
127
  "NavigationEnd"
91
- ]
128
+ ],
129
+ "surface": "typescript",
130
+ "detect": [
131
+ "LayoutScrollService",
132
+ "scrollToTop",
133
+ "NavigationEnd"
134
+ ],
135
+ "verify": "No screen depended on the blanket scroll reset: one that needs the top after a filter change calls LayoutScrollService.scrollToTop() from that handler."
92
136
  },
93
137
  {
94
138
  "id": "modal-title-flex-moved-to-heading",
@@ -102,7 +146,8 @@
102
146
  ".modal-card .title",
103
147
  ".title",
104
148
  "flex: 1"
105
- ]
149
+ ],
150
+ "surface": "style"
106
151
  },
107
152
  {
108
153
  "id": "table-client-sort-blanks-last-and-numeric-collation",
@@ -117,7 +162,17 @@
117
162
  "sortDir",
118
163
  "[columns]",
119
164
  "TableColumn"
120
- ]
165
+ ],
166
+ "surface": [
167
+ "typescript",
168
+ "template"
169
+ ],
170
+ "detect": [
171
+ "sortValue",
172
+ "TableColumn",
173
+ "localeCompare"
174
+ ],
175
+ "verify": "No client-sorted screen depended on blanks sorting FIRST or on pure lexical order for strings with digits; where it did, a per-column sortValue says so."
121
176
  }
122
177
  ],
123
178
  "informational": [
@@ -141,5 +196,26 @@
141
196
  "Known gap, not a regression: `--ds-overlay-enter-scale` is the one entrance token NOT forwarded onto a portaled overlay pane, so setting it per instance (`ds-select { --ds-overlay-enter-scale: 0.9 }`) has no effect on select / autocomplete / multi-select / date / time / colour picker / popover / tooltip / menu submenu panels. Scope it globally until it is forwarded; the other four (-enter-keyframes / -duration / -easing / -offset) do forward.",
142
197
  "Bugfix, no action: `dsTooltip` now puts `aria-describedby` on the element that actually took focus (recorded from the bubbling `focusin`) rather than unconditionally on its host, so a tooltip on a host that is not itself focusable — `ds-menu-item` carries `role=\"none\"` and holds the real button inside — finally reaches a screen reader. A pointer-only open still describes the host.",
143
198
  "Visual-only fixes: `ds-pagination` pins its internal rows-per-page select to `reserveMessage: false` (it inherited the app default and pushed the pager off the page buttons' baseline), and `ds-stat`'s card fills a stretched host so a KPI row with mixed captions paints equal-height tiles. Consumers can drop the global workarounds for both (`ds-pagination ds-field-message { display: none }` and `ds-stat { height: 100% }`)."
199
+ ],
200
+ "deleteList": [
201
+ {
202
+ "id": "reserve-message-false-opt-outs",
203
+ "surface": "template",
204
+ "find": [
205
+ "[reserveMessage]=\"false\""
206
+ ],
207
+ "why": "The default is FALSE again, so an opt-out binding only restates it - unless the field sits under a `dsReserveMessages` host or an app config that turns it on, where the binding is still the way back out. mm-broker carried six, three of them dead (2026-08-21).",
208
+ "replaceWith": "nothing - delete the binding where no host reserves"
209
+ },
210
+ {
211
+ "id": "reserved-gap-compensation",
212
+ "surface": "style",
213
+ "find": [
214
+ "gap: var(--space-1)",
215
+ "margin-top: -"
216
+ ],
217
+ "why": "A tighter sub-stack or a negative margin added to swallow the reserved message row is now over-tightening a form that no longer reserves it.",
218
+ "replaceWith": "the normal 16px field stack"
219
+ }
144
220
  ]
145
221
  }
@@ -15,7 +15,10 @@
15
15
  "sortable: true",
16
16
  "TableColumn",
17
17
  "ds-table"
18
- ]
18
+ ],
19
+ "surface": "template",
20
+ "verify": "Every `<ds-table>` that binds `total` either declares sortMode=\"server\" or leaves it unset (both resolve to server), and every table that holds all its rows AND has a sortable column declares sortMode=\"client\".",
21
+ "restore": "sortMode=\"server\" on a table that should only emit (sortChange) and sort nothing itself"
19
22
  },
20
23
  {
21
24
  "id": "exported-class-members-grew",
@@ -39,7 +42,15 @@
39
42
  "override readonly",
40
43
  "saveLayout",
41
44
  "TS4114"
42
- ]
45
+ ],
46
+ "surface": "typescript",
47
+ "detect": [
48
+ "extends InputComponent",
49
+ "extends TableComponent",
50
+ "extends ",
51
+ "saveLayout"
52
+ ],
53
+ "verify": "A typecheck reports no TS4114 / TS2415 / TS2416 on any class extending a DS component - including a PRIVATE collision (saveLayout / restoreLayout on the table) and a subclass that overrode the removed protected `messageState`."
43
54
  },
44
55
  {
45
56
  "id": "select-label-class-renamed-to-label",
@@ -53,7 +64,8 @@
53
64
  "ds-select",
54
65
  "label",
55
66
  "field-label"
56
- ]
67
+ ],
68
+ "surface": "style"
57
69
  },
58
70
  {
59
71
  "id": "radio-group-label-class-and-type",
@@ -67,7 +79,9 @@
67
79
  "ds-radio-group",
68
80
  "radio-group",
69
81
  "label"
70
- ]
82
+ ],
83
+ "surface": "style",
84
+ "restore": "ds-radio-group { --ds-field-label-weight: var(--font-weight-medium); --ds-field-label-font-size: var(--font-size-s); }"
71
85
  },
72
86
  {
73
87
  "id": "ng-add-schematic-now-loads",
@@ -81,7 +95,13 @@
81
95
  "styles/ds",
82
96
  "@use '@ids-group-ltd",
83
97
  "schematics"
84
- ]
98
+ ],
99
+ "surface": "style",
100
+ "detect": [
101
+ "@use '@ids-group-ltd/ids-design-system/styles/ds'",
102
+ "styles/ds"
103
+ ],
104
+ "verify": "The app's global stylesheet contains the DS styles entry exactly once - by hand or through `ng add`, which prepends the same line and skips when it is there."
85
105
  },
86
106
  {
87
107
  "id": "menu-item-radius-default-now-square",
@@ -95,7 +115,10 @@
95
115
  "--ds-menu-item-radius",
96
116
  "menu-item",
97
117
  "ds-popover"
98
- ]
118
+ ],
119
+ "surface": "style",
120
+ "restore": "ds-menu { --ds-menu-item-radius: var(--radius-md); padding: var(--space-1); } - both, because a radius with no panel padding has nothing to curve away from",
121
+ "verify": "No menu is left with a rounded row highlight and no panel padding (the one combination to avoid), and nothing depends on the old 8px hover fill."
99
122
  },
100
123
  {
101
124
  "id": "menu-divider-spacing-default-now-zero",
@@ -108,7 +131,10 @@
108
131
  "--ds-menu-divider-spacing",
109
132
  "menu-divider",
110
133
  "ds-menu"
111
- ]
134
+ ],
135
+ "surface": "style",
136
+ "restore": "ds-menu { --ds-menu-divider-spacing: var(--space-1); }",
137
+ "verify": "Every menu that uses ds-menu-divider reads as intended with the line taking one row's place instead of adding a second gap."
112
138
  },
113
139
  {
114
140
  "id": "time-picker-panel-radius-now-panel-role",
@@ -122,7 +148,10 @@
122
148
  "--ds-time-picker-trigger-radius",
123
149
  "time-panel",
124
150
  "time-picker"
125
- ]
151
+ ],
152
+ "surface": "style",
153
+ "restore": "ds-time-picker { --ds-time-picker-panel-radius: var(--radius-md); }",
154
+ "verify": "A time picker beside a date picker draws the same corner, or the app pins the old 8px deliberately."
126
155
  },
127
156
  {
128
157
  "id": "focus-partial-needs-use-line",
@@ -137,7 +166,8 @@
137
166
  "ids-design-system/styles",
138
167
  "data-focus",
139
168
  "forced-colors"
140
- ]
169
+ ],
170
+ "surface": "style"
141
171
  },
142
172
  {
143
173
  "id": "combobox-tokens-renamed-to-picker",
@@ -149,7 +179,13 @@
149
179
  "--combobox-offset",
150
180
  "--combobox-maxh",
151
181
  "combobox"
152
- ]
182
+ ],
183
+ "surface": "style",
184
+ "detect": [
185
+ "--combobox-offset",
186
+ "--combobox-maxh"
187
+ ],
188
+ "verify": "No stylesheet declares --combobox-offset or --combobox-maxh; a panel override names --picker-offset / --picker-maxh."
153
189
  }
154
190
  ],
155
191
  "informational": [