@ids-group-ltd/ids-design-system 0.12.2 → 0.12.3
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 +148 -0
- package/components.md +3 -1
- package/docs/agent/forms/ds-button.md +3 -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-breadcrumbs.mjs +20 -21
- 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 +57 -40
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +9 -4
- 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-field-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.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-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-modal.mjs +1 -1
- 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-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-radio-group.mjs +12 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.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-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-switch.mjs +9 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.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 +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.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.mjs +17 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/migrations/0.12.3.json +83 -0
- package/package.json +1 -1
- package/styles/_control-line.scss +45 -0
- package/styles/_field-state.scss +14 -15
- package/styles/_focus.scss +31 -60
- package/styles/_tokens.scss +22 -31
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +8 -17
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +26 -29
- package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +10 -10
- package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components.d.ts +12 -2
package/styles/_field-state.scss
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
// Keyed off `data-field-state` on the host
|
|
2
|
-
//
|
|
3
|
-
// success tint measures 1.05:1 against a white field, too faint to do the
|
|
4
|
-
// findability job a fill exists for, so neither carries one.
|
|
1
|
+
// Keyed off `data-field-state` on the host. Only error carries a fill: a warning or success tint
|
|
2
|
+
// measures 1.05:1 against a white field, too faint to be findable.
|
|
5
3
|
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
4
|
+
// Disabled takes no state paint — it is neither submitted nor validated, so an error border
|
|
5
|
+
// promises a correction that cannot be made. Read-only keeps it, because it IS submitted.
|
|
6
|
+
//
|
|
7
|
+
// The colour arguments let a component pass its own `--ds-<name>-*-error` resolver.
|
|
9
8
|
@mixin field-state(
|
|
10
9
|
$box,
|
|
11
10
|
$error-border: var(--error),
|
|
@@ -14,9 +13,10 @@
|
|
|
14
13
|
$warning-border: var(--warning-text),
|
|
15
14
|
$success-border: var(--success)
|
|
16
15
|
) {
|
|
17
|
-
// `:not(.in-group)
|
|
18
|
-
//
|
|
19
|
-
|
|
16
|
+
// `:not(.in-group)`: a segment ties `.in-group` at (0,3,0) and this mixin is included last, so
|
|
17
|
+
// without it the fill repaints one segment mid-row. `:not(.disabled)`: state is (0,3,0) against
|
|
18
|
+
// (0,2,0), so it out-ranks every disabled rule unless it stops matching.
|
|
19
|
+
:host([data-field-state='error']:not(.in-group)) #{$box}:not(.disabled):not(:disabled) {
|
|
20
20
|
border-color: #{$error-border};
|
|
21
21
|
background-color: #{$error-bg};
|
|
22
22
|
|
|
@@ -26,14 +26,13 @@
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
// --warning is
|
|
30
|
-
//
|
|
31
|
-
|
|
32
|
-
:host([data-field-state='warning']:not(.in-group)) #{$box} {
|
|
29
|
+
// --warning is 1.47:1 against a white field, where WCAG 1.4.11 asks 3:1 for a boundary.
|
|
30
|
+
// --warning-text is the first rung of the ramp that clears it, at 4.59:1.
|
|
31
|
+
:host([data-field-state='warning']:not(.in-group)) #{$box}:not(.disabled):not(:disabled) {
|
|
33
32
|
border-color: #{$warning-border};
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
:host([data-field-state='success']:not(.in-group)) #{$box} {
|
|
35
|
+
:host([data-field-state='success']:not(.in-group)) #{$box}:not(.disabled):not(:disabled) {
|
|
37
36
|
border-color: #{$success-border};
|
|
38
37
|
}
|
|
39
38
|
}
|
package/styles/_focus.scss
CHANGED
|
@@ -1,38 +1,28 @@
|
|
|
1
1
|
// Focus-indicator style, switched in ONE place: `<html data-focus="…">`.
|
|
2
2
|
//
|
|
3
|
-
// Two families, two mechanisms
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
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.
|
|
3
|
+
// Two families, two mechanisms: controls take an `outline`, fields a soft halo through
|
|
4
|
+
// `--ds-field-focus-shadow`. An outline is right for a control because `outline-offset` leaves its
|
|
5
|
+
// gap UNPAINTED, so the ring floats over whatever the control sits on, and a negative offset draws
|
|
6
|
+
// it inside the element where an `overflow` ancestor cannot clip it.
|
|
13
7
|
|
|
14
8
|
// The control indicator.
|
|
15
9
|
//
|
|
16
|
-
// Does NOT touch box-shadow, so a focused card keeps its elevation
|
|
17
|
-
//
|
|
18
|
-
//
|
|
10
|
+
// Does NOT touch box-shadow, so a focused card keeps its elevation; a state that paints its own
|
|
11
|
+
// shadow there has to yield instead — see `state-shadow`.
|
|
12
|
+
//
|
|
13
|
+
// A ring HOST must have a radius: there is no `outline-radius`, an outline follows the
|
|
14
|
+
// border-radius of the box it is painted on, so a square-cornered shell rings square. A shell that
|
|
15
|
+
// exists only to carry the ring takes `--focus-ring-radius`.
|
|
19
16
|
//
|
|
20
|
-
// Usage
|
|
21
|
-
//
|
|
22
|
-
// &:focus-visible { @include focus.ring; }
|
|
23
|
-
// &:focus-visible { @include focus.ring(calc(-1 * var(--focus-ring-offset))); } // clipped
|
|
17
|
+
// Usage, inside the element's own `&:focus-visible` block: `@include focus.ring;`, or
|
|
18
|
+
// `@include focus.ring(calc(-1 * var(--focus-ring-offset)))` where an ancestor clips.
|
|
24
19
|
@mixin ring($offset: var(--focus-ring-offset)) {
|
|
25
20
|
outline: var(--focus-ring-width) solid var(--focus-ring-color);
|
|
26
21
|
outline-offset: $offset;
|
|
27
22
|
|
|
28
|
-
// An ANIMATION, not a transition
|
|
29
|
-
//
|
|
30
|
-
//
|
|
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.
|
|
23
|
+
// An ANIMATION, not a transition: `transition` is one property, so a declaration here would
|
|
24
|
+
// REPLACE the component's own list while the element held focus. Colour only — animating the
|
|
25
|
+
// offset makes the ring lag the caret on a fast Tab.
|
|
36
26
|
animation: ds-focus-ring-in var(--duration-fast) var(--ease-standard);
|
|
37
27
|
}
|
|
38
28
|
|
|
@@ -51,20 +41,13 @@
|
|
|
51
41
|
}
|
|
52
42
|
}
|
|
53
43
|
|
|
54
|
-
// A shell that rings on its control's behalf
|
|
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.
|
|
44
|
+
// A shell that rings on its control's behalf, and silences $control in the same call — a shell
|
|
45
|
+
// that rings without silencing paints two, which `tools/check-focus-rings.mjs` checks for.
|
|
65
46
|
//
|
|
66
|
-
// NOT
|
|
67
|
-
// is
|
|
47
|
+
// `:has(:focus-visible)`, NOT `:focus-within`: the latter matches a pointer focus too, and a
|
|
48
|
+
// checkbox is not granted `:focus-visible` on click, so a clicked control kept its ring until
|
|
49
|
+
// focus moved away. NOT for a field shell — there `:focus-within` is correct, because clicking
|
|
50
|
+
// into a text input does grant `:focus-visible`.
|
|
68
51
|
//
|
|
69
52
|
// Usage: `.control-line { @include focus.ring-for('.check'); }`
|
|
70
53
|
@mixin ring-for($control, $offset: var(--focus-ring-offset)) {
|
|
@@ -75,46 +58,34 @@
|
|
|
75
58
|
@include owns-the-focus-ring($control);
|
|
76
59
|
}
|
|
77
60
|
|
|
78
|
-
// `$control` names ONE control
|
|
79
|
-
//
|
|
80
|
-
// then tabbing from the field to that button changes nothing on screen.
|
|
61
|
+
// `$control` names ONE control, never a blanket: a box-wide reset also silences the tab stops
|
|
62
|
+
// inside the box — a clear button, a stepper arrow.
|
|
81
63
|
@mixin owns-the-focus-ring($control) {
|
|
82
64
|
#{$control}:where(:focus-visible) {
|
|
83
65
|
@include own-indicator;
|
|
84
66
|
}
|
|
85
67
|
}
|
|
86
68
|
|
|
87
|
-
// Turns the base indicator off, for a control whose SHELL rings on its behalf.
|
|
88
|
-
//
|
|
89
|
-
//
|
|
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.
|
|
69
|
+
// Turns the base indicator off, for a control whose SHELL rings on its behalf. The media query is
|
|
70
|
+
// the whole point: forced colours drops `box-shadow`, so a silenced control under a halo-ringing
|
|
71
|
+
// shell would have no indicator at all in the one mode where it is mandatory.
|
|
94
72
|
@mixin own-indicator {
|
|
95
73
|
@media not (forced-colors: active) {
|
|
96
74
|
outline: none;
|
|
97
75
|
}
|
|
98
76
|
}
|
|
99
77
|
|
|
100
|
-
// For a persistent state
|
|
101
|
-
//
|
|
102
|
-
//
|
|
103
|
-
//
|
|
104
|
-
//
|
|
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)); }`
|
|
78
|
+
// For a persistent state that paints its own box-shadow on the element carrying the ring: one
|
|
79
|
+
// property cannot hold both, so this hands the ring the tie by intent rather than by line order.
|
|
80
|
+
// Only where the state has ANOTHER channel — a state carried by the shadow alone would go
|
|
81
|
+
// unreadable exactly while the user stands on it.
|
|
110
82
|
@mixin state-shadow($shadow) {
|
|
111
83
|
&:not(:focus-visible) {
|
|
112
84
|
box-shadow: $shadow;
|
|
113
85
|
}
|
|
114
86
|
}
|
|
115
87
|
|
|
116
|
-
// Fields ring like controls: the halo role is retargeted at the ring token
|
|
117
|
-
// families read the same colour and thickness.
|
|
88
|
+
// Fields ring like controls: the halo role is retargeted at the ring token.
|
|
118
89
|
:root[data-focus='ring'] {
|
|
119
90
|
--ds-field-focus-shadow: var(--focus-ring);
|
|
120
91
|
--ds-field-focus-shadow-error: var(--focus-ring-error);
|
package/styles/_tokens.scss
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Components consume only Tier 2/3 tokens. Reaching for a palette primitive
|
|
6
|
-
(--blue-600, --neutral-200, …) from a component style is a violation — add or
|
|
7
|
-
reuse a role instead. */
|
|
1
|
+
/* The theme-INDEPENDENT layer. Tier 1 primitives live in ../themes/_base-palette.scss and each
|
|
2
|
+
theme's _palette.scss, Tier 2 roles in ../themes/_semantic.scss. Components consume Tier 2/3
|
|
3
|
+
ONLY — reaching for --blue-600 from a component style is a violation, add or reuse a role. */
|
|
8
4
|
|
|
9
5
|
:root {
|
|
10
6
|
--space-0: 0;
|
|
@@ -45,11 +41,9 @@
|
|
|
45
41
|
--radius-pill-value: 999px;
|
|
46
42
|
--radius-pill: var(--radius-pill-value);
|
|
47
43
|
|
|
48
|
-
/* Radius ROLES — the layer a consumer retunes
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
fields share --radius-md with buttons, so a consumer who wants them apart
|
|
52
|
-
scopes the role — `ds-input { --ds-radius-control: 4px; }`. */
|
|
44
|
+
/* Radius ROLES — the layer a consumer retunes; components resolve
|
|
45
|
+
--ds-<comp>-radius -> role -> value, so a per-component override still wins. No `field` role
|
|
46
|
+
on purpose: scope the control role instead — `ds-input { --ds-radius-control: 4px; }`. */
|
|
53
47
|
--ds-radius-inner: var(--radius-sm);
|
|
54
48
|
--ds-radius-control: var(--radius-md);
|
|
55
49
|
--ds-radius-panel: var(--radius-lg);
|
|
@@ -67,10 +61,13 @@
|
|
|
67
61
|
--focus-ring-width: 2px;
|
|
68
62
|
--focus-ring-offset: 2px;
|
|
69
63
|
|
|
70
|
-
/*
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
64
|
+
/* The radius a box takes when it exists only to carry the ring. A control with a shape of its
|
|
65
|
+
own keeps it and ignores this. */
|
|
66
|
+
--focus-ring-radius: var(--ds-radius-inner);
|
|
67
|
+
|
|
68
|
+
/* Composed from a channel-split tint so a theme can re-colour them: -h/s come from
|
|
69
|
+
../themes/_base-palette.scss, -l from each theme's _palette.scss. The alphas stay constant
|
|
70
|
+
across themes, which is what makes the same values read as glows over dark surfaces. */
|
|
74
71
|
--shadow-1: 0 1px 2px hsl(var(--shadow-tint-h) var(--shadow-tint-s) var(--shadow-tint-l) / 6%),
|
|
75
72
|
0 1px 3px hsl(var(--shadow-tint-h) var(--shadow-tint-s) var(--shadow-tint-l) / 8%);
|
|
76
73
|
--shadow-2: 0 4px 8px hsl(var(--shadow-tint-h) var(--shadow-tint-s) var(--shadow-tint-l) / 6%),
|
|
@@ -136,11 +133,9 @@
|
|
|
136
133
|
--ease-accelerate: cubic-bezier(.3, 0, 1, 1);
|
|
137
134
|
--ease-spring: cubic-bezier(.5, 1.5, .5, 1);
|
|
138
135
|
|
|
139
|
-
/* Motion ROLES — name the intent once and every surface at that scale follows.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
--duration-base, not fast. A few resolvers stay on the raw scale on purpose:
|
|
143
|
-
ds-loading-overlay and the toast leave use --ease-standard, which no role carries. */
|
|
136
|
+
/* Motion ROLES — name the intent once and every surface at that scale follows. `exit` and
|
|
137
|
+
`exit-large` stay separate because panel LEAVES run at --duration-base, not fast, and a few
|
|
138
|
+
resolvers stay on the raw scale where no role carries what they need. */
|
|
144
139
|
--ds-motion-enter-panel-duration: var(--duration-fast);
|
|
145
140
|
--ds-motion-enter-panel-easing: var(--ease-decelerate);
|
|
146
141
|
--ds-motion-enter-surface-duration: var(--duration-base);
|
|
@@ -152,10 +147,8 @@
|
|
|
152
147
|
--ds-motion-exit-large-duration: var(--duration-base);
|
|
153
148
|
--ds-motion-exit-large-easing: var(--ease-accelerate);
|
|
154
149
|
|
|
155
|
-
/*
|
|
156
|
-
|
|
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. */
|
|
150
|
+
/* Its own role because the mark overshoots and nothing else at this scale does. Enter and exit
|
|
151
|
+
differ so it leaves faster than it arrives, which reads as weight rather than lag. */
|
|
159
152
|
--ds-motion-check-enter-duration: var(--duration-base);
|
|
160
153
|
--ds-motion-check-enter-easing: var(--ease-spring);
|
|
161
154
|
--ds-motion-check-exit-duration: var(--duration-fast);
|
|
@@ -252,12 +245,10 @@
|
|
|
252
245
|
the crisp ring. Components default their own --ds-*-focus-shadow to these,
|
|
253
246
|
so a consumer can retune a whole family or a single component. */
|
|
254
247
|
|
|
255
|
-
/* The flat tokens, NOT the --accent-focus-* aliases
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
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. */
|
|
248
|
+
/* The flat tokens, NOT the --accent-focus-* aliases — see docs/todo.md, "zone colour and
|
|
249
|
+
data-focus shape cannot both reach one role". A `var()` inside a custom property is
|
|
250
|
+
substituted where it is DECLARED, so a ds-color zone can never reach what is written here;
|
|
251
|
+
the switch wins because it is the documented one. */
|
|
261
252
|
--ds-field-focus-shadow: var(--focus-field);
|
|
262
253
|
--ds-field-focus-shadow-error: var(--focus-field-error);
|
|
263
254
|
--ds-control-focus-shadow: var(--focus-ring);
|
|
@@ -6,40 +6,31 @@ interface BreadcrumbItem {
|
|
|
6
6
|
label?: string;
|
|
7
7
|
href?: string;
|
|
8
8
|
icon?: IconName;
|
|
9
|
+
/** The name of a crumb with an icon and no `label`. Nothing is derived from `icon` — a glyph id
|
|
10
|
+
* is not a word for the user. */
|
|
11
|
+
ariaLabel?: string;
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
declare class BreadcrumbsComponent {
|
|
12
15
|
private readonly cfg;
|
|
13
16
|
private readonly svc;
|
|
14
|
-
/**
|
|
15
|
-
* When omitted, the component reads from `BreadcrumbsService.items`.
|
|
16
|
-
* Pass an explicit array to opt out of the service (per-page override).
|
|
17
|
-
*/
|
|
17
|
+
/** Omitted, the component reads `BreadcrumbsService.items`; an explicit array opts out. */
|
|
18
18
|
readonly items: _angular_core.InputSignal<BreadcrumbItem[] | null>;
|
|
19
19
|
/** Icon between crumbs; falls back to `DS_CONFIG.breadcrumbs.separator`, then `chevronRight`. */
|
|
20
20
|
readonly separator: _angular_core.InputSignal<IconName | null>;
|
|
21
21
|
/** Whether crumbs render as links; falls back to `DS_CONFIG.breadcrumbs.clickable`, then `true`. */
|
|
22
22
|
readonly clickable: _angular_core.InputSignal<boolean | null>;
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* Worth setting on any trail that can get deep: the row is `nowrap` with
|
|
28
|
-
* `overflow: hidden`, so without a cap an overlong trail is clipped from the
|
|
29
|
-
* END, which is the current page — the one crumb the reader needs most.
|
|
30
|
-
*/
|
|
23
|
+
/** Caps how many crumbs render, collapsing the middle — the first and the LAST always survive.
|
|
24
|
+
* Worth setting on any deep trail: the row is `nowrap` with `overflow: hidden`, so uncapped it
|
|
25
|
+
* is clipped from the END, which is the current page. */
|
|
31
26
|
readonly maxItems: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
32
27
|
/** Fires when a clickable crumb with `href` is activated; default navigation is always prevented. */
|
|
33
28
|
readonly navigate: _angular_core.OutputEmitterRef<BreadcrumbItem>;
|
|
34
29
|
private readonly allItems;
|
|
35
|
-
/**
|
|
36
|
-
* What renders. The collapsed crumb carries no `href`, so it is inert rather
|
|
37
|
-
* than a link to nowhere; its label is the count, which tells the reader how
|
|
38
|
-
* much is hidden instead of just that something is.
|
|
39
|
-
*/
|
|
40
30
|
protected readonly resolvedItems: _angular_core.Signal<BreadcrumbItem[]>;
|
|
41
31
|
protected readonly effectiveSeparator: _angular_core.Signal<IconName>;
|
|
42
32
|
protected readonly effectiveClickable: _angular_core.Signal<boolean>;
|
|
33
|
+
constructor();
|
|
43
34
|
protected onNav(event: Event, item: BreadcrumbItem): void;
|
|
44
35
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbsComponent, never>;
|
|
45
36
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BreadcrumbsComponent, "ds-breadcrumbs", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; "maxItems": { "alias": "maxItems"; "required": false; "isSignal": true; }; }, { "navigate": "navigate"; }, never, never, true, never>;
|
|
@@ -9,33 +9,35 @@ type ButtonVariant = 'solid' | 'tonal' | 'ghost' | 'outline' | 'text';
|
|
|
9
9
|
type ButtonType = 'button' | 'submit' | 'reset';
|
|
10
10
|
|
|
11
11
|
declare class ButtonComponent extends DsMessageBase {
|
|
12
|
-
/** Segment of a ds-field-group: the group owns the border, radius and focus
|
|
13
|
-
* ring, so .in-group strips this control back to its bare contents. */
|
|
14
12
|
protected readonly inGroup: boolean;
|
|
15
13
|
/** Brand/status hue family. */
|
|
16
14
|
readonly color: _angular_core.InputSignal<ButtonColor>;
|
|
17
|
-
/** Fill pattern
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
discouraged for ALL colours — prefer the global `.link` class; it stays for
|
|
21
|
-
cases needing the ds-button API (loading/fullWidth/typed pressed). */
|
|
15
|
+
/** Fill pattern. Every color×variant pair renders; the discouraged ones dev-warn with the
|
|
16
|
+
* reason. `text` is discouraged for every colour — prefer the global `.link` class, and keep
|
|
17
|
+
* this one only where the ds-button API is needed. */
|
|
22
18
|
readonly variant: _angular_core.InputSignal<ButtonVariant>;
|
|
23
19
|
/** Button height — sm/md/lg.
|
|
24
20
|
* Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
|
|
25
21
|
readonly size: _angular_core.InputSignal<DsSize | null>;
|
|
26
22
|
readonly sizeResolved: _angular_core.Signal<DsSize>;
|
|
27
|
-
/**
|
|
23
|
+
/** `RouterLink` target. Set it and the button renders an `<a [routerLink]>` with
|
|
24
|
+
* `routerLinkActive`: middle-click, open-in-new-tab and the announced "link" role depend on the
|
|
25
|
+
* element, not on the look. */
|
|
26
|
+
readonly routerLink: _angular_core.InputSignal<string | readonly unknown[] | null>;
|
|
27
|
+
/** Plain `href` target, used when `routerLink` is not set — an external address or a download.
|
|
28
|
+
* Renders an `<a href>`; same reasoning as `routerLink`. */
|
|
29
|
+
readonly href: _angular_core.InputSignal<string>;
|
|
30
|
+
/** Native `type`, defaulting to `'button'` so it never submits an ancestor form by accident.
|
|
31
|
+
* Button-only: ignored on a link, with a dev warning. */
|
|
28
32
|
readonly type: _angular_core.InputSignal<ButtonType>;
|
|
29
33
|
/** Disables the button and blocks `pressed`. */
|
|
30
34
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
31
|
-
/** Busy state — disables interaction and sets `aria-busy`.
|
|
35
|
+
/** Busy state — disables interaction and sets `aria-busy`. Button-only: a navigation cannot be
|
|
36
|
+
* in flight before it starts, so on an anchor it is ignored with a dev-mode warning. */
|
|
32
37
|
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
33
|
-
/** Stretch
|
|
34
|
-
and 100% wide (the inner control is already full-width). Use for mobile
|
|
35
|
-
primary CTAs and full-bleed form submit buttons. */
|
|
38
|
+
/** Stretch to fill the container: the host becomes block-level and 100% wide. */
|
|
36
39
|
readonly fullWidth: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
37
|
-
/** Accessible name
|
|
38
|
-
the visible label is absent or non-descriptive. */
|
|
40
|
+
/** Accessible name, forwarded as `aria-label`. For an icon-only or non-descriptive label. */
|
|
39
41
|
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
40
42
|
/** Leading icon, before the projected content. */
|
|
41
43
|
readonly icon: _angular_core.InputSignal<IconName | null>;
|
|
@@ -50,16 +52,11 @@ declare class ButtonComponent extends DsMessageBase {
|
|
|
50
52
|
/** ARIA `aria-controls`, forwarded to the inner <button> — the id of the panel
|
|
51
53
|
* this button opens, e.g. `ds-app-layout`'s `railId`. */
|
|
52
54
|
readonly ariaControls: _angular_core.InputSignal<string | null>;
|
|
53
|
-
/** Why the button is refused, shown as its second line
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* focused and the reason would never be announced. The click is swallowed in
|
|
59
|
-
* `onClick` instead. Leave it unset and nothing changes.
|
|
60
|
-
*
|
|
61
|
-
* Length is deliberately not capped: the text wraps and the button grows. Same
|
|
62
|
-
* name and meaning as `TableRowAction.disabledReason`. */
|
|
55
|
+
/** Why the button is refused, shown as its second line and read only while `disabled`. Setting
|
|
56
|
+
* it also changes HOW the button is disabled — `aria-disabled` instead of the native attribute,
|
|
57
|
+
* because a natively disabled button cannot be focused and the reason would never be announced,
|
|
58
|
+
* so the click is swallowed in `onClick` instead. Uncapped: the text wraps and the button grows.
|
|
59
|
+
* Same name and meaning as `TableRowAction.disabledReason`. */
|
|
63
60
|
readonly disabledReason: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
|
|
64
61
|
/** ARIA `aria-describedby` — point the button at a description the app renders
|
|
65
62
|
* itself, such as a `ds-field-message` under a form. Merged with the id of
|
|
@@ -67,10 +64,10 @@ declare class ButtonComponent extends DsMessageBase {
|
|
|
67
64
|
readonly ariaDescribedBy: _angular_core.InputSignal<string | null>;
|
|
68
65
|
/** Fires on click, unless `disabled` or `loading`. */
|
|
69
66
|
readonly pressed: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
70
|
-
/** The inner
|
|
71
|
-
*
|
|
72
|
-
|
|
73
|
-
readonly
|
|
67
|
+
/** The inner control, for an overlay trigger to position against and restore focus to. Typed
|
|
68
|
+
* `HTMLElement`, not `HTMLButtonElement`: the element follows the destination. */
|
|
69
|
+
readonly controlRef: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
70
|
+
protected readonly destination: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsDestination>;
|
|
74
71
|
protected readonly classes: _angular_core.Signal<string>;
|
|
75
72
|
protected readonly softDisabled: _angular_core.Signal<boolean>;
|
|
76
73
|
private readonly uid;
|
|
@@ -83,7 +80,7 @@ declare class ButtonComponent extends DsMessageBase {
|
|
|
83
80
|
constructor();
|
|
84
81
|
protected onClick(event: MouseEvent): void;
|
|
85
82
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
86
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "ds-button", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; "isSignal": true; }; "ariaHasPopup": { "alias": "ariaHasPopup"; "required": false; "isSignal": true; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; "isSignal": true; }; "ariaControls": { "alias": "ariaControls"; "required": false; "isSignal": true; }; "disabledReason": { "alias": "disabledReason"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; }, { "pressed": "pressed"; }, never, ["*", "[dsButtonSubtext]"], true, never>;
|
|
83
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "ds-button", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; "isSignal": true; }; "ariaHasPopup": { "alias": "ariaHasPopup"; "required": false; "isSignal": true; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; "isSignal": true; }; "ariaControls": { "alias": "ariaControls"; "required": false; "isSignal": true; }; "disabledReason": { "alias": "disabledReason"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; }, { "pressed": "pressed"; }, never, ["*", "[dsButtonSubtext]"], true, never>;
|
|
87
84
|
}
|
|
88
85
|
|
|
89
86
|
export { ButtonComponent };
|
|
@@ -24,18 +24,23 @@ declare class CheckboxComponent extends DsBooleanControlValueAccessor {
|
|
|
24
24
|
/** Inline label rendered beside the box and wired via for/id. Omit to
|
|
25
25
|
* bring your own <label>. */
|
|
26
26
|
readonly label: _angular_core.InputSignal<string>;
|
|
27
|
+
/** Accessible name for a control with no visible label — the row's `<label>` collapses when it
|
|
28
|
+
* is empty, leaving nothing to name it. Set beside a label it OVERRIDES the label, per ARIA. */
|
|
29
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
27
30
|
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
28
31
|
protected readonly uid: string;
|
|
29
32
|
protected readonly controlId: _angular_core.Signal<string>;
|
|
30
33
|
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
31
34
|
private readonly fieldMessage;
|
|
32
35
|
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
36
|
+
/** Only name via aria-label when there is no visible `<label for>` to do it. */
|
|
37
|
+
protected readonly resolvedAriaLabel: _angular_core.Signal<string | null>;
|
|
33
38
|
protected readonly invalidResolved: _angular_core.Signal<boolean>;
|
|
34
39
|
protected readonly controlState: _angular_core.Signal<_ids_group_ltd_ids_design_system_components_field_message.FieldMessageState | null>;
|
|
35
40
|
protected readonly fieldClass: _angular_core.Signal<string>;
|
|
36
41
|
protected onCheckedChange(event: Event): void;
|
|
37
42
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
38
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CheckboxComponent, "ds-checkbox", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "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>;
|
|
43
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CheckboxComponent, "ds-checkbox", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "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; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, ["*"], true, never>;
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
export { CheckboxComponent };
|
|
@@ -53,15 +53,10 @@ declare class RadioGroupComponent extends DsControlValueAccessor<unknown> implem
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
declare class RadioComponent extends DsFieldBase {
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* second accessor on the option would fight it. A lone radio in a form binds
|
|
61
|
-
* through `[(checked)]`, or becomes a one-option `ds-radio-group`.
|
|
62
|
-
*
|
|
63
|
-
* When inside `ds-radio-group`, `isChecked()` derives from the group value and
|
|
64
|
-
* this input is not read. */
|
|
56
|
+
/** The ONLY way to drive a lone radio: this is deliberately not a `ControlValueAccessor`, so
|
|
57
|
+
* `[formControl]` and `ngModel` do not bind to it — inside `ds-radio-group` the GROUP is the
|
|
58
|
+
* form control, and a second accessor on one option would fight it. Inside a group this input
|
|
59
|
+
* is not read at all. */
|
|
65
60
|
readonly checked: _angular_core.ModelSignal<boolean>;
|
|
66
61
|
/** Lets a checked standalone radio be cleared by clicking it again. Off by default, and
|
|
67
62
|
* ignored inside `ds-radio-group`: there a radio is one option of a choice, and clearing it
|
|
@@ -83,11 +78,16 @@ declare class RadioComponent extends DsFieldBase {
|
|
|
83
78
|
/** Inline label rendered beside the dot and wired via for/id. Omit to bring
|
|
84
79
|
* your own <label>. */
|
|
85
80
|
readonly label: _angular_core.InputSignal<string>;
|
|
81
|
+
/** Accessible name for a control with no visible label — the row's `<label>` collapses when it
|
|
82
|
+
* is empty, leaving nothing to name it. Set beside a label it OVERRIDES the label, per ARIA. */
|
|
83
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
86
84
|
protected readonly uid: string;
|
|
87
85
|
protected readonly controlId: _angular_core.Signal<string>;
|
|
88
86
|
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
89
87
|
private readonly fieldMessage;
|
|
90
88
|
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
89
|
+
/** Only name via aria-label when there is no visible `<label for>` to do it. */
|
|
90
|
+
protected readonly resolvedAriaLabel: _angular_core.Signal<string | null>;
|
|
91
91
|
protected readonly invalidResolved: _angular_core.Signal<boolean>;
|
|
92
92
|
/** Injected via token to avoid circular import with RadioGroupComponent. */
|
|
93
93
|
protected readonly group: _ids_group_ltd_ids_design_system_components_radio_group.RadioGroupContract | null;
|
|
@@ -103,7 +103,7 @@ declare class RadioComponent extends DsFieldBase {
|
|
|
103
103
|
protected onClick(): void;
|
|
104
104
|
protected onSelect(): void;
|
|
105
105
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RadioComponent, 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>;
|
|
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; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, ["*"], true, never>;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
export { RADIO_GROUP, RadioComponent, RadioGroupComponent };
|
|
@@ -23,18 +23,23 @@ declare class SwitchComponent extends DsBooleanControlValueAccessor {
|
|
|
23
23
|
/** Inline label rendered beside the track and wired via for/id. Omit to
|
|
24
24
|
* bring your own <label>. */
|
|
25
25
|
readonly label: _angular_core.InputSignal<string>;
|
|
26
|
+
/** Accessible name for a control with no visible label — the row's `<label>` collapses when it
|
|
27
|
+
* is empty, leaving nothing to name it. Set beside a label it OVERRIDES the label, per ARIA. */
|
|
28
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
26
29
|
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
27
30
|
protected readonly uid: string;
|
|
28
31
|
protected readonly controlId: _angular_core.Signal<string>;
|
|
29
32
|
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
30
33
|
private readonly fieldMessage;
|
|
31
34
|
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
35
|
+
/** Only name via aria-label when there is no visible `<label for>` to do it. */
|
|
36
|
+
protected readonly resolvedAriaLabel: _angular_core.Signal<string | null>;
|
|
32
37
|
protected readonly invalidResolved: _angular_core.Signal<boolean>;
|
|
33
38
|
protected readonly switchClasses: _angular_core.Signal<string>;
|
|
34
39
|
protected readonly fieldClass: _angular_core.Signal<string>;
|
|
35
40
|
protected onCheckedChange(event: Event): void;
|
|
36
41
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SwitchComponent, never>;
|
|
37
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SwitchComponent, "ds-switch", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "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>;
|
|
42
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SwitchComponent, "ds-switch", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "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; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, ["*"], true, never>;
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
export { SwitchComponent };
|
|
@@ -300,6 +300,16 @@ declare class DsCreateTemplateDirective {
|
|
|
300
300
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DsCreateTemplateDirective, "[dsCreateTemplate]", never, {}, {}, never, never, true, never>;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
+
type DsDestination = 'routerLink' | 'href' | 'button';
|
|
304
|
+
/**
|
|
305
|
+
* No destination is a `<button>`, never an `<a href="#">`: a `#` href navigates, rewriting the URL
|
|
306
|
+
* and discarding the scroll position. Only the decision is shared — each control keeps its own
|
|
307
|
+
* template branches, because a shared one would need a wrapper that changes the control's box.
|
|
308
|
+
*
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
declare function dsDestination(routerLink: Signal<string | readonly unknown[] | null>, href: Signal<string>): Signal<DsDestination>;
|
|
312
|
+
|
|
303
313
|
/**
|
|
304
314
|
* Replaces a picker panel's "no matches" row — an icon, a sentence in the app's
|
|
305
315
|
* own language, a "clear the filter" button.
|
|
@@ -625,5 +635,5 @@ interface DsTypeAhead {
|
|
|
625
635
|
/** @internal */
|
|
626
636
|
declare function createTypeAhead(): DsTypeAhead;
|
|
627
637
|
|
|
628
|
-
export { DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, announceOptionCount, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, disposeWithLeave, dropdownOverlay, focusIsInside, forwardOverlayTokens, nextControlId, overlayPlacementOf, prepareOverlayEnter, resolveBrandValue, resolveFieldMessage, scrollActiveOptionIntoView, trimmedText, valueControlBridge };
|
|
629
|
-
export type { DsFieldError, DsFieldErrorsInput, DsFieldMessage, DsOverlayCloseCause };
|
|
638
|
+
export { DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, announceOptionCount, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, disposeWithLeave, dropdownOverlay, dsDestination, focusIsInside, forwardOverlayTokens, nextControlId, overlayPlacementOf, prepareOverlayEnter, resolveBrandValue, resolveFieldMessage, scrollActiveOptionIntoView, trimmedText, valueControlBridge };
|
|
639
|
+
export type { DsDestination, DsFieldError, DsFieldErrorsInput, DsFieldMessage, DsOverlayCloseCause };
|