@slotted/angular 0.1.0-beta.12 → 0.1.0-beta.14
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/docs/action-bar.json +1 -0
- package/docs/action-bar.md +1 -1
- package/docs/action-sheet.json +391 -64
- package/docs/action-sheet.md +259 -0
- package/docs/alert.json +1 -1
- package/docs/alert.md +1 -1
- package/docs/combobox.json +1 -0
- package/docs/combobox.md +1 -1
- package/docs/data-grid.json +1 -1
- package/docs/date-picker.json +1 -0
- package/docs/date-picker.md +1 -1
- package/docs/drawer.json +1 -0
- package/docs/drawer.md +1 -1
- package/docs/entity-picker.json +1 -0
- package/docs/entity-picker.md +1 -1
- package/docs/inline-message.json +1 -1
- package/docs/inline-message.md +1 -1
- package/docs/kbd.json +3 -0
- package/docs/kbd.md +1 -1
- package/docs/menu.json +1 -0
- package/docs/menu.md +1 -1
- package/docs/popover.json +1 -0
- package/docs/popover.md +1 -1
- package/docs/scroll-area.json +266 -64
- package/docs/scroll-area.md +188 -0
- package/docs/section.json +11 -1
- package/docs/section.md +13 -12
- package/docs/select.json +1 -0
- package/docs/select.md +1 -1
- package/docs/skills/theme-app/SKILL.md +18 -4
- package/docs/splitter.json +279 -64
- package/docs/splitter.md +215 -0
- package/docs/status-indicator.json +16 -5
- package/docs/status-indicator.md +3 -1
- package/docs/table-of-contents.json +2 -1
- package/docs/table-of-contents.md +2 -2
- package/docs/tooltip.json +1 -0
- package/docs/tooltip.md +1 -1
- package/fesm2022/slotted-angular-action-bar.mjs +2 -2
- package/fesm2022/slotted-angular-action-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-alert.mjs +7 -7
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +2 -2
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-combobox.mjs +2 -2
- package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs +2 -2
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-dialog.mjs +8 -8
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +172 -51
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-entity-picker.mjs +2 -2
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-icon.mjs +185 -87
- package/fesm2022/slotted-angular-icon.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +7 -7
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs +4 -4
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-menu.mjs +2 -2
- package/fesm2022/slotted-angular-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-multi-select.mjs +2 -2
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-popover.mjs +2 -2
- package/fesm2022/slotted-angular-popover.mjs.map +1 -1
- package/fesm2022/slotted-angular-section.mjs +30 -3
- package/fesm2022/slotted-angular-section.mjs.map +1 -1
- package/fesm2022/slotted-angular-select.mjs +2 -2
- package/fesm2022/slotted-angular-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +30 -13
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-table-of-contents.mjs +2 -2
- package/fesm2022/slotted-angular-table-of-contents.mjs.map +1 -1
- package/fesm2022/slotted-angular-theme.mjs +6 -3
- package/fesm2022/slotted-angular-theme.mjs.map +1 -1
- package/fesm2022/slotted-angular-toast.mjs +8 -8
- package/fesm2022/slotted-angular-toast.mjs.map +1 -1
- package/fesm2022/slotted-angular-tooltip.mjs +2 -2
- package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
- package/package.json +3 -3
- package/types/slotted-angular-alert.d.ts +2 -1
- package/types/slotted-angular-alert.d.ts.map +1 -1
- package/types/slotted-angular-attachment.d.ts +2 -1
- package/types/slotted-angular-attachment.d.ts.map +1 -1
- package/types/slotted-angular-code-block.d.ts +2 -1
- package/types/slotted-angular-code-block.d.ts.map +1 -1
- package/types/slotted-angular-collapsible.d.ts +2 -1
- package/types/slotted-angular-collapsible.d.ts.map +1 -1
- package/types/slotted-angular-combobox.d.ts +2 -1
- package/types/slotted-angular-combobox.d.ts.map +1 -1
- package/types/slotted-angular-dialog.d.ts +2 -1
- package/types/slotted-angular-dialog.d.ts.map +1 -1
- package/types/slotted-angular-drawer.d.ts +17 -0
- package/types/slotted-angular-drawer.d.ts.map +1 -1
- package/types/slotted-angular-icon.d.ts +12 -2
- package/types/slotted-angular-icon.d.ts.map +1 -1
- package/types/slotted-angular-inline-message.d.ts +3 -2
- package/types/slotted-angular-inline-message.d.ts.map +1 -1
- package/types/slotted-angular-multi-select.d.ts +2 -1
- package/types/slotted-angular-multi-select.d.ts.map +1 -1
- package/types/slotted-angular-section.d.ts +3 -1
- package/types/slotted-angular-section.d.ts.map +1 -1
- package/types/slotted-angular-select.d.ts +2 -1
- package/types/slotted-angular-select.d.ts.map +1 -1
- package/types/slotted-angular-status-indicator.d.ts +13 -3
- package/types/slotted-angular-status-indicator.d.ts.map +1 -1
- package/types/slotted-angular-stepper.d.ts +2 -1
- package/types/slotted-angular-stepper.d.ts.map +1 -1
- package/types/slotted-angular-theme.d.ts +6 -4
- package/types/slotted-angular-theme.d.ts.map +1 -1
- package/types/slotted-angular-toast.d.ts +4 -2
- package/types/slotted-angular-toast.d.ts.map +1 -1
- package/types/slotted-angular-upload.d.ts +4 -2
- package/types/slotted-angular-upload.d.ts.map +1 -1
package/docs/splitter.md
CHANGED
|
@@ -3,12 +3,227 @@
|
|
|
3
3
|
|
|
4
4
|
`data-ui="splitter"` · Resizable panes divided by a handle.
|
|
5
5
|
|
|
6
|
+
## Import
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
import { SlSplitter, provideSplitterDefaults } from '@slotted/angular/splitter';
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Selector: `[slSplitter]` · exportAs: `slSplitter`
|
|
13
|
+
|
|
14
|
+
## Minimal example
|
|
15
|
+
|
|
16
|
+
Excerpt — not a complete module
|
|
17
|
+
|
|
18
|
+
```html
|
|
19
|
+
<div class="workspace">
|
|
20
|
+
<aside>…</aside>
|
|
21
|
+
<div slSplitter [(value)]="width"></div>
|
|
22
|
+
<main>…</main>
|
|
23
|
+
</div>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Anatomy
|
|
27
|
+
|
|
28
|
+
| Part | Element | Required |
|
|
29
|
+
| --- | --- | --- |
|
|
30
|
+
| `root` | the consumer’s own element, with role=separator and tabindex=0 | yes |
|
|
31
|
+
| `line` | span | yes |
|
|
32
|
+
| `grip` | span[aria-hidden] | yes |
|
|
33
|
+
|
|
34
|
+
## Props
|
|
35
|
+
|
|
36
|
+
| Name | Type | Default | Applies to | Description |
|
|
37
|
+
| --- | --- | --- | --- | --- |
|
|
38
|
+
| `orientation` | `'vertical' \| 'horizontal'` | vertical | slSplitter | Which way the bar’s own line runs. A vertical line divides two regions side by side |
|
|
39
|
+
| `for` | `HTMLElement` | the previous element sibling | slSplitter | The element the bar sizes, announces and writes the fraction on, as a template reference |
|
|
40
|
+
| `value` | `model<number>` | 0.5 | slSplitter | The fraction of the container taken by the region before the bar, in [0, 1] |
|
|
41
|
+
| `min` | `number \| string` | 0 | slSplitter | A fraction, or any CSS length resolved against the container — "200px", "18rem", "25%" |
|
|
42
|
+
| `max` | `number \| string` | 1 | slSplitter | The ceiling, in either unit |
|
|
43
|
+
| `defaultValue` | `number` | 0.5 | slSplitter | Where reset() and a double click return the bar, brought inside min and max. An input of its own and not the model’s first value: the value bound on arrival is where the reader left the bar, restored from storage, and never where a reset should go |
|
|
44
|
+
| `snapPoints` | `readonly number[]` | | slSplitter | Stops a released drag lands on and an arrow steps between. Empty is a continuous range |
|
|
45
|
+
| `collapsible` | `boolean` | false | slSplitter | Whether Enter collapses the region before the bar |
|
|
46
|
+
| `collapsedValue` | `number` | 0 | slSplitter | Where a collapse lands |
|
|
47
|
+
| `collapsed` | `model<boolean>` | false | slSplitter | Whether the region is collapsed |
|
|
48
|
+
| `disabled` | `boolean` | false | slSplitter | Stops the bar moving. It keeps the tab stop, so the value stays readable |
|
|
49
|
+
| `provideSplitterDefaults` | `{ orientation, min, max, collapsedValue }` | — | Providers | An application states its floor once rather than on every bar in it |
|
|
50
|
+
| `exportAs` | `'slSplitter'` | — | slSplitter | collapse(), expand(), reset() and focus(), reachable from the template |
|
|
51
|
+
| `the host element` | `any element` | — | slSplitter | A directive, so the bar is whatever element the consumer’s layout wanted there |
|
|
52
|
+
| `--slotted-splitter-value` | `number` | — | the element [for] names | The fraction, published where CSS can read it, so the common case needs no component state at all |
|
|
53
|
+
|
|
54
|
+
## Events
|
|
55
|
+
|
|
56
|
+
| Name | Payload | When |
|
|
57
|
+
| --- | --- | --- |
|
|
58
|
+
| `valueChange` | `number` | After the position moves. The two-way form of the model, for a template that binds [(value)]. |
|
|
59
|
+
| `valueChangeRequest` | `SplitterValueRequest` | Before the position moves, on every step of a drag and on every key press. Call cancel() on it to refuse; reason is pointer, keyboard or programmatic. |
|
|
60
|
+
| `collapsedChangeRequest` | `SplitterCollapsedRequest` | Before Enter collapses the region or brings it back. Refusing it leaves both the state and the measure where they were. |
|
|
61
|
+
| `resizeEnd` | `number` | Once, when a drag settles. The value moves throughout one, so a consumer saving a layout saves here rather than sixty times there. |
|
|
62
|
+
|
|
6
63
|
## Axes and defaults
|
|
7
64
|
|
|
8
65
|
| Axis | Values | Default |
|
|
9
66
|
| --- | --- | --- |
|
|
10
67
|
| `orientation` | `vertical`, `horizontal` | `vertical` |
|
|
11
68
|
|
|
69
|
+
## Rules
|
|
70
|
+
|
|
71
|
+
- The bar has no default accessible name: the family cannot know which region it sizes. Name it with aria-labelledby pointing at the heading of the element `for` names, or with aria-label.
|
|
72
|
+
- The bar is role="separator" with tabindex="0", which is the focusable widget form the role takes in the WAI-ARIA Window Splitter pattern; aria-valuenow, aria-valuemin and aria-valuemax are the fraction times a hundred, and the value reported is the clamped one, so the announcement and the layout cannot disagree.
|
|
73
|
+
- aria-orientation is written only for the vertical bar, because horizontal is the attribute’s own default on role="separator" and a family writes the departure from an element’s semantics rather than the agreement with it.
|
|
74
|
+
- aria-controls names the element [for] hands the bar — the same element that carries --slotted-splitter-value and the same one the bar sizes, so what a reader hears and what a reader sees are one region rather than two that can drift; the family writes that element an id when it has none.
|
|
75
|
+
- A role, a tabindex or an aria-controls the consumer wrote on the element is read with HostAttributeToken before the host bindings run, and kept: a binding that resolves to null removes an attribute rather than leaving the author’s value in place.
|
|
76
|
+
- A disabled bar keeps its tab stop and its announcement. A reader who cannot move a separator can still read the value it holds.
|
|
77
|
+
|
|
12
78
|
## Tokens
|
|
13
79
|
|
|
14
80
|
`--slotted-border-strong`, `--slotted-border-width-thin`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-border`, `--slotted-duration-instant`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-sm`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-6`, `--slotted-space-9`, `--slotted-splitter-disabled-line-color`, `--slotted-splitter-line-active-color`, `--slotted-splitter-line-color`, `--slotted-target-min`, `--slotted-text-muted`
|
|
81
|
+
|
|
82
|
+
## Examples
|
|
83
|
+
|
|
84
|
+
### Both axes, and the arrows each one answers
|
|
85
|
+
|
|
86
|
+
A vertical bar divides two regions side by side and answers Left and Right; a horizontal bar divides two stacked regions and answers Up and Down. The other pair is left to the page, so a document that scrolls still scrolls.
|
|
87
|
+
|
|
88
|
+
Excerpt — not a complete module
|
|
89
|
+
|
|
90
|
+
```html
|
|
91
|
+
<div slSplitter orientation="vertical"></div>
|
|
92
|
+
<div slSplitter orientation="horizontal"></div>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Two-way, and the fraction published to CSS
|
|
96
|
+
|
|
97
|
+
The left pair holds no value at all and is driven by the custom property; the right pair binds [(value)] and prints the number beside it. Both regions are sized by one CSS rule, never by a style attribute.
|
|
98
|
+
|
|
99
|
+
Excerpt — not a complete module
|
|
100
|
+
|
|
101
|
+
```html
|
|
102
|
+
<!-- aside { inline-size: calc(var(--slotted-splitter-value, 0.34) * 100%) } -->
|
|
103
|
+
<div slSplitter></div>
|
|
104
|
+
|
|
105
|
+
<div slSplitter [(value)]="width"></div>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### A floor in pixels beside a ceiling in per cent
|
|
109
|
+
|
|
110
|
+
Drag both bars to their ends. The first stops at two hundred pixels however narrow the window gets; the second stops at sixty per cent of it. Not one of the seven surveyed implementations can state the first — Zag says outright that it takes percentages only.
|
|
111
|
+
|
|
112
|
+
Excerpt — not a complete module
|
|
113
|
+
|
|
114
|
+
```html
|
|
115
|
+
<div slSplitter min="200px" [max]="0.6"></div>
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Enter collapses the region, and Enter brings it back
|
|
119
|
+
|
|
120
|
+
The pattern’s own key. Collapsing stores the fraction the region had and expanding returns it, so a restored region comes back where it was rather than at some small size indistinguishable from a collapse.
|
|
121
|
+
|
|
122
|
+
Excerpt — not a complete module
|
|
123
|
+
|
|
124
|
+
```html
|
|
125
|
+
<div slSplitter collapsible [collapsedValue]="0.06" [(value)]="width"></div>
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Three stops a released drag lands on
|
|
129
|
+
|
|
130
|
+
Drag past a stop and let go: the bar takes the nearest one. It snaps on release and never during the drag, because a bar that snapped on every move would fight the hand rather than help it. The arrows step between the same stops.
|
|
131
|
+
|
|
132
|
+
Excerpt — not a complete module
|
|
133
|
+
|
|
134
|
+
```html
|
|
135
|
+
<div slSplitter [snapPoints]="[0.2, 0.34, 0.5]"></div>
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Double click puts it back at defaultValue
|
|
139
|
+
|
|
140
|
+
Move the bar anywhere, then double click it: it returns to defaultValue, inside min and max. The pattern assigns double click nothing, and every surveyed implementation that ships a reset puts it there; the same action is on the instance as reset().
|
|
141
|
+
|
|
142
|
+
Excerpt — not a complete module
|
|
143
|
+
|
|
144
|
+
```html
|
|
145
|
+
<div slSplitter #bar="slSplitter" [defaultValue]="0.34" [(value)]="width"></div>
|
|
146
|
+
<button (click)="bar.reset()">Repor</button>
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Frozen, and still readable
|
|
150
|
+
|
|
151
|
+
The bar keeps its tab stop and its three ARIA values, and the lines drop to the disabled step. Hover and press are held back for it. A reader who cannot move a separator can still be told where it is.
|
|
152
|
+
|
|
153
|
+
Excerpt — not a complete module
|
|
154
|
+
|
|
155
|
+
```html
|
|
156
|
+
<div slSplitter disabled [value]="0.34"></div>
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Every key the pattern lists
|
|
160
|
+
|
|
161
|
+
Tab to the bar: arrows move sixteen pixels and sixty-four with Shift, Home and End go to the limits, Enter collapses and restores. Watch aria-valuenow in the row beneath as each one lands.
|
|
162
|
+
|
|
163
|
+
Excerpt — not a complete module
|
|
164
|
+
|
|
165
|
+
```html
|
|
166
|
+
<div slSplitter collapsible [min]="0.15" [max]="0.75" [(value)]="width"></div>
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Two bars in series, each clamping alone
|
|
170
|
+
|
|
171
|
+
The shape the SAP Help Portal uses. The family holds no panels, so the consumer owns the layout and therefore the policy: each bar clamps against its own limits and neither negotiates with the other.
|
|
172
|
+
|
|
173
|
+
Excerpt — not a complete module
|
|
174
|
+
|
|
175
|
+
```html
|
|
176
|
+
<div class="workspace">
|
|
177
|
+
<aside #toc>…</aside>
|
|
178
|
+
<div slSplitter [for]="toc" min="180px" [max]="0.4"></div>
|
|
179
|
+
<main #doc>…</main>
|
|
180
|
+
<div slSplitter [for]="doc" [min]="0.4" [max]="0.85"></div>
|
|
181
|
+
<aside>…</aside>
|
|
182
|
+
</div>
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### A layout that survives a reload
|
|
186
|
+
|
|
187
|
+
Drag the bar: the moving number changes every frame and the saved one changes once, on release. The family never touches storage — which storage, and whether a layout crosses a login, are the application’s decisions.
|
|
188
|
+
|
|
189
|
+
Excerpt — not a complete module
|
|
190
|
+
|
|
191
|
+
```html
|
|
192
|
+
<div slSplitter [(value)]="width" (resizeEnd)="save($event)"></div>
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### The instance a template reaches, and a host the consumer chose
|
|
196
|
+
|
|
197
|
+
The bar is a directive, so it is written on whatever element the layout wanted there. The buttons drive the instance through exportAs; the second bar refuses every keyboard move from its own handler.
|
|
198
|
+
|
|
199
|
+
Excerpt — not a complete module
|
|
200
|
+
|
|
201
|
+
```html
|
|
202
|
+
<section slSplitter #bar="slSplitter" collapsible></section>
|
|
203
|
+
<button (click)="bar.collapse()">collapse()</button>
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### One floor, stated once for the application
|
|
207
|
+
|
|
208
|
+
Both bars inherit a two-hundred-pixel floor from the provider; the second states its own and wins, because an explicit consumer value always does. None of the seven surveyed implementations has an equivalent.
|
|
209
|
+
|
|
210
|
+
Excerpt — not a complete module
|
|
211
|
+
|
|
212
|
+
```ts
|
|
213
|
+
bootstrapApplication(App, {
|
|
214
|
+
providers: [provideSplitterDefaults({ min: '200px' })],
|
|
215
|
+
});
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### What a screen reader is told
|
|
219
|
+
|
|
220
|
+
The bar names the region through aria-controls and takes its name from that region’s own heading, which is the pattern’s rule: a separator is named for the region it sizes. The row beneath prints the four attributes as they stand in the DOM.
|
|
221
|
+
|
|
222
|
+
Excerpt — not a complete module
|
|
223
|
+
|
|
224
|
+
```html
|
|
225
|
+
<aside #region>
|
|
226
|
+
<h3 id="contas-heading">Contas a receber</h3>
|
|
227
|
+
</aside>
|
|
228
|
+
<div slSplitter [for]="region" aria-labelledby="contas-heading"></div>
|
|
229
|
+
```
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"root",
|
|
55
55
|
"mark",
|
|
56
56
|
"label",
|
|
57
|
+
"detail",
|
|
57
58
|
"announcement"
|
|
58
59
|
]
|
|
59
60
|
}
|
|
@@ -76,13 +77,19 @@
|
|
|
76
77
|
"part": "mark",
|
|
77
78
|
"element": "span",
|
|
78
79
|
"required": true,
|
|
79
|
-
"purpose": "The disc or the glyph
|
|
80
|
+
"purpose": "The disc or the glyph, inside the first line and centred on its capitals, so the mark stays on that line however far the label wraps. Hidden from assistive technology: it says nothing the label does not."
|
|
80
81
|
},
|
|
81
82
|
{
|
|
82
83
|
"part": "label",
|
|
83
84
|
"element": "span",
|
|
84
85
|
"required": true,
|
|
85
|
-
"purpose": "The projected content. It wraps rather than truncating, and breaks an unbroken token, so a deployment id does not widen the column it sits in."
|
|
86
|
+
"purpose": "The projected content. It wraps rather than truncating, with the lines after the first under the first word, and breaks an unbroken token, so a deployment id does not widen the column it sits in. A table row aligns on its first line."
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"part": "detail",
|
|
90
|
+
"element": "the consumer’s element with slStatusIndicatorDetail",
|
|
91
|
+
"required": false,
|
|
92
|
+
"purpose": "A second, quieter line under the words — a progress, a time — set in the muted text colour and hanging under the first word. Projected inside the label, so it is read with the words."
|
|
86
93
|
},
|
|
87
94
|
{
|
|
88
95
|
"part": "announcement",
|
|
@@ -150,6 +157,13 @@
|
|
|
150
157
|
"appliesTo": "SlStatusIndicator",
|
|
151
158
|
"description": "The visible words, which are also the accessible name. Its fallback content is the clipped word, so the template itself decides which of the two a reader gets"
|
|
152
159
|
},
|
|
160
|
+
{
|
|
161
|
+
"name": "[slStatusIndicatorDetail]",
|
|
162
|
+
"type": "projected content",
|
|
163
|
+
"defaultValue": "—",
|
|
164
|
+
"appliesTo": "SlStatusIndicatorDetail",
|
|
165
|
+
"description": "A second, quieter line under the words, projected inside the label as the detail part"
|
|
166
|
+
},
|
|
153
167
|
{
|
|
154
168
|
"name": "host element",
|
|
155
169
|
"type": "any",
|
|
@@ -199,9 +213,6 @@
|
|
|
199
213
|
"--slotted-control-font-size-lg",
|
|
200
214
|
"--slotted-control-font-size-md",
|
|
201
215
|
"--slotted-control-font-size-sm",
|
|
202
|
-
"--slotted-control-icon-size-lg",
|
|
203
|
-
"--slotted-control-icon-size-md",
|
|
204
|
-
"--slotted-control-icon-size-sm",
|
|
205
216
|
"--slotted-duration-loop-slow",
|
|
206
217
|
"--slotted-duration-short",
|
|
207
218
|
"--slotted-easing-enter",
|
package/docs/status-indicator.md
CHANGED
|
@@ -32,6 +32,7 @@ Excerpt — not a complete module
|
|
|
32
32
|
| `root` | the consumer’s element | yes |
|
|
33
33
|
| `mark` | span | yes |
|
|
34
34
|
| `label` | span | yes |
|
|
35
|
+
| `detail` | the consumer’s element with slStatusIndicatorDetail | no |
|
|
35
36
|
| `announcement` | span | no |
|
|
36
37
|
|
|
37
38
|
## Props
|
|
@@ -46,6 +47,7 @@ Excerpt — not a complete module
|
|
|
46
47
|
| `label` | `string` | — | SlStatusIndicator | What a reader hears when nothing is projected. Ignored when something is. Falls back to the status’s word in the catalog |
|
|
47
48
|
| `messages` | `Partial<StatusIndicatorMessages>` | — | SlStatusIndicator | Words laid over the language in force, key by key: the word each status is heard as when nothing is projected (neutral, info, success, warning, danger, unknown) |
|
|
48
49
|
| `ng-content` | `projected content` | — | SlStatusIndicator | The visible words, which are also the accessible name. Its fallback content is the clipped word, so the template itself decides which of the two a reader gets |
|
|
50
|
+
| `[slStatusIndicatorDetail]` | `projected content` | — | SlStatusIndicatorDetail | A second, quieter line under the words, projected inside the label as the detail part |
|
|
49
51
|
| `host element` | `any` | — | SlStatusIndicator | The selector is a bare attribute, so the element stays the consumer’s: a td, an anchor, a list item. Its own attributes and events are untouched |
|
|
50
52
|
| `exportAs` | `'slStatusIndicator'` | — | SlStatusIndicator | Reaches the instance from a template — name(), markValue(), sizeValue() and liveValue() are the resolved values after the provider |
|
|
51
53
|
| `provideStatusIndicatorDefaults` | `{ mark, size, live }` | — | an injector | Sets the three once for an application or a route. An explicit input still wins |
|
|
@@ -72,7 +74,7 @@ Excerpt — not a complete module
|
|
|
72
74
|
|
|
73
75
|
## Tokens
|
|
74
76
|
|
|
75
|
-
`--slotted-border-strong`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-
|
|
77
|
+
`--slotted-border-strong`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-duration-loop-slow`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-line-height-md`, `--slotted-radius-full`, `--slotted-space-1`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-status-indicator-font-family`, `--slotted-status-indicator-mark-border-color`, `--slotted-status-indicator-mark-border-width`, `--slotted-text-muted`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-text`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-text`, `--slotted-tone-success-solid`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-text`
|
|
76
78
|
|
|
77
79
|
## Examples
|
|
78
80
|
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
"type": "boolean",
|
|
252
252
|
"defaultValue": "false",
|
|
253
253
|
"appliesTo": "slTableOfContents",
|
|
254
|
-
"description": "Pins the column under the page’s chrome and gives it the rest of the viewport; the panel scrolls. Ignored in the collapsed layout"
|
|
254
|
+
"description": "Pins the column under the page’s chrome, clear of it by --slotted-table-of-contents-sticky-inset, and gives it the rest of the viewport; the panel scrolls. Ignored in the collapsed layout"
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
257
|
"name": "history",
|
|
@@ -404,6 +404,7 @@
|
|
|
404
404
|
"--slotted-table-of-contents-color-hover",
|
|
405
405
|
"--slotted-table-of-contents-indent",
|
|
406
406
|
"--slotted-table-of-contents-marker-color",
|
|
407
|
+
"--slotted-table-of-contents-sticky-inset",
|
|
407
408
|
"--slotted-table-of-contents-track-color",
|
|
408
409
|
"--slotted-table-of-contents-track-width",
|
|
409
410
|
"--slotted-text",
|
|
@@ -50,7 +50,7 @@ Excerpt — not a complete module
|
|
|
50
50
|
| `open` | `model<boolean>` | false | slTableOfContents | Whether the collapsed list is shown. Two-way, through openChangeRequest |
|
|
51
51
|
| `layout` | `'vertical' \| 'horizontal' \| 'collapsed'` | vertical | slTableOfContents | The column, the bar, or the trigger with the list under it. The consumer’s breakpoint decides; the family never decides by width |
|
|
52
52
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | slTableOfContents | The row step, on the control scale: height, type and inset |
|
|
53
|
-
| `sticky` | `boolean` | false | slTableOfContents | Pins the column under the page’s chrome and gives it the rest of the viewport; the panel scrolls. Ignored in the collapsed layout |
|
|
53
|
+
| `sticky` | `boolean` | false | slTableOfContents | Pins the column under the page’s chrome, clear of it by --slotted-table-of-contents-sticky-inset, and gives it the rest of the viewport; the panel scrolls. Ignored in the collapsed layout |
|
|
54
54
|
| `history` | `'push' \| 'replace' \| 'none'` | push | slTableOfContents | What a press does to the URL: pushState, replaceState, or nothing. scrollTo() never writes it |
|
|
55
55
|
| `numbered` | `boolean` | false | slTableOfContents | Counters per level before each link |
|
|
56
56
|
| `landmark` | `boolean` | true | slTableOfContents | Whether the host takes the landmark’s name. The element is the consumer’s: a nav is the landmark, a div inside one that already has a name is not |
|
|
@@ -94,7 +94,7 @@ Excerpt — not a complete module
|
|
|
94
94
|
|
|
95
95
|
## Tokens
|
|
96
96
|
|
|
97
|
-
`--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thin`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-sm`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-sm`, `--slotted-radius-full`, `--slotted-radius-md`, `--slotted-shadow-md`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-table-of-contents-color`, `--slotted-table-of-contents-color-current`, `--slotted-table-of-contents-color-hover`, `--slotted-table-of-contents-indent`, `--slotted-table-of-contents-marker-color`, `--slotted-table-of-contents-track-color`, `--slotted-table-of-contents-track-width`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-text`, `--slotted-z-index-popover`
|
|
97
|
+
`--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thin`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-sm`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-sm`, `--slotted-radius-full`, `--slotted-radius-md`, `--slotted-shadow-md`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-table-of-contents-color`, `--slotted-table-of-contents-color-current`, `--slotted-table-of-contents-color-hover`, `--slotted-table-of-contents-indent`, `--slotted-table-of-contents-marker-color`, `--slotted-table-of-contents-sticky-inset`, `--slotted-table-of-contents-track-color`, `--slotted-table-of-contents-track-width`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-text`, `--slotted-z-index-popover`
|
|
98
98
|
|
|
99
99
|
## Examples
|
|
100
100
|
|
package/docs/tooltip.json
CHANGED
package/docs/tooltip.md
CHANGED
|
@@ -139,7 +139,7 @@ export class TooltipBasic {}
|
|
|
139
139
|
|
|
140
140
|
## Tokens
|
|
141
141
|
|
|
142
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-font-family-sans`, `--slotted-font-weight-regular`, `--slotted-line-height-sm`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-shadow-xs`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-surface-inverse`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-inverse`, `--slotted-tooltip-arrow-size`, `--slotted-tooltip-arrow-tip-radius`, `--slotted-tooltip-border-color`, `--slotted-tooltip-gap`, `--slotted-tooltip-measure`, `--slotted-tooltip-measure-sm`, `--slotted-tooltip-radius`, `--slotted-tooltip-shadow`, `--slotted-tooltip-surface`, `--slotted-tooltip-surface-raised`, `--slotted-tooltip-text`, `--slotted-tooltip-text-raised`, `--slotted-z-index-popover`
|
|
142
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-font-family-sans`, `--slotted-font-weight-regular`, `--slotted-line-height-sm`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-shadow-xs`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-surface-inverse`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-inverse`, `--slotted-tooltip-arrow-size`, `--slotted-tooltip-arrow-tip-radius`, `--slotted-tooltip-backdrop-filter`, `--slotted-tooltip-border-color`, `--slotted-tooltip-gap`, `--slotted-tooltip-measure`, `--slotted-tooltip-measure-sm`, `--slotted-tooltip-radius`, `--slotted-tooltip-shadow`, `--slotted-tooltip-surface`, `--slotted-tooltip-surface-raised`, `--slotted-tooltip-text`, `--slotted-tooltip-text-raised`, `--slotted-z-index-popover`
|
|
143
143
|
|
|
144
144
|
## Examples
|
|
145
145
|
|
|
@@ -322,7 +322,7 @@ class SlActionBar {
|
|
|
322
322
|
this.collapse?.refresh();
|
|
323
323
|
}
|
|
324
324
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionBar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
325
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlActionBar, isStandalone: true, selector: "[slActionBar]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, present: { classPropertyName: "present", publicName: "present", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { overflowChange: "overflowChange" }, host: { attributes: { "data-ui": "action-bar", "data-ui-action-bar": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.role": "role()", "attr.data-variant": "resolvedVariant()", "attr.data-size": "resolvedSize()", "attr.data-align": "resolvedAlign()", "attr.data-sticky": "resolvedSticky() ? \"\" : null", "attr.data-collapsed": "collapsedCount()", "attr.data-status": "presenceAttribute()", "style.display": "mounted() ? null : \"none\"" } }, providers: [provideBarStep()], exportAs: ["slActionBar"], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["@layer slotted.components{[data-ui-action-bar]{--_gap: var(--slotted-control-gap-md, .5rem);--_inset-block: var(--slotted-space-4, .5rem);--_inset-inline: var(--slotted-space-5, .75rem);--_height: var(--slotted-control-height-md, 34px);--_font-size: var(--slotted-control-font-size-md, .8125rem);--_icon-size: var(--slotted-control-icon-size-md, 16px);--_separator-inset: var(--slotted-space-2, .25rem);--_duration: var(--slotted-control-transition-duration);--_easing: var(--slotted-control-transition-easing);align-items:center;box-sizing:border-box;container-name:slotted-action-bar;container-type:inline-size;display:flex;flex-wrap:wrap;gap:var(--slotted-action-bar-gap, var(--_gap));inline-size:100%;min-block-size:calc(var(--_height) + 2 * var(--_inset-block));min-inline-size:0;padding-block:var(--slotted-action-bar-inset-block, var(--_inset-block));padding-inline:var(--slotted-action-bar-inset-inline, var(--_inset-inline))}[data-ui-action-bar][data-size=sm]{--_gap: var(--slotted-control-gap-sm, .375rem);--_inset-block: var(--slotted-space-3, .375rem);--_inset-inline: var(--slotted-space-4, .5rem);--_height: var(--slotted-control-height-sm, 30px);--_font-size: var(--slotted-control-font-size-sm, .75rem);--_icon-size: var(--slotted-control-icon-size-sm, 14px);--_separator-inset: var(--slotted-space-1, .125rem)}[data-ui-action-bar][data-size=lg]{--_gap: var(--slotted-control-gap-lg, .5rem);--_inset-block: var(--slotted-space-5, .75rem);--_inset-inline: var(--slotted-space-6, 1rem);--_height: var(--slotted-control-height-lg, 38px);--_font-size: var(--slotted-control-font-size-lg, .875rem);--_icon-size: var(--slotted-control-icon-size-lg, 18px);--_separator-inset: var(--slotted-space-3, .375rem)}[data-ui-action-bar]:not(:has([data-part-actions]>*:not([hidden]))):not(:has([data-part-status])){display:none}[data-ui-action-bar][data-variant=raised]{background-color:var(--slotted-action-bar-background, var(--slotted-surface, Canvas));border-block-start:var(--slotted-border-width-thin, 1px) solid var(--slotted-action-bar-border-color, var(--slotted-border-subtle, ButtonBorder))}[data-ui-action-bar][data-sticky]{inset-block-end:var(--slotted-page-sticky-bottom, 0px);position:sticky;z-index:var(--slotted-z-index-sticky, 100)}[data-ui-action-bar][data-status]{transition:translate var(--_duration) var(--_easing),opacity var(--_duration) var(--_easing)}[data-ui-action-bar]:is([data-status=entering],[data-status=exiting]){opacity:0;translate:0 100%}[data-ui-action-bar] [data-part-status]{align-items:center;color:var(--slotted-action-bar-status-color, var(--slotted-text-muted, GrayText));display:flex;flex:1 1 auto;font-family:var(--slotted-control-font-family, inherit);font-size:var(--_font-size);gap:var(--_gap);min-inline-size:0}[data-ui-action-bar] [data-part-actions]{align-items:center;display:flex;flex:0 0 auto;flex-wrap:wrap;gap:var(--_gap);justify-content:flex-end;margin-inline-start:auto;max-inline-size:100%;min-inline-size:0}[data-ui-action-bar][data-align=start] [data-part-actions]{justify-content:flex-start;margin-inline:0 auto}[data-ui-action-bar][data-align=center] [data-part-actions]{justify-content:center;margin-inline:auto}[data-ui-action-bar][data-align=center]:not(:has([data-part-status])) [data-part-actions]{margin-inline:auto}[data-ui-action-bar] [data-part-action]{align-items:center;display:inline-flex;flex:none;min-inline-size:0}[data-ui-action-bar] :is([data-part-action],[data-part-separator],[data-part-overflow])[hidden]{display:none}[data-ui-action-bar] [data-part-separator]{align-self:stretch;background-color:var( --slotted-action-bar-separator-color, var(--slotted-border-strong, ButtonBorder) );border:0;flex:none;inline-size:var(--slotted-border-width-thin, 1px);margin-block:var(--_separator-inset);margin-inline:calc(var(--_gap) / 2);min-block-size:calc(var(--_height) - 2 * var(--_separator-inset))}[data-ui-action-bar] [data-part-overflow]{align-items:center;appearance:none;background-color:transparent;border:0;--slotted-icon-size: var(--_icon-size);border-radius:var(--slotted-control-radius, 4px);color:var(--slotted-action-bar-overflow-color, var(--slotted-text-muted, GrayText));cursor:pointer;display:inline-flex;flex:none;font-family:var(--slotted-control-font-family, inherit);justify-content:center;line-height:1;margin-inline-start:calc(var(--_gap) / 2);min-block-size:var(--_height);min-inline-size:max(var(--slotted-target-min, 24px),var(--_height));padding:0;transition:background-color var(--_duration) var(--_easing),color var(--_duration) var(--_easing)}[data-ui-action-bar] [data-part-overflow]:not(:disabled):hover{background-color:var( --slotted-action-bar-overflow-hover-background, var(--slotted-tone-secondary-subtle-hover) );color:var(--slotted-action-bar-overflow-hover-color, var(--slotted-text, CanvasText))}[data-ui-action-bar] [data-part-overflow]:not(:disabled):active{background-color:var( --slotted-action-bar-overflow-active-background, var(--slotted-tone-secondary-subtle-active) )}[data-ui-action-bar] [data-part-overflow][data-open]{background-color:var( --slotted-action-bar-overflow-open-background, var(--slotted-tone-secondary-subtle-active) );color:var(--slotted-action-bar-overflow-hover-color, var(--slotted-text, CanvasText))}[data-ui-action-bar] [data-part-overflow]:disabled{color:var(--slotted-disabled-foreground, GrayText);cursor:default}[data-ui-action-bar] [data-part-overflow]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@container slotted-action-bar (width < 24rem){[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-actions]{--_stacked: 1;align-items:stretch;flex:1 1 100%;flex-direction:column-reverse;margin-inline:0}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-action]>*{inline-size:100%}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-separator]{block-size:var(--slotted-border-width-thin, 1px);inline-size:auto;margin-block:calc(var(--_gap) / 2);margin-inline:var(--_separator-inset);min-block-size:0}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-status]{flex:1 1 100%}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-status]>*{align-content:space-between;inline-size:100%}}@media(forced-colors:active){[data-ui-action-bar] [data-part-separator]{background-color:CanvasText;forced-color-adjust:none}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
325
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlActionBar, isStandalone: true, selector: "[slActionBar]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, present: { classPropertyName: "present", publicName: "present", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { overflowChange: "overflowChange" }, host: { attributes: { "data-ui": "action-bar", "data-ui-action-bar": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.role": "role()", "attr.data-variant": "resolvedVariant()", "attr.data-size": "resolvedSize()", "attr.data-align": "resolvedAlign()", "attr.data-sticky": "resolvedSticky() ? \"\" : null", "attr.data-collapsed": "collapsedCount()", "attr.data-status": "presenceAttribute()", "style.display": "mounted() ? null : \"none\"" } }, providers: [provideBarStep()], exportAs: ["slActionBar"], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["@layer slotted.components{[data-ui-action-bar]{--_gap: var(--slotted-control-gap-md, .5rem);--_inset-block: var(--slotted-space-4, .5rem);--_inset-inline: var(--slotted-space-5, .75rem);--_height: var(--slotted-control-height-md, 34px);--_font-size: var(--slotted-control-font-size-md, .8125rem);--_icon-size: var(--slotted-control-icon-size-md, 16px);--_separator-inset: var(--slotted-space-2, .25rem);--_duration: var(--slotted-control-transition-duration);--_easing: var(--slotted-control-transition-easing);align-items:center;box-sizing:border-box;container-name:slotted-action-bar;container-type:inline-size;display:flex;flex-wrap:wrap;gap:var(--slotted-action-bar-gap, var(--_gap));inline-size:100%;min-block-size:calc(var(--_height) + 2 * var(--_inset-block));min-inline-size:0;padding-block:var(--slotted-action-bar-inset-block, var(--_inset-block));padding-inline:var(--slotted-action-bar-inset-inline, var(--_inset-inline))}[data-ui-action-bar][data-size=sm]{--_gap: var(--slotted-control-gap-sm, .375rem);--_inset-block: var(--slotted-space-3, .375rem);--_inset-inline: var(--slotted-space-4, .5rem);--_height: var(--slotted-control-height-sm, 30px);--_font-size: var(--slotted-control-font-size-sm, .75rem);--_icon-size: var(--slotted-control-icon-size-sm, 14px);--_separator-inset: var(--slotted-space-1, .125rem)}[data-ui-action-bar][data-size=lg]{--_gap: var(--slotted-control-gap-lg, .5rem);--_inset-block: var(--slotted-space-5, .75rem);--_inset-inline: var(--slotted-space-6, 1rem);--_height: var(--slotted-control-height-lg, 38px);--_font-size: var(--slotted-control-font-size-lg, .875rem);--_icon-size: var(--slotted-control-icon-size-lg, 18px);--_separator-inset: var(--slotted-space-3, .375rem)}[data-ui-action-bar]:not(:has([data-part-actions]>*:not([hidden]))):not(:has([data-part-status])){display:none}[data-ui-action-bar][data-variant=raised]{background-color:var(--slotted-action-bar-background, var(--slotted-surface, Canvas));border-block-start:var(--slotted-border-width-thin, 1px) solid var(--slotted-action-bar-border-color, var(--slotted-border-subtle, ButtonBorder));-webkit-backdrop-filter:var(--slotted-action-bar-backdrop-filter, none);backdrop-filter:var(--slotted-action-bar-backdrop-filter, none)}@media(prefers-reduced-transparency:reduce),(forced-colors:active){[data-ui-action-bar][data-variant=raised]{-webkit-backdrop-filter:none;backdrop-filter:none}}[data-ui-action-bar][data-sticky]{inset-block-end:var(--slotted-page-sticky-bottom, 0px);position:sticky;z-index:var(--slotted-z-index-sticky, 100)}[data-ui-action-bar][data-status]{transition:translate var(--_duration) var(--_easing),opacity var(--_duration) var(--_easing)}[data-ui-action-bar]:is([data-status=entering],[data-status=exiting]){opacity:0;translate:0 100%}[data-ui-action-bar] [data-part-status]{align-items:center;color:var(--slotted-action-bar-status-color, var(--slotted-text-muted, GrayText));display:flex;flex:1 1 auto;font-family:var(--slotted-control-font-family, inherit);font-size:var(--_font-size);gap:var(--_gap);min-inline-size:0}[data-ui-action-bar] [data-part-actions]{align-items:center;display:flex;flex:0 0 auto;flex-wrap:wrap;gap:var(--_gap);justify-content:flex-end;margin-inline-start:auto;max-inline-size:100%;min-inline-size:0}[data-ui-action-bar][data-align=start] [data-part-actions]{justify-content:flex-start;margin-inline:0 auto}[data-ui-action-bar][data-align=center] [data-part-actions]{justify-content:center;margin-inline:auto}[data-ui-action-bar][data-align=center]:not(:has([data-part-status])) [data-part-actions]{margin-inline:auto}[data-ui-action-bar] [data-part-action]{align-items:center;display:inline-flex;flex:none;min-inline-size:0}[data-ui-action-bar] :is([data-part-action],[data-part-separator],[data-part-overflow])[hidden]{display:none}[data-ui-action-bar] [data-part-separator]{align-self:stretch;background-color:var( --slotted-action-bar-separator-color, var(--slotted-border-strong, ButtonBorder) );border:0;flex:none;inline-size:var(--slotted-border-width-thin, 1px);margin-block:var(--_separator-inset);margin-inline:calc(var(--_gap) / 2);min-block-size:calc(var(--_height) - 2 * var(--_separator-inset))}[data-ui-action-bar] [data-part-overflow]{align-items:center;appearance:none;background-color:transparent;border:0;--slotted-icon-size: var(--_icon-size);border-radius:var(--slotted-control-radius, 4px);color:var(--slotted-action-bar-overflow-color, var(--slotted-text-muted, GrayText));cursor:pointer;display:inline-flex;flex:none;font-family:var(--slotted-control-font-family, inherit);justify-content:center;line-height:1;margin-inline-start:calc(var(--_gap) / 2);min-block-size:var(--_height);min-inline-size:max(var(--slotted-target-min, 24px),var(--_height));padding:0;transition:background-color var(--_duration) var(--_easing),color var(--_duration) var(--_easing)}[data-ui-action-bar] [data-part-overflow]:not(:disabled):hover{background-color:var( --slotted-action-bar-overflow-hover-background, var(--slotted-tone-secondary-subtle-hover) );color:var(--slotted-action-bar-overflow-hover-color, var(--slotted-text, CanvasText))}[data-ui-action-bar] [data-part-overflow]:not(:disabled):active{background-color:var( --slotted-action-bar-overflow-active-background, var(--slotted-tone-secondary-subtle-active) )}[data-ui-action-bar] [data-part-overflow][data-open]{background-color:var( --slotted-action-bar-overflow-open-background, var(--slotted-tone-secondary-subtle-active) );color:var(--slotted-action-bar-overflow-hover-color, var(--slotted-text, CanvasText))}[data-ui-action-bar] [data-part-overflow]:disabled{color:var(--slotted-disabled-foreground, GrayText);cursor:default}[data-ui-action-bar] [data-part-overflow]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@container slotted-action-bar (width < 24rem){[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-actions]{--_stacked: 1;align-items:stretch;flex:1 1 100%;flex-direction:column-reverse;margin-inline:0}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-action]>*{inline-size:100%}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-separator]{block-size:var(--slotted-border-width-thin, 1px);inline-size:auto;margin-block:calc(var(--_gap) / 2);margin-inline:var(--_separator-inset);min-block-size:0}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-status]{flex:1 1 100%}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-status]>*{align-content:space-between;inline-size:100%}}@media(forced-colors:active){[data-ui-action-bar] [data-part-separator]{background-color:CanvasText;forced-color-adjust:none}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
326
326
|
}
|
|
327
327
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionBar, decorators: [{
|
|
328
328
|
type: Component,
|
|
@@ -339,7 +339,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
339
339
|
'[attr.data-collapsed]': 'collapsedCount()',
|
|
340
340
|
'[attr.data-status]': 'presenceAttribute()',
|
|
341
341
|
'[style.display]': 'mounted() ? null : "none"',
|
|
342
|
-
}, styles: ["@layer slotted.components{[data-ui-action-bar]{--_gap: var(--slotted-control-gap-md, .5rem);--_inset-block: var(--slotted-space-4, .5rem);--_inset-inline: var(--slotted-space-5, .75rem);--_height: var(--slotted-control-height-md, 34px);--_font-size: var(--slotted-control-font-size-md, .8125rem);--_icon-size: var(--slotted-control-icon-size-md, 16px);--_separator-inset: var(--slotted-space-2, .25rem);--_duration: var(--slotted-control-transition-duration);--_easing: var(--slotted-control-transition-easing);align-items:center;box-sizing:border-box;container-name:slotted-action-bar;container-type:inline-size;display:flex;flex-wrap:wrap;gap:var(--slotted-action-bar-gap, var(--_gap));inline-size:100%;min-block-size:calc(var(--_height) + 2 * var(--_inset-block));min-inline-size:0;padding-block:var(--slotted-action-bar-inset-block, var(--_inset-block));padding-inline:var(--slotted-action-bar-inset-inline, var(--_inset-inline))}[data-ui-action-bar][data-size=sm]{--_gap: var(--slotted-control-gap-sm, .375rem);--_inset-block: var(--slotted-space-3, .375rem);--_inset-inline: var(--slotted-space-4, .5rem);--_height: var(--slotted-control-height-sm, 30px);--_font-size: var(--slotted-control-font-size-sm, .75rem);--_icon-size: var(--slotted-control-icon-size-sm, 14px);--_separator-inset: var(--slotted-space-1, .125rem)}[data-ui-action-bar][data-size=lg]{--_gap: var(--slotted-control-gap-lg, .5rem);--_inset-block: var(--slotted-space-5, .75rem);--_inset-inline: var(--slotted-space-6, 1rem);--_height: var(--slotted-control-height-lg, 38px);--_font-size: var(--slotted-control-font-size-lg, .875rem);--_icon-size: var(--slotted-control-icon-size-lg, 18px);--_separator-inset: var(--slotted-space-3, .375rem)}[data-ui-action-bar]:not(:has([data-part-actions]>*:not([hidden]))):not(:has([data-part-status])){display:none}[data-ui-action-bar][data-variant=raised]{background-color:var(--slotted-action-bar-background, var(--slotted-surface, Canvas));border-block-start:var(--slotted-border-width-thin, 1px) solid var(--slotted-action-bar-border-color, var(--slotted-border-subtle, ButtonBorder))}[data-ui-action-bar][data-sticky]{inset-block-end:var(--slotted-page-sticky-bottom, 0px);position:sticky;z-index:var(--slotted-z-index-sticky, 100)}[data-ui-action-bar][data-status]{transition:translate var(--_duration) var(--_easing),opacity var(--_duration) var(--_easing)}[data-ui-action-bar]:is([data-status=entering],[data-status=exiting]){opacity:0;translate:0 100%}[data-ui-action-bar] [data-part-status]{align-items:center;color:var(--slotted-action-bar-status-color, var(--slotted-text-muted, GrayText));display:flex;flex:1 1 auto;font-family:var(--slotted-control-font-family, inherit);font-size:var(--_font-size);gap:var(--_gap);min-inline-size:0}[data-ui-action-bar] [data-part-actions]{align-items:center;display:flex;flex:0 0 auto;flex-wrap:wrap;gap:var(--_gap);justify-content:flex-end;margin-inline-start:auto;max-inline-size:100%;min-inline-size:0}[data-ui-action-bar][data-align=start] [data-part-actions]{justify-content:flex-start;margin-inline:0 auto}[data-ui-action-bar][data-align=center] [data-part-actions]{justify-content:center;margin-inline:auto}[data-ui-action-bar][data-align=center]:not(:has([data-part-status])) [data-part-actions]{margin-inline:auto}[data-ui-action-bar] [data-part-action]{align-items:center;display:inline-flex;flex:none;min-inline-size:0}[data-ui-action-bar] :is([data-part-action],[data-part-separator],[data-part-overflow])[hidden]{display:none}[data-ui-action-bar] [data-part-separator]{align-self:stretch;background-color:var( --slotted-action-bar-separator-color, var(--slotted-border-strong, ButtonBorder) );border:0;flex:none;inline-size:var(--slotted-border-width-thin, 1px);margin-block:var(--_separator-inset);margin-inline:calc(var(--_gap) / 2);min-block-size:calc(var(--_height) - 2 * var(--_separator-inset))}[data-ui-action-bar] [data-part-overflow]{align-items:center;appearance:none;background-color:transparent;border:0;--slotted-icon-size: var(--_icon-size);border-radius:var(--slotted-control-radius, 4px);color:var(--slotted-action-bar-overflow-color, var(--slotted-text-muted, GrayText));cursor:pointer;display:inline-flex;flex:none;font-family:var(--slotted-control-font-family, inherit);justify-content:center;line-height:1;margin-inline-start:calc(var(--_gap) / 2);min-block-size:var(--_height);min-inline-size:max(var(--slotted-target-min, 24px),var(--_height));padding:0;transition:background-color var(--_duration) var(--_easing),color var(--_duration) var(--_easing)}[data-ui-action-bar] [data-part-overflow]:not(:disabled):hover{background-color:var( --slotted-action-bar-overflow-hover-background, var(--slotted-tone-secondary-subtle-hover) );color:var(--slotted-action-bar-overflow-hover-color, var(--slotted-text, CanvasText))}[data-ui-action-bar] [data-part-overflow]:not(:disabled):active{background-color:var( --slotted-action-bar-overflow-active-background, var(--slotted-tone-secondary-subtle-active) )}[data-ui-action-bar] [data-part-overflow][data-open]{background-color:var( --slotted-action-bar-overflow-open-background, var(--slotted-tone-secondary-subtle-active) );color:var(--slotted-action-bar-overflow-hover-color, var(--slotted-text, CanvasText))}[data-ui-action-bar] [data-part-overflow]:disabled{color:var(--slotted-disabled-foreground, GrayText);cursor:default}[data-ui-action-bar] [data-part-overflow]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@container slotted-action-bar (width < 24rem){[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-actions]{--_stacked: 1;align-items:stretch;flex:1 1 100%;flex-direction:column-reverse;margin-inline:0}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-action]>*{inline-size:100%}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-separator]{block-size:var(--slotted-border-width-thin, 1px);inline-size:auto;margin-block:calc(var(--_gap) / 2);margin-inline:var(--_separator-inset);min-block-size:0}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-status]{flex:1 1 100%}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-status]>*{align-content:space-between;inline-size:100%}}@media(forced-colors:active){[data-ui-action-bar] [data-part-separator]{background-color:CanvasText;forced-color-adjust:none}}}\n"] }]
|
|
342
|
+
}, styles: ["@layer slotted.components{[data-ui-action-bar]{--_gap: var(--slotted-control-gap-md, .5rem);--_inset-block: var(--slotted-space-4, .5rem);--_inset-inline: var(--slotted-space-5, .75rem);--_height: var(--slotted-control-height-md, 34px);--_font-size: var(--slotted-control-font-size-md, .8125rem);--_icon-size: var(--slotted-control-icon-size-md, 16px);--_separator-inset: var(--slotted-space-2, .25rem);--_duration: var(--slotted-control-transition-duration);--_easing: var(--slotted-control-transition-easing);align-items:center;box-sizing:border-box;container-name:slotted-action-bar;container-type:inline-size;display:flex;flex-wrap:wrap;gap:var(--slotted-action-bar-gap, var(--_gap));inline-size:100%;min-block-size:calc(var(--_height) + 2 * var(--_inset-block));min-inline-size:0;padding-block:var(--slotted-action-bar-inset-block, var(--_inset-block));padding-inline:var(--slotted-action-bar-inset-inline, var(--_inset-inline))}[data-ui-action-bar][data-size=sm]{--_gap: var(--slotted-control-gap-sm, .375rem);--_inset-block: var(--slotted-space-3, .375rem);--_inset-inline: var(--slotted-space-4, .5rem);--_height: var(--slotted-control-height-sm, 30px);--_font-size: var(--slotted-control-font-size-sm, .75rem);--_icon-size: var(--slotted-control-icon-size-sm, 14px);--_separator-inset: var(--slotted-space-1, .125rem)}[data-ui-action-bar][data-size=lg]{--_gap: var(--slotted-control-gap-lg, .5rem);--_inset-block: var(--slotted-space-5, .75rem);--_inset-inline: var(--slotted-space-6, 1rem);--_height: var(--slotted-control-height-lg, 38px);--_font-size: var(--slotted-control-font-size-lg, .875rem);--_icon-size: var(--slotted-control-icon-size-lg, 18px);--_separator-inset: var(--slotted-space-3, .375rem)}[data-ui-action-bar]:not(:has([data-part-actions]>*:not([hidden]))):not(:has([data-part-status])){display:none}[data-ui-action-bar][data-variant=raised]{background-color:var(--slotted-action-bar-background, var(--slotted-surface, Canvas));border-block-start:var(--slotted-border-width-thin, 1px) solid var(--slotted-action-bar-border-color, var(--slotted-border-subtle, ButtonBorder));-webkit-backdrop-filter:var(--slotted-action-bar-backdrop-filter, none);backdrop-filter:var(--slotted-action-bar-backdrop-filter, none)}@media(prefers-reduced-transparency:reduce),(forced-colors:active){[data-ui-action-bar][data-variant=raised]{-webkit-backdrop-filter:none;backdrop-filter:none}}[data-ui-action-bar][data-sticky]{inset-block-end:var(--slotted-page-sticky-bottom, 0px);position:sticky;z-index:var(--slotted-z-index-sticky, 100)}[data-ui-action-bar][data-status]{transition:translate var(--_duration) var(--_easing),opacity var(--_duration) var(--_easing)}[data-ui-action-bar]:is([data-status=entering],[data-status=exiting]){opacity:0;translate:0 100%}[data-ui-action-bar] [data-part-status]{align-items:center;color:var(--slotted-action-bar-status-color, var(--slotted-text-muted, GrayText));display:flex;flex:1 1 auto;font-family:var(--slotted-control-font-family, inherit);font-size:var(--_font-size);gap:var(--_gap);min-inline-size:0}[data-ui-action-bar] [data-part-actions]{align-items:center;display:flex;flex:0 0 auto;flex-wrap:wrap;gap:var(--_gap);justify-content:flex-end;margin-inline-start:auto;max-inline-size:100%;min-inline-size:0}[data-ui-action-bar][data-align=start] [data-part-actions]{justify-content:flex-start;margin-inline:0 auto}[data-ui-action-bar][data-align=center] [data-part-actions]{justify-content:center;margin-inline:auto}[data-ui-action-bar][data-align=center]:not(:has([data-part-status])) [data-part-actions]{margin-inline:auto}[data-ui-action-bar] [data-part-action]{align-items:center;display:inline-flex;flex:none;min-inline-size:0}[data-ui-action-bar] :is([data-part-action],[data-part-separator],[data-part-overflow])[hidden]{display:none}[data-ui-action-bar] [data-part-separator]{align-self:stretch;background-color:var( --slotted-action-bar-separator-color, var(--slotted-border-strong, ButtonBorder) );border:0;flex:none;inline-size:var(--slotted-border-width-thin, 1px);margin-block:var(--_separator-inset);margin-inline:calc(var(--_gap) / 2);min-block-size:calc(var(--_height) - 2 * var(--_separator-inset))}[data-ui-action-bar] [data-part-overflow]{align-items:center;appearance:none;background-color:transparent;border:0;--slotted-icon-size: var(--_icon-size);border-radius:var(--slotted-control-radius, 4px);color:var(--slotted-action-bar-overflow-color, var(--slotted-text-muted, GrayText));cursor:pointer;display:inline-flex;flex:none;font-family:var(--slotted-control-font-family, inherit);justify-content:center;line-height:1;margin-inline-start:calc(var(--_gap) / 2);min-block-size:var(--_height);min-inline-size:max(var(--slotted-target-min, 24px),var(--_height));padding:0;transition:background-color var(--_duration) var(--_easing),color var(--_duration) var(--_easing)}[data-ui-action-bar] [data-part-overflow]:not(:disabled):hover{background-color:var( --slotted-action-bar-overflow-hover-background, var(--slotted-tone-secondary-subtle-hover) );color:var(--slotted-action-bar-overflow-hover-color, var(--slotted-text, CanvasText))}[data-ui-action-bar] [data-part-overflow]:not(:disabled):active{background-color:var( --slotted-action-bar-overflow-active-background, var(--slotted-tone-secondary-subtle-active) )}[data-ui-action-bar] [data-part-overflow][data-open]{background-color:var( --slotted-action-bar-overflow-open-background, var(--slotted-tone-secondary-subtle-active) );color:var(--slotted-action-bar-overflow-hover-color, var(--slotted-text, CanvasText))}[data-ui-action-bar] [data-part-overflow]:disabled{color:var(--slotted-disabled-foreground, GrayText);cursor:default}[data-ui-action-bar] [data-part-overflow]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@container slotted-action-bar (width < 24rem){[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-actions]{--_stacked: 1;align-items:stretch;flex:1 1 100%;flex-direction:column-reverse;margin-inline:0}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-action]>*{inline-size:100%}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-separator]{block-size:var(--slotted-border-width-thin, 1px);inline-size:auto;margin-block:calc(var(--_gap) / 2);margin-inline:var(--_separator-inset);min-block-size:0}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-status]{flex:1 1 100%}[data-ui-action-bar]:not(:has([data-part-overflow])) [data-part-status]>*{align-content:space-between;inline-size:100%}}@media(forced-colors:active){[data-ui-action-bar] [data-part-separator]{background-color:CanvasText;forced-color-adjust:none}}}\n"] }]
|
|
343
343
|
}], ctorParameters: () => [], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], sticky: [{ type: i0.Input, args: [{ isSignal: true, alias: "sticky", required: false }] }], present: [{ type: i0.Input, args: [{ isSignal: true, alias: "present", required: false }] }], overflowChange: [{ type: i0.Output, args: ["overflowChange"] }] } });
|
|
344
344
|
/**
|
|
345
345
|
* The sentence at the start of the bar: a dirty-state marker, a timestamp, the
|