@slotted/angular 0.1.0-beta.34 → 0.1.0-beta.36
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 +59 -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 +3 -1
- package/docs/command-palette.md +1 -1
- package/docs/dashboard-grid.json +13 -4
- package/docs/dashboard-grid.md +3 -2
- package/docs/description-list.json +9 -1
- package/docs/description-list.md +2 -1
- package/docs/entity-picker.json +4 -2
- package/docs/entity-picker.md +2 -2
- package/docs/field-group.json +1 -1
- package/docs/field-group.md +1 -1
- package/docs/floating-panel.json +203 -0
- package/docs/floating-panel.md +97 -0
- package/docs/guidelines/index.md +2 -0
- package/docs/guidelines/own-elements.md +20 -0
- 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 +14 -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/prompt-composer.json +1 -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/skills/build-own-element/SKILL.md +42 -2
- package/docs/slider.json +8 -0
- package/docs/slider.md +2 -1
- package/docs/sparkline.json +1 -1
- package/docs/sparkline.md +1 -1
- 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 +13 -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 +87 -23
- 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-entity-picker.mjs +14 -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-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-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-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 +53 -6
- package/fesm2022/slotted-angular-page.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-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-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 +76 -15
- 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-tooltip.mjs +2 -2
- package/fesm2022/slotted-angular-tooltip.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-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 +57 -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 +45 -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-prompt-composer.d.ts +2 -0
- package/types/slotted-angular-prompt-composer.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-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/chart.md
CHANGED
|
@@ -78,11 +78,12 @@ Excerpt — not a complete module
|
|
|
78
78
|
| `data` | `readonly ChartRecord[]` | [] | slChart | One record per category or per point. Fields are named by x and by each series |
|
|
79
79
|
| `series` | `readonly ChartSeries[]` | [] | slChart | What is drawn: kind (line, area, bar, pie, scatter, range), field, label, and how. Order is legend order and color order |
|
|
80
80
|
| `x` | `ChartXAxis` | — | slChart | The category field, and its type (category, time, value), label, format and extent |
|
|
81
|
-
| `y` | `ChartYAxis \| [ChartYAxis, ChartYAxis]` | — | slChart | The value axis, or the start and end axes: label, format, scale, extent |
|
|
81
|
+
| `y` | `ChartYAxis \| [ChartYAxis, ChartYAxis]` | — | slChart | The value axis, or the start and end axes: label, format, scale, extent, labelWidth |
|
|
82
82
|
| `min` | `number` | — | x, y | The lowest value the axis must hold. The data widens the extent, never narrows it |
|
|
83
83
|
| `max` | `number` | — | x, y | The highest value the axis must hold |
|
|
84
84
|
| `scale` | `'linear' \| 'log'` | linear | y | A logarithmic value axis |
|
|
85
85
|
| `extent` | `'zero' \| 'data'` | zero with a bar or stacked series, else data | y | What the axis holds besides the data: zero, for a bar, or the data alone, for a line |
|
|
86
|
+
| `labelWidth` | `number` | — | y | The pixels the axis labels take beside an upright plot. Two charts stacked on the same categories with one width start their plots at one place; a longer label is cut with an ellipsis |
|
|
86
87
|
| `orientation` | `'vertical' \| 'horizontal'` | vertical | slChart | Which way categories run. Horizontal bars for a ranking with long names |
|
|
87
88
|
| `stackMode` | `'normal' \| 'percent'` | normal | slChart | How series that share a stack add up: to a total, or to 100 % |
|
|
88
89
|
| `curve` | `'linear' \| 'monotone' \| 'step'` | linear | series | How a line or an area passes through its points |
|
|
@@ -114,13 +115,15 @@ Excerpt — not a complete module
|
|
|
114
115
|
| `tooltip` | `ChartTooltipSettings` | — | slChart | sort, total and indicator for the default tooltip |
|
|
115
116
|
| `indicator` | `'dot' \| 'line' \| 'none'` | dot | tooltip | The mark beside each tooltip row |
|
|
116
117
|
| `sort` | `'none' \| 'asc' \| 'desc'` | none | tooltip | Tooltip rows in series order, or by value |
|
|
117
|
-
| `zoomable` | `boolean` | false | slChart |
|
|
118
|
+
| `zoomable` | `boolean` | false | slChart | Ctrl+wheel and + − 0 zoom the x axis; a drag pans a zoomed chart, Shift and a drag with rangeSelectable |
|
|
118
119
|
| `selectable` | `boolean` | false | slChart | A click or Enter selects a point |
|
|
120
|
+
| `rangeSelectable` | `boolean` | false | slChart | A drag, or Shift and an arrow, selects a span of the x axis, drawn as a band; a click clears it |
|
|
119
121
|
| `loading` | `boolean` | false | slChart | The skeleton of the kind being loaded, in the plot’s box |
|
|
120
122
|
| `error` | `boolean` | false | slChart | The data did not arrive |
|
|
121
123
|
| `hidden` | `model<readonly string[]>` | [] | slChart | The series ids the legend hides; bind [(hidden)] to own it |
|
|
122
124
|
| `activePoint` | `model<ChartPoint \| null>` | null | slChart | The point being read; bind [(activePoint)] to share it between charts |
|
|
123
125
|
| `selection` | `model<ChartPoint \| null>` | null | slChart | The selected point |
|
|
126
|
+
| `range` | `model<ChartRange \| null>` | null | slChart | The selected span, by the keys of its two ends in axis order |
|
|
124
127
|
| `zoom` | `model<ChartZoom>` | { start: 0, end: 1 } | slChart | The visible fraction of the x domain |
|
|
125
128
|
| `tableOpen` | `model<boolean>` | false | slChart | Whether the plot shows the table |
|
|
126
129
|
| `fullscreen` | `model<boolean>` | false | slChart | Whether the chart has the screen |
|
|
@@ -143,7 +146,8 @@ Excerpt — not a complete module
|
|
|
143
146
|
| `hiddenChange, hiddenChangeRequest` | `readonly string[], ChangeRequest<readonly string[]>` | The request before a series is hidden or shown from the legend, from “Show all”, or isolated with Shift; the model change after it commits. Reasons: pointer, keyboard, programmatic. cancel() refuses it. |
|
|
144
147
|
| `activePointChange, activePointChangeRequest` | `ChartPoint \| null, ChangeRequest<ChartPoint \| null>` | When the pointer or the arrows reach a point, and when it leaves: pointer, keyboard, blur, escape. The value two charts share to move together. |
|
|
145
148
|
| `selectionChange, selectionChangeRequest` | `ChartPoint \| null, ChangeRequest<ChartPoint \| null>` | With selectable, on a click or Enter on a point, and on Escape: pointer, keyboard, escape, programmatic. |
|
|
146
|
-
| `
|
|
149
|
+
| `rangeChange, rangeChangeRequest` | `ChartRange \| null, ChangeRequest<ChartRange \| null>` | With rangeSelectable, at each point a drag reaches, on Shift and an arrow, on a click without a drag and on Escape: pointer, keyboard, escape, programmatic. |
|
|
150
|
+
| `zoomChange, zoomChangeRequest` | `ChartZoom, ChangeRequest<ChartZoom>` | With zoomable, on a wheel with Ctrl, + or −, 0, the reset control or a drag that pans a zoomed chart: pointer, keyboard, clear, escape, programmatic. |
|
|
147
151
|
| `tableOpenChange, tableOpenChangeRequest` | `boolean, ChangeRequest<boolean>` | Before the plot switches between the drawing and the table: pointer, keyboard, escape, programmatic. |
|
|
148
152
|
| `fullscreenChange, fullscreenChangeRequest` | `boolean, ChangeRequest<boolean>` | Before the chart takes or gives back the screen, and when the browser leaves full screen on its own: pointer, keyboard, escape, programmatic. |
|
|
149
153
|
| `retry` | `void` | On the retry action of the error state. |
|
|
@@ -177,7 +181,7 @@ Excerpt — not a complete module
|
|
|
177
181
|
## Rules
|
|
178
182
|
|
|
179
183
|
- The figure is named by its caption, and the plot is one tab stop with role="group", aria-roledescription="chart", the title as its name and a generated summary as its description: kind, series, points, and the range, minimum and maximum of each series.
|
|
180
|
-
- Inside the plot the keyboard follows an adaptation of the APG Grid pattern: Left and Right move along the categories, Up and Down between series, Home and End to the ends, Page keys by a tenth; Enter selects, + − and 0 zoom, Escape clears. The tooltip is aria-hidden, and a polite live region says the point reached — only the last one, so holding an arrow does not queue twelve sentences.
|
|
184
|
+
- Inside the plot the keyboard follows an adaptation of the APG Grid pattern: Left and Right move along the categories, Up and Down between series, Home and End to the ends, Page keys by a tenth; Enter selects, Shift with Left or Right extends a range, + − and 0 zoom, Escape clears. The tooltip is aria-hidden, and a polite live region says the point reached — only the last one, so holding an arrow does not queue twelve sentences.
|
|
181
185
|
- The legend is a toolbar of toggle buttons with a roving tab stop: aria-pressed says whether a series is drawn, Enter hides it, Shift+Enter shows it alone, and the live region confirms the change.
|
|
182
186
|
- Every chart has a table view with the same numbers in their formats, reachable from the toolbar or the menu; it is the complete reading for anyone the drawing does not serve.
|
|
183
187
|
- Color is never the only channel: series differ in stroke and marker shape, texture adds a pattern per slot, and under forced colors the drawing is redrawn in system colors with the legend markers kept by mask.
|
|
@@ -185,7 +189,7 @@ Excerpt — not a complete module
|
|
|
185
189
|
|
|
186
190
|
## Tokens
|
|
187
191
|
|
|
188
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-chart-area-opacity`, `--slotted-chart-axis-color`, `--slotted-chart-band-color`, `--slotted-chart-bar-radius`, `--slotted-chart-card-padding-block`, `--slotted-chart-card-padding-inline`, `--slotted-chart-card-radius`, `--slotted-chart-color-1`, `--slotted-chart-color-2`, `--slotted-chart-color-3`, `--slotted-chart-color-4`, `--slotted-chart-color-5`, `--slotted-chart-color-6`, `--slotted-chart-color-7`, `--slotted-chart-color-8`, `--slotted-chart-crosshair-color`, `--slotted-chart-focus-color`, `--slotted-chart-gap`, `--slotted-chart-grid-color`, `--slotted-chart-inset`, `--slotted-chart-label-color`, `--slotted-chart-label-size`, `--slotted-chart-line-width`, `--slotted-chart-marker-size`, `--slotted-chart-overlay-backdrop-filter`, `--slotted-chart-plot-block-size`, `--slotted-chart-plot-block-size-lg`, `--slotted-chart-plot-block-size-sm`, `--slotted-chart-radius`, `--slotted-chart-reference-color`, `--slotted-chart-sequential-color`, `--slotted-chart-skeleton-hole`, `--slotted-chart-surface`, `--slotted-chart-table-header-surface`, `--slotted-chart-table-surface`, `--slotted-chart-tooltip-surface`, `--slotted-control-border-color`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-sm`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-data-1`, `--slotted-data-2`, `--slotted-data-3`, `--slotted-data-4`, `--slotted-data-5`, `--slotted-data-6`, `--slotted-data-7`, `--slotted-data-8`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-2xl`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-z-index-overlay`, `--slotted-z-index-popover`
|
|
192
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-chart-area-opacity`, `--slotted-chart-axis-color`, `--slotted-chart-band-color`, `--slotted-chart-bar-radius`, `--slotted-chart-card-padding-block`, `--slotted-chart-card-padding-inline`, `--slotted-chart-card-radius`, `--slotted-chart-color-1`, `--slotted-chart-color-2`, `--slotted-chart-color-3`, `--slotted-chart-color-4`, `--slotted-chart-color-5`, `--slotted-chart-color-6`, `--slotted-chart-color-7`, `--slotted-chart-color-8`, `--slotted-chart-crosshair-color`, `--slotted-chart-focus-color`, `--slotted-chart-gap`, `--slotted-chart-grid-color`, `--slotted-chart-header-gap`, `--slotted-chart-inset`, `--slotted-chart-label-color`, `--slotted-chart-label-size`, `--slotted-chart-line-width`, `--slotted-chart-marker-size`, `--slotted-chart-overlay-backdrop-filter`, `--slotted-chart-plot-block-size`, `--slotted-chart-plot-block-size-lg`, `--slotted-chart-plot-block-size-sm`, `--slotted-chart-radius`, `--slotted-chart-reference-color`, `--slotted-chart-sequential-color`, `--slotted-chart-skeleton-hole`, `--slotted-chart-surface`, `--slotted-chart-table-header-surface`, `--slotted-chart-table-surface`, `--slotted-chart-tooltip-surface`, `--slotted-control-border-color`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-sm`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-data-1`, `--slotted-data-2`, `--slotted-data-3`, `--slotted-data-4`, `--slotted-data-5`, `--slotted-data-6`, `--slotted-data-7`, `--slotted-data-8`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-2xl`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-z-index-overlay`, `--slotted-z-index-popover`
|
|
189
193
|
|
|
190
194
|
## Examples
|
|
191
195
|
|
package/docs/checkbox.json
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
],
|
|
15
15
|
"variant": [
|
|
16
16
|
"plain",
|
|
17
|
-
"tile"
|
|
17
|
+
"tile",
|
|
18
|
+
"control"
|
|
18
19
|
],
|
|
19
20
|
"labelPlacement": [
|
|
20
21
|
"end",
|
|
@@ -139,10 +140,10 @@
|
|
|
139
140
|
},
|
|
140
141
|
{
|
|
141
142
|
"name": "variant",
|
|
142
|
-
"type": "'plain' | 'tile'",
|
|
143
|
+
"type": "'plain' | 'tile' | 'control'",
|
|
143
144
|
"defaultValue": "plain",
|
|
144
145
|
"appliesTo": "SlCheckbox, provideCheckboxDefaults",
|
|
145
|
-
"description": "How the choice is drawn. tile frames it and makes the whole surface the target; the label still names the control, so the keyboard and the accessible name are unchanged. When unset, the box takes the variant of its checkbox group, then of the provided defaults."
|
|
146
|
+
"description": "How the choice is drawn. tile frames it and makes the whole surface the target; the label still names the control, so the keyboard and the accessible name are unchanged. control is for a row of fields and buttons: the root is one control tall and holds the hover halo inside its own box, where the plain halo stands outside the root and is shorter than a control. When unset, the box takes the variant of its checkbox group, then of the provided defaults."
|
|
146
147
|
},
|
|
147
148
|
{
|
|
148
149
|
"name": "labelPlacement",
|
|
@@ -309,6 +310,9 @@
|
|
|
309
310
|
"--slotted-control-font-size-lg",
|
|
310
311
|
"--slotted-control-font-size-md",
|
|
311
312
|
"--slotted-control-font-size-sm",
|
|
313
|
+
"--slotted-control-height-lg",
|
|
314
|
+
"--slotted-control-height-md",
|
|
315
|
+
"--slotted-control-height-sm",
|
|
312
316
|
"--slotted-control-invalid-edge-width",
|
|
313
317
|
"--slotted-control-label-gap-lg",
|
|
314
318
|
"--slotted-control-label-gap-md",
|
|
@@ -316,6 +320,7 @@
|
|
|
316
320
|
"--slotted-control-padding-inline-lg",
|
|
317
321
|
"--slotted-control-padding-inline-md",
|
|
318
322
|
"--slotted-control-padding-inline-sm",
|
|
323
|
+
"--slotted-control-radius",
|
|
319
324
|
"--slotted-control-shadow",
|
|
320
325
|
"--slotted-control-transition-duration",
|
|
321
326
|
"--slotted-control-transition-easing",
|
package/docs/checkbox.md
CHANGED
|
@@ -57,7 +57,7 @@ export class CheckboxBasic {}
|
|
|
57
57
|
| `indeterminate` | `boolean` | false | SlCheckbox | The mixed state, drawn as a dash and announced as mixed. It is a state, not a third value of checked: the submitted value stays boolean, because indeterminate is a DOM property that leaves checked unchanged. |
|
|
58
58
|
| `parent` | `boolean` | false | SlCheckbox | Makes the box command the set its checkbox group lists in allValues. It is checked when every value is selected and mixed when some are, and a press selects or clears the whole set. Outside a group with allValues it has no effect. |
|
|
59
59
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | SlCheckbox, provideCheckboxDefaults | The step of the control scale. When unset, the box takes the size of its checkbox group, then of its field or field group, then of the provided defaults. The theme restates the scale per density. |
|
|
60
|
-
| `variant` | `'plain' \| 'tile'` | plain | SlCheckbox, provideCheckboxDefaults | How the choice is drawn. tile frames it and makes the whole surface the target; the label still names the control, so the keyboard and the accessible name are unchanged. When unset, the box takes the variant of its checkbox group, then of the provided defaults. |
|
|
60
|
+
| `variant` | `'plain' \| 'tile' \| 'control'` | plain | SlCheckbox, provideCheckboxDefaults | How the choice is drawn. tile frames it and makes the whole surface the target; the label still names the control, so the keyboard and the accessible name are unchanged. control is for a row of fields and buttons: the root is one control tall and holds the hover halo inside its own box, where the plain halo stands outside the root and is shorter than a control. When unset, the box takes the variant of its checkbox group, then of the provided defaults. |
|
|
61
61
|
| `labelPlacement` | `'end' \| 'start'` | end | SlCheckbox, provideCheckboxDefaults | Which side of its label the box sits on. When unset, the box takes the placement of its checkbox group, then of the provided defaults. It is never read from a field, whose labelPlacement places the field’s own label. |
|
|
62
62
|
| `disabled` | `boolean` | from the form control, group or field, or false | SlCheckbox | Unset rather than false, so the box follows a disabled form control, then its checkbox group or field. Written to the input as the native attribute, which removes the box from the tab order and from form submission. |
|
|
63
63
|
| `readOnly` | `boolean` | from the group or field, or false | SlCheckbox | Unset rather than false. A native checkbox has no readonly, so SlCheckbox refuses every change and writes aria-readonly. The box keeps its tab stop, its focus ring and its contrast, and its value is still submitted. |
|
|
@@ -83,7 +83,7 @@ export class CheckboxBasic {}
|
|
|
83
83
|
| Axis | Values | Default |
|
|
84
84
|
| --- | --- | --- |
|
|
85
85
|
| `size` | `sm`, `md`, `lg` | `md` |
|
|
86
|
-
| `variant` | `plain`, `tile` | `plain` |
|
|
86
|
+
| `variant` | `plain`, `tile`, `control` | `plain` |
|
|
87
87
|
| `labelPlacement` | `end`, `start` | `end` |
|
|
88
88
|
|
|
89
89
|
## Rules
|
|
@@ -98,7 +98,7 @@ export class CheckboxBasic {}
|
|
|
98
98
|
|
|
99
99
|
## Tokens
|
|
100
100
|
|
|
101
|
-
`--slotted-border-strong`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-checkbox-active-background`, `--slotted-checkbox-background`, `--slotted-checkbox-border-color`, `--slotted-checkbox-border-width`, `--slotted-checkbox-checked-active-background`, `--slotted-checkbox-checked-background`, `--slotted-checkbox-checked-border-color`, `--slotted-checkbox-checked-hover-background`, `--slotted-checkbox-color`, `--slotted-checkbox-description-color`, `--slotted-checkbox-description-font-size`, `--slotted-checkbox-disabled-background`, `--slotted-checkbox-disabled-border-color`, `--slotted-checkbox-disabled-color`, `--slotted-checkbox-disabled-mark-color`, `--slotted-checkbox-halo-color`, `--slotted-checkbox-hover-border-color`, `--slotted-checkbox-invalid-border-color`, `--slotted-checkbox-invalid-checked-background`, `--slotted-checkbox-invalid-edge-width`, `--slotted-checkbox-invalid-focus-ring-color`, `--slotted-checkbox-line-height`, `--slotted-checkbox-mark-color`, `--slotted-checkbox-mark-inset`, `--slotted-checkbox-radius`, `--slotted-checkbox-readonly-background`, `--slotted-checkbox-size`, `--slotted-checkbox-tile-active-background`, `--slotted-checkbox-tile-background`, `--slotted-checkbox-tile-border-color`, `--slotted-checkbox-tile-checked-background`, `--slotted-checkbox-tile-checked-border-color`, `--slotted-checkbox-tile-checked-hover-border-color`, `--slotted-checkbox-tile-description-gap`, `--slotted-checkbox-tile-disabled-background`, `--slotted-checkbox-tile-disabled-border-color`, `--slotted-checkbox-tile-hover-background`, `--slotted-checkbox-tile-hover-border-color`, `--slotted-checkbox-tile-inset`, `--slotted-checkbox-tile-invalid-border-color`, `--slotted-checkbox-tile-invalid-checked-background`, `--slotted-checkbox-tile-invalid-checked-border-color`, `--slotted-checkbox-tile-radius`, `--slotted-checkbox-tile-readonly-background`, `--slotted-checkbox-tile-readonly-border-color`, `--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-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-radius-md`, `--slotted-radius-xs`, `--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-on-solid`, `--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`
|
|
101
|
+
`--slotted-border-strong`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-checkbox-active-background`, `--slotted-checkbox-background`, `--slotted-checkbox-border-color`, `--slotted-checkbox-border-width`, `--slotted-checkbox-checked-active-background`, `--slotted-checkbox-checked-background`, `--slotted-checkbox-checked-border-color`, `--slotted-checkbox-checked-hover-background`, `--slotted-checkbox-color`, `--slotted-checkbox-description-color`, `--slotted-checkbox-description-font-size`, `--slotted-checkbox-disabled-background`, `--slotted-checkbox-disabled-border-color`, `--slotted-checkbox-disabled-color`, `--slotted-checkbox-disabled-mark-color`, `--slotted-checkbox-halo-color`, `--slotted-checkbox-hover-border-color`, `--slotted-checkbox-invalid-border-color`, `--slotted-checkbox-invalid-checked-background`, `--slotted-checkbox-invalid-edge-width`, `--slotted-checkbox-invalid-focus-ring-color`, `--slotted-checkbox-line-height`, `--slotted-checkbox-mark-color`, `--slotted-checkbox-mark-inset`, `--slotted-checkbox-radius`, `--slotted-checkbox-readonly-background`, `--slotted-checkbox-size`, `--slotted-checkbox-tile-active-background`, `--slotted-checkbox-tile-background`, `--slotted-checkbox-tile-border-color`, `--slotted-checkbox-tile-checked-background`, `--slotted-checkbox-tile-checked-border-color`, `--slotted-checkbox-tile-checked-hover-border-color`, `--slotted-checkbox-tile-description-gap`, `--slotted-checkbox-tile-disabled-background`, `--slotted-checkbox-tile-disabled-border-color`, `--slotted-checkbox-tile-hover-background`, `--slotted-checkbox-tile-hover-border-color`, `--slotted-checkbox-tile-inset`, `--slotted-checkbox-tile-invalid-border-color`, `--slotted-checkbox-tile-invalid-checked-background`, `--slotted-checkbox-tile-invalid-checked-border-color`, `--slotted-checkbox-tile-radius`, `--slotted-checkbox-tile-readonly-background`, `--slotted-checkbox-tile-readonly-border-color`, `--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-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-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-radius`, `--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-radius-md`, `--slotted-radius-xs`, `--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-on-solid`, `--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`
|
|
102
102
|
|
|
103
103
|
## Examples
|
|
104
104
|
|
package/docs/collapsible.json
CHANGED
|
@@ -80,10 +80,12 @@
|
|
|
80
80
|
"trigger",
|
|
81
81
|
"indicator",
|
|
82
82
|
"label",
|
|
83
|
+
"summary",
|
|
83
84
|
"description",
|
|
84
85
|
"actions",
|
|
85
86
|
"panel",
|
|
86
|
-
"content"
|
|
87
|
+
"content",
|
|
88
|
+
"more"
|
|
87
89
|
]
|
|
88
90
|
}
|
|
89
91
|
},
|
|
@@ -125,6 +127,12 @@
|
|
|
125
127
|
"required": true,
|
|
126
128
|
"purpose": "The title, holding whatever the trigger projects. A box of its own, so text-overflow has something to clip under truncate and so a title in another script reads its own way."
|
|
127
129
|
},
|
|
130
|
+
{
|
|
131
|
+
"part": "summary",
|
|
132
|
+
"element": "span",
|
|
133
|
+
"required": false,
|
|
134
|
+
"purpose": "What the disclosure holds, at the end of the title line and before the mark: one line, cut with an ellipsis, in the description ink. It is inside the trigger, so it is part of the accessible name."
|
|
135
|
+
},
|
|
128
136
|
{
|
|
129
137
|
"part": "description",
|
|
130
138
|
"element": "span",
|
|
@@ -148,6 +156,12 @@
|
|
|
148
156
|
"element": "div",
|
|
149
157
|
"required": true,
|
|
150
158
|
"purpose": "What the panel’s grid track clips. Its content-visibility takes closed content out of the tab sequence, out of the accessibility tree and out of the browser’s page search. mount decides whether it is built at all, and an ng-template[slCollapsibleContent] inside it is what makes lazy actually lazy."
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"part": "more",
|
|
162
|
+
"element": "button",
|
|
163
|
+
"required": false,
|
|
164
|
+
"purpose": "The control a peeking panel draws over its fade, present only while the panel is closed and peek is set: it opens the panel and names it through aria-controls, as the header trigger does."
|
|
151
165
|
}
|
|
152
166
|
],
|
|
153
167
|
"api": [
|
|
@@ -200,6 +214,13 @@
|
|
|
200
214
|
"appliesTo": "slCollapsible, slAccordion, provideCollapsibleDefaults",
|
|
201
215
|
"description": "When the panel’s content exists. The box always does, so aria-controls never names an element that is gone. lazy needs an ng-template[slCollapsibleContent], because projected content is built whether or not it is inserted"
|
|
202
216
|
},
|
|
217
|
+
{
|
|
218
|
+
"name": "peek",
|
|
219
|
+
"type": "string",
|
|
220
|
+
"defaultValue": "—",
|
|
221
|
+
"appliesTo": "slCollapsible, provideCollapsibleDefaults",
|
|
222
|
+
"description": "A length (9rem): a closed panel keeps that block size of its content in view under a fade, stays inert, and animates to its full size with the same durations; forced colors drop the fade and keep the clip. The panel carries data-state=\"peek\", and mount is forced to eager"
|
|
223
|
+
},
|
|
203
224
|
{
|
|
204
225
|
"name": "truncate",
|
|
205
226
|
"type": "boolean",
|
|
@@ -235,6 +256,13 @@
|
|
|
235
256
|
"appliesTo": "slCollapsible",
|
|
236
257
|
"description": "What this disclosure is called inside an slAccordion. It is identity rather than state, and it reaches the DOM as data-value"
|
|
237
258
|
},
|
|
259
|
+
{
|
|
260
|
+
"name": "summary",
|
|
261
|
+
"type": "string",
|
|
262
|
+
"defaultValue": "—",
|
|
263
|
+
"appliesTo": "slCollapsibleTrigger",
|
|
264
|
+
"description": "What the disclosure holds, at the end of the title line and before the mark, cut with an ellipsis; inside the trigger and therefore inside its accessible name"
|
|
265
|
+
},
|
|
238
266
|
{
|
|
239
267
|
"name": "description",
|
|
240
268
|
"type": "string",
|
|
@@ -305,6 +333,7 @@
|
|
|
305
333
|
"--slotted-border-width-thin",
|
|
306
334
|
"--slotted-collapsible-active-background",
|
|
307
335
|
"--slotted-collapsible-background",
|
|
336
|
+
"--slotted-collapsible-border-color",
|
|
308
337
|
"--slotted-collapsible-color",
|
|
309
338
|
"--slotted-collapsible-description-color",
|
|
310
339
|
"--slotted-collapsible-hover-background",
|
|
@@ -313,8 +342,10 @@
|
|
|
313
342
|
"--slotted-collapsible-padding-inline",
|
|
314
343
|
"--slotted-collapsible-panel-color",
|
|
315
344
|
"--slotted-collapsible-panel-padding-block-start",
|
|
345
|
+
"--slotted-collapsible-peek-fade",
|
|
316
346
|
"--slotted-collapsible-radius",
|
|
317
347
|
"--slotted-collapsible-rule-color",
|
|
348
|
+
"--slotted-collapsible-shadow",
|
|
318
349
|
"--slotted-collapsible-surface",
|
|
319
350
|
"--slotted-control-font-family",
|
|
320
351
|
"--slotted-control-gap-lg",
|
|
@@ -330,6 +361,7 @@
|
|
|
330
361
|
"--slotted-control-padding-inline-lg",
|
|
331
362
|
"--slotted-control-padding-inline-md",
|
|
332
363
|
"--slotted-control-padding-inline-sm",
|
|
364
|
+
"--slotted-control-radius",
|
|
333
365
|
"--slotted-control-transition-duration",
|
|
334
366
|
"--slotted-control-transition-easing",
|
|
335
367
|
"--slotted-disabled-foreground",
|
package/docs/collapsible.md
CHANGED
|
@@ -33,10 +33,12 @@ Excerpt — not a complete module
|
|
|
33
33
|
| `trigger` | button[slCollapsibleTrigger] | yes |
|
|
34
34
|
| `indicator` | span | no |
|
|
35
35
|
| `label` | span | yes |
|
|
36
|
+
| `summary` | span | no |
|
|
36
37
|
| `description` | span | no |
|
|
37
38
|
| `actions` | the element carrying slCollapsibleActions | no |
|
|
38
39
|
| `panel` | the element carrying slCollapsiblePanel | yes |
|
|
39
40
|
| `content` | div | yes |
|
|
41
|
+
| `more` | button | no |
|
|
40
42
|
|
|
41
43
|
## Props
|
|
42
44
|
|
|
@@ -49,11 +51,13 @@ Excerpt — not a complete module
|
|
|
49
51
|
| `togglePlacement` | `'end' \| 'start'` | end | slCollapsible, slAccordion, provideCollapsibleDefaults | Which side of the words the mark stands on. With it at the start the panel’s content is indented to line up with the title rather than with the mark |
|
|
50
52
|
| `level` | `'none' \| '1' \| '2' \| '3' \| '4' \| '5' \| '6'` | none | slCollapsible, provideCollapsibleDefaults | The heading level the header answers to. A native heading element is left alone; anything else is given role="heading" and this level. none writes no heading semantics at all |
|
|
51
53
|
| `mount` | `'active' \| 'lazy' \| 'eager' \| 'until-found'` | eager | slCollapsible, slAccordion, provideCollapsibleDefaults | When the panel’s content exists. The box always does, so aria-controls never names an element that is gone. lazy needs an ng-template[slCollapsibleContent], because projected content is built whether or not it is inserted |
|
|
54
|
+
| `peek` | `string` | — | slCollapsible, provideCollapsibleDefaults | A length (9rem): a closed panel keeps that block size of its content in view under a fade, stays inert, and animates to its full size with the same durations; forced colors drop the fade and keep the clip. The panel carries data-state="peek", and mount is forced to eager |
|
|
52
55
|
| `truncate` | `boolean` | false | slCollapsible, slAccordion, provideCollapsibleDefaults | Clips the title to one line instead of letting the row grow. The whole string stays in the DOM, which the library decided once for every family |
|
|
53
56
|
| `region` | `boolean` | false | slCollapsible | Makes the panel a region landmark. Off by default, because the pattern’s own example warns that a landmark per panel fills the landmark list |
|
|
54
57
|
| `disabled` | `boolean` | false | slCollapsible | Reaches the trigger as the native attribute, which is also what stops the press. Unstated rather than false, so the disclosure defers to the slAccordion around it |
|
|
55
58
|
| `loading` | `boolean` | false | slCollapsible | The panel keeps a line’s height and carries aria-busy; what stands in for the content is slSkeleton, composed by the consumer |
|
|
56
59
|
| `value` | `string` | from SlCollapsibleIdFactory | slCollapsible | What this disclosure is called inside an slAccordion. It is identity rather than state, and it reaches the DOM as data-value |
|
|
60
|
+
| `summary` | `string` | — | slCollapsibleTrigger | What the disclosure holds, at the end of the title line and before the mark, cut with an ellipsis; inside the trigger and therefore inside its accessible name |
|
|
57
61
|
| `description` | `string` | — | slCollapsibleTrigger | A second line under the title, inside the trigger and therefore inside its accessible name |
|
|
58
62
|
| `exportAs` | `'slCollapsible' \| 'slCollapsibleHeader' \| 'slCollapsibleTrigger' \| 'slCollapsiblePanel'` | — | every part | Reaches the instance from the template: #panel="slCollapsible" gives isOpen(), toggle(next, reason) and the resolved axes without a component class in between |
|
|
59
63
|
| `slCollapsibleContent` | `ng-template` | — | inside slCollapsiblePanel | Content built the first time the panel opens. ng-content is instantiated whether or not it is inserted, so lazy needs a template — which is Angular Material’s own matExpansionPanelContent |
|
|
@@ -90,7 +94,7 @@ Excerpt — not a complete module
|
|
|
90
94
|
|
|
91
95
|
## Tokens
|
|
92
96
|
|
|
93
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-collapsible-active-background`, `--slotted-collapsible-background`, `--slotted-collapsible-color`, `--slotted-collapsible-description-color`, `--slotted-collapsible-hover-background`, `--slotted-collapsible-hover-color`, `--slotted-collapsible-indicator-color`, `--slotted-collapsible-padding-inline`, `--slotted-collapsible-panel-color`, `--slotted-collapsible-panel-padding-block-start`, `--slotted-collapsible-radius`, `--slotted-collapsible-rule-color`, `--slotted-collapsible-surface`, `--slotted-control-font-family`, `--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-letter-spacing`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
97
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-collapsible-active-background`, `--slotted-collapsible-background`, `--slotted-collapsible-border-color`, `--slotted-collapsible-color`, `--slotted-collapsible-description-color`, `--slotted-collapsible-hover-background`, `--slotted-collapsible-hover-color`, `--slotted-collapsible-indicator-color`, `--slotted-collapsible-padding-inline`, `--slotted-collapsible-panel-color`, `--slotted-collapsible-panel-padding-block-start`, `--slotted-collapsible-peek-fade`, `--slotted-collapsible-radius`, `--slotted-collapsible-rule-color`, `--slotted-collapsible-shadow`, `--slotted-collapsible-surface`, `--slotted-control-font-family`, `--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-letter-spacing`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
94
98
|
|
|
95
99
|
## Examples
|
|
96
100
|
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
"part": "group-label",
|
|
204
204
|
"element": "div",
|
|
205
205
|
"required": false,
|
|
206
|
-
"purpose": "The heading of a group."
|
|
206
|
+
"purpose": "The heading of a group. It carries data-stuck while rows pass under it. Where the engine times an animation by the scroll, the rows end at the label and it paints no ground of its own, so a material panel stays whole; elsewhere it paints --slotted-command-palette-group-label-stuck-surface, the panel surface by default, with --slotted-command-palette-group-label-stuck-backdrop-filter, the panel filter by default."
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
"part": "item",
|
|
@@ -568,6 +568,8 @@
|
|
|
568
568
|
"--slotted-command-palette-border-color",
|
|
569
569
|
"--slotted-command-palette-footer-surface",
|
|
570
570
|
"--slotted-command-palette-group-label-height",
|
|
571
|
+
"--slotted-command-palette-group-label-stuck-backdrop-filter",
|
|
572
|
+
"--slotted-command-palette-group-label-stuck-surface",
|
|
571
573
|
"--slotted-command-palette-highlight",
|
|
572
574
|
"--slotted-command-palette-highlight-ring",
|
|
573
575
|
"--slotted-command-palette-hover",
|
package/docs/command-palette.md
CHANGED
|
@@ -131,7 +131,7 @@ Excerpt — not a complete module
|
|
|
131
131
|
|
|
132
132
|
## Tokens
|
|
133
133
|
|
|
134
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-command-palette-active`, `--slotted-command-palette-backdrop-filter`, `--slotted-command-palette-border-color`, `--slotted-command-palette-footer-surface`, `--slotted-command-palette-group-label-height`, `--slotted-command-palette-highlight`, `--slotted-command-palette-highlight-ring`, `--slotted-command-palette-hover`, `--slotted-command-palette-item-radius`, `--slotted-command-palette-list-max-block-size`, `--slotted-command-palette-list-padding`, `--slotted-command-palette-measure`, `--slotted-command-palette-page-surface`, `--slotted-command-palette-placeholder-fade`, `--slotted-command-palette-radius`, `--slotted-command-palette-separator-color`, `--slotted-command-palette-shadow`, `--slotted-command-palette-surface`, `--slotted-command-palette-text`, `--slotted-command-palette-text-muted`, `--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-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-shadow-lg`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
134
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-command-palette-active`, `--slotted-command-palette-backdrop-filter`, `--slotted-command-palette-border-color`, `--slotted-command-palette-footer-surface`, `--slotted-command-palette-group-label-height`, `--slotted-command-palette-group-label-stuck-backdrop-filter`, `--slotted-command-palette-group-label-stuck-surface`, `--slotted-command-palette-highlight`, `--slotted-command-palette-highlight-ring`, `--slotted-command-palette-hover`, `--slotted-command-palette-item-radius`, `--slotted-command-palette-list-max-block-size`, `--slotted-command-palette-list-padding`, `--slotted-command-palette-measure`, `--slotted-command-palette-page-surface`, `--slotted-command-palette-placeholder-fade`, `--slotted-command-palette-radius`, `--slotted-command-palette-separator-color`, `--slotted-command-palette-shadow`, `--slotted-command-palette-surface`, `--slotted-command-palette-text`, `--slotted-command-palette-text-muted`, `--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-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-shadow-lg`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
135
135
|
|
|
136
136
|
## Examples
|
|
137
137
|
|
package/docs/dashboard-grid.json
CHANGED
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
"title",
|
|
78
78
|
"title-row",
|
|
79
79
|
"help",
|
|
80
|
+
"help-note",
|
|
80
81
|
"description",
|
|
81
82
|
"detail",
|
|
82
83
|
"handle",
|
|
@@ -175,7 +176,13 @@
|
|
|
175
176
|
"part": "help",
|
|
176
177
|
"element": "button, a Popover trigger",
|
|
177
178
|
"required": false,
|
|
178
|
-
"purpose": "The information control after the title, named “About {title}”; opens the note, and Escape closes it and returns focus. Present with help."
|
|
179
|
+
"purpose": "The information control after the title, one line of the title tall and muted, named “About {title}”; opens the note, and Escape closes it and returns focus. Present with help."
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"part": "help-note",
|
|
183
|
+
"element": "div, inside the popover body",
|
|
184
|
+
"required": false,
|
|
185
|
+
"purpose": "The note the help control opens. The popover that holds it takes --slotted-dashboard-grid-help-measure (20rem) as its width. Present with help."
|
|
179
186
|
},
|
|
180
187
|
{
|
|
181
188
|
"part": "description",
|
|
@@ -527,10 +534,10 @@
|
|
|
527
534
|
},
|
|
528
535
|
{
|
|
529
536
|
"name": "persistedDashboardLayout",
|
|
530
|
-
"type": "({ key, storage?, defaultLayout?, injector? }) => { layout, defaultLayout, clear }",
|
|
537
|
+
"type": "({ key, storage?, defaultLayout?, injector?, subscribe? }) => { layout, defaultLayout, clear }",
|
|
531
538
|
"defaultValue": "localStorage",
|
|
532
539
|
"appliesTo": "an injection context",
|
|
533
|
-
"description": "A signal read
|
|
540
|
+
"description": "A signal read from the store at creation, and again each time subscribe calls back (a server copy written to the store later), and written after every change; bind it with [(layout)], and its defaultLayout to [defaultLayout], which Reset asks for"
|
|
534
541
|
}
|
|
535
542
|
],
|
|
536
543
|
"composition": [],
|
|
@@ -592,6 +599,7 @@
|
|
|
592
599
|
"--slotted-dashboard-grid-handle-glyph-size",
|
|
593
600
|
"--slotted-dashboard-grid-handle-inline-size",
|
|
594
601
|
"--slotted-dashboard-grid-handle-inline-size-coarse",
|
|
602
|
+
"--slotted-dashboard-grid-help-measure",
|
|
595
603
|
"--slotted-dashboard-grid-lattice-color",
|
|
596
604
|
"--slotted-dashboard-grid-lattice-dot",
|
|
597
605
|
"--slotted-dashboard-grid-resize-hit",
|
|
@@ -636,7 +644,8 @@
|
|
|
636
644
|
"--slotted-text",
|
|
637
645
|
"--slotted-text-muted",
|
|
638
646
|
"--slotted-tone-accent-on-solid",
|
|
639
|
-
"--slotted-tone-accent-solid"
|
|
647
|
+
"--slotted-tone-accent-solid",
|
|
648
|
+
"--slotted-tone-secondary-subtle-hover"
|
|
640
649
|
],
|
|
641
650
|
"examples": [
|
|
642
651
|
{
|
package/docs/dashboard-grid.md
CHANGED
|
@@ -52,6 +52,7 @@ Excerpt — not a complete module
|
|
|
52
52
|
| `title` | h2 to h6 | yes |
|
|
53
53
|
| `title-row` | div | no |
|
|
54
54
|
| `help` | button, a Popover trigger | no |
|
|
55
|
+
| `help-note` | div, inside the popover body | no |
|
|
55
56
|
| `description` | p | no |
|
|
56
57
|
| `detail` | a, or button[slIconButton] | no |
|
|
57
58
|
| `handle` | button[slMenuTriggerFor] | no |
|
|
@@ -108,7 +109,7 @@ Excerpt — not a complete module
|
|
|
108
109
|
| `fill / size` | `CardFill / CardSize` | outline / md | sl-dashboard-widget | The card’s own axes |
|
|
109
110
|
| `content` | `projected content` | — | sl-dashboard-widget | The body; kept in a template and drawn by the grid inside its own li and card, in the layout’s order |
|
|
110
111
|
| `provideDashboardGridDefaults` | `{ columns, editBar, headingLevel }` | — | providers | The decisions an application takes once; an instance that states any of them wins. The words come from the language in force (provideSlotted) |
|
|
111
|
-
| `persistedDashboardLayout` | `({ key, storage?, defaultLayout?, injector? }) => { layout, defaultLayout, clear }` | localStorage | an injection context | A signal read
|
|
112
|
+
| `persistedDashboardLayout` | `({ key, storage?, defaultLayout?, injector?, subscribe? }) => { layout, defaultLayout, clear }` | localStorage | an injection context | A signal read from the store at creation, and again each time subscribe calls back (a server copy written to the store later), and written after every change; bind it with [(layout)], and its defaultLayout to [defaultLayout], which Reset asks for |
|
|
112
113
|
|
|
113
114
|
## Events
|
|
114
115
|
|
|
@@ -139,7 +140,7 @@ Excerpt — not a complete module
|
|
|
139
140
|
|
|
140
141
|
## Tokens
|
|
141
142
|
|
|
142
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-card-radius`, `--slotted-control-border-color`, `--slotted-control-height-sm`, `--slotted-control-shadow`, `--slotted-control-surface`, `--slotted-dashboard-grid-accent`, `--slotted-dashboard-grid-description-color`, `--slotted-dashboard-grid-edit-bar-background`, `--slotted-dashboard-grid-edit-bar-border`, `--slotted-dashboard-grid-gap`, `--slotted-dashboard-grid-handle-block-size`, `--slotted-dashboard-grid-handle-block-size-coarse`, `--slotted-dashboard-grid-handle-glyph-size`, `--slotted-dashboard-grid-handle-inline-size`, `--slotted-dashboard-grid-handle-inline-size-coarse`, `--slotted-dashboard-grid-lattice-color`, `--slotted-dashboard-grid-lattice-dot`, `--slotted-dashboard-grid-resize-hit`, `--slotted-dashboard-grid-resize-pill`, `--slotted-dashboard-grid-resize-pill-active`, `--slotted-dashboard-grid-row-size`, `--slotted-dashboard-grid-title-color`, `--slotted-dashboard-grid-title-font-family`, `--slotted-dashboard-grid-title-font-size`, `--slotted-duration-loop-slow`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-shadow-lg`, `--slotted-shadow-md`, `--slotted-shadow-sm`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-12`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`
|
|
143
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-card-radius`, `--slotted-control-border-color`, `--slotted-control-height-sm`, `--slotted-control-shadow`, `--slotted-control-surface`, `--slotted-dashboard-grid-accent`, `--slotted-dashboard-grid-description-color`, `--slotted-dashboard-grid-edit-bar-background`, `--slotted-dashboard-grid-edit-bar-border`, `--slotted-dashboard-grid-gap`, `--slotted-dashboard-grid-handle-block-size`, `--slotted-dashboard-grid-handle-block-size-coarse`, `--slotted-dashboard-grid-handle-glyph-size`, `--slotted-dashboard-grid-handle-inline-size`, `--slotted-dashboard-grid-handle-inline-size-coarse`, `--slotted-dashboard-grid-help-measure`, `--slotted-dashboard-grid-lattice-color`, `--slotted-dashboard-grid-lattice-dot`, `--slotted-dashboard-grid-resize-hit`, `--slotted-dashboard-grid-resize-pill`, `--slotted-dashboard-grid-resize-pill-active`, `--slotted-dashboard-grid-row-size`, `--slotted-dashboard-grid-title-color`, `--slotted-dashboard-grid-title-font-family`, `--slotted-dashboard-grid-title-font-size`, `--slotted-duration-loop-slow`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-shadow-lg`, `--slotted-shadow-md`, `--slotted-shadow-sm`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-12`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-secondary-subtle-hover`
|
|
143
144
|
|
|
144
145
|
## Examples
|
|
145
146
|
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"variant": "plain",
|
|
32
32
|
"termWidth": "14rem",
|
|
33
33
|
"minColumnWidth": "md",
|
|
34
|
+
"valueAlign": "start",
|
|
34
35
|
"span": 1,
|
|
35
36
|
"clamp": 0,
|
|
36
37
|
"copy": false,
|
|
@@ -178,6 +179,13 @@
|
|
|
178
179
|
"appliesTo": "slDescriptionList",
|
|
179
180
|
"description": "The maximum width of the term column, as a length (not a percentage); the terms share one track sized to the widest of them, up to this. A row list narrower than this width plus --slotted-description-list-value-min (12rem) stacks each term over its value"
|
|
180
181
|
},
|
|
182
|
+
{
|
|
183
|
+
"name": "valueAlign",
|
|
184
|
+
"type": "'start' | 'end'",
|
|
185
|
+
"defaultValue": "start",
|
|
186
|
+
"appliesTo": "DescriptionList",
|
|
187
|
+
"description": "Where a value sits in a row list: after the term, or ended at the row so values compared down the list end on one line. A stacked list, and a row list folded to a stack, keep the value at the start"
|
|
188
|
+
},
|
|
181
189
|
{
|
|
182
190
|
"name": "messages",
|
|
183
191
|
"type": "PartialMessages<DescriptionListMessages>",
|
|
@@ -262,7 +270,7 @@
|
|
|
262
270
|
"type": "DescriptionListDefaults",
|
|
263
271
|
"defaultValue": "—",
|
|
264
272
|
"appliesTo": "Application",
|
|
265
|
-
"description": "Sets layout, columns, variant, termWidth and
|
|
273
|
+
"description": "Sets layout, columns, variant, termWidth, minColumnWidth and valueAlign once for everything below it; an input on the list still wins"
|
|
266
274
|
},
|
|
267
275
|
{
|
|
268
276
|
"name": "id / aria-describedby",
|
package/docs/description-list.md
CHANGED
|
@@ -57,6 +57,7 @@ Excerpt — not a complete module
|
|
|
57
57
|
| `variant` | `'plain' \| 'ruled' \| 'framed'` | plain | slDescriptionList | Nothing between pairs, a rule between them, or a framed table |
|
|
58
58
|
| `minColumnWidth` | `'sm' \| 'md'` | md | slDescriptionList | The narrowest column before the count folds: md holds two columns to 34rem of the list and three to 48rem; sm holds two to 25rem and three to 37.5rem |
|
|
59
59
|
| `termWidth` | `string` | 14rem | slDescriptionList | The maximum width of the term column, as a length (not a percentage); the terms share one track sized to the widest of them, up to this. A row list narrower than this width plus --slotted-description-list-value-min (12rem) stacks each term over its value |
|
|
60
|
+
| `valueAlign` | `'start' \| 'end'` | start | DescriptionList | Where a value sits in a row list: after the term, or ended at the row so values compared down the list end on one line. A stacked list, and a row list folded to a stack, keep the value at the start |
|
|
60
61
|
| `messages` | `PartialMessages<DescriptionListMessages>` | — | slDescriptionList | Words laid over the language in force, key by key: copy, copied, copyBlocked, reveal, collapse, placeholder |
|
|
61
62
|
| `span` | `1 \| 2 \| 3` | 1 | slDescriptionListItem | How many columns the pair takes, clamped to the count the list has |
|
|
62
63
|
| `clamp` | `number` | 0 | slDescriptionListDescription | Lines the value is held to before it is revealed; 0 never clamps |
|
|
@@ -68,7 +69,7 @@ Excerpt — not a complete module
|
|
|
68
69
|
| `defaultRevealed` | `boolean` | false | slDescriptionListDescription | What an uncontrolled description starts from, read once |
|
|
69
70
|
| `ng-content` | `projection` | — | slDescriptionList, slDescriptionListDescription | Pairs are projected into the dl the component draws, and a value into the span that holds it |
|
|
70
71
|
| `exportAs` | `string` | — | every directive | Reaches the instance from the template: slDescriptionList, slDescriptionListItem, slDescriptionListTerm, slDescriptionListHint, slDescriptionListDescription, slDescriptionListAction |
|
|
71
|
-
| `provideDescriptionListDefaults()` | `DescriptionListDefaults` | — | Application | Sets layout, columns, variant, termWidth and
|
|
72
|
+
| `provideDescriptionListDefaults()` | `DescriptionListDefaults` | — | Application | Sets layout, columns, variant, termWidth, minColumnWidth and valueAlign once for everything below it; an input on the list still wins |
|
|
72
73
|
| `id / aria-describedby` | `string` | — | slDescriptionListTerm, slDescriptionListAction | A static attribute you wrote survives the host binding: the term keeps your id, and the action composes your description with the term’s |
|
|
73
74
|
| `content` | `projection` | — | slDescriptionListDescription | A tag, a status indicator, a link or a skeleton — the value slot takes what the row needs |
|
|
74
75
|
|
package/docs/entity-picker.json
CHANGED
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
"part": "group-label",
|
|
276
276
|
"element": "div",
|
|
277
277
|
"required": false,
|
|
278
|
-
"purpose": "The heading of a group, drawn only when more than one group shows."
|
|
278
|
+
"purpose": "The heading of a group, drawn only when more than one group shows. It carries data-stuck while rows pass under it. Where the engine times an animation by the scroll, the rows end at the label and it paints no ground of its own, so a material panel stays whole; elsewhere it paints --slotted-entity-picker-group-label-stuck-surface, the panel surface by default, with --slotted-entity-picker-group-label-stuck-backdrop-filter, the panel filter by default."
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
281
|
"part": "item",
|
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
"type": "boolean",
|
|
553
553
|
"defaultValue": "true",
|
|
554
554
|
"appliesTo": "sl-entity-picker",
|
|
555
|
-
"description": "false keeps the layer in
|
|
555
|
+
"description": "false keeps the layer in the DOM of the picker, where the nearest ancestor with overflow clips it. Inside another layer (Popover, Dialog) keep the default: a choice in the portalled list is not an outside press of the parent layer"
|
|
556
556
|
},
|
|
557
557
|
{
|
|
558
558
|
"name": "fullWidth",
|
|
@@ -757,6 +757,8 @@
|
|
|
757
757
|
"--slotted-entity-picker-field-basis",
|
|
758
758
|
"--slotted-entity-picker-field-min",
|
|
759
759
|
"--slotted-entity-picker-group-label-height",
|
|
760
|
+
"--slotted-entity-picker-group-label-stuck-backdrop-filter",
|
|
761
|
+
"--slotted-entity-picker-group-label-stuck-surface",
|
|
760
762
|
"--slotted-entity-picker-highlight",
|
|
761
763
|
"--slotted-entity-picker-highlight-active",
|
|
762
764
|
"--slotted-entity-picker-highlight-ring",
|
package/docs/entity-picker.md
CHANGED
|
@@ -89,7 +89,7 @@ Excerpt — not a complete module
|
|
|
89
89
|
| `clearable` | `boolean` | true | sl-entity-picker | Draws the clear button |
|
|
90
90
|
| `loop` | `boolean` | false | sl-entity-picker | The arrows wrap |
|
|
91
91
|
| `highlightMatch` | `boolean` | true | sl-entity-picker | Marks the span the query found |
|
|
92
|
-
| `portal` | `boolean` | true | sl-entity-picker | false keeps the layer in
|
|
92
|
+
| `portal` | `boolean` | true | sl-entity-picker | false keeps the layer in the DOM of the picker, where the nearest ancestor with overflow clips it. Inside another layer (Popover, Dialog) keep the default: a choice in the portalled list is not an outside press of the parent layer |
|
|
93
93
|
| `fullWidth` | `boolean` | true | sl-entity-picker | false sizes the root to its content |
|
|
94
94
|
| `disabled` | `boolean` | false | sl-entity-picker | Also from a field or a form control |
|
|
95
95
|
| `readOnly` | `boolean` | false | sl-entity-picker | Keeps the text, withholds the popup |
|
|
@@ -149,7 +149,7 @@ Excerpt — not a complete module
|
|
|
149
149
|
|
|
150
150
|
## Tokens
|
|
151
151
|
|
|
152
|
-
`--slotted-avatar-size-md`, `--slotted-avatar-size-sm`, `--slotted-avatar-size-xs`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--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-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-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-entity-picker-action-active-background`, `--slotted-entity-picker-action-color`, `--slotted-entity-picker-action-hover-background`, `--slotted-entity-picker-action-size`, `--slotted-entity-picker-autofill-background`, `--slotted-entity-picker-background`, `--slotted-entity-picker-border-color`, `--slotted-entity-picker-color`, `--slotted-entity-picker-content-backdrop-filter`, `--slotted-entity-picker-content-border-color`, `--slotted-entity-picker-content-radius`, `--slotted-entity-picker-content-shadow`, `--slotted-entity-picker-content-text`, `--slotted-entity-picker-content-text-muted`, `--slotted-entity-picker-disabled-background`, `--slotted-entity-picker-disabled-border-color`, `--slotted-entity-picker-disabled-color`, `--slotted-entity-picker-error-color`, `--slotted-entity-picker-field-basis`, `--slotted-entity-picker-field-min`, `--slotted-entity-picker-group-label-height`, `--slotted-entity-picker-highlight`, `--slotted-entity-picker-highlight-active`, `--slotted-entity-picker-highlight-ring`, `--slotted-entity-picker-hover-border-color`, `--slotted-entity-picker-icon-size-min`, `--slotted-entity-picker-invalid-border-color`, `--slotted-entity-picker-invalid-edge-width`, `--slotted-entity-picker-invalid-focus-ring-color`, `--slotted-entity-picker-item-radius`, `--slotted-entity-picker-measure`, `--slotted-entity-picker-meta-measure`, `--slotted-entity-picker-offer-color`, `--slotted-entity-picker-open-border-color`, `--slotted-entity-picker-placeholder-color`, `--slotted-entity-picker-plain-hover-background`, `--slotted-entity-picker-radius`, `--slotted-entity-picker-readonly-background`, `--slotted-entity-picker-scope-inline-size`, `--slotted-entity-picker-selected-color`, `--slotted-entity-picker-shadow`, `--slotted-entity-picker-subtle-background`, `--slotted-entity-picker-subtle-border-color`, `--slotted-entity-picker-subtle-hover-background`, `--slotted-entity-picker-surface`, `--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-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-overlay-max-block-size`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
152
|
+
`--slotted-avatar-size-md`, `--slotted-avatar-size-sm`, `--slotted-avatar-size-xs`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--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-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-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-entity-picker-action-active-background`, `--slotted-entity-picker-action-color`, `--slotted-entity-picker-action-hover-background`, `--slotted-entity-picker-action-size`, `--slotted-entity-picker-autofill-background`, `--slotted-entity-picker-background`, `--slotted-entity-picker-border-color`, `--slotted-entity-picker-color`, `--slotted-entity-picker-content-backdrop-filter`, `--slotted-entity-picker-content-border-color`, `--slotted-entity-picker-content-radius`, `--slotted-entity-picker-content-shadow`, `--slotted-entity-picker-content-text`, `--slotted-entity-picker-content-text-muted`, `--slotted-entity-picker-disabled-background`, `--slotted-entity-picker-disabled-border-color`, `--slotted-entity-picker-disabled-color`, `--slotted-entity-picker-error-color`, `--slotted-entity-picker-field-basis`, `--slotted-entity-picker-field-min`, `--slotted-entity-picker-group-label-height`, `--slotted-entity-picker-group-label-stuck-backdrop-filter`, `--slotted-entity-picker-group-label-stuck-surface`, `--slotted-entity-picker-highlight`, `--slotted-entity-picker-highlight-active`, `--slotted-entity-picker-highlight-ring`, `--slotted-entity-picker-hover-border-color`, `--slotted-entity-picker-icon-size-min`, `--slotted-entity-picker-invalid-border-color`, `--slotted-entity-picker-invalid-edge-width`, `--slotted-entity-picker-invalid-focus-ring-color`, `--slotted-entity-picker-item-radius`, `--slotted-entity-picker-measure`, `--slotted-entity-picker-meta-measure`, `--slotted-entity-picker-offer-color`, `--slotted-entity-picker-open-border-color`, `--slotted-entity-picker-placeholder-color`, `--slotted-entity-picker-plain-hover-background`, `--slotted-entity-picker-radius`, `--slotted-entity-picker-readonly-background`, `--slotted-entity-picker-scope-inline-size`, `--slotted-entity-picker-selected-color`, `--slotted-entity-picker-shadow`, `--slotted-entity-picker-subtle-background`, `--slotted-entity-picker-subtle-border-color`, `--slotted-entity-picker-subtle-hover-background`, `--slotted-entity-picker-surface`, `--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-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-overlay-max-block-size`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
153
153
|
|
|
154
154
|
## Examples
|
|
155
155
|
|
package/docs/field-group.json
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"type": "'sm' | 'md' | 'lg'",
|
|
102
102
|
"defaultValue": "md",
|
|
103
103
|
"appliesTo": "slFieldGroup",
|
|
104
|
-
"description": "The type step of the legend, and the step provided to every field inside. The legend
|
|
104
|
+
"description": "The type step of the legend, and the step provided to every field inside. The legend of a question takes the type of a field label; the legend of a section stands one step above the labels under it, so a group in a dense table shrinks with them"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"name": "orientation",
|
package/docs/field-group.md
CHANGED
|
@@ -44,7 +44,7 @@ Excerpt — not a complete module
|
|
|
44
44
|
|
|
45
45
|
| Name | Type | Default | Applies to | Description |
|
|
46
46
|
| --- | --- | --- | --- | --- |
|
|
47
|
-
| `size` | `'sm' \| 'md' \| 'lg'` | md | slFieldGroup | The type step of the legend, and the step provided to every field inside. The legend
|
|
47
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | md | slFieldGroup | The type step of the legend, and the step provided to every field inside. The legend of a question takes the type of a field label; the legend of a section stands one step above the labels under it, so a group in a dense table shrinks with them |
|
|
48
48
|
| `orientation` | `'vertical' \| 'horizontal'` | vertical | slFieldGroup | How the fields inside flow. A row wraps rather than squeezing, so a field keeps enough width to hold what is being typed into it |
|
|
49
49
|
| `necessity` | `'mark' \| 'optional' \| 'words' \| 'none'` | mark | slFieldGroup | How the set’s necessity is said on its legend — an asterisk, (optional) on an optional set only, both words, or nothing — and the style provided to every field inside |
|
|
50
50
|
| `kind` | `'question' \| 'section'` | question | slFieldGroup | A section names a topic rather than asking something, so its legend draws no necessity, its fields keep the style the application set, and its first field stands --slotted-field-group-section-content-gap (1.25rem) below the legend; a question's choices stand --slotted-field-group-content-gap (the field row gap) below it |
|