@slotted/angular 0.1.0-beta.29 → 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 +1 -1
- package/docs/accordion.json +5 -5
- package/docs/accordion.md +12 -12
- package/docs/action-bar.json +20 -20
- package/docs/action-bar.md +28 -28
- package/docs/action-sheet.json +4 -4
- package/docs/action-sheet.md +12 -12
- package/docs/alert.json +10 -10
- package/docs/alert.md +16 -16
- package/docs/app-shell.examples.md +7 -7
- package/docs/app-shell.json +13 -13
- package/docs/app-shell.md +3 -3
- package/docs/avatar-group.json +1 -1
- package/docs/avatar-group.md +1 -1
- package/docs/avatar.json +10 -10
- package/docs/avatar.md +9 -9
- package/docs/badge.json +3 -3
- package/docs/badge.md +3 -3
- package/docs/breadcrumb.json +2 -2
- package/docs/breadcrumb.md +2 -2
- package/docs/button-group.json +1 -1
- package/docs/button-group.md +1 -1
- package/docs/button.json +11 -11
- package/docs/button.md +7 -7
- package/docs/calendar.json +4 -4
- package/docs/calendar.md +3 -3
- 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/chart.examples.md +32 -32
- package/docs/chart.json +33 -33
- package/docs/chart.md +4 -4
- 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 +1 -1
- package/docs/code-block.md +1 -1
- 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 +2 -2
- package/docs/combobox.md +2 -2
- 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 +6 -6
- package/docs/currency-field.md +4 -4
- package/docs/dashboard-grid.json +1 -1
- package/docs/data-grid.examples.md +1 -1
- package/docs/data-grid.json +2 -2
- package/docs/data-grid.props.md +1 -1
- package/docs/date-field.json +3 -3
- package/docs/date-field.md +5 -5
- package/docs/date-picker.json +1 -1
- package/docs/date-range-picker.json +1 -1
- package/docs/datetime-field.json +4 -4
- package/docs/datetime-field.md +9 -9
- package/docs/datetime-picker.json +1 -1
- package/docs/datetime-range-picker.examples.md +3 -3
- package/docs/datetime-range-picker.json +4 -4
- package/docs/datetime-range-picker.md +2 -2
- package/docs/description-list.json +5 -5
- package/docs/description-list.md +4 -4
- package/docs/detail-panel.json +10 -10
- package/docs/detail-panel.md +12 -12
- package/docs/dialog.examples.md +5 -5
- package/docs/dialog.json +10 -10
- package/docs/dialog.md +2 -2
- package/docs/dialog.props.md +2 -2
- package/docs/drawer.examples.md +13 -13
- package/docs/drawer.json +6 -6
- package/docs/event-calendar.examples.md +3 -3
- package/docs/event-calendar.json +5 -5
- package/docs/event-calendar.md +2 -2
- package/docs/field-group.json +6 -6
- package/docs/field-group.md +11 -11
- package/docs/field.examples.md +3 -3
- package/docs/field.json +4 -4
- package/docs/field.md +1 -1
- package/docs/form.json +8 -8
- package/docs/form.md +12 -12
- package/docs/fullscreen.json +4 -4
- package/docs/fullscreen.md +7 -7
- package/docs/guidelines/async-feedback.md +2 -2
- package/docs/guidelines/builders.md +1 -1
- package/docs/guidelines/composition.md +4 -4
- package/docs/guidelines/conversations.md +1 -1
- package/docs/guidelines/index.md +2 -2
- package/docs/guidelines/layout-alignment.md +5 -5
- package/docs/guidelines/overviews.md +3 -3
- package/docs/guidelines/own-elements.md +7 -7
- package/docs/guidelines/record-pages.md +1 -1
- package/docs/highlight.json +9 -9
- package/docs/highlight.md +14 -14
- package/docs/icon.json +2 -2
- package/docs/icon.md +2 -2
- 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/inline-message.json +15 -15
- package/docs/inline-message.md +22 -22
- package/docs/inline.json +1 -1
- package/docs/inline.md +1 -1
- package/docs/kbd.json +2 -2
- package/docs/kbd.md +2 -2
- package/docs/link.json +6 -6
- package/docs/link.md +6 -6
- package/docs/list-item.json +1 -1
- package/docs/list-item.md +1 -1
- package/docs/list.json +1 -1
- package/docs/listbox.json +1 -1
- package/docs/listbox.md +1 -1
- package/docs/loading-overlay.json +3 -3
- package/docs/loading-overlay.md +3 -3
- package/docs/message-scroller.json +1 -1
- package/docs/message-scroller.md +1 -1
- package/docs/message.json +11 -11
- package/docs/message.md +17 -17
- package/docs/multi-select.json +1 -1
- package/docs/notification-center.json +16 -16
- package/docs/notification-center.md +18 -22
- package/docs/number-field.examples.md +3 -3
- package/docs/number-field.json +3 -3
- package/docs/otp-input.json +10 -10
- package/docs/otp-input.md +13 -13
- package/docs/page-header.json +9 -9
- package/docs/page-header.md +20 -22
- package/docs/pagination.json +2 -2
- package/docs/pagination.md +1 -1
- package/docs/popover.examples.md +1 -1
- package/docs/popover.json +3 -3
- package/docs/popover.md +1 -1
- package/docs/progress-indicator.json +4 -4
- package/docs/progress-indicator.md +4 -4
- package/docs/prompt-composer.json +4 -4
- package/docs/prompt-composer.md +5 -5
- 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 +23 -23
- package/docs/rating.md +25 -34
- 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 +5 -5
- package/docs/scroll-area.md +6 -6
- package/docs/section.json +6 -6
- package/docs/section.md +12 -12
- package/docs/segmented-control.json +14 -14
- package/docs/segmented-control.md +32 -32
- package/docs/skeleton.json +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/skills/build-own-element/SKILL.md +3 -3
- package/docs/skills/compose-screen/SKILL.md +2 -2
- package/docs/skills/index.md +2 -2
- package/docs/skills/review-screen/SKILL.md +3 -3
- package/docs/skills/theme-app/SKILL.md +9 -9
- package/docs/skills/waiting-states/SKILL.md +1 -1
- package/docs/slider.json +8 -8
- package/docs/slider.md +12 -12
- package/docs/sparkline.json +8 -8
- package/docs/sparkline.md +6 -6
- package/docs/split-button.json +11 -11
- package/docs/split-button.md +25 -27
- package/docs/stack.json +1 -1
- package/docs/stack.md +1 -1
- package/docs/stat-card.json +3 -3
- package/docs/stat-card.md +2 -2
- package/docs/status-indicator.json +8 -8
- package/docs/status-indicator.md +5 -5
- 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 +11 -11
- package/docs/table-of-contents.md +12 -12
- package/docs/table.examples.md +1 -1
- package/docs/table.json +1 -1
- package/docs/tabs.json +1 -1
- package/docs/tabs.md +1 -1
- package/docs/tag.json +17 -17
- package/docs/tag.md +14 -14
- package/docs/tags-input.json +1 -1
- package/docs/tags-input.md +1 -1
- package/docs/text-field.examples.md +6 -6
- package/docs/text-field.json +4 -4
- package/docs/textarea.examples.md +7 -7
- package/docs/textarea.json +3 -3
- package/docs/time-field.json +3 -3
- package/docs/time-field.md +6 -6
- package/docs/time-picker.json +5 -5
- package/docs/time-picker.md +6 -6
- package/docs/time-range-picker.examples.md +5 -5
- package/docs/time-range-picker.json +5 -5
- package/docs/time-range-picker.md +1 -1
- package/docs/toast.json +6 -6
- package/docs/toast.md +6 -6
- 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 +15 -15
- package/docs/toolbar.json +11 -11
- package/docs/toolbar.md +23 -23
- package/docs/tooltip.json +3 -3
- package/docs/tooltip.md +3 -3
- 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 +2 -2
- package/docs/typography.md +2 -2
- package/docs/upload.examples.md +3 -3
- package/docs/upload.json +9 -9
- package/docs/upload.md +4 -4
- package/fesm2022/slotted-angular-alert.mjs +2 -2
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-app-shell.mjs +10 -10
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar-group.mjs +4 -4
- package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +3 -3
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +1 -1
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/slotted-angular-button-group.mjs +1 -1
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +2 -2
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +1 -1
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +2 -2
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-code-block.mjs +1 -1
- package/fesm2022/slotted-angular-code-block.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-color-picker.mjs +6 -6
- package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +3 -1
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-currency-field.mjs +2 -2
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +6 -6
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +3 -3
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-dialog.mjs +3 -3
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +1 -1
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-event-calendar.mjs +3 -3
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-field.mjs +2 -2
- package/fesm2022/slotted-angular-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-form.mjs +6 -6
- package/fesm2022/slotted-angular-form.mjs.map +1 -1
- package/fesm2022/slotted-angular-grid.mjs +2 -2
- package/fesm2022/slotted-angular-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-highlight.mjs +1 -1
- package/fesm2022/slotted-angular-highlight.mjs.map +1 -1
- package/fesm2022/slotted-angular-icon.mjs +3 -3
- package/fesm2022/slotted-angular-icon.mjs.map +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs +10 -10
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +4 -4
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline.mjs +3 -3
- package/fesm2022/slotted-angular-inline.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +1 -1
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +2 -2
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +3 -3
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
- package/fesm2022/slotted-angular-menu.mjs +2 -2
- package/fesm2022/slotted-angular-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +3 -3
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-number-field.mjs +1 -1
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-popover.mjs +2 -2
- package/fesm2022/slotted-angular-popover.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +2 -2
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +2 -2
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +5 -5
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-result-state.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +3 -3
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-stack.mjs +2 -2
- package/fesm2022/slotted-angular-stack.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +2 -2
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tabs.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +1 -1
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-theme.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-range-picker.mjs +6 -6
- package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-toast.mjs +2 -2
- package/fesm2022/slotted-angular-toast.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +3 -3
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +1 -1
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +2 -2
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +6 -6
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +15 -3
- package/types/slotted-angular-alert.d.ts +3 -3
- package/types/slotted-angular-app-shell.d.ts +4 -4
- package/types/slotted-angular-avatar-group.d.ts +3 -3
- package/types/slotted-angular-avatar.d.ts +6 -6
- package/types/slotted-angular-badge.d.ts +3 -3
- package/types/slotted-angular-breadcrumb.d.ts +1 -1
- package/types/slotted-angular-button-group.d.ts +1 -1
- package/types/slotted-angular-button.d.ts +2 -2
- package/types/slotted-angular-card.d.ts +1 -1
- package/types/slotted-angular-chart.d.ts +2 -2
- package/types/slotted-angular-checkbox.d.ts +1 -1
- package/types/slotted-angular-code-block.d.ts +1 -1
- package/types/slotted-angular-collapsible.d.ts +1 -1
- package/types/slotted-angular-color-picker.d.ts +6 -6
- 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-currency-field.d.ts +1 -1
- package/types/slotted-angular-data-grid.d.ts +1 -1
- package/types/slotted-angular-datetime-range-picker.d.ts +1 -1
- package/types/slotted-angular-description-list.d.ts +1 -1
- package/types/slotted-angular-field.d.ts +2 -2
- package/types/slotted-angular-form.d.ts +1 -1
- package/types/slotted-angular-highlight.d.ts +1 -1
- package/types/slotted-angular-icon.d.ts +2 -2
- package/types/slotted-angular-import-export-center.d.ts +9 -9
- package/types/slotted-angular-inline-message.d.ts +3 -3
- package/types/slotted-angular-inline.d.ts +1 -1
- package/types/slotted-angular-kbd.d.ts +1 -1
- package/types/slotted-angular-list.d.ts +1 -1
- package/types/slotted-angular-listbox.d.ts +2 -2
- package/types/slotted-angular-loading-overlay.d.ts +3 -3
- package/types/slotted-angular-menu.d.ts +1 -1
- package/types/slotted-angular-message-scroller.d.ts +1 -1
- package/types/slotted-angular-notification-center.d.ts +4 -4
- package/types/slotted-angular-otp-input.d.ts +1 -1
- package/types/slotted-angular-progress-indicator.d.ts +2 -2
- package/types/slotted-angular-radio-group.d.ts +2 -2
- package/types/slotted-angular-rating.d.ts +2 -2
- package/types/slotted-angular-result-state.d.ts +1 -1
- package/types/slotted-angular-segmented-control.d.ts +2 -2
- package/types/slotted-angular-status-indicator.d.ts +2 -2
- package/types/slotted-angular-switch.d.ts +1 -1
- package/types/slotted-angular-table.d.ts +1 -1
- package/types/slotted-angular-tabs.d.ts +1 -1
- package/types/slotted-angular-tag.d.ts +3 -3
- package/types/slotted-angular-tags-input.d.ts +1 -1
- package/types/slotted-angular-theme.d.ts +1 -1
- package/types/slotted-angular-time-range-picker.d.ts +1 -1
- package/types/slotted-angular-toast.d.ts +4 -4
- package/types/slotted-angular-toggle-group.d.ts +1 -1
- package/types/slotted-angular-toggle.d.ts +1 -1
- package/types/slotted-angular-tour.d.ts +2 -2
- package/types/slotted-angular-wizard.d.ts +1 -1
package/docs/AGENTS.snippet.md
CHANGED
|
@@ -19,4 +19,4 @@ Read the skill before the task:
|
|
|
19
19
|
- Show what a screen draws while it waits, and its empty and error states: `node_modules/@slotted/angular/docs/skills/waiting-states/SKILL.md`
|
|
20
20
|
- Review a screen against the guidelines, or fix what a review found: `node_modules/@slotted/angular/docs/skills/review-screen/SKILL.md`
|
|
21
21
|
- Write a component or element that no family draws: `node_modules/@slotted/angular/docs/skills/build-own-element/SKILL.md`
|
|
22
|
-
- Change the brand
|
|
22
|
+
- Change the brand color, the scheme, the density or a control's shape: `node_modules/@slotted/angular/docs/skills/theme-app/SKILL.md`
|
package/docs/accordion.json
CHANGED
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
"title": "Playground",
|
|
259
259
|
"note": "One set with every input on it, driven by the controls below the canvas. Tab reaches every header; the arrows move between them without opening anything.",
|
|
260
260
|
"language": "html",
|
|
261
|
-
"source": "<div slAccordion [(value)]=\"open\">\n <div slCollapsible value=\"
|
|
261
|
+
"source": "<div slAccordion [(value)]=\"open\">\n <div slCollapsible value=\"delivery\">\n <h3 slCollapsibleHeader><button slCollapsibleTrigger>Delivery</button></h3>\n <div slCollapsiblePanel>Scheduled for September 12.</div>\n </div>\n <div slCollapsible value=\"payment\">\n <h3 slCollapsibleHeader><button slCollapsibleTrigger>Payment</button></h3>\n <div slCollapsiblePanel>Credit card, approved.</div>\n </div>\n</div>\n",
|
|
262
262
|
"verdict": "excerpt"
|
|
263
263
|
},
|
|
264
264
|
{
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
"title": "One panel open, or several",
|
|
267
267
|
"note": "With multiple off, opening one closes the one that was — and that panel is told it closed with the reason select, not because the reader asked it to.",
|
|
268
268
|
"language": "html",
|
|
269
|
-
"source": "<div slAccordion [multiple]=\"true\" [value]=\"['
|
|
269
|
+
"source": "<div slAccordion [multiple]=\"true\" [value]=\"['delivery', 'payment']\">…</div>\n",
|
|
270
270
|
"verdict": "excerpt"
|
|
271
271
|
},
|
|
272
272
|
{
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
"title": "A set that refuses to empty",
|
|
275
275
|
"note": "The one open header carries aria-disabled=\"true\", which is the pattern’s own instruction for an accordion that does not permit its panel to be collapsed. It stays focusable and announced.",
|
|
276
276
|
"language": "html",
|
|
277
|
-
"source": "<div slAccordion [requireOpen]=\"true\" [value]=\"['
|
|
277
|
+
"source": "<div slAccordion [requireOpen]=\"true\" [value]=\"['delivery']\">…</div>\n",
|
|
278
278
|
"verdict": "excerpt"
|
|
279
279
|
},
|
|
280
280
|
{
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
"title": "When each panel’s content exists",
|
|
299
299
|
"note": "The set hands the strategy to every item: eager keeps every panel ready to transition, lazy builds one on its first open, and active drops each one as it closes.",
|
|
300
300
|
"language": "html",
|
|
301
|
-
"source": "<div slAccordion mount=\"lazy\">\n <div slCollapsible value=\"
|
|
301
|
+
"source": "<div slAccordion mount=\"lazy\">\n <div slCollapsible value=\"delivery\">\n <h3 slCollapsibleHeader><button slCollapsibleTrigger>Delivery</button></h3>\n <div slCollapsiblePanel>\n <ng-template slCollapsibleContent>{{ delivery() }}</ng-template>\n </div>\n </div>\n</div>\n",
|
|
302
302
|
"verdict": "excerpt"
|
|
303
303
|
},
|
|
304
304
|
{
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
"title": "Opening and closing everything",
|
|
315
315
|
"note": "exportAs reaches the set from the template, so the pair Angular Material ships needs no component class in between and no handle to be passed down.",
|
|
316
316
|
"language": "html",
|
|
317
|
-
"source": "<div slAccordion #set=\"slAccordion\" [multiple]=\"true\">…</div>\n\n<button slButton (click)=\"set.openAll()\">
|
|
317
|
+
"source": "<div slAccordion #set=\"slAccordion\" [multiple]=\"true\">…</div>\n\n<button slButton (click)=\"set.openAll()\">Open all</button>\n<button slButton (click)=\"set.closeAll()\">Close all</button>\n",
|
|
318
318
|
"verdict": "excerpt"
|
|
319
319
|
},
|
|
320
320
|
{
|
package/docs/accordion.md
CHANGED
|
@@ -17,13 +17,13 @@ Excerpt — not a complete module
|
|
|
17
17
|
|
|
18
18
|
```html
|
|
19
19
|
<div slAccordion [(value)]="open">
|
|
20
|
-
<div slCollapsible value="
|
|
21
|
-
<h3 slCollapsibleHeader><button slCollapsibleTrigger>
|
|
22
|
-
<div slCollapsiblePanel>
|
|
20
|
+
<div slCollapsible value="delivery">
|
|
21
|
+
<h3 slCollapsibleHeader><button slCollapsibleTrigger>Delivery</button></h3>
|
|
22
|
+
<div slCollapsiblePanel>Scheduled for September 12.</div>
|
|
23
23
|
</div>
|
|
24
|
-
<div slCollapsible value="
|
|
25
|
-
<h3 slCollapsibleHeader><button slCollapsibleTrigger>
|
|
26
|
-
<div slCollapsiblePanel>
|
|
24
|
+
<div slCollapsible value="payment">
|
|
25
|
+
<h3 slCollapsibleHeader><button slCollapsibleTrigger>Payment</button></h3>
|
|
26
|
+
<div slCollapsiblePanel>Credit card, approved.</div>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
29
|
```
|
|
@@ -97,7 +97,7 @@ With multiple off, opening one closes the one that was — and that panel is tol
|
|
|
97
97
|
Excerpt — not a complete module
|
|
98
98
|
|
|
99
99
|
```html
|
|
100
|
-
<div slAccordion [multiple]="true" [value]="['
|
|
100
|
+
<div slAccordion [multiple]="true" [value]="['delivery', 'payment']">…</div>
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
### A set that refuses to empty
|
|
@@ -107,7 +107,7 @@ The one open header carries aria-disabled="true", which is the pattern’s own i
|
|
|
107
107
|
Excerpt — not a complete module
|
|
108
108
|
|
|
109
109
|
```html
|
|
110
|
-
<div slAccordion [requireOpen]="true" [value]="['
|
|
110
|
+
<div slAccordion [requireOpen]="true" [value]="['delivery']">…</div>
|
|
111
111
|
```
|
|
112
112
|
|
|
113
113
|
### The four ways a set is drawn
|
|
@@ -138,8 +138,8 @@ Excerpt — not a complete module
|
|
|
138
138
|
|
|
139
139
|
```html
|
|
140
140
|
<div slAccordion mount="lazy">
|
|
141
|
-
<div slCollapsible value="
|
|
142
|
-
<h3 slCollapsibleHeader><button slCollapsibleTrigger>
|
|
141
|
+
<div slCollapsible value="delivery">
|
|
142
|
+
<h3 slCollapsibleHeader><button slCollapsibleTrigger>Delivery</button></h3>
|
|
143
143
|
<div slCollapsiblePanel>
|
|
144
144
|
<ng-template slCollapsibleContent>{{ delivery() }}</ng-template>
|
|
145
145
|
</div>
|
|
@@ -168,8 +168,8 @@ Excerpt — not a complete module
|
|
|
168
168
|
```html
|
|
169
169
|
<div slAccordion #set="slAccordion" [multiple]="true">…</div>
|
|
170
170
|
|
|
171
|
-
<button slButton (click)="set.openAll()">
|
|
172
|
-
<button slButton (click)="set.closeAll()">
|
|
171
|
+
<button slButton (click)="set.openAll()">Open all</button>
|
|
172
|
+
<button slButton (click)="set.closeAll()">Close all</button>
|
|
173
173
|
```
|
|
174
174
|
|
|
175
175
|
### Content the set did not choose
|
package/docs/action-bar.json
CHANGED
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"type": "string | ((hidden: number) => string)",
|
|
167
167
|
"defaultValue": "counted",
|
|
168
168
|
"appliesTo": "sl-action-bar-overflow",
|
|
169
|
-
"description": "The accessible name of the control that holds what did not fit. The default counts — \"3 more actions\" — because three dots say nothing about how much is behind them, in the language in force, with its plural
|
|
169
|
+
"description": "The accessible name of the control that holds what did not fit. The default counts — \"3 more actions\" — because three dots say nothing about how much is behind them, in the language in force, with its plural. An aria-label written on the host wins over it"
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
"name": "align, side, size",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"type": "an attribute on the consumer’s own element",
|
|
197
197
|
"defaultValue": "—",
|
|
198
198
|
"appliesTo": "every part but the overflow",
|
|
199
|
-
"description": "The bar is a footer, the status a p, the run a div — the family adds
|
|
199
|
+
"description": "The bar is a footer, the status a p, the run a div — the family adds behavior to the element the page already wanted rather than inserting one of its own"
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
"name": "provideActionBarDefaults",
|
|
@@ -239,10 +239,10 @@
|
|
|
239
239
|
"There is no APG pattern for a bar of actions, and the closest official guidance is the Toolbar pattern (w3.org/WAI/ARIA/apg/patterns/toolbar/). This family departs from it deliberately: there is no roving focus, so Tab reaches every action in the order the author wrote it. The controls here are the page’s own form actions, and a reader walking a form expects to arrive at Cancel and then at Save; a composite would make the whole bar one tab stop and put Save behind an arrow key that announces nothing. The cost is written down — a bar of ten icon-only actions is ten tab stops, and that bar is the Toolbar family.",
|
|
240
240
|
"The role follows the departure. ARIA 1.2 makes toolbar a subclass of group, and the subclass is what is asserted when there is focus management to declare; without it, group is what is true. The bar names itself with the consumer’s aria-label or aria-labelledby, because only the page knows which task it finishes — and a role written on the host is read with HostAttributeToken before the host binding, so what the consumer wrote survives.",
|
|
241
241
|
"The only keyboard this family owns is the overflow trigger’s, and it is the Menu family’s: Enter, Space and ArrowDown open the surface, Escape closes it and returns focus to the trigger. Focus is moved onto the trigger before the action holding it is hidden, so a reader who was on the fifth button lands on the control that now holds it rather than on the document body.",
|
|
242
|
-
"The trigger’s accessible name carries the count rather than the mark, so a reader hears “3 more actions” instead of three dots, in the language in force with its plural
|
|
242
|
+
"The trigger’s accessible name carries the count rather than the mark, so a reader hears “3 more actions” instead of three dots, in the language in force with its plural. The count in the DOM, data-collapsed, is the same fact for a stylesheet or a test.",
|
|
243
243
|
"A bar out of action is a fieldset around it: the platform disables every control inside and takes them out of the tab order with it. The family writes no data-disabled and declares no disabled state, because it does not own the capability — a container that refused interaction while its controls still looked operable is the defect the state precedence exists to prevent.",
|
|
244
244
|
"A bar that is not present is painted out with display:none once its exit has finished, which takes it out of the accessibility tree and out of the tab order together. Carbon’s batch bar writes aria-hidden on its root instead and leaves the buttons inside reachable by Tab, which puts focus in a region the screen reader announces as absent. Appearing never moves focus either: the bar is not a dialog, and taking focus from a reader who is ticking boxes is exactly the jump a selection bar must not make.",
|
|
245
|
-
"Under forced
|
|
245
|
+
"Under forced colors the rule between two runs keeps its own paint, because a background flattens to Canvas and would take the boundary between a destructive action and a frequent one with it. Everything else the reader sees belongs to the controls the consumer placed, and each keeps its own states, its own focus ring and its own contrast."
|
|
246
246
|
]
|
|
247
247
|
}
|
|
248
248
|
},
|
|
@@ -303,15 +303,15 @@
|
|
|
303
303
|
"title": "Playground",
|
|
304
304
|
"note": "One bar with every axis on it, driven by the controls below the canvas. Tab through it: each action is its own stop, in the order the form is read, and no arrow key is bound.",
|
|
305
305
|
"language": "html",
|
|
306
|
-
"source": "<footer slActionBar aria-label=\"
|
|
306
|
+
"source": "<footer slActionBar aria-label=\"Order actions\">\n <div slActionBarStatus>Draft saved at 14:07</div>\n <div slActionBarActions>\n <div slActionBarAction>\n <button slButton variant=\"ghost\" tone=\"secondary\" type=\"button\">Cancelar</button>\n </div>\n <div slActionBarAction>\n <button slButton type=\"button\">Submit for approval</button>\n </div>\n </div>\n</footer>\n",
|
|
307
307
|
"verdict": "excerpt"
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
310
|
"id": "priority",
|
|
311
311
|
"title": "Which action gives way first",
|
|
312
|
-
"note": "Narrow the stage and watch the order: “
|
|
312
|
+
"note": "Narrow the stage and watch the order: “Preview” goes without a trace, “Duplicate” becomes a menu row, “Send back” follows it, and “Approve” never moves. Position decides nothing here — the rank does.",
|
|
313
313
|
"language": "html",
|
|
314
|
-
"source": "<div slActionBarActions>\n <!-- Gives way before every other rank, and is not offered in the menu. -->\n <div slActionBarAction=\"hide\">\n <button slButton variant=\"ghost\" type=\"button\">
|
|
314
|
+
"source": "<div slActionBarActions>\n <!-- Gives way before every other rank, and is not offered in the menu. -->\n <div slActionBarAction=\"hide\">\n <button slButton variant=\"ghost\" type=\"button\">Preview</button>\n </div>\n <!-- low is the default for an action that declares a counterpart. -->\n <div slActionBarAction [slActionBarActionCounterpart]=\"duplicate\">\n <button slButton variant=\"ghost\" type=\"button\">Duplicar</button>\n </div>\n <div slActionBarAction=\"high\" [slActionBarActionCounterpart]=\"send\">\n <button slButton variant=\"outline\" type=\"button\">Devolver</button>\n </div>\n <!-- No counterpart, so it is pinned: it has nowhere to go. -->\n <div slActionBarAction>\n <button slButton type=\"button\">Aprovar</button>\n </div>\n <sl-action-bar-overflow />\n</div>\n\n<ng-template #duplicate><button slMenuItem type=\"button\">Duplicar</button></ng-template>\n<ng-template #send><button slMenuItem type=\"button\">Devolver</button></ng-template>\n",
|
|
315
315
|
"verdict": "excerpt"
|
|
316
316
|
},
|
|
317
317
|
{
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
"title": "What is left over, behind one control",
|
|
320
320
|
"note": "The surface holds what gave way and what was never in the bar, in the bar’s own order, with a rule wherever one of the bar’s own rules divided two of them. The trigger’s name is the count, not three dots.",
|
|
321
321
|
"language": "html",
|
|
322
|
-
"source": "<div slActionBarActions>\n <div slActionBarAction=\"always\" [slActionBarActionCounterpart]=\"history\">\n <button slButton variant=\"ghost\" type=\"button\">
|
|
322
|
+
"source": "<div slActionBarActions>\n <div slActionBarAction=\"always\" [slActionBarActionCounterpart]=\"history\">\n <button slButton variant=\"ghost\" type=\"button\">View history</button>\n </div>\n <div slActionBarAction>\n <button slButton type=\"button\">Aprovar</button>\n </div>\n <sl-action-bar-overflow [label]=\"count\" />\n</div>\n\n<ng-template #history><button slMenuItem type=\"button\">View history</button></ng-template>\n",
|
|
323
323
|
"verdict": "excerpt"
|
|
324
324
|
},
|
|
325
325
|
{
|
|
@@ -327,15 +327,15 @@
|
|
|
327
327
|
"title": "The action that confirms does not move",
|
|
328
328
|
"note": "Four bars on one stage: no message, a short one, one that fills the bar, and a secondary action removed by a permission filter. Read the right edge — “Aprovar” is on the same pixel in all four.",
|
|
329
329
|
"language": "html",
|
|
330
|
-
"source": "<!-- The run carries margin-inline-start: auto, so what grows or leaves\n moves what is *before* the last action and never the last action. -->\n<footer slActionBar aria-label=\"
|
|
330
|
+
"source": "<!-- The run carries margin-inline-start: auto, so what grows or leaves\n moves what is *before* the last action and never the last action. -->\n<footer slActionBar aria-label=\"Order actions\">\n @if (dirty()) {\n <div slActionBarStatus>{{ message() }}</div>\n }\n <div slActionBarActions>\n @if (canReturn()) {\n <div slActionBarAction>\n <button slButton variant=\"ghost\" type=\"button\">Devolver</button>\n </div>\n }\n <div slActionBarAction>\n <button slButton [loading]=\"saving()\" type=\"button\">Aprovar</button>\n </div>\n </div>\n</footer>\n",
|
|
331
331
|
"verdict": "excerpt"
|
|
332
332
|
},
|
|
333
333
|
{
|
|
334
334
|
"id": "danger",
|
|
335
335
|
"title": "A destructive action, and the rule beside it",
|
|
336
|
-
"note": "The first bar keeps “
|
|
336
|
+
"note": "The first bar keeps “Void invoice” away from the two frequent actions with the bar’s own rule. The second is the case nobody writes down: the action that confirms *is* the destructive one, and the rule is what a hand about to press Keep reads.",
|
|
337
337
|
"language": "html",
|
|
338
|
-
"source": "<div slActionBarActions>\n <div slActionBarAction>\n <button slButton variant=\"ghost\" tone=\"danger\" type=\"button\">
|
|
338
|
+
"source": "<div slActionBarActions>\n <div slActionBarAction>\n <button slButton variant=\"ghost\" tone=\"danger\" type=\"button\">Void invoice</button>\n </div>\n <div slActionBarSeparator></div>\n <div slActionBarAction>\n <button slButton variant=\"ghost\" tone=\"secondary\" type=\"button\">Cancelar</button>\n </div>\n <div slActionBarAction>\n <button slButton type=\"button\">Guardar</button>\n </div>\n</div>\n",
|
|
339
339
|
"verdict": "excerpt"
|
|
340
340
|
},
|
|
341
341
|
{
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
"title": "The bar a selection brings",
|
|
352
352
|
"note": "Table owns the selection and its count; this family supplies the place, the ranks and the entry. Toggle the selection and watch the bar arrive from below rather than appear — and be painted out when it goes, rather than staying reachable by Tab.",
|
|
353
353
|
"language": "html",
|
|
354
|
-
"source": "<footer\n slActionBar\n aria-label=\"
|
|
354
|
+
"source": "<footer\n slActionBar\n aria-label=\"Selection actions\"\n variant=\"raised\"\n [present]=\"selected().length > 0\"\n>\n <div slActionBarStatus>\n <strong>{{ selected().length }} invoices selected</strong>\n <button slButton size=\"sm\" variant=\"ghost\" tone=\"accent\" type=\"button\" (click)=\"selectAll()\">\n Select all {{ total() }} in the filter\n </button>\n </div>\n <div slActionBarActions>\n <div slActionBarAction [slActionBarActionCounterpart]=\"exported\">\n <button slButton variant=\"ghost\" type=\"button\">Exportar</button>\n </div>\n <div slActionBarSeparator></div>\n <div slActionBarAction>\n <button slButton tone=\"danger\" type=\"button\">Anular</button>\n </div>\n </div>\n</footer>\n",
|
|
355
355
|
"verdict": "excerpt"
|
|
356
356
|
},
|
|
357
357
|
{
|
|
@@ -359,15 +359,15 @@
|
|
|
359
359
|
"title": "Stuck to the end of what scrolls",
|
|
360
360
|
"note": "Scroll the panel: the bar stays at the bottom and the last line of content scrolls up to it rather than under it. Inside a page it reads --slotted-page-sticky-bottom and stops above that page’s own footer instead of covering it.",
|
|
361
361
|
"language": "html",
|
|
362
|
-
"source": "<footer slActionBar aria-label=\"
|
|
362
|
+
"source": "<footer slActionBar aria-label=\"Form actions\" variant=\"raised\" sticky>\n <div slActionBarActions>\n <div slActionBarAction>\n <button slButton type=\"button\">Guardar</button>\n </div>\n </div>\n</footer>\n",
|
|
363
363
|
"verdict": "excerpt"
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
366
|
"id": "align",
|
|
367
367
|
"title": "Where the run sits",
|
|
368
|
-
"note": "end is the anchor and the default; start puts the run beside the status; center places it in what is left. The field disagrees about this one — Salesforce
|
|
368
|
+
"note": "end is the anchor and the default; start puts the run beside the status; center places it in what is left. The field disagrees about this one — Salesforce centers a docked footer, Polaris ends it, Fluent starts it — so it is an axis.",
|
|
369
369
|
"language": "html",
|
|
370
|
-
"source": "<footer slActionBar aria-label=\"
|
|
370
|
+
"source": "<footer slActionBar aria-label=\"Actions\" align=\"center\" variant=\"raised\"></footer>\n",
|
|
371
371
|
"verdict": "excerpt"
|
|
372
372
|
},
|
|
373
373
|
{
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
"title": "The step the bar sits at",
|
|
376
376
|
"note": "The size moves the bar’s own inset, gap, minimum height and rule — and it reaches the buttons through the Button family’s own defaults, so a bar does not make a consumer repeat size on every control. A button that states its own still wins.",
|
|
377
377
|
"language": "html",
|
|
378
|
-
"source": "<footer slActionBar aria-label=\"
|
|
378
|
+
"source": "<footer slActionBar aria-label=\"Actions\" size=\"sm\" variant=\"raised\">\n <div slActionBarActions>\n <!-- No size here: the bar hands its own down. -->\n <div slActionBarAction>\n <button slButton variant=\"ghost\" type=\"button\">Cancelar</button>\n </div>\n <div slActionBarAction>\n <button slButton size=\"lg\" type=\"button\">Guardar</button>\n </div>\n </div>\n</footer>\n",
|
|
379
379
|
"verdict": "excerpt"
|
|
380
380
|
},
|
|
381
381
|
{
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
"title": "Whether the bar paints a ground",
|
|
384
384
|
"note": "plain is the default and paints nothing — a bar inside a page footer is already standing on a ground that family painted. raised takes the surface and one hairline at the top, which is the bar with no page around it: a drawer, a dialog, a card.",
|
|
385
385
|
"language": "html",
|
|
386
|
-
"source": "<footer slActionBar aria-label=\"
|
|
386
|
+
"source": "<footer slActionBar aria-label=\"Actions\" variant=\"plain\"></footer>\n<footer slActionBar aria-label=\"Actions\" variant=\"raised\"></footer>\n",
|
|
387
387
|
"verdict": "excerpt"
|
|
388
388
|
},
|
|
389
389
|
{
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
"title": "The bar on a phone",
|
|
392
392
|
"note": "Below 24rem of container a bar with no overflow control becomes a full-width column with the action that confirms on top, and the collapse stops running — a column has room for everything, so there is no menu. A bar with an overflow control keeps one row: the actions without a counterpart stay and the rest fold into the menu. The DOM order does not change, so Tab still reads the form’s order.",
|
|
393
393
|
"language": "html",
|
|
394
|
-
"source": "<!-- The breakpoint lives in the stylesheet's container query, and the\n directive reads back the property that query raises rather than\n holding a copy of the number. -->\n<footer slActionBar aria-label=\"
|
|
394
|
+
"source": "<!-- The breakpoint lives in the stylesheet's container query, and the\n directive reads back the property that query raises rather than\n holding a copy of the number. -->\n<footer slActionBar aria-label=\"Order actions\" variant=\"raised\">\n <div slActionBarActions>\n <div slActionBarAction>\n <button slButton variant=\"ghost\" type=\"button\">Discard changes</button>\n </div>\n <div slActionBarAction>\n <button slButton type=\"button\">Save changes</button>\n </div>\n </div>\n</footer>\n",
|
|
395
395
|
"verdict": "excerpt"
|
|
396
396
|
},
|
|
397
397
|
{
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
"title": "Setting it once, and standing beside other families",
|
|
408
408
|
"note": "provideActionBarDefaults carries the four decisions an application takes once. The bar is what goes inside a page footer, inside a drawer and under a table — and every part is a directive on the consumer’s own element.",
|
|
409
409
|
"language": "ts",
|
|
410
|
-
"source": "bootstrapApplication(App, {\n providers: [provideActionBarDefaults({ size: 'sm', variant: 'plain' })],\n});\n\n// The bar is a directive, so the element is the page's own:\n// <footer slActionBar aria-label=\"
|
|
410
|
+
"source": "bootstrapApplication(App, {\n providers: [provideActionBarDefaults({ size: 'sm', variant: 'plain' })],\n});\n\n// The bar is a directive, so the element is the page's own:\n// <footer slActionBar aria-label=\"Order actions\">…</footer>\n",
|
|
411
411
|
"verdict": "excerpt"
|
|
412
412
|
},
|
|
413
413
|
{
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
"title": "The keyboard, and what a reader hears",
|
|
416
416
|
"note": "Tab reaches each action in the order the author wrote it. The bar is role=\"group\" with the consumer’s own name; a fieldset around it is how it goes out of action, and the platform takes the controls out of the tab order with it.",
|
|
417
417
|
"language": "html",
|
|
418
|
-
"source": "<fieldset [disabled]=\"submitting()\">\n <footer slActionBar aria-label=\"
|
|
418
|
+
"source": "<fieldset [disabled]=\"submitting()\">\n <footer slActionBar aria-label=\"Order actions\">\n <div slActionBarActions>\n <div slActionBarAction>\n <button slButton variant=\"ghost\" type=\"button\">Cancelar</button>\n </div>\n <div slActionBarAction>\n <button slButton type=\"button\">Guardar</button>\n </div>\n </div>\n </footer>\n</fieldset>\n",
|
|
419
419
|
"verdict": "excerpt"
|
|
420
420
|
}
|
|
421
421
|
]
|
package/docs/action-bar.md
CHANGED
|
@@ -16,14 +16,14 @@ Selector: `[slActionBar], [slActionBarStatus], [slActionBarActions], [slActionBa
|
|
|
16
16
|
Excerpt — not a complete module
|
|
17
17
|
|
|
18
18
|
```html
|
|
19
|
-
<footer slActionBar aria-label="
|
|
20
|
-
<div slActionBarStatus>
|
|
19
|
+
<footer slActionBar aria-label="Order actions">
|
|
20
|
+
<div slActionBarStatus>Draft saved at 14:07</div>
|
|
21
21
|
<div slActionBarActions>
|
|
22
22
|
<div slActionBarAction>
|
|
23
23
|
<button slButton variant="ghost" tone="secondary" type="button">Cancelar</button>
|
|
24
24
|
</div>
|
|
25
25
|
<div slActionBarAction>
|
|
26
|
-
<button slButton type="button">
|
|
26
|
+
<button slButton type="button">Submit for approval</button>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
29
|
</footer>
|
|
@@ -52,11 +52,11 @@ Excerpt — not a complete module
|
|
|
52
52
|
| `overflowChange` | `EventEmitter<number>` | — | slActionBar | How many actions gave way, once per change. There is no two-way binding over the collapsed set: it is a measurement, and a consumer who owned it could assert that a bar fits when the layout says it does not |
|
|
53
53
|
| `slActionBarAction` | `'pinned' \| 'high' \| 'low' \| 'hide' \| 'always'` | low with a counterpart, pinned without | slActionBarAction | The selector’s own value is the rank. pinned never goes; high goes after low and hide; low is the first into the surface; hide goes first and is not offered in the surface at all; always is never in the bar. A rank that needs a counterpart and has none behaves as pinned, so a consumer error leaves the control on the bar |
|
|
54
54
|
| `slActionBarActionCounterpart` | `TemplateRef<unknown>` | — | slActionBarAction | What the action becomes in the surface, as an ng-template rendered only while the action is in it — so a menu item that is never reached builds nothing. An action that declares none is pinned: pinning is the absence of a counterpart rather than a second input |
|
|
55
|
-
| `label` | `string \| ((hidden: number) => string)` | counted | sl-action-bar-overflow | The accessible name of the control that holds what did not fit. The default counts — "3 more actions" — because three dots say nothing about how much is behind them, in the language in force, with its plural
|
|
55
|
+
| `label` | `string \| ((hidden: number) => string)` | counted | sl-action-bar-overflow | The accessible name of the control that holds what did not fit. The default counts — "3 more actions" — because three dots say nothing about how much is behind them, in the language in force, with its plural. An aria-label written on the host wins over it |
|
|
56
56
|
| `align, side, size` | `MenuAlign \| MenuSide \| MenuSize` | from the Menu defaults | sl-action-bar-overflow | Where the surface sits against the trigger, and its own measure. Everything else about the layer an application sets once with provideMenuDefaults |
|
|
57
57
|
| `aria-label` | `string` | — | slActionBar | The name of the bar. The family writes none: only the page knows which task the bar finishes. aria-labelledby works the same way |
|
|
58
58
|
| `role` | `string` | group | slActionBar | group, because there is no roving focus to declare — ARIA makes toolbar a subclass of group, and the subclass is what is asserted when there is focus management. A role written on the host is read with HostAttributeToken and survives, but a consumer who wants the composite wants the Toolbar family |
|
|
59
|
-
| `the directive form` | `an attribute on the consumer’s own element` | — | every part but the overflow | The bar is a footer, the status a p, the run a div — the family adds
|
|
59
|
+
| `the directive form` | `an attribute on the consumer’s own element` | — | every part but the overflow | The bar is a footer, the status a p, the run a div — the family adds behavior to the element the page already wanted rather than inserting one of its own |
|
|
60
60
|
| `provideActionBarDefaults` | `{ variant, size, align, sticky }` | — | an injector | The four decisions an application takes once. A bar that states any of them itself still wins |
|
|
61
61
|
| `exportAs` | `'slActionBar' and one per part` | — | a template | Reaches the instance from the template — surfaceUnits() for what the menu holds, and refresh() to measure again after something the DOM cannot report |
|
|
62
62
|
| `ng-template` | `TemplateRef` | — | slActionBarActionCounterpart | The counterpart is lazy: the outlet renders it only while the action is in the surface, and it is given an injector carrying the menu this component draws — so slMenuItem finds the surface it is actually inside |
|
|
@@ -77,10 +77,10 @@ Excerpt — not a complete module
|
|
|
77
77
|
- There is no APG pattern for a bar of actions, and the closest official guidance is the Toolbar pattern (w3.org/WAI/ARIA/apg/patterns/toolbar/). This family departs from it deliberately: there is no roving focus, so Tab reaches every action in the order the author wrote it. The controls here are the page’s own form actions, and a reader walking a form expects to arrive at Cancel and then at Save; a composite would make the whole bar one tab stop and put Save behind an arrow key that announces nothing. The cost is written down — a bar of ten icon-only actions is ten tab stops, and that bar is the Toolbar family.
|
|
78
78
|
- The role follows the departure. ARIA 1.2 makes toolbar a subclass of group, and the subclass is what is asserted when there is focus management to declare; without it, group is what is true. The bar names itself with the consumer’s aria-label or aria-labelledby, because only the page knows which task it finishes — and a role written on the host is read with HostAttributeToken before the host binding, so what the consumer wrote survives.
|
|
79
79
|
- The only keyboard this family owns is the overflow trigger’s, and it is the Menu family’s: Enter, Space and ArrowDown open the surface, Escape closes it and returns focus to the trigger. Focus is moved onto the trigger before the action holding it is hidden, so a reader who was on the fifth button lands on the control that now holds it rather than on the document body.
|
|
80
|
-
- The trigger’s accessible name carries the count rather than the mark, so a reader hears “3 more actions” instead of three dots, in the language in force with its plural
|
|
80
|
+
- The trigger’s accessible name carries the count rather than the mark, so a reader hears “3 more actions” instead of three dots, in the language in force with its plural. The count in the DOM, data-collapsed, is the same fact for a stylesheet or a test.
|
|
81
81
|
- A bar out of action is a fieldset around it: the platform disables every control inside and takes them out of the tab order with it. The family writes no data-disabled and declares no disabled state, because it does not own the capability — a container that refused interaction while its controls still looked operable is the defect the state precedence exists to prevent.
|
|
82
82
|
- A bar that is not present is painted out with display:none once its exit has finished, which takes it out of the accessibility tree and out of the tab order together. Carbon’s batch bar writes aria-hidden on its root instead and leaves the buttons inside reachable by Tab, which puts focus in a region the screen reader announces as absent. Appearing never moves focus either: the bar is not a dialog, and taking focus from a reader who is ticking boxes is exactly the jump a selection bar must not make.
|
|
83
|
-
- Under forced
|
|
83
|
+
- Under forced colors the rule between two runs keeps its own paint, because a background flattens to Canvas and would take the boundary between a destructive action and a frequent one with it. Everything else the reader sees belongs to the controls the consumer placed, and each keeps its own states, its own focus ring and its own contrast.
|
|
84
84
|
|
|
85
85
|
## Tokens
|
|
86
86
|
|
|
@@ -90,7 +90,7 @@ Excerpt — not a complete module
|
|
|
90
90
|
|
|
91
91
|
### Which action gives way first
|
|
92
92
|
|
|
93
|
-
Narrow the stage and watch the order: “
|
|
93
|
+
Narrow the stage and watch the order: “Preview” goes without a trace, “Duplicate” becomes a menu row, “Send back” follows it, and “Approve” never moves. Position decides nothing here — the rank does.
|
|
94
94
|
|
|
95
95
|
Excerpt — not a complete module
|
|
96
96
|
|
|
@@ -98,7 +98,7 @@ Excerpt — not a complete module
|
|
|
98
98
|
<div slActionBarActions>
|
|
99
99
|
<!-- Gives way before every other rank, and is not offered in the menu. -->
|
|
100
100
|
<div slActionBarAction="hide">
|
|
101
|
-
<button slButton variant="ghost" type="button">
|
|
101
|
+
<button slButton variant="ghost" type="button">Preview</button>
|
|
102
102
|
</div>
|
|
103
103
|
<!-- low is the default for an action that declares a counterpart. -->
|
|
104
104
|
<div slActionBarAction [slActionBarActionCounterpart]="duplicate">
|
|
@@ -127,7 +127,7 @@ Excerpt — not a complete module
|
|
|
127
127
|
```html
|
|
128
128
|
<div slActionBarActions>
|
|
129
129
|
<div slActionBarAction="always" [slActionBarActionCounterpart]="history">
|
|
130
|
-
<button slButton variant="ghost" type="button">
|
|
130
|
+
<button slButton variant="ghost" type="button">View history</button>
|
|
131
131
|
</div>
|
|
132
132
|
<div slActionBarAction>
|
|
133
133
|
<button slButton type="button">Aprovar</button>
|
|
@@ -135,7 +135,7 @@ Excerpt — not a complete module
|
|
|
135
135
|
<sl-action-bar-overflow [label]="count" />
|
|
136
136
|
</div>
|
|
137
137
|
|
|
138
|
-
<ng-template #history><button slMenuItem type="button">
|
|
138
|
+
<ng-template #history><button slMenuItem type="button">View history</button></ng-template>
|
|
139
139
|
```
|
|
140
140
|
|
|
141
141
|
### The action that confirms does not move
|
|
@@ -147,7 +147,7 @@ Excerpt — not a complete module
|
|
|
147
147
|
```html
|
|
148
148
|
<!-- The run carries margin-inline-start: auto, so what grows or leaves
|
|
149
149
|
moves what is *before* the last action and never the last action. -->
|
|
150
|
-
<footer slActionBar aria-label="
|
|
150
|
+
<footer slActionBar aria-label="Order actions">
|
|
151
151
|
@if (dirty()) {
|
|
152
152
|
<div slActionBarStatus>{{ message() }}</div>
|
|
153
153
|
}
|
|
@@ -166,14 +166,14 @@ Excerpt — not a complete module
|
|
|
166
166
|
|
|
167
167
|
### A destructive action, and the rule beside it
|
|
168
168
|
|
|
169
|
-
The first bar keeps “
|
|
169
|
+
The first bar keeps “Void invoice” away from the two frequent actions with the bar’s own rule. The second is the case nobody writes down: the action that confirms *is* the destructive one, and the rule is what a hand about to press Keep reads.
|
|
170
170
|
|
|
171
171
|
Excerpt — not a complete module
|
|
172
172
|
|
|
173
173
|
```html
|
|
174
174
|
<div slActionBarActions>
|
|
175
175
|
<div slActionBarAction>
|
|
176
|
-
<button slButton variant="ghost" tone="danger" type="button">
|
|
176
|
+
<button slButton variant="ghost" tone="danger" type="button">Void invoice</button>
|
|
177
177
|
</div>
|
|
178
178
|
<div slActionBarSeparator></div>
|
|
179
179
|
<div slActionBarAction>
|
|
@@ -206,14 +206,14 @@ Excerpt — not a complete module
|
|
|
206
206
|
```html
|
|
207
207
|
<footer
|
|
208
208
|
slActionBar
|
|
209
|
-
aria-label="
|
|
209
|
+
aria-label="Selection actions"
|
|
210
210
|
variant="raised"
|
|
211
211
|
[present]="selected().length > 0"
|
|
212
212
|
>
|
|
213
213
|
<div slActionBarStatus>
|
|
214
|
-
<strong>{{ selected().length }}
|
|
214
|
+
<strong>{{ selected().length }} invoices selected</strong>
|
|
215
215
|
<button slButton size="sm" variant="ghost" tone="accent" type="button" (click)="selectAll()">
|
|
216
|
-
|
|
216
|
+
Select all {{ total() }} in the filter
|
|
217
217
|
</button>
|
|
218
218
|
</div>
|
|
219
219
|
<div slActionBarActions>
|
|
@@ -235,7 +235,7 @@ Scroll the panel: the bar stays at the bottom and the last line of content scrol
|
|
|
235
235
|
Excerpt — not a complete module
|
|
236
236
|
|
|
237
237
|
```html
|
|
238
|
-
<footer slActionBar aria-label="
|
|
238
|
+
<footer slActionBar aria-label="Form actions" variant="raised" sticky>
|
|
239
239
|
<div slActionBarActions>
|
|
240
240
|
<div slActionBarAction>
|
|
241
241
|
<button slButton type="button">Guardar</button>
|
|
@@ -246,12 +246,12 @@ Excerpt — not a complete module
|
|
|
246
246
|
|
|
247
247
|
### Where the run sits
|
|
248
248
|
|
|
249
|
-
end is the anchor and the default; start puts the run beside the status; center places it in what is left. The field disagrees about this one — Salesforce
|
|
249
|
+
end is the anchor and the default; start puts the run beside the status; center places it in what is left. The field disagrees about this one — Salesforce centers a docked footer, Polaris ends it, Fluent starts it — so it is an axis.
|
|
250
250
|
|
|
251
251
|
Excerpt — not a complete module
|
|
252
252
|
|
|
253
253
|
```html
|
|
254
|
-
<footer slActionBar aria-label="
|
|
254
|
+
<footer slActionBar aria-label="Actions" align="center" variant="raised"></footer>
|
|
255
255
|
```
|
|
256
256
|
|
|
257
257
|
### The step the bar sits at
|
|
@@ -261,7 +261,7 @@ The size moves the bar’s own inset, gap, minimum height and rule — and it re
|
|
|
261
261
|
Excerpt — not a complete module
|
|
262
262
|
|
|
263
263
|
```html
|
|
264
|
-
<footer slActionBar aria-label="
|
|
264
|
+
<footer slActionBar aria-label="Actions" size="sm" variant="raised">
|
|
265
265
|
<div slActionBarActions>
|
|
266
266
|
<!-- No size here: the bar hands its own down. -->
|
|
267
267
|
<div slActionBarAction>
|
|
@@ -281,8 +281,8 @@ plain is the default and paints nothing — a bar inside a page footer is alread
|
|
|
281
281
|
Excerpt — not a complete module
|
|
282
282
|
|
|
283
283
|
```html
|
|
284
|
-
<footer slActionBar aria-label="
|
|
285
|
-
<footer slActionBar aria-label="
|
|
284
|
+
<footer slActionBar aria-label="Actions" variant="plain"></footer>
|
|
285
|
+
<footer slActionBar aria-label="Actions" variant="raised"></footer>
|
|
286
286
|
```
|
|
287
287
|
|
|
288
288
|
### The bar on a phone
|
|
@@ -295,13 +295,13 @@ Excerpt — not a complete module
|
|
|
295
295
|
<!-- The breakpoint lives in the stylesheet's container query, and the
|
|
296
296
|
directive reads back the property that query raises rather than
|
|
297
297
|
holding a copy of the number. -->
|
|
298
|
-
<footer slActionBar aria-label="
|
|
298
|
+
<footer slActionBar aria-label="Order actions" variant="raised">
|
|
299
299
|
<div slActionBarActions>
|
|
300
300
|
<div slActionBarAction>
|
|
301
|
-
<button slButton variant="ghost" type="button">
|
|
301
|
+
<button slButton variant="ghost" type="button">Discard changes</button>
|
|
302
302
|
</div>
|
|
303
303
|
<div slActionBarAction>
|
|
304
|
-
<button slButton type="button">
|
|
304
|
+
<button slButton type="button">Save changes</button>
|
|
305
305
|
</div>
|
|
306
306
|
</div>
|
|
307
307
|
</footer>
|
|
@@ -339,7 +339,7 @@ bootstrapApplication(App, {
|
|
|
339
339
|
});
|
|
340
340
|
|
|
341
341
|
// The bar is a directive, so the element is the page's own:
|
|
342
|
-
// <footer slActionBar aria-label="
|
|
342
|
+
// <footer slActionBar aria-label="Order actions">…</footer>
|
|
343
343
|
```
|
|
344
344
|
|
|
345
345
|
### The keyboard, and what a reader hears
|
|
@@ -350,7 +350,7 @@ Excerpt — not a complete module
|
|
|
350
350
|
|
|
351
351
|
```html
|
|
352
352
|
<fieldset [disabled]="submitting()">
|
|
353
|
-
<footer slActionBar aria-label="
|
|
353
|
+
<footer slActionBar aria-label="Order actions">
|
|
354
354
|
<div slActionBarActions>
|
|
355
355
|
<div slActionBarAction>
|
|
356
356
|
<button slButton variant="ghost" type="button">Cancelar</button>
|
package/docs/action-sheet.json
CHANGED
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
"title": "A trigger, the actions and the way out",
|
|
443
443
|
"note": "Press Partilhar: the sheet rises from the bottom edge over a scrim, focus lands on the first action, and choosing one closes it with the reason select and the action’s value.",
|
|
444
444
|
"language": "html",
|
|
445
|
-
"source": "<button slButton [slActionSheetTrigger]=\"sheet\">Partilhar</button>\n<sl-action-sheet #sheet=\"slActionSheet\" (openChangeRequest)=\"run($event.result)\">\n <header slActionSheetHeader>\n <h2 slActionSheetTitle>
|
|
445
|
+
"source": "<button slButton [slActionSheetTrigger]=\"sheet\">Partilhar</button>\n<sl-action-sheet #sheet=\"slActionSheet\" (openChangeRequest)=\"run($event.result)\">\n <header slActionSheetHeader>\n <h2 slActionSheetTitle>Share report</h2>\n <p slActionSheetMessage>Anyone who receives the link sees today's version.</p>\n </header>\n <div slActionSheetList>\n <button slActionSheetItem value=\"copy\">Copy link</button>\n <button slActionSheetItem value=\"pdf\">Download PDF</button>\n </div>\n <div slActionSheetFooter><button slActionSheetCancel>Cancelar</button></div>\n</sl-action-sheet>\n",
|
|
446
446
|
"verdict": "excerpt"
|
|
447
447
|
},
|
|
448
448
|
{
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
"title": "The destructive choice, at the top",
|
|
451
451
|
"note": "tone=\"danger\" paints the words, the mark and the highlight red, and the destructive action goes first, where it is noticed. Opened, this sheet puts focus on Cancelar rather than on the danger.",
|
|
452
452
|
"language": "html",
|
|
453
|
-
"source": "<div slActionSheetList>\n <button slActionSheetItem value=\"delete\" tone=\"danger\">
|
|
453
|
+
"source": "<div slActionSheetList>\n <button slActionSheetItem value=\"delete\" tone=\"danger\">Delete draft</button>\n <button slActionSheetItem value=\"save\">Save draft</button>\n</div>\n",
|
|
454
454
|
"verdict": "excerpt"
|
|
455
455
|
},
|
|
456
456
|
{
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
"title": "Groups, a rule, a second line and an action that is not available",
|
|
459
459
|
"note": "A group is named by its label, a separator draws the rule between two runs, and a disabled action keeps its place and says in its second line why it cannot run — it stays in the arrow ring and refuses the press.",
|
|
460
460
|
"language": "html",
|
|
461
|
-
"source": "<div slActionSheetGroup>\n <div slActionSheetGroupLabel>
|
|
461
|
+
"source": "<div slActionSheetGroup>\n <div slActionSheetGroupLabel>Send</div>\n <button slActionSheetItem value=\"remind\">Remind the customer</button>\n <button slActionSheetItem value=\"accounting\" disabled>\n Send to accounting\n <span slActionSheetItemDescription>Available after approval</span>\n </button>\n</div>\n<hr slActionSheetSeparator />\n",
|
|
462
462
|
"verdict": "excerpt"
|
|
463
463
|
},
|
|
464
464
|
{
|
|
@@ -514,7 +514,7 @@
|
|
|
514
514
|
"title": "One list of actions, a menu on a pointer and a sheet on a phone",
|
|
515
515
|
"note": "The item vocabulary is menu’s, word for word — value, tone, disabled, (select) and the description line — so one array renders as either family, and the breakpoint that picks between them is the application’s.",
|
|
516
516
|
"language": "html",
|
|
517
|
-
"source": "@if (coarse()) {\n <sl-action-sheet #sheet=\"slActionSheet\" aria-label=\"
|
|
517
|
+
"source": "@if (coarse()) {\n <sl-action-sheet #sheet=\"slActionSheet\" aria-label=\"Actions\">\n <div slActionSheetList aria-label=\"Actions\">\n @for (action of actions; track action.value) {\n <button slActionSheetItem [value]=\"action.value\" [tone]=\"action.tone\">\n {{ action.label }}\n </button>\n }\n </div>\n </sl-action-sheet>\n} @else {\n <sl-menu #menu>\n @for (action of actions; track action.value) {\n <button slMenuItem [tone]=\"action.tone\">{{ action.label }}</button>\n }\n </sl-menu>\n}\n",
|
|
518
518
|
"verdict": "excerpt"
|
|
519
519
|
},
|
|
520
520
|
{
|
package/docs/action-sheet.md
CHANGED
|
@@ -19,12 +19,12 @@ Excerpt — not a complete module
|
|
|
19
19
|
<button slButton [slActionSheetTrigger]="sheet">Partilhar</button>
|
|
20
20
|
<sl-action-sheet #sheet="slActionSheet" (openChangeRequest)="run($event.result)">
|
|
21
21
|
<header slActionSheetHeader>
|
|
22
|
-
<h2 slActionSheetTitle>
|
|
23
|
-
<p slActionSheetMessage>
|
|
22
|
+
<h2 slActionSheetTitle>Share report</h2>
|
|
23
|
+
<p slActionSheetMessage>Anyone who receives the link sees today's version.</p>
|
|
24
24
|
</header>
|
|
25
25
|
<div slActionSheetList>
|
|
26
|
-
<button slActionSheetItem value="copy">
|
|
27
|
-
<button slActionSheetItem value="pdf">
|
|
26
|
+
<button slActionSheetItem value="copy">Copy link</button>
|
|
27
|
+
<button slActionSheetItem value="pdf">Download PDF</button>
|
|
28
28
|
</div>
|
|
29
29
|
<div slActionSheetFooter><button slActionSheetCancel>Cancelar</button></div>
|
|
30
30
|
</sl-action-sheet>
|
|
@@ -122,8 +122,8 @@ Excerpt — not a complete module
|
|
|
122
122
|
|
|
123
123
|
```html
|
|
124
124
|
<div slActionSheetList>
|
|
125
|
-
<button slActionSheetItem value="delete" tone="danger">
|
|
126
|
-
<button slActionSheetItem value="save">
|
|
125
|
+
<button slActionSheetItem value="delete" tone="danger">Delete draft</button>
|
|
126
|
+
<button slActionSheetItem value="save">Save draft</button>
|
|
127
127
|
</div>
|
|
128
128
|
```
|
|
129
129
|
|
|
@@ -135,11 +135,11 @@ Excerpt — not a complete module
|
|
|
135
135
|
|
|
136
136
|
```html
|
|
137
137
|
<div slActionSheetGroup>
|
|
138
|
-
<div slActionSheetGroupLabel>
|
|
139
|
-
<button slActionSheetItem value="remind">
|
|
138
|
+
<div slActionSheetGroupLabel>Send</div>
|
|
139
|
+
<button slActionSheetItem value="remind">Remind the customer</button>
|
|
140
140
|
<button slActionSheetItem value="accounting" disabled>
|
|
141
|
-
|
|
142
|
-
<span slActionSheetItemDescription>
|
|
141
|
+
Send to accounting
|
|
142
|
+
<span slActionSheetItemDescription>Available after approval</span>
|
|
143
143
|
</button>
|
|
144
144
|
</div>
|
|
145
145
|
<hr slActionSheetSeparator />
|
|
@@ -235,8 +235,8 @@ Excerpt — not a complete module
|
|
|
235
235
|
|
|
236
236
|
```html
|
|
237
237
|
@if (coarse()) {
|
|
238
|
-
<sl-action-sheet #sheet="slActionSheet" aria-label="
|
|
239
|
-
<div slActionSheetList aria-label="
|
|
238
|
+
<sl-action-sheet #sheet="slActionSheet" aria-label="Actions">
|
|
239
|
+
<div slActionSheetList aria-label="Actions">
|
|
240
240
|
@for (action of actions; track action.value) {
|
|
241
241
|
<button slActionSheetItem [value]="action.value" [tone]="action.tone">
|
|
242
242
|
{{ action.label }}
|