@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
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,296 @@ While the package is on `0.x`, minor releases may contain breaking changes.
|
|
|
8
8
|
|
|
9
9
|
## Unreleased
|
|
10
10
|
|
|
11
|
+
## 0.12.1 — 2026-09-05
|
|
12
|
+
|
|
13
|
+
### Breaking
|
|
14
|
+
|
|
15
|
+
- **`ds-table`'s data-grid features are directives now, so a table that does not use them stops
|
|
16
|
+
carrying them.** Reordering, the column picker and resizing left the component; a table with none
|
|
17
|
+
of them costs **35 647 → 16 410 B gzip, −54%**, and `@angular/cdk/drag-drop` goes with the drag
|
|
18
|
+
handle. Each feature is one import and one attribute away, and two of the moved inputs changed
|
|
19
|
+
shape on the way:
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<!-- was -->
|
|
23
|
+
<ds-table [reorderableColumns]="true" [resizableColumns]="true" [exportButton]="true" />
|
|
24
|
+
|
|
25
|
+
<!-- now: add the directive to the component's imports, and its attribute here -->
|
|
26
|
+
<ds-table dsTableColumns reorderableColumns dsTableResize dsTableExport />
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Every switch above reads as a boolean attribute, so its bare presence turns it on and
|
|
30
|
+
`[reorderableColumns]="true"` is the same thing written longer. Only `[dsTableExport]="false"`
|
|
31
|
+
earns a value, and it turns the built-in button off while keeping the feature.
|
|
32
|
+
|
|
33
|
+
| feature | directive | class, and where it lives | its inputs |
|
|
34
|
+
| --- | --- | --- | --- |
|
|
35
|
+
| reorder + the column picker | `dsTableColumns` | `DsTableColumns`, `…/table-columns` | `reorderableColumns`, `[(hiddenKeys)]`, `[(columnOrder)]` |
|
|
36
|
+
| column resizing | `dsTableResize` | `DsTableResize`, `…/table-resize` | none — the bare attribute is the whole switch |
|
|
37
|
+
| CSV export | `dsTableExport` | `DsTableExport`, `…/table-export` | `exportFilename`, `exportFetcher`, `(exportFailed)` |
|
|
38
|
+
|
|
39
|
+
**`exportButton` is gone as an input** — the directive's own presence renders the button, and
|
|
40
|
+
`[dsTableExport]="false"` keeps the feature while hiding the built-in control. `runExport()`,
|
|
41
|
+
`exporting()` and `exportCsv()` stay on the table, because their documentation promises a button
|
|
42
|
+
elsewhere on the page can drive them; they now delegate to the directive, and calling one with no
|
|
43
|
+
directive present logs a dev-mode warning rather than doing nothing. **Binding a moved input
|
|
44
|
+
without adding its directive does not compile**: `reorderableColumns`, `[(hiddenKeys)]`,
|
|
45
|
+
`[(columnOrder)]`, `resizableColumns` and `[(columnWidths)]` are gone from `ds-table` with no
|
|
46
|
+
passthrough, so the template fails the build rather than quietly doing nothing. Two of them do not
|
|
47
|
+
come back as bindings at all — `dsTableResize` declares no inputs and no outputs, so
|
|
48
|
+
`[(columnWidths)]`, `[columnWidths]` and `(columnWidthsChange)` compile nowhere: resizing can no
|
|
49
|
+
longer be toggled by an expression, and the widths are reachable only through a
|
|
50
|
+
`viewChild(DsTableResize)`. `dsTableColumns` keeps the other three under their old names and
|
|
51
|
+
defaults, and `(hiddenKeysChange)` and `(columnOrderChange)` still fire on the same element, so
|
|
52
|
+
those bindings survive once the attribute is there. The handle itself is unchanged: the same
|
|
53
|
+
keyboard steps and minimum width, the same markup, the same `col-*` classes, and no custom
|
|
54
|
+
property added or removed.
|
|
55
|
+
|
|
56
|
+
`persistLayout` and `storageKey` stay on the table, under the same storage key and the same
|
|
57
|
+
`{ order, widths, hidden }` shape, so a layout saved by an earlier version still restores — a
|
|
58
|
+
part whose directive is absent is simply not applied. Saving works the other way round now: only
|
|
59
|
+
the slices the present directives own are written, where every save used to carry all three. A
|
|
60
|
+
table that takes `dsTableResize` and not `dsTableColumns` rewrites an existing entry with widths
|
|
61
|
+
alone on its first save and drops the reader's stored order and hidden columns, and `persistLayout`
|
|
62
|
+
with a `storageKey` and neither directive writes nothing at all. Keep both directives on a table
|
|
63
|
+
whose layout you persist.
|
|
64
|
+
|
|
65
|
+
- **A column declared `hidden: true` renders unless `dsTableColumns` is on the table.** Column
|
|
66
|
+
visibility is the directive's stage now — `ds-table` reads neither `hidden` nor `hideable` without
|
|
67
|
+
it. `TableColumn` is unchanged, both fields still declared and still typed, so a table that sets
|
|
68
|
+
them compiles exactly as before and shows every column. Two structural consequences ride along. A
|
|
69
|
+
table with hideable columns and no `rowActions` used to grow a trailing utility column to carry the
|
|
70
|
+
picker button; without the directive that header cell and its body cells are gone, so a rule that
|
|
71
|
+
counts columns lands one off. And with the directive the button renders unconditionally, where it
|
|
72
|
+
used to need at least one `hideable` column or `reorderableColumns` — a table that takes
|
|
73
|
+
`dsTableColumns` for reordering alone gains the utility column plus a "Choose columns" panel whose
|
|
74
|
+
checkboxes are all disabled. Add the directive wherever a column is declared `hidden` or
|
|
75
|
+
`hideable`.
|
|
76
|
+
|
|
77
|
+
- **A focused `ds-checkbox`, `ds-radio` or `ds-switch` rings the whole row, label included, instead
|
|
78
|
+
of the glyph.** Ringing the glyph put a brand ring concentric with the brand ring the CHECKED state
|
|
79
|
+
already draws — three bands through two gaps, a target rather than two states a keyboard user has
|
|
80
|
+
to tell apart while moving through a group. The row is also what the pointer already hits, since
|
|
81
|
+
the label carries the hit area. A control with no label has no row to speak of, so there the ring
|
|
82
|
+
keeps its distance instead (`--space-1-5` rather than the usual 2px offset). It is keyboard-only:
|
|
83
|
+
the row matches `:has(:focus-visible)`, so clicking a checkbox with the pointer leaves no ring
|
|
84
|
+
behind. A `ds-table` selection checkbox has no row to ring, so it rings its own box.
|
|
85
|
+
|
|
86
|
+
- **Every hand-written `outline: none` in the library became `focus.own-indicator`.** The declaration
|
|
87
|
+
is the same everywhere except in forced colours, where it is now skipped. Windows High Contrast
|
|
88
|
+
drops `box-shadow`, so a field whose shell rings with the halo had nothing left once its inner
|
|
89
|
+
control was silenced — the one mode where an indicator is mandatory was the one mode without one.
|
|
90
|
+
If you silence a DS control in your own stylesheet, wrap it the same way:
|
|
91
|
+
`@media not (forced-colors: active) { outline: none; }`.
|
|
92
|
+
|
|
93
|
+
- **Every focus ring on a control is an `outline` now, not a box-shadow, and its gap is genuinely
|
|
94
|
+
see-through.** A shadow cannot leave a hole: the gap had to be painted with a guessed colour, and
|
|
95
|
+
that guess was a coloured rim everywhere it was wrong — a control standing on a tinted band, a
|
|
96
|
+
photo or a card of another shade got a surface-coloured band around it rather than its own ground.
|
|
97
|
+
`outline-offset` does not paint its gap at all, so the ring now floats over whatever the control
|
|
98
|
+
actually sits on. Two things follow. A negative offset draws the ring INSIDE the element, which is
|
|
99
|
+
how a row inside a clipping panel keeps an indicator that `overflow: hidden` used to eat — `ds-menu`
|
|
100
|
+
and the dropdown panels do this. And the ring no longer competes with `box-shadow`: a focused card
|
|
101
|
+
keeps its elevation, where before the two signals fought for one property. A state carried partly
|
|
102
|
+
by a shadow — the selected segment, the active pill, the sidenav item's rail — still drops that
|
|
103
|
+
shadow while focused, deliberately, because its fill and label colour go on saying which one it is.
|
|
104
|
+
— Restyle the ring through the new `--focus-ring-width` (2px, the WCAG 2.4.13 floor for a
|
|
105
|
+
perimeter indicator), plus `--focus-ring-color` and `--focus-ring-offset`, which are unchanged. Components author it through one mixin,
|
|
106
|
+
`focus.ring($offset)`, so there is a single place to change it.
|
|
107
|
+
— If you set `--focus-ring-inner` to a colour to get a visible ring back, remove it: the token no
|
|
108
|
+
longer reaches a control's ring. It still composes the field halo that `data-focus="ring"` opts into.
|
|
109
|
+
— Watch for an `outline: none` of your own on a DS control. It used to remove nothing, because the
|
|
110
|
+
ring was a shadow; it now removes the indicator outright, and nothing warns.
|
|
111
|
+
|
|
112
|
+
- **Thirteen `--ds-<component>-focus-shadow` tokens are gone**, on button, icon-button, card,
|
|
113
|
+
checkbox, radio, switch, tabs, toast, breadcrumbs, pagination, sidenav-item, sidenav-group and
|
|
114
|
+
menu-item. Each resolved to `--ds-control-focus-shadow`, which controls no longer read. Set
|
|
115
|
+
`--focus-ring-color`, `--focus-ring-width` or `--focus-ring-offset` on the component's own scope
|
|
116
|
+
instead. Field tokens — `--ds-input-focus-shadow` and its siblings — are unchanged, because fields
|
|
117
|
+
keep the soft halo. An override of a removed token still parses and cascades and changes nothing,
|
|
118
|
+
so this fails silently.
|
|
119
|
+
|
|
120
|
+
- **`data-focus="field"` and `data-focus="outline"` are removed** from the one-place focus switch.
|
|
121
|
+
Both described swapping one box-shadow for another, which no longer describes anything a control
|
|
122
|
+
does. `ring`, `edge` and `inset` keep their meaning, and `edge` is the tight-ring answer that
|
|
123
|
+
`field` was reached for. An unknown value matches nothing and is ignored in silence.
|
|
124
|
+
|
|
125
|
+
### Added
|
|
126
|
+
|
|
127
|
+
- **The check mark overshoots as it lands, and its motion is now four tokens.** A tick that scaled
|
|
128
|
+
in on a flat ease read as a state flag; it now arrives on `--ease-spring` over 180ms and leaves on
|
|
129
|
+
`--ease-accelerate` over 120ms, so it settles rather than snaps. The timing is a motion ROLE —
|
|
130
|
+
`--ds-motion-check-enter-duration`, `--ds-motion-check-enter-easing`, `--ds-motion-check-exit-duration`,
|
|
131
|
+
`--ds-motion-check-exit-easing` — with per-scope hooks `--ds-check-mark-*` beneath it, so a dense
|
|
132
|
+
option list can stay calm while forms overshoot. To put the previous motion back, set the four
|
|
133
|
+
tokens to the linear timing they replaced. Both durations resolve through the `--duration-*`
|
|
134
|
+
scale, which `prefers-reduced-motion` already zeroes, so the mark goes instant on its own.
|
|
135
|
+
- **The tick and the indeterminate bar are painted as a mask over `currentcolor`, not as a hardcoded
|
|
136
|
+
white stroke.** One path serves a filled box and a bare row — white on the accent fill, the row's
|
|
137
|
+
own colour on a surface — and under `forced-colors: active` it resolves to `CanvasText`, so in
|
|
138
|
+
Windows High Contrast a checked or indeterminate mark stays distinct from the forced fill of the
|
|
139
|
+
box it sits in, where before the two came out the same colour. This is the mark in `ds-checkbox`,
|
|
140
|
+
in `ds-table`'s select-all, row and column-filter boxes, in a picker panel's option ticks, and in
|
|
141
|
+
`ds-autocomplete` and `ds-multi-select`. Nothing to change on your side: a colour override of your
|
|
142
|
+
own is unaffected, and forced-colors mode discards colour overrides either way.
|
|
143
|
+
|
|
144
|
+
- **Every option mark in a picker panel is now the SAME mark as a checkbox's,** and animates with
|
|
145
|
+
it: the selected row in `ds-select` and single-mode `ds-autocomplete`, the option boxes in
|
|
146
|
+
multi-mode `ds-autocomplete`, and every box in a `ds-multi-select` panel — option rows, group-all
|
|
147
|
+
and select-all. Each was a `ds-icon name="check"` rendered only while selected, so it had no
|
|
148
|
+
resting state to move from and popped in. The indeterminate bar animates on the same tokens now,
|
|
149
|
+
instead of appearing as a separate element. The mark is painted as a mask over `currentColor`,
|
|
150
|
+
which is what lets one path serve a filled box (white on the accent) and a bare option row
|
|
151
|
+
(accent on the surface). `--ds-option-check-color` still picks its colour.
|
|
152
|
+
|
|
153
|
+
- **A picker panel's option box is drawn at the checkbox's own border weight.** It used
|
|
154
|
+
`--border-width-strong` where `ds-checkbox` and `ds-radio` read `--check-bw`, so the same control
|
|
155
|
+
shipped at two thicknesses; the panel boxes in `ds-multi-select` and multi-mode `ds-autocomplete`
|
|
156
|
+
are 1px now, on the unchanged 20px `--check-size`.
|
|
157
|
+
- **The typing area beside an autocomplete's chips is 40px, not 80px.** `--ds-autocomplete-input-minw`
|
|
158
|
+
is a floor, so in the default `width="fill"` the input still stretches across the row and only the
|
|
159
|
+
chip case changes; under `width="content"` it is what an empty field measures. Set the hook back to
|
|
160
|
+
`80px` to keep the old footprint.
|
|
161
|
+
- **A multi-select panel's "Select all" row clips its label like the option rows do.**
|
|
162
|
+
`.select-all-label` carried no clip at all, so a narrow panel wrapped that one row to two lines
|
|
163
|
+
beside single-line options. The per-group "All of …" row is not wrapped in an element, so it is
|
|
164
|
+
not clipped and a long group name still wraps there.
|
|
165
|
+
- **`ds-radio` accepts `[deselectable]`,** which lets a checked STANDALONE radio be cleared by
|
|
166
|
+
clicking it again. Off by default and ignored inside `ds-radio-group`, where clearing the one
|
|
167
|
+
selected option would leave the group with no value through a gesture the group cannot see.
|
|
168
|
+
|
|
169
|
+
### Changed
|
|
170
|
+
|
|
171
|
+
- **A date field is as wide as its date.** The trigger sized its input with the HTML `size`
|
|
172
|
+
attribute, which counts CHARACTERS — and a mask's slashes, spaces and dash are all narrower than a
|
|
173
|
+
digit, so a range reserved roughly two digits of dead space between the value and the calendar
|
|
174
|
+
button. The painted overlay now sits in the flow and measures the field with the real glyphs.
|
|
175
|
+
- **Mono type no longer ligates operators.** JetBrains Mono draws `===` as one triple-bar glyph and
|
|
176
|
+
`!=` as a struck equals, so any prose naming an operator showed something other than the characters
|
|
177
|
+
it was discussing. `--ds-t-mono-ligatures` puts them back for a consumer who wants them.
|
|
178
|
+
- **`ds-table` selects rows with the design system's checkbox, not the browser's.** Its
|
|
179
|
+
`<input type="checkbox">` was styled nowhere at all, so the OS drew it — no DS geometry, no DS
|
|
180
|
+
colours, no mark. The box is a shared partial now, so it cannot drift from `ds-checkbox`, and it
|
|
181
|
+
answers the same hooks: `--ds-checkbox-bg-color`, `--ds-checkbox-border-color`,
|
|
182
|
+
`--ds-checkbox-selected-bg-color` and their siblings reach a table's selection column where they
|
|
183
|
+
previously did nothing. The element is still an `<input type="checkbox">`, so a selector of your
|
|
184
|
+
own aimed at it still matches — but it is now competing with the library's own rule instead of
|
|
185
|
+
styling something nothing else touched, and the box sets `appearance: none`.
|
|
186
|
+
|
|
187
|
+
- **Three classes gained members — only matters if you SUBCLASS one.** `MenuComponent` gained
|
|
188
|
+
`anyIcon`, which it computes over its content children, `RadioComponent` gained `onClick`
|
|
189
|
+
alongside the new `deselectable` input, and `TableComponent` gained `anySelected`, a computed
|
|
190
|
+
over the selection set, the anchors the table's opt-in features render into, and the seam they
|
|
191
|
+
write through. A subclass that declares any of those names stops building, whether or not the
|
|
192
|
+
member is public API.
|
|
193
|
+
|
|
194
|
+
**`TableComponent` also LOST the data-grid half**, and how you hear about it depends on how the
|
|
195
|
+
subclass was written: `columnOrder`, `hiddenKeys`, `columnWidths`, `reorderableColumns`,
|
|
196
|
+
`resizableColumns`, `exportButton` and their handlers moved to `dsTableColumns`, `dsTableResize`
|
|
197
|
+
and `dsTableExport`. A member you marked `override` fails the build, because there is no base
|
|
198
|
+
member left to override; one you declared without the modifier still compiles, overrides nothing
|
|
199
|
+
and runs never.
|
|
200
|
+
|
|
201
|
+
Three new classes come with those directives, and all three are internal: `DsTableLayout` is
|
|
202
|
+
internal, the seam a feature registers with; `TableColumnsPanelComponent` is internal, the
|
|
203
|
+
column panel; `TableColumnsTriggerComponent` is internal, its header button; and
|
|
204
|
+
`TableExportButtonComponent` is internal, the toolbar button. None is API, none appears in the
|
|
205
|
+
component reference, and each is created imperatively — they are named here only so a name
|
|
206
|
+
collision in a subclass is greppable from the first release that has them.
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
- **The focus ring eases in instead of appearing at full strength.** Only its colour moves — the
|
|
210
|
+
ring's geometry is already in place, so nothing shifts and the indicator lands where it will stay.
|
|
211
|
+
`outline-offset` is deliberately not animated: an expanding ring lags the caret on a fast Tab, and
|
|
212
|
+
the indicator is a keyboard user's only signal of where they are. It runs as an `animation` rather
|
|
213
|
+
than a transition, because `transition` is a single property and a component that declares its own
|
|
214
|
+
list would have had it replaced for as long as the element held focus — a focused button would have
|
|
215
|
+
lost its background easing. The duration is `--duration-fast`, which the library already zeroes
|
|
216
|
+
under `prefers-reduced-motion: reduce`, so a reduced-motion user sees the ring appear instantly
|
|
217
|
+
with no separate opt-out to wire up.
|
|
218
|
+
|
|
219
|
+
- **`ds-split-button` with an empty `menuItems` disables its chevron instead of opening an empty
|
|
220
|
+
menu.** The template carried no guard, so a split button configured with nothing to list still
|
|
221
|
+
opened a panel with nothing in it — a chevron is a promise that there is more, and an empty panel
|
|
222
|
+
reads as a broken control. The trigger is now disabled whenever `menuItems` is empty, and a
|
|
223
|
+
development build warns once and names `ds-button` as the control for a single action. It is
|
|
224
|
+
disabled rather than hidden, so the button keeps its geometry: a `ds-split-button` whose items
|
|
225
|
+
arrive asynchronously shows a disabled chevron until they do and enables itself when they land.
|
|
226
|
+
The panel can only ever be the `ds-menu` built from `menuItems` — nothing projects into it, and
|
|
227
|
+
anything else composes from `ds-button` and `ds-popover`. Content you project into
|
|
228
|
+
`ds-split-button` itself still lands on the main button, as before.
|
|
229
|
+
|
|
230
|
+
### Fixed
|
|
231
|
+
|
|
232
|
+
- **A `ds-table` column filter's value list draws proper checkbox boxes.** That list renders in an
|
|
233
|
+
overlay, outside the element that declares the box's `--ds-checkbox-*` resolvers — and an
|
|
234
|
+
unresolved custom property inside a `border` invalidates the whole declaration at computed-value
|
|
235
|
+
time, which left a box with no border and no size. The shared box carries each resolver's own
|
|
236
|
+
default as its fallback now, so it paints wherever it is projected, including into an overlay of
|
|
237
|
+
your own. No token name and no default changed, and there is nothing to change on your side.
|
|
238
|
+
|
|
239
|
+
- **The bulk-action bar vanished exactly when every row was selected.** It was gated on the header
|
|
240
|
+
checkbox's INDETERMINATE predicate — "some rows, but not all" — so selecting the last row hid the
|
|
241
|
+
bar with the selection still live, which is when a bulk action is most likely. It answers the
|
|
242
|
+
selection being non-empty now — the selection set itself, not the rows on screen, so the bar also
|
|
243
|
+
stays up where it used to disappear: select rows on page one and page forward and it holds, and it
|
|
244
|
+
holds when a filter hides every selected row. The selection is still live and still actionable,
|
|
245
|
+
which is the point of the bar.
|
|
246
|
+
|
|
247
|
+
- **The skeleton shimmer is one wave across the screen again, and it no longer stutters.** Every
|
|
248
|
+
`ds-skeleton` shows the slice of a single viewport-wide band passing over its own position, so a
|
|
249
|
+
page of placeholders reads as one light moving across it rather than as N loops running side by
|
|
250
|
+
side. The band is two tones of the same surface — colour washing over the placeholders, not a
|
|
251
|
+
highlight shone on them. It replaces a per-element `mask-position` slide of a 200vw mask, which on
|
|
252
|
+
a narrow skeleton parked the band off the element for most of the loop, flicked it through, and
|
|
253
|
+
restarted on a hard cut. The wave is anchored with `background-attachment: fixed`, which resolves
|
|
254
|
+
against the nearest transformed, filtered or `will-change: transform` ancestor rather than the
|
|
255
|
+
viewport — so skeletons inside an animated drawer or a transform-based layout wave locally on that
|
|
256
|
+
ancestor instead of joining the page-wide one.
|
|
257
|
+
|
|
258
|
+
- **A focused first or last `ds-accordion-item` drew a square ring inside the rounded box.** An
|
|
259
|
+
outline follows its own element's radius, and the rounded corner belongs to `ds-accordion`, not to
|
|
260
|
+
the header button. The first and last header take that corner now; the rows between stay square,
|
|
261
|
+
because there is no corner there to follow.
|
|
262
|
+
|
|
263
|
+
- **A `ds-date-picker` day outside the allowed range highlighted under the pointer as though it
|
|
264
|
+
could be picked.** The day button is only ever `aria-disabled`, never natively disabled, so its
|
|
265
|
+
hover rule still matched and offered an unselectable date. Hover now skips a disabled day; the
|
|
266
|
+
colour and cursor it already carried are unchanged.
|
|
267
|
+
|
|
268
|
+
- **Three fields answered focus with a one-pixel border tint and nothing else.** The sidenav
|
|
269
|
+
footer's search box, the table's column filter and the table's inline cell editor each turned the
|
|
270
|
+
outline off to make room for a border colour change — one pixel, under the WCAG 2.4.13 floor of a
|
|
271
|
+
2px perimeter, and on the cell editor the accent border is already its resting chrome, so focus
|
|
272
|
+
changed nothing at all. All three ring properly now and keep the tint as a second signal.
|
|
273
|
+
|
|
274
|
+
- **The search field inside a `ds-multi-select` panel showed no focus indicator at all.** It zeroed
|
|
275
|
+
its own outline and no ancestor painted one, so a keyboard user opening the panel and tabbing to
|
|
276
|
+
the filter had nothing on screen telling them where they were. The row around it rings now, drawn
|
|
277
|
+
inward because the panel clips, and the input is silenced so only one ring appears.
|
|
278
|
+
|
|
279
|
+
- **A focused `ds-icon-button` sitting flush inside a clipping box lost three sides of its ring.**
|
|
280
|
+
Seen first on the documentation sidebar's collapse toggle, then swept: a `ds-table` row sits flush
|
|
281
|
+
inside the horizontal scroller, and a collapsed `ds-sidenav` clips its own brand link. In each the
|
|
282
|
+
ring had zero room outward and read as sitting behind the control. Any box that clips can now flip
|
|
283
|
+
`--focus-ring-offset` negative on itself and everything focusable inside keeps a whole ring.
|
|
284
|
+
|
|
285
|
+
- **A `ds-menu` row without an icon started one icon-width left of its neighbours.** `.menu-item` is
|
|
286
|
+
a flex row with a gap, and an item that projected no icon collapsed its wrapper to zero width while
|
|
287
|
+
the gap stayed, so a mixed menu had two text axes and an unindented row read as a different kind of
|
|
288
|
+
thing. The menu decides it now rather than the item — an item cannot see its siblings — so one
|
|
289
|
+
item with an icon makes every item reserve the slot. A menu with no icons anywhere is unchanged and
|
|
290
|
+
stays flush to its padding. The new `--ds-menu-item-icon-size` sets the width the slot reserves.
|
|
291
|
+
|
|
292
|
+
- **`ds-split-button` answers a press on either half.** Both segments were missing the darken-plus-
|
|
293
|
+
micro-scale that every other button in the library gives a press, so the one control built from two
|
|
294
|
+
buttons was the one that felt dead under the finger. Each half now darkens through
|
|
295
|
+
`--ds-split-button-bg-color-active` (or `--ds-split-button-outline-bg-color-active` on the outline
|
|
296
|
+
variant) and scales by `--ds-split-button-press-scale`, with the same opt-in pressed halo hook the
|
|
297
|
+
button has (`--ds-split-button-pressed-shadow`, default none). The scale runs AWAY from the seam —
|
|
298
|
+
`transform-origin` is the inner edge on each half — because a centred scale pulls the pressed half's
|
|
299
|
+
inner edge inward and opens a hairline gap in the joint.
|
|
300
|
+
|
|
11
301
|
## 0.12.0 — 2026-09-04
|
|
12
302
|
|
|
13
303
|
### Added
|
|
@@ -250,6 +540,17 @@ this package ships under `migrations/`.
|
|
|
250
540
|
one of those lines has something new to say, so "Export failed" still stands until the reader
|
|
251
541
|
moves on, and everything after it is announced again.
|
|
252
542
|
|
|
543
|
+
### What you can now DELETE
|
|
544
|
+
|
|
545
|
+
None of this is required — skipping it leaves working code that is merely redundant. Each row is a
|
|
546
|
+
workaround this release made unnecessary. Generated from the `deleteList` in the release manifest
|
|
547
|
+
this package ships under `migrations/`.
|
|
548
|
+
|
|
549
|
+
| If you have | Delete it, because |
|
|
550
|
+
| --- | --- |
|
|
551
|
+
| a raised `--layer-toast` or `--layer-tooltip` | It never fixed toast-under-modal: overlay hosts live in the browser's top layer, which paints in the order hosts were shown and ignores z-index entirely. The library re-shows the toast host itself now. A layer-scale retune for your own stacking (or for browsers without popover support) is still load-bearing and stays. |
|
|
552
|
+
| a `--ds-table-head-h` override added so the loading scrim stops cutting into the header | The scrim measures the real header height now. Sizing the header itself with this token is its normal use and stays. |
|
|
553
|
+
|
|
253
554
|
## 0.11.3 — 2026-09-02
|
|
254
555
|
|
|
255
556
|
### Breaking
|
|
@@ -300,14 +601,14 @@ this package ships under `migrations/`.
|
|
|
300
601
|
overrides nothing and silently never runs. There is no public replacement to call — the countdown
|
|
301
602
|
is the region's own business now. Delete the override.
|
|
302
603
|
|
|
303
|
-
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
604
|
+
- **Four event bindings are silently dead, and there is no `<ds-dropdown>`.** `ds-banner` and
|
|
605
|
+
`ds-toast` emit `(closed)`, not `(dismissed)`; `ds-pagination` emits `(currentPageChange)`, not
|
|
606
|
+
`(pageChange)`; `ds-table` emits `(rowClicked)`, not `(rowClick)`. An unknown event binding
|
|
607
|
+
registers a DOM listener and never fires, so a handler on one of those four runs never, with
|
|
608
|
+
nothing in the console — check your templates for them. `<ds-dropdown>` is not a component of
|
|
609
|
+
this library; its work is `<ds-select>`, and an import naming the other one does not compile.
|
|
610
|
+
`components.md` names the shipped identifiers throughout, and carries `<ds-alert>` with its
|
|
611
|
+
`'neutral'` variant.
|
|
311
612
|
|
|
312
613
|
### Fixed
|
|
313
614
|
|
|
@@ -711,10 +1012,9 @@ this package ships under `migrations/`.
|
|
|
711
1012
|
component's own tokens. Its option row carries only `[disabled]` where `ds-select` sets
|
|
712
1013
|
`.is-disabled` beside it, which is why it still declares an `.option:disabled` of its own.
|
|
713
1014
|
|
|
714
|
-
- **
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
compile rather than passing a dead string.
|
|
1015
|
+
- **The `triggerDisplay` union is exported as `DsTriggerDisplay`** — `'full' | 'count' | 'labels'`.
|
|
1016
|
+
A variable typed against it fails to compile rather than passing a dead string, and each name says
|
|
1017
|
+
what the trigger shows, which is what matters once `labels` sits beside `count`.
|
|
718
1018
|
|
|
719
1019
|
- **Every single-line label clips through one mixin now.** Seven rules hand-rolled
|
|
720
1020
|
`overflow: hidden; text-overflow: ellipsis; white-space: nowrap` — the `ds-select` trigger text,
|
|
@@ -1028,36 +1328,6 @@ this package ships under `migrations/`.
|
|
|
1028
1328
|
container now, which drops whitespace-only text nodes outright, so the identifier renders flush and
|
|
1029
1329
|
the template stays free to be formatted for reading. No API change, and nothing to do on your side.
|
|
1030
1330
|
|
|
1031
|
-
- **Nine defects in six already-published manifests, and a repo upgraded before today may be holding
|
|
1032
|
-
the result.** The prose split above rewrote every item; this is the separate, smaller set where the
|
|
1033
|
-
DATA was wrong. It matters
|
|
1034
|
-
because these files are executed: your upgrade tooling read them, acted, and reported done.
|
|
1035
|
-
**Two changes had no item at all.** `0.9.0` never filed the six inputs whose declared type
|
|
1036
|
-
widened from `InputSignal` to
|
|
1037
|
-
`InputSignalWithTransform` (`min`/`max`/`maxLength` on `ds-input`, `min`/`max` on
|
|
1038
|
-
`ds-number-stepper`, `maxLength` on `ds-textarea`) — the TS2322 an explicit annotation hits and the
|
|
1039
|
-
TS2416 a subclass hits had no explanation anywhere. `0.10.0` never filed
|
|
1040
|
-
`ModalService.confirm({ tone: 'error' })` gaining the modal's error badge in the header.
|
|
1041
|
-
**Two instructions were wrong, so following them edited the wrong thing.** `0.7.1`’s à-la-carte
|
|
1042
|
-
`@use` lines were written as bare `styles/…` specifiers, which resolve only inside the library's own build and
|
|
1043
|
-
fail from an app; they are package-qualified now. And `0.7.1`’s modal `.title` was filed as a
|
|
1044
|
-
`class-rename` to `.heading` when no rename happened — it is a `behavior` item now, so anyone who
|
|
1045
|
-
renamed that class did so on our word and can put it back.
|
|
1046
|
-
**One `verify` certified a bug as correct.** `0.8.0` said an unset `sortMode` resolves to `server`.
|
|
1047
|
-
It resolves to `client`, so a server-paged table left unset sorts only the rows in hand — and the
|
|
1048
|
-
check passed anyway. That release’s item now says to declare `sortMode="server"` explicitly.
|
|
1049
|
-
**Three items searched too few file types.** `0.5.1`’s two `variant` remaps and `0.10.0`’s
|
|
1050
|
-
`floating` removal were marked template-only, so a `variant=` sitting in a stylesheet or a `.ts`,
|
|
1051
|
-
and the five dead floating-label tokens (`--field-h-floating` and the four `--field-floating-*`),
|
|
1052
|
-
were never looked for. Their `surface` now names style and TypeScript too.
|
|
1053
|
-
**What to do:** if your last upgrade ran before this release AND crossed one of those six versions,
|
|
1054
|
-
re-run just those items — `migrations/<version>.json` now carries them right, and nothing else in
|
|
1055
|
-
those files changed meaning. Also corrected: `0.10.2`’s two `maxVisibleChips` items now declare
|
|
1056
|
-
that they supersede `0.10.0#max-visible-chips-zero-inverted`, which an upgrade stepping through both
|
|
1057
|
-
had been applying for nothing.
|
|
1058
|
-
**Sixteen more rows** in the "What you can now DELETE" tables of
|
|
1059
|
-
0.6.1, 0.7.1, 0.8.0, 0.9.0, 0.10.0 and 0.10.3 — workarounds those releases made redundant and never
|
|
1060
|
-
listed.
|
|
1061
1331
|
|
|
1062
1332
|
### What you can now DELETE
|
|
1063
1333
|
|
|
@@ -1098,8 +1368,8 @@ workaround written against a hook that only landed in this release.
|
|
|
1098
1368
|
a single ring, and the reset stays scoped to the field element, so `clear-btn` and
|
|
1099
1369
|
`password-toggle` inside the same box keep their own rings; they are real tab stops.
|
|
1100
1370
|
- **Fourteen public override tokens are now listed in the token reference.** They were always
|
|
1101
|
-
overridable and nothing in the components changed
|
|
1102
|
-
|
|
1371
|
+
overridable and nothing in the components changed. Listed and described:
|
|
1372
|
+
`--ds-container-pad-x`, `--ds-multi-select-border-color`
|
|
1103
1373
|
(+`-focus`), `--ds-segmented-selected-bg-color` / `-label-color` / `--ds-segmented-radius`,
|
|
1104
1374
|
`--ds-time-picker-option-bg-color-selected` / `-text-color-selected` / `-bg-color-hover`,
|
|
1105
1375
|
`--ds-time-picker-trigger-bg-color` / `-border` / `-color`, `--ds-field-message-icon-offset` and
|
|
@@ -2204,8 +2474,7 @@ None of this is required — skipping it leaves working code that is merely redu
|
|
|
2204
2474
|
`--ds-*` tokens it named no longer exist** (`--ds-button-fg`, `--ds-sidenav-item-bg-hover`, the
|
|
2205
2475
|
whole `--ds-pagehdr-*` family, …), `ds-button` was described with its pre-2026-06 single `variant`
|
|
2206
2476
|
axis (`'primary' | 'secondary' | 'tertiary' | …`) instead of `color` × `variant`, and the topbar
|
|
2207
|
-
section
|
|
2208
|
-
topbar owns the gap below it and that pages must not add their own.
|
|
2477
|
+
section named a `--ds-topbar-margin-b` that this library does not define.
|
|
2209
2478
|
Every name in the body is now the shipped one, and the two paragraphs are rewritten from the
|
|
2210
2479
|
components' actual API.
|
|
2211
2480
|
|
|
@@ -2802,6 +3071,8 @@ skipping it leaves working code that is merely redundant.
|
|
|
2802
3071
|
| If you have | Delete it, because |
|
|
2803
3072
|
| --- | --- |
|
|
2804
3073
|
| `.button.button.button { … }` or rules against `.v-outline` / `.c-secondary` | `ds-button` reflects `[data-variant]` and `[data-color]` on the HOST. Use `ds-button[data-variant="outline"]` |
|
|
3074
|
+
| your own vertical-padding override on a `sm`/`lg` textarea (a `--ds-input-pad-y` retune or a local rule compensating the wrong padding) | sm/lg textareas rendered the md vertical padding; they are corrected now, so the compensation stacks on top of the fix. A deliberate global `--ds-input-pad-y` retune is a legitimate hook and stays. |
|
|
3075
|
+
| a `height`/`min-height` pinned on `ds-autocomplete`, `ds-multi-select`, `ds-color-picker`, `ds-number-stepper` or `ds-split-button` to make `--ds-field-height` "work" | Those six spelled their height as the raw `--hit-*` value, so the token did nothing for them; they read the field scale now. |
|
|
2805
3076
|
| `--radius-sm: 0` to square a checkbox | `--ds-checkbox-radius` |
|
|
2806
3077
|
| `.title.title { font-size }` inside a modal | `--ds-modal-title-font-size` |
|
|
2807
3078
|
| Pagination label type overrides — a rule on `ds-pagination` setting `--ds-pagination-label-*` | `--ds-pagination-label-*` |
|
|
@@ -3510,7 +3781,7 @@ workaround this release made unnecessary. Generated from the `deleteList` in `mi
|
|
|
3510
3781
|
### Changed
|
|
3511
3782
|
|
|
3512
3783
|
- **BREAKING: the control `size` scale is unified into one shared `DsSize` type.** The per-component
|
|
3513
|
-
size types (`InputSize`, `ButtonSize`, `SelectSize`, `
|
|
3784
|
+
size types (`InputSize`, `ButtonSize`, `SelectSize`, `CheckboxSize`, `RadioSize`,
|
|
3514
3785
|
`SwitchSize`, `SpinnerSize`, `TextareaSize`, `NumberStepperSize`, `DatePickerSize`, `TimePickerSize`,
|
|
3515
3786
|
`DrawerSize`, `IconButtonSize`, `AutocompleteSize`) are removed from the public API — import
|
|
3516
3787
|
`DsSize` instead (`type DsSize = 'sm' | 'md' | 'lg'`, exported from the package root). `AvatarSize`,
|
|
@@ -4043,17 +4314,16 @@ workaround this release made unnecessary. Generated from the `deleteList` in `mi
|
|
|
4043
4314
|
type-to-pick control; "combobox" survives only as the ARIA role — which the select-only
|
|
4044
4315
|
`ds-select` trigger also carries. Renames: selector `ds-combobox` → `ds-autocomplete`;
|
|
4045
4316
|
`ComboboxComponent` → `AutocompleteComponent`; exported types `ComboboxOption` /
|
|
4046
|
-
`
|
|
4047
|
-
`AutocompleteOptionGroup` / `AutocompleteSize` / `AutocompleteWidth`; public tokens
|
|
4317
|
+
`ComboboxSize` → `AutocompleteOption` / `AutocompleteSize`; public tokens
|
|
4048
4318
|
`--ds-combobox-focus-shadow` / `--ds-combobox-maxw` / `--ds-combobox-input-minw` →
|
|
4049
4319
|
`--ds-autocomplete-*`. Behavior unchanged.
|
|
4050
4320
|
- **`ds-dropdown` removed — use `ds-select`.** The two were near-identical select-only single
|
|
4051
4321
|
pickers (same trigger, same panel, same keyboard model); `ds-select` is the richer canonical
|
|
4052
4322
|
form field (`ControlValueAccessor`, `invalid` + `hint` via `ds-field-message`, `required` /
|
|
4053
4323
|
`optional`, per-option icons, group-level `disabled`). Migration: `<ds-dropdown>` →
|
|
4054
|
-
`<ds-select>`; `[error]` → `[invalid]`; `
|
|
4055
|
-
`[options]
|
|
4056
|
-
`
|
|
4324
|
+
`<ds-select>`; `[error]` → `[invalid]`; `DropdownOption` / `DropdownSize` → `SelectOption` /
|
|
4325
|
+
`SelectSize`. Groups go inline in `[options]`, which is what `ds-select` already took
|
|
4326
|
+
(`SelectItem = SelectOption | SelectOptionGroup`).
|
|
4057
4327
|
`readOnly` moved to `ds-select` (see Added).
|
|
4058
4328
|
- **Public token prefixes normalized to match the selector (not aliased).** Four components had
|
|
4059
4329
|
their `--ds-*` token name fragments hyphenated to align with the Angular selector; the old
|
|
@@ -38,11 +38,11 @@ class AccordionItemComponent {
|
|
|
38
38
|
this.expanded.set(false);
|
|
39
39
|
}
|
|
40
40
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AccordionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: AccordionItemComponent, isStandalone: true, selector: "ds-accordion-item", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\"
|
|
41
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: AccordionItemComponent, isStandalone: true, selector: "ds-accordion-item", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\">\n <span>\n {{ title() }}\n </span>\n\n <ng-content select=\"[badge]\"></ng-content>\n\n <ds-icon\n name=\"chevronRight\"\n class=\"chev\"\n [size]=\"16\" />\n</button>\n\n<div\n class=\"body\"\n role=\"region\"\n [id]=\"bodyId\"\n [attr.aria-labelledby]=\"headId\"\n [class.is-open]=\"expanded()\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"body-inner\">\n <div class=\"body-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_accordion-header-bg-color: var(--ds-accordion-header-bg-color, var(--surface-default));--_accordion-header-text-color: var(--ds-accordion-header-text-color, var(--text-primary));--_accordion-header-hover-bg-color: var(--ds-accordion-header-hover-bg-color, var(--surface-secondary));--_accordion-divider-color: var(--ds-accordion-divider-color, var(--border-divider));--_accordion-chevron-color: var(--ds-accordion-chevron-color, var(--icon-default));--_accordion-body-text-color: var(--ds-accordion-body-text-color, var(--text-secondary));display:block}:host+:host{border-top:var(--border-width-default) solid var(--_accordion-divider-color)}:host:first-of-type .head{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}:host:last-of-type .head{border-bottom-left-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}:host .head{display:flex;align-items:center;gap:var(--space-2);width:100%;padding:var(--space-3) var(--space-4);border:0;background:var(--_accordion-header-bg-color);text-align:left;cursor:pointer;font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_accordion-header-text-color)}:host .head:hover:not(:disabled){background:var(--_accordion-header-hover-bg-color)}:host .head:active:not(:disabled){background:var(--surface-muted)}:host .head:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host .head .chev{margin-left:auto;transition:transform var(--duration-base) var(--ease-standard);color:var(--_accordion-chevron-color)}:host .head[aria-expanded=true] .chev{transform:rotate(90deg)}:host .head:disabled{cursor:not-allowed;color:var(--text-disabled)}:host .head:disabled .chev{color:var(--text-disabled)}:host .body{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-base) var(--ease-standard)}:host .body.is-open{grid-template-rows:1fr}@media(prefers-reduced-motion:reduce){:host .body{transition:none}}:host .body-inner{overflow:hidden;min-height:0}:host .body-content{padding:var(--space-2) var(--space-4) var(--space-4);color:var(--_accordion-body-text-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
|
|
42
42
|
}
|
|
43
43
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AccordionItemComponent, decorators: [{
|
|
44
44
|
type: Component,
|
|
45
|
-
args: [{ selector: 'ds-accordion-item', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\"
|
|
45
|
+
args: [{ selector: 'ds-accordion-item', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\">\n <span>\n {{ title() }}\n </span>\n\n <ng-content select=\"[badge]\"></ng-content>\n\n <ds-icon\n name=\"chevronRight\"\n class=\"chev\"\n [size]=\"16\" />\n</button>\n\n<div\n class=\"body\"\n role=\"region\"\n [id]=\"bodyId\"\n [attr.aria-labelledby]=\"headId\"\n [class.is-open]=\"expanded()\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"body-inner\">\n <div class=\"body-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_accordion-header-bg-color: var(--ds-accordion-header-bg-color, var(--surface-default));--_accordion-header-text-color: var(--ds-accordion-header-text-color, var(--text-primary));--_accordion-header-hover-bg-color: var(--ds-accordion-header-hover-bg-color, var(--surface-secondary));--_accordion-divider-color: var(--ds-accordion-divider-color, var(--border-divider));--_accordion-chevron-color: var(--ds-accordion-chevron-color, var(--icon-default));--_accordion-body-text-color: var(--ds-accordion-body-text-color, var(--text-secondary));display:block}:host+:host{border-top:var(--border-width-default) solid var(--_accordion-divider-color)}:host:first-of-type .head{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}:host:last-of-type .head{border-bottom-left-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}:host .head{display:flex;align-items:center;gap:var(--space-2);width:100%;padding:var(--space-3) var(--space-4);border:0;background:var(--_accordion-header-bg-color);text-align:left;cursor:pointer;font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_accordion-header-text-color)}:host .head:hover:not(:disabled){background:var(--_accordion-header-hover-bg-color)}:host .head:active:not(:disabled){background:var(--surface-muted)}:host .head:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host .head .chev{margin-left:auto;transition:transform var(--duration-base) var(--ease-standard);color:var(--_accordion-chevron-color)}:host .head[aria-expanded=true] .chev{transform:rotate(90deg)}:host .head:disabled{cursor:not-allowed;color:var(--text-disabled)}:host .head:disabled .chev{color:var(--text-disabled)}:host .body{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-base) var(--ease-standard)}:host .body.is-open{grid-template-rows:1fr}@media(prefers-reduced-motion:reduce){:host .body{transition:none}}:host .body-inner{overflow:hidden;min-height:0}:host .body-content{padding:var(--space-2) var(--space-4) var(--space-4);color:var(--_accordion-body-text-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"] }]
|
|
46
46
|
}], ctorParameters: () => [], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }, { type: i0.Output, args: ["expandedChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
47
47
|
|
|
48
48
|
class AccordionComponent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-accordion.mjs","sources":["../../../src/lib/components/accordion/accordion.token.ts","../../../src/lib/components/accordion/accordion-item.component.ts","../../../src/lib/components/accordion/accordion-item.component.html","../../../src/lib/components/accordion/accordion.component.ts","../../../src/lib/components/accordion/ids-group-ltd-ids-design-system-components-accordion.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/** Contract that ds-accordion-item reads from its parent ds-accordion. */\nexport interface AccordionContract {\n readonly multi: () => boolean;\n /** Called when an item opens; coordinator may close other items. */\n notifyOpen(item: AccordionItemRef): void;\n}\n\n/** Contract ds-accordion reads back from each projected item. */\nexport interface AccordionItemRef {\n /** Closes this item (sets expanded to false). */\n closeItem(): void;\n}\n\nexport const ACCORDION = new InjectionToken<AccordionContract>('ACCORDION');\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { ACCORDION, type AccordionItemRef } from './accordion.token';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-accordion-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './accordion-item.component.html',\n styleUrl: './accordion-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class AccordionItemComponent implements AccordionItemRef {\n /** Header text shown in the toggle button. */\n readonly title = input.required<string>();\n /** Open state, two-way bound. */\n readonly expanded = model<boolean>(false);\n /** Disables the toggle button; state stays as-is. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n protected readonly uid = `ds-accordion-${++nextId}`;\n protected readonly headId = `${this.uid}-head`;\n protected readonly bodyId = `${this.uid}-body`;\n\n private readonly accordion = inject(ACCORDION, { optional: true });\n\n /** Tracks last expanded state so we only notify on a true open transition. */\n private previousExpanded = false;\n\n constructor() {\n effect(() => {\n const isExpanded = this.expanded();\n if (isExpanded && !this.previousExpanded) {\n this.accordion?.notifyOpen(this);\n }\n this.previousExpanded = isExpanded;\n });\n }\n\n protected toggle(): void {\n if (this.disabled()) {\n return;\n }\n this.expanded.set(!this.expanded());\n }\n\n /** Called by the accordion coordinator to enforce single-open mode. */\n closeItem(): void {\n this.expanded.set(false);\n }\n}\n","<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\"
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-accordion.mjs","sources":["../../../src/lib/components/accordion/accordion.token.ts","../../../src/lib/components/accordion/accordion-item.component.ts","../../../src/lib/components/accordion/accordion-item.component.html","../../../src/lib/components/accordion/accordion.component.ts","../../../src/lib/components/accordion/ids-group-ltd-ids-design-system-components-accordion.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/** Contract that ds-accordion-item reads from its parent ds-accordion. */\nexport interface AccordionContract {\n readonly multi: () => boolean;\n /** Called when an item opens; coordinator may close other items. */\n notifyOpen(item: AccordionItemRef): void;\n}\n\n/** Contract ds-accordion reads back from each projected item. */\nexport interface AccordionItemRef {\n /** Closes this item (sets expanded to false). */\n closeItem(): void;\n}\n\nexport const ACCORDION = new InjectionToken<AccordionContract>('ACCORDION');\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { ACCORDION, type AccordionItemRef } from './accordion.token';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-accordion-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './accordion-item.component.html',\n styleUrl: './accordion-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class AccordionItemComponent implements AccordionItemRef {\n /** Header text shown in the toggle button. */\n readonly title = input.required<string>();\n /** Open state, two-way bound. */\n readonly expanded = model<boolean>(false);\n /** Disables the toggle button; state stays as-is. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n protected readonly uid = `ds-accordion-${++nextId}`;\n protected readonly headId = `${this.uid}-head`;\n protected readonly bodyId = `${this.uid}-body`;\n\n private readonly accordion = inject(ACCORDION, { optional: true });\n\n /** Tracks last expanded state so we only notify on a true open transition. */\n private previousExpanded = false;\n\n constructor() {\n effect(() => {\n const isExpanded = this.expanded();\n if (isExpanded && !this.previousExpanded) {\n this.accordion?.notifyOpen(this);\n }\n this.previousExpanded = isExpanded;\n });\n }\n\n protected toggle(): void {\n if (this.disabled()) {\n return;\n }\n this.expanded.set(!this.expanded());\n }\n\n /** Called by the accordion coordinator to enforce single-open mode. */\n closeItem(): void {\n this.expanded.set(false);\n }\n}\n","<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\">\n <span>\n {{ title() }}\n </span>\n\n <ng-content select=\"[badge]\"></ng-content>\n\n <ds-icon\n name=\"chevronRight\"\n class=\"chev\"\n [size]=\"16\" />\n</button>\n\n<div\n class=\"body\"\n role=\"region\"\n [id]=\"bodyId\"\n [attr.aria-labelledby]=\"headId\"\n [class.is-open]=\"expanded()\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"body-inner\">\n <div class=\"body-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n contentChildren,\n forwardRef,\n input,\n} from '@angular/core';\nimport {\n ACCORDION,\n type AccordionContract,\n type AccordionItemRef,\n} from './accordion.token';\nimport { AccordionItemComponent } from './accordion-item.component';\n\n@Component({\n selector: 'ds-accordion',\n standalone: true,\n imports: [],\n template: `<ng-content></ng-content>`,\n styles: [\n `\n :host {\n display: block;\n border: var(--border-width-default) solid var(--border-divider);\n border-radius: var(--radius-lg);\n overflow: hidden;\n }\n `,\n ],\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: ACCORDION,\n useExisting: forwardRef(() => AccordionComponent),\n },\n ],\n})\nexport class AccordionComponent implements AccordionContract {\n /** When false, opening one item automatically closes all others. */\n readonly multi = input(true, { transform: booleanAttribute });\n\n private readonly items = contentChildren(AccordionItemComponent);\n\n notifyOpen(opened: AccordionItemRef): void {\n if (this.multi()) {\n return;\n }\n for (const item of this.items() as unknown as AccordionItemRef[]) {\n if (item !== opened) {\n item.closeItem();\n }\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
|
|
@@ -49,11 +49,11 @@ class AlertComponent {
|
|
|
49
49
|
this.closed.emit();
|
|
50
50
|
}
|
|
51
51
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
52
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: AlertComponent, isStandalone: true, selector: "ds-alert", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, announce: { classPropertyName: "announce", publicName: "announce", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.role": "this.ariaRole", "attr.aria-live": "this.ariaLive" } }, ngImport: i0, template: "<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\"
|
|
52
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: AlertComponent, isStandalone: true, selector: "ds-alert", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, announce: { classPropertyName: "announce", publicName: "announce", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.role": "this.ariaRole", "attr.aria-live": "this.ariaLive" } }, ngImport: i0, template: "<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\">\n </ds-icon>\n\n <div class=\"a-body\">\n @if (title()) {\n <div class=\"a-title\">\n {{ title() }}\n </div>\n }\n\n <div class=\"a-msg\">\n <ng-content />\n </div>\n\n <div class=\"a-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"a-close\"\n type=\"button\"\n aria-label=\"Dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n", styles: [":host{display:inline-flex}.alert{--_alert-bg-color: var(--ds-alert-bg-color, var(--info-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--info-text));--_alert-title-text-color: var(--ds-alert-title-text-color, var(--text-primary));--_alert-close-icon-color: var(--ds-alert-close-icon-color, var(--icon-default));--_alert-close-icon-color-hover: var(--ds-alert-close-icon-color-hover, var(--icon-strong));--_alert-pad-y: var(--ds-alert-pad-y, var(--space-2));--_alert-pad-x: var(--ds-alert-pad-x, var(--space-3));--_alert-radius: var(--ds-alert-radius, var(--ds-radius-control));--_alert-enter-keyframes: var(--ds-alert-enter-keyframes, ds-slide-in);--_alert-enter-duration: var(--ds-alert-enter-duration, var(--ds-motion-enter-surface-duration));--_alert-enter-easing: var(--ds-alert-enter-easing, var(--ds-motion-enter-surface-easing));--_alert-enter-offset: var(--ds-alert-enter-offset, 2px);--_ds-enter-y: calc(-1 * var(--_alert-enter-offset));--_ds-enter-scale: var(--ds-alert-enter-scale, .96);display:inline-flex;align-items:flex-start;gap:var(--space-2);padding:var(--_alert-pad-y) var(--_alert-pad-x);border-radius:var(--_alert-radius);background-color:var(--_alert-bg-color);color:var(--_alert-text-color);animation-name:var(--_alert-enter-keyframes);animation-duration:var(--_alert-enter-duration);animation-timing-function:var(--_alert-enter-easing)}@media(prefers-reduced-motion:reduce){.alert{--_alert-enter-duration: 0ms}}.alert.success{--_alert-bg-color: var(--ds-alert-bg-color, var(--success-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--success-text))}.alert.warning{--_alert-bg-color: var(--ds-alert-bg-color, var(--warning-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--warning-text))}.alert.error{--_alert-bg-color: var(--ds-alert-bg-color, var(--error-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--error-text))}.alert.neutral{--_alert-bg-color: var(--ds-alert-bg-color, var(--surface-secondary));--_alert-text-color: var(--ds-alert-text-color, var(--text-secondary))}.alert .a-icon{flex-shrink:0;color:inherit;align-self:center}.alert .a-body{flex:1;min-width:0}.alert .a-title{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_alert-title-text-color);margin:0 0 var(--space-1)}.alert .a-actions{display:flex;gap:var(--space-2);margin-top:var(--space-2)}.alert .a-actions:empty{display:none}.alert .a-close{background:none;border:0;cursor:pointer;padding:0;color:var(--_alert-close-icon-color);flex-shrink:0}.alert .a-close:hover{color:var(--_alert-close-icon-color-hover)}.alert .a-close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
|
|
53
53
|
}
|
|
54
54
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AlertComponent, decorators: [{
|
|
55
55
|
type: Component,
|
|
56
|
-
args: [{ selector: 'ds-alert', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\"
|
|
56
|
+
args: [{ selector: 'ds-alert', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\">\n </ds-icon>\n\n <div class=\"a-body\">\n @if (title()) {\n <div class=\"a-title\">\n {{ title() }}\n </div>\n }\n\n <div class=\"a-msg\">\n <ng-content />\n </div>\n\n <div class=\"a-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"a-close\"\n type=\"button\"\n aria-label=\"Dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n", styles: [":host{display:inline-flex}.alert{--_alert-bg-color: var(--ds-alert-bg-color, var(--info-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--info-text));--_alert-title-text-color: var(--ds-alert-title-text-color, var(--text-primary));--_alert-close-icon-color: var(--ds-alert-close-icon-color, var(--icon-default));--_alert-close-icon-color-hover: var(--ds-alert-close-icon-color-hover, var(--icon-strong));--_alert-pad-y: var(--ds-alert-pad-y, var(--space-2));--_alert-pad-x: var(--ds-alert-pad-x, var(--space-3));--_alert-radius: var(--ds-alert-radius, var(--ds-radius-control));--_alert-enter-keyframes: var(--ds-alert-enter-keyframes, ds-slide-in);--_alert-enter-duration: var(--ds-alert-enter-duration, var(--ds-motion-enter-surface-duration));--_alert-enter-easing: var(--ds-alert-enter-easing, var(--ds-motion-enter-surface-easing));--_alert-enter-offset: var(--ds-alert-enter-offset, 2px);--_ds-enter-y: calc(-1 * var(--_alert-enter-offset));--_ds-enter-scale: var(--ds-alert-enter-scale, .96);display:inline-flex;align-items:flex-start;gap:var(--space-2);padding:var(--_alert-pad-y) var(--_alert-pad-x);border-radius:var(--_alert-radius);background-color:var(--_alert-bg-color);color:var(--_alert-text-color);animation-name:var(--_alert-enter-keyframes);animation-duration:var(--_alert-enter-duration);animation-timing-function:var(--_alert-enter-easing)}@media(prefers-reduced-motion:reduce){.alert{--_alert-enter-duration: 0ms}}.alert.success{--_alert-bg-color: var(--ds-alert-bg-color, var(--success-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--success-text))}.alert.warning{--_alert-bg-color: var(--ds-alert-bg-color, var(--warning-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--warning-text))}.alert.error{--_alert-bg-color: var(--ds-alert-bg-color, var(--error-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--error-text))}.alert.neutral{--_alert-bg-color: var(--ds-alert-bg-color, var(--surface-secondary));--_alert-text-color: var(--ds-alert-text-color, var(--text-secondary))}.alert .a-icon{flex-shrink:0;color:inherit;align-self:center}.alert .a-body{flex:1;min-width:0}.alert .a-title{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_alert-title-text-color);margin:0 0 var(--space-1)}.alert .a-actions{display:flex;gap:var(--space-2);margin-top:var(--space-2)}.alert .a-actions:empty{display:none}.alert .a-close{background:none;border:0;cursor:pointer;padding:0;color:var(--_alert-close-icon-color);flex-shrink:0}.alert .a-close:hover{color:var(--_alert-close-icon-color-hover)}.alert .a-close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}\n"] }]
|
|
57
57
|
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], announce: [{ type: i0.Input, args: [{ isSignal: true, alias: "announce", required: false }] }], ariaRole: [{
|
|
58
58
|
type: HostBinding,
|
|
59
59
|
args: ['attr.role']
|