@slotted/angular 0.1.0-beta.35 → 0.1.0-beta.37
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/button.json +10 -7
- package/docs/button.md +2 -91
- package/docs/button.props.md +97 -0
- package/docs/calendar.json +22 -0
- package/docs/calendar.md +4 -1
- package/docs/chart.json +1 -1
- package/docs/chart.md +1 -1
- package/docs/collapsible.json +2 -1
- package/docs/collapsible.md +1 -1
- package/docs/command-palette.json +2 -1
- package/docs/command-palette.md +1 -1
- package/docs/dashboard-grid.json +2 -1
- package/docs/dashboard-grid.md +1 -1
- package/docs/entity-picker.json +2 -1
- package/docs/entity-picker.md +1 -1
- package/docs/field-group.json +1 -1
- package/docs/field-group.md +1 -1
- package/docs/floating-panel.json +22 -4
- package/docs/floating-panel.md +6 -4
- package/docs/guidelines/index.md +2 -0
- package/docs/guidelines/own-elements.md +20 -0
- package/docs/index.md +1 -1
- package/docs/list.json +2 -1
- package/docs/list.md +2 -2
- package/docs/message.json +7 -0
- package/docs/message.md +1 -0
- package/docs/page.json +8 -1
- package/docs/page.md +2 -1
- package/docs/progress-indicator.json +1 -39
- package/docs/progress-indicator.md +1 -6
- package/docs/radio-group.json +1 -18
- package/docs/radio-group.md +1 -3
- package/docs/section.json +10 -2
- package/docs/section.md +2 -1
- package/docs/skills/build-own-element/SKILL.md +42 -2
- package/docs/skills/theme-app/SKILL.md +1 -1
- package/docs/sparkline.json +1 -416
- package/docs/sparkline.md +2 -186
- package/docs/table.json +15 -3
- package/docs/table.md +4 -3
- package/docs/tokens.md +12 -0
- package/fesm2022/slotted-angular-app-shell.mjs +2 -2
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +50 -41
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-calendar.mjs +249 -137
- package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +11 -5
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +10 -6
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-command-palette.mjs +2 -2
- package/fesm2022/slotted-angular-command-palette.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +2 -2
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-list.mjs +2 -2
- package/fesm2022/slotted-angular-data-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.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-field-group.mjs +2 -2
- package/fesm2022/slotted-angular-field-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-floating-panel.mjs +33 -30
- package/fesm2022/slotted-angular-floating-panel.mjs.map +1 -1
- package/fesm2022/slotted-angular-list-item.mjs +2 -2
- package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +3 -3
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +2 -2
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
- package/fesm2022/slotted-angular-message.mjs +18 -8
- package/fesm2022/slotted-angular-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +8 -4
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +7 -106
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +12 -45
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-section.mjs +20 -3
- package/fesm2022/slotted-angular-section.mjs.map +1 -1
- package/fesm2022/slotted-angular-sparkline.mjs +4 -295
- package/fesm2022/slotted-angular-sparkline.mjs.map +1 -1
- package/fesm2022/slotted-angular-split-button.mjs +4 -4
- package/fesm2022/slotted-angular-split-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +39 -10
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tooltip.mjs +2 -2
- package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +2 -2
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/package.json +3 -3
- package/types/slotted-angular-button.d.ts +22 -11
- package/types/slotted-angular-button.d.ts.map +1 -1
- package/types/slotted-angular-calendar.d.ts +26 -2
- package/types/slotted-angular-calendar.d.ts.map +1 -1
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-collapsible.d.ts +4 -1
- package/types/slotted-angular-collapsible.d.ts.map +1 -1
- package/types/slotted-angular-floating-panel.d.ts +27 -22
- package/types/slotted-angular-floating-panel.d.ts.map +1 -1
- package/types/slotted-angular-list.d.ts +6 -4
- package/types/slotted-angular-list.d.ts.map +1 -1
- package/types/slotted-angular-message.d.ts +9 -3
- package/types/slotted-angular-message.d.ts.map +1 -1
- package/types/slotted-angular-page.d.ts.map +1 -1
- package/types/slotted-angular-progress-indicator.d.ts +2 -46
- package/types/slotted-angular-progress-indicator.d.ts.map +1 -1
- package/types/slotted-angular-radio-group.d.ts +4 -22
- package/types/slotted-angular-radio-group.d.ts.map +1 -1
- package/types/slotted-angular-section.d.ts +10 -1
- package/types/slotted-angular-section.d.ts.map +1 -1
- package/types/slotted-angular-sparkline.d.ts +4 -86
- package/types/slotted-angular-sparkline.d.ts.map +1 -1
- package/types/slotted-angular-table.d.ts +21 -7
- package/types/slotted-angular-table.d.ts.map +1 -1
package/docs/floating-panel.json
CHANGED
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
"floatingPanel": {
|
|
12
12
|
"nativeElement": "section",
|
|
13
13
|
"defaults": {
|
|
14
|
-
"defaultPlace": "bottom-end"
|
|
14
|
+
"defaultPlace": "bottom-end",
|
|
15
|
+
"step": 8,
|
|
16
|
+
"largeStep": 32
|
|
15
17
|
},
|
|
16
18
|
"capabilities": [
|
|
17
19
|
"placement",
|
|
@@ -96,7 +98,7 @@
|
|
|
96
98
|
"type": "'top-start' | 'top-end' | 'bottom-start' | 'bottom-end'",
|
|
97
99
|
"defaultValue": "bottom-end",
|
|
98
100
|
"appliesTo": "slFloatingPanel",
|
|
99
|
-
"description": "The corner the panel first
|
|
101
|
+
"description": "The corner the panel stands in until its first move, in the reading direction, --slotted-floating-panel-inset from the edges"
|
|
100
102
|
},
|
|
101
103
|
{
|
|
102
104
|
"name": "place",
|
|
@@ -105,12 +107,26 @@
|
|
|
105
107
|
"appliesTo": "slFloatingPanel",
|
|
106
108
|
"description": "A controlled place, the top-left corner in viewport pixels, drawn inside the viewport"
|
|
107
109
|
},
|
|
110
|
+
{
|
|
111
|
+
"name": "step",
|
|
112
|
+
"type": "number",
|
|
113
|
+
"defaultValue": "8",
|
|
114
|
+
"appliesTo": "slFloatingPanel",
|
|
115
|
+
"description": "Pixels an arrow key on the grip moves the panel"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "largeStep",
|
|
119
|
+
"type": "number",
|
|
120
|
+
"defaultValue": "32",
|
|
121
|
+
"appliesTo": "slFloatingPanel",
|
|
122
|
+
"description": "Pixels an arrow key with Shift moves it"
|
|
123
|
+
},
|
|
108
124
|
{
|
|
109
125
|
"name": "placeChange",
|
|
110
126
|
"type": "output<{ x: number; y: number }>",
|
|
111
127
|
"defaultValue": "—",
|
|
112
128
|
"appliesTo": "slFloatingPanel",
|
|
113
|
-
"description": "Fired at the end of a move, by pointer or by key, for the application to store"
|
|
129
|
+
"description": "Fired once at the end of a move, by pointer or by key, for the application to store"
|
|
114
130
|
},
|
|
115
131
|
{
|
|
116
132
|
"name": "label",
|
|
@@ -151,6 +167,7 @@
|
|
|
151
167
|
"--slotted-control-inner-size-md",
|
|
152
168
|
"--slotted-floating-panel-backdrop-filter",
|
|
153
169
|
"--slotted-floating-panel-border-color",
|
|
170
|
+
"--slotted-floating-panel-inset",
|
|
154
171
|
"--slotted-floating-panel-radius",
|
|
155
172
|
"--slotted-floating-panel-rule-color",
|
|
156
173
|
"--slotted-floating-panel-shadow",
|
|
@@ -168,6 +185,7 @@
|
|
|
168
185
|
"--slotted-space-2",
|
|
169
186
|
"--slotted-space-3",
|
|
170
187
|
"--slotted-space-5",
|
|
188
|
+
"--slotted-space-6",
|
|
171
189
|
"--slotted-surface-raised",
|
|
172
190
|
"--slotted-text",
|
|
173
191
|
"--slotted-text-muted",
|
|
@@ -186,7 +204,7 @@
|
|
|
186
204
|
{
|
|
187
205
|
"id": "keyboard",
|
|
188
206
|
"title": "Moved by the keyboard, and stored where it was left",
|
|
189
|
-
"note": "The grip takes focus; an arrow key moves the panel eight pixels, thirty-two with Shift. placeChange reports the end of every move, so the application stores the place and hands it back as place.",
|
|
207
|
+
"note": "The grip takes focus; an arrow key moves the panel by step, eight pixels, and by largeStep, thirty-two, with Shift. placeChange reports the end of every move, so the application stores the place and hands it back as place.",
|
|
190
208
|
"language": "html",
|
|
191
209
|
"source": "<section\n slFloatingPanel\n [open]=\"open()\"\n [place]=\"place()\"\n (openChange)=\"open.set($event)\"\n (placeChange)=\"place.set($event)\"\n>\n …\n</section>\n",
|
|
192
210
|
"verdict": "excerpt"
|
package/docs/floating-panel.md
CHANGED
|
@@ -48,9 +48,11 @@ Excerpt — not a complete module
|
|
|
48
48
|
| --- | --- | --- | --- | --- |
|
|
49
49
|
| `open` | `boolean` | — | slFloatingPanel | Whether the panel is drawn |
|
|
50
50
|
| `openChange` | `output<boolean>` | — | slFloatingPanel | Asked with false on Escape inside the panel and on its close control |
|
|
51
|
-
| `defaultPlace` | `'top-start' \| 'top-end' \| 'bottom-start' \| 'bottom-end'` | bottom-end | slFloatingPanel | The corner the panel first
|
|
51
|
+
| `defaultPlace` | `'top-start' \| 'top-end' \| 'bottom-start' \| 'bottom-end'` | bottom-end | slFloatingPanel | The corner the panel stands in until its first move, in the reading direction, --slotted-floating-panel-inset from the edges |
|
|
52
52
|
| `place` | `{ x: number; y: number }` | — | slFloatingPanel | A controlled place, the top-left corner in viewport pixels, drawn inside the viewport |
|
|
53
|
-
| `
|
|
53
|
+
| `step` | `number` | 8 | slFloatingPanel | Pixels an arrow key on the grip moves the panel |
|
|
54
|
+
| `largeStep` | `number` | 32 | slFloatingPanel | Pixels an arrow key with Shift moves it |
|
|
55
|
+
| `placeChange` | `output<{ x: number; y: number }>` | — | slFloatingPanel | Fired once at the end of a move, by pointer or by key, for the application to store |
|
|
54
56
|
| `label` | `string` | — | slFloatingPanel | The region’s name when no slFloatingPanelTitle names it |
|
|
55
57
|
| `messages` | `PartialMessages<FloatingPanelMessages>` | — | slFloatingPanel | Words laid over the catalog of the language in force: close, move |
|
|
56
58
|
| `native props` | `section, div, h2, button attributes` | — | every part | Reach the element each part renders |
|
|
@@ -64,13 +66,13 @@ Excerpt — not a complete module
|
|
|
64
66
|
|
|
65
67
|
## Tokens
|
|
66
68
|
|
|
67
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-inner-size-md`, `--slotted-floating-panel-backdrop-filter`, `--slotted-floating-panel-border-color`, `--slotted-floating-panel-radius`, `--slotted-floating-panel-rule-color`, `--slotted-floating-panel-shadow`, `--slotted-floating-panel-surface`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-sm`, `--slotted-font-weight-semibold`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-shadow-lg`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
69
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-inner-size-md`, `--slotted-floating-panel-backdrop-filter`, `--slotted-floating-panel-border-color`, `--slotted-floating-panel-inset`, `--slotted-floating-panel-radius`, `--slotted-floating-panel-rule-color`, `--slotted-floating-panel-shadow`, `--slotted-floating-panel-surface`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-sm`, `--slotted-font-weight-semibold`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-shadow-lg`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
68
70
|
|
|
69
71
|
## Examples
|
|
70
72
|
|
|
71
73
|
### Moved by the keyboard, and stored where it was left
|
|
72
74
|
|
|
73
|
-
The grip takes focus; an arrow key moves the panel eight pixels, thirty-two with Shift. placeChange reports the end of every move, so the application stores the place and hands it back as place.
|
|
75
|
+
The grip takes focus; an arrow key moves the panel by step, eight pixels, and by largeStep, thirty-two, with Shift. placeChange reports the end of every move, so the application stores the place and hands it back as place.
|
|
74
76
|
|
|
75
77
|
Excerpt — not a complete module
|
|
76
78
|
|
package/docs/guidelines/index.md
CHANGED
|
@@ -107,6 +107,8 @@ Every active rule, one line each. Load this first; load a topic file when the ta
|
|
|
107
107
|
| OE-08 | SHOULD | The element's rules stand in a layer of the application ordered after the library's, and never select or set `data-ui` or `data-part`. | `own-elements.md` |
|
|
108
108
|
| OE-09 | SHOULD | The element reflows by a container query on a `container-name` of its own; a change that follows the page uses the size classes, at 600 and 1024 pixels. | `own-elements.md` |
|
|
109
109
|
| OE-10 | SHOULD | A surface above another takes `--slotted-surface-raised` with one step of the `shadow` group, and a layer that floats over the page takes its stacking order from the `z-index` group. | `own-elements.md` |
|
|
110
|
+
| OE-11 | SHOULD | The mark places every value, tick and zero line by one `linearScale` of `@slotted/core/sparkline`, and marks read against each other state the same min and max. | `own-elements.md` |
|
|
111
|
+
| OE-12 | MUST | The gallery is one tab stop that the arrows move through, across every section, and Enter submits: native radio inputs that share a name, or `createRovingRadio` of `@slotted/core/focus`. | `own-elements.md` |
|
|
110
112
|
| PM-01 | MUST | The column, the figure and the section that would carry the value are not built for that reader; nothing is drawn for the value, and nothing is hidden in a place the reader can bring back. | `reading-permissions.md` |
|
|
111
113
|
| PM-02 | SHOULD | One statement names the permission the value needs and the roles that hold it; two missing permissions are one statement, not two. | `reading-permissions.md` |
|
|
112
114
|
| RP-01 | SHOULD | The title row holds the record's visual, its name as the heading, its lifecycle state and its health as two `tag` marks at the small size, and one subheading line with the identifier, the owner and the place; the way back to the list is the header's `back` part. | `record-pages.md` |
|
|
@@ -113,3 +113,23 @@ Why: The theme pairs each elevation with a ground per scheme and drops shadows u
|
|
|
113
113
|
Do: A day's detail card floats with `--slotted-surface-raised`, `--slotted-shadow-md` and `--slotted-z-index-popover`.
|
|
114
114
|
Don't: A shadow written as a literal and a stacking order of 9999.
|
|
115
115
|
Check: Every shadow and every stacking order of the element's own CSS reads a token of these two groups.
|
|
116
|
+
|
|
117
|
+
### OE-11 · Comparison marks share a scale
|
|
118
|
+
|
|
119
|
+
Level: SHOULD
|
|
120
|
+
Applies to: a comparison bar, a position strip or a split bar of the application's own
|
|
121
|
+
Rule: The mark places every value, tick and zero line by one `linearScale` of `@slotted/core/sparkline`, and marks read against each other state the same min and max.
|
|
122
|
+
Why: A mark sized by its own data draws its own axis, and two marks with two axes cannot be compared.
|
|
123
|
+
Do: Two bars and the tick row under them take one scale, the track reads `--slotted-mark-track-thickness` and `--slotted-mark-track-color`, the dot reads `--slotted-mark-dot-size`, and the benchmark is drawn in `--slotted-text-muted`.
|
|
124
|
+
Don't: Each row computes its width from the largest value of that row, and the tick row under them computes another.
|
|
125
|
+
Check: Set one value to zero and one to an extreme of the domain: the first ends on the zero tick and the second on the last tick, to the pixel.
|
|
126
|
+
|
|
127
|
+
### OE-12 · A picture gallery is one radio group
|
|
128
|
+
|
|
129
|
+
Level: MUST
|
|
130
|
+
Applies to: a gallery of illustrated choices of the application's own, where one is chosen
|
|
131
|
+
Rule: The gallery is one tab stop that the arrows move through, across every section, and Enter submits: native radio inputs that share a name, or `createRovingRadio` of `@slotted/core/focus`.
|
|
132
|
+
Why: A tile that is a plain button puts every choice in the tab order and announces no set, so the reader cannot tell which is chosen or how many there are.
|
|
133
|
+
Do: Two sections of tiles share one name; the tile that is hovered or chosen moves its own illustration.
|
|
134
|
+
Don't: A grid of toggle buttons, each a tab stop, with the chosen one told by its border alone.
|
|
135
|
+
Check: Tab into the gallery and out of it in two presses; from the last tile of one section an arrow reaches the first tile of the next, and Enter submits the form.
|
package/docs/index.md
CHANGED
|
@@ -77,7 +77,7 @@ Each family is documented in `./<family>.md`.
|
|
|
77
77
|
- meter: A static value within a known range, drawn as a length.
|
|
78
78
|
- prose: Styles long-form HTML text.
|
|
79
79
|
- saved-views: Named, saved sets of filters for a list.
|
|
80
|
-
- sparkline: Word-sized graphics: a trend
|
|
80
|
+
- sparkline: Word-sized graphics: a trend in a line or bars.
|
|
81
81
|
- stat-card: Key figure with label, change and trend.
|
|
82
82
|
- status-indicator: Colored mark and label for a status.
|
|
83
83
|
- table: Semantic table with sorting, filters and selection.
|
package/docs/list.json
CHANGED
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"type": "'row' | 'inset'",
|
|
149
149
|
"defaultValue": "row",
|
|
150
150
|
"appliesTo": "slList",
|
|
151
|
-
"description": "How a row draws its hover, pressed, selected and current grounds: edge to edge, or as a tile with the row radius
|
|
151
|
+
"description": "How a row draws its hover, pressed, selected and current grounds. row: edge to edge of the list. inset, for a plain or ruled list inside a container that pads its content: as a tile with the row radius that reaches past the content by --slotted-list-fill-inset on each side, while the content keeps the inline edge of the container. A framed or separated list keeps row."
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
"name": "loading",
|
|
@@ -245,6 +245,7 @@
|
|
|
245
245
|
"--slotted-list-empty-padding",
|
|
246
246
|
"--slotted-list-empty-padding-lg",
|
|
247
247
|
"--slotted-list-empty-padding-sm",
|
|
248
|
+
"--slotted-list-fill-inset",
|
|
248
249
|
"--slotted-list-gap",
|
|
249
250
|
"--slotted-list-gap-lg",
|
|
250
251
|
"--slotted-list-gap-sm",
|
package/docs/list.md
CHANGED
|
@@ -85,7 +85,7 @@ export class ListBasic {
|
|
|
85
85
|
| `marker` | `'none' \| 'bullet' \| 'number'` | none | slList | What is painted in the marker column. List draws the marker itself, so removing it never removes the list semantics. |
|
|
86
86
|
| `ordered` | `boolean` | false | the element | Not an input. Write slList on an ol instead of a ul: the element carries the reading order. |
|
|
87
87
|
| `inset` | `boolean` | false | slList | Removes the rows' inline padding, for a list inside a box that already pads its content. Rules and hover fills still run edge to edge. |
|
|
88
|
-
| `fill` | `'row' \| 'inset'` | row | slList | How a row draws its hover, pressed, selected and current grounds: edge to edge, or as a tile with the row radius
|
|
88
|
+
| `fill` | `'row' \| 'inset'` | row | slList | How a row draws its hover, pressed, selected and current grounds. row: edge to edge of the list. inset, for a plain or ruled list inside a container that pads its content: as a tile with the row radius that reaches past the content by --slotted-list-fill-inset on each side, while the content keeps the inline edge of the container. A framed or separated list keeps row. |
|
|
89
89
|
| `loading` | `boolean` | false | slList | Writes aria-busy on the list and draws nothing. slSkeleton, composed inside the rows, stands in for their content. |
|
|
90
90
|
| `level` | `'none' \| '1' \| '2' \| '3' \| '4' \| '5' \| '6'` | 3 | the element | Not an input. slListSectionLabel goes on the heading element you write, at the level the document needs. |
|
|
91
91
|
| `sticky` | `boolean` | false | slListSectionLabel | Keeps a group name in place while its own rows scroll past it, above the rows and on the list surface. |
|
|
@@ -118,7 +118,7 @@ export class ListBasic {
|
|
|
118
118
|
|
|
119
119
|
## Tokens
|
|
120
120
|
|
|
121
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-sm`, `--slotted-list-background`, `--slotted-list-border-color`, `--slotted-list-border-width`, `--slotted-list-empty-color`, `--slotted-list-empty-padding`, `--slotted-list-empty-padding-lg`, `--slotted-list-empty-padding-sm`, `--slotted-list-gap`, `--slotted-list-gap-lg`, `--slotted-list-gap-sm`, `--slotted-list-padding-inline`, `--slotted-list-padding-inline-lg`, `--slotted-list-padding-inline-sm`, `--slotted-list-radius`, `--slotted-list-section-background`, `--slotted-list-section-color`, `--slotted-list-section-font-size`, `--slotted-list-section-font-weight`, `--slotted-list-section-letter-spacing`, `--slotted-list-section-padding-block`, `--slotted-list-section-padding-block-lg`, `--slotted-list-section-padding-block-sm`, `--slotted-list-section-rule-color`, `--slotted-list-section-ruled-color`, `--slotted-radius-md`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface`, `--slotted-text`, `--slotted-text-muted`, `--slotted-z-index-sticky`
|
|
121
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-sm`, `--slotted-list-background`, `--slotted-list-border-color`, `--slotted-list-border-width`, `--slotted-list-empty-color`, `--slotted-list-empty-padding`, `--slotted-list-empty-padding-lg`, `--slotted-list-empty-padding-sm`, `--slotted-list-fill-inset`, `--slotted-list-gap`, `--slotted-list-gap-lg`, `--slotted-list-gap-sm`, `--slotted-list-padding-inline`, `--slotted-list-padding-inline-lg`, `--slotted-list-padding-inline-sm`, `--slotted-list-radius`, `--slotted-list-section-background`, `--slotted-list-section-color`, `--slotted-list-section-font-size`, `--slotted-list-section-font-weight`, `--slotted-list-section-letter-spacing`, `--slotted-list-section-padding-block`, `--slotted-list-section-padding-block-lg`, `--slotted-list-section-padding-block-sm`, `--slotted-list-section-rule-color`, `--slotted-list-section-ruled-color`, `--slotted-radius-md`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface`, `--slotted-text`, `--slotted-text-muted`, `--slotted-z-index-sticky`
|
|
122
122
|
|
|
123
123
|
## Examples
|
|
124
124
|
|
package/docs/message.json
CHANGED
|
@@ -306,6 +306,13 @@
|
|
|
306
306
|
"appliesTo": "slMessageReceipt",
|
|
307
307
|
"description": "The receipt’s own status"
|
|
308
308
|
},
|
|
309
|
+
{
|
|
310
|
+
"name": "variant",
|
|
311
|
+
"type": "'bubble' | 'plain'",
|
|
312
|
+
"defaultValue": "bubble",
|
|
313
|
+
"appliesTo": "slMessageActivity",
|
|
314
|
+
"description": "bubble draws a raised frame around the steps; plain draws the steps alone, with no border, ground or inset, for a turn that stands on a rail"
|
|
315
|
+
},
|
|
309
316
|
{
|
|
310
317
|
"name": "status",
|
|
311
318
|
"type": "'complete' | 'current' | 'pending'",
|
package/docs/message.md
CHANGED
|
@@ -85,6 +85,7 @@ Excerpt — not a complete module
|
|
|
85
85
|
| `versionCount` | `number` | 1 | slMessage | How many versions exist; the pager draws with two or more |
|
|
86
86
|
| `messages` | `PartialMessages<MessageMessages>` | — | slMessage | Words laid over the language in force, key by key, for the row and every part and bubble inside it; a bubble outside a row speaks the language in force |
|
|
87
87
|
| `status` | `'sending' \| 'sent' \| 'delivered' \| 'read' \| 'failed'` | the row’s | slMessageReceipt | The receipt’s own status |
|
|
88
|
+
| `variant` | `'bubble' \| 'plain'` | bubble | slMessageActivity | bubble draws a raised frame around the steps; plain draws the steps alone, with no border, ground or inset, for a turn that stands on a rail |
|
|
88
89
|
| `status` | `'complete' \| 'current' \| 'pending'` | current | slMessageActivityStep | Done with a tick, in progress with the ring, or waiting |
|
|
89
90
|
| `datetime` | `string` | — | time[slMessageTime] | The time element’s own machine-readable value |
|
|
90
91
|
| `exportAs` | `slMessage, slMessageGroup` | — | slMessage, slMessageGroup | The instance: version(), requestVersion() and the resolved layout |
|
package/docs/page.json
CHANGED
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"type": "() => Signal<SizeClass>",
|
|
157
157
|
"defaultValue": "—",
|
|
158
158
|
"appliesTo": "inside a page",
|
|
159
|
-
"description": "The size class to compose by from the page’s own width: compact under 600 pixels, medium under 1024, expanded from there, the thresholds of the page’s container queries, so code that chooses what to render agrees with the stylesheet inside a split view. Outside a page it reads the viewport"
|
|
159
|
+
"description": "The size class to compose by from the page’s own width: compact under 600 pixels, medium under 1024, expanded from there, the thresholds of the page’s container queries, so code that chooses what to render agrees with the stylesheet inside a split view. Outside a page, until the page reports a size and while that size is 0, it reads the viewport"
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"name": "ground",
|
|
@@ -216,6 +216,13 @@
|
|
|
216
216
|
"appliesTo": "an injector",
|
|
217
217
|
"description": "The five decisions an application takes once. A page that states any of them itself still wins"
|
|
218
218
|
},
|
|
219
|
+
{
|
|
220
|
+
"name": "--slotted-page-gap, --slotted-page-section-space",
|
|
221
|
+
"type": "runtime properties on the body",
|
|
222
|
+
"defaultValue": "—",
|
|
223
|
+
"appliesTo": "a stack of blocks deeper in the page: a tab panel, a column beside an aside",
|
|
224
|
+
"description": "The distances between two blocks and above a section without a surface, as the page resolves them, the compact step below 600 pixels included: gap: var(--slotted-page-gap) stacks blocks as the body stacks its own"
|
|
225
|
+
},
|
|
219
226
|
{
|
|
220
227
|
"name": "--slotted-page-sticky-top, --slotted-page-sticky-bottom, --slotted-page-scrollport-block-size",
|
|
221
228
|
"type": "runtime properties on the scroller",
|
package/docs/page.md
CHANGED
|
@@ -42,7 +42,7 @@ Excerpt — not a complete module
|
|
|
42
42
|
| `scroll` | `'ancestor' \| 'self'` | ancestor | slPage, providePageDefaults | Who scrolls. ancestor makes the page at least as tall as what scrolls it and sticks the footer to the root’s bottom; self makes the scroll part the scroller and puts the footer below it |
|
|
43
43
|
| `fill` | `boolean` | false | slPage | The body stops growing with its content and its child stretches to what is left, for a master–detail, a splitter or a canvas that scroll their own panes. The body’s principal scroller snaps the header’s area. From 600 pixels of the page’s width up; below it the page scrolls as without fill |
|
|
44
44
|
| `flow` | `'blocks' \| 'none'` | blocks | slPageBody | blocks stacks what is written in the body at --slotted-page-block-gap, and a section without a surface at --slotted-page-section-gap, both a step smaller below 600 pixels of the page’s width; none leaves a body that is not a list of blocks (a workspace, a split) to its own layout |
|
|
45
|
-
| `injectPageSizeClass` | `() => Signal<SizeClass>` | — | inside a page | The size class to compose by from the page’s own width: compact under 600 pixels, medium under 1024, expanded from there, the thresholds of the page’s container queries, so code that chooses what to render agrees with the stylesheet inside a split view. Outside a page it reads the viewport |
|
|
45
|
+
| `injectPageSizeClass` | `() => Signal<SizeClass>` | — | inside a page | The size class to compose by from the page’s own width: compact under 600 pixels, medium under 1024, expanded from there, the thresholds of the page’s container queries, so code that chooses what to render agrees with the stylesheet inside a split view. Outside a page, until the page reports a size and while that size is 0, it reads the viewport |
|
|
46
46
|
| `ground` | `'sunken' \| 'surface'` | sunken | slPage, providePageDefaults | The canvas of an application, or the plain surface of a document. Written as --slotted-page-ground for a sticky section header to paint |
|
|
47
47
|
| `landmark` | `'main' \| 'none'` | main | slPage, providePageDefaults | Whether the root is the document’s main. A main element is left alone; any other element gets role="main" unless this says none, for a page inside a drawer, a dialog or a detail pane |
|
|
48
48
|
| `loading` | `boolean` | false | slPage | The body carries aria-busy and the root data-loading. Each family inside draws its own placeholder |
|
|
@@ -51,6 +51,7 @@ Excerpt — not a complete module
|
|
|
51
51
|
| `slPage on any element` | `directive` | — | the consumer’s own element | main keeps its native landmark; an article or a div gets role="main" unless landmark="none". The scroll part is the component’s, because it is the scroller |
|
|
52
52
|
| `exportAs slPage` | `SlPage` | — | a template reference | The resolved width, inset, scroll and ground as signals, which the header and the footer inject |
|
|
53
53
|
| `providePageDefaults()` | `{ width, inset, scroll, ground, landmark }` | — | an injector | The five decisions an application takes once. A page that states any of them itself still wins |
|
|
54
|
+
| `--slotted-page-gap, --slotted-page-section-space` | `runtime properties on the body` | — | a stack of blocks deeper in the page: a tab panel, a column beside an aside | The distances between two blocks and above a section without a surface, as the page resolves them, the compact step below 600 pixels included: gap: var(--slotted-page-gap) stacks blocks as the body stacks its own |
|
|
54
55
|
| `--slotted-page-sticky-top, --slotted-page-sticky-bottom, --slotted-page-scrollport-block-size` | `runtime properties on the scroller` | — | every family under the page, and the consumer’s own sticky elements inside it | The height of the chrome that stays at the top, written by the header, of the footer, and of the scroller itself, written by the page. A section’s sticky header reads the first; a table with stickyTo="page" reads both through the bridge the page writes on its root. A consumer’s own position: sticky element reads the first as well: inset-block-start: calc(var(--slotted-page-sticky-top, 0px) + gap) stops it under the chrome instead of behind the stuck header, and max-block-size: calc(var(--slotted-page-scrollport-block-size, 100dvh) - var(--slotted-page-sticky-top, 0px) - var(--slotted-page-sticky-bottom, 0px) - 2 * gap) bounds one that may be taller than the scroller. The third is the scroller’s visible height, written by the page; under an inset canvas the scroller is shorter than the viewport |
|
|
55
56
|
| `native attributes` | `on every part` | — | every part | Every directive sits on the consumer’s own element, so id, class, role and every listener stay where they were written; role and aria-label are read with HostAttributeToken before anything is written over them |
|
|
56
57
|
|
|
@@ -63,9 +63,7 @@
|
|
|
63
63
|
"label",
|
|
64
64
|
"value",
|
|
65
65
|
"track",
|
|
66
|
-
"indicator"
|
|
67
|
-
"segment",
|
|
68
|
-
"scale"
|
|
66
|
+
"indicator"
|
|
69
67
|
]
|
|
70
68
|
}
|
|
71
69
|
},
|
|
@@ -106,42 +104,9 @@
|
|
|
106
104
|
"element": "div, or an svg circle or path",
|
|
107
105
|
"required": true,
|
|
108
106
|
"purpose": "The quantity: the filled bar, the arc, or the morphing shape. It is what the tone paints and what the motion moves."
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"part": "segment",
|
|
112
|
-
"element": "span",
|
|
113
|
-
"required": false,
|
|
114
|
-
"purpose": "One part of a total in a slSegmentedBar: its width is in the ratio of its value, its color a data palette slot, a remainder hatched in the muted ink. data-current marks the one a legend row points at and the others dim."
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"part": "scale",
|
|
118
|
-
"element": "div",
|
|
119
|
-
"required": false,
|
|
120
|
-
"purpose": "The line under a slSegmentedBar: what stands at its start and at its end (a zero, the total), in tabular figures. It stays text, outside the picture the track names."
|
|
121
107
|
}
|
|
122
108
|
],
|
|
123
109
|
"api": [
|
|
124
|
-
{
|
|
125
|
-
"name": "segments",
|
|
126
|
-
"type": "{ key?, value, color?, pattern?, label }[]",
|
|
127
|
-
"defaultValue": "—",
|
|
128
|
-
"appliesTo": "slSegmentedBar",
|
|
129
|
-
"description": "One total in parts: each segment is as wide as its share of the values, colored by a data palette slot (color 1 to 8), or hatched in the muted ink for a remainder (pattern: hatch). The track is role img, named by every label in order in the language’s list format"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"name": "current",
|
|
133
|
-
"type": "string | number | null",
|
|
134
|
-
"defaultValue": "null",
|
|
135
|
-
"appliesTo": "slSegmentedBar",
|
|
136
|
-
"description": "The segment to mark, by key or index; the others dim with the motion tokens, at once under reduced motion. A legend row sets it from its pointer"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"name": "label / start / end",
|
|
140
|
-
"type": "string",
|
|
141
|
-
"defaultValue": "—",
|
|
142
|
-
"appliesTo": "slSegmentedBar",
|
|
143
|
-
"description": "label names the whole and leads the accessible name; start and end stand under the bar as text, the total at the end"
|
|
144
|
-
},
|
|
145
110
|
{
|
|
146
111
|
"name": "value",
|
|
147
112
|
"type": "number | null",
|
|
@@ -340,7 +305,6 @@
|
|
|
340
305
|
},
|
|
341
306
|
"tokens": [
|
|
342
307
|
"--slotted-border-strong",
|
|
343
|
-
"--slotted-border-width-medium",
|
|
344
308
|
"--slotted-border-width-thin",
|
|
345
309
|
"--slotted-control-font-family",
|
|
346
310
|
"--slotted-control-font-size-lg",
|
|
@@ -376,8 +340,6 @@
|
|
|
376
340
|
"--slotted-progress-indicator-wave-phase",
|
|
377
341
|
"--slotted-radius-full",
|
|
378
342
|
"--slotted-radius-none",
|
|
379
|
-
"--slotted-segmented-bar-dimmed-opacity",
|
|
380
|
-
"--slotted-segmented-bar-gap",
|
|
381
343
|
"--slotted-space-2",
|
|
382
344
|
"--slotted-space-3",
|
|
383
345
|
"--slotted-space-4",
|
|
@@ -28,16 +28,11 @@ Excerpt — not a complete module
|
|
|
28
28
|
| `value` | span | no |
|
|
29
29
|
| `track` | div, or an svg circle | yes |
|
|
30
30
|
| `indicator` | div, or an svg circle or path | yes |
|
|
31
|
-
| `segment` | span | no |
|
|
32
|
-
| `scale` | div | no |
|
|
33
31
|
|
|
34
32
|
## Props
|
|
35
33
|
|
|
36
34
|
| Name | Type | Default | Applies to | Description |
|
|
37
35
|
| --- | --- | --- | --- | --- |
|
|
38
|
-
| `segments` | `{ key?, value, color?, pattern?, label }[]` | — | slSegmentedBar | One total in parts: each segment is as wide as its share of the values, colored by a data palette slot (color 1 to 8), or hatched in the muted ink for a remainder (pattern: hatch). The track is role img, named by every label in order in the language’s list format |
|
|
39
|
-
| `current` | `string \| number \| null` | null | slSegmentedBar | The segment to mark, by key or index; the others dim with the motion tokens, at once under reduced motion. A legend row sets it from its pointer |
|
|
40
|
-
| `label / start / end` | `string` | — | slSegmentedBar | label names the whole and leads the accessible name; start and end stand under the bar as text, the total at the end |
|
|
41
36
|
| `value` | `number \| null` | null (indeterminate) | slProgressBar, slProgressCircle | The quantity. Absent or null is a wait rather than nought per cent, and a value outside the range is clamped |
|
|
42
37
|
| `min` | `number` | 0 | slProgressBar, slProgressCircle | The bottom of the range, and what aria-valuemin reports |
|
|
43
38
|
| `max` | `number` | 100 | slProgressBar, slProgressCircle | The top of the range, and what aria-valuemax reports. Reaching it writes data-complete |
|
|
@@ -90,7 +85,7 @@ Excerpt — not a complete module
|
|
|
90
85
|
|
|
91
86
|
## Tokens
|
|
92
87
|
|
|
93
|
-
`--slotted-border-strong`, `--slotted-border-width-
|
|
88
|
+
`--slotted-border-strong`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-duration-long`, `--slotted-duration-loop`, `--slotted-duration-loop-slow`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-emphasized`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-line-height-md`, `--slotted-progress-indicator-buffer-color`, `--slotted-progress-indicator-buffer-percent`, `--slotted-progress-indicator-gap`, `--slotted-progress-indicator-indicator-color`, `--slotted-progress-indicator-percent`, `--slotted-progress-indicator-position`, `--slotted-progress-indicator-radius`, `--slotted-progress-indicator-size`, `--slotted-progress-indicator-stroke`, `--slotted-progress-indicator-thickness`, `--slotted-progress-indicator-track-color`, `--slotted-progress-indicator-travel-size`, `--slotted-progress-indicator-travel-start`, `--slotted-progress-indicator-wave-amplitude`, `--slotted-progress-indicator-wave-phase`, `--slotted-radius-full`, `--slotted-radius-none`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-surface`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-z-index-sticky`
|
|
94
89
|
|
|
95
90
|
## Examples
|
|
96
91
|
|
package/docs/radio-group.json
CHANGED
|
@@ -32,8 +32,7 @@
|
|
|
32
32
|
"size": "md",
|
|
33
33
|
"variant": "plain",
|
|
34
34
|
"orientation": "vertical",
|
|
35
|
-
"labelPlacement": "end"
|
|
36
|
-
"mark": "visible"
|
|
35
|
+
"labelPlacement": "end"
|
|
37
36
|
},
|
|
38
37
|
"capabilities": [
|
|
39
38
|
"selection",
|
|
@@ -63,7 +62,6 @@
|
|
|
63
62
|
"label",
|
|
64
63
|
"control",
|
|
65
64
|
"indicator",
|
|
66
|
-
"media",
|
|
67
65
|
"description"
|
|
68
66
|
]
|
|
69
67
|
}
|
|
@@ -106,12 +104,6 @@
|
|
|
106
104
|
"required": false,
|
|
107
105
|
"purpose": "Names the item’s control through for, and carries the target and the hover wash: a 24-pixel square around the circle, and a wash behind the circle and the text that stands half the control gap off the circle and half as far again past the text. It is as wide as its text, so the empty space beside it does not toggle the circle. Its content is the item’s default ng-content slot."
|
|
108
106
|
},
|
|
109
|
-
{
|
|
110
|
-
"part": "media",
|
|
111
|
-
"element": "span",
|
|
112
|
-
"required": false,
|
|
113
|
-
"purpose": "A picture above the label inside a tile, given through the [slRadioMedia]. It is decorative, because the label names the option, and the stretched label makes it part of the target."
|
|
114
|
-
},
|
|
115
107
|
{
|
|
116
108
|
"part": "description",
|
|
117
109
|
"element": "the element carrying slRadioDescription",
|
|
@@ -169,13 +161,6 @@
|
|
|
169
161
|
"appliesTo": "SlRadioGroup, provideRadioGroupDefaults",
|
|
170
162
|
"description": "Which side of its label each circle is on, set once for the set so the circles line up."
|
|
171
163
|
},
|
|
172
|
-
{
|
|
173
|
-
"name": "mark",
|
|
174
|
-
"type": "'visible' | 'hidden'",
|
|
175
|
-
"defaultValue": "visible",
|
|
176
|
-
"appliesTo": "SlRadioGroup",
|
|
177
|
-
"description": "Whether a tile draws its circle. hidden leaves the frame and the chosen edge to say the choice; the input keeps its role, its name and its single tab stop, and the tile draws the focus ring. A plain group ignores it."
|
|
178
|
-
},
|
|
179
164
|
{
|
|
180
165
|
"name": "disabled",
|
|
181
166
|
"type": "boolean",
|
|
@@ -355,7 +340,6 @@
|
|
|
355
340
|
"--slotted-radio-group-tile-invalid-border-color",
|
|
356
341
|
"--slotted-radio-group-tile-invalid-checked-background",
|
|
357
342
|
"--slotted-radio-group-tile-invalid-checked-border-color",
|
|
358
|
-
"--slotted-radio-group-tile-media-gap",
|
|
359
343
|
"--slotted-radio-group-tile-radius",
|
|
360
344
|
"--slotted-radio-group-tile-readonly-background",
|
|
361
345
|
"--slotted-radio-group-tile-readonly-border-color",
|
|
@@ -367,7 +351,6 @@
|
|
|
367
351
|
"--slotted-selection-size-sm",
|
|
368
352
|
"--slotted-space-2",
|
|
369
353
|
"--slotted-space-3",
|
|
370
|
-
"--slotted-space-4",
|
|
371
354
|
"--slotted-surface",
|
|
372
355
|
"--slotted-target-min",
|
|
373
356
|
"--slotted-text",
|
package/docs/radio-group.md
CHANGED
|
@@ -51,7 +51,6 @@ export class RadioGroupBasic {}
|
|
|
51
51
|
| `control` | input type="radio", in the item’s template | yes |
|
|
52
52
|
| `indicator` | span | yes |
|
|
53
53
|
| `label` | label, in the item’s template | no |
|
|
54
|
-
| `media` | span | no |
|
|
55
54
|
| `description` | the element carrying slRadioDescription | no |
|
|
56
55
|
|
|
57
56
|
## Props
|
|
@@ -65,7 +64,6 @@ export class RadioGroupBasic {}
|
|
|
65
64
|
| `orientation` | `'vertical' \| 'horizontal'` | vertical | SlRadioGroup, provideRadioGroupDefaults | How the choices flow. A horizontal set wraps instead of scrolling, and aria-orientation is written only where the group carries the radiogroup role. |
|
|
66
65
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | SlRadioGroup, provideRadioGroupDefaults | The type step, passed to every item. A field or field group around the radio group decides it first, then the provider. The circle follows the control glyph scale, which the theme restates per density. |
|
|
67
66
|
| `labelPlacement` | `'end' \| 'start'` | end | SlRadioGroup, provideRadioGroupDefaults | Which side of its label each circle is on, set once for the set so the circles line up. |
|
|
68
|
-
| `mark` | `'visible' \| 'hidden'` | visible | SlRadioGroup | Whether a tile draws its circle. hidden leaves the frame and the chosen edge to say the choice; the input keeps its role, its name and its single tab stop, and the tile draws the focus ring. A plain group ignores it. |
|
|
69
67
|
| `disabled` | `boolean` | from the field, or false | SlRadioGroup, SlRadio | Unset rather than false. Reaches every item as the native attribute, which also makes the browser skip the item with the arrow keys. Set it on one SlRadio to disable that option alone. A disabled form control disables the group as well. |
|
|
70
68
|
| `readOnly` | `boolean` | from the field, or false | SlRadioGroup | Unset rather than false. A radio has no native readonly, so the radio group refuses every activation and writes aria-readonly; every item keeps its tab stop, its focus ring and its contrast. |
|
|
71
69
|
| `invalid` | `boolean` | from the field, or false | SlRadioGroup | Unset rather than false. Writes aria-invalid on the group and data-invalid on the root, which draws every circle in the danger tone with a thicker edge. |
|
|
@@ -107,7 +105,7 @@ export class RadioGroupBasic {}
|
|
|
107
105
|
|
|
108
106
|
## Tokens
|
|
109
107
|
|
|
110
|
-
`--slotted-border-strong`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--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-invalid-edge-width`, `--slotted-control-label-gap-lg`, `--slotted-control-label-gap-md`, `--slotted-control-label-gap-sm`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-shadow`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-line-height-md`, `--slotted-line-height-xs`, `--slotted-radio-group-active-background`, `--slotted-radio-group-background`, `--slotted-radio-group-border-color`, `--slotted-radio-group-border-width`, `--slotted-radio-group-checked-active-border-color`, `--slotted-radio-group-checked-border-color`, `--slotted-radio-group-checked-hover-border-color`, `--slotted-radio-group-color`, `--slotted-radio-group-description-color`, `--slotted-radio-group-description-font-size`, `--slotted-radio-group-disabled-background`, `--slotted-radio-group-disabled-border-color`, `--slotted-radio-group-disabled-color`, `--slotted-radio-group-disabled-mark-color`, `--slotted-radio-group-gap`, `--slotted-radio-group-halo-color`, `--slotted-radio-group-hover-border-color`, `--slotted-radio-group-invalid-border-color`, `--slotted-radio-group-invalid-checked-border-color`, `--slotted-radio-group-invalid-edge-width`, `--slotted-radio-group-invalid-focus-ring-color`, `--slotted-radio-group-invalid-mark-color`, `--slotted-radio-group-line-height`, `--slotted-radio-group-mark-color`, `--slotted-radio-group-readonly-background`, `--slotted-radio-group-size`, `--slotted-radio-group-tile-active-background`, `--slotted-radio-group-tile-background`, `--slotted-radio-group-tile-border-color`, `--slotted-radio-group-tile-checked-background`, `--slotted-radio-group-tile-checked-border-color`, `--slotted-radio-group-tile-checked-hover-border-color`, `--slotted-radio-group-tile-description-gap`, `--slotted-radio-group-tile-disabled-background`, `--slotted-radio-group-tile-disabled-border-color`, `--slotted-radio-group-tile-hover-background`, `--slotted-radio-group-tile-hover-border-color`, `--slotted-radio-group-tile-inset`, `--slotted-radio-group-tile-invalid-border-color`, `--slotted-radio-group-tile-invalid-checked-background`, `--slotted-radio-group-tile-invalid-checked-border-color`, `--slotted-radio-group-tile-
|
|
108
|
+
`--slotted-border-strong`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--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-invalid-edge-width`, `--slotted-control-label-gap-lg`, `--slotted-control-label-gap-md`, `--slotted-control-label-gap-sm`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-shadow`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-line-height-md`, `--slotted-line-height-xs`, `--slotted-radio-group-active-background`, `--slotted-radio-group-background`, `--slotted-radio-group-border-color`, `--slotted-radio-group-border-width`, `--slotted-radio-group-checked-active-border-color`, `--slotted-radio-group-checked-border-color`, `--slotted-radio-group-checked-hover-border-color`, `--slotted-radio-group-color`, `--slotted-radio-group-description-color`, `--slotted-radio-group-description-font-size`, `--slotted-radio-group-disabled-background`, `--slotted-radio-group-disabled-border-color`, `--slotted-radio-group-disabled-color`, `--slotted-radio-group-disabled-mark-color`, `--slotted-radio-group-gap`, `--slotted-radio-group-halo-color`, `--slotted-radio-group-hover-border-color`, `--slotted-radio-group-invalid-border-color`, `--slotted-radio-group-invalid-checked-border-color`, `--slotted-radio-group-invalid-edge-width`, `--slotted-radio-group-invalid-focus-ring-color`, `--slotted-radio-group-invalid-mark-color`, `--slotted-radio-group-line-height`, `--slotted-radio-group-mark-color`, `--slotted-radio-group-readonly-background`, `--slotted-radio-group-size`, `--slotted-radio-group-tile-active-background`, `--slotted-radio-group-tile-background`, `--slotted-radio-group-tile-border-color`, `--slotted-radio-group-tile-checked-background`, `--slotted-radio-group-tile-checked-border-color`, `--slotted-radio-group-tile-checked-hover-border-color`, `--slotted-radio-group-tile-description-gap`, `--slotted-radio-group-tile-disabled-background`, `--slotted-radio-group-tile-disabled-border-color`, `--slotted-radio-group-tile-hover-background`, `--slotted-radio-group-tile-hover-border-color`, `--slotted-radio-group-tile-inset`, `--slotted-radio-group-tile-invalid-border-color`, `--slotted-radio-group-tile-invalid-checked-background`, `--slotted-radio-group-tile-invalid-checked-border-color`, `--slotted-radio-group-tile-radius`, `--slotted-radio-group-tile-readonly-background`, `--slotted-radio-group-tile-readonly-border-color`, `--slotted-radius-full`, `--slotted-radius-md`, `--slotted-selection-halo-opacity`, `--slotted-selection-size-lg`, `--slotted-selection-size-md`, `--slotted-selection-size-sm`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-surface`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-solid-active`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-surface`, `--slotted-tone-secondary-subtle-hover`
|
|
111
109
|
|
|
112
110
|
## Examples
|
|
113
111
|
|
package/docs/section.json
CHANGED
|
@@ -66,14 +66,15 @@
|
|
|
66
66
|
"tags",
|
|
67
67
|
"description",
|
|
68
68
|
"actions",
|
|
69
|
-
"body"
|
|
69
|
+
"body",
|
|
70
|
+
"bleed"
|
|
70
71
|
]
|
|
71
72
|
}
|
|
72
73
|
},
|
|
73
74
|
"docs": {
|
|
74
75
|
"section": {
|
|
75
76
|
"imports": {
|
|
76
|
-
"source": "import { SlSection, SlSectionHeader, SlSectionTitle, SlSectionEyebrow, SlSectionHeading, SlSectionTags, SlSectionDescription, SlSectionActions, SlSectionBody, provideSectionDefaults } from '@slotted/angular/section';",
|
|
77
|
+
"source": "import { SlSection, SlSectionHeader, SlSectionTitle, SlSectionEyebrow, SlSectionHeading, SlSectionTags, SlSectionDescription, SlSectionActions, SlSectionBleed, SlSectionBody, provideSectionDefaults } from '@slotted/angular/section';",
|
|
77
78
|
"selector": "[slSection], [slSectionHeader], [slSectionTitle], [slSectionEyebrow], [slSectionHeading], [slSectionTags], [slSectionDescription], [slSectionActions], [slSectionBody]",
|
|
78
79
|
"exportAs": "slSection, slSectionHeading"
|
|
79
80
|
},
|
|
@@ -139,6 +140,13 @@
|
|
|
139
140
|
"element": "the element carrying slSectionBody",
|
|
140
141
|
"required": true,
|
|
141
142
|
"purpose": "The content, with slHeadingLevel as a host directive, so a section inside it takes the next rank without being told."
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"part": "bleed",
|
|
146
|
+
"parent": "body",
|
|
147
|
+
"element": "[slSectionBleed]",
|
|
148
|
+
"required": false,
|
|
149
|
+
"purpose": "A child of the body that bleeds alone, in the body or in the one stack the body holds: in a surface section it runs to the panel’s inline edges, and to its lower corners when it is the last of the panel, while the rest of the body keeps the inset."
|
|
142
150
|
}
|
|
143
151
|
],
|
|
144
152
|
"api": [
|
package/docs/section.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
## Import
|
|
7
7
|
|
|
8
8
|
```ts
|
|
9
|
-
import { SlSection, SlSectionHeader, SlSectionTitle, SlSectionEyebrow, SlSectionHeading, SlSectionTags, SlSectionDescription, SlSectionActions, SlSectionBody, provideSectionDefaults } from '@slotted/angular/section';
|
|
9
|
+
import { SlSection, SlSectionHeader, SlSectionTitle, SlSectionEyebrow, SlSectionHeading, SlSectionTags, SlSectionDescription, SlSectionActions, SlSectionBleed, SlSectionBody, provideSectionDefaults } from '@slotted/angular/section';
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
Selector: `[slSection], [slSectionHeader], [slSectionTitle], [slSectionEyebrow], [slSectionHeading], [slSectionTags], [slSectionDescription], [slSectionActions], [slSectionBody]` · exportAs: `slSection, slSectionHeading`
|
|
@@ -37,6 +37,7 @@ Excerpt — not a complete module
|
|
|
37
37
|
| `description` | `title` | the p carrying slSectionDescription | no |
|
|
38
38
|
| `actions` | `header` | the element carrying slSectionActions | no |
|
|
39
39
|
| `body` | `root` | the element carrying slSectionBody | yes |
|
|
40
|
+
| `bleed` | `body` | [slSectionBleed] | no |
|
|
40
41
|
|
|
41
42
|
## Props
|
|
42
43
|
|
|
@@ -62,7 +62,47 @@ A new appearance is a new combination of tokens, never a new value.
|
|
|
62
62
|
A decision no group names is written as a literal beside a comment that says
|
|
63
63
|
why no token covers it (CP-05).
|
|
64
64
|
|
|
65
|
-
## 4.
|
|
65
|
+
## 4. A word-sized comparison
|
|
66
|
+
|
|
67
|
+
A comparison bar, a position strip and a split bar are elements of the
|
|
68
|
+
application's own: each depends on its screen — a scale shared with blocks
|
|
69
|
+
outside it, inks that carry meaning, labels placed on the mark. They start from
|
|
70
|
+
these primitives:
|
|
71
|
+
|
|
72
|
+
- `linearScale` from `@slotted/core/sparkline` takes a min, a max, the values
|
|
73
|
+
and whether zero stays inside the domain. Its at method returns a value's
|
|
74
|
+
share of the domain from 0 to 1; its zero is the share of zero, or null when
|
|
75
|
+
the domain does not cross it; its ticks method lists a tick at each multiple
|
|
76
|
+
of a step. Marks that state the same min and max draw the same axis.
|
|
77
|
+
- A share is written as a custom property of the mark and read as a
|
|
78
|
+
percentage of its track (`inset-inline-start: calc(var(--at) * 100%)`), so
|
|
79
|
+
the mark needs no measuring.
|
|
80
|
+
- A track takes `--slotted-mark-track-thickness` in
|
|
81
|
+
`--slotted-mark-track-color`. A dot takes `--slotted-mark-dot-size`, and the
|
|
82
|
+
current value's ring `--slotted-mark-ring-width` in
|
|
83
|
+
`--slotted-mark-ring-color`. A reference or zero line takes
|
|
84
|
+
`--slotted-border-strong`.
|
|
85
|
+
- The inks come from the `data` and `tone` groups; a neutral part takes
|
|
86
|
+
`--slotted-text-muted`. Under forced colors, a filled mark takes the
|
|
87
|
+
CanvasText system color and a dimmed one GrayText, with
|
|
88
|
+
`forced-color-adjust: none`.
|
|
89
|
+
- The mark is an image named by its numbers; a focusable part takes the focus
|
|
90
|
+
ring of section 6.
|
|
91
|
+
|
|
92
|
+
## 5. A gallery of illustrated choices
|
|
93
|
+
|
|
94
|
+
A choice told apart by pictures belongs to its screen's identity: its frame,
|
|
95
|
+
its chosen state and the motion of its illustration are the application's own.
|
|
96
|
+
`radio-group` draws a choice in words (CP-04). The gallery starts from:
|
|
97
|
+
|
|
98
|
+
- one native radio input per tile, visually hidden, all with one `name`, the
|
|
99
|
+
tile being its label. The platform gives one tab stop, the arrows across
|
|
100
|
+
every section that shares the name, and Enter that submits.
|
|
101
|
+
- `createRovingRadio` from `@slotted/core/focus` when the tile is a button that
|
|
102
|
+
carries the radio role, its `name` and its `value`: it gives the same
|
|
103
|
+
keyboard and reports each choice; the application writes the checked state.
|
|
104
|
+
|
|
105
|
+
## 6. Write it
|
|
66
106
|
|
|
67
107
|
1. Give each interactive part the native element that carries its role: a
|
|
68
108
|
button for an action, a link for a destination, an input for a value. Add
|
|
@@ -82,7 +122,7 @@ why no token covers it (CP-05).
|
|
|
82
122
|
step (OE-10).
|
|
83
123
|
6. Text that stands alone takes its size from the `typography` family (CP-02).
|
|
84
124
|
|
|
85
|
-
##
|
|
125
|
+
## 7. Done
|
|
86
126
|
|
|
87
127
|
1. Each `Check` of `../../guidelines/own-elements.md` passes.
|
|
88
128
|
2. The element's CSS holds no color or length literal without its comment.
|
|
@@ -19,7 +19,7 @@ Take the first row that reaches the change.
|
|
|
19
19
|
| How tight controls and rows are | the density: `comfortable`, `compact`, `dense` | `data-slotted-density`, or the density of the `slThemeScope` directive from `@slotted/angular/theme` |
|
|
20
20
|
| How round corners are, chosen by the reader | the corners: `square`, `soft`, `standard`, `round` | `data-slotted-corners`, or the corners of the `slThemeScope` directive from `@slotted/angular/theme`; the theme's `corners` holds each radius scale |
|
|
21
21
|
| How deep a scheme's grounds sit, or how far each layer steps from the one below | the recipe: one derivation per token per scheme | the theme's `recipe`, spread from the base theme's, as below; `themeConformance` still checks every contrast |
|
|
22
|
-
| A
|
|
22
|
+
| A scheme's values chosen by the reader: an OLED black page, flat shadows | a variant: per scheme, a derivation or a CSS value per token | the theme's `variants`; `data-slotted-variant-<axis>` set to the value; `themeConformance` checks each value |
|
|
23
23
|
| Spacing, corners, type, lines, shadows or motion | a token of a group in `../../tokens.md` | the theme's `base`; `schemes` for a value per scheme; `densities` per density |
|
|
24
24
|
| One family's look | a token the family's page lists under Tokens | the theme's `components` |
|
|
25
25
|
| What no token reaches | a theme rule | the theme's `rules` |
|