@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/checkbox-group.json
CHANGED
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"type": "readonly string[]",
|
|
87
87
|
"defaultValue": "[]",
|
|
88
88
|
"appliesTo": "SlCheckboxGroup",
|
|
89
|
-
"description": "The selection an uncontrolled group starts from, read once when the directive
|
|
89
|
+
"description": "The selection an uncontrolled group starts from, read once when the directive initializes."
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
"name": "allValues",
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
}
|
|
224
224
|
],
|
|
225
225
|
"accessibility": [
|
|
226
|
-
"The WAI-ARIA Authoring Practices have no pattern for a group of checkboxes: the Checkbox pattern covers one box, and grouping is a question of naming rather than of keyboard
|
|
226
|
+
"The WAI-ARIA Authoring Practices have no pattern for a group of checkboxes: the Checkbox pattern covers one box, and grouping is a question of naming rather than of keyboard behavior. The sources are the ARIA group role and the Providing Accessible Names and Descriptions practice (w3.org/WAI/ARIA/apg/practices/names-and-descriptions/).",
|
|
227
227
|
"Every box is its own tab stop, and Space toggles the box that has focus. The platform provides this whole keyboard model. It is what sets a checkbox group apart from a radio group, where the set is a single tab stop and the arrow keys move the choice.",
|
|
228
228
|
"The role depends on the container. A field group is a fieldset with a legend, which is already a named group; a role=\"group\" inside it, named by the same legend, would announce the set twice. Inside a field group the checkbox group renders no role, and the legend names the set. Inside a field, the field’s label names the group through aria-labelledby.",
|
|
229
229
|
"The group writes aria-required, never the native required on a box. The native attribute on a checkbox demands that one particular box be checked, which is not what \"choose at least one\" means. That rule is about the whole selection, so the checkbox group, not the box, is the validator.",
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
"title": "A set of framed choices",
|
|
261
261
|
"note": "The variant belongs to the group, not to each box: a set with one plain choice among four tiles is a set nobody meant to write. Arrangement is not the group’s — Grid already owns columns, minItemWidth and a stretching alignment, so tiles in a row come out the same width and the same height.",
|
|
262
262
|
"language": "html",
|
|
263
|
-
"source": "<div slCheckboxGroup variant=\"tile\" [defaultValue]=\"['pix']\">\n <div slGrid minItemWidth=\"sm\">\n <div slCheckbox value=\"pix\">\n
|
|
263
|
+
"source": "<div slCheckboxGroup variant=\"tile\" [defaultValue]=\"['pix']\">\n <div slGrid minItemWidth=\"sm\">\n <div slCheckbox value=\"pix\">\n Zelle\n <p slCheckboxDescription>Instant settlement.</p>\n </div>\n <div slCheckbox value=\"card\">\n Credit card\n <p slCheckboxDescription>Installments up to twelve times.</p>\n </div>\n </div>\n</div>\n",
|
|
264
264
|
"verdict": "excerpt"
|
|
265
265
|
},
|
|
266
266
|
{
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
"title": "Inside a group of fields, and in a reactive form",
|
|
293
293
|
"note": "The fieldset and its legend are what group and name the set, so this group withdraws its own role — and the same element takes formControlName, because the accessor and the validator both live on the root.",
|
|
294
294
|
"language": "html",
|
|
295
|
-
"source": "<fieldset slFieldGroup required>\n <legend slFieldGroupLegend>
|
|
295
|
+
"source": "<fieldset slFieldGroup required>\n <legend slFieldGroupLegend>Notifications</legend>\n <div slCheckboxGroup required formControlName=\"alerts\">\n <div slCheckbox value=\"approved\">Order approved</div>\n <div slCheckbox value=\"refused\">Order refused</div>\n </div>\n</fieldset>\n",
|
|
296
296
|
"verdict": "excerpt"
|
|
297
297
|
},
|
|
298
298
|
{
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
"title": "Content the family did not choose",
|
|
301
301
|
"note": "A set of long options keeps every box on the first line of its own label, a narrow column turns a horizontal set into a stack without a media query, and a right-to-left set mirrors whole rather than rearranging.",
|
|
302
302
|
"language": "html",
|
|
303
|
-
"source": "<div slCheckboxGroup orientation=\"horizontal\">\n <div slCheckbox value=\"a\">\n
|
|
303
|
+
"source": "<div slCheckboxGroup orientation=\"horizontal\">\n <div slCheckbox value=\"a\">\n I authorize the use of browsing data to personalize recommendations\n </div>\n <div slCheckbox value=\"b\">And also to measure campaign reach</div>\n</div>\n",
|
|
304
304
|
"verdict": "excerpt"
|
|
305
305
|
},
|
|
306
306
|
{
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
"title": "Setting it once, and reaching past it",
|
|
309
309
|
"note": "The token carries the three decisions an application takes once, exportAs reaches the instance, and the root is the consumer’s own element — so a set of choices can be a real list.",
|
|
310
310
|
"language": "html",
|
|
311
|
-
"source": "<ul slCheckboxGroup class=\"slotted-demo-list\" [defaultValue]=\"['a']\">\n <li slCheckbox value=\"a\">
|
|
311
|
+
"source": "<ul slCheckboxGroup class=\"slotted-demo-list\" [defaultValue]=\"['a']\">\n <li slCheckbox value=\"a\">One item</li>\n <li slCheckbox value=\"b\">And another below it</li>\n</ul>\n",
|
|
312
312
|
"verdict": "excerpt"
|
|
313
313
|
},
|
|
314
314
|
{
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
"title": "What the keyboard does, and who implements it",
|
|
317
317
|
"note": "Every box is its own tab stop and Space toggles it, because a checkbox is one choice made on its own — which is exactly what tells this family apart from a radio group, where the whole set is one stop.",
|
|
318
318
|
"language": "html",
|
|
319
|
-
"source": "<!-- The group binds no key at all: each box is a native checkbox, so Tab\n reaches every one of them and Space toggles the one that has focus. -->\n<div slCheckboxGroup>\n <div slCheckbox value=\"a\">Tab
|
|
319
|
+
"source": "<!-- The group binds no key at all: each box is a native checkbox, so Tab\n reaches every one of them and Space toggles the one that has focus. -->\n<div slCheckboxGroup>\n <div slCheckbox value=\"a\">Tab to here</div>\n <div slCheckbox value=\"b\">And again to here</div>\n</div>\n",
|
|
320
320
|
"verdict": "excerpt"
|
|
321
321
|
},
|
|
322
322
|
{
|
package/docs/checkbox-group.md
CHANGED
|
@@ -53,7 +53,7 @@ export class CheckboxGroupBasic {}
|
|
|
53
53
|
| Name | Type | Default | Applies to | Description |
|
|
54
54
|
| --- | --- | --- | --- | --- |
|
|
55
55
|
| `value` | `readonly string[]` | — | SlCheckboxGroup | The controlled selection. When present, the consumer owns the selection. When absent, the checkbox group owns it and starts from defaultValue, or from the form control bound to the root. |
|
|
56
|
-
| `defaultValue` | `readonly string[]` | [] | SlCheckboxGroup | The selection an uncontrolled group starts from, read once when the directive
|
|
56
|
+
| `defaultValue` | `readonly string[]` | [] | SlCheckboxGroup | The selection an uncontrolled group starts from, read once when the directive initializes. |
|
|
57
57
|
| `allValues` | `readonly string[]` | — | SlCheckboxGroup | Every value the checkbox group holds. A parent slCheckbox needs it: the parent is checked when every value is selected and mixed when some are, which a selection alone cannot tell. It also keeps the selection in the order of this list rather than in the order the boxes were pressed. |
|
|
58
58
|
| `variant` | `'plain' \| 'tile'` | plain | SlCheckboxGroup, provideCheckboxGroupDefaults | How every choice is drawn, passed to every box. tile frames each choice and makes its whole surface the target. Arranging the tiles is left to slGrid. |
|
|
59
59
|
| `orientation` | `'vertical' \| 'horizontal'` | vertical | SlCheckboxGroup, provideCheckboxGroupDefaults | How the choices flow. A horizontal set wraps instead of scrolling. |
|
|
@@ -90,7 +90,7 @@ export class CheckboxGroupBasic {}
|
|
|
90
90
|
|
|
91
91
|
## Rules
|
|
92
92
|
|
|
93
|
-
- The WAI-ARIA Authoring Practices have no pattern for a group of checkboxes: the Checkbox pattern covers one box, and grouping is a question of naming rather than of keyboard
|
|
93
|
+
- The WAI-ARIA Authoring Practices have no pattern for a group of checkboxes: the Checkbox pattern covers one box, and grouping is a question of naming rather than of keyboard behavior. The sources are the ARIA group role and the Providing Accessible Names and Descriptions practice (w3.org/WAI/ARIA/apg/practices/names-and-descriptions/).
|
|
94
94
|
- Every box is its own tab stop, and Space toggles the box that has focus. The platform provides this whole keyboard model. It is what sets a checkbox group apart from a radio group, where the set is a single tab stop and the arrow keys move the choice.
|
|
95
95
|
- The role depends on the container. A field group is a fieldset with a legend, which is already a named group; a role="group" inside it, named by the same legend, would announce the set twice. Inside a field group the checkbox group renders no role, and the legend names the set. Inside a field, the field’s label names the group through aria-labelledby.
|
|
96
96
|
- The group writes aria-required, never the native required on a box. The native attribute on a checkbox demands that one particular box be checked, which is not what "choose at least one" means. That rule is about the whole selection, so the checkbox group, not the box, is the validator.
|
|
@@ -13,8 +13,8 @@ Excerpt — not a complete module
|
|
|
13
13
|
|
|
14
14
|
```html
|
|
15
15
|
<div slCheckbox defaultChecked>
|
|
16
|
-
|
|
17
|
-
<p slCheckboxDescription>
|
|
16
|
+
Send receipt
|
|
17
|
+
<p slCheckboxDescription>We will send the receipt by email.</p>
|
|
18
18
|
</div>
|
|
19
19
|
```
|
|
20
20
|
|
|
@@ -219,10 +219,10 @@ Excerpt — not a complete module
|
|
|
219
219
|
|
|
220
220
|
```html
|
|
221
221
|
<fieldset slFieldGroup required>
|
|
222
|
-
<legend slFieldGroupLegend>
|
|
222
|
+
<legend slFieldGroupLegend>Notifications</legend>
|
|
223
223
|
<div slCheckboxGroup name="alerts" formControlName="alerts">
|
|
224
|
-
<div slCheckbox value="approved">
|
|
225
|
-
<div slCheckbox value="refused">
|
|
224
|
+
<div slCheckbox value="approved">Order approved</div>
|
|
225
|
+
<div slCheckbox value="refused">Order refused</div>
|
|
226
226
|
</div>
|
|
227
227
|
</fieldset>
|
|
228
228
|
```
|
|
@@ -235,8 +235,8 @@ Excerpt — not a complete module
|
|
|
235
235
|
|
|
236
236
|
```html
|
|
237
237
|
<div slCheckbox>
|
|
238
|
-
|
|
239
|
-
<p slCheckboxDescription>
|
|
238
|
+
I agree to receive communications about contract changes and delivery deadlines.
|
|
239
|
+
<p slCheckboxDescription>The box stays on the first line of the label.</p>
|
|
240
240
|
</div>
|
|
241
241
|
|
|
242
242
|
<div slCheckbox dir="rtl">أوافق على تلقي رسائل حول التغييرات في العقد.</div>
|
package/docs/checkbox.json
CHANGED
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"type": "boolean",
|
|
115
115
|
"defaultValue": "false",
|
|
116
116
|
"appliesTo": "SlCheckbox",
|
|
117
|
-
"description": "The state an uncontrolled box starts from. It is read once, when the component
|
|
117
|
+
"description": "The state an uncontrolled box starts from. It is read once, when the component initializes, and written to the input as the native attribute, which is what a form reset returns to."
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"name": "indeterminate",
|
|
@@ -244,12 +244,12 @@
|
|
|
244
244
|
}
|
|
245
245
|
],
|
|
246
246
|
"accessibility": [
|
|
247
|
-
"SlCheckbox follows the WAI-ARIA Authoring Practices checkbox pattern (w3.org/WAI/ARIA/apg/patterns/checkbox/), and the native input supplies every part of it: the role, the checked and mixed states, Space to toggle, Enter left to the form, and disabled
|
|
247
|
+
"SlCheckbox follows the WAI-ARIA Authoring Practices checkbox pattern (w3.org/WAI/ARIA/apg/patterns/checkbox/), and the native input supplies every part of it: the role, the checked and mixed states, Space to toggle, Enter left to the form, and disabled behavior. SlCheckbox adds no key listener, so the keyboard behavior is the platform’s in every language and in right-to-left documents.",
|
|
248
248
|
"The label names the control through for, which points at an identifier SlCheckbox generates unless you write a static id on the host. The description is projected outside the label and reaches the control through aria-describedby, so it is read as a description, and a press on it toggles nothing.",
|
|
249
249
|
"Inside a required field the control carries aria-required, never the native required, because the native attribute turns on browser constraint validation and changes how the form submits. Write required on the host to opt into the platform’s validation; it is read as a static attribute and passed through unchanged. disabled is the native attribute.",
|
|
250
250
|
"A native checkbox has no read-only state, so SlCheckbox enforces one: it refuses the click that a pointer and Space both produce, and aria-readonly announces the state. The box keeps its tab stop, its focus ring and its full contrast, because a read-only value is real and must not look disabled.",
|
|
251
251
|
"A refused change is undone by the platform, not by SlCheckbox. The HTML standard undoes a cancelled checkbox click by inverting checked again, so SlCheckbox cancels the click’s default action instead of writing the element; a controlled box therefore shows the value its consumer holds.",
|
|
252
|
-
"The invalid state does not rely on
|
|
252
|
+
"The invalid state does not rely on color alone. In the high-contrast scheme the theme paints every border the same color, so an invalid box also draws a thicker border. The message that says what is wrong belongs to the field or field group.",
|
|
253
253
|
"The target is larger than the box. A 24-pixel square around the box meets WCAG 2.2 success criterion 2.5.8 at every size and density, including size=\"sm\", where the box is 14 pixels. The label extends the target to the end of its text, and the hover wash covers exactly that area. The target is drawn around the box, so the row keeps its line height."
|
|
254
254
|
]
|
|
255
255
|
}
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
"title": "Playground",
|
|
363
363
|
"note": "One box with every axis on it, driven by the controls below the canvas. Click the label, not only the box: the target runs from the square to the end of the text.",
|
|
364
364
|
"language": "html",
|
|
365
|
-
"source": "<div slCheckbox defaultChecked>\n
|
|
365
|
+
"source": "<div slCheckbox defaultChecked>\n Send receipt\n <p slCheckboxDescription>We will send the receipt by email.</p>\n</div>\n",
|
|
366
366
|
"verdict": "excerpt"
|
|
367
367
|
},
|
|
368
368
|
{
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
"title": "Inside a field, and in a reactive form",
|
|
419
419
|
"note": "The box reads the field for its step and its four shared states and never for its identifier, and the same element is where formControlName goes — the value accessor is on the root.",
|
|
420
420
|
"language": "html",
|
|
421
|
-
"source": "<fieldset slFieldGroup required>\n <legend slFieldGroupLegend>
|
|
421
|
+
"source": "<fieldset slFieldGroup required>\n <legend slFieldGroupLegend>Notifications</legend>\n <div slCheckboxGroup name=\"alerts\" formControlName=\"alerts\">\n <div slCheckbox value=\"approved\">Order approved</div>\n <div slCheckbox value=\"refused\">Order refused</div>\n </div>\n</fieldset>\n",
|
|
422
422
|
"verdict": "excerpt"
|
|
423
423
|
},
|
|
424
424
|
{
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
"title": "Content the family did not choose",
|
|
427
427
|
"note": "A label that wraps to three lines keeps the box on the first of them rather than in the middle of the block, an unbroken token breaks instead of taking the page with it, and a right-to-left label mirrors the whole row.",
|
|
428
428
|
"language": "html",
|
|
429
|
-
"source": "<div slCheckbox>\n
|
|
429
|
+
"source": "<div slCheckbox>\n I agree to receive communications about contract changes and delivery deadlines.\n <p slCheckboxDescription>The box stays on the first line of the label.</p>\n</div>\n\n<div slCheckbox dir=\"rtl\">أوافق على تلقي رسائل حول التغييرات في العقد.</div>\n",
|
|
430
430
|
"verdict": "excerpt"
|
|
431
431
|
},
|
|
432
432
|
{
|
package/docs/checkbox.md
CHANGED
|
@@ -53,7 +53,7 @@ export class CheckboxBasic {}
|
|
|
53
53
|
| Name | Type | Default | Applies to | Description |
|
|
54
54
|
| --- | --- | --- | --- | --- |
|
|
55
55
|
| `checked` | `boolean` | — | SlCheckbox | Makes the state controlled. Without it the box keeps its own state, starting from defaultChecked, and a native form reset restores defaultChecked. Inside a checkbox group, the group’s selection decides instead. |
|
|
56
|
-
| `defaultChecked` | `boolean` | false | SlCheckbox | The state an uncontrolled box starts from. It is read once, when the component
|
|
56
|
+
| `defaultChecked` | `boolean` | false | SlCheckbox | The state an uncontrolled box starts from. It is read once, when the component initializes, and written to the input as the native attribute, which is what a form reset returns to. |
|
|
57
57
|
| `indeterminate` | `boolean` | false | SlCheckbox | The mixed state, drawn as a dash and announced as mixed. It is a state, not a third value of checked: the submitted value stays boolean, because indeterminate is a DOM property that leaves checked unchanged. |
|
|
58
58
|
| `parent` | `boolean` | false | SlCheckbox | Makes the box command the set its checkbox group lists in allValues. It is checked when every value is selected and mixed when some are, and a press selects or clears the whole set. Outside a group with allValues it has no effect. |
|
|
59
59
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | SlCheckbox, provideCheckboxDefaults | The step of the control scale. When unset, the box takes the size of its checkbox group, then of its field or field group, then of the provided defaults. The theme restates the scale per density. |
|
|
@@ -88,12 +88,12 @@ export class CheckboxBasic {}
|
|
|
88
88
|
|
|
89
89
|
## Rules
|
|
90
90
|
|
|
91
|
-
- SlCheckbox follows the WAI-ARIA Authoring Practices checkbox pattern (w3.org/WAI/ARIA/apg/patterns/checkbox/), and the native input supplies every part of it: the role, the checked and mixed states, Space to toggle, Enter left to the form, and disabled
|
|
91
|
+
- SlCheckbox follows the WAI-ARIA Authoring Practices checkbox pattern (w3.org/WAI/ARIA/apg/patterns/checkbox/), and the native input supplies every part of it: the role, the checked and mixed states, Space to toggle, Enter left to the form, and disabled behavior. SlCheckbox adds no key listener, so the keyboard behavior is the platform’s in every language and in right-to-left documents.
|
|
92
92
|
- The label names the control through for, which points at an identifier SlCheckbox generates unless you write a static id on the host. The description is projected outside the label and reaches the control through aria-describedby, so it is read as a description, and a press on it toggles nothing.
|
|
93
93
|
- Inside a required field the control carries aria-required, never the native required, because the native attribute turns on browser constraint validation and changes how the form submits. Write required on the host to opt into the platform’s validation; it is read as a static attribute and passed through unchanged. disabled is the native attribute.
|
|
94
94
|
- A native checkbox has no read-only state, so SlCheckbox enforces one: it refuses the click that a pointer and Space both produce, and aria-readonly announces the state. The box keeps its tab stop, its focus ring and its full contrast, because a read-only value is real and must not look disabled.
|
|
95
95
|
- A refused change is undone by the platform, not by SlCheckbox. The HTML standard undoes a cancelled checkbox click by inverting checked again, so SlCheckbox cancels the click’s default action instead of writing the element; a controlled box therefore shows the value its consumer holds.
|
|
96
|
-
- The invalid state does not rely on
|
|
96
|
+
- The invalid state does not rely on color alone. In the high-contrast scheme the theme paints every border the same color, so an invalid box also draws a thicker border. The message that says what is wrong belongs to the field or field group.
|
|
97
97
|
- The target is larger than the box. A 24-pixel square around the box meets WCAG 2.2 success criterion 2.5.8 at every size and density, including size="sm", where the box is 14 pixels. The label extends the target to the end of its text, and the hover wash covers exactly that area. The target is drawn around the box, so the row keeps its line height.
|
|
98
98
|
|
|
99
99
|
## Tokens
|
package/docs/code-block.json
CHANGED
|
@@ -497,7 +497,7 @@
|
|
|
497
497
|
"title": "Text first, tokens when they arrive",
|
|
498
498
|
"note": "The block draws the plain text on the first paint and swaps in the tokens line by line when the engine answers: the height does not change, because each line is a row of the grid. The colors are the theme’s --slotted-code-* scale, and change with the scheme.",
|
|
499
499
|
"language": "html",
|
|
500
|
-
"source": "<div slCodeBlock [code]=\"source\" [highlight]=\"
|
|
500
|
+
"source": "<div slCodeBlock [code]=\"source\" [highlight]=\"tokenize\" language=\"ts\"></div>\n",
|
|
501
501
|
"verdict": "excerpt"
|
|
502
502
|
},
|
|
503
503
|
{
|
package/docs/code-block.md
CHANGED
|
@@ -125,7 +125,7 @@ The block draws the plain text on the first paint and swaps in the tokens line b
|
|
|
125
125
|
Excerpt — not a complete module
|
|
126
126
|
|
|
127
127
|
```html
|
|
128
|
-
<div slCodeBlock [code]="source" [highlight]="
|
|
128
|
+
<div slCodeBlock [code]="source" [highlight]="tokenize" language="ts"></div>
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
### Prism and Shiki come in through the mappings
|
package/docs/collapsible.json
CHANGED
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"part": "description",
|
|
130
130
|
"element": "span",
|
|
131
131
|
"required": false,
|
|
132
|
-
"purpose": "A second line under the title, from the description input. It is inside the trigger, so it is part of the accessible name — “
|
|
132
|
+
"purpose": "A second line under the title, from the description input. It is inside the trigger, so it is part of the accessible name — “Delivery, 3 of 12 items” is what a reader hears."
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
"part": "actions",
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
"title": "Playground",
|
|
362
362
|
"note": "One disclosure with every input on it, driven by the controls below the canvas. Tab lands on the trigger; Enter and Space are the platform’s.",
|
|
363
363
|
"language": "html",
|
|
364
|
-
"source": "<div slCollapsible [(open)]=\"open\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
364
|
+
"source": "<div slCollapsible [(open)]=\"open\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Delivery address</button>\n </h3>\n <div slCollapsiblePanel>402 Maple Street — Seattle.</div>\n</div>\n",
|
|
365
365
|
"verdict": "excerpt"
|
|
366
366
|
},
|
|
367
367
|
{
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
"title": "The three ways it is drawn",
|
|
370
370
|
"note": "plain paints no chrome, ruled puts a hairline above the header so a stack reads as one list, and framed is a card. All three keep the same geometry.",
|
|
371
371
|
"language": "html",
|
|
372
|
-
"source": "<div slCollapsible variant=\"framed\" [open]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
372
|
+
"source": "<div slCollapsible variant=\"framed\" [open]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Payment methods</button>\n </h3>\n <div slCollapsiblePanel>Credit card, ACH transfer and Zelle.</div>\n</div>\n",
|
|
373
373
|
"verdict": "excerpt"
|
|
374
374
|
},
|
|
375
375
|
{
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
"title": "The step the header sits at",
|
|
378
378
|
"note": "The title comes from the type scale, because a header is prose; the row’s height, padding, gap and mark come from the control scales, so a dense page is tighter rather than smaller.",
|
|
379
379
|
"language": "html",
|
|
380
|
-
"source": "<div slCollapsible size=\"lg\" [open]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger description=\"3
|
|
380
|
+
"source": "<div slCollapsible size=\"lg\" [open]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger description=\"3 of 12 items\">Summary</button>\n </h3>\n <div slCollapsiblePanel>Delivery scheduled for September 12.</div>\n</div>\n",
|
|
381
381
|
"verdict": "excerpt"
|
|
382
382
|
},
|
|
383
383
|
{
|
|
@@ -385,7 +385,7 @@
|
|
|
385
385
|
"title": "The mark, and which side it stands on",
|
|
386
386
|
"note": "The chevron turns rather than pointing along the inline axis, so a right-to-left document needs no mirrored artwork; plus-minus is one pair drawn on one grid, and none draws nothing.",
|
|
387
387
|
"language": "html",
|
|
388
|
-
"source": "<div slCollapsible indicator=\"plus-minus\" togglePlacement=\"start\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
388
|
+
"source": "<div slCollapsible indicator=\"plus-minus\" togglePlacement=\"start\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Invoice</button>\n </h3>\n <div slCollapsiblePanel>Issued on September 3.</div>\n</div>\n",
|
|
389
389
|
"verdict": "excerpt"
|
|
390
390
|
},
|
|
391
391
|
{
|
|
@@ -393,7 +393,7 @@
|
|
|
393
393
|
"title": "Where it sits in the outline",
|
|
394
394
|
"note": "The element is the consumer’s own: a real heading is left alone, and anything else is given role=\"heading\" and the level — the alternative the pattern names.",
|
|
395
395
|
"language": "html",
|
|
396
|
-
"source": "<div slCollapsible level=\"3\">\n <div slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
396
|
+
"source": "<div slCollapsible level=\"3\">\n <div slCollapsibleHeader>\n <button slCollapsibleTrigger>Return conditions</button>\n </div>\n <div slCollapsiblePanel>Thirty calendar days.</div>\n</div>\n",
|
|
397
397
|
"verdict": "excerpt"
|
|
398
398
|
},
|
|
399
399
|
{
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
"title": "A control beside the heading",
|
|
410
410
|
"note": "It is a sibling of the heading rather than a child, because the pattern requires the button to be the only element inside it — and a control inside a button is invalid besides.",
|
|
411
411
|
"language": "html",
|
|
412
|
-
"source": "<div slCollapsible variant=\"framed\" [open]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Regras de frete</button>\n </h3>\n <div slCollapsibleActions>\n <div slToolbar aria-label=\"
|
|
412
|
+
"source": "<div slCollapsible variant=\"framed\" [open]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Regras de frete</button>\n </h3>\n <div slCollapsibleActions>\n <div slToolbar aria-label=\"Rule actions\" size=\"sm\">\n <button slButton size=\"sm\" variant=\"ghost\">Edit</button>\n </div>\n </div>\n <div slCollapsiblePanel>Free shipping over $250.00.</div>\n</div>\n",
|
|
413
413
|
"verdict": "excerpt"
|
|
414
414
|
},
|
|
415
415
|
{
|
|
@@ -417,7 +417,7 @@
|
|
|
417
417
|
"title": "When the content exists",
|
|
418
418
|
"note": "eager builds it up front so the panel can transition closed, lazy waits for the first open, active drops it each time, and until-found lets the browser’s page search open the panel.",
|
|
419
419
|
"language": "html",
|
|
420
|
-
"source": "<div slCollapsible mount=\"lazy\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
420
|
+
"source": "<div slCollapsible mount=\"lazy\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Delivery history</button>\n </h3>\n <div slCollapsiblePanel>\n <ng-template slCollapsibleContent>{{ history() }}</ng-template>\n </div>\n</div>\n",
|
|
421
421
|
"verdict": "excerpt"
|
|
422
422
|
},
|
|
423
423
|
{
|
|
@@ -425,7 +425,7 @@
|
|
|
425
425
|
"title": "Every state the family paints",
|
|
426
426
|
"note": "Hover lays a wash under the row and press goes one step further; disabled answers neither, because the browser has already taken the control out of action; loading holds the box open and says so.",
|
|
427
427
|
"language": "html",
|
|
428
|
-
"source": "<div slCollapsible [loading]=\"true\" [open]=\"true\" mount=\"lazy\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
428
|
+
"source": "<div slCollapsible [loading]=\"true\" [open]=\"true\" mount=\"lazy\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Delivery history</button>\n </h3>\n <div slCollapsiblePanel>\n <span slSkeleton shape=\"text\"></span>\n </div>\n</div>\n",
|
|
429
429
|
"verdict": "excerpt"
|
|
430
430
|
},
|
|
431
431
|
{
|
|
@@ -433,7 +433,7 @@
|
|
|
433
433
|
"title": "Content the family did not choose",
|
|
434
434
|
"note": "A long title grows the row instead of pushing the mark off the line, truncate clips it to one line with the whole string still in the DOM, and a title in another script reads its own way.",
|
|
435
435
|
"language": "html",
|
|
436
|
-
"source": "<div slCollapsible [truncate]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
436
|
+
"source": "<div slCollapsible [truncate]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Return conditions for international orders</button>\n </h3>\n <div slCollapsiblePanel>Thirty calendar days.</div>\n</div>\n",
|
|
437
437
|
"verdict": "excerpt"
|
|
438
438
|
},
|
|
439
439
|
{
|
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
"title": "The pattern’s table, and which device asked",
|
|
450
450
|
"note": "Enter and Space toggle because the trigger is a button; Tab reaches it like any other control, because the pattern keeps every disclosure in the page tab sequence.",
|
|
451
451
|
"language": "html",
|
|
452
|
-
"source": "<div slCollapsible (openChangeRequest)=\"reason.set($event.reason)\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
452
|
+
"source": "<div slCollapsible (openChangeRequest)=\"reason.set($event.reason)\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>With the pointer, then with the keyboard</button>\n </h3>\n <div slCollapsiblePanel>The reason changes with the device.</div>\n</div>\n",
|
|
453
453
|
"verdict": "excerpt"
|
|
454
454
|
}
|
|
455
455
|
]
|
package/docs/collapsible.md
CHANGED
|
@@ -18,9 +18,9 @@ Excerpt — not a complete module
|
|
|
18
18
|
```html
|
|
19
19
|
<div slCollapsible [(open)]="open">
|
|
20
20
|
<h3 slCollapsibleHeader>
|
|
21
|
-
<button slCollapsibleTrigger>
|
|
21
|
+
<button slCollapsibleTrigger>Delivery address</button>
|
|
22
22
|
</h3>
|
|
23
|
-
<div slCollapsiblePanel>
|
|
23
|
+
<div slCollapsiblePanel>402 Maple Street — Seattle.</div>
|
|
24
24
|
</div>
|
|
25
25
|
```
|
|
26
26
|
|
|
@@ -103,9 +103,9 @@ Excerpt — not a complete module
|
|
|
103
103
|
```html
|
|
104
104
|
<div slCollapsible variant="framed" [open]="true">
|
|
105
105
|
<h3 slCollapsibleHeader>
|
|
106
|
-
<button slCollapsibleTrigger>
|
|
106
|
+
<button slCollapsibleTrigger>Payment methods</button>
|
|
107
107
|
</h3>
|
|
108
|
-
<div slCollapsiblePanel>
|
|
108
|
+
<div slCollapsiblePanel>Credit card, ACH transfer and Zelle.</div>
|
|
109
109
|
</div>
|
|
110
110
|
```
|
|
111
111
|
|
|
@@ -118,9 +118,9 @@ Excerpt — not a complete module
|
|
|
118
118
|
```html
|
|
119
119
|
<div slCollapsible size="lg" [open]="true">
|
|
120
120
|
<h3 slCollapsibleHeader>
|
|
121
|
-
<button slCollapsibleTrigger description="3
|
|
121
|
+
<button slCollapsibleTrigger description="3 of 12 items">Summary</button>
|
|
122
122
|
</h3>
|
|
123
|
-
<div slCollapsiblePanel>
|
|
123
|
+
<div slCollapsiblePanel>Delivery scheduled for September 12.</div>
|
|
124
124
|
</div>
|
|
125
125
|
```
|
|
126
126
|
|
|
@@ -133,9 +133,9 @@ Excerpt — not a complete module
|
|
|
133
133
|
```html
|
|
134
134
|
<div slCollapsible indicator="plus-minus" togglePlacement="start">
|
|
135
135
|
<h3 slCollapsibleHeader>
|
|
136
|
-
<button slCollapsibleTrigger>
|
|
136
|
+
<button slCollapsibleTrigger>Invoice</button>
|
|
137
137
|
</h3>
|
|
138
|
-
<div slCollapsiblePanel>
|
|
138
|
+
<div slCollapsiblePanel>Issued on September 3.</div>
|
|
139
139
|
</div>
|
|
140
140
|
```
|
|
141
141
|
|
|
@@ -148,9 +148,9 @@ Excerpt — not a complete module
|
|
|
148
148
|
```html
|
|
149
149
|
<div slCollapsible level="3">
|
|
150
150
|
<div slCollapsibleHeader>
|
|
151
|
-
<button slCollapsibleTrigger>
|
|
151
|
+
<button slCollapsibleTrigger>Return conditions</button>
|
|
152
152
|
</div>
|
|
153
|
-
<div slCollapsiblePanel>
|
|
153
|
+
<div slCollapsiblePanel>Thirty calendar days.</div>
|
|
154
154
|
</div>
|
|
155
155
|
```
|
|
156
156
|
|
|
@@ -176,11 +176,11 @@ Excerpt — not a complete module
|
|
|
176
176
|
<button slCollapsibleTrigger>Regras de frete</button>
|
|
177
177
|
</h3>
|
|
178
178
|
<div slCollapsibleActions>
|
|
179
|
-
<div slToolbar aria-label="
|
|
180
|
-
<button slButton size="sm" variant="ghost">
|
|
179
|
+
<div slToolbar aria-label="Rule actions" size="sm">
|
|
180
|
+
<button slButton size="sm" variant="ghost">Edit</button>
|
|
181
181
|
</div>
|
|
182
182
|
</div>
|
|
183
|
-
<div slCollapsiblePanel>
|
|
183
|
+
<div slCollapsiblePanel>Free shipping over $250.00.</div>
|
|
184
184
|
</div>
|
|
185
185
|
```
|
|
186
186
|
|
|
@@ -193,7 +193,7 @@ Excerpt — not a complete module
|
|
|
193
193
|
```html
|
|
194
194
|
<div slCollapsible mount="lazy">
|
|
195
195
|
<h3 slCollapsibleHeader>
|
|
196
|
-
<button slCollapsibleTrigger>
|
|
196
|
+
<button slCollapsibleTrigger>Delivery history</button>
|
|
197
197
|
</h3>
|
|
198
198
|
<div slCollapsiblePanel>
|
|
199
199
|
<ng-template slCollapsibleContent>{{ history() }}</ng-template>
|
|
@@ -210,7 +210,7 @@ Excerpt — not a complete module
|
|
|
210
210
|
```html
|
|
211
211
|
<div slCollapsible [loading]="true" [open]="true" mount="lazy">
|
|
212
212
|
<h3 slCollapsibleHeader>
|
|
213
|
-
<button slCollapsibleTrigger>
|
|
213
|
+
<button slCollapsibleTrigger>Delivery history</button>
|
|
214
214
|
</h3>
|
|
215
215
|
<div slCollapsiblePanel>
|
|
216
216
|
<span slSkeleton shape="text"></span>
|
|
@@ -227,9 +227,9 @@ Excerpt — not a complete module
|
|
|
227
227
|
```html
|
|
228
228
|
<div slCollapsible [truncate]="true">
|
|
229
229
|
<h3 slCollapsibleHeader>
|
|
230
|
-
<button slCollapsibleTrigger>
|
|
230
|
+
<button slCollapsibleTrigger>Return conditions for international orders</button>
|
|
231
231
|
</h3>
|
|
232
|
-
<div slCollapsiblePanel>
|
|
232
|
+
<div slCollapsiblePanel>Thirty calendar days.</div>
|
|
233
233
|
</div>
|
|
234
234
|
```
|
|
235
235
|
|
|
@@ -254,8 +254,8 @@ Excerpt — not a complete module
|
|
|
254
254
|
```html
|
|
255
255
|
<div slCollapsible (openChangeRequest)="reason.set($event.reason)">
|
|
256
256
|
<h3 slCollapsibleHeader>
|
|
257
|
-
<button slCollapsibleTrigger>
|
|
257
|
+
<button slCollapsibleTrigger>With the pointer, then with the keyboard</button>
|
|
258
258
|
</h3>
|
|
259
|
-
<div slCollapsiblePanel>
|
|
259
|
+
<div slCollapsiblePanel>The reason changes with the device.</div>
|
|
260
260
|
</div>
|
|
261
261
|
```
|