@slotted/angular 0.1.0-beta.33 → 0.1.0-beta.35
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/accordion.json +2 -0
- package/docs/accordion.md +1 -1
- package/docs/avatar.json +1 -0
- package/docs/avatar.md +1 -1
- package/docs/badge.json +1 -0
- package/docs/badge.md +1 -1
- package/docs/button.json +56 -2
- package/docs/button.md +8 -1
- package/docs/calendar.json +59 -0
- package/docs/calendar.md +8 -1
- package/docs/card.json +7 -0
- package/docs/card.md +1 -0
- package/docs/chart.json +32 -4
- package/docs/chart.md +9 -5
- package/docs/checkbox.json +8 -3
- package/docs/checkbox.md +3 -3
- package/docs/collapsible.json +33 -1
- package/docs/collapsible.md +5 -1
- package/docs/command-palette.json +2 -1
- package/docs/command-palette.md +1 -1
- package/docs/dashboard-grid.json +11 -3
- package/docs/dashboard-grid.md +3 -2
- package/docs/description-list.json +9 -1
- package/docs/description-list.md +2 -1
- package/docs/drawer.examples.md +167 -165
- package/docs/drawer.json +8 -8
- package/docs/entity-picker.json +3 -2
- package/docs/entity-picker.md +2 -2
- package/docs/floating-panel.json +203 -0
- package/docs/floating-panel.md +97 -0
- package/docs/form.json +1 -1
- package/docs/index.md +3 -1
- package/docs/inline-message.json +1 -0
- package/docs/inline-message.md +1 -1
- package/docs/kbd.json +1 -0
- package/docs/kbd.md +1 -1
- package/docs/link.json +1 -1
- package/docs/link.md +1 -1
- package/docs/list-item.json +31 -8
- package/docs/list-item.md +19 -6
- package/docs/list.json +13 -0
- package/docs/list.md +3 -1
- package/docs/listbox.json +13 -0
- package/docs/listbox.md +2 -1
- package/docs/markdown.json +1 -1
- package/docs/markdown.md +1 -1
- package/docs/message.json +17 -2
- package/docs/message.md +4 -2
- package/docs/meter.json +248 -0
- package/docs/meter.md +121 -0
- package/docs/page.json +21 -0
- package/docs/page.md +3 -1
- package/docs/progress-indicator.json +39 -1
- package/docs/progress-indicator.md +6 -1
- package/docs/prompt-composer.json +1 -1
- package/docs/radio-group.json +18 -1
- package/docs/radio-group.md +3 -1
- package/docs/rating.json +1 -0
- package/docs/rating.md +1 -1
- package/docs/section.json +28 -3
- package/docs/section.md +6 -3
- package/docs/segmented-control.json +5 -4
- package/docs/segmented-control.md +3 -3
- package/docs/side-navigation.json +8 -0
- package/docs/side-navigation.md +2 -1
- package/docs/slider.json +8 -0
- package/docs/slider.md +2 -1
- package/docs/sparkline.json +416 -1
- package/docs/sparkline.md +186 -2
- package/docs/stat-card.json +7 -0
- package/docs/stat-card.md +1 -0
- package/docs/switch.json +16 -0
- package/docs/switch.md +3 -1
- package/docs/table.json +39 -1
- package/docs/table.md +6 -1
- package/docs/tag.json +1 -0
- package/docs/tag.md +1 -1
- package/docs/tokens.md +1 -1
- package/docs/toolbar.json +2 -1
- package/docs/toolbar.md +1 -1
- package/docs/top-navigation.json +1 -0
- package/docs/top-navigation.md +1 -1
- package/docs/typography.json +15 -0
- package/docs/typography.md +3 -1
- package/fesm2022/slotted-angular-accordion.mjs +2 -2
- package/fesm2022/slotted-angular-accordion.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +2 -2
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +2 -2
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +84 -28
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-calendar.mjs +114 -23
- package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +15 -5
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-cascader.mjs +5 -5
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +47 -5
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +2 -2
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +69 -8
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +1 -1
- package/fesm2022/slotted-angular-column-manager.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-command-palette.mjs +11 -2
- package/fesm2022/slotted-angular-command-palette.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +19 -5
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +40 -15
- package/fesm2022/slotted-angular-data-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-description-list.mjs +13 -6
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-detail-panel.mjs +1 -1
- package/fesm2022/slotted-angular-detail-panel.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +2 -2
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-entity-picker.mjs +14 -2
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-filter-bar.mjs +4 -4
- package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-floating-panel.mjs +257 -0
- package/fesm2022/slotted-angular-floating-panel.mjs.map +1 -0
- package/fesm2022/slotted-angular-form.mjs +2 -2
- package/fesm2022/slotted-angular-form.mjs.map +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +2 -2
- 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-list-item.mjs +41 -6
- package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +20 -4
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +63 -6
- package/fesm2022/slotted-angular-listbox.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-markdown.mjs +1 -1
- package/fesm2022/slotted-angular-markdown.mjs.map +1 -1
- package/fesm2022/slotted-angular-message.mjs +78 -36
- package/fesm2022/slotted-angular-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-meter.mjs +108 -0
- package/fesm2022/slotted-angular-meter.mjs.map +1 -0
- package/fesm2022/slotted-angular-multi-select.mjs +2 -2
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +49 -6
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +106 -7
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-prompt-composer.mjs +24 -6
- package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +45 -12
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +6 -6
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs.map +1 -1
- package/fesm2022/slotted-angular-section.mjs +23 -6
- package/fesm2022/slotted-angular-section.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +29 -7
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-select.mjs +42 -18
- package/fesm2022/slotted-angular-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-side-navigation.mjs +29 -7
- package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +26 -16
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-sparkline.mjs +295 -4
- 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-stat-card.mjs +82 -28
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +2 -2
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs +14 -4
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +77 -16
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +2 -2
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +2 -2
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-toolbar.mjs +2 -2
- package/fesm2022/slotted-angular-toolbar.mjs.map +1 -1
- package/fesm2022/slotted-angular-top-navigation.mjs +2 -2
- package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +1 -1
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-transfer.mjs +1 -1
- package/fesm2022/slotted-angular-transfer.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +31 -6
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +2 -2
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +1 -1
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +11 -3
- package/types/slotted-angular-button.d.ts +47 -5
- package/types/slotted-angular-button.d.ts.map +1 -1
- package/types/slotted-angular-calendar.d.ts +62 -5
- package/types/slotted-angular-calendar.d.ts.map +1 -1
- package/types/slotted-angular-card.d.ts +7 -1
- package/types/slotted-angular-card.d.ts.map +1 -1
- package/types/slotted-angular-chart.d.ts +10 -2
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-checkbox.d.ts +3 -1
- package/types/slotted-angular-checkbox.d.ts.map +1 -1
- package/types/slotted-angular-collapsible.d.ts +29 -3
- package/types/slotted-angular-collapsible.d.ts.map +1 -1
- package/types/slotted-angular-command-palette.d.ts.map +1 -1
- package/types/slotted-angular-dashboard-grid.d.ts +9 -1
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-grid.d.ts +5 -1
- package/types/slotted-angular-data-grid.d.ts.map +1 -1
- package/types/slotted-angular-description-list.d.ts +11 -3
- package/types/slotted-angular-description-list.d.ts.map +1 -1
- package/types/slotted-angular-entity-picker.d.ts +1 -0
- package/types/slotted-angular-entity-picker.d.ts.map +1 -1
- package/types/slotted-angular-floating-panel.d.ts +82 -0
- package/types/slotted-angular-floating-panel.d.ts.map +1 -0
- package/types/slotted-angular-list-item.d.ts +33 -6
- package/types/slotted-angular-list-item.d.ts.map +1 -1
- package/types/slotted-angular-list.d.ts +43 -29
- package/types/slotted-angular-list.d.ts.map +1 -1
- package/types/slotted-angular-listbox.d.ts +7 -1
- package/types/slotted-angular-listbox.d.ts.map +1 -1
- package/types/slotted-angular-message.d.ts +17 -3
- package/types/slotted-angular-message.d.ts.map +1 -1
- package/types/slotted-angular-meter.d.ts +67 -0
- package/types/slotted-angular-meter.d.ts.map +1 -0
- package/types/slotted-angular-page.d.ts +33 -10
- package/types/slotted-angular-page.d.ts.map +1 -1
- package/types/slotted-angular-progress-indicator.d.ts +46 -2
- package/types/slotted-angular-progress-indicator.d.ts.map +1 -1
- package/types/slotted-angular-prompt-composer.d.ts +2 -0
- package/types/slotted-angular-prompt-composer.d.ts.map +1 -1
- package/types/slotted-angular-radio-group.d.ts +22 -4
- package/types/slotted-angular-radio-group.d.ts.map +1 -1
- package/types/slotted-angular-section.d.ts +18 -3
- package/types/slotted-angular-section.d.ts.map +1 -1
- package/types/slotted-angular-segmented-control.d.ts +8 -2
- package/types/slotted-angular-segmented-control.d.ts.map +1 -1
- package/types/slotted-angular-select.d.ts.map +1 -1
- package/types/slotted-angular-side-navigation.d.ts +14 -2
- package/types/slotted-angular-side-navigation.d.ts.map +1 -1
- package/types/slotted-angular-slider.d.ts +7 -1
- package/types/slotted-angular-slider.d.ts.map +1 -1
- package/types/slotted-angular-sparkline.d.ts +86 -4
- package/types/slotted-angular-sparkline.d.ts.map +1 -1
- package/types/slotted-angular-stat-card.d.ts +20 -2
- package/types/slotted-angular-stat-card.d.ts.map +1 -1
- package/types/slotted-angular-switch.d.ts +16 -2
- package/types/slotted-angular-switch.d.ts.map +1 -1
- package/types/slotted-angular-table.d.ts +32 -3
- package/types/slotted-angular-table.d.ts.map +1 -1
- package/types/slotted-angular-typography.d.ts +21 -2
- package/types/slotted-angular-typography.d.ts.map +1 -1
package/docs/list.json
CHANGED
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
"none",
|
|
23
23
|
"bullet",
|
|
24
24
|
"number"
|
|
25
|
+
],
|
|
26
|
+
"fill": [
|
|
27
|
+
"row",
|
|
28
|
+
"inset"
|
|
25
29
|
]
|
|
26
30
|
},
|
|
27
31
|
"members": {
|
|
@@ -33,6 +37,7 @@
|
|
|
33
37
|
"marker": "none",
|
|
34
38
|
"ordered": false,
|
|
35
39
|
"inset": false,
|
|
40
|
+
"fill": "row",
|
|
36
41
|
"loading": false,
|
|
37
42
|
"level": "3",
|
|
38
43
|
"sticky": false
|
|
@@ -138,6 +143,13 @@
|
|
|
138
143
|
"appliesTo": "slList",
|
|
139
144
|
"description": "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."
|
|
140
145
|
},
|
|
146
|
+
{
|
|
147
|
+
"name": "fill",
|
|
148
|
+
"type": "'row' | 'inset'",
|
|
149
|
+
"defaultValue": "row",
|
|
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 inside a gutter of --slotted-list-fill-inset. The content does not move."
|
|
152
|
+
},
|
|
141
153
|
{
|
|
142
154
|
"name": "loading",
|
|
143
155
|
"type": "boolean",
|
|
@@ -240,6 +252,7 @@
|
|
|
240
252
|
"--slotted-list-padding-inline-lg",
|
|
241
253
|
"--slotted-list-padding-inline-sm",
|
|
242
254
|
"--slotted-list-radius",
|
|
255
|
+
"--slotted-list-section-background",
|
|
243
256
|
"--slotted-list-section-color",
|
|
244
257
|
"--slotted-list-section-font-size",
|
|
245
258
|
"--slotted-list-section-font-weight",
|
package/docs/list.md
CHANGED
|
@@ -85,6 +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 inside a gutter of --slotted-list-fill-inset. The content does not move. |
|
|
88
89
|
| `loading` | `boolean` | false | slList | Writes aria-busy on the list and draws nothing. slSkeleton, composed inside the rows, stands in for their content. |
|
|
89
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. |
|
|
90
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. |
|
|
@@ -102,6 +103,7 @@ export class ListBasic {
|
|
|
102
103
|
| `variant` | `plain`, `ruled`, `framed`, `separated` | `plain` |
|
|
103
104
|
| `size` | `sm`, `md`, `lg` | `md` |
|
|
104
105
|
| `marker` | `none`, `bullet`, `number` | `none` |
|
|
106
|
+
| `fill` | `row`, `inset` | `row` |
|
|
105
107
|
|
|
106
108
|
## Rules
|
|
107
109
|
|
|
@@ -116,7 +118,7 @@ export class ListBasic {
|
|
|
116
118
|
|
|
117
119
|
## Tokens
|
|
118
120
|
|
|
119
|
-
`--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-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-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`
|
|
120
122
|
|
|
121
123
|
## Examples
|
|
122
124
|
|
package/docs/listbox.json
CHANGED
|
@@ -522,6 +522,13 @@
|
|
|
522
522
|
"appliesTo": "SlListboxGroup",
|
|
523
523
|
"description": "The name without the row, which is what a windowed group takes when its label has scrolled out of the slice"
|
|
524
524
|
},
|
|
525
|
+
{
|
|
526
|
+
"name": "columns",
|
|
527
|
+
"type": "number",
|
|
528
|
+
"defaultValue": "the listbox columns",
|
|
529
|
+
"appliesTo": "SlListboxGroup",
|
|
530
|
+
"description": "How many options across inside this group. The arrows step by the count of the group the active option is in, cross from its first or last row into the neighbouring group, and an inline arrow does nothing in a group of one column"
|
|
531
|
+
},
|
|
525
532
|
{
|
|
526
533
|
"name": "renderOption",
|
|
527
534
|
"type": "ng-template slListboxOptionContent",
|
|
@@ -646,11 +653,17 @@
|
|
|
646
653
|
"--slotted-listbox-highlight",
|
|
647
654
|
"--slotted-listbox-highlight-active",
|
|
648
655
|
"--slotted-listbox-measure",
|
|
656
|
+
"--slotted-listbox-option-border-color",
|
|
657
|
+
"--slotted-listbox-option-border-width",
|
|
658
|
+
"--slotted-listbox-option-gap",
|
|
659
|
+
"--slotted-listbox-option-padding-block",
|
|
660
|
+
"--slotted-listbox-option-padding-inline",
|
|
649
661
|
"--slotted-listbox-option-radius",
|
|
650
662
|
"--slotted-listbox-padding-block",
|
|
651
663
|
"--slotted-listbox-padding-inline",
|
|
652
664
|
"--slotted-listbox-radius",
|
|
653
665
|
"--slotted-listbox-rows",
|
|
666
|
+
"--slotted-listbox-selected-border-color",
|
|
654
667
|
"--slotted-listbox-selected-surface",
|
|
655
668
|
"--slotted-listbox-selected-text",
|
|
656
669
|
"--slotted-listbox-shadow",
|
package/docs/listbox.md
CHANGED
|
@@ -102,6 +102,7 @@ Excerpt — not a complete module
|
|
|
102
102
|
| `pinned` | `boolean` | false | SlListboxOption | Rendered outside the window that covers it, at its own place on the canvas. The listbox sets it; nothing else should |
|
|
103
103
|
| `label` | `string` | — | SlListboxGroup | The group accessible name, rendered as its own label row |
|
|
104
104
|
| `groupLabel` | `string` | — | SlListboxGroup | The name without the row, which is what a windowed group takes when its label has scrolled out of the slice |
|
|
105
|
+
| `columns` | `number` | the listbox columns | SlListboxGroup | How many options across inside this group. The arrows step by the count of the group the active option is in, cross from its first or last row into the neighbouring group, and an inline arrow does nothing in a group of one column |
|
|
105
106
|
| `renderOption` | `ng-template slListboxOptionContent` | — | SlListbox | What one option of a handed collection holds. Angular projects a template where React takes a function |
|
|
106
107
|
| `provideListboxDefaults` | `(defaults: Partial<ListboxDefaults>) => Provider` | — | an injector | Sets nineteen axes once for every listbox under it. An explicit input still wins |
|
|
107
108
|
| `exportAs` | `slListbox, slListboxOption, slListboxGroup` | — | a template | Reaches the instance, and with it focus(), scrollToKey(key, align) and getActiveKey() |
|
|
@@ -150,7 +151,7 @@ Excerpt — not a complete module
|
|
|
150
151
|
|
|
151
152
|
## Tokens
|
|
152
153
|
|
|
153
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--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-invalid-edge-width`, `--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-loop`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-listbox-border-color`, `--slotted-listbox-columns`, `--slotted-listbox-group-border-color`, `--slotted-listbox-highlight`, `--slotted-listbox-highlight-active`, `--slotted-listbox-measure`, `--slotted-listbox-option-radius`, `--slotted-listbox-padding-block`, `--slotted-listbox-padding-inline`, `--slotted-listbox-radius`, `--slotted-listbox-rows`, `--slotted-listbox-selected-surface`, `--slotted-listbox-selected-text`, `--slotted-listbox-shadow`, `--slotted-listbox-surface`, `--slotted-listbox-text`, `--slotted-listbox-text-muted`, `--slotted-radius-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
154
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--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-invalid-edge-width`, `--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-loop`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-listbox-border-color`, `--slotted-listbox-columns`, `--slotted-listbox-group-border-color`, `--slotted-listbox-highlight`, `--slotted-listbox-highlight-active`, `--slotted-listbox-measure`, `--slotted-listbox-option-border-color`, `--slotted-listbox-option-border-width`, `--slotted-listbox-option-gap`, `--slotted-listbox-option-padding-block`, `--slotted-listbox-option-padding-inline`, `--slotted-listbox-option-radius`, `--slotted-listbox-padding-block`, `--slotted-listbox-padding-inline`, `--slotted-listbox-radius`, `--slotted-listbox-rows`, `--slotted-listbox-selected-border-color`, `--slotted-listbox-selected-surface`, `--slotted-listbox-selected-text`, `--slotted-listbox-shadow`, `--slotted-listbox-surface`, `--slotted-listbox-text`, `--slotted-listbox-text-muted`, `--slotted-radius-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
154
155
|
|
|
155
156
|
## Examples
|
|
156
157
|
|
package/docs/markdown.json
CHANGED
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"type": "string",
|
|
126
126
|
"defaultValue": "—",
|
|
127
127
|
"appliesTo": "[slMarkdown]",
|
|
128
|
-
"description": "The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, GFM tables, nested lists, code spans, strong, emphasis, links, escapes and hard breaks;
|
|
128
|
+
"description": "The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, GFM tables, nested lists, code spans, strong, emphasis, links, images (their URL through transformUrl), escapes and hard breaks; HTML, reference links and footnotes need an adapter"
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
"name": "size",
|
package/docs/markdown.md
CHANGED
|
@@ -45,7 +45,7 @@ Excerpt — not a complete module
|
|
|
45
45
|
| Name | Type | Default | Applies to | Description |
|
|
46
46
|
| --- | --- | --- | --- | --- |
|
|
47
47
|
| `tree` | `MarkdownNode \| null` | — | [slMarkdown] | The document in mdast; never HTML |
|
|
48
|
-
| `source` | `string` | — | [slMarkdown] | The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, GFM tables, nested lists, code spans, strong, emphasis, links, escapes and hard breaks;
|
|
48
|
+
| `source` | `string` | — | [slMarkdown] | The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, GFM tables, nested lists, code spans, strong, emphasis, links, images (their URL through transformUrl), escapes and hard breaks; HTML, reference links and footnotes need an adapter |
|
|
49
49
|
| `size` | `'md' \| 'lg' \| 'xl'` | lg | [slMarkdown] | The region’s type step, from prose |
|
|
50
50
|
| `flow` | `'tight' \| 'normal' \| 'loose'` | normal | [slMarkdown] | The space between blocks, from prose |
|
|
51
51
|
| `status` | `'ready' \| 'error'` | ready | [slMarkdown] | error replaces the document with the error part |
|
package/docs/message.json
CHANGED
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"actions",
|
|
82
82
|
"activity",
|
|
83
83
|
"activity-step",
|
|
84
|
+
"activity-step-icon",
|
|
84
85
|
"versions",
|
|
85
86
|
"version-previous",
|
|
86
87
|
"version-label",
|
|
@@ -133,7 +134,7 @@
|
|
|
133
134
|
"docs": {
|
|
134
135
|
"message": {
|
|
135
136
|
"imports": {
|
|
136
|
-
"source": "import { provideMessageDefaults, SlBubble, SlBubbleCaret, SlBubbleContent, SlBubbleMeta, SlBubbleQuote, SlBubbleReaction, SlBubbleReactions, SlBubbleRetry, SlBubbleStream, SlBubbleTyping, SlMessage, SlMessageActions, SlMessageActivity, SlMessageActivityStep, SlMessageAuthor, SlMessageAvatar, SlMessageBody, SlMessageFooter, SlMessageGroup, SlMessageHeader, SlMessageReceipt, SlMessageTime, SlMessageVersions } from '@slotted/angular/message';",
|
|
137
|
+
"source": "import { provideMessageDefaults, SlBubble, SlBubbleCaret, SlBubbleContent, SlBubbleMeta, SlBubbleQuote, SlBubbleReaction, SlBubbleReactions, SlBubbleRetry, SlBubbleStream, SlBubbleTyping, SlMessage, SlMessageActions, SlMessageActivity, SlMessageActivityStep, SlMessageActivityStepIcon, SlMessageAuthor, SlMessageAvatar, SlMessageBody, SlMessageFooter, SlMessageGroup, SlMessageHeader, SlMessageReceipt, SlMessageTime, SlMessageVersions } from '@slotted/angular/message';",
|
|
137
138
|
"selector": "[slMessage], [slMessageGroup], [slMessageAvatar], [slMessageBody], [slMessageHeader], [slMessageAuthor], time[slMessageTime], [slMessageFooter], [slMessageReceipt], [slMessageActions], [slMessageActivity], [slMessageActivityStep], [slMessageVersions], [slBubble], [slBubbleContent], [slBubbleMeta], [slBubbleQuote], [slBubbleCaret], [slBubbleTyping], button[slBubbleRetry], [slBubbleReactions], button[slBubbleReaction]",
|
|
138
139
|
"exportAs": "slMessage, slMessageGroup, slBubble"
|
|
139
140
|
},
|
|
@@ -210,6 +211,12 @@
|
|
|
210
211
|
"required": false,
|
|
211
212
|
"purpose": "One step of the activity: complete with a tick, current with the shared ring and a travelling band."
|
|
212
213
|
},
|
|
214
|
+
{
|
|
215
|
+
"part": "activity-step-icon",
|
|
216
|
+
"element": "span",
|
|
217
|
+
"required": false,
|
|
218
|
+
"purpose": "A tile before the words of a step, holding the icon of the step source: edged in the accent while the step is current, and holding the tick once it is complete."
|
|
219
|
+
},
|
|
213
220
|
{
|
|
214
221
|
"part": "versions",
|
|
215
222
|
"element": "div",
|
|
@@ -322,6 +329,13 @@
|
|
|
322
329
|
}
|
|
323
330
|
],
|
|
324
331
|
"composition": [
|
|
332
|
+
{
|
|
333
|
+
"name": "slMessageActivityStepIcon",
|
|
334
|
+
"type": "directive",
|
|
335
|
+
"defaultValue": "—",
|
|
336
|
+
"appliesTo": "an element inside slMessageActivityStep",
|
|
337
|
+
"description": "The icon of the step source, drawn in a tile before the words in place of the status mark. The tile is edged in the accent while the step is current and holds the tick once it is complete"
|
|
338
|
+
},
|
|
325
339
|
{
|
|
326
340
|
"name": "provideMessageDefaults",
|
|
327
341
|
"type": "{ layout, actionsVisibility, variant, tone }",
|
|
@@ -374,7 +388,7 @@
|
|
|
374
388
|
},
|
|
375
389
|
"bubble": {
|
|
376
390
|
"imports": {
|
|
377
|
-
"source": "import { provideMessageDefaults, SlBubble, SlBubbleCaret, SlBubbleContent, SlBubbleMeta, SlBubbleQuote, SlBubbleReaction, SlBubbleReactions, SlBubbleRetry, SlBubbleStream, SlBubbleTyping, SlMessage, SlMessageActions, SlMessageActivity, SlMessageActivityStep, SlMessageAuthor, SlMessageAvatar, SlMessageBody, SlMessageFooter, SlMessageGroup, SlMessageHeader, SlMessageReceipt, SlMessageTime, SlMessageVersions } from '@slotted/angular/message';",
|
|
391
|
+
"source": "import { provideMessageDefaults, SlBubble, SlBubbleCaret, SlBubbleContent, SlBubbleMeta, SlBubbleQuote, SlBubbleReaction, SlBubbleReactions, SlBubbleRetry, SlBubbleStream, SlBubbleTyping, SlMessage, SlMessageActions, SlMessageActivity, SlMessageActivityStep, SlMessageActivityStepIcon, SlMessageAuthor, SlMessageAvatar, SlMessageBody, SlMessageFooter, SlMessageGroup, SlMessageHeader, SlMessageReceipt, SlMessageTime, SlMessageVersions } from '@slotted/angular/message';",
|
|
378
392
|
"selector": "[slMessage], [slMessageGroup], [slMessageAvatar], [slMessageBody], [slMessageHeader], [slMessageAuthor], time[slMessageTime], [slMessageFooter], [slMessageReceipt], [slMessageActions], [slMessageActivity], [slMessageActivityStep], [slMessageVersions], [slBubble], [slBubbleContent], [slBubbleMeta], [slBubbleQuote], [slBubbleCaret], [slBubbleTyping], button[slBubbleRetry], [slBubbleReactions], button[slBubbleReaction]",
|
|
379
393
|
"exportAs": "slMessage, slMessageGroup, slBubble"
|
|
380
394
|
},
|
|
@@ -644,6 +658,7 @@
|
|
|
644
658
|
"--slotted-font-weight-semibold",
|
|
645
659
|
"--slotted-line-height-md",
|
|
646
660
|
"--slotted-line-height-xs",
|
|
661
|
+
"--slotted-message-activity-icon-size",
|
|
647
662
|
"--slotted-message-avatar-size",
|
|
648
663
|
"--slotted-message-bubble-padding-block",
|
|
649
664
|
"--slotted-message-bubble-padding-inline",
|
package/docs/message.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
## Import
|
|
7
7
|
|
|
8
8
|
```ts
|
|
9
|
-
import { provideMessageDefaults, SlBubble, SlBubbleCaret, SlBubbleContent, SlBubbleMeta, SlBubbleQuote, SlBubbleReaction, SlBubbleReactions, SlBubbleRetry, SlBubbleStream, SlBubbleTyping, SlMessage, SlMessageActions, SlMessageActivity, SlMessageActivityStep, SlMessageAuthor, SlMessageAvatar, SlMessageBody, SlMessageFooter, SlMessageGroup, SlMessageHeader, SlMessageReceipt, SlMessageTime, SlMessageVersions } from '@slotted/angular/message';
|
|
9
|
+
import { provideMessageDefaults, SlBubble, SlBubbleCaret, SlBubbleContent, SlBubbleMeta, SlBubbleQuote, SlBubbleReaction, SlBubbleReactions, SlBubbleRetry, SlBubbleStream, SlBubbleTyping, SlMessage, SlMessageActions, SlMessageActivity, SlMessageActivityStep, SlMessageActivityStepIcon, SlMessageAuthor, SlMessageAvatar, SlMessageBody, SlMessageFooter, SlMessageGroup, SlMessageHeader, SlMessageReceipt, SlMessageTime, SlMessageVersions } from '@slotted/angular/message';
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
Selector: `[slMessage], [slMessageGroup], [slMessageAvatar], [slMessageBody], [slMessageHeader], [slMessageAuthor], time[slMessageTime], [slMessageFooter], [slMessageReceipt], [slMessageActions], [slMessageActivity], [slMessageActivityStep], [slMessageVersions], [slBubble], [slBubbleContent], [slBubbleMeta], [slBubbleQuote], [slBubbleCaret], [slBubbleTyping], button[slBubbleRetry], [slBubbleReactions], button[slBubbleReaction]` · exportAs: `slMessage, slMessageGroup, slBubble`
|
|
@@ -45,6 +45,7 @@ Excerpt — not a complete module
|
|
|
45
45
|
| `actions` | div | no |
|
|
46
46
|
| `activity` | div | no |
|
|
47
47
|
| `activity-step` | div | no |
|
|
48
|
+
| `activity-step-icon` | span | no |
|
|
48
49
|
| `versions` | div | no |
|
|
49
50
|
| `version-previous` | button | no |
|
|
50
51
|
| `version-label` | span | no |
|
|
@@ -87,6 +88,7 @@ Excerpt — not a complete module
|
|
|
87
88
|
| `status` | `'complete' \| 'current' \| 'pending'` | current | slMessageActivityStep | Done with a tick, in progress with the ring, or waiting |
|
|
88
89
|
| `datetime` | `string` | — | time[slMessageTime] | The time element’s own machine-readable value |
|
|
89
90
|
| `exportAs` | `slMessage, slMessageGroup` | — | slMessage, slMessageGroup | The instance: version(), requestVersion() and the resolved layout |
|
|
91
|
+
| `slMessageActivityStepIcon` | `directive` | — | an element inside slMessageActivityStep | The icon of the step source, drawn in a tile before the words in place of the status mark. The tile is edged in the accent while the step is current and holds the tick once it is complete |
|
|
90
92
|
| `provideMessageDefaults` | `{ layout, actionsVisibility, variant, tone }` | — | providers | Sets them once; a group, a row or a bubble still wins |
|
|
91
93
|
| `aria-label` | `string` | — | slMessage | Written on the article, it replaces the author as the article’s name |
|
|
92
94
|
| `the page’s element` | `any` | — | every part | The page writes the element; the directive adds data-part and the wiring |
|
|
@@ -158,7 +160,7 @@ Excerpt — not a complete module
|
|
|
158
160
|
|
|
159
161
|
## Tokens
|
|
160
162
|
|
|
161
|
-
`--slotted-avatar-size-md`, `--slotted-avatar-size-sm`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-disabled-foreground`, `--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-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-xs`, `--slotted-message-avatar-size`, `--slotted-message-bubble-padding-block`, `--slotted-message-bubble-padding-inline`, `--slotted-message-bubble-radius`, `--slotted-message-bubble-radius-joined`, `--slotted-message-bubble-share`, `--slotted-message-column-gap`, `--slotted-message-retry-state-layer`, `--slotted-message-run-gap`, `--slotted-message-stack-gap`, `--slotted-message-state-layer-active`, `--slotted-message-state-layer-hover`, `--slotted-message-thread-avatar-size`, `--slotted-radius-full`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-sm`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-on-solid`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-info-border`, `--slotted-tone-info-on-solid`, `--slotted-tone-info-solid`, `--slotted-tone-info-surface`, `--slotted-tone-info-text`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-success-border`, `--slotted-tone-success-on-solid`, `--slotted-tone-success-solid`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-on-solid`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`
|
|
163
|
+
`--slotted-avatar-size-md`, `--slotted-avatar-size-sm`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-disabled-foreground`, `--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-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-xs`, `--slotted-message-activity-icon-size`, `--slotted-message-avatar-size`, `--slotted-message-bubble-padding-block`, `--slotted-message-bubble-padding-inline`, `--slotted-message-bubble-radius`, `--slotted-message-bubble-radius-joined`, `--slotted-message-bubble-share`, `--slotted-message-column-gap`, `--slotted-message-retry-state-layer`, `--slotted-message-run-gap`, `--slotted-message-stack-gap`, `--slotted-message-state-layer-active`, `--slotted-message-state-layer-hover`, `--slotted-message-thread-avatar-size`, `--slotted-radius-full`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-sm`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-on-solid`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-info-border`, `--slotted-tone-info-on-solid`, `--slotted-tone-info-solid`, `--slotted-tone-info-surface`, `--slotted-tone-info-text`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-success-border`, `--slotted-tone-success-on-solid`, `--slotted-tone-success-solid`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-on-solid`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`
|
|
162
164
|
|
|
163
165
|
## Examples
|
|
164
166
|
|
package/docs/meter.json
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
{
|
|
2
|
+
"family": "meter",
|
|
3
|
+
"ui": "meter",
|
|
4
|
+
"binding": "angular",
|
|
5
|
+
"catalog": {
|
|
6
|
+
"group": "Data display",
|
|
7
|
+
"summary": "A static value within a known range, drawn as a length."
|
|
8
|
+
},
|
|
9
|
+
"axes": {
|
|
10
|
+
"size": [
|
|
11
|
+
"sm",
|
|
12
|
+
"md",
|
|
13
|
+
"lg"
|
|
14
|
+
],
|
|
15
|
+
"tone": [
|
|
16
|
+
"accent",
|
|
17
|
+
"secondary",
|
|
18
|
+
"neutral",
|
|
19
|
+
"info",
|
|
20
|
+
"success",
|
|
21
|
+
"warning",
|
|
22
|
+
"danger"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"members": {
|
|
26
|
+
"meter": {
|
|
27
|
+
"nativeElement": "div",
|
|
28
|
+
"defaults": {
|
|
29
|
+
"min": 0,
|
|
30
|
+
"max": 100,
|
|
31
|
+
"size": "md",
|
|
32
|
+
"tone": "accent",
|
|
33
|
+
"decorative": false
|
|
34
|
+
},
|
|
35
|
+
"capabilities": [
|
|
36
|
+
"measurement",
|
|
37
|
+
"appearance",
|
|
38
|
+
"size",
|
|
39
|
+
"decorative"
|
|
40
|
+
],
|
|
41
|
+
"states": [
|
|
42
|
+
"default"
|
|
43
|
+
],
|
|
44
|
+
"parts": [
|
|
45
|
+
"root",
|
|
46
|
+
"track",
|
|
47
|
+
"indicator"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"docs": {
|
|
52
|
+
"meter": {
|
|
53
|
+
"imports": {
|
|
54
|
+
"source": "import { SlMeter, provideMeterDefaults } from '@slotted/angular/meter';",
|
|
55
|
+
"selector": "[slMeter]",
|
|
56
|
+
"exportAs": "slMeter"
|
|
57
|
+
},
|
|
58
|
+
"anatomy": [
|
|
59
|
+
{
|
|
60
|
+
"part": "root",
|
|
61
|
+
"element": "div",
|
|
62
|
+
"required": true,
|
|
63
|
+
"purpose": "role=\"meter\" with aria-valuenow, aria-valuemin, aria-valuemax and the share as aria-valuetext; no role and aria-hidden under decorative. Takes the whole inline size it is given, at least 4rem."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"part": "track",
|
|
67
|
+
"element": "span",
|
|
68
|
+
"required": true,
|
|
69
|
+
"purpose": "One continuous ground, with no gap and no end mark: a share goes nowhere."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"part": "indicator",
|
|
73
|
+
"element": "span",
|
|
74
|
+
"required": true,
|
|
75
|
+
"purpose": "The share, from the inline start, in the tone’s ink. Mirrors in a right-to-left document."
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"api": [
|
|
79
|
+
{
|
|
80
|
+
"name": "value",
|
|
81
|
+
"type": "number",
|
|
82
|
+
"defaultValue": "—",
|
|
83
|
+
"appliesTo": "slMeter",
|
|
84
|
+
"description": "The reading. A value outside the range is drawn at its end"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "min",
|
|
88
|
+
"type": "number",
|
|
89
|
+
"defaultValue": "0",
|
|
90
|
+
"appliesTo": "slMeter",
|
|
91
|
+
"description": "The start of the range"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "max",
|
|
95
|
+
"type": "number",
|
|
96
|
+
"defaultValue": "100",
|
|
97
|
+
"appliesTo": "slMeter",
|
|
98
|
+
"description": "The end of the range"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "low, high, optimum",
|
|
102
|
+
"type": "number",
|
|
103
|
+
"defaultValue": "—",
|
|
104
|
+
"appliesTo": "slMeter",
|
|
105
|
+
"description": "The marks that split the range into regions; with any of them the region the value falls in picks the tone"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "tone",
|
|
109
|
+
"type": "'accent' | 'secondary' | 'neutral' | 'info' | 'success' | 'warning' | 'danger'",
|
|
110
|
+
"defaultValue": "accent",
|
|
111
|
+
"appliesTo": "slMeter",
|
|
112
|
+
"description": "The ink of the indicator. Wins over the regions"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "size",
|
|
116
|
+
"type": "'sm' | 'md' | 'lg'",
|
|
117
|
+
"defaultValue": "md",
|
|
118
|
+
"appliesTo": "slMeter",
|
|
119
|
+
"description": "The thickness of the track"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "decorative",
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"defaultValue": "false",
|
|
125
|
+
"appliesTo": "slMeter",
|
|
126
|
+
"description": "No role and aria-hidden, for a meter beside words that state its value"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "valueText",
|
|
130
|
+
"type": "string",
|
|
131
|
+
"defaultValue": "—",
|
|
132
|
+
"appliesTo": "slMeter",
|
|
133
|
+
"description": "The whole aria-valuetext, replacing the share"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "formatOptions",
|
|
137
|
+
"type": "Intl.NumberFormatOptions",
|
|
138
|
+
"defaultValue": "{ style: 'percent' }",
|
|
139
|
+
"appliesTo": "slMeter",
|
|
140
|
+
"description": "How the share is written in aria-valuetext"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "locale",
|
|
144
|
+
"type": "string",
|
|
145
|
+
"defaultValue": "—",
|
|
146
|
+
"appliesTo": "slMeter",
|
|
147
|
+
"description": "The locale of the share; the language in force when absent"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "render",
|
|
151
|
+
"type": "(props: MeterRootProps) => ReactNode",
|
|
152
|
+
"defaultValue": "—",
|
|
153
|
+
"appliesTo": "slMeter",
|
|
154
|
+
"description": "Substitutes the root element"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "provideMeterDefaults",
|
|
158
|
+
"type": "MeterDefaults",
|
|
159
|
+
"defaultValue": "—",
|
|
160
|
+
"appliesTo": "Application",
|
|
161
|
+
"description": "Sets size and formatOptions once for everything below it; an input still wins"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"composition": [],
|
|
165
|
+
"events": [],
|
|
166
|
+
"accessibility": [
|
|
167
|
+
"The host carries role=\"meter\", the role the APG and the HTML meter element give a static value in a range. A progressbar announces a task under way, and a page that drew a share with one read as still loading to a screen reader and to a test that waits for no progressbar.",
|
|
168
|
+
"aria-valuenow, aria-valuemin and aria-valuemax state the reading; aria-valuetext states the share in the locale of the language in force, because 4380 out of 10000 is heard as 43.8% rather than as four thousand three hundred and eighty.",
|
|
169
|
+
"The meter needs a name: aria-label or aria-labelledby, written on the element the directive is on.",
|
|
170
|
+
"decorative removes the role and hides the root, for a meter whose value is written beside it: the reader hears the number once.",
|
|
171
|
+
"Color never carries the reading alone: the length is the value, and a tone is a second encoding on top of it. Under forced colors the track keeps a CanvasText outline and the indicator takes Highlight."
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"tokens": [
|
|
176
|
+
"--slotted-border-strong",
|
|
177
|
+
"--slotted-border-width-thin",
|
|
178
|
+
"--slotted-duration-medium",
|
|
179
|
+
"--slotted-easing-standard",
|
|
180
|
+
"--slotted-meter-indicator-color",
|
|
181
|
+
"--slotted-meter-min-inline-size",
|
|
182
|
+
"--slotted-meter-radius",
|
|
183
|
+
"--slotted-meter-thickness",
|
|
184
|
+
"--slotted-meter-track-color",
|
|
185
|
+
"--slotted-progress-indicator-indicator-color",
|
|
186
|
+
"--slotted-progress-indicator-track-color",
|
|
187
|
+
"--slotted-radius-full",
|
|
188
|
+
"--slotted-space-2",
|
|
189
|
+
"--slotted-space-3",
|
|
190
|
+
"--slotted-space-4",
|
|
191
|
+
"--slotted-surface",
|
|
192
|
+
"--slotted-tone-accent-text",
|
|
193
|
+
"--slotted-tone-danger-text",
|
|
194
|
+
"--slotted-tone-info-text",
|
|
195
|
+
"--slotted-tone-success-text",
|
|
196
|
+
"--slotted-tone-warning-text"
|
|
197
|
+
],
|
|
198
|
+
"examples": [
|
|
199
|
+
{
|
|
200
|
+
"id": "playground",
|
|
201
|
+
"title": "Playground",
|
|
202
|
+
"note": "One reading against its range: change the value, the range and the size, and inspect the root for the value text a screen reader hears.",
|
|
203
|
+
"language": "html",
|
|
204
|
+
"source": "<div slMeter aria-label=\"Share of the total\" [value]=\"41\"></div>\n",
|
|
205
|
+
"verdict": "excerpt"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"id": "tones",
|
|
209
|
+
"title": "What the reading means",
|
|
210
|
+
"note": "A tone paints the indicator in the tone’s ink over a ground mixed from the same ink, so a pale track never reads as a filled one. secondary and neutral take the strong border step.",
|
|
211
|
+
"language": "html",
|
|
212
|
+
"source": "<div slMeter aria-label=\"Budget used\" tone=\"warning\" [value]=\"82\"></div>\n<div slMeter aria-label=\"Quota left\" tone=\"success\" [value]=\"64\"></div>\n",
|
|
213
|
+
"verdict": "excerpt"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"id": "sizes",
|
|
217
|
+
"title": "Three thicknesses, and the length is the container’s",
|
|
218
|
+
"note": "sm is four pixels for a dense row, md six for a card, lg eight for a summary that leads a page. The length is always what the cell or the column gave, never less than 4rem.",
|
|
219
|
+
"language": "html",
|
|
220
|
+
"source": "<div slMeter aria-label=\"Storage\" size=\"sm\" [value]=\"72\"></div>\n<div slMeter aria-label=\"Storage\" size=\"lg\" [value]=\"72\"></div>\n",
|
|
221
|
+
"verdict": "excerpt"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"id": "regions",
|
|
225
|
+
"title": "Regions that pick the tone",
|
|
226
|
+
"note": "low, high and optimum split the range as the HTML meter element does: a disk with optimum at nought is success below 60%, warning up to 85% and danger past it. A stated tone wins.",
|
|
227
|
+
"language": "html",
|
|
228
|
+
"source": "<div slMeter aria-label=\"Disk usage\" [high]=\"85\" [low]=\"60\" [optimum]=\"0\" [value]=\"91\"></div>\n",
|
|
229
|
+
"verdict": "excerpt"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"id": "in-table",
|
|
233
|
+
"title": "A share column",
|
|
234
|
+
"note": "The meter’s home: a decorative bar in the column after the exact percentage, filling the cell of an auto-layout table, so a reader hears the number once and sees the proportion beside it.",
|
|
235
|
+
"language": "html",
|
|
236
|
+
"source": "<td slTableCell numeric>43.80%</td>\n<td slTableCell>\n <div slMeter decorative [max]=\"10000\" [value]=\"4380\"></div>\n</td>\n",
|
|
237
|
+
"verdict": "excerpt"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"id": "accessibility",
|
|
241
|
+
"title": "What a reader hears",
|
|
242
|
+
"note": "The root is a meter named by its aria-label, read as “Fixed income, meter, 43.8%”: the share in the locale of the language in force, or the valueText given in its place.",
|
|
243
|
+
"language": "html",
|
|
244
|
+
"source": "<div slMeter aria-label=\"Used storage\" [max]=\"5\" [value]=\"3\" valueText=\"3 of 5 GB\"></div>\n",
|
|
245
|
+
"verdict": "excerpt"
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
}
|
package/docs/meter.md
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<!-- index: ./index.md -->
|
|
2
|
+
# meter
|
|
3
|
+
|
|
4
|
+
`data-ui="meter"` · A static value within a known range, drawn as a length.
|
|
5
|
+
|
|
6
|
+
## Import
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
import { SlMeter, provideMeterDefaults } from '@slotted/angular/meter';
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Selector: `[slMeter]` · exportAs: `slMeter`
|
|
13
|
+
|
|
14
|
+
## Minimal example
|
|
15
|
+
|
|
16
|
+
Excerpt — not a complete module
|
|
17
|
+
|
|
18
|
+
```html
|
|
19
|
+
<div slMeter aria-label="Share of the total" [value]="41"></div>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Anatomy
|
|
23
|
+
|
|
24
|
+
| Part | Element | Required |
|
|
25
|
+
| --- | --- | --- |
|
|
26
|
+
| `root` | div | yes |
|
|
27
|
+
| `track` | span | yes |
|
|
28
|
+
| `indicator` | span | yes |
|
|
29
|
+
|
|
30
|
+
## Props
|
|
31
|
+
|
|
32
|
+
| Name | Type | Default | Applies to | Description |
|
|
33
|
+
| --- | --- | --- | --- | --- |
|
|
34
|
+
| `value` | `number` | — | slMeter | The reading. A value outside the range is drawn at its end |
|
|
35
|
+
| `min` | `number` | 0 | slMeter | The start of the range |
|
|
36
|
+
| `max` | `number` | 100 | slMeter | The end of the range |
|
|
37
|
+
| `low, high, optimum` | `number` | — | slMeter | The marks that split the range into regions; with any of them the region the value falls in picks the tone |
|
|
38
|
+
| `tone` | `'accent' \| 'secondary' \| 'neutral' \| 'info' \| 'success' \| 'warning' \| 'danger'` | accent | slMeter | The ink of the indicator. Wins over the regions |
|
|
39
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | md | slMeter | The thickness of the track |
|
|
40
|
+
| `decorative` | `boolean` | false | slMeter | No role and aria-hidden, for a meter beside words that state its value |
|
|
41
|
+
| `valueText` | `string` | — | slMeter | The whole aria-valuetext, replacing the share |
|
|
42
|
+
| `formatOptions` | `Intl.NumberFormatOptions` | { style: 'percent' } | slMeter | How the share is written in aria-valuetext |
|
|
43
|
+
| `locale` | `string` | — | slMeter | The locale of the share; the language in force when absent |
|
|
44
|
+
| `render` | `(props: MeterRootProps) => ReactNode` | — | slMeter | Substitutes the root element |
|
|
45
|
+
| `provideMeterDefaults` | `MeterDefaults` | — | Application | Sets size and formatOptions once for everything below it; an input still wins |
|
|
46
|
+
|
|
47
|
+
## Axes and defaults
|
|
48
|
+
|
|
49
|
+
| Axis | Values | Default |
|
|
50
|
+
| --- | --- | --- |
|
|
51
|
+
| `size` | `sm`, `md`, `lg` | `md` |
|
|
52
|
+
| `tone` | `accent`, `secondary`, `neutral`, `info`, `success`, `warning`, `danger` | `accent` |
|
|
53
|
+
|
|
54
|
+
## Rules
|
|
55
|
+
|
|
56
|
+
- The host carries role="meter", the role the APG and the HTML meter element give a static value in a range. A progressbar announces a task under way, and a page that drew a share with one read as still loading to a screen reader and to a test that waits for no progressbar.
|
|
57
|
+
- aria-valuenow, aria-valuemin and aria-valuemax state the reading; aria-valuetext states the share in the locale of the language in force, because 4380 out of 10000 is heard as 43.8% rather than as four thousand three hundred and eighty.
|
|
58
|
+
- The meter needs a name: aria-label or aria-labelledby, written on the element the directive is on.
|
|
59
|
+
- decorative removes the role and hides the root, for a meter whose value is written beside it: the reader hears the number once.
|
|
60
|
+
- Color never carries the reading alone: the length is the value, and a tone is a second encoding on top of it. Under forced colors the track keeps a CanvasText outline and the indicator takes Highlight.
|
|
61
|
+
|
|
62
|
+
## Tokens
|
|
63
|
+
|
|
64
|
+
`--slotted-border-strong`, `--slotted-border-width-thin`, `--slotted-duration-medium`, `--slotted-easing-standard`, `--slotted-meter-indicator-color`, `--slotted-meter-min-inline-size`, `--slotted-meter-radius`, `--slotted-meter-thickness`, `--slotted-meter-track-color`, `--slotted-progress-indicator-indicator-color`, `--slotted-progress-indicator-track-color`, `--slotted-radius-full`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`
|
|
65
|
+
|
|
66
|
+
## Examples
|
|
67
|
+
|
|
68
|
+
### What the reading means
|
|
69
|
+
|
|
70
|
+
A tone paints the indicator in the tone’s ink over a ground mixed from the same ink, so a pale track never reads as a filled one. secondary and neutral take the strong border step.
|
|
71
|
+
|
|
72
|
+
Excerpt — not a complete module
|
|
73
|
+
|
|
74
|
+
```html
|
|
75
|
+
<div slMeter aria-label="Budget used" tone="warning" [value]="82"></div>
|
|
76
|
+
<div slMeter aria-label="Quota left" tone="success" [value]="64"></div>
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Three thicknesses, and the length is the container’s
|
|
80
|
+
|
|
81
|
+
sm is four pixels for a dense row, md six for a card, lg eight for a summary that leads a page. The length is always what the cell or the column gave, never less than 4rem.
|
|
82
|
+
|
|
83
|
+
Excerpt — not a complete module
|
|
84
|
+
|
|
85
|
+
```html
|
|
86
|
+
<div slMeter aria-label="Storage" size="sm" [value]="72"></div>
|
|
87
|
+
<div slMeter aria-label="Storage" size="lg" [value]="72"></div>
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Regions that pick the tone
|
|
91
|
+
|
|
92
|
+
low, high and optimum split the range as the HTML meter element does: a disk with optimum at nought is success below 60%, warning up to 85% and danger past it. A stated tone wins.
|
|
93
|
+
|
|
94
|
+
Excerpt — not a complete module
|
|
95
|
+
|
|
96
|
+
```html
|
|
97
|
+
<div slMeter aria-label="Disk usage" [high]="85" [low]="60" [optimum]="0" [value]="91"></div>
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### A share column
|
|
101
|
+
|
|
102
|
+
The meter’s home: a decorative bar in the column after the exact percentage, filling the cell of an auto-layout table, so a reader hears the number once and sees the proportion beside it.
|
|
103
|
+
|
|
104
|
+
Excerpt — not a complete module
|
|
105
|
+
|
|
106
|
+
```html
|
|
107
|
+
<td slTableCell numeric>43.80%</td>
|
|
108
|
+
<td slTableCell>
|
|
109
|
+
<div slMeter decorative [max]="10000" [value]="4380"></div>
|
|
110
|
+
</td>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### What a reader hears
|
|
114
|
+
|
|
115
|
+
The root is a meter named by its aria-label, read as “Fixed income, meter, 43.8%”: the share in the locale of the language in force, or the valueText given in its place.
|
|
116
|
+
|
|
117
|
+
Excerpt — not a complete module
|
|
118
|
+
|
|
119
|
+
```html
|
|
120
|
+
<div slMeter aria-label="Used storage" [max]="5" [value]="3" valueText="3 of 5 GB"></div>
|
|
121
|
+
```
|