@ids-group-ltd/ids-design-system 0.12.0 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +568 -52
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +10 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +10 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +13 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +12 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +6 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +10 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +15 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +21 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +10 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +15 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +15 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +428 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +186 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +227 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +304 -437
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +12 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +9 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +27 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +12 -4
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -38
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +3 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.10.0.json +1 -1
- package/migrations/0.10.1.json +1 -1
- package/migrations/0.10.2.json +1 -30
- package/migrations/0.11.1.json +0 -23
- package/migrations/0.11.3.json +1 -1
- package/migrations/0.11.4.json +27 -7
- package/migrations/0.12.0.json +30 -2
- package/migrations/0.12.1.json +341 -0
- package/migrations/0.12.2.json +291 -0
- package/migrations/0.5.0.json +0 -54
- package/migrations/0.5.1.json +3 -1
- package/migrations/0.7.0.json +0 -11
- package/migrations/0.9.0.json +22 -3
- package/migrations/0.9.1.json +1 -1
- package/package.json +25 -1
- package/styles/_check-box.scss +91 -0
- package/styles/_check-mark.scss +59 -0
- package/styles/_clear-button.scss +28 -0
- package/styles/_dropdown-overlay.scss +12 -2
- package/styles/_field-group-segment.scss +4 -1
- package/styles/_focus.scss +103 -50
- package/styles/_link.scss +4 -2
- package/styles/_table-controls.scss +66 -0
- package/styles/_tokens.scss +20 -0
- package/styles/_typography.scss +6 -0
- package/themes/_semantic.scss +7 -8
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +3 -0
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +8 -4
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +9 -2
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +3 -2
- package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +43 -0
- package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +48 -0
- package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +79 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +196 -155
- package/types/ids-group-ltd-ids-design-system-components.d.ts +26 -1
- package/types/ids-group-ltd-ids-design-system-core.d.ts +17 -4
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// The tick a selection draws, in one place.
|
|
2
|
+
//
|
|
3
|
+
// ds-checkbox owns the canonical mark; multi-select and autocomplete draw their own box in an
|
|
4
|
+
// option row rather than composing ds-checkbox, so they need the mark on its own. Do not reach
|
|
5
|
+
// for `ds-icon name="check"` in those boxes: it is a 24-viewBox path at stroke 1.75, which at a
|
|
6
|
+
// 13px glyph paints a 0.95px line against this mark's 2px — one box, two different ticks.
|
|
7
|
+
//
|
|
8
|
+
// Painted as a MASK over `currentColor`, not as a coloured image: the same mark then serves a
|
|
9
|
+
// filled box (white on the accent) and a bare trailing indicator in a select row (accent on the
|
|
10
|
+
// surface) without a second copy of the path.
|
|
11
|
+
@mixin mark {
|
|
12
|
+
--_check-mark-enter-duration: var(--ds-check-mark-enter-duration, var(--ds-motion-check-enter-duration));
|
|
13
|
+
--_check-mark-enter-easing: var(--ds-check-mark-enter-easing, var(--ds-motion-check-enter-easing));
|
|
14
|
+
--_check-mark-exit-duration: var(--ds-check-mark-exit-duration, var(--ds-motion-check-exit-duration));
|
|
15
|
+
--_check-mark-exit-easing: var(--ds-check-mark-exit-easing, var(--ds-motion-check-exit-easing));
|
|
16
|
+
|
|
17
|
+
width: var(--check-tick-size);
|
|
18
|
+
height: var(--check-tick-size);
|
|
19
|
+
|
|
20
|
+
// Always rendered, so it can scale and fade rather than pop: an element that does not exist has
|
|
21
|
+
// no resting state to transition from. `.checked` on the box is what brings it in.
|
|
22
|
+
transform: scale(0.6);
|
|
23
|
+
opacity: 0;
|
|
24
|
+
transform-origin: center;
|
|
25
|
+
|
|
26
|
+
// The resting rule carries the EXIT timing and the entered rule the enter timing — a transition
|
|
27
|
+
// belongs to the state being moved TO, which is the only way one property pair can run two
|
|
28
|
+
// different curves in the two directions.
|
|
29
|
+
transition: transform var(--_check-mark-exit-duration) var(--_check-mark-exit-easing),
|
|
30
|
+
opacity var(--_check-mark-exit-duration) var(--_check-mark-exit-easing);
|
|
31
|
+
background-color: currentcolor;
|
|
32
|
+
|
|
33
|
+
// Forced colours override `background-color` and leave `background-image` alone, so moving the
|
|
34
|
+
// tick from an image to a masked fill made it vanish under Windows High Contrast: the mark was
|
|
35
|
+
// forced to Canvas, the same colour the box fill becomes, leaving checked and unchecked
|
|
36
|
+
// pixel-identical. The mask itself survives, so naming the text colour puts the glyph back.
|
|
37
|
+
@media (forced-colors: active) {
|
|
38
|
+
background-color: CanvasText;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// The entered state, for a box that carries `.checked` rather than a `:checked` input.
|
|
45
|
+
@mixin shown {
|
|
46
|
+
transform: scale(1);
|
|
47
|
+
opacity: 1;
|
|
48
|
+
transition: transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),
|
|
49
|
+
opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// The bar a mixed selection draws, on the SAME element as the tick: a second span would sit beside
|
|
53
|
+
// it in the centred box rather than replacing it, and the two could not cross-fade.
|
|
54
|
+
@mixin dash {
|
|
55
|
+
width: var(--check-indet-w);
|
|
56
|
+
height: var(--check-indet-h);
|
|
57
|
+
border-radius: var(--ds-radius-inner);
|
|
58
|
+
mask: none;
|
|
59
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@use 'press' as press;
|
|
2
|
+
|
|
3
|
+
// The `×` that clears a trigger-shaped field — ds-select, ds-autocomplete, ds-multi-select all
|
|
4
|
+
// render the same `.clear-btn` markup behind `clearable`. Shared because two of the three had the
|
|
5
|
+
// markup and no rule, so the button came out as the browser's default: include it inside whichever
|
|
6
|
+
// selector holds the trigger's own layout.
|
|
7
|
+
//
|
|
8
|
+
// ds-input's clear button is deliberately NOT this one — it paints a filled disc so the glyph
|
|
9
|
+
// still reads on a blurred field, and keeps its rule with the input.
|
|
10
|
+
@mixin button {
|
|
11
|
+
border: 0;
|
|
12
|
+
background: transparent;
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
color: var(--icon-default);
|
|
17
|
+
border-radius: var(--ds-radius-inner);
|
|
18
|
+
padding: var(--space-0-5);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
flex: 0 0 auto;
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
color: var(--text-primary);
|
|
24
|
+
background: var(--surface-secondary);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include press.feedback;
|
|
28
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
@use 'focus' as focus;
|
|
2
|
+
|
|
1
3
|
// GLOBAL because the panel is portaled via CDK Overlay outside the host
|
|
2
4
|
// component's DOM tree, so emulated encapsulation (and any `:host ::ng-deep`
|
|
3
5
|
// selector) cannot reach it. The component sets `panelClass: 'ds-dropdown-panel'`
|
|
4
6
|
// on the overlay config; this partial declares the matching rules.
|
|
5
7
|
|
|
8
|
+
@use 'check-mark' as check-mark;
|
|
6
9
|
@use 'text-clip' as text-clip;
|
|
7
10
|
@use 'visually-hidden' as visually-hidden;
|
|
8
11
|
|
|
@@ -140,11 +143,19 @@
|
|
|
140
143
|
@include visually-hidden.visually-hidden;
|
|
141
144
|
}
|
|
142
145
|
|
|
146
|
+
// Persistent, not rendered only when selected: an element that does not exist has no resting
|
|
147
|
+
// state to transition from, which is why this was the one selection mark that popped in.
|
|
143
148
|
.option-check {
|
|
149
|
+
@include check-mark.mark;
|
|
150
|
+
|
|
144
151
|
color: var(--_option-check-color);
|
|
145
152
|
flex: 0 0 auto;
|
|
146
153
|
}
|
|
147
154
|
|
|
155
|
+
.option-check.is-shown {
|
|
156
|
+
@include check-mark.shown;
|
|
157
|
+
}
|
|
158
|
+
|
|
148
159
|
&:disabled {
|
|
149
160
|
color: var(--text-disabled);
|
|
150
161
|
cursor: not-allowed;
|
|
@@ -166,8 +177,7 @@
|
|
|
166
177
|
}
|
|
167
178
|
|
|
168
179
|
&:focus-visible {
|
|
169
|
-
|
|
170
|
-
box-shadow: var(--ds-control-focus-shadow);
|
|
180
|
+
@include focus.ring(calc(-1 * var(--focus-ring-width)));
|
|
171
181
|
}
|
|
172
182
|
|
|
173
183
|
&.is-selected {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'focus' as focus;
|
|
2
|
+
|
|
1
3
|
// `display: flex` on the host is load-bearing: the group stretches the host, but a
|
|
2
4
|
// block host gives the box no height to resolve a percentage against, and the value
|
|
3
5
|
// ends up at the top of the row instead of its centre.
|
|
@@ -23,7 +25,8 @@
|
|
|
23
25
|
&:focus-within {
|
|
24
26
|
border: 0;
|
|
25
27
|
box-shadow: none;
|
|
26
|
-
|
|
28
|
+
|
|
29
|
+
@include focus.own-indicator;
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
/* No blanket reset here on purpose: the block above clears the segment BOX and
|
package/styles/_focus.scss
CHANGED
|
@@ -1,19 +1,78 @@
|
|
|
1
1
|
// Focus-indicator style, switched in ONE place: `<html data-focus="…">`.
|
|
2
2
|
//
|
|
3
|
-
// Two families
|
|
4
|
-
//
|
|
5
|
-
// `--
|
|
6
|
-
//
|
|
3
|
+
// Two families, two mechanisms, because one property cannot give both:
|
|
4
|
+
// controls — an `outline`, drawn by the `ring` mixin off `--focus-ring-width`
|
|
5
|
+
// / `--focus-ring-color` / `--focus-ring-offset`;
|
|
6
|
+
// fields — a soft halo, resolved through the `--ds-field-focus-shadow` role.
|
|
7
|
+
//
|
|
8
|
+
// An outline is what the control family needs: `outline-offset` leaves its gap
|
|
9
|
+
// UNPAINTED, so the ring floats over whatever the control actually sits on, while a
|
|
10
|
+
// shadow gap has to be filled with a guessed colour that is a coloured rim everywhere
|
|
11
|
+
// the guess is wrong. A negative offset draws the ring inside the element, where an
|
|
12
|
+
// `overflow` ancestor cannot clip it.
|
|
7
13
|
|
|
8
|
-
//
|
|
9
|
-
//
|
|
14
|
+
// The control indicator.
|
|
15
|
+
//
|
|
16
|
+
// Does NOT touch box-shadow, so a focused card keeps its elevation. Where a state paints its
|
|
17
|
+
// own shadow on the same element, that one still has to yield — `state-shadow` below, and its
|
|
18
|
+
// conditions.
|
|
10
19
|
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
20
|
+
// Usage — @include inside the element's own `&:focus-visible` block:
|
|
21
|
+
// @use '../../styles/focus' as focus;
|
|
22
|
+
// &:focus-visible { @include focus.ring; }
|
|
23
|
+
// &:focus-visible { @include focus.ring(calc(-1 * var(--focus-ring-offset))); } // clipped
|
|
24
|
+
@mixin ring($offset: var(--focus-ring-offset)) {
|
|
25
|
+
outline: var(--focus-ring-width) solid var(--focus-ring-color);
|
|
26
|
+
outline-offset: $offset;
|
|
27
|
+
|
|
28
|
+
// An ANIMATION, not a transition, and the distinction is load-bearing. `transition` is one
|
|
29
|
+
// property: 46 component stylesheets declare their own list, and whichever rule wins REPLACES
|
|
30
|
+
// the other's entirely — a transition here would silently drop the component's background and
|
|
31
|
+
// border easing for as long as the element held focus. `animation` is a separate property that
|
|
32
|
+
// nothing else on a focusable element sets, so both survive.
|
|
33
|
+
//
|
|
34
|
+
// Colour only: animating `outline-offset` makes the ring lag the caret on a fast Tab, and the
|
|
35
|
+
// indicator is a keyboard user's only signal of where they are.
|
|
36
|
+
animation: ds-focus-ring-in var(--duration-fast) var(--ease-standard);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Catches anything focusable that styles nothing itself, so it cannot fall through to
|
|
40
|
+
// the browser default. Same mechanism as `ring`, so a shell that rings on `:focus-within`
|
|
41
|
+
// silences its control with `owns-the-focus-ring` and no second ring appears.
|
|
14
42
|
:where(:focus-visible) {
|
|
15
|
-
|
|
16
|
-
|
|
43
|
+
@include ring;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Only the FROM value is declared: the to-value is whatever the ring resolves to on that element,
|
|
47
|
+
// so one keyframe serves every colour, width and offset the tokens can take.
|
|
48
|
+
@keyframes ds-focus-ring-in {
|
|
49
|
+
from {
|
|
50
|
+
outline-color: transparent;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// A shell that rings on its control's behalf: the whole contract in one call.
|
|
55
|
+
//
|
|
56
|
+
// The SELECTOR is the reason this exists. `:focus-within` is the obvious spelling and it is wrong
|
|
57
|
+
// here — it matches a POINTER focus too, and a checkbox or radio is not granted `:focus-visible`
|
|
58
|
+
// on click, so a clicked control kept its ring until focus moved away. `:has(:focus-visible)` asks
|
|
59
|
+
// the question that was meant: is something inside focused THE WAY A KEYBOARD FOCUSES IT. Written
|
|
60
|
+
// per component, that choice was got wrong once and would be got wrong again.
|
|
61
|
+
//
|
|
62
|
+
// It also silences $control, because a shell that rings without silencing paints two rings — the
|
|
63
|
+
// other half of the same contract, and the reason `tools/check-focus-rings.mjs` exists. One call
|
|
64
|
+
// cannot forget the half the other is checking for.
|
|
65
|
+
//
|
|
66
|
+
// NOT for a field shell: those ring with the `--ds-field-focus-shadow` halo, and `:focus-within`
|
|
67
|
+
// is correct there because clicking into a text input DOES grant it `:focus-visible`.
|
|
68
|
+
//
|
|
69
|
+
// Usage: `.control-line { @include focus.ring-for('.check'); }`
|
|
70
|
+
@mixin ring-for($control, $offset: var(--focus-ring-offset)) {
|
|
71
|
+
&:has(:focus-visible) {
|
|
72
|
+
@include ring($offset);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@include owns-the-focus-ring($control);
|
|
17
76
|
}
|
|
18
77
|
|
|
19
78
|
// `$control` names ONE control and must never be a blanket: a box-wide reset also
|
|
@@ -21,74 +80,68 @@
|
|
|
21
80
|
// then tabbing from the field to that button changes nothing on screen.
|
|
22
81
|
@mixin owns-the-focus-ring($control) {
|
|
23
82
|
#{$control}:where(:focus-visible) {
|
|
24
|
-
|
|
83
|
+
@include own-indicator;
|
|
25
84
|
}
|
|
26
85
|
}
|
|
27
86
|
|
|
28
|
-
//
|
|
29
|
-
// row inside a clipping list, a swatch in a grid — where the outset halo is eaten by the
|
|
30
|
-
// `overflow` ancestor.
|
|
87
|
+
// Turns the base indicator off, for a control whose SHELL rings on its behalf.
|
|
31
88
|
//
|
|
32
|
-
//
|
|
33
|
-
//
|
|
89
|
+
// The media query is the whole point and a bare `outline: none` is the bug it replaces.
|
|
90
|
+
// Forced colours drops `box-shadow` entirely, so a field whose shell rings with the halo
|
|
91
|
+
// has nothing left once the control is silenced — the one mode where an indicator is
|
|
92
|
+
// mandatory is the one where it disappeared. Skipping the suppression there costs a
|
|
93
|
+
// second ring in a palette the author does not control anyway, which is the cheaper wrong.
|
|
94
|
+
@mixin own-indicator {
|
|
95
|
+
@media not (forced-colors: active) {
|
|
96
|
+
outline: none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// For a persistent state — selected, active, current — that paints its own box-shadow on
|
|
101
|
+
// the element that also carries the focus ring. One property cannot hold both, so the
|
|
102
|
+
// later rule wins and one signal vanishes silently; this hands the ring the tie by
|
|
103
|
+
// intent rather than by line order.
|
|
34
104
|
//
|
|
35
|
-
//
|
|
36
|
-
//
|
|
37
|
-
//
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
105
|
+
// Only for a state whose OTHER properties keep it identifiable while focused (a fill, a
|
|
106
|
+
// label colour). A state carried by the shadow ALONE must not use it — the state would
|
|
107
|
+
// go unreadable exactly while the user stands on it.
|
|
108
|
+
//
|
|
109
|
+
// Usage: `&.active { @include focus.state-shadow(inset 3px 0 0 var(--_rail)); }`
|
|
110
|
+
@mixin state-shadow($shadow) {
|
|
111
|
+
&:not(:focus-visible) {
|
|
112
|
+
box-shadow: $shadow;
|
|
113
|
+
}
|
|
42
114
|
}
|
|
43
115
|
|
|
116
|
+
// Fields ring like controls: the halo role is retargeted at the ring token so both
|
|
117
|
+
// families read the same colour and thickness.
|
|
44
118
|
:root[data-focus='ring'] {
|
|
45
119
|
--ds-field-focus-shadow: var(--focus-ring);
|
|
46
120
|
--ds-field-focus-shadow-error: var(--focus-ring-error);
|
|
47
121
|
}
|
|
48
122
|
|
|
49
|
-
|
|
50
|
-
--ds-control-focus-shadow: var(--focus-field);
|
|
51
|
-
--ds-control-focus-shadow-error: var(--focus-field-error);
|
|
52
|
-
}
|
|
53
|
-
|
|
123
|
+
// Hairline flush against the element — no gap in either family.
|
|
54
124
|
:root[data-focus='edge'] {
|
|
125
|
+
--focus-ring-offset: 0px;
|
|
55
126
|
--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);
|
|
56
127
|
--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error);
|
|
57
|
-
--ds-control-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);
|
|
58
|
-
--ds-control-focus-shadow-error: 0 0 0 var(--border-width-default)
|
|
59
|
-
var(--error);
|
|
60
128
|
}
|
|
61
129
|
|
|
62
130
|
// The one style NOT pinned to :root, because a clipping ancestor is a local problem:
|
|
63
131
|
// set it on the clipping element and everything inside keeps an indicator.
|
|
64
132
|
[data-focus='inset'] {
|
|
133
|
+
--focus-ring-offset: calc(-1 * var(--focus-ring-width));
|
|
65
134
|
--ds-field-focus-shadow: var(--focus-ring-inset);
|
|
66
135
|
--ds-field-focus-shadow-error: var(--focus-ring-inset-error);
|
|
67
|
-
--ds-control-focus-shadow: var(--focus-ring-inset);
|
|
68
|
-
--ds-control-focus-shadow-error: var(--focus-ring-inset-error);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
:root[data-focus='outline'] {
|
|
72
|
-
--ds-field-focus-shadow: none;
|
|
73
|
-
--ds-field-focus-shadow-error: none;
|
|
74
|
-
--ds-control-focus-shadow: none;
|
|
75
|
-
--ds-control-focus-shadow-error: none;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// The only style that emits a rule of its own: an `outline` cannot be carried by a
|
|
79
|
-
// box-shadow token, so the roles go to `none` above and this draws the indicator.
|
|
80
|
-
:root[data-focus='outline'] :where(:focus-visible) {
|
|
81
|
-
outline: var(--border-width-strong) solid var(--primary);
|
|
82
|
-
outline-offset: var(--focus-ring-offset);
|
|
83
136
|
}
|
|
84
137
|
|
|
85
138
|
// Not part of the switch — it applies under every style, because Windows High
|
|
86
|
-
// Contrast DROPS box-shadow and
|
|
139
|
+
// Contrast DROPS box-shadow and the field family's halo vanishes there completely.
|
|
87
140
|
@media (forced-colors: active) {
|
|
88
141
|
// CanvasText, not a brand colour: the palette is replaced, and a system keyword is
|
|
89
142
|
// the only value guaranteed to contrast with the forced background.
|
|
90
143
|
:where(:focus-visible) {
|
|
91
|
-
outline: var(--
|
|
144
|
+
outline: var(--focus-ring-width) solid CanvasText;
|
|
92
145
|
outline-offset: var(--focus-ring-offset);
|
|
93
146
|
}
|
|
94
147
|
}
|
package/styles/_link.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'focus' as focus;
|
|
2
|
+
|
|
1
3
|
/* Global .link helper — pure CSS class (no Angular wrapper) so consumers
|
|
2
4
|
can apply it to inline anchors inside <p> text without disrupting line
|
|
3
5
|
flow. Modifiers: .quiet, .inline, .standalone, .xs, .sm, .lg. */
|
|
@@ -28,8 +30,8 @@
|
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
&:focus-visible {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
@include focus.ring;
|
|
34
|
+
|
|
33
35
|
border-radius: var(--radius-sm);
|
|
34
36
|
text-decoration-color: var(--_link-color);
|
|
35
37
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@use 'focus' as focus;
|
|
2
|
+
|
|
3
|
+
// Controls the table shares with its opt-in directives. `dsTableColumns` renders its trigger and
|
|
4
|
+
// its panel from components of its own, whose DOM never carries ds-table's encapsulation
|
|
5
|
+
// attribute — so a rule stated in table.component.scss cannot reach them, and the body has to
|
|
6
|
+
// live somewhere both stylesheets can include it.
|
|
7
|
+
|
|
8
|
+
// The square icon button in a header cell — expand-all, row actions, the column-panel trigger.
|
|
9
|
+
// Reads the `--_table-icon-btn-*` resolvers, so include it only inside a ds-table.
|
|
10
|
+
@mixin header-icon-button {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
width: var(--space-6);
|
|
15
|
+
height: var(--space-6);
|
|
16
|
+
padding: 0;
|
|
17
|
+
border: 0;
|
|
18
|
+
background: none;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
color: var(--_table-icon-btn-color);
|
|
21
|
+
border-radius: var(--ds-radius-inner);
|
|
22
|
+
transition: color var(--duration-fast) var(--ease-standard);
|
|
23
|
+
|
|
24
|
+
&:hover {
|
|
25
|
+
color: var(--_table-icon-btn-color-hover);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:focus-visible {
|
|
29
|
+
--focus-ring-color: var(--_table-icon-btn-focus-color);
|
|
30
|
+
|
|
31
|
+
@include focus.ring;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin panel-icon-button {
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
padding: 0;
|
|
38
|
+
border: 0;
|
|
39
|
+
background: none;
|
|
40
|
+
color: var(--icon-default);
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
|
|
43
|
+
&:hover:not(:disabled) {
|
|
44
|
+
color: var(--icon-strong);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:disabled {
|
|
48
|
+
color: var(--text-disabled);
|
|
49
|
+
cursor: default;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@mixin panel-reset-link {
|
|
54
|
+
margin-top: var(--space-1);
|
|
55
|
+
padding: 0;
|
|
56
|
+
border: 0;
|
|
57
|
+
background: none;
|
|
58
|
+
color: var(--accent);
|
|
59
|
+
font: var(--font-weight-regular) var(--font-size-s) / var(--line-height-base) var(--font-sans);
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
text-align: left;
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
text-decoration: underline;
|
|
65
|
+
}
|
|
66
|
+
}
|
package/styles/_tokens.scss
CHANGED
|
@@ -61,6 +61,10 @@
|
|
|
61
61
|
--border-width-default: 1px;
|
|
62
62
|
--border-width-strong: 2px;
|
|
63
63
|
|
|
64
|
+
/* 2px is the floor WCAG 2.4.13 measures against, and only the CONTRASTING part counts —
|
|
65
|
+
an indicator whose 2px is half gap does not meet it. The offset is a real gap: the
|
|
66
|
+
outline is not painted there, so whatever the control sits on shows through. */
|
|
67
|
+
--focus-ring-width: 2px;
|
|
64
68
|
--focus-ring-offset: 2px;
|
|
65
69
|
|
|
66
70
|
/* Shadows are composed from a channel-split tint so a theme can re-colour them:
|
|
@@ -148,6 +152,15 @@
|
|
|
148
152
|
--ds-motion-exit-large-duration: var(--duration-base);
|
|
149
153
|
--ds-motion-exit-large-easing: var(--ease-accelerate);
|
|
150
154
|
|
|
155
|
+
/* The check mark landing in a box. Its own role because the mark overshoots and
|
|
156
|
+
nothing else at this scale does: --ease-spring exists for exactly this and is
|
|
157
|
+
documented as sparing. Enter and exit differ so the mark leaves faster than it
|
|
158
|
+
arrives, which is what makes the overshoot read as weight rather than as lag. */
|
|
159
|
+
--ds-motion-check-enter-duration: var(--duration-base);
|
|
160
|
+
--ds-motion-check-enter-easing: var(--ease-spring);
|
|
161
|
+
--ds-motion-check-exit-duration: var(--duration-fast);
|
|
162
|
+
--ds-motion-check-exit-easing: var(--ease-accelerate);
|
|
163
|
+
|
|
151
164
|
--opacity-disabled: 0.5;
|
|
152
165
|
--opacity-text-disabled: 0.38; /* WCAG-derived */
|
|
153
166
|
--opacity-scrim: 0.55;
|
|
@@ -238,6 +251,13 @@
|
|
|
238
251
|
/* Two focus families: fields get the soft halo, interactive controls and nav
|
|
239
252
|
the crisp ring. Components default their own --ds-*-focus-shadow to these,
|
|
240
253
|
so a consumer can retune a whole family or a single component. */
|
|
254
|
+
|
|
255
|
+
/* The flat tokens, NOT the --accent-focus-* aliases, and that is not an oversight — see
|
|
256
|
+
docs/todo.md, "zone colour and data-focus shape cannot both reach one role". A `var()`
|
|
257
|
+
inside a custom property is substituted where that property is DECLARED, so anything
|
|
258
|
+
written here is frozen with :root's inputs and a ds-color zone can never reach it. A zone
|
|
259
|
+
changing the colour and the switch changing the shape are therefore mutually exclusive at
|
|
260
|
+
this indirection; the switch wins here because it is the documented one. */
|
|
241
261
|
--ds-field-focus-shadow: var(--focus-field);
|
|
242
262
|
--ds-field-focus-shadow-error: var(--focus-field-error);
|
|
243
263
|
--ds-control-focus-shadow: var(--focus-ring);
|
package/styles/_typography.scss
CHANGED
|
@@ -139,6 +139,10 @@
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
.t-mono {
|
|
142
|
+
// JetBrains Mono ligates operators by default, so `===` paints as one triple-bar glyph
|
|
143
|
+
// and `!=` as a struck equals: prose that NAMES an operator then shows something other
|
|
144
|
+
// than the characters it discusses. Set --ds-t-mono-ligatures to `normal` to get them back.
|
|
145
|
+
font-variant-ligatures: var(--ds-t-mono-ligatures, none);
|
|
142
146
|
font-weight: var(--ds-t-mono-font-weight, var(--font-weight-medium));
|
|
143
147
|
font-size: var(--ds-t-mono-font-size, var(--font-size-mono));
|
|
144
148
|
line-height: var(--ds-t-mono-line-height, var(--line-height-base));
|
|
@@ -146,6 +150,7 @@
|
|
|
146
150
|
}
|
|
147
151
|
|
|
148
152
|
.t-mono-inline {
|
|
153
|
+
font-variant-ligatures: var(--ds-t-mono-ligatures, none);
|
|
149
154
|
font-weight: var(--ds-t-mono-inline-font-weight, var(--font-weight-regular));
|
|
150
155
|
font-size: var(--ds-t-mono-inline-font-size, var(--font-size-mono));
|
|
151
156
|
line-height: var(--ds-t-mono-inline-line-height, 1);
|
|
@@ -157,6 +162,7 @@
|
|
|
157
162
|
}
|
|
158
163
|
|
|
159
164
|
.t-mono-block {
|
|
165
|
+
font-variant-ligatures: var(--ds-t-mono-ligatures, none);
|
|
160
166
|
font-weight: var(--ds-t-mono-block-font-weight, var(--font-weight-regular));
|
|
161
167
|
font-size: var(--ds-t-mono-block-font-size, var(--font-size-mono));
|
|
162
168
|
line-height: var(--ds-t-mono-block-line-height, var(--line-height-loose));
|
package/themes/_semantic.scss
CHANGED
|
@@ -203,15 +203,14 @@
|
|
|
203
203
|
|
|
204
204
|
/* Focus rings.
|
|
205
205
|
Outer halos use hsla() composed from brand/danger HSL channels
|
|
206
|
-
so re-skinning --primary-h propagates into focus state.
|
|
206
|
+
so re-skinning --primary-h propagates into focus state. */
|
|
207
207
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
--focus-ring-inner: transparent;
|
|
208
|
+
/* Separates the two bands of the FIELD halo, and nothing else — controls draw an
|
|
209
|
+
`outline`, whose gap needs no colour at all. It cannot be `transparent`: a transparent
|
|
210
|
+
shadow layer is a no-op, not a hole, so the outer band would show through as one solid
|
|
211
|
+
4px slab. `--surface-default` and not `--surface-canvas`: a field sits on the surface,
|
|
212
|
+
and painting the page ground here drew a dark rim around a light card. */
|
|
213
|
+
--focus-ring-inner: var(--surface-default);
|
|
215
214
|
--focus-ring-outer-h: var(--primary-h);
|
|
216
215
|
--focus-ring-outer-s: var(--primary-s);
|
|
217
216
|
--focus-ring-outer-l: var(--primary-l);
|
|
@@ -23,7 +23,7 @@ import { BrandNameDirective } from '@ids-group-ltd/ids-design-system/components/
|
|
|
23
23
|
* unset when you supply a logo.
|
|
24
24
|
*
|
|
25
25
|
* ```html
|
|
26
|
-
* <ds-auth-layout brand="
|
|
26
|
+
* <ds-auth-layout brand="AppAdmin" logoLetter="A" tagline="Workspace administration">
|
|
27
27
|
* <h1 class="title">Sign in</h1>
|
|
28
28
|
* <form class="form">…</form>
|
|
29
29
|
*
|
|
@@ -41,7 +41,7 @@ declare class AuthLayoutComponent {
|
|
|
41
41
|
* tile; clear both to give one screen no brand row. */
|
|
42
42
|
readonly brand: _angular_core.InputSignal<string | null>;
|
|
43
43
|
/** Letter-mark glyph when it differs from the brand's first letter (e.g. an
|
|
44
|
-
* "A" tile beside the "
|
|
44
|
+
* "A" tile beside the "AppAdmin" wordmark). Empty = first letter of `brand`;
|
|
45
45
|
* unset falls back to `DS_CONFIG.brand.logoLetter`. */
|
|
46
46
|
readonly logoLetter: _angular_core.InputSignal<string | null>;
|
|
47
47
|
/** One line under the wordmark naming the product or audience. Unset falls back
|
|
@@ -4,6 +4,9 @@ import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
|
4
4
|
|
|
5
5
|
declare class MenuComponent {
|
|
6
6
|
private readonly items;
|
|
7
|
+
/** One item with an icon makes every item reserve the slot, so the labels share one axis. The
|
|
8
|
+
* menu owns the decision because an item would have to know its siblings to take it. */
|
|
9
|
+
protected readonly anyIcon: _angular_core.Signal<boolean>;
|
|
7
10
|
/** Index of the roving-focus item — the single item reachable via Tab. */
|
|
8
11
|
private readonly activeIndex;
|
|
9
12
|
constructor();
|
|
@@ -63,7 +63,11 @@ declare class RadioComponent extends DsFieldBase {
|
|
|
63
63
|
* When inside `ds-radio-group`, `isChecked()` derives from the group value and
|
|
64
64
|
* this input is not read. */
|
|
65
65
|
readonly checked: _angular_core.ModelSignal<boolean>;
|
|
66
|
-
/**
|
|
66
|
+
/** Lets a checked standalone radio be cleared by clicking it again. Off by default, and
|
|
67
|
+
* ignored inside `ds-radio-group`: there a radio is one option of a choice, and clearing it
|
|
68
|
+
* would leave the group with no value through a gesture the group cannot see. */
|
|
69
|
+
readonly deselectable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
70
|
+
/** A disabled parent `ds-radio-group` also disables it, whatever this is set to. */
|
|
67
71
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
68
72
|
/** Native `name` attribute — overridden by the group's name when inside `ds-radio-group`. */
|
|
69
73
|
readonly name: _angular_core.InputSignal<string>;
|
|
@@ -71,8 +75,7 @@ declare class RadioComponent extends DsFieldBase {
|
|
|
71
75
|
readonly value: _angular_core.InputSignal<unknown>;
|
|
72
76
|
/** Overrides the auto-generated id used for the input and its label's `for`. */
|
|
73
77
|
readonly inputId: _angular_core.InputSignal<string | null>;
|
|
74
|
-
/**
|
|
75
|
-
* Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
|
|
78
|
+
/** Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
|
|
76
79
|
readonly size: _angular_core.InputSignal<DsSize | null>;
|
|
77
80
|
readonly sizeResolved: _angular_core.Signal<DsSize>;
|
|
78
81
|
/** Marks the radio required — shows an asterisk on the label and sets `aria-required`. */
|
|
@@ -97,9 +100,10 @@ declare class RadioComponent extends DsFieldBase {
|
|
|
97
100
|
protected get tabIndexAttr(): 0 | -1;
|
|
98
101
|
/** Called by the group's keyboard handler to focus this radio's input. */
|
|
99
102
|
focus(): void;
|
|
103
|
+
protected onClick(): void;
|
|
100
104
|
protected onSelect(): void;
|
|
101
105
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RadioComponent, never>;
|
|
102
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RadioComponent, "ds-radio", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, ["*"], true, never>;
|
|
106
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RadioComponent, "ds-radio", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "deselectable": { "alias": "deselectable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, ["*"], true, never>;
|
|
103
107
|
}
|
|
104
108
|
|
|
105
109
|
export { RADIO_GROUP, RadioComponent, RadioGroupComponent };
|
|
@@ -41,7 +41,7 @@ declare class SidenavComponent implements SidenavContract {
|
|
|
41
41
|
* the wordmark while a `logoLetter` in the config still paints its tile. */
|
|
42
42
|
readonly brand: _angular_core.InputSignal<string | null>;
|
|
43
43
|
/** Letter-mark glyph when it differs from the brand's first letter (e.g. an
|
|
44
|
-
* "A" tile beside the "
|
|
44
|
+
* "A" tile beside the "AppAdmin" wordmark). Empty = first letter of `brand`;
|
|
45
45
|
* unset falls back to `DS_CONFIG.brand.logoLetter`. */
|
|
46
46
|
readonly logoLetter: _angular_core.InputSignal<string | null>;
|
|
47
47
|
/** Route the brand row links to — typically the app's home. Unset leaves the row a
|
|
@@ -74,11 +74,18 @@ declare class SidenavGroupComponent {
|
|
|
74
74
|
readonly icon: _angular_core.InputSignal<IconName | null>;
|
|
75
75
|
/** When true, the label/icon row becomes a clickable header that expands/collapses the group. */
|
|
76
76
|
readonly expandable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
77
|
+
/** Makes the group a destination of its own as well as a container: the header navigates here
|
|
78
|
+
* and the caret becomes a separate control, because one control cannot both go somewhere and
|
|
79
|
+
* stay to open something. Unset (the default) the whole header only expands — a heading that
|
|
80
|
+
* navigates closes the page being read the moment someone reaches for the group beneath it. */
|
|
81
|
+
readonly routerLink: _angular_core.InputSignal<string | readonly unknown[] | null>;
|
|
77
82
|
/** Two-way bindable open state; defaults open so a non-expandable group always shows its items. */
|
|
78
83
|
readonly expanded: _angular_core.ModelSignal<boolean>;
|
|
84
|
+
/** A header that navigates hands the caret its own button; one that does not is the button. */
|
|
85
|
+
protected readonly headerNavigates: _angular_core.Signal<boolean>;
|
|
79
86
|
protected toggle(): void;
|
|
80
87
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidenavGroupComponent, never>;
|
|
81
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidenavGroupComponent, "ds-sidenav-group", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["[ds-group-icon]", "*"], true, never>;
|
|
88
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidenavGroupComponent, "ds-sidenav-group", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["[ds-group-icon]", "*"], true, never>;
|
|
82
89
|
}
|
|
83
90
|
|
|
84
91
|
declare class SidenavItemComponent {
|