@slotted/angular 0.1.0-beta.3 → 0.1.0-beta.30
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/AGENTS.snippet.md +3 -1
- package/docs/accordion.json +5 -5
- package/docs/accordion.md +12 -12
- package/docs/action-bar.json +23 -22
- package/docs/action-bar.md +30 -30
- package/docs/action-sheet.json +391 -64
- package/docs/action-sheet.md +259 -0
- package/docs/alert.json +30 -13
- package/docs/alert.md +29 -18
- package/docs/app-shell.examples.md +8 -8
- package/docs/app-shell.json +37 -20
- package/docs/app-shell.md +9 -7
- package/docs/avatar-group.json +1 -1
- package/docs/avatar-group.md +1 -1
- package/docs/avatar.json +32 -11
- package/docs/avatar.md +13 -11
- package/docs/badge.json +10 -4
- package/docs/badge.md +5 -5
- package/docs/breadcrumb.json +2 -2
- package/docs/breadcrumb.md +2 -2
- package/docs/button-group.json +2 -1
- package/docs/button-group.md +2 -2
- package/docs/button.examples.md +15 -0
- package/docs/button.json +134 -14
- package/docs/button.md +32 -8
- package/docs/calendar.json +31 -6
- package/docs/calendar.md +9 -6
- package/docs/card.json +2 -2
- package/docs/card.md +2 -2
- package/docs/carousel.json +10 -10
- package/docs/carousel.md +11 -11
- package/docs/cascader.json +1 -0
- package/docs/cascader.md +1 -1
- package/docs/chart.examples.md +45 -31
- package/docs/chart.json +40 -35
- package/docs/chart.md +7 -7
- package/docs/checkbox-group.examples.md +13 -13
- package/docs/checkbox-group.json +7 -7
- package/docs/checkbox-group.md +2 -2
- package/docs/checkbox.examples.md +7 -7
- package/docs/checkbox.json +6 -6
- package/docs/checkbox.md +3 -3
- package/docs/code-block.json +93 -93
- package/docs/code-block.md +70 -70
- package/docs/collapsible.json +11 -11
- package/docs/collapsible.md +19 -19
- package/docs/color-picker.json +26 -26
- package/docs/color-picker.md +16 -16
- package/docs/combobox.json +5 -2
- package/docs/combobox.md +3 -3
- package/docs/command-palette.json +2 -0
- package/docs/command-palette.md +1 -1
- package/docs/context-menu.json +1 -1
- package/docs/context-menu.md +1 -1
- package/docs/currency-field.examples.md +3 -3
- package/docs/currency-field.json +14 -6
- package/docs/currency-field.md +6 -5
- package/docs/dashboard-grid.json +32 -10
- package/docs/dashboard-grid.md +15 -6
- package/docs/data-grid.examples.md +3 -3
- package/docs/data-grid.json +37 -11
- package/docs/data-grid.md +2 -1
- package/docs/data-grid.props.md +7 -5
- package/docs/data-list.json +2 -1
- package/docs/data-list.md +1 -1
- package/docs/date-field.json +12 -4
- package/docs/date-field.md +8 -7
- package/docs/date-picker.examples.md +36 -0
- package/docs/date-picker.json +32 -5
- package/docs/date-picker.md +7 -5
- package/docs/date-range-picker.json +11 -0
- package/docs/date-range-picker.md +2 -1
- package/docs/datetime-field.json +5 -4
- package/docs/datetime-field.md +10 -10
- package/docs/datetime-picker.json +11 -1
- package/docs/datetime-picker.md +2 -1
- package/docs/datetime-range-picker.examples.md +3 -3
- package/docs/datetime-range-picker.json +14 -3
- package/docs/datetime-range-picker.md +4 -3
- package/docs/description-list.json +16 -7
- package/docs/description-list.md +8 -7
- package/docs/detail-panel.json +14 -12
- package/docs/detail-panel.md +20 -15
- package/docs/dialog.examples.md +143 -141
- package/docs/dialog.json +56 -24
- package/docs/dialog.md +6 -4
- package/docs/dialog.props.md +9 -7
- package/docs/drawer.examples.md +14 -14
- package/docs/drawer.json +43 -17
- package/docs/drawer.md +10 -8
- package/docs/entity-picker.json +21 -4
- package/docs/entity-picker.md +8 -6
- package/docs/event-calendar.examples.md +3 -3
- package/docs/event-calendar.json +5 -5
- package/docs/event-calendar.md +4 -4
- package/docs/field-group.json +21 -6
- package/docs/field-group.md +14 -12
- package/docs/field.examples.md +3 -3
- package/docs/field.json +20 -5
- package/docs/field.md +4 -2
- package/docs/filter-bar.json +118 -118
- package/docs/filter-bar.md +79 -79
- package/docs/form.json +23 -11
- package/docs/form.md +15 -13
- package/docs/fullscreen.json +4 -4
- package/docs/fullscreen.md +7 -7
- package/docs/guidelines/README.md +2 -2
- package/docs/guidelines/async-feedback.md +25 -4
- package/docs/guidelines/builders.md +1 -1
- package/docs/guidelines/composition.md +37 -11
- package/docs/guidelines/conversations.md +1 -1
- package/docs/guidelines/errors-and-conflicts.md +7 -6
- package/docs/guidelines/forms.md +111 -1
- package/docs/guidelines/index.md +27 -7
- package/docs/guidelines/layout-alignment.md +24 -14
- package/docs/guidelines/list-pages.md +44 -3
- package/docs/guidelines/overviews.md +39 -9
- package/docs/guidelines/own-elements.md +8 -8
- package/docs/guidelines/reading-permissions.md +2 -2
- package/docs/guidelines/record-pages.md +1 -1
- package/docs/guidelines/reports.md +1 -1
- package/docs/highlight.json +9 -9
- package/docs/highlight.md +14 -14
- package/docs/icon.json +5 -3
- package/docs/icon.md +4 -4
- package/docs/image.json +3 -3
- package/docs/image.md +3 -3
- package/docs/import-export-center.json +23 -23
- package/docs/import-export-center.md +17 -17
- package/docs/index.md +3 -2
- package/docs/inline-message.json +34 -21
- package/docs/inline-message.md +32 -30
- package/docs/inline.json +1 -1
- package/docs/inline.md +1 -1
- package/docs/kbd.json +5 -2
- package/docs/kbd.md +3 -3
- package/docs/link.json +22 -6
- package/docs/link.md +9 -7
- package/docs/list-item.json +20 -4
- package/docs/list-item.md +20 -17
- package/docs/list.json +1 -1
- package/docs/listbox.json +1 -2
- package/docs/listbox.md +2 -2
- package/docs/loading-overlay.json +3 -3
- package/docs/loading-overlay.md +3 -3
- package/docs/markdown.json +86 -79
- package/docs/markdown.md +66 -65
- package/docs/media-viewer.json +521 -0
- package/docs/media-viewer.md +188 -0
- package/docs/menu.json +14 -1
- package/docs/menu.md +3 -1
- package/docs/message-scroller.json +2 -2
- package/docs/message-scroller.md +1 -1
- package/docs/message.json +18 -12
- package/docs/message.md +20 -20
- package/docs/multi-select.json +3 -1
- package/docs/multi-select.md +1 -1
- package/docs/notification-center.json +20 -16
- package/docs/notification-center.md +20 -24
- package/docs/number-field.examples.md +3 -3
- package/docs/number-field.json +4 -3
- package/docs/number-field.md +1 -1
- package/docs/otp-input.json +11 -10
- package/docs/otp-input.md +14 -14
- package/docs/page-header.json +30 -13
- package/docs/page-header.md +25 -25
- package/docs/page.json +4 -2
- package/docs/page.md +3 -2
- package/docs/pagination.json +2 -2
- package/docs/pagination.md +1 -1
- package/docs/popover.examples.md +1 -1
- package/docs/popover.json +4 -3
- package/docs/popover.md +2 -2
- package/docs/progress-indicator.json +7 -5
- package/docs/progress-indicator.md +7 -7
- package/docs/prompt-composer.json +53 -6
- package/docs/prompt-composer.md +12 -6
- package/docs/prose.json +1 -1
- package/docs/prose.md +1 -1
- package/docs/radio-group.examples.md +19 -19
- package/docs/radio-group.json +12 -12
- package/docs/radio-group.md +3 -3
- package/docs/rating.json +28 -26
- package/docs/rating.md +28 -37
- package/docs/result-state.json +12 -12
- package/docs/result-state.md +17 -17
- package/docs/saved-views.json +1 -1
- package/docs/scroll-area.json +266 -64
- package/docs/scroll-area.md +188 -0
- package/docs/section.json +43 -21
- package/docs/section.md +34 -31
- package/docs/segmented-control.json +21 -25
- package/docs/segmented-control.md +33 -33
- package/docs/select.json +3 -0
- package/docs/select.md +1 -1
- package/docs/side-navigation.json +1 -0
- package/docs/side-navigation.md +1 -1
- package/docs/skeleton.json +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/skills/build-own-element/SKILL.md +9 -9
- package/docs/skills/compose-screen/SKILL.md +54 -18
- package/docs/skills/index.md +2 -2
- package/docs/skills/review-screen/SKILL.md +28 -17
- package/docs/skills/theme-app/SKILL.md +66 -20
- package/docs/skills/waiting-states/SKILL.md +15 -11
- package/docs/slider.json +8 -8
- package/docs/slider.md +12 -12
- package/docs/sparkline.json +12 -9
- package/docs/sparkline.md +9 -9
- package/docs/split-button.json +14 -12
- package/docs/split-button.md +28 -30
- package/docs/splitter.json +279 -64
- package/docs/splitter.md +215 -0
- package/docs/stack.json +1 -1
- package/docs/stack.md +1 -1
- package/docs/stat-card.json +36 -9
- package/docs/stat-card.md +11 -8
- package/docs/status-indicator.json +22 -11
- package/docs/status-indicator.md +8 -6
- package/docs/stepper.json +4 -4
- package/docs/stepper.md +4 -4
- package/docs/switch.json +5 -5
- package/docs/switch.md +7 -7
- package/docs/table-of-contents.json +13 -12
- package/docs/table-of-contents.md +14 -14
- package/docs/table.examples.md +3 -3
- package/docs/table.json +17 -3
- package/docs/table.md +3 -1
- package/docs/tabs.json +16 -3
- package/docs/tabs.md +3 -2
- package/docs/tag.json +38 -26
- package/docs/tag.md +17 -17
- package/docs/tags-input.json +30 -3
- package/docs/tags-input.md +5 -2
- package/docs/text-field.examples.md +6 -6
- package/docs/text-field.json +6 -5
- package/docs/text-field.md +2 -2
- package/docs/textarea.examples.md +7 -7
- package/docs/textarea.json +4 -3
- package/docs/textarea.md +1 -1
- package/docs/time-field.json +4 -3
- package/docs/time-field.md +7 -7
- package/docs/time-picker.json +15 -5
- package/docs/time-picker.md +8 -7
- package/docs/time-range-picker.examples.md +5 -5
- package/docs/time-range-picker.json +15 -4
- package/docs/time-range-picker.md +3 -2
- package/docs/timeline.json +138 -132
- package/docs/timeline.md +125 -125
- package/docs/toast.json +14 -7
- package/docs/toast.md +8 -8
- package/docs/toggle-group.json +12 -12
- package/docs/toggle-group.md +28 -28
- package/docs/toggle.json +8 -8
- package/docs/toggle.md +7 -7
- package/docs/tokens.md +45 -26
- package/docs/toolbar.json +11 -11
- package/docs/toolbar.md +23 -23
- package/docs/tooltip.json +4 -3
- package/docs/tooltip.md +4 -4
- package/docs/top-navigation.examples.md +11 -15
- package/docs/top-navigation.json +9 -9
- package/docs/top-navigation.md +7 -7
- package/docs/tour.json +9 -9
- package/docs/tour.md +6 -6
- package/docs/typography.json +6 -4
- package/docs/typography.md +5 -5
- package/docs/upload.examples.md +3 -3
- package/docs/upload.json +9 -9
- package/docs/upload.md +4 -4
- package/fesm2022/slotted-angular-accordion.mjs +4 -2
- package/fesm2022/slotted-angular-accordion.mjs.map +1 -1
- package/fesm2022/slotted-angular-action-bar.mjs +27 -12
- package/fesm2022/slotted-angular-action-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-action-sheet.mjs +48 -29
- package/fesm2022/slotted-angular-action-sheet.mjs.map +1 -1
- package/fesm2022/slotted-angular-alert.mjs +56 -18
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-app-shell.mjs +85 -56
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
- package/fesm2022/slotted-angular-aspect-ratio.mjs +4 -2
- package/fesm2022/slotted-angular-aspect-ratio.mjs.map +1 -1
- package/fesm2022/slotted-angular-attachment.mjs +33 -22
- package/fesm2022/slotted-angular-attachment.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar-group.mjs +13 -10
- package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +17 -10
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +15 -11
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs +27 -19
- package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/slotted-angular-button-group.mjs +8 -5
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +163 -28
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-calendar.mjs +263 -65
- package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +19 -17
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-carousel.mjs +22 -11
- package/fesm2022/slotted-angular-carousel.mjs.map +1 -1
- package/fesm2022/slotted-angular-cascader.mjs +179 -65
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +26 -5
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox-group.mjs +5 -3
- package/fesm2022/slotted-angular-checkbox-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +14 -9
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-code-block.mjs +30 -16
- package/fesm2022/slotted-angular-code-block.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +21 -16
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-color-picker.mjs +83 -28
- package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +71 -32
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-combobox.mjs +108 -35
- package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
- package/fesm2022/slotted-angular-command-palette.mjs +162 -54
- package/fesm2022/slotted-angular-command-palette.mjs.map +1 -1
- package/fesm2022/slotted-angular-container.mjs +6 -4
- package/fesm2022/slotted-angular-container.mjs.map +1 -1
- package/fesm2022/slotted-angular-context-menu.mjs +5 -4
- package/fesm2022/slotted-angular-context-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-currency-field.mjs +100 -34
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +295 -68
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +461 -129
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-list.mjs +83 -50
- package/fesm2022/slotted-angular-data-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-field.mjs +74 -25
- package/fesm2022/slotted-angular-date-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs +135 -40
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs +68 -22
- package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs +49 -17
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs +64 -29
- package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +144 -54
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +47 -24
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-detail-panel.mjs +48 -30
- package/fesm2022/slotted-angular-detail-panel.mjs.map +1 -1
- package/fesm2022/slotted-angular-dialog.mjs +81 -39
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
- package/fesm2022/slotted-angular-divider.mjs +7 -5
- package/fesm2022/slotted-angular-divider.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +236 -105
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-entity-picker.mjs +474 -75
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-event-calendar.mjs +262 -105
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-field-group.mjs +30 -9
- package/fesm2022/slotted-angular-field-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-field.mjs +49 -18
- package/fesm2022/slotted-angular-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-filter-bar.mjs +111 -44
- package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-form.mjs +48 -17
- package/fesm2022/slotted-angular-form.mjs.map +1 -1
- package/fesm2022/slotted-angular-fullscreen.mjs +14 -8
- package/fesm2022/slotted-angular-fullscreen.mjs.map +1 -1
- package/fesm2022/slotted-angular-grid.mjs +6 -4
- package/fesm2022/slotted-angular-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-highlight.mjs +6 -4
- package/fesm2022/slotted-angular-highlight.mjs.map +1 -1
- package/fesm2022/slotted-angular-hover-card.mjs +5 -4
- package/fesm2022/slotted-angular-hover-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-icon.mjs +191 -90
- package/fesm2022/slotted-angular-icon.mjs.map +1 -1
- package/fesm2022/slotted-angular-image.mjs +13 -10
- package/fesm2022/slotted-angular-image.mjs.map +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs +185 -109
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +98 -23
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline.mjs +7 -5
- package/fesm2022/slotted-angular-inline.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs +11 -7
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-link.mjs +13 -4
- package/fesm2022/slotted-angular-link.mjs.map +1 -1
- package/fesm2022/slotted-angular-list-item.mjs +63 -23
- package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +15 -11
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +41 -23
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +62 -25
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
- package/fesm2022/slotted-angular-markdown.mjs +57 -31
- package/fesm2022/slotted-angular-markdown.mjs.map +1 -1
- package/fesm2022/slotted-angular-media-viewer.mjs +962 -0
- package/fesm2022/slotted-angular-media-viewer.mjs.map +1 -0
- package/fesm2022/slotted-angular-menu.mjs +62 -39
- package/fesm2022/slotted-angular-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-menubar.mjs +6 -3
- package/fesm2022/slotted-angular-menubar.mjs.map +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs +35 -16
- package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -1
- package/fesm2022/slotted-angular-message.mjs +119 -51
- package/fesm2022/slotted-angular-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-multi-select.mjs +163 -60
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-navigation-menu.mjs +34 -26
- package/fesm2022/slotted-angular-navigation-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +111 -68
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-number-field.mjs +24 -12
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs +14 -9
- package/fesm2022/slotted-angular-otp-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-page-header.mjs +90 -48
- package/fesm2022/slotted-angular-page-header.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +60 -12
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-pagination.mjs +35 -22
- package/fesm2022/slotted-angular-pagination.mjs.map +1 -1
- package/fesm2022/slotted-angular-popover.mjs +34 -21
- package/fesm2022/slotted-angular-popover.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +238 -54
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-prompt-composer.mjs +132 -22
- package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -1
- package/fesm2022/slotted-angular-prose.mjs +14 -11
- package/fesm2022/slotted-angular-prose.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +17 -11
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +143 -87
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-result-state.mjs +16 -12
- package/fesm2022/slotted-angular-result-state.mjs.map +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs +43 -16
- package/fesm2022/slotted-angular-saved-views.mjs.map +1 -1
- package/fesm2022/slotted-angular-scroll-area.mjs +13 -5
- package/fesm2022/slotted-angular-scroll-area.mjs.map +1 -1
- package/fesm2022/slotted-angular-section.mjs +81 -19
- package/fesm2022/slotted-angular-section.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +16 -10
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-select.mjs +189 -69
- package/fesm2022/slotted-angular-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-side-navigation.mjs +46 -35
- package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-skeleton.mjs +32 -16
- package/fesm2022/slotted-angular-skeleton.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +34 -14
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-sparkline.mjs +41 -14
- package/fesm2022/slotted-angular-sparkline.mjs.map +1 -1
- package/fesm2022/slotted-angular-split-button.mjs +37 -11
- package/fesm2022/slotted-angular-split-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-splitter.mjs +11 -9
- package/fesm2022/slotted-angular-splitter.mjs.map +1 -1
- package/fesm2022/slotted-angular-stack.mjs +6 -4
- package/fesm2022/slotted-angular-stack.mjs.map +1 -1
- package/fesm2022/slotted-angular-stat-card.mjs +120 -41
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +51 -20
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-stepper.mjs +40 -15
- package/fesm2022/slotted-angular-stepper.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs +15 -10
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table-of-contents.mjs +29 -21
- package/fesm2022/slotted-angular-table-of-contents.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +162 -79
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tabs.mjs +42 -18
- package/fesm2022/slotted-angular-tabs.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +20 -13
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +254 -29
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-text-field.mjs +55 -15
- package/fesm2022/slotted-angular-text-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-textarea.mjs +5 -3
- package/fesm2022/slotted-angular-textarea.mjs.map +1 -1
- package/fesm2022/slotted-angular-theme.mjs +6 -3
- package/fesm2022/slotted-angular-theme.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-field.mjs +48 -14
- package/fesm2022/slotted-angular-time-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-picker.mjs +55 -20
- package/fesm2022/slotted-angular-time-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-range-picker.mjs +142 -52
- package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-timeline.mjs +147 -64
- package/fesm2022/slotted-angular-timeline.mjs.map +1 -1
- package/fesm2022/slotted-angular-toast.mjs +50 -38
- package/fesm2022/slotted-angular-toast.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle-group.mjs +10 -6
- package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle.mjs +9 -4
- package/fesm2022/slotted-angular-toggle.mjs.map +1 -1
- package/fesm2022/slotted-angular-toolbar.mjs +27 -12
- package/fesm2022/slotted-angular-toolbar.mjs.map +1 -1
- package/fesm2022/slotted-angular-tooltip.mjs +15 -6
- package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
- package/fesm2022/slotted-angular-top-navigation.mjs +64 -44
- package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +49 -24
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-transfer.mjs +69 -30
- package/fesm2022/slotted-angular-transfer.mjs.map +1 -1
- package/fesm2022/slotted-angular-tree.mjs +80 -26
- package/fesm2022/slotted-angular-tree.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +9 -5
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +127 -59
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/fesm2022/slotted-angular-visually-hidden.mjs +4 -2
- package/fesm2022/slotted-angular-visually-hidden.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +169 -71
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +19 -3
- package/types/slotted-angular-accordion.d.ts.map +1 -1
- package/types/slotted-angular-action-bar.d.ts +2 -0
- package/types/slotted-angular-action-bar.d.ts.map +1 -1
- package/types/slotted-angular-action-sheet.d.ts.map +1 -1
- package/types/slotted-angular-alert.d.ts +17 -8
- package/types/slotted-angular-alert.d.ts.map +1 -1
- package/types/slotted-angular-app-shell.d.ts +10 -8
- package/types/slotted-angular-app-shell.d.ts.map +1 -1
- package/types/slotted-angular-aspect-ratio.d.ts.map +1 -1
- package/types/slotted-angular-attachment.d.ts +2 -1
- package/types/slotted-angular-attachment.d.ts.map +1 -1
- package/types/slotted-angular-avatar-group.d.ts +3 -3
- package/types/slotted-angular-avatar-group.d.ts.map +1 -1
- package/types/slotted-angular-avatar.d.ts +17 -9
- package/types/slotted-angular-avatar.d.ts.map +1 -1
- package/types/slotted-angular-badge.d.ts +4 -4
- package/types/slotted-angular-badge.d.ts.map +1 -1
- package/types/slotted-angular-breadcrumb.d.ts +1 -1
- package/types/slotted-angular-breadcrumb.d.ts.map +1 -1
- package/types/slotted-angular-button-group.d.ts +2 -2
- package/types/slotted-angular-button-group.d.ts.map +1 -1
- package/types/slotted-angular-button.d.ts +45 -12
- package/types/slotted-angular-button.d.ts.map +1 -1
- package/types/slotted-angular-calendar.d.ts +43 -2
- package/types/slotted-angular-calendar.d.ts.map +1 -1
- package/types/slotted-angular-card.d.ts +1 -1
- package/types/slotted-angular-card.d.ts.map +1 -1
- package/types/slotted-angular-carousel.d.ts.map +1 -1
- package/types/slotted-angular-cascader.d.ts.map +1 -1
- package/types/slotted-angular-chart.d.ts +14 -11
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-checkbox-group.d.ts.map +1 -1
- package/types/slotted-angular-checkbox.d.ts +1 -1
- package/types/slotted-angular-checkbox.d.ts.map +1 -1
- package/types/slotted-angular-code-block.d.ts +3 -2
- package/types/slotted-angular-code-block.d.ts.map +1 -1
- package/types/slotted-angular-collapsible.d.ts +3 -2
- package/types/slotted-angular-collapsible.d.ts.map +1 -1
- package/types/slotted-angular-color-picker.d.ts +6 -6
- package/types/slotted-angular-color-picker.d.ts.map +1 -1
- package/types/slotted-angular-column-manager.d.ts +1 -1
- package/types/slotted-angular-column-manager.d.ts.map +1 -1
- package/types/slotted-angular-combobox.d.ts +6 -1
- package/types/slotted-angular-combobox.d.ts.map +1 -1
- package/types/slotted-angular-command-palette.d.ts +10 -1
- package/types/slotted-angular-command-palette.d.ts.map +1 -1
- package/types/slotted-angular-container.d.ts.map +1 -1
- package/types/slotted-angular-context-menu.d.ts.map +1 -1
- package/types/slotted-angular-currency-field.d.ts +40 -14
- package/types/slotted-angular-currency-field.d.ts.map +1 -1
- package/types/slotted-angular-dashboard-grid.d.ts +63 -7
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-grid.d.ts +63 -5
- package/types/slotted-angular-data-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-list.d.ts.map +1 -1
- package/types/slotted-angular-date-field.d.ts +11 -1
- package/types/slotted-angular-date-field.d.ts.map +1 -1
- package/types/slotted-angular-date-picker.d.ts +39 -12
- package/types/slotted-angular-date-picker.d.ts.map +1 -1
- package/types/slotted-angular-date-range-picker.d.ts +1 -1
- package/types/slotted-angular-date-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-datetime-field.d.ts.map +1 -1
- package/types/slotted-angular-datetime-picker.d.ts +1 -1
- package/types/slotted-angular-datetime-picker.d.ts.map +1 -1
- package/types/slotted-angular-datetime-range-picker.d.ts +2 -2
- package/types/slotted-angular-datetime-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-description-list.d.ts +12 -4
- package/types/slotted-angular-description-list.d.ts.map +1 -1
- package/types/slotted-angular-detail-panel.d.ts.map +1 -1
- package/types/slotted-angular-dialog.d.ts +11 -3
- package/types/slotted-angular-dialog.d.ts.map +1 -1
- package/types/slotted-angular-divider.d.ts.map +1 -1
- package/types/slotted-angular-drawer.d.ts +29 -3
- package/types/slotted-angular-drawer.d.ts.map +1 -1
- package/types/slotted-angular-entity-picker.d.ts +63 -15
- package/types/slotted-angular-entity-picker.d.ts.map +1 -1
- package/types/slotted-angular-event-calendar.d.ts.map +1 -1
- package/types/slotted-angular-field-group.d.ts +10 -2
- package/types/slotted-angular-field-group.d.ts.map +1 -1
- package/types/slotted-angular-field.d.ts +12 -4
- package/types/slotted-angular-field.d.ts.map +1 -1
- package/types/slotted-angular-filter-bar.d.ts.map +1 -1
- package/types/slotted-angular-form.d.ts +11 -2
- package/types/slotted-angular-form.d.ts.map +1 -1
- package/types/slotted-angular-fullscreen.d.ts.map +1 -1
- package/types/slotted-angular-grid.d.ts.map +1 -1
- package/types/slotted-angular-highlight.d.ts +1 -1
- package/types/slotted-angular-highlight.d.ts.map +1 -1
- package/types/slotted-angular-hover-card.d.ts.map +1 -1
- package/types/slotted-angular-icon.d.ts +15 -5
- package/types/slotted-angular-icon.d.ts.map +1 -1
- package/types/slotted-angular-image.d.ts.map +1 -1
- package/types/slotted-angular-import-export-center.d.ts +9 -9
- package/types/slotted-angular-import-export-center.d.ts.map +1 -1
- package/types/slotted-angular-inline-message.d.ts +32 -31
- package/types/slotted-angular-inline-message.d.ts.map +1 -1
- package/types/slotted-angular-inline.d.ts +1 -1
- package/types/slotted-angular-inline.d.ts.map +1 -1
- package/types/slotted-angular-kbd.d.ts +1 -1
- package/types/slotted-angular-kbd.d.ts.map +1 -1
- package/types/slotted-angular-link.d.ts +8 -2
- package/types/slotted-angular-link.d.ts.map +1 -1
- package/types/slotted-angular-list-item.d.ts +5 -1
- package/types/slotted-angular-list-item.d.ts.map +1 -1
- package/types/slotted-angular-list.d.ts +1 -1
- package/types/slotted-angular-list.d.ts.map +1 -1
- package/types/slotted-angular-listbox.d.ts +2 -2
- package/types/slotted-angular-listbox.d.ts.map +1 -1
- package/types/slotted-angular-loading-overlay.d.ts +3 -3
- package/types/slotted-angular-loading-overlay.d.ts.map +1 -1
- package/types/slotted-angular-markdown.d.ts +6 -1
- package/types/slotted-angular-markdown.d.ts.map +1 -1
- package/types/slotted-angular-media-viewer.d.ts +140 -0
- package/types/slotted-angular-media-viewer.d.ts.map +1 -0
- package/types/slotted-angular-menu.d.ts +17 -3
- package/types/slotted-angular-menu.d.ts.map +1 -1
- package/types/slotted-angular-menubar.d.ts +5 -4
- package/types/slotted-angular-menubar.d.ts.map +1 -1
- package/types/slotted-angular-message-scroller.d.ts +1 -1
- package/types/slotted-angular-message-scroller.d.ts.map +1 -1
- package/types/slotted-angular-message.d.ts +1 -1
- package/types/slotted-angular-message.d.ts.map +1 -1
- package/types/slotted-angular-multi-select.d.ts +6 -1
- package/types/slotted-angular-multi-select.d.ts.map +1 -1
- package/types/slotted-angular-navigation-menu.d.ts.map +1 -1
- package/types/slotted-angular-notification-center.d.ts +5 -5
- package/types/slotted-angular-notification-center.d.ts.map +1 -1
- package/types/slotted-angular-number-field.d.ts.map +1 -1
- package/types/slotted-angular-otp-input.d.ts +1 -1
- package/types/slotted-angular-otp-input.d.ts.map +1 -1
- package/types/slotted-angular-page-header.d.ts +15 -6
- package/types/slotted-angular-page-header.d.ts.map +1 -1
- package/types/slotted-angular-page.d.ts +7 -1
- package/types/slotted-angular-page.d.ts.map +1 -1
- package/types/slotted-angular-pagination.d.ts.map +1 -1
- package/types/slotted-angular-popover.d.ts.map +1 -1
- package/types/slotted-angular-progress-indicator.d.ts +10 -3
- package/types/slotted-angular-progress-indicator.d.ts.map +1 -1
- package/types/slotted-angular-prompt-composer.d.ts +35 -3
- package/types/slotted-angular-prompt-composer.d.ts.map +1 -1
- package/types/slotted-angular-prose.d.ts.map +1 -1
- package/types/slotted-angular-radio-group.d.ts +2 -2
- package/types/slotted-angular-radio-group.d.ts.map +1 -1
- package/types/slotted-angular-rating.d.ts +3 -3
- package/types/slotted-angular-rating.d.ts.map +1 -1
- package/types/slotted-angular-result-state.d.ts +1 -1
- package/types/slotted-angular-result-state.d.ts.map +1 -1
- package/types/slotted-angular-saved-views.d.ts.map +1 -1
- package/types/slotted-angular-scroll-area.d.ts.map +1 -1
- package/types/slotted-angular-section.d.ts +14 -4
- package/types/slotted-angular-section.d.ts.map +1 -1
- package/types/slotted-angular-segmented-control.d.ts +2 -2
- package/types/slotted-angular-segmented-control.d.ts.map +1 -1
- package/types/slotted-angular-select.d.ts +13 -2
- package/types/slotted-angular-select.d.ts.map +1 -1
- package/types/slotted-angular-side-navigation.d.ts.map +1 -1
- package/types/slotted-angular-skeleton.d.ts.map +1 -1
- package/types/slotted-angular-slider.d.ts.map +1 -1
- package/types/slotted-angular-sparkline.d.ts +7 -1
- package/types/slotted-angular-sparkline.d.ts.map +1 -1
- package/types/slotted-angular-split-button.d.ts +2 -2
- package/types/slotted-angular-split-button.d.ts.map +1 -1
- package/types/slotted-angular-splitter.d.ts.map +1 -1
- package/types/slotted-angular-stack.d.ts.map +1 -1
- package/types/slotted-angular-stat-card.d.ts +31 -7
- package/types/slotted-angular-stat-card.d.ts.map +1 -1
- package/types/slotted-angular-status-indicator.d.ts +15 -5
- package/types/slotted-angular-status-indicator.d.ts.map +1 -1
- package/types/slotted-angular-stepper.d.ts +2 -1
- package/types/slotted-angular-stepper.d.ts.map +1 -1
- package/types/slotted-angular-switch.d.ts +1 -1
- package/types/slotted-angular-switch.d.ts.map +1 -1
- package/types/slotted-angular-table-of-contents.d.ts.map +1 -1
- package/types/slotted-angular-table.d.ts +21 -4
- package/types/slotted-angular-table.d.ts.map +1 -1
- package/types/slotted-angular-tabs.d.ts +4 -5
- package/types/slotted-angular-tabs.d.ts.map +1 -1
- package/types/slotted-angular-tag.d.ts +5 -5
- package/types/slotted-angular-tag.d.ts.map +1 -1
- package/types/slotted-angular-tags-input.d.ts +34 -2
- package/types/slotted-angular-tags-input.d.ts.map +1 -1
- package/types/slotted-angular-text-field.d.ts.map +1 -1
- package/types/slotted-angular-textarea.d.ts.map +1 -1
- package/types/slotted-angular-theme.d.ts +8 -6
- package/types/slotted-angular-theme.d.ts.map +1 -1
- package/types/slotted-angular-time-field.d.ts.map +1 -1
- package/types/slotted-angular-time-picker.d.ts +1 -1
- package/types/slotted-angular-time-picker.d.ts.map +1 -1
- package/types/slotted-angular-time-range-picker.d.ts +2 -2
- package/types/slotted-angular-time-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-timeline.d.ts +1 -1
- package/types/slotted-angular-timeline.d.ts.map +1 -1
- package/types/slotted-angular-toast.d.ts +9 -7
- package/types/slotted-angular-toast.d.ts.map +1 -1
- package/types/slotted-angular-toggle-group.d.ts +1 -1
- package/types/slotted-angular-toggle-group.d.ts.map +1 -1
- package/types/slotted-angular-toggle.d.ts +1 -1
- package/types/slotted-angular-toggle.d.ts.map +1 -1
- package/types/slotted-angular-toolbar.d.ts +2 -0
- package/types/slotted-angular-toolbar.d.ts.map +1 -1
- package/types/slotted-angular-tooltip.d.ts.map +1 -1
- package/types/slotted-angular-top-navigation.d.ts.map +1 -1
- package/types/slotted-angular-tour.d.ts +2 -2
- package/types/slotted-angular-tour.d.ts.map +1 -1
- package/types/slotted-angular-transfer.d.ts.map +1 -1
- package/types/slotted-angular-tree.d.ts.map +1 -1
- package/types/slotted-angular-typography.d.ts +1 -1
- package/types/slotted-angular-typography.d.ts.map +1 -1
- package/types/slotted-angular-upload.d.ts +4 -2
- package/types/slotted-angular-upload.d.ts.map +1 -1
- package/types/slotted-angular-visually-hidden.d.ts.map +1 -1
- package/types/slotted-angular-wizard.d.ts +1 -1
- package/types/slotted-angular-wizard.d.ts.map +1 -1
package/docs/stat-card.json
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"neutral",
|
|
37
37
|
"accent",
|
|
38
38
|
"secondary",
|
|
39
|
+
"info",
|
|
39
40
|
"success",
|
|
40
41
|
"warning",
|
|
41
42
|
"danger"
|
|
@@ -44,6 +45,10 @@
|
|
|
44
45
|
"up",
|
|
45
46
|
"down",
|
|
46
47
|
"flat"
|
|
48
|
+
],
|
|
49
|
+
"attention": [
|
|
50
|
+
"warning",
|
|
51
|
+
"danger"
|
|
47
52
|
]
|
|
48
53
|
},
|
|
49
54
|
"members": {
|
|
@@ -99,7 +104,7 @@
|
|
|
99
104
|
"part": "root",
|
|
100
105
|
"element": "div",
|
|
101
106
|
"required": true,
|
|
102
|
-
"purpose": "The frame and the query container: role=\"group\" named by the label, carrying size, fill, layout, status, goodWhen, the derived tone and the loading state. Floored at ten rem; under that it overflows its column rather than shrinking."
|
|
107
|
+
"purpose": "The frame and the query container: role=\"group\" named by the label, carrying size, fill, layout, status, goodWhen, the derived tone, attention and the loading state. Floored at ten rem; under that it overflows its column rather than shrinking."
|
|
103
108
|
},
|
|
104
109
|
{
|
|
105
110
|
"part": "body",
|
|
@@ -159,7 +164,7 @@
|
|
|
159
164
|
"part": "indicator",
|
|
160
165
|
"element": "span",
|
|
161
166
|
"required": false,
|
|
162
|
-
"purpose": "The mark beside the delta: trending-up, turned over for a fall, minus for no change. Painted from the delta’s ink and kept under forced
|
|
167
|
+
"purpose": "The mark beside the delta: trending-up, turned over for a fall, minus for no change. Painted from the delta’s ink and kept under forced colors."
|
|
163
168
|
},
|
|
164
169
|
{
|
|
165
170
|
"part": "comparison",
|
|
@@ -177,7 +182,7 @@
|
|
|
177
182
|
"part": "trend",
|
|
178
183
|
"element": "div",
|
|
179
184
|
"required": false,
|
|
180
|
-
"purpose": "Where a sparkline goes: beside the figure, or under it when stacked or under 220 pixels. Hands the sparkline the card’s tone and
|
|
185
|
+
"purpose": "Where a sparkline goes: beside the figure, or under it when stacked or under 220 pixels. Hands the sparkline the card’s tone, ground and box, and draws a line smoothed and washed unless the application or the sparkline says otherwise; a block placeholder in the same box while loading; hidden under forty pixels."
|
|
181
186
|
},
|
|
182
187
|
{
|
|
183
188
|
"part": "message",
|
|
@@ -238,11 +243,18 @@
|
|
|
238
243
|
},
|
|
239
244
|
{
|
|
240
245
|
"name": "tone",
|
|
241
|
-
"type": "'neutral' | 'accent' | 'secondary' | 'success' | 'warning' | 'danger'",
|
|
246
|
+
"type": "'neutral' | 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
|
|
242
247
|
"defaultValue": "—",
|
|
243
248
|
"appliesTo": "slStatCard, slStatCardDelta",
|
|
244
249
|
"description": "An explicit tone, which wins over the derived one. On the root it is what the trend hands its sparkline"
|
|
245
250
|
},
|
|
251
|
+
{
|
|
252
|
+
"name": "attention",
|
|
253
|
+
"type": "'warning' | 'danger'",
|
|
254
|
+
"defaultValue": "—",
|
|
255
|
+
"appliesTo": "slStatCard",
|
|
256
|
+
"description": "The figure is past a threshold the product states: the value and the edge take the tone, the delta keeps its own. Ready values only; the comparison line names the threshold"
|
|
257
|
+
},
|
|
246
258
|
{
|
|
247
259
|
"name": "locale",
|
|
248
260
|
"type": "string",
|
|
@@ -257,6 +269,13 @@
|
|
|
257
269
|
"appliesTo": "slStatCard, slStatCardValue, slStatCardDelta",
|
|
258
270
|
"description": "How a number is written. On the root, the default for the value and the delta"
|
|
259
271
|
},
|
|
272
|
+
{
|
|
273
|
+
"name": "emphasis",
|
|
274
|
+
"type": "'none' | 'whole'",
|
|
275
|
+
"defaultValue": "'none'",
|
|
276
|
+
"appliesTo": "slStatCardValue",
|
|
277
|
+
"description": "whole draws the symbol, the decimals and the suffix of a numeric value in the unit part, so the whole units carry the figure; the text is the formatter’s either way"
|
|
278
|
+
},
|
|
260
279
|
{
|
|
261
280
|
"name": "messages",
|
|
262
281
|
"type": "Partial<StatCardMessages>",
|
|
@@ -306,7 +325,7 @@
|
|
|
306
325
|
"type": "projected content",
|
|
307
326
|
"defaultValue": "—",
|
|
308
327
|
"appliesTo": "slStatCard",
|
|
309
|
-
"description": "Takes an slSparkline and hands it the card’s tone through --slotted-sparkline-color
|
|
328
|
+
"description": "Takes an slSparkline and hands it the card’s tone through --slotted-sparkline-color, its ground for the marker’s ring, and curve=\"monotone\" with area unless the sparkline defaults or the sparkline state otherwise; a tone or series on the sparkline still wins"
|
|
310
329
|
},
|
|
311
330
|
{
|
|
312
331
|
"name": "aria-label, aria-labelledby, id",
|
|
@@ -334,7 +353,7 @@
|
|
|
334
353
|
"accessibility": [
|
|
335
354
|
"The root is a group named by its label through aria-labelledby, so a reader who lands on the action inside it hears which metric it belongs to. There is no APG pattern for a statistic; a group with a name is what the platform offers a labelled region that is not a landmark.",
|
|
336
355
|
"The delta reads its direction before its number — “up +12.4%” — from a visually hidden word, because a sign is a glyph some readers skip and “12.4%” alone does not say which way. The indicator is aria-hidden; it repeats what the word says.",
|
|
337
|
-
"The tone is never the only channel: the indicator turns, the word is read, the sign is written. A rise that is bad and a rise that is good differ in
|
|
356
|
+
"The tone is never the only channel: the indicator turns, the word is read, the sign is written. A rise that is bad and a rise that is good differ in color and in nothing a reader without color loses.",
|
|
338
357
|
"While loading the root carries aria-busy=\"true\" and every placeholder is a skeleton, hidden and inert. One announcement for a whole dashboard is an slSkeletonRegion around it, which is the platform’s own answer rather than one per card.",
|
|
339
358
|
"A missing or failed value is a dash and a message, in the DOM and in the tree; a card never announces a stale number as current.",
|
|
340
359
|
"The value is never truncated. A number wider than the trend’s room takes the room; a number wider than the card breaks; nothing is clipped or hidden behind an ellipsis."
|
|
@@ -381,6 +400,8 @@
|
|
|
381
400
|
"--slotted-sparkline-block-size",
|
|
382
401
|
"--slotted-sparkline-block-size-lg",
|
|
383
402
|
"--slotted-sparkline-block-size-sm",
|
|
403
|
+
"--slotted-stat-card-attention-border-color",
|
|
404
|
+
"--slotted-stat-card-attention-ink",
|
|
384
405
|
"--slotted-stat-card-background",
|
|
385
406
|
"--slotted-stat-card-background-subtle",
|
|
386
407
|
"--slotted-stat-card-border-color",
|
|
@@ -415,6 +436,9 @@
|
|
|
415
436
|
"--slotted-stat-card-region-gap-sm",
|
|
416
437
|
"--slotted-stat-card-shadow",
|
|
417
438
|
"--slotted-stat-card-shadow-elevated",
|
|
439
|
+
"--slotted-stat-card-trend-block-size",
|
|
440
|
+
"--slotted-stat-card-trend-block-size-lg",
|
|
441
|
+
"--slotted-stat-card-trend-block-size-sm",
|
|
418
442
|
"--slotted-stat-card-trend-gap",
|
|
419
443
|
"--slotted-stat-card-trend-gap-lg",
|
|
420
444
|
"--slotted-stat-card-trend-gap-sm",
|
|
@@ -433,9 +457,12 @@
|
|
|
433
457
|
"--slotted-text",
|
|
434
458
|
"--slotted-text-muted",
|
|
435
459
|
"--slotted-tone-accent-text",
|
|
460
|
+
"--slotted-tone-danger-border",
|
|
436
461
|
"--slotted-tone-danger-text",
|
|
462
|
+
"--slotted-tone-info-text",
|
|
437
463
|
"--slotted-tone-secondary-text",
|
|
438
464
|
"--slotted-tone-success-text",
|
|
465
|
+
"--slotted-tone-warning-border",
|
|
439
466
|
"--slotted-tone-warning-text"
|
|
440
467
|
],
|
|
441
468
|
"examples": [
|
|
@@ -474,7 +501,7 @@
|
|
|
474
501
|
{
|
|
475
502
|
"id": "fill",
|
|
476
503
|
"title": "Four frames",
|
|
477
|
-
"note": "outline is the hairline card; elevated lifts on a shadow and keeps the hairline for forced
|
|
504
|
+
"note": "outline is the hairline card; elevated lifts on a shadow and keeps the hairline for forced colors; subtle recedes onto the sunken surface; plain has no frame and no inset, for a table cell or a row divided by rules where a second edge would be a box in a box.",
|
|
478
505
|
"language": "html",
|
|
479
506
|
"source": "<div slStatCard fill=\"outline\">…</div>\n<div slStatCard fill=\"elevated\">…</div>\n<div slStatCard fill=\"subtle\">…</div>\n<div slStatCard fill=\"plain\">…</div>\n",
|
|
480
507
|
"verdict": "excerpt"
|
|
@@ -482,7 +509,7 @@
|
|
|
482
509
|
{
|
|
483
510
|
"id": "layout",
|
|
484
511
|
"title": "The trend beside the figure, or under it",
|
|
485
|
-
"note": "inline puts the sparkline in a column beside the value,
|
|
512
|
+
"note": "inline puts the sparkline in a column beside the value, as tall as the figure; stacked runs it to the card’s edges on the last row, level with the bottom of every card in the row. Under 220 pixels a card stacks on its own and drops the value one step.",
|
|
486
513
|
"language": "html",
|
|
487
514
|
"source": "<div slStatCard layout=\"inline\">…</div>\n<div slStatCard layout=\"stacked\">…</div>\n",
|
|
488
515
|
"verdict": "excerpt"
|
|
@@ -490,7 +517,7 @@
|
|
|
490
517
|
{
|
|
491
518
|
"id": "loading",
|
|
492
519
|
"title": "The layout is kept while the value is on its way",
|
|
493
|
-
"note": "Every text part stands in with a placeholder of its own line height and the trend with a block the
|
|
520
|
+
"note": "Every text part stands in with a placeholder of its own line height and the trend with a block in the trend’s own box, so nothing moves when the numbers arrive; the previous value is not shown as if it were current.",
|
|
494
521
|
"language": "html",
|
|
495
522
|
"source": "<div slStatCard [loading]=\"pending()\">\n <div slStatCardHeader><span slStatCardLabel>Open orders</span></div>\n <div slStatCardFigure>\n <span slStatCardValue [value]=\"orders().total\"></span>\n <span slStatCardDelta [value]=\"orders().delta\"></span>\n </div>\n <div slStatCardTrend><span slSparkline [data]=\"orders().series\"></span></div>\n</div>\n",
|
|
496
523
|
"verdict": "excerpt"
|
package/docs/stat-card.md
CHANGED
|
@@ -73,16 +73,18 @@ Excerpt — not a complete module
|
|
|
73
73
|
| `loading` | `boolean` | false | slStatCard | The value is on its way: every part stands in with a placeholder and the root is aria-busy |
|
|
74
74
|
| `goodWhen` | `'up' \| 'down' \| 'none'` | up | slStatCard, slStatCardDelta | Which way is good for this metric. The tone of a change is derived from it, never from the sign |
|
|
75
75
|
| `delta` | `number` | — | slStatCard | The change, as the first delta reads it: a fraction for a percentage. Stated on the root so the card knows its tone before its delta renders |
|
|
76
|
-
| `tone` | `'neutral' \| 'accent' \| 'secondary' \| 'success' \| 'warning' \| 'danger'` | — | slStatCard, slStatCardDelta | An explicit tone, which wins over the derived one. On the root it is what the trend hands its sparkline |
|
|
76
|
+
| `tone` | `'neutral' \| 'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | — | slStatCard, slStatCardDelta | An explicit tone, which wins over the derived one. On the root it is what the trend hands its sparkline |
|
|
77
|
+
| `attention` | `'warning' \| 'danger'` | — | slStatCard | The figure is past a threshold the product states: the value and the edge take the tone, the delta keeps its own. Ready values only; the comparison line names the threshold |
|
|
77
78
|
| `locale` | `string` | — | slStatCard | BCP 47, for every number the card formats; the language in force when absent |
|
|
78
79
|
| `formatOptions` | `Intl.NumberFormatOptions` | — | slStatCard, slStatCardValue, slStatCardDelta | How a number is written. On the root, the default for the value and the delta |
|
|
80
|
+
| `emphasis` | `'none' \| 'whole'` | 'none' | slStatCardValue | whole draws the symbol, the decimals and the suffix of a numeric value in the unit part, so the whole units carry the figure; the text is the formatter’s either way |
|
|
79
81
|
| `messages` | `Partial<StatCardMessages>` | — | slStatCard | Words laid over the language in force, key by key: up, down and flat, heard before the delta; empty, shown in place of a missing value |
|
|
80
82
|
| `value` | `number \| string` | — | slStatCardValue, slStatCardDelta | A number the card formats, or text as written. On a delta, unset means the root’s delta |
|
|
81
83
|
| `format` | `'percent' \| 'decimal'` | percent | slStatCardDelta | percent reads the value as a fraction; decimal reads it as it is. The sign is shown except on nought |
|
|
82
84
|
| `projected content` | `ng-content` | — | slStatCardValue, slStatCardDelta | Your own rendering after the formatted number: a unit, or the whole text when value is unset |
|
|
83
85
|
| `[slStatCard…]` | `attribute selectors` | — | your elements | Every part is a directive on the element you wrote: a heading for the label, an anchor for the action, a p for the comparison |
|
|
84
86
|
| `exportAs` | `template reference` | — | slStatCard, slStatCardValue, slStatCardDelta, slStatCardTrend, … | Reaches the instance: the derived tone, the trend, the formatted text |
|
|
85
|
-
| `slStatCardTrend` | `projected content` | — | slStatCard | Takes an slSparkline and hands it the card’s tone through --slotted-sparkline-color
|
|
87
|
+
| `slStatCardTrend` | `projected content` | — | slStatCard | Takes an slSparkline and hands it the card’s tone through --slotted-sparkline-color, its ground for the marker’s ring, and curve="monotone" with area unless the sparkline defaults or the sparkline state otherwise; a tone or series on the sparkline still wins |
|
|
86
88
|
| `aria-label, aria-labelledby, id` | `attributes` | — | your elements | A name or an id you wrote on the host or on the label wins over the generated one |
|
|
87
89
|
| `trendOf, toneOf` | `function` | — | Application | The two derivations, exported for a delta you format yourself |
|
|
88
90
|
| `provideStatCardDefaults` | `StatCardDefaults` | — | Application | Sets goodWhen, size, fill, layout and formatOptions once, in a route or the application config; an input still wins |
|
|
@@ -96,21 +98,22 @@ Excerpt — not a complete module
|
|
|
96
98
|
| `layout` | `inline`, `stacked` | `inline` |
|
|
97
99
|
| `status` | `ready`, `empty`, `error` | `ready` |
|
|
98
100
|
| `goodWhen` | `up`, `down`, `none` | `up` |
|
|
99
|
-
| `tone` | `neutral`, `accent`, `secondary`, `success`, `warning`, `danger` | — |
|
|
101
|
+
| `tone` | `neutral`, `accent`, `secondary`, `info`, `success`, `warning`, `danger` | — |
|
|
100
102
|
| `trend` | `up`, `down`, `flat` | — |
|
|
103
|
+
| `attention` | `warning`, `danger` | — |
|
|
101
104
|
|
|
102
105
|
## Rules
|
|
103
106
|
|
|
104
107
|
- The root is a group named by its label through aria-labelledby, so a reader who lands on the action inside it hears which metric it belongs to. There is no APG pattern for a statistic; a group with a name is what the platform offers a labelled region that is not a landmark.
|
|
105
108
|
- The delta reads its direction before its number — “up +12.4%” — from a visually hidden word, because a sign is a glyph some readers skip and “12.4%” alone does not say which way. The indicator is aria-hidden; it repeats what the word says.
|
|
106
|
-
- The tone is never the only channel: the indicator turns, the word is read, the sign is written. A rise that is bad and a rise that is good differ in
|
|
109
|
+
- The tone is never the only channel: the indicator turns, the word is read, the sign is written. A rise that is bad and a rise that is good differ in color and in nothing a reader without color loses.
|
|
107
110
|
- While loading the root carries aria-busy="true" and every placeholder is a skeleton, hidden and inert. One announcement for a whole dashboard is an slSkeletonRegion around it, which is the platform’s own answer rather than one per card.
|
|
108
111
|
- A missing or failed value is a dash and a message, in the DOM and in the tree; a card never announces a stale number as current.
|
|
109
112
|
- The value is never truncated. A number wider than the trend’s room takes the room; a number wider than the card breaks; nothing is clipped or hidden behind an ellipsis.
|
|
110
113
|
|
|
111
114
|
## Tokens
|
|
112
115
|
|
|
113
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-3xl`, `--slotted-font-size-4xl`, `--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-letter-spacing-tighter`, `--slotted-line-height-2xl`, `--slotted-line-height-3xl`, `--slotted-line-height-4xl`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xl`, `--slotted-line-height-xs`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-sparkline-block-size`, `--slotted-sparkline-block-size-lg`, `--slotted-sparkline-block-size-sm`, `--slotted-stat-card-background`, `--slotted-stat-card-background-subtle`, `--slotted-stat-card-border-color`, `--slotted-stat-card-border-width`, `--slotted-stat-card-color`, `--slotted-stat-card-color-muted`, `--slotted-stat-card-delta-font-size`, `--slotted-stat-card-delta-font-size-lg`, `--slotted-stat-card-delta-font-size-sm`, `--slotted-stat-card-indicator-size`, `--slotted-stat-card-indicator-size-lg`, `--slotted-stat-card-label-font-size`, `--slotted-stat-card-label-font-size-lg`, `--slotted-stat-card-label-font-size-sm`, `--slotted-stat-card-label-line-height`, `--slotted-stat-card-label-line-height-lg`, `--slotted-stat-card-label-line-height-sm`, `--slotted-stat-card-min-inline-size`, `--slotted-stat-card-padding-block`, `--slotted-stat-card-padding-block-lg`, `--slotted-stat-card-padding-block-sm`, `--slotted-stat-card-padding-inline`, `--slotted-stat-card-padding-inline-lg`, `--slotted-stat-card-padding-inline-sm`, `--slotted-stat-card-prose-font-size`, `--slotted-stat-card-prose-font-size-lg`, `--slotted-stat-card-prose-line-height`, `--slotted-stat-card-prose-line-height-lg`, `--slotted-stat-card-radius`, `--slotted-stat-card-region-gap`, `--slotted-stat-card-region-gap-lg`, `--slotted-stat-card-region-gap-sm`, `--slotted-stat-card-shadow`, `--slotted-stat-card-shadow-elevated`, `--slotted-stat-card-trend-gap`, `--slotted-stat-card-trend-gap-lg`, `--slotted-stat-card-trend-gap-sm`, `--slotted-stat-card-trend-inline-size`, `--slotted-stat-card-trend-inline-size-lg`, `--slotted-stat-card-trend-inline-size-sm`, `--slotted-stat-card-value-font-size`, `--slotted-stat-card-value-font-size-lg`, `--slotted-stat-card-value-font-size-sm`, `--slotted-stat-card-value-line-height`, `--slotted-stat-card-value-line-height-lg`, `--slotted-stat-card-value-line-height-sm`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`
|
|
116
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-3xl`, `--slotted-font-size-4xl`, `--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-letter-spacing-tighter`, `--slotted-line-height-2xl`, `--slotted-line-height-3xl`, `--slotted-line-height-4xl`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xl`, `--slotted-line-height-xs`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-sparkline-block-size`, `--slotted-sparkline-block-size-lg`, `--slotted-sparkline-block-size-sm`, `--slotted-stat-card-attention-border-color`, `--slotted-stat-card-attention-ink`, `--slotted-stat-card-background`, `--slotted-stat-card-background-subtle`, `--slotted-stat-card-border-color`, `--slotted-stat-card-border-width`, `--slotted-stat-card-color`, `--slotted-stat-card-color-muted`, `--slotted-stat-card-delta-font-size`, `--slotted-stat-card-delta-font-size-lg`, `--slotted-stat-card-delta-font-size-sm`, `--slotted-stat-card-indicator-size`, `--slotted-stat-card-indicator-size-lg`, `--slotted-stat-card-label-font-size`, `--slotted-stat-card-label-font-size-lg`, `--slotted-stat-card-label-font-size-sm`, `--slotted-stat-card-label-line-height`, `--slotted-stat-card-label-line-height-lg`, `--slotted-stat-card-label-line-height-sm`, `--slotted-stat-card-min-inline-size`, `--slotted-stat-card-padding-block`, `--slotted-stat-card-padding-block-lg`, `--slotted-stat-card-padding-block-sm`, `--slotted-stat-card-padding-inline`, `--slotted-stat-card-padding-inline-lg`, `--slotted-stat-card-padding-inline-sm`, `--slotted-stat-card-prose-font-size`, `--slotted-stat-card-prose-font-size-lg`, `--slotted-stat-card-prose-line-height`, `--slotted-stat-card-prose-line-height-lg`, `--slotted-stat-card-radius`, `--slotted-stat-card-region-gap`, `--slotted-stat-card-region-gap-lg`, `--slotted-stat-card-region-gap-sm`, `--slotted-stat-card-shadow`, `--slotted-stat-card-shadow-elevated`, `--slotted-stat-card-trend-block-size`, `--slotted-stat-card-trend-block-size-lg`, `--slotted-stat-card-trend-block-size-sm`, `--slotted-stat-card-trend-gap`, `--slotted-stat-card-trend-gap-lg`, `--slotted-stat-card-trend-gap-sm`, `--slotted-stat-card-trend-inline-size`, `--slotted-stat-card-trend-inline-size-lg`, `--slotted-stat-card-trend-inline-size-sm`, `--slotted-stat-card-value-font-size`, `--slotted-stat-card-value-font-size-lg`, `--slotted-stat-card-value-font-size-sm`, `--slotted-stat-card-value-line-height`, `--slotted-stat-card-value-line-height-lg`, `--slotted-stat-card-value-line-height-sm`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-text`
|
|
114
117
|
|
|
115
118
|
## Examples
|
|
116
119
|
|
|
@@ -170,7 +173,7 @@ Excerpt — not a complete module
|
|
|
170
173
|
|
|
171
174
|
### Four frames
|
|
172
175
|
|
|
173
|
-
outline is the hairline card; elevated lifts on a shadow and keeps the hairline for forced
|
|
176
|
+
outline is the hairline card; elevated lifts on a shadow and keeps the hairline for forced colors; subtle recedes onto the sunken surface; plain has no frame and no inset, for a table cell or a row divided by rules where a second edge would be a box in a box.
|
|
174
177
|
|
|
175
178
|
Excerpt — not a complete module
|
|
176
179
|
|
|
@@ -183,7 +186,7 @@ Excerpt — not a complete module
|
|
|
183
186
|
|
|
184
187
|
### The trend beside the figure, or under it
|
|
185
188
|
|
|
186
|
-
inline puts the sparkline in a column beside the value,
|
|
189
|
+
inline puts the sparkline in a column beside the value, as tall as the figure; stacked runs it to the card’s edges on the last row, level with the bottom of every card in the row. Under 220 pixels a card stacks on its own and drops the value one step.
|
|
187
190
|
|
|
188
191
|
Excerpt — not a complete module
|
|
189
192
|
|
|
@@ -194,7 +197,7 @@ Excerpt — not a complete module
|
|
|
194
197
|
|
|
195
198
|
### The layout is kept while the value is on its way
|
|
196
199
|
|
|
197
|
-
Every text part stands in with a placeholder of its own line height and the trend with a block the
|
|
200
|
+
Every text part stands in with a placeholder of its own line height and the trend with a block in the trend’s own box, so nothing moves when the numbers arrive; the previous value is not shown as if it were current.
|
|
198
201
|
|
|
199
202
|
Excerpt — not a complete module
|
|
200
203
|
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"root",
|
|
55
55
|
"mark",
|
|
56
56
|
"label",
|
|
57
|
+
"detail",
|
|
57
58
|
"announcement"
|
|
58
59
|
]
|
|
59
60
|
}
|
|
@@ -76,13 +77,19 @@
|
|
|
76
77
|
"part": "mark",
|
|
77
78
|
"element": "span",
|
|
78
79
|
"required": true,
|
|
79
|
-
"purpose": "The disc or the glyph
|
|
80
|
+
"purpose": "The disc or the glyph, inside the first line and centerd on its capitals, so the mark stays on that line however far the label wraps. Hidden from assistive technology: it says nothing the label does not."
|
|
80
81
|
},
|
|
81
82
|
{
|
|
82
83
|
"part": "label",
|
|
83
84
|
"element": "span",
|
|
84
85
|
"required": true,
|
|
85
|
-
"purpose": "The projected content. It wraps rather than truncating, and breaks an unbroken token, so a deployment id does not widen the column it sits in."
|
|
86
|
+
"purpose": "The projected content. It wraps rather than truncating, with the lines after the first under the first word, and breaks an unbroken token, so a deployment id does not widen the column it sits in. A table row aligns on its first line."
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"part": "detail",
|
|
90
|
+
"element": "the consumer’s element with slStatusIndicatorDetail",
|
|
91
|
+
"required": false,
|
|
92
|
+
"purpose": "A second, quieter line under the words — a progress, a time — set in the muted text color and hanging under the first word. Projected inside the label, so it is read with the words."
|
|
86
93
|
},
|
|
87
94
|
{
|
|
88
95
|
"part": "announcement",
|
|
@@ -104,7 +111,7 @@
|
|
|
104
111
|
"type": "'dot' | 'icon'",
|
|
105
112
|
"defaultValue": "dot",
|
|
106
113
|
"appliesTo": "SlStatusIndicator",
|
|
107
|
-
"description": "dot is the compact chromatic mark; icon carries a distinct silhouette per status and is the alternative that does not depend on
|
|
114
|
+
"description": "dot is the compact chromatic mark; icon carries a distinct silhouette per status and is the alternative that does not depend on color"
|
|
108
115
|
},
|
|
109
116
|
{
|
|
110
117
|
"name": "size",
|
|
@@ -125,7 +132,7 @@
|
|
|
125
132
|
"type": "boolean",
|
|
126
133
|
"defaultValue": "false",
|
|
127
134
|
"appliesTo": "SlStatusIndicator",
|
|
128
|
-
"description": "A wave leaving the dot, for a change happening now. Not drawn on an icon mark, and withdrawn under reduced motion and under forced
|
|
135
|
+
"description": "A wave leaving the dot, for a change happening now. Not drawn on an icon mark, and withdrawn under reduced motion and under forced colors, so it is never the only carrier"
|
|
129
136
|
},
|
|
130
137
|
{
|
|
131
138
|
"name": "label",
|
|
@@ -150,6 +157,13 @@
|
|
|
150
157
|
"appliesTo": "SlStatusIndicator",
|
|
151
158
|
"description": "The visible words, which are also the accessible name. Its fallback content is the clipped word, so the template itself decides which of the two a reader gets"
|
|
152
159
|
},
|
|
160
|
+
{
|
|
161
|
+
"name": "[slStatusIndicatorDetail]",
|
|
162
|
+
"type": "projected content",
|
|
163
|
+
"defaultValue": "—",
|
|
164
|
+
"appliesTo": "SlStatusIndicatorDetail",
|
|
165
|
+
"description": "A second, quieter line under the words, projected inside the label as the detail part"
|
|
166
|
+
},
|
|
153
167
|
{
|
|
154
168
|
"name": "host element",
|
|
155
169
|
"type": "any",
|
|
@@ -183,7 +197,7 @@
|
|
|
183
197
|
"accessibility": [
|
|
184
198
|
"There is no status-indicator pattern in the WAI-ARIA Authoring Practices: the pattern index carries thirty entries and none of them is this family. The applicable guidance is the ARIA status role, WCAG 2.2 1.4.1 Use of Color and 1.4.11 Non-text Contrast, and each is answered below.",
|
|
185
199
|
"The name is always real text in the document — the projected content, or the status’s own word clipped by visually-hidden. role=\"img\" with an aria-label, which is Fluent’s answer, is deliberately not used: text is what lets a live region announce its own contents, lets an aria-labelledby elsewhere point at it, and lets a page search find the word.",
|
|
186
|
-
"
|
|
200
|
+
"Color is never the only carrier. Every indicator has words, and mark=\"icon\" adds a distinct silhouette per status — six circles — so the six survive grayscale, the high-contrast scheme, and the operating system’s forced colors, where every author color is replaced and the glyph is all that is left.",
|
|
187
201
|
"Every dot fill clears the 3:1 that WCAG 2.2 1.4.11 asks of a graphic against the surface in the light and dark schemes, except warning, whose yellow is 1.53:1 on white; that dot alone is rimmed in the warning border role, 2.94:1. The word beside the dot carries the status, so the dot is never the only carrier.",
|
|
188
202
|
"live=\"polite\" writes role=\"status\", which the platform gives an implicit aria-live=\"polite\" and aria-atomic=\"true\", so the mark and its word are announced as one thing rather than as two events. live=\"assertive\" writes role=\"alert\" and interrupts, which the APG reserves for a message needing immediate attention. A role written on the host element is read once through HostAttributeToken and kept.",
|
|
189
203
|
"The pulse is withdrawn under prefers-reduced-motion rather than shortened, because an endless animation has to stop; a wave frozen halfway through an expansion is a rendering fault rather than a state. Nothing is lost, since the tone, the glyph and the word were already carrying the status.",
|
|
@@ -199,9 +213,6 @@
|
|
|
199
213
|
"--slotted-control-font-size-lg",
|
|
200
214
|
"--slotted-control-font-size-md",
|
|
201
215
|
"--slotted-control-font-size-sm",
|
|
202
|
-
"--slotted-control-icon-size-lg",
|
|
203
|
-
"--slotted-control-icon-size-md",
|
|
204
|
-
"--slotted-control-icon-size-sm",
|
|
205
216
|
"--slotted-duration-loop-slow",
|
|
206
217
|
"--slotted-duration-short",
|
|
207
218
|
"--slotted-easing-enter",
|
|
@@ -233,7 +244,7 @@
|
|
|
233
244
|
{
|
|
234
245
|
"id": "playground",
|
|
235
246
|
"title": "Playground",
|
|
236
|
-
"note": "One indicator with every input on it, driven by the controls below the canvas. Switch mark to icon and the meaning survives with the
|
|
247
|
+
"note": "One indicator with every input on it, driven by the controls below the canvas. Switch mark to icon and the meaning survives with the color switched off.",
|
|
237
248
|
"language": "html",
|
|
238
249
|
"source": "<span slStatusIndicator status=\"success\">Healthy</span>\n\n<!-- With nothing projected, the status names itself. -->\n<span slStatusIndicator status=\"success\"></span>\n",
|
|
239
250
|
"verdict": "excerpt"
|
|
@@ -248,7 +259,7 @@
|
|
|
248
259
|
},
|
|
249
260
|
{
|
|
250
261
|
"id": "marks",
|
|
251
|
-
"title": "The dot, and the mark that does not need
|
|
262
|
+
"title": "The dot, and the mark that does not need color",
|
|
252
263
|
"note": "A dot is compact and chromatic, so the words beside it carry the meaning. An icon carries a distinct silhouette per status, which is what WCAG 2.2 1.4.1 asks for where the words cannot be shown.",
|
|
253
264
|
"language": "html",
|
|
254
265
|
"source": "<span slStatusIndicator status=\"warning\">Degraded</span>\n<span slStatusIndicator status=\"warning\" mark=\"icon\">Degraded</span>\n",
|
|
@@ -281,7 +292,7 @@
|
|
|
281
292
|
{
|
|
282
293
|
"id": "context",
|
|
283
294
|
"title": "Where a status actually lives",
|
|
284
|
-
"note": "A column of services, and a header where one status stands for a whole page. The words take the page’s own
|
|
295
|
+
"note": "A column of services, and a header where one status stands for a whole page. The words take the page’s own color, so the status column reads as easily as the one beside it.",
|
|
285
296
|
"language": "html",
|
|
286
297
|
"source": "<tr>\n <td>checkout-api</td>\n <td slStatusIndicator status=\"success\" size=\"sm\">Healthy</td>\n</tr>\n",
|
|
287
298
|
"verdict": "excerpt"
|
package/docs/status-indicator.md
CHANGED
|
@@ -32,6 +32,7 @@ Excerpt — not a complete module
|
|
|
32
32
|
| `root` | the consumer’s element | yes |
|
|
33
33
|
| `mark` | span | yes |
|
|
34
34
|
| `label` | span | yes |
|
|
35
|
+
| `detail` | the consumer’s element with slStatusIndicatorDetail | no |
|
|
35
36
|
| `announcement` | span | no |
|
|
36
37
|
|
|
37
38
|
## Props
|
|
@@ -39,13 +40,14 @@ Excerpt — not a complete module
|
|
|
39
40
|
| Name | Type | Default | Applies to | Description |
|
|
40
41
|
| --- | --- | --- | --- | --- |
|
|
41
42
|
| `status` | `'neutral' \| 'info' \| 'success' \| 'warning' \| 'danger' \| 'unknown'` | neutral | SlStatusIndicator | The operational state. Each value owns a tone and a glyph; the vocabulary is closed, so a domain status maps onto one of the six and projects its own words |
|
|
42
|
-
| `mark` | `'dot' \| 'icon'` | dot | SlStatusIndicator | dot is the compact chromatic mark; icon carries a distinct silhouette per status and is the alternative that does not depend on
|
|
43
|
+
| `mark` | `'dot' \| 'icon'` | dot | SlStatusIndicator | dot is the compact chromatic mark; icon carries a distinct silhouette per status and is the alternative that does not depend on color |
|
|
43
44
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | SlStatusIndicator | Reads the control type and glyph scales, so all three steps answer density |
|
|
44
45
|
| `live` | `'off' \| 'polite' \| 'assertive'` | off | SlStatusIndicator | Whether a change is announced. polite writes role="status"; assertive writes role="alert" and interrupts. A role written on the host is read first and never replaced |
|
|
45
|
-
| `pulse` | `boolean` | false | SlStatusIndicator | A wave leaving the dot, for a change happening now. Not drawn on an icon mark, and withdrawn under reduced motion and under forced
|
|
46
|
+
| `pulse` | `boolean` | false | SlStatusIndicator | A wave leaving the dot, for a change happening now. Not drawn on an icon mark, and withdrawn under reduced motion and under forced colors, so it is never the only carrier |
|
|
46
47
|
| `label` | `string` | — | SlStatusIndicator | What a reader hears when nothing is projected. Ignored when something is. Falls back to the status’s word in the catalog |
|
|
47
48
|
| `messages` | `Partial<StatusIndicatorMessages>` | — | SlStatusIndicator | Words laid over the language in force, key by key: the word each status is heard as when nothing is projected (neutral, info, success, warning, danger, unknown) |
|
|
48
49
|
| `ng-content` | `projected content` | — | SlStatusIndicator | The visible words, which are also the accessible name. Its fallback content is the clipped word, so the template itself decides which of the two a reader gets |
|
|
50
|
+
| `[slStatusIndicatorDetail]` | `projected content` | — | SlStatusIndicatorDetail | A second, quieter line under the words, projected inside the label as the detail part |
|
|
49
51
|
| `host element` | `any` | — | SlStatusIndicator | The selector is a bare attribute, so the element stays the consumer’s: a td, an anchor, a list item. Its own attributes and events are untouched |
|
|
50
52
|
| `exportAs` | `'slStatusIndicator'` | — | SlStatusIndicator | Reaches the instance from a template — name(), markValue(), sizeValue() and liveValue() are the resolved values after the provider |
|
|
51
53
|
| `provideStatusIndicatorDefaults` | `{ mark, size, live }` | — | an injector | Sets the three once for an application or a route. An explicit input still wins |
|
|
@@ -64,7 +66,7 @@ Excerpt — not a complete module
|
|
|
64
66
|
|
|
65
67
|
- There is no status-indicator pattern in the WAI-ARIA Authoring Practices: the pattern index carries thirty entries and none of them is this family. The applicable guidance is the ARIA status role, WCAG 2.2 1.4.1 Use of Color and 1.4.11 Non-text Contrast, and each is answered below.
|
|
66
68
|
- The name is always real text in the document — the projected content, or the status’s own word clipped by visually-hidden. role="img" with an aria-label, which is Fluent’s answer, is deliberately not used: text is what lets a live region announce its own contents, lets an aria-labelledby elsewhere point at it, and lets a page search find the word.
|
|
67
|
-
-
|
|
69
|
+
- Color is never the only carrier. Every indicator has words, and mark="icon" adds a distinct silhouette per status — six circles — so the six survive grayscale, the high-contrast scheme, and the operating system’s forced colors, where every author color is replaced and the glyph is all that is left.
|
|
68
70
|
- Every dot fill clears the 3:1 that WCAG 2.2 1.4.11 asks of a graphic against the surface in the light and dark schemes, except warning, whose yellow is 1.53:1 on white; that dot alone is rimmed in the warning border role, 2.94:1. The word beside the dot carries the status, so the dot is never the only carrier.
|
|
69
71
|
- live="polite" writes role="status", which the platform gives an implicit aria-live="polite" and aria-atomic="true", so the mark and its word are announced as one thing rather than as two events. live="assertive" writes role="alert" and interrupts, which the APG reserves for a message needing immediate attention. A role written on the host element is read once through HostAttributeToken and kept.
|
|
70
72
|
- The pulse is withdrawn under prefers-reduced-motion rather than shortened, because an endless animation has to stop; a wave frozen halfway through an expansion is a rendering fault rather than a state. Nothing is lost, since the tone, the glyph and the word were already carrying the status.
|
|
@@ -72,7 +74,7 @@ Excerpt — not a complete module
|
|
|
72
74
|
|
|
73
75
|
## Tokens
|
|
74
76
|
|
|
75
|
-
`--slotted-border-strong`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-
|
|
77
|
+
`--slotted-border-strong`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-duration-loop-slow`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-line-height-md`, `--slotted-radius-full`, `--slotted-space-1`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-status-indicator-font-family`, `--slotted-status-indicator-mark-border-color`, `--slotted-status-indicator-mark-border-width`, `--slotted-text-muted`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-text`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-text`, `--slotted-tone-success-solid`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-text`
|
|
76
78
|
|
|
77
79
|
## Examples
|
|
78
80
|
|
|
@@ -91,7 +93,7 @@ Excerpt — not a complete module
|
|
|
91
93
|
<span slStatusIndicator status="unknown">No data</span>
|
|
92
94
|
```
|
|
93
95
|
|
|
94
|
-
### The dot, and the mark that does not need
|
|
96
|
+
### The dot, and the mark that does not need color
|
|
95
97
|
|
|
96
98
|
A dot is compact and chromatic, so the words beside it carry the meaning. An icon carries a distinct silhouette per status, which is what WCAG 2.2 1.4.1 asks for where the words cannot be shown.
|
|
97
99
|
|
|
@@ -142,7 +144,7 @@ Excerpt — not a complete module
|
|
|
142
144
|
|
|
143
145
|
### Where a status actually lives
|
|
144
146
|
|
|
145
|
-
A column of services, and a header where one status stands for a whole page. The words take the page’s own
|
|
147
|
+
A column of services, and a header where one status stands for a whole page. The words take the page’s own color, so the status column reads as easily as the one beside it.
|
|
146
148
|
|
|
147
149
|
Excerpt — not a complete module
|
|
148
150
|
|
package/docs/stepper.json
CHANGED
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
"Every header carries a visually hidden status, so what a reader hears is \"Cart, Step 2 of 4, current\" rather than \"2\". The marker itself is aria-hidden, because it would otherwise announce the number twice, and the status is prefixed with a comma because nothing separates two elements’ text when a name is computed.",
|
|
283
283
|
"A panel is a group labelled by its own trigger and given tabindex=\"-1\", so a consumer who moves focus after a step change has somewhere to put it. It is not a tabpanel, for the same reason the root is not a tablist.",
|
|
284
284
|
"The arrows reach every header, exactly where Tab reaches — they were added on top of the tab sequence rather than replacing it with a roving tab stop, and they follow the reading direction, so ArrowRight moves to the previous step in a right-to-left document. Home and End go to the ends, and the block arrows answer only a vertical flow.",
|
|
285
|
-
"No status depends on
|
|
285
|
+
"No status depends on color alone: a complete step fills its disc and shows a check, a failed one fills and shows a cross, the current one is a ring and a pending one an outline. Section 7 of the feature guide asks for exactly that."
|
|
286
286
|
]
|
|
287
287
|
}
|
|
288
288
|
},
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
{
|
|
371
371
|
"id": "orientation",
|
|
372
372
|
"title": "Which way the flow runs",
|
|
373
|
-
"note": "Horizontal divides the width into equal columns so five markers line up however long their labels are; vertical runs the connector down the marker’s own
|
|
373
|
+
"note": "Horizontal divides the width into equal columns so five markers line up however long their labels are; vertical runs the connector down the marker’s own center line.",
|
|
374
374
|
"language": "html",
|
|
375
375
|
"source": "<div slStepper orientation=\"horizontal\">\n <ol slStepperList>\n …\n </ol>\n</div>\n\n<div slStepper orientation=\"vertical\">\n <ol slStepperList>\n …\n </ol>\n</div>\n",
|
|
376
376
|
"verdict": "excerpt"
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
{
|
|
379
379
|
"id": "statuses",
|
|
380
380
|
"title": "The four statuses, and the fifth that is not one",
|
|
381
|
-
"note": "Each is a fill and an edge rather than a
|
|
381
|
+
"note": "Each is a fill and an edge rather than a color alone: an outline for pending, a ring for current, a filled disc with a check for complete, a filled disc with a cross for a failure.",
|
|
382
382
|
"language": "html",
|
|
383
383
|
"source": "<li slStepperStep label=\"Complete\" [complete]=\"true\"></li>\n<li slStepperStep label=\"Failed\" invalid></li>\n<li slStepperStep label=\"Current\"></li>\n<li slStepperStep label=\"Pending\"></li>\n<li slStepperStep label=\"Closed\" [disabled]=\"true\"></li>\n",
|
|
384
384
|
"verdict": "excerpt"
|
|
@@ -402,7 +402,7 @@
|
|
|
402
402
|
{
|
|
403
403
|
"id": "placement",
|
|
404
404
|
"title": "Where the label sits",
|
|
405
|
-
"note": "end puts the name beside the marker and gives the connector whatever the label leaves; bottom
|
|
405
|
+
"note": "end puts the name beside the marker and gives the connector whatever the label leaves; bottom centers the marker over its own label, which is what a row of five names needs.",
|
|
406
406
|
"language": "html",
|
|
407
407
|
"source": "<div slStepper labelPlacement=\"end\">…</div>\n<div slStepper labelPlacement=\"bottom\">…</div>\n",
|
|
408
408
|
"verdict": "excerpt"
|
package/docs/stepper.md
CHANGED
|
@@ -94,7 +94,7 @@ Excerpt — not a complete module
|
|
|
94
94
|
- Every header carries a visually hidden status, so what a reader hears is "Cart, Step 2 of 4, current" rather than "2". The marker itself is aria-hidden, because it would otherwise announce the number twice, and the status is prefixed with a comma because nothing separates two elements’ text when a name is computed.
|
|
95
95
|
- A panel is a group labelled by its own trigger and given tabindex="-1", so a consumer who moves focus after a step change has somewhere to put it. It is not a tabpanel, for the same reason the root is not a tablist.
|
|
96
96
|
- The arrows reach every header, exactly where Tab reaches — they were added on top of the tab sequence rather than replacing it with a roving tab stop, and they follow the reading direction, so ArrowRight moves to the previous step in a right-to-left document. Home and End go to the ends, and the block arrows answer only a vertical flow.
|
|
97
|
-
- No status depends on
|
|
97
|
+
- No status depends on color alone: a complete step fills its disc and shows a check, a failed one fills and shows a cross, the current one is a ring and a pending one an outline. Section 7 of the feature guide asks for exactly that.
|
|
98
98
|
|
|
99
99
|
## Tokens
|
|
100
100
|
|
|
@@ -104,7 +104,7 @@ Excerpt — not a complete module
|
|
|
104
104
|
|
|
105
105
|
### Which way the flow runs
|
|
106
106
|
|
|
107
|
-
Horizontal divides the width into equal columns so five markers line up however long their labels are; vertical runs the connector down the marker’s own
|
|
107
|
+
Horizontal divides the width into equal columns so five markers line up however long their labels are; vertical runs the connector down the marker’s own center line.
|
|
108
108
|
|
|
109
109
|
Excerpt — not a complete module
|
|
110
110
|
|
|
@@ -124,7 +124,7 @@ Excerpt — not a complete module
|
|
|
124
124
|
|
|
125
125
|
### The four statuses, and the fifth that is not one
|
|
126
126
|
|
|
127
|
-
Each is a fill and an edge rather than a
|
|
127
|
+
Each is a fill and an edge rather than a color alone: an outline for pending, a ring for current, a filled disc with a check for complete, a filled disc with a cross for a failure.
|
|
128
128
|
|
|
129
129
|
Excerpt — not a complete module
|
|
130
130
|
|
|
@@ -168,7 +168,7 @@ Excerpt — not a complete module
|
|
|
168
168
|
|
|
169
169
|
### Where the label sits
|
|
170
170
|
|
|
171
|
-
end puts the name beside the marker and gives the connector whatever the label leaves; bottom
|
|
171
|
+
end puts the name beside the marker and gives the connector whatever the label leaves; bottom centers the marker over its own label, which is what a row of five names needs.
|
|
172
172
|
|
|
173
173
|
Excerpt — not a complete module
|
|
174
174
|
|
package/docs/switch.json
CHANGED
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
"title": "Playground",
|
|
341
341
|
"note": "One switch with every axis on it, driven by the controls below the canvas. Click the label as well as the pill: the label names the control and doubles its target.",
|
|
342
342
|
"language": "html",
|
|
343
|
-
"source": "<span slSwitch defaultChecked name=\"autopay\">\n
|
|
343
|
+
"source": "<span slSwitch defaultChecked name=\"autopay\">\n Automatic billing\n <p slSwitchDescription>The invoice is charged on the 5th of each month.</p>\n</span>\n",
|
|
344
344
|
"verdict": "excerpt"
|
|
345
345
|
},
|
|
346
346
|
{
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
{
|
|
355
355
|
"id": "indicator",
|
|
356
356
|
"title": "The mark inside the thumb",
|
|
357
|
-
"note": "On draws a check and off draws nothing, so the state is readable without
|
|
357
|
+
"note": "On draws a check and off draws nothing, so the state is readable without color and without comparing the thumb’s position to a switch you cannot see.",
|
|
358
358
|
"language": "ts",
|
|
359
359
|
"source": "import { Component, signal } from '@angular/core';\nimport { SlStack } from '@slotted/angular/stack';\nimport { SlSwitch, SlSwitchDescription } from '@slotted/angular/switch';\n\n@Component({\n selector: 'app-switch-indicator',\n imports: [SlStack, SlSwitch, SlSwitchDescription],\n template: `\n <div slStack [gap]=\"5\">\n <span slSwitch defaultChecked>Accept backorders</span>\n <span slSwitch [checked]=\"open()\" indicator=\"none\" (checkedChange)=\"open.set($event.value)\">\n Storefront\n <p slSwitchDescription>\n {{\n open()\n ? 'Open: customers can place orders.'\n : 'Closed: customers see a maintenance page.'\n }}\n </p>\n </span>\n </div>\n `,\n})\nexport class SwitchIndicator {\n protected readonly open = signal(true);\n}\n",
|
|
360
360
|
"verdict": "example"
|
|
@@ -372,13 +372,13 @@
|
|
|
372
372
|
"title": "Help text under the label",
|
|
373
373
|
"note": "It is projected outside the label, so it describes the switch rather than naming it — and so a paragraph of help text does not change a setting when it is clicked.",
|
|
374
374
|
"language": "html",
|
|
375
|
-
"source": "<span slSwitch defaultChecked>\n
|
|
375
|
+
"source": "<span slSwitch defaultChecked>\n Automatic billing\n <p slSwitchDescription>The invoice is charged on the 5th of each month.</p>\n</span>\n",
|
|
376
376
|
"verdict": "excerpt"
|
|
377
377
|
},
|
|
378
378
|
{
|
|
379
379
|
"id": "states",
|
|
380
380
|
"title": "The states the pill paints",
|
|
381
|
-
"note": "Read-only goes hollow and keeps its
|
|
381
|
+
"note": "Read-only goes hollow and keeps its color, because the value is real and still submitted; disabled goes grey and its knob goes with it, so a locked setting still says which way it is set.",
|
|
382
382
|
"language": "ts",
|
|
383
383
|
"source": "import { Component } from '@angular/core';\nimport { SlStack } from '@slotted/angular/stack';\nimport { SlSwitch, SlSwitchDescription } from '@slotted/angular/switch';\n\n@Component({\n selector: 'app-switch-states',\n imports: [SlStack, SlSwitch, SlSwitchDescription],\n template: `\n <div slStack [gap]=\"5\">\n <span slSwitch defaultChecked readOnly>\n Two-step sign-in\n <p slSwitchDescription>Your organization's security policy sets this.</p>\n </span>\n <span slSwitch defaultChecked disabled>\n Audit log\n <p slSwitchDescription>Included in the Business plan.</p>\n </span>\n <span slSwitch disabled>\n Single sign-on\n <p slSwitchDescription>Available on the Enterprise plan.</p>\n </span>\n </div>\n `,\n})\nexport class SwitchStates {}\n",
|
|
384
384
|
"verdict": "example"
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
"title": "The keyboard",
|
|
421
421
|
"note": "Tab reaches the control and Space toggles it, both from the platform. Enter is deliberately not bound: inside a form it submits, and a switch that stole it would break the form.",
|
|
422
422
|
"language": "html",
|
|
423
|
-
"source": "<span slSwitch (checkedChange)=\"onRequest($event)\">
|
|
423
|
+
"source": "<span slSwitch (checkedChange)=\"onRequest($event)\">Receive the invoice</span>\n\n<!-- $event.reason is \"pointer\", \"keyboard\" or \"programmatic\",\n and $event.cancel() refuses the move before it commits. -->\n",
|
|
424
424
|
"verdict": "excerpt"
|
|
425
425
|
},
|
|
426
426
|
{
|
package/docs/switch.md
CHANGED
|
@@ -109,8 +109,8 @@ Excerpt — not a complete module
|
|
|
109
109
|
|
|
110
110
|
```html
|
|
111
111
|
<span slSwitch defaultChecked name="autopay">
|
|
112
|
-
|
|
113
|
-
<p slSwitchDescription>
|
|
112
|
+
Automatic billing
|
|
113
|
+
<p slSwitchDescription>The invoice is charged on the 5th of each month.</p>
|
|
114
114
|
</span>
|
|
115
115
|
```
|
|
116
116
|
|
|
@@ -141,7 +141,7 @@ export class SwitchSizes {}
|
|
|
141
141
|
|
|
142
142
|
### The mark inside the thumb
|
|
143
143
|
|
|
144
|
-
On draws a check and off draws nothing, so the state is readable without
|
|
144
|
+
On draws a check and off draws nothing, so the state is readable without color and without comparing the thumb’s position to a switch you cannot see.
|
|
145
145
|
|
|
146
146
|
Example
|
|
147
147
|
|
|
@@ -212,14 +212,14 @@ Excerpt — not a complete module
|
|
|
212
212
|
|
|
213
213
|
```html
|
|
214
214
|
<span slSwitch defaultChecked>
|
|
215
|
-
|
|
216
|
-
<p slSwitchDescription>
|
|
215
|
+
Automatic billing
|
|
216
|
+
<p slSwitchDescription>The invoice is charged on the 5th of each month.</p>
|
|
217
217
|
</span>
|
|
218
218
|
```
|
|
219
219
|
|
|
220
220
|
### The states the pill paints
|
|
221
221
|
|
|
222
|
-
Read-only goes hollow and keeps its
|
|
222
|
+
Read-only goes hollow and keeps its color, because the value is real and still submitted; disabled goes grey and its knob goes with it, so a locked setting still says which way it is set.
|
|
223
223
|
|
|
224
224
|
Example
|
|
225
225
|
|
|
@@ -407,7 +407,7 @@ Tab reaches the control and Space toggles it, both from the platform. Enter is d
|
|
|
407
407
|
Excerpt — not a complete module
|
|
408
408
|
|
|
409
409
|
```html
|
|
410
|
-
<span slSwitch (checkedChange)="onRequest($event)">
|
|
410
|
+
<span slSwitch (checkedChange)="onRequest($event)">Receive the invoice</span>
|
|
411
411
|
|
|
412
412
|
<!-- $event.reason is "pointer", "keyboard" or "programmatic",
|
|
413
413
|
and $event.cancel() refuses the move before it commits. -->
|