@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/accordion.json
CHANGED
|
@@ -239,9 +239,11 @@
|
|
|
239
239
|
}
|
|
240
240
|
},
|
|
241
241
|
"tokens": [
|
|
242
|
+
"--slotted-accordion-border-color",
|
|
242
243
|
"--slotted-accordion-gap",
|
|
243
244
|
"--slotted-accordion-radius",
|
|
244
245
|
"--slotted-accordion-rule-color",
|
|
246
|
+
"--slotted-accordion-shadow",
|
|
245
247
|
"--slotted-accordion-surface",
|
|
246
248
|
"--slotted-border-subtle",
|
|
247
249
|
"--slotted-border-width-thin",
|
package/docs/accordion.md
CHANGED
|
@@ -86,7 +86,7 @@ Excerpt — not a complete module
|
|
|
86
86
|
|
|
87
87
|
## Tokens
|
|
88
88
|
|
|
89
|
-
`--slotted-accordion-gap`, `--slotted-accordion-radius`, `--slotted-accordion-rule-color`, `--slotted-accordion-surface`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-disabled-foreground`, `--slotted-radius-md`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface-raised`
|
|
89
|
+
`--slotted-accordion-border-color`, `--slotted-accordion-gap`, `--slotted-accordion-radius`, `--slotted-accordion-rule-color`, `--slotted-accordion-shadow`, `--slotted-accordion-surface`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-disabled-foreground`, `--slotted-radius-md`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface-raised`
|
|
90
90
|
|
|
91
91
|
## Examples
|
|
92
92
|
|
package/docs/avatar.json
CHANGED
package/docs/avatar.md
CHANGED
|
@@ -59,7 +59,7 @@ Excerpt — not a complete module
|
|
|
59
59
|
|
|
60
60
|
## Tokens
|
|
61
61
|
|
|
62
|
-
`--slotted-avatar-border-width`, `--slotted-avatar-disabled-image-filter`, `--slotted-avatar-elevation`, `--slotted-avatar-font-family`, `--slotted-avatar-font-weight`, `--slotted-avatar-glyph-size`, `--slotted-avatar-initials-size`, `--slotted-avatar-plate-color`, `--slotted-avatar-plate-surface`, `--slotted-avatar-radius`, `--slotted-avatar-ring-color`, `--slotted-avatar-ring-width`, `--slotted-avatar-size`, `--slotted-avatar-size-lg`, `--slotted-avatar-size-md`, `--slotted-avatar-size-sm`, `--slotted-avatar-size-xl`, `--slotted-avatar-size-xs`, `--slotted-avatar-state-layer-active`, `--slotted-avatar-state-layer-hover`, `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-weight-medium`, `--slotted-radius-full`, `--slotted-surface`, `--slotted-target-min`, `--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-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-border`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--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`
|
|
62
|
+
`--slotted-avatar-border-width`, `--slotted-avatar-disabled-image-filter`, `--slotted-avatar-elevation`, `--slotted-avatar-font-family`, `--slotted-avatar-font-weight`, `--slotted-avatar-glyph-size`, `--slotted-avatar-initials-size`, `--slotted-avatar-plate-color`, `--slotted-avatar-plate-surface`, `--slotted-avatar-radius`, `--slotted-avatar-ring-color`, `--slotted-avatar-ring-width`, `--slotted-avatar-size`, `--slotted-avatar-size-lg`, `--slotted-avatar-size-md`, `--slotted-avatar-size-sm`, `--slotted-avatar-size-xl`, `--slotted-avatar-size-xs`, `--slotted-avatar-state-layer-active`, `--slotted-avatar-state-layer-hover`, `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-weight-medium`, `--slotted-radius-full`, `--slotted-surface`, `--slotted-target-min`, `--slotted-text-box-edge`, `--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-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-border`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--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`
|
|
63
63
|
|
|
64
64
|
## Examples
|
|
65
65
|
|
package/docs/badge.json
CHANGED
package/docs/badge.md
CHANGED
|
@@ -59,7 +59,7 @@ Excerpt — not a complete module
|
|
|
59
59
|
|
|
60
60
|
## Tokens
|
|
61
61
|
|
|
62
|
-
`--slotted-badge-anchor-offset-x`, `--slotted-badge-anchor-offset-y`, `--slotted-badge-border-width`, `--slotted-badge-dot-border-color`, `--slotted-badge-font-family`, `--slotted-badge-font-weight`, `--slotted-badge-radius`, `--slotted-badge-ring-color`, `--slotted-badge-ring-width`, `--slotted-border-strong`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-weight-medium`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface`, `--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-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-border`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--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`
|
|
62
|
+
`--slotted-badge-anchor-offset-x`, `--slotted-badge-anchor-offset-y`, `--slotted-badge-border-width`, `--slotted-badge-dot-border-color`, `--slotted-badge-font-family`, `--slotted-badge-font-weight`, `--slotted-badge-radius`, `--slotted-badge-ring-color`, `--slotted-badge-ring-width`, `--slotted-border-strong`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-weight-medium`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface`, `--slotted-text-box-edge`, `--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-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-border`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--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`
|
|
63
63
|
|
|
64
64
|
## Examples
|
|
65
65
|
|
package/docs/button.json
CHANGED
|
@@ -33,6 +33,11 @@
|
|
|
33
33
|
"justify": [
|
|
34
34
|
"center",
|
|
35
35
|
"between"
|
|
36
|
+
],
|
|
37
|
+
"flush": [
|
|
38
|
+
"start",
|
|
39
|
+
"end",
|
|
40
|
+
"both"
|
|
36
41
|
]
|
|
37
42
|
},
|
|
38
43
|
"members": {
|
|
@@ -44,6 +49,7 @@
|
|
|
44
49
|
"size": "md",
|
|
45
50
|
"type": "button",
|
|
46
51
|
"fullWidth": false,
|
|
52
|
+
"inline": false,
|
|
47
53
|
"justify": "center",
|
|
48
54
|
"disabled": false,
|
|
49
55
|
"focusableWhenDisabled": false,
|
|
@@ -113,6 +119,7 @@
|
|
|
113
119
|
"type": "button",
|
|
114
120
|
"disabled": false,
|
|
115
121
|
"focusableWhenDisabled": false,
|
|
122
|
+
"inline": false,
|
|
116
123
|
"loading": false,
|
|
117
124
|
"loadingDelay": 0
|
|
118
125
|
},
|
|
@@ -217,7 +224,7 @@
|
|
|
217
224
|
"part": "root",
|
|
218
225
|
"element": "the button element you write",
|
|
219
226
|
"required": true,
|
|
220
|
-
"purpose": "The control. Carries data-ui=\"button\", data-tone, data-variant and data-size. It also carries data-justify, and data-full-width, data-disabled and data-loading when they apply."
|
|
227
|
+
"purpose": "The control. Carries data-ui=\"button\", data-tone, data-variant and data-size. It also carries data-justify, and data-full-width, data-flush, data-inline, data-disabled and data-loading when they apply."
|
|
221
228
|
},
|
|
222
229
|
{
|
|
223
230
|
"part": "start",
|
|
@@ -287,6 +294,20 @@
|
|
|
287
294
|
"appliesTo": "SlButton",
|
|
288
295
|
"description": "Fills the inline size of the container."
|
|
289
296
|
},
|
|
297
|
+
{
|
|
298
|
+
"name": "flush",
|
|
299
|
+
"type": "'start' | 'end' | 'both'",
|
|
300
|
+
"defaultValue": "—",
|
|
301
|
+
"appliesTo": "SlButton",
|
|
302
|
+
"description": "Stands the label on the edge of the text around it: the button is pulled out by its own inset on the stated side, and the hover ground, the target and the focus ring extend past that edge. For a ghost button as the first line of a stacked cell. It has no effect on an inline button, which has no inset."
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "inline",
|
|
306
|
+
"type": "boolean",
|
|
307
|
+
"defaultValue": "false",
|
|
308
|
+
"appliesTo": "SlButton",
|
|
309
|
+
"description": "A word of the surrounding text, for an action inside a sentence or a dense cell: no box in any variant, the font, line height and baseline of the text around it, underlined in the tone. A row of small text keeps its height."
|
|
310
|
+
},
|
|
290
311
|
{
|
|
291
312
|
"name": "justify",
|
|
292
313
|
"type": "center | between",
|
|
@@ -294,6 +315,13 @@
|
|
|
294
315
|
"appliesTo": "SlButton",
|
|
295
316
|
"description": "Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document."
|
|
296
317
|
},
|
|
318
|
+
{
|
|
319
|
+
"name": "widest",
|
|
320
|
+
"type": "readonly string[]",
|
|
321
|
+
"defaultValue": "—",
|
|
322
|
+
"appliesTo": "SlButton",
|
|
323
|
+
"description": "Every text the label can take, for a label that changes under the pointer (the month of a stepper): the label reserves the width of the widest and centers the visible text in it, in tabular figures. The entries stay out of the accessible name; no effect under fullWidth."
|
|
324
|
+
},
|
|
297
325
|
{
|
|
298
326
|
"name": "disabled",
|
|
299
327
|
"type": "boolean",
|
|
@@ -446,6 +474,13 @@
|
|
|
446
474
|
"appliesTo": "SlButtonLink",
|
|
447
475
|
"description": "Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document."
|
|
448
476
|
},
|
|
477
|
+
{
|
|
478
|
+
"name": "widest",
|
|
479
|
+
"type": "readonly string[]",
|
|
480
|
+
"defaultValue": "—",
|
|
481
|
+
"appliesTo": "SlButtonLink",
|
|
482
|
+
"description": "Every text the label can take, for a label that changes under the pointer (the month of a stepper): the label reserves the width of the widest and centers the visible text in it, in tabular figures. The entries stay out of the accessible name; no effect under fullWidth."
|
|
483
|
+
},
|
|
449
484
|
{
|
|
450
485
|
"name": "disabled",
|
|
451
486
|
"type": "boolean",
|
|
@@ -474,7 +509,7 @@
|
|
|
474
509
|
"part": "root",
|
|
475
510
|
"element": "the button element you write",
|
|
476
511
|
"required": true,
|
|
477
|
-
"purpose": "The control. Carries data-ui=\"button\", data-tone, data-variant and data-size. It also carries data-shape, and data-disabled, data-loading and data-pressed when they apply."
|
|
512
|
+
"purpose": "The control. Carries data-ui=\"button\", data-tone, data-variant and data-size. It also carries data-shape, and data-inline, data-disabled, data-loading and data-pressed when they apply."
|
|
478
513
|
},
|
|
479
514
|
{
|
|
480
515
|
"part": "icon",
|
|
@@ -525,6 +560,13 @@
|
|
|
525
560
|
"appliesTo": "SlIconButton",
|
|
526
561
|
"description": "The corners of the control: square keeps the radius of the control scale, circle rounds it fully. Both are as wide as they are tall."
|
|
527
562
|
},
|
|
563
|
+
{
|
|
564
|
+
"name": "inline",
|
|
565
|
+
"type": "boolean",
|
|
566
|
+
"defaultValue": "false",
|
|
567
|
+
"appliesTo": "SlIconButton",
|
|
568
|
+
"description": "One line of the surrounding text tall, for a help trigger inside a sentence or a term: the line does not grow, the control takes the text's font size, and a 24px target stays around it."
|
|
569
|
+
},
|
|
528
570
|
{
|
|
529
571
|
"name": "disabled",
|
|
530
572
|
"type": "boolean",
|
|
@@ -768,6 +810,13 @@
|
|
|
768
810
|
"appliesTo": "SlToggleButton",
|
|
769
811
|
"description": "Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document."
|
|
770
812
|
},
|
|
813
|
+
{
|
|
814
|
+
"name": "widest",
|
|
815
|
+
"type": "readonly string[]",
|
|
816
|
+
"defaultValue": "—",
|
|
817
|
+
"appliesTo": "SlToggleButton",
|
|
818
|
+
"description": "Every text the label can take, for a label that changes under the pointer (the month of a stepper): the label reserves the width of the widest and centers the visible text in it, in tabular figures. The entries stay out of the accessible name; no effect under fullWidth."
|
|
819
|
+
},
|
|
771
820
|
{
|
|
772
821
|
"name": "disabled",
|
|
773
822
|
"type": "boolean",
|
|
@@ -882,8 +931,10 @@
|
|
|
882
931
|
"--slotted-focus-ring-width",
|
|
883
932
|
"--slotted-line-height-sm",
|
|
884
933
|
"--slotted-radius-full",
|
|
934
|
+
"--slotted-radius-sm",
|
|
885
935
|
"--slotted-space-2",
|
|
886
936
|
"--slotted-target-min",
|
|
937
|
+
"--slotted-text-box-edge",
|
|
887
938
|
"--slotted-text-muted",
|
|
888
939
|
"--slotted-tone-accent-border",
|
|
889
940
|
"--slotted-tone-accent-on-solid",
|
|
@@ -893,10 +944,13 @@
|
|
|
893
944
|
"--slotted-tone-accent-subtle-active",
|
|
894
945
|
"--slotted-tone-accent-subtle-hover",
|
|
895
946
|
"--slotted-tone-accent-text",
|
|
947
|
+
"--slotted-tone-danger-border",
|
|
896
948
|
"--slotted-tone-danger-on-solid",
|
|
897
949
|
"--slotted-tone-danger-solid",
|
|
898
950
|
"--slotted-tone-danger-solid-active",
|
|
899
951
|
"--slotted-tone-danger-solid-hover",
|
|
952
|
+
"--slotted-tone-danger-subtle-active",
|
|
953
|
+
"--slotted-tone-danger-subtle-hover",
|
|
900
954
|
"--slotted-tone-danger-text",
|
|
901
955
|
"--slotted-tone-info-on-solid",
|
|
902
956
|
"--slotted-tone-info-solid",
|
package/docs/button.md
CHANGED
|
@@ -105,7 +105,10 @@ export class ButtonBasic {
|
|
|
105
105
|
| `start` | `[slButtonStart]` | — | SlButton | Content projected before the label, such as an icon, on the element you mark with slButtonStart. It mirrors in a right-to-left document. |
|
|
106
106
|
| `end` | `[slButtonEnd]` | — | SlButton | Content projected after the label, on the element you mark with slButtonEnd. It mirrors in a right-to-left document. |
|
|
107
107
|
| `fullWidth` | `boolean` | false | SlButton | Fills the inline size of the container. |
|
|
108
|
+
| `flush` | `'start' \| 'end' \| 'both'` | — | SlButton | Stands the label on the edge of the text around it: the button is pulled out by its own inset on the stated side, and the hover ground, the target and the focus ring extend past that edge. For a ghost button as the first line of a stacked cell. It has no effect on an inline button, which has no inset. |
|
|
109
|
+
| `inline` | `boolean` | false | SlButton | A word of the surrounding text, for an action inside a sentence or a dense cell: no box in any variant, the font, line height and baseline of the text around it, underlined in the tone. A row of small text keeps its height. |
|
|
108
110
|
| `justify` | `center \| between` | center | SlButton | Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document. |
|
|
111
|
+
| `widest` | `readonly string[]` | — | SlButton | Every text the label can take, for a label that changes under the pointer (the month of a stepper): the label reserves the width of the widest and centers the visible text in it, in tabular figures. The entries stay out of the accessible name; no effect under fullWidth. |
|
|
109
112
|
| `disabled` | `boolean` | false | SlButton | Refuses the action and marks the control unavailable. On its own, it sets the native disabled property, which also removes the control from the tab sequence. |
|
|
110
113
|
| `focusableWhenDisabled` | `boolean` | false | SlButton | Keeps a disabled control in the tab sequence: aria-disabled replaces the native property, and activation is still refused. |
|
|
111
114
|
| `loading` | `boolean` | false | SlButton | Refuses activation, keeps focus, and shows a progress indicator named by messages.loading. |
|
|
@@ -126,6 +129,7 @@ export class ButtonBasic {
|
|
|
126
129
|
| `end` | `[slButtonEnd]` | — | SlButtonLink | Content projected after the label, on the element you mark with slButtonEnd. It mirrors in a right-to-left document. |
|
|
127
130
|
| `fullWidth` | `boolean` | false | SlButtonLink | Fills the inline size of the container. |
|
|
128
131
|
| `justify` | `center \| between` | center | SlButtonLink | Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document. |
|
|
132
|
+
| `widest` | `readonly string[]` | — | SlButtonLink | Every text the label can take, for a label that changes under the pointer (the month of a stepper): the label reserves the width of the widest and centers the visible text in it, in tabular figures. The entries stay out of the accessible name; no effect under fullWidth. |
|
|
129
133
|
| `disabled` | `boolean` | false | SlButtonLink | Removes the href and refuses activation. The link stays focusable with role="link" and aria-disabled. |
|
|
130
134
|
|
|
131
135
|
### iconButton
|
|
@@ -137,6 +141,7 @@ export class ButtonBasic {
|
|
|
137
141
|
| `variant` | `solid \| outline \| ghost` | ghost | SlIconButton | How the tone is painted: solid, outline or ghost. |
|
|
138
142
|
| `size` | `sm \| md \| lg` | md | SlIconButton | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
139
143
|
| `shape` | `square \| circle` | square | SlIconButton | The corners of the control: square keeps the radius of the control scale, circle rounds it fully. Both are as wide as they are tall. |
|
|
144
|
+
| `inline` | `boolean` | false | SlIconButton | One line of the surrounding text tall, for a help trigger inside a sentence or a term: the line does not grow, the control takes the text's font size, and a 24px target stays around it. |
|
|
140
145
|
| `disabled` | `boolean` | false | SlIconButton | Refuses the action and marks the control unavailable. On its own, it sets the native disabled property, which also removes the control from the tab sequence. |
|
|
141
146
|
| `focusableWhenDisabled` | `boolean` | false | SlIconButton | Keeps a disabled control in the tab sequence: aria-disabled replaces the native property, and activation is still refused. |
|
|
142
147
|
| `loading` | `boolean` | false | SlIconButton | Refuses activation, keeps focus, and shows a progress indicator named by messages.loading. |
|
|
@@ -170,6 +175,7 @@ export class ButtonBasic {
|
|
|
170
175
|
| `end` | `[slButtonEnd]` | — | SlToggleButton | Content projected after the label, on the element you mark with slButtonEnd. It mirrors in a right-to-left document. |
|
|
171
176
|
| `fullWidth` | `boolean` | false | SlToggleButton | Fills the inline size of the container. |
|
|
172
177
|
| `justify` | `center \| between` | center | SlToggleButton | Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document. |
|
|
178
|
+
| `widest` | `readonly string[]` | — | SlToggleButton | Every text the label can take, for a label that changes under the pointer (the month of a stepper): the label reserves the width of the widest and centers the visible text in it, in tabular figures. The entries stay out of the accessible name; no effect under fullWidth. |
|
|
173
179
|
| `disabled` | `boolean` | false | SlToggleButton | Refuses the action and marks the control unavailable. On its own, it sets the native disabled property, which also removes the control from the tab sequence. |
|
|
174
180
|
| `focusableWhenDisabled` | `boolean` | false | SlToggleButton | Keeps a disabled control in the tab sequence: aria-disabled replaces the native property, and activation is still refused. |
|
|
175
181
|
| `loading` | `boolean` | false | SlToggleButton | Refuses activation, keeps focus, and shows a progress indicator named by messages.loading. |
|
|
@@ -189,6 +195,7 @@ export class ButtonBasic {
|
|
|
189
195
|
| `size` | `sm`, `md`, `lg` | `md` |
|
|
190
196
|
| `shape` | `square`, `circle` | `square` |
|
|
191
197
|
| `justify` | `center`, `between` | `center` |
|
|
198
|
+
| `flush` | `start`, `end`, `both` | — |
|
|
192
199
|
|
|
193
200
|
## Rules
|
|
194
201
|
|
|
@@ -221,7 +228,7 @@ export class ButtonBasic {
|
|
|
221
228
|
|
|
222
229
|
## Tokens
|
|
223
230
|
|
|
224
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--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-font-weight`, `--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-line-height`, `--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-instant`, `--slotted-duration-loop`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-line-height-sm`, `--slotted-radius-full`, `--slotted-space-2`, `--slotted-target-min`, `--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-text`, `--slotted-tone-danger-on-solid`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-solid-hover`, `--slotted-tone-danger-text`, `--slotted-tone-info-on-solid`, `--slotted-tone-info-solid`, `--slotted-tone-info-solid-active`, `--slotted-tone-info-solid-hover`, `--slotted-tone-info-text`, `--slotted-tone-neutral-on-solid`, `--slotted-tone-neutral-solid`, `--slotted-tone-neutral-solid-active`, `--slotted-tone-neutral-solid-hover`, `--slotted-tone-neutral-text`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid`, `--slotted-tone-secondary-solid-active`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-text`, `--slotted-tone-success-on-solid`, `--slotted-tone-success-solid`, `--slotted-tone-success-solid-active`, `--slotted-tone-success-solid-hover`, `--slotted-tone-success-text`, `--slotted-tone-warning-on-solid`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-solid-active`, `--slotted-tone-warning-solid-hover`, `--slotted-tone-warning-text`
|
|
231
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--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-font-weight`, `--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-line-height`, `--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-instant`, `--slotted-duration-loop`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-line-height-sm`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-space-2`, `--slotted-target-min`, `--slotted-text-box-edge`, `--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-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-on-solid`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-solid-hover`, `--slotted-tone-danger-subtle-active`, `--slotted-tone-danger-subtle-hover`, `--slotted-tone-danger-text`, `--slotted-tone-info-on-solid`, `--slotted-tone-info-solid`, `--slotted-tone-info-solid-active`, `--slotted-tone-info-solid-hover`, `--slotted-tone-info-text`, `--slotted-tone-neutral-on-solid`, `--slotted-tone-neutral-solid`, `--slotted-tone-neutral-solid-active`, `--slotted-tone-neutral-solid-hover`, `--slotted-tone-neutral-text`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid`, `--slotted-tone-secondary-solid-active`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-text`, `--slotted-tone-success-on-solid`, `--slotted-tone-success-solid`, `--slotted-tone-success-solid-active`, `--slotted-tone-success-solid-hover`, `--slotted-tone-success-text`, `--slotted-tone-warning-on-solid`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-solid-active`, `--slotted-tone-warning-solid-hover`, `--slotted-tone-warning-text`
|
|
225
232
|
|
|
226
233
|
## Examples
|
|
227
234
|
|
package/docs/calendar.json
CHANGED
|
@@ -87,6 +87,10 @@
|
|
|
87
87
|
"cell",
|
|
88
88
|
"day",
|
|
89
89
|
"mark",
|
|
90
|
+
"day-content",
|
|
91
|
+
"day-marks",
|
|
92
|
+
"day-mark",
|
|
93
|
+
"day-value",
|
|
90
94
|
"months",
|
|
91
95
|
"years",
|
|
92
96
|
"period"
|
|
@@ -191,6 +195,30 @@
|
|
|
191
195
|
"required": false,
|
|
192
196
|
"purpose": "What falls on the day, drawn from marks: a dot in the row today’s dot reserves, in the mark’s tone, holding the visually hidden count that the day’s accessible name ends with."
|
|
193
197
|
},
|
|
198
|
+
{
|
|
199
|
+
"part": "day-content",
|
|
200
|
+
"element": "span",
|
|
201
|
+
"required": false,
|
|
202
|
+
"purpose": "What a day holds under its number, from ng-template[slCalendarDay]. The day keeps its button, focus, selection, today and outside-day states; the content is part of the day’s name unless dayLabel names it."
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"part": "day-marks",
|
|
206
|
+
"element": "span",
|
|
207
|
+
"required": false,
|
|
208
|
+
"purpose": "A row of marks in a day, one per record."
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"part": "day-mark",
|
|
212
|
+
"element": "span",
|
|
213
|
+
"required": false,
|
|
214
|
+
"purpose": "One record: a dot in a tone or a data palette slot, a ring when hollow (an open record), so state is not color alone."
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"part": "day-value",
|
|
218
|
+
"element": "span",
|
|
219
|
+
"required": false,
|
|
220
|
+
"purpose": "A short figure of the day, its total: one line in tabular figures at the end of the day, hidden where the calendar is narrower than 28rem."
|
|
221
|
+
},
|
|
194
222
|
{
|
|
195
223
|
"part": "months",
|
|
196
224
|
"element": "div",
|
|
@@ -323,6 +351,27 @@
|
|
|
323
351
|
"appliesTo": "SlCalendar",
|
|
324
352
|
"description": "What falls on each day, keyed by its ISO date: a dot under the number in the mark’s tone, and its count in the day’s accessible name (“12, 2 items”). Composes with every selection mode, min, max and outsideDays."
|
|
325
353
|
},
|
|
354
|
+
{
|
|
355
|
+
"name": "ng-template[slCalendarDay]",
|
|
356
|
+
"type": "let-date, let-state",
|
|
357
|
+
"defaultValue": "—",
|
|
358
|
+
"appliesTo": "SlCalendar",
|
|
359
|
+
"description": "What a day holds under its number: slCalendarDayMarks with one slCalendarDayMark per record (a tone or data-1 to data-8, hollow for an open record) and a one-line slCalendarDayValue. The family keeps the day’s button, focus, selection, today and outside-day states; state is outside, selected, today and unavailable."
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"name": "dayLabel",
|
|
363
|
+
"type": "(date) => string",
|
|
364
|
+
"defaultValue": "—",
|
|
365
|
+
"appliesTo": "SlCalendar",
|
|
366
|
+
"description": "Replaces the day’s generated accessible name, for a day whose content says more than a count."
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "layout",
|
|
370
|
+
"type": "'cells' | 'fill'",
|
|
371
|
+
"defaultValue": "cells",
|
|
372
|
+
"appliesTo": "SlCalendar",
|
|
373
|
+
"description": "cells draws square cells of --slotted-calendar-cell-size; fill shares the inline size between the seven columns and takes the row height from --slotted-calendar-day-height."
|
|
374
|
+
},
|
|
326
375
|
{
|
|
327
376
|
"name": "locale",
|
|
328
377
|
"type": "string",
|
|
@@ -444,6 +493,7 @@
|
|
|
444
493
|
"--slotted-calendar-background",
|
|
445
494
|
"--slotted-calendar-cell-size",
|
|
446
495
|
"--slotted-calendar-color",
|
|
496
|
+
"--slotted-calendar-day-height",
|
|
447
497
|
"--slotted-calendar-day-radius",
|
|
448
498
|
"--slotted-calendar-disabled-color",
|
|
449
499
|
"--slotted-calendar-hover-background",
|
|
@@ -475,6 +525,14 @@
|
|
|
475
525
|
"--slotted-control-radius",
|
|
476
526
|
"--slotted-control-transition-duration",
|
|
477
527
|
"--slotted-control-transition-easing",
|
|
528
|
+
"--slotted-data-1",
|
|
529
|
+
"--slotted-data-2",
|
|
530
|
+
"--slotted-data-3",
|
|
531
|
+
"--slotted-data-4",
|
|
532
|
+
"--slotted-data-5",
|
|
533
|
+
"--slotted-data-6",
|
|
534
|
+
"--slotted-data-7",
|
|
535
|
+
"--slotted-data-8",
|
|
478
536
|
"--slotted-disabled-background",
|
|
479
537
|
"--slotted-disabled-foreground",
|
|
480
538
|
"--slotted-focus-ring-color",
|
|
@@ -490,6 +548,7 @@
|
|
|
490
548
|
"--slotted-radius-sm",
|
|
491
549
|
"--slotted-space-1",
|
|
492
550
|
"--slotted-space-2",
|
|
551
|
+
"--slotted-space-3",
|
|
493
552
|
"--slotted-space-4",
|
|
494
553
|
"--slotted-space-6",
|
|
495
554
|
"--slotted-target-min",
|
package/docs/calendar.md
CHANGED
|
@@ -38,6 +38,10 @@ Excerpt — not a complete module
|
|
|
38
38
|
| `cell` | td | yes |
|
|
39
39
|
| `day` | span | yes |
|
|
40
40
|
| `mark` | span | no |
|
|
41
|
+
| `day-content` | span | no |
|
|
42
|
+
| `day-marks` | span | no |
|
|
43
|
+
| `day-mark` | span | no |
|
|
44
|
+
| `day-value` | span | no |
|
|
41
45
|
| `months` | div | no |
|
|
42
46
|
| `years` | div | no |
|
|
43
47
|
| `period` | button | no |
|
|
@@ -62,6 +66,9 @@ Excerpt — not a complete module
|
|
|
62
66
|
| `fixedWeeks` | `boolean` | false | SlCalendar | Always six rows, so paging does not change the surface’s height. Worth setting inside a popover. |
|
|
63
67
|
| `outsideDays` | `'shown' \| 'selectable' \| 'hidden'` | shown | SlCalendar | What a day of the month either side does: drawn and not pressable, drawn and pressable, or not drawn. |
|
|
64
68
|
| `marks` | `ReadonlyMap<string, CalendarMark>` | — | SlCalendar | What falls on each day, keyed by its ISO date: a dot under the number in the mark’s tone, and its count in the day’s accessible name (“12, 2 items”). Composes with every selection mode, min, max and outsideDays. |
|
|
69
|
+
| `ng-template[slCalendarDay]` | `let-date, let-state` | — | SlCalendar | What a day holds under its number: slCalendarDayMarks with one slCalendarDayMark per record (a tone or data-1 to data-8, hollow for an open record) and a one-line slCalendarDayValue. The family keeps the day’s button, focus, selection, today and outside-day states; state is outside, selected, today and unavailable. |
|
|
70
|
+
| `dayLabel` | `(date) => string` | — | SlCalendar | Replaces the day’s generated accessible name, for a day whose content says more than a count. |
|
|
71
|
+
| `layout` | `'cells' \| 'fill'` | cells | SlCalendar | cells draws square cells of --slotted-calendar-cell-size; fill shares the inline size between the seven columns and takes the row height from --slotted-calendar-day-height. |
|
|
65
72
|
| `locale` | `string` | the language in force | SlCalendar | BCP 47. Decides the month names, the weekday names and the day a week starts on. |
|
|
66
73
|
| `timeZone` | `string` | the runtime’s | SlCalendar | Which zone answers "what is today". |
|
|
67
74
|
| `firstDayOfWeek` | `number` | the locale’s | SlCalendar | 0 is Sunday. Overrides what the locale says, for a product that fixes one. |
|
|
@@ -106,7 +113,7 @@ Excerpt — not a complete module
|
|
|
106
113
|
|
|
107
114
|
## Tokens
|
|
108
115
|
|
|
109
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-calendar-active-background`, `--slotted-calendar-background`, `--slotted-calendar-cell-size`, `--slotted-calendar-color`, `--slotted-calendar-day-radius`, `--slotted-calendar-disabled-color`, `--slotted-calendar-hover-background`, `--slotted-calendar-in-range-color`, `--slotted-calendar-invalid-edge-width`, `--slotted-calendar-invalid-focus-ring-color`, `--slotted-calendar-outside-color`, `--slotted-calendar-preview-background`, `--slotted-calendar-preview-border-color`, `--slotted-calendar-radius`, `--slotted-calendar-range-active-background`, `--slotted-calendar-range-background`, `--slotted-calendar-range-border-color`, `--slotted-calendar-range-hover-background`, `--slotted-calendar-selected-background`, `--slotted-calendar-selected-color`, `--slotted-calendar-today-color`, `--slotted-calendar-trigger-color`, `--slotted-calendar-unavailable-color`, `--slotted-calendar-week-number-border-color`, `--slotted-calendar-week-number-color`, `--slotted-calendar-weekday-color`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-invalid-edge-width`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-highlight-tint-opacity`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-6`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-text`, `--slotted-tone-danger-solid`, `--slotted-tone-info-solid`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-success-solid`, `--slotted-tone-warning-solid`
|
|
116
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-calendar-active-background`, `--slotted-calendar-background`, `--slotted-calendar-cell-size`, `--slotted-calendar-color`, `--slotted-calendar-day-height`, `--slotted-calendar-day-radius`, `--slotted-calendar-disabled-color`, `--slotted-calendar-hover-background`, `--slotted-calendar-in-range-color`, `--slotted-calendar-invalid-edge-width`, `--slotted-calendar-invalid-focus-ring-color`, `--slotted-calendar-outside-color`, `--slotted-calendar-preview-background`, `--slotted-calendar-preview-border-color`, `--slotted-calendar-radius`, `--slotted-calendar-range-active-background`, `--slotted-calendar-range-background`, `--slotted-calendar-range-border-color`, `--slotted-calendar-range-hover-background`, `--slotted-calendar-selected-background`, `--slotted-calendar-selected-color`, `--slotted-calendar-today-color`, `--slotted-calendar-trigger-color`, `--slotted-calendar-unavailable-color`, `--slotted-calendar-week-number-border-color`, `--slotted-calendar-week-number-color`, `--slotted-calendar-weekday-color`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-invalid-edge-width`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--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-disabled-background`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-highlight-tint-opacity`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-6`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-text`, `--slotted-tone-danger-solid`, `--slotted-tone-info-solid`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-success-solid`, `--slotted-tone-warning-solid`
|
|
110
117
|
|
|
111
118
|
## Examples
|
|
112
119
|
|
package/docs/card.json
CHANGED
|
@@ -61,6 +61,13 @@
|
|
|
61
61
|
"imports": null,
|
|
62
62
|
"anatomy": [],
|
|
63
63
|
"api": [
|
|
64
|
+
{
|
|
65
|
+
"name": "bleed",
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"defaultValue": "false",
|
|
68
|
+
"appliesTo": "slCardBody",
|
|
69
|
+
"description": "Runs the children of the body from one edge of the card to the other: the body gives up its padding and is clipped to the corners of the card it touches. For a list whose rules and row grounds reach the edge"
|
|
70
|
+
},
|
|
64
71
|
{
|
|
65
72
|
"name": "orientation",
|
|
66
73
|
"type": "'vertical' | 'horizontal'",
|
package/docs/card.md
CHANGED
|
@@ -25,6 +25,7 @@ Excerpt — not a complete module
|
|
|
25
25
|
|
|
26
26
|
| Name | Type | Default | Applies to | Description |
|
|
27
27
|
| --- | --- | --- | --- | --- |
|
|
28
|
+
| `bleed` | `boolean` | false | slCardBody | Runs the children of the body from one edge of the card to the other: the body gives up its padding and is clipped to the corners of the card it touches. For a list whose rules and row grounds reach the edge |
|
|
28
29
|
| `orientation` | `'vertical' \| 'horizontal'` | vertical | slCard | Puts the media beside the regions, and returns it to the top in a narrow container |
|
|
29
30
|
| `fill` | `'outline' \| 'elevated' \| 'subtle'` | outline | slCard | How the surface is bounded: a hairline edge, the edge plus a lift, or a filled ground |
|
|
30
31
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | slCard | The card's own inset. Density is the application's choice; this is this card's |
|
package/docs/chart.json
CHANGED
|
@@ -138,6 +138,7 @@
|
|
|
138
138
|
"texture": false,
|
|
139
139
|
"zoomable": false,
|
|
140
140
|
"selectable": false,
|
|
141
|
+
"rangeSelectable": false,
|
|
141
142
|
"legendInteractive": true,
|
|
142
143
|
"legendValues": false,
|
|
143
144
|
"tableOpen": false,
|
|
@@ -501,7 +502,7 @@
|
|
|
501
502
|
"type": "ChartYAxis | [ChartYAxis, ChartYAxis]",
|
|
502
503
|
"defaultValue": "—",
|
|
503
504
|
"appliesTo": "slChart",
|
|
504
|
-
"description": "The value axis, or the start and end axes: label, format, scale, extent"
|
|
505
|
+
"description": "The value axis, or the start and end axes: label, format, scale, extent, labelWidth"
|
|
505
506
|
},
|
|
506
507
|
{
|
|
507
508
|
"name": "min",
|
|
@@ -531,6 +532,13 @@
|
|
|
531
532
|
"appliesTo": "y",
|
|
532
533
|
"description": "What the axis holds besides the data: zero, for a bar, or the data alone, for a line"
|
|
533
534
|
},
|
|
535
|
+
{
|
|
536
|
+
"name": "labelWidth",
|
|
537
|
+
"type": "number",
|
|
538
|
+
"defaultValue": "—",
|
|
539
|
+
"appliesTo": "y",
|
|
540
|
+
"description": "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"
|
|
541
|
+
},
|
|
534
542
|
{
|
|
535
543
|
"name": "orientation",
|
|
536
544
|
"type": "'vertical' | 'horizontal'",
|
|
@@ -753,7 +761,7 @@
|
|
|
753
761
|
"type": "boolean",
|
|
754
762
|
"defaultValue": "false",
|
|
755
763
|
"appliesTo": "slChart",
|
|
756
|
-
"description": "
|
|
764
|
+
"description": "Ctrl+wheel and + − 0 zoom the x axis; a drag pans a zoomed chart, Shift and a drag with rangeSelectable"
|
|
757
765
|
},
|
|
758
766
|
{
|
|
759
767
|
"name": "selectable",
|
|
@@ -762,6 +770,13 @@
|
|
|
762
770
|
"appliesTo": "slChart",
|
|
763
771
|
"description": "A click or Enter selects a point"
|
|
764
772
|
},
|
|
773
|
+
{
|
|
774
|
+
"name": "rangeSelectable",
|
|
775
|
+
"type": "boolean",
|
|
776
|
+
"defaultValue": "false",
|
|
777
|
+
"appliesTo": "slChart",
|
|
778
|
+
"description": "A drag, or Shift and an arrow, selects a span of the x axis, drawn as a band; a click clears it"
|
|
779
|
+
},
|
|
765
780
|
{
|
|
766
781
|
"name": "loading",
|
|
767
782
|
"type": "boolean",
|
|
@@ -797,6 +812,13 @@
|
|
|
797
812
|
"appliesTo": "slChart",
|
|
798
813
|
"description": "The selected point"
|
|
799
814
|
},
|
|
815
|
+
{
|
|
816
|
+
"name": "range",
|
|
817
|
+
"type": "model<ChartRange | null>",
|
|
818
|
+
"defaultValue": "null",
|
|
819
|
+
"appliesTo": "slChart",
|
|
820
|
+
"description": "The selected span, by the keys of its two ends in axis order"
|
|
821
|
+
},
|
|
800
822
|
{
|
|
801
823
|
"name": "zoom",
|
|
802
824
|
"type": "model<ChartZoom>",
|
|
@@ -914,10 +936,15 @@
|
|
|
914
936
|
"payload": "ChartPoint | null, ChangeRequest<ChartPoint | null>",
|
|
915
937
|
"when": "With selectable, on a click or Enter on a point, and on Escape: pointer, keyboard, escape, programmatic."
|
|
916
938
|
},
|
|
939
|
+
{
|
|
940
|
+
"name": "rangeChange, rangeChangeRequest",
|
|
941
|
+
"payload": "ChartRange | null, ChangeRequest<ChartRange | null>",
|
|
942
|
+
"when": "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."
|
|
943
|
+
},
|
|
917
944
|
{
|
|
918
945
|
"name": "zoomChange, zoomChangeRequest",
|
|
919
946
|
"payload": "ChartZoom, ChangeRequest<ChartZoom>",
|
|
920
|
-
"when": "With zoomable, on a
|
|
947
|
+
"when": "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."
|
|
921
948
|
},
|
|
922
949
|
{
|
|
923
950
|
"name": "tableOpenChange, tableOpenChangeRequest",
|
|
@@ -937,7 +964,7 @@
|
|
|
937
964
|
],
|
|
938
965
|
"accessibility": [
|
|
939
966
|
"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.",
|
|
940
|
-
"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.",
|
|
967
|
+
"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.",
|
|
941
968
|
"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.",
|
|
942
969
|
"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.",
|
|
943
970
|
"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.",
|
|
@@ -970,6 +997,7 @@
|
|
|
970
997
|
"--slotted-chart-focus-color",
|
|
971
998
|
"--slotted-chart-gap",
|
|
972
999
|
"--slotted-chart-grid-color",
|
|
1000
|
+
"--slotted-chart-header-gap",
|
|
973
1001
|
"--slotted-chart-inset",
|
|
974
1002
|
"--slotted-chart-label-color",
|
|
975
1003
|
"--slotted-chart-label-size",
|
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
|
|