@slotted/angular 0.1.0-beta.3 → 0.1.0-beta.31
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 +31 -14
- package/docs/alert.md +29 -18
- package/docs/app-shell.examples.md +8 -8
- package/docs/app-shell.json +38 -21
- 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 +3 -2
- package/docs/card.md +3 -3
- package/docs/carousel.json +10 -10
- package/docs/carousel.md +11 -11
- package/docs/cascader.json +2 -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 +12 -11
- package/docs/collapsible.md +20 -20
- package/docs/color-picker.json +26 -26
- package/docs/color-picker.md +16 -16
- package/docs/combobox.json +6 -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 +53 -10
- package/docs/dashboard-grid.md +18 -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 +58 -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 +44 -17
- package/docs/drawer.md +10 -8
- package/docs/entity-picker.json +22 -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 +24 -12
- 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 +24 -23
- package/docs/import-export-center.md +18 -18
- 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.examples.md +907 -0
- package/docs/list.json +121 -33
- package/docs/list.md +73 -137
- 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 +15 -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 +4 -1
- package/docs/multi-select.md +1 -1
- package/docs/navigation-menu.json +1 -0
- package/docs/navigation-menu.md +1 -1
- package/docs/notification-center.json +21 -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 +31 -14
- 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 +5 -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 +13 -12
- package/docs/result-state.md +18 -18
- 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 +44 -22
- package/docs/section.md +34 -31
- package/docs/segmented-control.json +21 -25
- package/docs/segmented-control.md +33 -33
- package/docs/select.json +4 -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 +59 -18
- package/docs/skills/index.md +2 -2
- package/docs/skills/review-screen/SKILL.md +29 -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 +15 -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 +53 -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 +10 -9
- package/docs/tour.md +7 -7
- 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 +384 -88
- 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 +78 -27
- 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 +65 -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 +12 -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/toast.json
CHANGED
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"tone": [
|
|
28
28
|
"accent",
|
|
29
29
|
"secondary",
|
|
30
|
+
"info",
|
|
30
31
|
"success",
|
|
31
32
|
"warning",
|
|
32
33
|
"danger"
|
|
@@ -255,17 +256,17 @@
|
|
|
255
256
|
},
|
|
256
257
|
{
|
|
257
258
|
"name": "tone",
|
|
258
|
-
"type": "'accent' | 'secondary' | 'success' | 'warning' | 'danger'",
|
|
259
|
+
"type": "'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
|
|
259
260
|
"defaultValue": "accent",
|
|
260
261
|
"appliesTo": "SlToastService.show",
|
|
261
|
-
"description": "Which of the five semantic
|
|
262
|
+
"description": "Which of the five semantic colors the message speaks in, and which mark it draws"
|
|
262
263
|
},
|
|
263
264
|
{
|
|
264
265
|
"name": "variant",
|
|
265
266
|
"type": "'raised' | 'soft' | 'solid'",
|
|
266
267
|
"defaultValue": "raised",
|
|
267
268
|
"appliesTo": "SlToastService.show",
|
|
268
|
-
"description": "How that
|
|
269
|
+
"description": "How that color is painted. raised keeps the neutral surface and puts the tone in the mark, which is what a box floating over unknown content should do"
|
|
269
270
|
},
|
|
270
271
|
{
|
|
271
272
|
"name": "priority",
|
|
@@ -379,7 +380,7 @@
|
|
|
379
380
|
"type": "directive on an li",
|
|
380
381
|
"defaultValue": "—",
|
|
381
382
|
"appliesTo": "a page’s own list",
|
|
382
|
-
"description": "Everything about a message that is
|
|
383
|
+
"description": "Everything about a message that is behavior rather than markup. A page that renders SlToastService.visible() itself puts this on its own li and keeps the timer, the exit, the swipe and Escape"
|
|
383
384
|
},
|
|
384
385
|
{
|
|
385
386
|
"name": "SlToastService",
|
|
@@ -430,12 +431,13 @@
|
|
|
430
431
|
"When the message holding focus is taken away — by its own control, or by the page’s state — focus goes to the next message, then to the element it came from. Only React Aria answers this at all, and only for its own close button; here it is `packages/core/src/focus/removal-focus`, which both bindings compose.",
|
|
431
432
|
"WCAG 2.2 SC 2.2.1 is the criterion a timer answers, and the family takes the first of the criterion’s six ways out: the limit can be turned off before a reader meets it, by setting duration to 0 on ToastDefaultsProvider for the whole application. Putting that switch in front of the reader is the application’s work, not the family’s.",
|
|
432
433
|
"A message that carries an action is given no duration unless one is stated, and a message waiting on a promise is given none either. Angular Material states the first rule and is alone in it; five surveyed implementations ship the action and the timer and leave the combination to the consumer.",
|
|
433
|
-
"Every tone with a severity carries a mark as well as a
|
|
434
|
+
"Every tone with a severity carries a mark as well as a color, and secondary carries none: a neutral note has no severity to state. Under forced colors the five grounds become one system color, so the mark, and its absence on a note, is the only thing distinguishing a failure from a note — WCAG 2.2 1.4.1.",
|
|
434
435
|
"The region takes no pointer events and each message takes its own, so a region pinned over a page never eats a press meant for the page. Every surveyed implementation does this and none of them says so, which is how a consumer finds a dead corner in their own application."
|
|
435
436
|
]
|
|
436
437
|
}
|
|
437
438
|
},
|
|
438
439
|
"tokens": [
|
|
440
|
+
"--slotted-action-gap",
|
|
439
441
|
"--slotted-border-subtle",
|
|
440
442
|
"--slotted-border-width-thin",
|
|
441
443
|
"--slotted-control-font-family",
|
|
@@ -473,6 +475,7 @@
|
|
|
473
475
|
"--slotted-text",
|
|
474
476
|
"--slotted-text-muted",
|
|
475
477
|
"--slotted-toast-actions-gap",
|
|
478
|
+
"--slotted-toast-backdrop-filter",
|
|
476
479
|
"--slotted-toast-border-color",
|
|
477
480
|
"--slotted-toast-border-width",
|
|
478
481
|
"--slotted-toast-close-radius",
|
|
@@ -508,6 +511,11 @@
|
|
|
508
511
|
"--slotted-tone-danger-solid",
|
|
509
512
|
"--slotted-tone-danger-surface",
|
|
510
513
|
"--slotted-tone-danger-text",
|
|
514
|
+
"--slotted-tone-info-border",
|
|
515
|
+
"--slotted-tone-info-on-solid",
|
|
516
|
+
"--slotted-tone-info-solid",
|
|
517
|
+
"--slotted-tone-info-surface",
|
|
518
|
+
"--slotted-tone-info-text",
|
|
511
519
|
"--slotted-tone-secondary-border",
|
|
512
520
|
"--slotted-tone-secondary-on-solid",
|
|
513
521
|
"--slotted-tone-secondary-solid",
|
|
@@ -537,7 +545,7 @@
|
|
|
537
545
|
{
|
|
538
546
|
"id": "tones",
|
|
539
547
|
"title": "What the message is about",
|
|
540
|
-
"note": "Five tones and five marks. The mark is the answer to WCAG 2.2 1.4.1: read in
|
|
548
|
+
"note": "Five tones and five marks. The mark is the answer to WCAG 2.2 1.4.1: read in grayscale, or under forced colors where every ground becomes one system color, the silhouette is the only thing left to tell a failure from a note.",
|
|
541
549
|
"language": "ts",
|
|
542
550
|
"source": "// accent is information, secondary a neutral note, success something\n// finished, warning something that needs attention, danger something failed.\nthis.toasts.show({ title: 'Could not send', tone: 'danger' });\n",
|
|
543
551
|
"verdict": "excerpt"
|
|
@@ -625,7 +633,7 @@
|
|
|
625
633
|
{
|
|
626
634
|
"id": "composition",
|
|
627
635
|
"title": "A message a page draws itself",
|
|
628
|
-
"note": "The region hands each message to a function and keeps everything that is
|
|
636
|
+
"note": "The region hands each message to a function and keeps everything that is behavior: the clock, the exit, the swipe, the keyboard and the announcement. What the page writes is the body, and it can be anything at all.",
|
|
629
637
|
"language": "html",
|
|
630
638
|
"source": "<!-- The body is an ng-template carried by the message, rendered per\n message and lazily, with the message in its context. -->\n<ng-template #body let-message>\n <div slToastContent>\n <div slToastTitle>{{ message.data.title }}</div>\n </div>\n</ng-template>\n",
|
|
631
639
|
"verdict": "excerpt"
|
package/docs/toast.md
CHANGED
|
@@ -76,8 +76,8 @@ export class ToastBasic {
|
|
|
76
76
|
| `pauseWhenHidden` | `boolean` | true | sl-toast-region | A hidden tab holds every clock. A five-second message shown to a tab nobody is looking at was never shown |
|
|
77
77
|
| `hotkey` | `string` | F6 | sl-toast-region | The key that moves focus into the region, written the way a reader says it — F6, Alt+T, Shift+F8 |
|
|
78
78
|
| `messages` | `Partial<ToastMessages>` | — | sl-toast-region | Words laid over the language in force, key by key: the name a reader finds the region by in their landmark list, and what the hotkey lands in (label), and what each close control announces (close) |
|
|
79
|
-
| `tone` | `'accent' \| 'secondary' \| 'success' \| 'warning' \| 'danger'` | accent | SlToastService.show | Which of the five semantic
|
|
80
|
-
| `variant` | `'raised' \| 'soft' \| 'solid'` | raised | SlToastService.show | How that
|
|
79
|
+
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | accent | SlToastService.show | Which of the five semantic colors the message speaks in, and which mark it draws |
|
|
80
|
+
| `variant` | `'raised' \| 'soft' \| 'solid'` | raised | SlToastService.show | How that color is painted. raised keeps the neutral surface and puts the tone in the mark, which is what a box floating over unknown content should do |
|
|
81
81
|
| `priority` | `'polite' \| 'assertive'` | polite | SlToastService.show | How loudly the announcer says it. Never inferred from the tone: a danger message a background job produced must not cut into a sentence |
|
|
82
82
|
| `dismissible` | `boolean` | true | SlToastService.show | Renders the control that closes the message. A touch reader has no Escape key, so the pointer needs a target |
|
|
83
83
|
| `progress` | `boolean` | false | SlToastService.show | Draws how much of the duration is left. It is off by default because a message with no duration has nothing to draw |
|
|
@@ -93,7 +93,7 @@ export class ToastBasic {
|
|
|
93
93
|
| `id` | `string` | — | SlToastService.show | Showing a message whose id is already in the queue updates that message in place rather than adding a second one |
|
|
94
94
|
| `container` | `Element \| null` | — | sl-toast-region | The element a portalled region is placed inside, for an application shell that owns its own stacking context |
|
|
95
95
|
| `body` | `ng-template` | — | SlToastService.show | The message a page draws itself. The clock, the exit, the swipe, the keyboard and the announcement stay the family’s; NgTemplateOutlet renders the template per message and only when the message exists |
|
|
96
|
-
| `slToastItem` | `directive on an li` | — | a page’s own list | Everything about a message that is
|
|
96
|
+
| `slToastItem` | `directive on an li` | — | a page’s own list | Everything about a message that is behavior rather than markup. A page that renders SlToastService.visible() itself puts this on its own li and keeps the timer, the exit, the swipe and Escape |
|
|
97
97
|
| `SlToastService` | `providedIn: root` | — | anywhere | show, update, dismiss, clear, pauseAll, resumeAll and promise, plus visible, queued and paused as signals. It is where Angular Material’s consumers already reach, and it is injectable from an interceptor or a resolver |
|
|
98
98
|
| `provideToastDefaults` | `(defaults) => Provider` | — | an application or a route | Sets every axis once for every region and message under it; an explicit value on one message still wins. A component-level provider gives one subtree a queue of its own |
|
|
99
99
|
| `exportAs` | `'slToastRegion'` | — | a template | Reaches the region instance: visible(), queued(), paused() and focus(), which sends the keyboard to the newest message |
|
|
@@ -113,7 +113,7 @@ export class ToastBasic {
|
|
|
113
113
|
| `placement` | `top-start`, `top`, `top-end`, `bottom-start`, `bottom`, `bottom-end` | `bottom-end` |
|
|
114
114
|
| `attach` | `portal`, `viewport`, `inline` | `portal` |
|
|
115
115
|
| `stacking` | `list`, `stack` | `list` |
|
|
116
|
-
| `tone` | `accent`, `secondary`, `success`, `warning`, `danger` | `accent` |
|
|
116
|
+
| `tone` | `accent`, `secondary`, `info`, `success`, `warning`, `danger` | `accent` |
|
|
117
117
|
| `variant` | `raised`, `soft`, `solid` | `raised` |
|
|
118
118
|
| `priority` | `polite`, `assertive` | `polite` |
|
|
119
119
|
| `dismissible` | `true`, `false` | `true` |
|
|
@@ -131,12 +131,12 @@ export class ToastBasic {
|
|
|
131
131
|
- When the message holding focus is taken away — by its own control, or by the page’s state — focus goes to the next message, then to the element it came from. Only React Aria answers this at all, and only for its own close button; here it is `packages/core/src/focus/removal-focus`, which both bindings compose.
|
|
132
132
|
- WCAG 2.2 SC 2.2.1 is the criterion a timer answers, and the family takes the first of the criterion’s six ways out: the limit can be turned off before a reader meets it, by setting duration to 0 on ToastDefaultsProvider for the whole application. Putting that switch in front of the reader is the application’s work, not the family’s.
|
|
133
133
|
- A message that carries an action is given no duration unless one is stated, and a message waiting on a promise is given none either. Angular Material states the first rule and is alone in it; five surveyed implementations ship the action and the timer and leave the combination to the consumer.
|
|
134
|
-
- Every tone with a severity carries a mark as well as a
|
|
134
|
+
- Every tone with a severity carries a mark as well as a color, and secondary carries none: a neutral note has no severity to state. Under forced colors the five grounds become one system color, so the mark, and its absence on a note, is the only thing distinguishing a failure from a note — WCAG 2.2 1.4.1.
|
|
135
135
|
- The region takes no pointer events and each message takes its own, so a region pinned over a page never eats a press meant for the page. Every surveyed implementation does this and none of them says so, which is how a consumer finds a dead corner in their own application.
|
|
136
136
|
|
|
137
137
|
## Tokens
|
|
138
138
|
|
|
139
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-duration-long`, `--slotted-duration-medium`, `--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-family-heading`, `--slotted-font-family-sans`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-toast-actions-gap`, `--slotted-toast-border-color`, `--slotted-toast-border-width`, `--slotted-toast-close-radius`, `--slotted-toast-close-size`, `--slotted-toast-column-gap`, `--slotted-toast-font-family`, `--slotted-toast-gap`, `--slotted-toast-measure`, `--slotted-toast-offset`, `--slotted-toast-padding-block`, `--slotted-toast-padding-inline`, `--slotted-toast-progress-size`, `--slotted-toast-radius`, `--slotted-toast-row-gap`, `--slotted-toast-shadow`, `--slotted-toast-stack-fade`, `--slotted-toast-stack-step`, `--slotted-toast-state-layer-active`, `--slotted-toast-state-layer-hover`, `--slotted-toast-surface`, `--slotted-toast-text`, `--slotted-toast-text-gap`, `--slotted-toast-text-muted`, `--slotted-toast-title-font-family`, `--slotted-toast-title-font-weight`, `--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-secondary-border`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid`, `--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`, `--slotted-z-index-toast`
|
|
139
|
+
`--slotted-action-gap`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-duration-long`, `--slotted-duration-medium`, `--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-family-heading`, `--slotted-font-family-sans`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-toast-actions-gap`, `--slotted-toast-backdrop-filter`, `--slotted-toast-border-color`, `--slotted-toast-border-width`, `--slotted-toast-close-radius`, `--slotted-toast-close-size`, `--slotted-toast-column-gap`, `--slotted-toast-font-family`, `--slotted-toast-gap`, `--slotted-toast-measure`, `--slotted-toast-offset`, `--slotted-toast-padding-block`, `--slotted-toast-padding-inline`, `--slotted-toast-progress-size`, `--slotted-toast-radius`, `--slotted-toast-row-gap`, `--slotted-toast-shadow`, `--slotted-toast-stack-fade`, `--slotted-toast-stack-step`, `--slotted-toast-state-layer-active`, `--slotted-toast-state-layer-hover`, `--slotted-toast-surface`, `--slotted-toast-text`, `--slotted-toast-text-gap`, `--slotted-toast-text-muted`, `--slotted-toast-title-font-family`, `--slotted-toast-title-font-weight`, `--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`, `--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`, `--slotted-z-index-toast`
|
|
140
140
|
|
|
141
141
|
## Examples
|
|
142
142
|
|
|
@@ -159,7 +159,7 @@ toasts.show({
|
|
|
159
159
|
|
|
160
160
|
### What the message is about
|
|
161
161
|
|
|
162
|
-
Five tones and five marks. The mark is the answer to WCAG 2.2 1.4.1: read in
|
|
162
|
+
Five tones and five marks. The mark is the answer to WCAG 2.2 1.4.1: read in grayscale, or under forced colors where every ground becomes one system color, the silhouette is the only thing left to tell a failure from a note.
|
|
163
163
|
|
|
164
164
|
Excerpt — not a complete module
|
|
165
165
|
|
|
@@ -296,7 +296,7 @@ this.toasts.show({
|
|
|
296
296
|
|
|
297
297
|
### A message a page draws itself
|
|
298
298
|
|
|
299
|
-
The region hands each message to a function and keeps everything that is
|
|
299
|
+
The region hands each message to a function and keeps everything that is behavior: the clock, the exit, the swipe, the keyboard and the announcement. What the page writes is the body, and it can be anything at all.
|
|
300
300
|
|
|
301
301
|
Excerpt — not a complete module
|
|
302
302
|
|
package/docs/toggle-group.json
CHANGED
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"part": "item",
|
|
82
82
|
"element": "button, with slToggleGroupItem on it",
|
|
83
83
|
"required": true,
|
|
84
|
-
"purpose": "One two-state control. It carries aria-pressed in both states and data-pressed when it is on, and its border is always present so that turning it on changes a
|
|
84
|
+
"purpose": "One two-state control. It carries aria-pressed in both states and data-pressed when it is on, and its border is always present so that turning it on changes a color and never the geometry."
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"part": "icon",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"type": "'outline' | 'ghost' | 'chips'",
|
|
138
138
|
"defaultValue": "outline",
|
|
139
139
|
"appliesTo": "slToggleGroup",
|
|
140
|
-
"description": "Whether the bar draws its own edge, or draws its items as chips: separate rounded items that wrap, never joined, the pressed one in the neutral tone ink. There is no tone axis: “on” is one
|
|
140
|
+
"description": "Whether the bar draws its own edge, or draws its items as chips: separate rounded items that wrap, never joined, the pressed one in the neutral tone ink. There is no tone axis: “on” is one color across the system"
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"name": "orientation",
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
"title": "Playground",
|
|
326
326
|
"note": "One bar with every axis on it, driven by the controls below the canvas. Tab into it once: the whole group is a single stop, and the arrows move focus from there without changing anything.",
|
|
327
327
|
"language": "html",
|
|
328
|
-
"source": "<div slToggleGroup aria-label=\"
|
|
328
|
+
"source": "<div slToggleGroup aria-label=\"Chart period\" [defaultValue]=\"['week']\">\n <button slToggleGroupItem value=\"day\">Day</button>\n <button slToggleGroupItem value=\"week\">Week</button>\n <button slToggleGroupItem value=\"month\">Month</button>\n</div>\n",
|
|
329
329
|
"verdict": "excerpt"
|
|
330
330
|
},
|
|
331
331
|
{
|
|
@@ -333,15 +333,15 @@
|
|
|
333
333
|
"title": "One at a time, several at once, or none",
|
|
334
334
|
"note": "The value is an array in both modes: multiple caps it at every item rather than at one. Press the item that is already on — the set empties, unless deselectable says it may not.",
|
|
335
335
|
"language": "html",
|
|
336
|
-
"source": "<div slToggleGroup aria-label=\"
|
|
336
|
+
"source": "<div slToggleGroup aria-label=\"Text style\" multiple [defaultValue]=\"['bold']\">\n <button slToggleGroupItem value=\"bold\">Bold</button>\n <button slToggleGroupItem value=\"italic\">Italic</button>\n</div>\n",
|
|
337
337
|
"verdict": "excerpt"
|
|
338
338
|
},
|
|
339
339
|
{
|
|
340
340
|
"id": "variant",
|
|
341
341
|
"title": "Framed, or bare",
|
|
342
|
-
"note": "outline draws the bar’s own edge; ghost draws none, for a bar that sits inside something already framed — a toolbar, a card header. The
|
|
342
|
+
"note": "outline draws the bar’s own edge; ghost draws none, for a bar that sits inside something already framed — a toolbar, a card header. The color of an item that is on is the same in both.",
|
|
343
343
|
"language": "html",
|
|
344
|
-
"source": "<div slToggleGroup aria-label=\"
|
|
344
|
+
"source": "<div slToggleGroup aria-label=\"Density\" variant=\"ghost\" [defaultValue]=\"['compact']\">\n <button slToggleGroupItem value=\"comfortable\">Comfortable</button>\n <button slToggleGroupItem value=\"compact\">Compact</button>\n</div>\n",
|
|
345
345
|
"verdict": "excerpt"
|
|
346
346
|
},
|
|
347
347
|
{
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
"title": "The three control steps",
|
|
350
350
|
"note": "Each step reads the control scale, so a bar is exactly as tall as the text field and the button beside it at every size and at every density.",
|
|
351
351
|
"language": "html",
|
|
352
|
-
"source": "<div slToggleGroup aria-label=\"
|
|
352
|
+
"source": "<div slToggleGroup aria-label=\"Sorting\" size=\"sm\" [defaultValue]=\"['newest']\">\n <button slToggleGroupItem value=\"newest\">Newest</button>\n <button slToggleGroupItem value=\"oldest\">Oldest</button>\n</div>\n",
|
|
353
353
|
"verdict": "excerpt"
|
|
354
354
|
},
|
|
355
355
|
{
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
"title": "Along the line, or down the page",
|
|
358
358
|
"note": "A vertical bar moves with ArrowUp and ArrowDown and writes aria-orientation; a horizontal one leaves the cross axis to the page, so scrolling still works with focus inside the group.",
|
|
359
359
|
"language": "html",
|
|
360
|
-
"source": "<div slToggleGroup aria-label=\"
|
|
360
|
+
"source": "<div slToggleGroup aria-label=\"Alignment\" orientation=\"vertical\" [defaultValue]=\"['center']\">\n <button slToggleGroupItem value=\"start\">Start</button>\n <button slToggleGroupItem value=\"center\">Center</button>\n</div>\n",
|
|
361
361
|
"verdict": "excerpt"
|
|
362
362
|
},
|
|
363
363
|
{
|
|
@@ -389,7 +389,7 @@
|
|
|
389
389
|
"title": "Content width, or the whole line",
|
|
390
390
|
"note": "Left alone the bar is as wide as its labels; fullWidth makes the items share the line. Either way an item gives way rather than pushing the layout, and its label clips at the ellipsis.",
|
|
391
391
|
"language": "html",
|
|
392
|
-
"source": "<div slToggleGroup aria-label=\"
|
|
392
|
+
"source": "<div slToggleGroup aria-label=\"Billing\" fullWidth [defaultValue]=\"['monthly']\">\n <button slToggleGroupItem value=\"monthly\">Monthly</button>\n <button slToggleGroupItem value=\"yearly\">Yearly</button>\n</div>\n",
|
|
393
393
|
"verdict": "excerpt"
|
|
394
394
|
},
|
|
395
395
|
{
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
"title": "Inside a toolbar, the bar owns the keyboard",
|
|
398
398
|
"note": "A toolbar is already one tab stop with arrow navigation across every control it holds, so the group stands down rather than putting a second stop inside the first. Nothing has to be passed.",
|
|
399
399
|
"language": "html",
|
|
400
|
-
"source": "<div slToolbar aria-label=\"
|
|
400
|
+
"source": "<div slToolbar aria-label=\"Formatting\">\n <div\n slToggleGroup\n aria-label=\"Estilo do texto\"\n multiple\n variant=\"ghost\"\n [defaultValue]=\"['bold']\"\n >\n <button slToggleGroupItem value=\"bold\" aria-label=\"Negrito\">\n <ng-icon slToggleGroupIcon name=\"lucideBold\" />\n </button>\n </div>\n</div>\n",
|
|
401
401
|
"verdict": "excerpt"
|
|
402
402
|
},
|
|
403
403
|
{
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
"title": "Content the family did not choose",
|
|
406
406
|
"note": "A label nine words long, one unbroken token, and a right-to-left string inside a left-to-right page. Each clips at the ellipsis and keeps its whole text in the DOM.",
|
|
407
407
|
"language": "html",
|
|
408
|
-
"source": "<div slToggleGroup aria-label=\"
|
|
408
|
+
"source": "<div slToggleGroup aria-label=\"Frequency\" fullWidth [defaultValue]=\"['now']\">\n <button slToggleGroupItem value=\"now\">Immediately</button>\n <button slToggleGroupItem value=\"digest\">Once a day, in the evening digest</button>\n</div>\n",
|
|
409
409
|
"verdict": "excerpt"
|
|
410
410
|
},
|
|
411
411
|
{
|
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
"title": "The keyboard, key by key",
|
|
422
422
|
"note": "Tab reaches the group once; the arrows move focus and never toggle; Home and End reach the ends; Space and Enter turn the focused item on and off. An item is a button, and that is why.",
|
|
423
423
|
"language": "html",
|
|
424
|
-
"source": "<div slToggleGroup aria-label=\"
|
|
424
|
+
"source": "<div slToggleGroup aria-label=\"Period\" [loop]=\"false\" [defaultValue]=\"['week']\">\n <button slToggleGroupItem value=\"day\">Day</button>\n <button slToggleGroupItem value=\"week\">Week</button>\n</div>\n",
|
|
425
425
|
"verdict": "excerpt"
|
|
426
426
|
}
|
|
427
427
|
]
|
package/docs/toggle-group.md
CHANGED
|
@@ -21,10 +21,10 @@ Selector: `[slToggleGroup]` · exportAs: `slToggleGroup`
|
|
|
21
21
|
Excerpt — not a complete module
|
|
22
22
|
|
|
23
23
|
```html
|
|
24
|
-
<div slToggleGroup aria-label="
|
|
25
|
-
<button slToggleGroupItem value="day">
|
|
26
|
-
<button slToggleGroupItem value="week">
|
|
27
|
-
<button slToggleGroupItem value="month">
|
|
24
|
+
<div slToggleGroup aria-label="Chart period" [defaultValue]="['week']">
|
|
25
|
+
<button slToggleGroupItem value="day">Day</button>
|
|
26
|
+
<button slToggleGroupItem value="week">Week</button>
|
|
27
|
+
<button slToggleGroupItem value="month">Month</button>
|
|
28
28
|
</div>
|
|
29
29
|
```
|
|
30
30
|
|
|
@@ -46,7 +46,7 @@ Excerpt — not a complete module
|
|
|
46
46
|
| `multiple` | `boolean` | false | slToggleGroup | Whether more than one item may be on at a time. The value stays an array either way, so one signal holds it in every mode |
|
|
47
47
|
| `deselectable` | `boolean` | true | slToggleGroup | Whether the last item on may be turned off. Ignored while multiple is true, where a set may always empty |
|
|
48
48
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | slToggleGroup | The control step the bar and every item sit at. It reads the control scale, so the bar is as tall as the field beside it |
|
|
49
|
-
| `variant` | `'outline' \| 'ghost' \| 'chips'` | outline | slToggleGroup | Whether the bar draws its own edge, or draws its items as chips: separate rounded items that wrap, never joined, the pressed one in the neutral tone ink. There is no tone axis: “on” is one
|
|
49
|
+
| `variant` | `'outline' \| 'ghost' \| 'chips'` | outline | slToggleGroup | Whether the bar draws its own edge, or draws its items as chips: separate rounded items that wrap, never joined, the pressed one in the neutral tone ink. There is no tone axis: “on” is one color across the system |
|
|
50
50
|
| `orientation` | `'horizontal' \| 'vertical'` | horizontal | slToggleGroup | How the items flow, and which pair of arrows moves focus. A vertical group writes aria-orientation |
|
|
51
51
|
| `attached` | `boolean` | true | slToggleGroup | Whether the items are joined into one bar or spaced apart. A joined bar overlaps its items by one border so a shared column holds one line |
|
|
52
52
|
| `fullWidth` | `boolean` | false | slToggleGroup | Whether the items share the whole line. Left alone the bar is as wide as its labels |
|
|
@@ -98,22 +98,22 @@ The value is an array in both modes: multiple caps it at every item rather than
|
|
|
98
98
|
Excerpt — not a complete module
|
|
99
99
|
|
|
100
100
|
```html
|
|
101
|
-
<div slToggleGroup aria-label="
|
|
102
|
-
<button slToggleGroupItem value="bold">
|
|
103
|
-
<button slToggleGroupItem value="italic">
|
|
101
|
+
<div slToggleGroup aria-label="Text style" multiple [defaultValue]="['bold']">
|
|
102
|
+
<button slToggleGroupItem value="bold">Bold</button>
|
|
103
|
+
<button slToggleGroupItem value="italic">Italic</button>
|
|
104
104
|
</div>
|
|
105
105
|
```
|
|
106
106
|
|
|
107
107
|
### Framed, or bare
|
|
108
108
|
|
|
109
|
-
outline draws the bar’s own edge; ghost draws none, for a bar that sits inside something already framed — a toolbar, a card header. The
|
|
109
|
+
outline draws the bar’s own edge; ghost draws none, for a bar that sits inside something already framed — a toolbar, a card header. The color of an item that is on is the same in both.
|
|
110
110
|
|
|
111
111
|
Excerpt — not a complete module
|
|
112
112
|
|
|
113
113
|
```html
|
|
114
|
-
<div slToggleGroup aria-label="
|
|
115
|
-
<button slToggleGroupItem value="comfortable">
|
|
116
|
-
<button slToggleGroupItem value="compact">
|
|
114
|
+
<div slToggleGroup aria-label="Density" variant="ghost" [defaultValue]="['compact']">
|
|
115
|
+
<button slToggleGroupItem value="comfortable">Comfortable</button>
|
|
116
|
+
<button slToggleGroupItem value="compact">Compact</button>
|
|
117
117
|
</div>
|
|
118
118
|
```
|
|
119
119
|
|
|
@@ -124,9 +124,9 @@ Each step reads the control scale, so a bar is exactly as tall as the text field
|
|
|
124
124
|
Excerpt — not a complete module
|
|
125
125
|
|
|
126
126
|
```html
|
|
127
|
-
<div slToggleGroup aria-label="
|
|
128
|
-
<button slToggleGroupItem value="newest">
|
|
129
|
-
<button slToggleGroupItem value="oldest">
|
|
127
|
+
<div slToggleGroup aria-label="Sorting" size="sm" [defaultValue]="['newest']">
|
|
128
|
+
<button slToggleGroupItem value="newest">Newest</button>
|
|
129
|
+
<button slToggleGroupItem value="oldest">Oldest</button>
|
|
130
130
|
</div>
|
|
131
131
|
```
|
|
132
132
|
|
|
@@ -137,9 +137,9 @@ A vertical bar moves with ArrowUp and ArrowDown and writes aria-orientation; a h
|
|
|
137
137
|
Excerpt — not a complete module
|
|
138
138
|
|
|
139
139
|
```html
|
|
140
|
-
<div slToggleGroup aria-label="
|
|
141
|
-
<button slToggleGroupItem value="start">
|
|
142
|
-
<button slToggleGroupItem value="center">
|
|
140
|
+
<div slToggleGroup aria-label="Alignment" orientation="vertical" [defaultValue]="['center']">
|
|
141
|
+
<button slToggleGroupItem value="start">Start</button>
|
|
142
|
+
<button slToggleGroupItem value="center">Center</button>
|
|
143
143
|
</div>
|
|
144
144
|
```
|
|
145
145
|
|
|
@@ -190,9 +190,9 @@ Left alone the bar is as wide as its labels; fullWidth makes the items share the
|
|
|
190
190
|
Excerpt — not a complete module
|
|
191
191
|
|
|
192
192
|
```html
|
|
193
|
-
<div slToggleGroup aria-label="
|
|
194
|
-
<button slToggleGroupItem value="monthly">
|
|
195
|
-
<button slToggleGroupItem value="yearly">
|
|
193
|
+
<div slToggleGroup aria-label="Billing" fullWidth [defaultValue]="['monthly']">
|
|
194
|
+
<button slToggleGroupItem value="monthly">Monthly</button>
|
|
195
|
+
<button slToggleGroupItem value="yearly">Yearly</button>
|
|
196
196
|
</div>
|
|
197
197
|
```
|
|
198
198
|
|
|
@@ -203,7 +203,7 @@ A toolbar is already one tab stop with arrow navigation across every control it
|
|
|
203
203
|
Excerpt — not a complete module
|
|
204
204
|
|
|
205
205
|
```html
|
|
206
|
-
<div slToolbar aria-label="
|
|
206
|
+
<div slToolbar aria-label="Formatting">
|
|
207
207
|
<div
|
|
208
208
|
slToggleGroup
|
|
209
209
|
aria-label="Estilo do texto"
|
|
@@ -225,9 +225,9 @@ A label nine words long, one unbroken token, and a right-to-left string inside a
|
|
|
225
225
|
Excerpt — not a complete module
|
|
226
226
|
|
|
227
227
|
```html
|
|
228
|
-
<div slToggleGroup aria-label="
|
|
229
|
-
<button slToggleGroupItem value="now">
|
|
230
|
-
<button slToggleGroupItem value="digest">
|
|
228
|
+
<div slToggleGroup aria-label="Frequency" fullWidth [defaultValue]="['now']">
|
|
229
|
+
<button slToggleGroupItem value="now">Immediately</button>
|
|
230
|
+
<button slToggleGroupItem value="digest">Once a day, in the evening digest</button>
|
|
231
231
|
</div>
|
|
232
232
|
```
|
|
233
233
|
|
|
@@ -248,8 +248,8 @@ Tab reaches the group once; the arrows move focus and never toggle; Home and End
|
|
|
248
248
|
Excerpt — not a complete module
|
|
249
249
|
|
|
250
250
|
```html
|
|
251
|
-
<div slToggleGroup aria-label="
|
|
252
|
-
<button slToggleGroupItem value="day">
|
|
253
|
-
<button slToggleGroupItem value="week">
|
|
251
|
+
<div slToggleGroup aria-label="Period" [loop]="false" [defaultValue]="['week']">
|
|
252
|
+
<button slToggleGroupItem value="day">Day</button>
|
|
253
|
+
<button slToggleGroupItem value="week">Week</button>
|
|
254
254
|
</div>
|
|
255
255
|
```
|
package/docs/toggle.json
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"part": "root",
|
|
64
64
|
"element": "the consumer’s own button, with slToggle on it",
|
|
65
65
|
"required": true,
|
|
66
|
-
"purpose": "The control. It carries data-ui=\"toggle\", aria-pressed in both states, data-pressed while it is on, and the two axes. Its border is always present, so turning it on changes a
|
|
66
|
+
"purpose": "The control. It carries data-ui=\"toggle\", aria-pressed in both states, data-pressed while it is on, and the two axes. Its border is always present, so turning it on changes a color and never the geometry."
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
"part": "icon",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"type": "'outline' | 'ghost' | 'chips'",
|
|
106
106
|
"defaultValue": "outline",
|
|
107
107
|
"appliesTo": "slToggle",
|
|
108
|
-
"description": "Whether the control draws its own edge before it is on, or is a chip pressed in the neutral tone ink. There is no tone axis: a mode is one
|
|
108
|
+
"description": "Whether the control draws its own edge before it is on, or is a chip pressed in the neutral tone ink. There is no tone axis: a mode is one color when it is on, and an action that persists in one of five tones is button’s ToggleButton"
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
"name": "disabled",
|
|
@@ -262,9 +262,9 @@
|
|
|
262
262
|
{
|
|
263
263
|
"id": "variant",
|
|
264
264
|
"title": "Framed, or bare until it is on",
|
|
265
|
-
"note": "outline draws its own edge and stands beside a field; ghost is the toggle inside something already framed — a toolbar, a card header. Both turn on into the same accent pair, so “on” is one
|
|
265
|
+
"note": "outline draws its own edge and stands beside a field; ghost is the toggle inside something already framed — a toolbar, a card header. Both turn on into the same accent pair, so “on” is one color wherever the control is.",
|
|
266
266
|
"language": "html",
|
|
267
|
-
"source": "<button slToggle variant=\"ghost\">\n <ng-icon slToggleIcon name=\"lucidePin\" />\n
|
|
267
|
+
"source": "<button slToggle variant=\"ghost\">\n <ng-icon slToggleIcon name=\"lucidePin\" />\n Pin header\n</button>\n",
|
|
268
268
|
"verdict": "excerpt"
|
|
269
269
|
},
|
|
270
270
|
{
|
|
@@ -278,7 +278,7 @@
|
|
|
278
278
|
{
|
|
279
279
|
"id": "iconOnly",
|
|
280
280
|
"title": "A mark and no words",
|
|
281
|
-
"note": "Without children the toggle draws square from the control height and the mark is
|
|
281
|
+
"note": "Without children the toggle draws square from the control height and the mark is centerd in it. The name comes from aria-label, and the type makes nothing of that: the reference page is where the rule is stated, and the harness photographs it.",
|
|
282
282
|
"language": "html",
|
|
283
283
|
"source": "<button slToggle aria-label=\"Negrito\" defaultPressed>\n <ng-icon slToggleIcon name=\"lucideBold\" />\n</button>\n",
|
|
284
284
|
"verdict": "excerpt"
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
"title": "Every state the contract declares",
|
|
289
289
|
"note": "Hover takes the neutral ground when off and the accent ground’s own hover step when on. Disabled keeps both facts of a toggle that is on: the ground says unavailable and the edge still says on, so the reader learns the mode from a control they cannot change.",
|
|
290
290
|
"language": "html",
|
|
291
|
-
"source": "<button slToggle defaultPressed disabled>\n <ng-icon slToggleIcon name=\"lucidePin\" />\n
|
|
291
|
+
"source": "<button slToggle defaultPressed disabled>\n <ng-icon slToggleIcon name=\"lucidePin\" />\n Pin header\n</button>\n",
|
|
292
292
|
"verdict": "excerpt"
|
|
293
293
|
},
|
|
294
294
|
{
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
"title": "Inside a toolbar",
|
|
297
297
|
"note": "The bar is one tab stop with arrow navigation across every control it holds, and a toggle is one of those controls: Tab reaches the bar once, the arrows reach the toggle, Space presses it. The family writes no listener of its own.",
|
|
298
298
|
"language": "html",
|
|
299
|
-
"source": "<div slToolbar aria-label=\"Editor\">\n <button slToggle variant=\"ghost\" aria-label=\"Negrito\">\n <ng-icon slToggleIcon name=\"lucideBold\" />\n </button>\n <button slToggle variant=\"ghost\" aria-label=\"
|
|
299
|
+
"source": "<div slToolbar aria-label=\"Editor\">\n <button slToggle variant=\"ghost\" aria-label=\"Negrito\">\n <ng-icon slToggleIcon name=\"lucideBold\" />\n </button>\n <button slToggle variant=\"ghost\" aria-label=\"Italic\">\n <ng-icon slToggleIcon name=\"lucideItalic\" />\n </button>\n <hr slToolbarSeparator />\n <button slToggle variant=\"ghost\">\n <ng-icon slToggleIcon name=\"lucideWrapText\" />\n Quebrar\n </button>\n</div>\n",
|
|
300
300
|
"verdict": "excerpt"
|
|
301
301
|
},
|
|
302
302
|
{
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
{
|
|
327
327
|
"id": "versus",
|
|
328
328
|
"title": "Toggle, or ToggleButton",
|
|
329
|
-
"note": "A mode is one
|
|
329
|
+
"note": "A mode is one color and true the moment it is pressed: Toggle. An action that persists — Follow, Subscribe — reaches a server, waits, and stands in one of five tones beside the other actions of a page: button’s ToggleButton. Same state model, different meaning.",
|
|
330
330
|
"language": "html",
|
|
331
331
|
"source": "<button slToggle>\n <ng-icon slToggleIcon name=\"lucideWrapText\" />\n Quebrar linhas\n</button>\n<button\n slToggleButton\n [loading]=\"following()\"\n [pressed]=\"followed()\"\n (pressedChange)=\"follow($event)\"\n>\n Seguir\n</button>\n",
|
|
332
332
|
"verdict": "excerpt"
|
package/docs/toggle.md
CHANGED
|
@@ -37,7 +37,7 @@ Excerpt — not a complete module
|
|
|
37
37
|
| `pressed` | `boolean` | — | slToggle | Bound, the consumer owns the state for the life of the component. Unbound, the toggle owns it and starts from defaultPressed |
|
|
38
38
|
| `defaultPressed` | `boolean` | false | slToggle | What an uncontrolled toggle starts from, read once. A later change to it does not silently become new state |
|
|
39
39
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | slToggle | The control step. It reads the control scale, so the toggle is as tall as the field beside it |
|
|
40
|
-
| `variant` | `'outline' \| 'ghost' \| 'chips'` | outline | slToggle | Whether the control draws its own edge before it is on, or is a chip pressed in the neutral tone ink. There is no tone axis: a mode is one
|
|
40
|
+
| `variant` | `'outline' \| 'ghost' \| 'chips'` | outline | slToggle | Whether the control draws its own edge before it is on, or is a chip pressed in the neutral tone ink. There is no tone axis: a mode is one color when it is on, and an action that persists in one of five tones is button’s ToggleButton |
|
|
41
41
|
| `disabled` | `boolean` | false | slToggle | The native attribute, which is also what makes the browser refuse focus. A toggle that is on and unavailable keeps saying both |
|
|
42
42
|
| `type` | `'button' \| 'submit' \| 'reset'` | button | slToggle | The native attribute, kept when the consumer wrote it. A toggle in a form is not a form control — checkbox and switch are — so it is a button unless the consumer says otherwise |
|
|
43
43
|
| `slToggle` | `directive on a button` | — | the consumer’s element | The component is a directive on the consumer’s own button: every attribute, every listener and every structural directive around it stay as written. It stays a button, because aria-pressed on a link is a link announcing a state a link does not hold |
|
|
@@ -89,14 +89,14 @@ Excerpt — not a complete module
|
|
|
89
89
|
|
|
90
90
|
### Framed, or bare until it is on
|
|
91
91
|
|
|
92
|
-
outline draws its own edge and stands beside a field; ghost is the toggle inside something already framed — a toolbar, a card header. Both turn on into the same accent pair, so “on” is one
|
|
92
|
+
outline draws its own edge and stands beside a field; ghost is the toggle inside something already framed — a toolbar, a card header. Both turn on into the same accent pair, so “on” is one color wherever the control is.
|
|
93
93
|
|
|
94
94
|
Excerpt — not a complete module
|
|
95
95
|
|
|
96
96
|
```html
|
|
97
97
|
<button slToggle variant="ghost">
|
|
98
98
|
<ng-icon slToggleIcon name="lucidePin" />
|
|
99
|
-
|
|
99
|
+
Pin header
|
|
100
100
|
</button>
|
|
101
101
|
```
|
|
102
102
|
|
|
@@ -115,7 +115,7 @@ Excerpt — not a complete module
|
|
|
115
115
|
|
|
116
116
|
### A mark and no words
|
|
117
117
|
|
|
118
|
-
Without children the toggle draws square from the control height and the mark is
|
|
118
|
+
Without children the toggle draws square from the control height and the mark is centerd in it. The name comes from aria-label, and the type makes nothing of that: the reference page is where the rule is stated, and the harness photographs it.
|
|
119
119
|
|
|
120
120
|
Excerpt — not a complete module
|
|
121
121
|
|
|
@@ -134,7 +134,7 @@ Excerpt — not a complete module
|
|
|
134
134
|
```html
|
|
135
135
|
<button slToggle defaultPressed disabled>
|
|
136
136
|
<ng-icon slToggleIcon name="lucidePin" />
|
|
137
|
-
|
|
137
|
+
Pin header
|
|
138
138
|
</button>
|
|
139
139
|
```
|
|
140
140
|
|
|
@@ -149,7 +149,7 @@ Excerpt — not a complete module
|
|
|
149
149
|
<button slToggle variant="ghost" aria-label="Negrito">
|
|
150
150
|
<ng-icon slToggleIcon name="lucideBold" />
|
|
151
151
|
</button>
|
|
152
|
-
<button slToggle variant="ghost" aria-label="
|
|
152
|
+
<button slToggle variant="ghost" aria-label="Italic">
|
|
153
153
|
<ng-icon slToggleIcon name="lucideItalic" />
|
|
154
154
|
</button>
|
|
155
155
|
<hr slToolbarSeparator />
|
|
@@ -202,7 +202,7 @@ Excerpt — not a complete module
|
|
|
202
202
|
|
|
203
203
|
### Toggle, or ToggleButton
|
|
204
204
|
|
|
205
|
-
A mode is one
|
|
205
|
+
A mode is one color and true the moment it is pressed: Toggle. An action that persists — Follow, Subscribe — reaches a server, waits, and stands in one of five tones beside the other actions of a page: button’s ToggleButton. Same state model, different meaning.
|
|
206
206
|
|
|
207
207
|
Excerpt — not a complete module
|
|
208
208
|
|