@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/rating.json
CHANGED
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
"type": "'accent' | 'info' | 'success' | 'warning' | 'danger'",
|
|
246
246
|
"defaultValue": "warning",
|
|
247
247
|
"appliesTo": "SlRating, provideRating",
|
|
248
|
-
"description": "The
|
|
248
|
+
"description": "The color of a lit symbol. secondary is outside the axis: its solid step is a ground, and a lit star in it reads as unlit"
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
"name": "name",
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
"The pattern is the WAI-ARIA APG Rating Radio Group example: a radiogroup of native radios, each named \"3 de 5\" by aria-label. Tab lands on the checked radio or on the first, and Space checks — both the platform’s, because the radios share a name.",
|
|
370
370
|
"The arrows are the family’s and they do not wrap: the APG radio example wraps from the last star to the first, and a rating that falls from five to one on one key too many is the defect the APG slider example, Ark, MUI and Mantine all avoid. Home and End reach both ends; PageUp and PageDown are declined, because ten symbols are crossed key by key.",
|
|
371
371
|
"The caption is aria-hidden, because the checked radio already announces the value; the glyphs are aria-hidden inside slIcon. Read-only is enforced by refusing the press and the keys, and every radio keeps its tab stop, its focus ring and its contrast.",
|
|
372
|
-
"In the light and dark schemes a lit star measures 1,53:1 against the page, the ReUI yellow the family adopted; the value is never left to
|
|
372
|
+
"In the light and dark schemes a lit star measures 1,53:1 against the page, the ReUI yellow the family adopted; the value is never left to color alone, because it is always in the accessible name and usually written beside the row. The high-contrast scheme and forced colors draw a solid edge around every star."
|
|
373
373
|
]
|
|
374
374
|
},
|
|
375
375
|
"ratingDisplay": {
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
"part": "root",
|
|
384
384
|
"element": "the div carrying slRatingDisplay",
|
|
385
385
|
"required": true,
|
|
386
|
-
"purpose": "An image: role=\"img\", named \"
|
|
386
|
+
"purpose": "An image: role=\"img\", named \"Rated 4.6 out of 5, 1,284 ratings\" from displayLabel or displayLabelWithCount, unless the consumer wrote aria-label. Carries data-size, data-tone and data-variant for compact and histogram."
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
"part": "symbols",
|
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
"type": "'accent' | 'info' | 'success' | 'warning' | 'danger'",
|
|
462
462
|
"defaultValue": "warning",
|
|
463
463
|
"appliesTo": "SlRatingDisplay, provideRating",
|
|
464
|
-
"description": "The
|
|
464
|
+
"description": "The color of the lit share"
|
|
465
465
|
},
|
|
466
466
|
{
|
|
467
467
|
"name": "variant",
|
|
@@ -524,8 +524,8 @@
|
|
|
524
524
|
],
|
|
525
525
|
"events": [],
|
|
526
526
|
"accessibility": [
|
|
527
|
-
"The display is one image, role=\"img\", named by its whole value and its count: \"
|
|
528
|
-
"A name the consumer writes as a static aria-label wins, which is how a histogram row says \"
|
|
527
|
+
"The display is one image, role=\"img\", named by its whole value and its count: \"Rated 4.6 out of 5, 1,284 ratings\". The stars, the number and the count inside it are aria-hidden, so a screen reader hears one sentence rather than five images and two numbers.",
|
|
528
|
+
"A name the consumer writes as a static aria-label wins, which is how a histogram row says \"divided opinions\" as well as the mean.",
|
|
529
529
|
"The number is always written beside the stars unless showValue is false, because a lit share of a star is not a readable quantity for anyone, at any contrast."
|
|
530
530
|
]
|
|
531
531
|
},
|
|
@@ -696,7 +696,7 @@
|
|
|
696
696
|
"part": "swatch",
|
|
697
697
|
"element": "span aria-hidden=\"true\"",
|
|
698
698
|
"required": false,
|
|
699
|
-
"purpose": "The bucket’s
|
|
699
|
+
"purpose": "The bucket’s color key."
|
|
700
700
|
}
|
|
701
701
|
],
|
|
702
702
|
"api": [
|
|
@@ -761,7 +761,7 @@
|
|
|
761
761
|
"type": "'accent' | 'info' | 'success' | 'warning' | 'danger'",
|
|
762
762
|
"defaultValue": "warning",
|
|
763
763
|
"appliesTo": "SlRatingSummary, provideRating",
|
|
764
|
-
"description": "The
|
|
764
|
+
"description": "The color of the stars and the bars"
|
|
765
765
|
},
|
|
766
766
|
{
|
|
767
767
|
"name": "messages",
|
|
@@ -784,7 +784,7 @@
|
|
|
784
784
|
"type": "SlRatingSummary",
|
|
785
785
|
"defaultValue": "—",
|
|
786
786
|
"appliesTo": "a template",
|
|
787
|
-
"description": "Reaches the instance: summary() is the whole
|
|
787
|
+
"description": "Reaches the instance: summary() is the whole summarizeRatings result, for a caption of one’s own"
|
|
788
788
|
},
|
|
789
789
|
{
|
|
790
790
|
"name": "provideRating()",
|
|
@@ -803,9 +803,9 @@
|
|
|
803
803
|
],
|
|
804
804
|
"accessibility": [
|
|
805
805
|
"The summary is a section named by the consumer’s aria-label, so it is a region a screen reader can reach by landmark. The figure is plain text, and the stars inside the aggregate are one image named by the mean.",
|
|
806
|
-
"Each level is named whole — \"5
|
|
806
|
+
"Each level is named whole — \"5 stars: 1,052 ratings, 82%\" — and the bar, the axis and the mean mark are aria-hidden, because the name already carries what they draw.",
|
|
807
807
|
"A filterable level is a native toggle button with aria-pressed, so Space and Enter press it; a level with no readings is disabled rather than offered as a filter that returns nothing.",
|
|
808
|
-
"The conclusion and the three buckets are words, not
|
|
808
|
+
"The conclusion and the three buckets are words, not colors: the tone of the pill and of each swatch repeats a sentence that is already written."
|
|
809
809
|
]
|
|
810
810
|
}
|
|
811
811
|
},
|
|
@@ -920,7 +920,7 @@
|
|
|
920
920
|
"title": "Read-only, disabled and invalid",
|
|
921
921
|
"note": "Read-only keeps every tab stop and the lit stars, because the value is real, and refuses the press; disabled removes the row from the tab order; invalid reddens the edge and announces aria-invalid.",
|
|
922
922
|
"language": "html",
|
|
923
|
-
"source": "<div slRating aria-label=\"
|
|
923
|
+
"source": "<div slRating aria-label=\"Published rating\" readOnly [value]=\"4\"></div>\n<div slRating aria-label=\"Locked rating\" disabled [value]=\"2\"></div>\n<div slRating aria-label=\"Required rating\" invalid required></div>\n",
|
|
924
924
|
"verdict": "excerpt"
|
|
925
925
|
},
|
|
926
926
|
{
|
|
@@ -928,7 +928,7 @@
|
|
|
928
928
|
"title": "In a field, and in a reactive form",
|
|
929
929
|
"note": "The field supplies the label, the description, the error and the size; the rating is the value accessor and the validator, so required means \"choose a rating\" and the error appears once the form is touched.",
|
|
930
930
|
"language": "html",
|
|
931
|
-
"source": "<div slField required>\n <label slFieldLabel>
|
|
931
|
+
"source": "<div slField required>\n <label slFieldLabel>Sound quality</label>\n <div slRating formControlName=\"sound\"></div>\n <p slFieldError>Choose a rating.</p>\n</div>\n",
|
|
932
932
|
"verdict": "excerpt"
|
|
933
933
|
},
|
|
934
934
|
{
|
|
@@ -936,7 +936,7 @@
|
|
|
936
936
|
"title": "Words for each value, and a scale of ten",
|
|
937
937
|
"note": "The caption is the consumer’s: a word per star on a scale of five, the number on a scale of ten. Each radio’s own name comes from the itemLabel message, which a provider or one instance may reword.",
|
|
938
938
|
"language": "html",
|
|
939
|
-
"source": "<div\n slRating\n aria-label=\"Recomendaria a um amigo\"\n [max]=\"10\"\n [messages]=\"{ itemLabel: 'Nota {value} de {max}' }\"\n>\n <ng-template slRatingCaption let-value=\"value\" let-preview=\"preview\">\n {{ preview ?? value ?? '
|
|
939
|
+
"source": "<div\n slRating\n aria-label=\"Recomendaria a um amigo\"\n [max]=\"10\"\n [messages]=\"{ itemLabel: 'Nota {value} de {max}' }\"\n>\n <ng-template slRatingCaption let-value=\"value\" let-preview=\"preview\">\n {{ preview ?? value ?? 'No rating' }}\n </ng-template>\n</div>\n",
|
|
940
940
|
"verdict": "excerpt"
|
|
941
941
|
},
|
|
942
942
|
{
|
|
@@ -984,7 +984,7 @@
|
|
|
984
984
|
"title": "The mean, and the spread behind it",
|
|
985
985
|
"note": "histogram adds one bar per level, each over the largest. Two products at 3,3 read differently: one split between ones and fives, the other spread evenly — which a mean alone would hide.",
|
|
986
986
|
"language": "html",
|
|
987
|
-
"source": "<div\n slRatingDisplay\n variant=\"histogram\"\n aria-label=\"
|
|
987
|
+
"source": "<div\n slRatingDisplay\n variant=\"histogram\"\n aria-label=\"Average 3.3 of 5, 8 reviews, divided opinions\"\n [value]=\"3.3\"\n [count]=\"8\"\n [distribution]=\"[3, 0, 1, 0, 4]\"\n></div>\n",
|
|
988
988
|
"verdict": "excerpt"
|
|
989
989
|
},
|
|
990
990
|
{
|
|
@@ -1008,7 +1008,7 @@
|
|
|
1008
1008
|
"title": "Playground",
|
|
1009
1009
|
"note": "The aggregate beside one bar per level, highest first. The two blocks stand side by side while both fit and stack when they do not; narrow the window to see the break.",
|
|
1010
1010
|
"language": "html",
|
|
1011
|
-
"source": "<section
|
|
1011
|
+
"source": "<section slRatingSummary aria-label=\"Customer reviews\" [counts]=\"[9, 18, 47, 158, 1052]\"></section>\n",
|
|
1012
1012
|
"verdict": "excerpt"
|
|
1013
1013
|
},
|
|
1014
1014
|
{
|
|
@@ -1016,15 +1016,15 @@
|
|
|
1016
1016
|
"title": "Levels that filter the reviews",
|
|
1017
1017
|
"note": "filterable turns each level into a toggle button with aria-pressed; the pressed levels are selectedLevels, asked for first through selectedLevelsChangeRequest. A level nobody chose is disabled, because a filter that returns nothing is a dead end.",
|
|
1018
1018
|
"language": "html",
|
|
1019
|
-
"source": "<section\n slRatingSummary\n aria-label=\"
|
|
1019
|
+
"source": "<section\n slRatingSummary\n aria-label=\"Filter reviews\"\n filterable\n [counts]=\"contagens\"\n [(selectedLevels)]=\"niveis\"\n></section>\n",
|
|
1020
1020
|
"verdict": "excerpt"
|
|
1021
1021
|
},
|
|
1022
1022
|
{
|
|
1023
1023
|
"id": "spectrum",
|
|
1024
1024
|
"title": "The spectrum: spread, mean and margin",
|
|
1025
|
-
"note": "The same counts as columns over the scale, lowest first, with the mean and its 95% interval laid over them and the readings split into positive, neutral and negative. Eight readings at 3
|
|
1025
|
+
"note": "The same counts as columns over the scale, lowest first, with the mean and its 95% interval laid over them and the readings split into positive, neutral and negative. Eight readings at 3.3 say \"uncertain average, between 2.0 and 4.5\".",
|
|
1026
1026
|
"language": "html",
|
|
1027
|
-
"source": "<section\n slRatingSummary\n variant=\"spectrum\"\n aria-label=\"
|
|
1027
|
+
"source": "<section\n slRatingSummary\n variant=\"spectrum\"\n aria-label=\"Review summary\"\n filterable\n [counts]=\"[9, 18, 47, 158, 1052]\"\n></section>\n",
|
|
1028
1028
|
"verdict": "excerpt"
|
|
1029
1029
|
},
|
|
1030
1030
|
{
|
|
@@ -1032,15 +1032,15 @@
|
|
|
1032
1032
|
"title": "One conclusion, the first that holds",
|
|
1033
1033
|
"note": "Divided when both ends hold a quarter each, few below thirty readings or with a margin of half a level, consensus when four fifths are positive, mixed otherwise. The pill belongs to the spectrum; insightThresholds moves each line; showInsight false removes it.",
|
|
1034
1034
|
"language": "html",
|
|
1035
|
-
"source": "<section\n slRatingSummary\n variant=\"spectrum\"\n aria-label=\"
|
|
1035
|
+
"source": "<section\n slRatingSummary\n variant=\"spectrum\"\n aria-label=\"Reviews\"\n [counts]=\"[40, 12, 10, 14, 60]\"\n [insightThresholds]=\"{ divided: 0.3 }\"\n></section>\n",
|
|
1036
1036
|
"verdict": "excerpt"
|
|
1037
1037
|
},
|
|
1038
1038
|
{
|
|
1039
1039
|
"id": "empty",
|
|
1040
1040
|
"title": "Nobody has rated it yet",
|
|
1041
|
-
"note": "With zero readings the figure and the scale are omitted — a missing mean is not nought — the stars are unlit, the count says \"
|
|
1041
|
+
"note": "With zero readings the figure and the scale are omitted — a missing mean is not nought — the stars are unlit, the count says \"No ratings yet\", and no conclusion is drawn.",
|
|
1042
1042
|
"language": "html",
|
|
1043
|
-
"source": "<section slRatingSummary aria-label=\"
|
|
1043
|
+
"source": "<section slRatingSummary aria-label=\"No reviews\" [counts]=\"[0, 0, 0, 0, 0]\"></section>\n",
|
|
1044
1044
|
"verdict": "excerpt"
|
|
1045
1045
|
},
|
|
1046
1046
|
{
|
|
@@ -1048,7 +1048,7 @@
|
|
|
1048
1048
|
"title": "In a narrow column",
|
|
1049
1049
|
"note": "In a 360-pixel column the aggregate stacks above the distribution and every row of bars keeps its label, its bar and its count aligned with the rows above it.",
|
|
1050
1050
|
"language": "html",
|
|
1051
|
-
"source": "<section
|
|
1051
|
+
"source": "<section slRatingSummary size=\"sm\" aria-label=\"Reviews\" [counts]=\"[9, 18, 47, 158, 1052]\"></section>\n",
|
|
1052
1052
|
"verdict": "excerpt"
|
|
1053
1053
|
}
|
|
1054
1054
|
]
|
package/docs/rating.md
CHANGED
|
@@ -105,7 +105,7 @@ Excerpt — not a complete module
|
|
|
105
105
|
| `step` | `1 \| 0.5` | 1 | SlRating | The smallest move. A half adds a second radio per symbol; smaller fractions are refused because a third of a star is below the minimum target |
|
|
106
106
|
| `clearable` | `boolean` | true | SlRating, provideRating | Whether a press on the checked radio, Backspace or Delete empty the value, with the reason clear |
|
|
107
107
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | SlRating, provideRating | The step of the symbols and the caption. Read from the field or field group first |
|
|
108
|
-
| `tone` | `'accent' \| 'info' \| 'success' \| 'warning' \| 'danger'` | warning | SlRating, provideRating | The
|
|
108
|
+
| `tone` | `'accent' \| 'info' \| 'success' \| 'warning' \| 'danger'` | warning | SlRating, provideRating | The color of a lit symbol. secondary is outside the axis: its solid step is a ground, and a lit star in it reads as unlit |
|
|
109
109
|
| `name` | `string` | generated | SlRating | The submission name every radio shares. Generated when none is written, because an unnamed set of radios is not a group |
|
|
110
110
|
| `form` | `string` | — | SlRating | The form the radios belong to when the rating sits outside it |
|
|
111
111
|
| `disabled` | `boolean` | from the field, or false | SlRating | Native on every radio: the row leaves the tab order. A disabled form control sets it too |
|
|
@@ -128,7 +128,7 @@ Excerpt — not a complete module
|
|
|
128
128
|
| `value` | `number` | — | SlRatingDisplay | The number drawn. Any fraction; clamped to the scale, NaN drawn as nought |
|
|
129
129
|
| `max` | `number` | 5 | SlRatingDisplay, provideRating | How many symbols the scale has |
|
|
130
130
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | SlRatingDisplay, provideRating | The step of the symbols and the text |
|
|
131
|
-
| `tone` | `'accent' \| 'info' \| 'success' \| 'warning' \| 'danger'` | warning | SlRatingDisplay, provideRating | The
|
|
131
|
+
| `tone` | `'accent' \| 'info' \| 'success' \| 'warning' \| 'danger'` | warning | SlRatingDisplay, provideRating | The color of the lit share |
|
|
132
132
|
| `variant` | `'full' \| 'compact' \| 'histogram'` | full | SlRatingDisplay | Every symbol; one lit star with the number; or one star, the number and the distribution |
|
|
133
133
|
| `count` | `number` | — | SlRatingDisplay | How many readings. Written beside the stars and in the accessible name |
|
|
134
134
|
| `distribution` | `readonly number[]` | — | SlRatingDisplay | Counts per level, lowest first, drawn by the histogram variant |
|
|
@@ -150,10 +150,10 @@ Excerpt — not a complete module
|
|
|
150
150
|
| `insightThresholds` | `Partial<RatingInsightThresholds>` | { divided: 0.25, few: 30, margin: 0.5, consensus: 0.8 } | SlRatingSummary, provideRating | Where each conclusion is drawn, merged key by key. margin also decides when the spectrum says its mean is uncertain |
|
|
151
151
|
| `showInsight` | `boolean` | true | SlRatingSummary | Whether the spectrum draws its conclusion. The bars variant draws none |
|
|
152
152
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | SlRatingSummary, provideRating | The step of the text and the rows |
|
|
153
|
-
| `tone` | `'accent' \| 'info' \| 'success' \| 'warning' \| 'danger'` | warning | SlRatingSummary, provideRating | The
|
|
153
|
+
| `tone` | `'accent' \| 'info' \| 'success' \| 'warning' \| 'danger'` | warning | SlRatingSummary, provideRating | The color of the stars and the bars |
|
|
154
154
|
| `messages` | `Partial<RatingMessages>` | — | SlRatingSummary | Words laid over the language in force, key by key — every sentence of the summary: summaryCount, summaryEmpty, spectrumCount, spectrumUncertain, levelLabel, distributionLabel, the buckets and the four conclusions |
|
|
155
155
|
| `locale` | `string` | the language in force | SlRatingSummary | The locale every number is written in |
|
|
156
|
-
| `exportAs="slRatingSummary"` | `SlRatingSummary` | — | a template | Reaches the instance: summary() is the whole
|
|
156
|
+
| `exportAs="slRatingSummary"` | `SlRatingSummary` | — | a template | Reaches the instance: summary() is the whole summarizeRatings result, for a caption of one’s own |
|
|
157
157
|
| `provideRating()` | `{ size, tone, max, insightThresholds }` | — | an injector | Shared with the other two members |
|
|
158
158
|
|
|
159
159
|
## Events
|
|
@@ -186,14 +186,14 @@ Excerpt — not a complete module
|
|
|
186
186
|
- The pattern is the WAI-ARIA APG Rating Radio Group example: a radiogroup of native radios, each named "3 de 5" by aria-label. Tab lands on the checked radio or on the first, and Space checks — both the platform’s, because the radios share a name.
|
|
187
187
|
- The arrows are the family’s and they do not wrap: the APG radio example wraps from the last star to the first, and a rating that falls from five to one on one key too many is the defect the APG slider example, Ark, MUI and Mantine all avoid. Home and End reach both ends; PageUp and PageDown are declined, because ten symbols are crossed key by key.
|
|
188
188
|
- The caption is aria-hidden, because the checked radio already announces the value; the glyphs are aria-hidden inside slIcon. Read-only is enforced by refusing the press and the keys, and every radio keeps its tab stop, its focus ring and its contrast.
|
|
189
|
-
- In the light and dark schemes a lit star measures 1,53:1 against the page, the ReUI yellow the family adopted; the value is never left to
|
|
190
|
-
- The display is one image, role="img", named by its whole value and its count: "
|
|
191
|
-
- A name the consumer writes as a static aria-label wins, which is how a histogram row says "
|
|
189
|
+
- In the light and dark schemes a lit star measures 1,53:1 against the page, the ReUI yellow the family adopted; the value is never left to color alone, because it is always in the accessible name and usually written beside the row. The high-contrast scheme and forced colors draw a solid edge around every star.
|
|
190
|
+
- The display is one image, role="img", named by its whole value and its count: "Rated 4.6 out of 5, 1,284 ratings". The stars, the number and the count inside it are aria-hidden, so a screen reader hears one sentence rather than five images and two numbers.
|
|
191
|
+
- A name the consumer writes as a static aria-label wins, which is how a histogram row says "divided opinions" as well as the mean.
|
|
192
192
|
- The number is always written beside the stars unless showValue is false, because a lit share of a star is not a readable quantity for anyone, at any contrast.
|
|
193
193
|
- The summary is a section named by the consumer’s aria-label, so it is a region a screen reader can reach by landmark. The figure is plain text, and the stars inside the aggregate are one image named by the mean.
|
|
194
|
-
- Each level is named whole — "5
|
|
194
|
+
- Each level is named whole — "5 stars: 1,052 ratings, 82%" — and the bar, the axis and the mean mark are aria-hidden, because the name already carries what they draw.
|
|
195
195
|
- A filterable level is a native toggle button with aria-pressed, so Space and Enter press it; a level with no readings is disabled rather than offered as a filter that returns nothing.
|
|
196
|
-
- The conclusion and the three buckets are words, not
|
|
196
|
+
- The conclusion and the three buckets are words, not colors: the tone of the pill and of each swatch repeats a sentence that is already written.
|
|
197
197
|
|
|
198
198
|
## Tokens
|
|
199
199
|
|
|
@@ -218,9 +218,9 @@ Read-only keeps every tab stop and the lit stars, because the value is real, and
|
|
|
218
218
|
Excerpt — not a complete module
|
|
219
219
|
|
|
220
220
|
```html
|
|
221
|
-
<div slRating aria-label="
|
|
222
|
-
<div slRating aria-label="
|
|
223
|
-
<div slRating aria-label="
|
|
221
|
+
<div slRating aria-label="Published rating" readOnly [value]="4"></div>
|
|
222
|
+
<div slRating aria-label="Locked rating" disabled [value]="2"></div>
|
|
223
|
+
<div slRating aria-label="Required rating" invalid required></div>
|
|
224
224
|
```
|
|
225
225
|
|
|
226
226
|
### In a field, and in a reactive form
|
|
@@ -231,9 +231,9 @@ Excerpt — not a complete module
|
|
|
231
231
|
|
|
232
232
|
```html
|
|
233
233
|
<div slField required>
|
|
234
|
-
<label slFieldLabel>
|
|
235
|
-
<div slRating formControlName="
|
|
236
|
-
<p slFieldError>
|
|
234
|
+
<label slFieldLabel>Sound quality</label>
|
|
235
|
+
<div slRating formControlName="sound"></div>
|
|
236
|
+
<p slFieldError>Choose a rating.</p>
|
|
237
237
|
</div>
|
|
238
238
|
```
|
|
239
239
|
|
|
@@ -251,7 +251,7 @@ Excerpt — not a complete module
|
|
|
251
251
|
[messages]="{ itemLabel: 'Nota {value} de {max}' }"
|
|
252
252
|
>
|
|
253
253
|
<ng-template slRatingCaption let-value="value" let-preview="preview">
|
|
254
|
-
{{ preview ?? value ?? '
|
|
254
|
+
{{ preview ?? value ?? 'No rating' }}
|
|
255
255
|
</ng-template>
|
|
256
256
|
</div>
|
|
257
257
|
```
|
|
@@ -319,7 +319,7 @@ Excerpt — not a complete module
|
|
|
319
319
|
<div
|
|
320
320
|
slRatingDisplay
|
|
321
321
|
variant="histogram"
|
|
322
|
-
aria-label="
|
|
322
|
+
aria-label="Average 3.3 of 5, 8 reviews, divided opinions"
|
|
323
323
|
[value]="3.3"
|
|
324
324
|
[count]="8"
|
|
325
325
|
[distribution]="[3, 0, 1, 0, 4]"
|
|
@@ -354,11 +354,7 @@ The aggregate beside one bar per level, highest first. The two blocks stand side
|
|
|
354
354
|
Excerpt — not a complete module
|
|
355
355
|
|
|
356
356
|
```html
|
|
357
|
-
<section
|
|
358
|
-
slRatingSummary
|
|
359
|
-
aria-label="Avaliações dos clientes"
|
|
360
|
-
[counts]="[9, 18, 47, 158, 1052]"
|
|
361
|
-
></section>
|
|
357
|
+
<section slRatingSummary aria-label="Customer reviews" [counts]="[9, 18, 47, 158, 1052]"></section>
|
|
362
358
|
```
|
|
363
359
|
|
|
364
360
|
### Levels that filter the reviews
|
|
@@ -370,7 +366,7 @@ Excerpt — not a complete module
|
|
|
370
366
|
```html
|
|
371
367
|
<section
|
|
372
368
|
slRatingSummary
|
|
373
|
-
aria-label="
|
|
369
|
+
aria-label="Filter reviews"
|
|
374
370
|
filterable
|
|
375
371
|
[counts]="contagens"
|
|
376
372
|
[(selectedLevels)]="niveis"
|
|
@@ -379,7 +375,7 @@ Excerpt — not a complete module
|
|
|
379
375
|
|
|
380
376
|
### The spectrum: spread, mean and margin
|
|
381
377
|
|
|
382
|
-
The same counts as columns over the scale, lowest first, with the mean and its 95% interval laid over them and the readings split into positive, neutral and negative. Eight readings at 3
|
|
378
|
+
The same counts as columns over the scale, lowest first, with the mean and its 95% interval laid over them and the readings split into positive, neutral and negative. Eight readings at 3.3 say "uncertain average, between 2.0 and 4.5".
|
|
383
379
|
|
|
384
380
|
Excerpt — not a complete module
|
|
385
381
|
|
|
@@ -387,7 +383,7 @@ Excerpt — not a complete module
|
|
|
387
383
|
<section
|
|
388
384
|
slRatingSummary
|
|
389
385
|
variant="spectrum"
|
|
390
|
-
aria-label="
|
|
386
|
+
aria-label="Review summary"
|
|
391
387
|
filterable
|
|
392
388
|
[counts]="[9, 18, 47, 158, 1052]"
|
|
393
389
|
></section>
|
|
@@ -403,7 +399,7 @@ Excerpt — not a complete module
|
|
|
403
399
|
<section
|
|
404
400
|
slRatingSummary
|
|
405
401
|
variant="spectrum"
|
|
406
|
-
aria-label="
|
|
402
|
+
aria-label="Reviews"
|
|
407
403
|
[counts]="[40, 12, 10, 14, 60]"
|
|
408
404
|
[insightThresholds]="{ divided: 0.3 }"
|
|
409
405
|
></section>
|
|
@@ -411,12 +407,12 @@ Excerpt — not a complete module
|
|
|
411
407
|
|
|
412
408
|
### Nobody has rated it yet
|
|
413
409
|
|
|
414
|
-
With zero readings the figure and the scale are omitted — a missing mean is not nought — the stars are unlit, the count says "
|
|
410
|
+
With zero readings the figure and the scale are omitted — a missing mean is not nought — the stars are unlit, the count says "No ratings yet", and no conclusion is drawn.
|
|
415
411
|
|
|
416
412
|
Excerpt — not a complete module
|
|
417
413
|
|
|
418
414
|
```html
|
|
419
|
-
<section slRatingSummary aria-label="
|
|
415
|
+
<section slRatingSummary aria-label="No reviews" [counts]="[0, 0, 0, 0, 0]"></section>
|
|
420
416
|
```
|
|
421
417
|
|
|
422
418
|
### In a narrow column
|
|
@@ -426,10 +422,5 @@ In a 360-pixel column the aggregate stacks above the distribution and every row
|
|
|
426
422
|
Excerpt — not a complete module
|
|
427
423
|
|
|
428
424
|
```html
|
|
429
|
-
<section
|
|
430
|
-
slRatingSummary
|
|
431
|
-
size="sm"
|
|
432
|
-
aria-label="Avaliações"
|
|
433
|
-
[counts]="[9, 18, 47, 158, 1052]"
|
|
434
|
-
></section>
|
|
425
|
+
<section slRatingSummary size="sm" aria-label="Reviews" [counts]="[9, 18, 47, 158, 1052]"></section>
|
|
435
426
|
```
|
package/docs/result-state.json
CHANGED
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"type": "'center' | 'start'",
|
|
140
140
|
"defaultValue": "center",
|
|
141
141
|
"appliesTo": "slResultState",
|
|
142
|
-
"description": "Whether the region reads
|
|
142
|
+
"description": "Whether the region reads centerd or from the inline edge. start is for a data-dense screen, where a centerd column reads as an interruption"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
"name": "live",
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
"There is no APG pattern for this family: the Authoring Practices list holds no empty, error or result state, and the nearest official guidance is the Region landmark practice, which states that “a region landmark must have a label”. The root is a section and the attribute is written only once a title exists, so an unlabelled region is a plain grouping element rather than a landmark with no name.",
|
|
213
213
|
"The box is a landmark, not a live region. MDN’s alert role reference states that the role “should only be used for text content, not interactive elements such as links or buttons”, and this family has a row of buttons in it. The region that announces is slResultStateContent, which holds the title and the description alone; the mark, the actions and the footer are its siblings.",
|
|
214
214
|
"live defaults to polite, which is the one place this family and alert disagree. WCAG 2.2’s Understanding document for SC 4.1.3 names this family’s own text as its example: “brief text messages displayed about the completion or status of the search, such as ‘Searching…’, ‘18 results returned’ or ‘No results returned’ would be status updates”. An alert may be a standing notice that was on the page before it loaded; a result is always the outcome of an operation. None of the seven surveyed implementations writes a live role of any kind.",
|
|
215
|
-
"Status is never carried by
|
|
215
|
+
"Status is never carried by color alone, because the family paints no color for it: what happened is in the title and the description, which forced colors leave legible. The illustrations keep the theme’s system-color mapping under forced colors, so a stack is still three layers and not three outlines laid over one another.",
|
|
216
216
|
"The media box is hidden from assistive technology, with the projected glyph, the drawing made around it and any artwork the page supplies. The title and the description already say what the picture says; an illustration that adds information is not decorative, and what it adds belongs in the description.",
|
|
217
217
|
"The root carries tabindex=\"-1\" and is not in the tab sequence. A template that has just emptied a table calls focus() on the instance exportAs gives it; the family never does it, because moving focus unprompted is a change of context nobody asked for. A tabindex the page wrote is read with HostAttributeToken and kept.",
|
|
218
218
|
"The family holds no mutable value, so it has no model(), no output() and no ControlValueAccessor. Which status a region is in is a fact about the consumer’s own data — a region that decided it would be deciding whether the fetch failed.",
|
|
@@ -287,15 +287,15 @@
|
|
|
287
287
|
{
|
|
288
288
|
"id": "playground",
|
|
289
289
|
"title": "Playground",
|
|
290
|
-
"note": "One region with every axis on it, driven by the controls below the canvas. Change the status and the mark changes with it, which is what makes the seven distinguishable in
|
|
290
|
+
"note": "One region with every axis on it, driven by the controls below the canvas. Change the status and the mark changes with it, which is what makes the seven distinguishable in grayscale.",
|
|
291
291
|
"language": "html",
|
|
292
|
-
"source": "<section slResultState status=\"empty\">\n <div slResultStateContent>\n <div slResultStateTitle>
|
|
292
|
+
"source": "<section slResultState status=\"empty\">\n <div slResultStateContent>\n <div slResultStateTitle>No projects yet</div>\n <p slResultStateDescription>Create a project to start collecting runs.</p>\n </div>\n <div slResultStateActions>\n <button slButton type=\"button\">Create project</button>\n </div>\n</section>\n",
|
|
293
293
|
"verdict": "excerpt"
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
296
|
"id": "statuses",
|
|
297
297
|
"title": "What the region is reporting",
|
|
298
|
-
"note": "Seven semantics, seven silhouettes. Read in
|
|
298
|
+
"note": "Seven semantics, seven silhouettes. Read in grayscale, or under forced colors where every ground becomes one system color, the shape is the only thing left telling an absent collection from a failed request.",
|
|
299
299
|
"language": "html",
|
|
300
300
|
"source": "<!-- empty: the collection exists and holds nothing. -->\n<!-- no-results: a query or a filter matched nothing. -->\n<!-- not-found: the thing that was asked for is not here. -->\n<!-- error: a failure the reader can act on. -->\n<!-- forbidden: the reader is not allowed to see it. -->\n<!-- offline: the connection is gone. -->\n<!-- success: the flow finished and there is nothing left to do. -->\n<section slResultState status=\"no-results\"></section>\n",
|
|
301
301
|
"verdict": "excerpt"
|
|
@@ -305,15 +305,15 @@
|
|
|
305
305
|
"title": "How far the region reaches",
|
|
306
306
|
"note": "A row inside a table cell, a panel inside a card, the whole route — the same three words alert uses. The mark is the title’s own size at every reach and stands over the title at section and page; at inline it sits on the message’s first line and the actions join it, and at page the title takes the top step of the type scale.",
|
|
307
307
|
"language": "html",
|
|
308
|
-
"source": "<section slResultState reach=\"inline\" status=\"no-results\">\n <div slResultStateContent>\n <div slResultStateTitle>
|
|
308
|
+
"source": "<section slResultState reach=\"inline\" status=\"no-results\">\n <div slResultStateContent>\n <div slResultStateTitle>No rows match the filter</div>\n </div>\n <div slResultStateActions>\n <button slButton size=\"sm\" variant=\"ghost\" type=\"button\">Clear filters</button>\n </div>\n</section>\n\n<section slResultState reach=\"page\" status=\"not-found\"></section>\n",
|
|
309
309
|
"verdict": "excerpt"
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
312
|
"id": "align",
|
|
313
|
-
"title": "
|
|
314
|
-
"note": "Carbon left-aligns its empty states inside data-dense views and the other six surveyed implementations
|
|
313
|
+
"title": "Centerd, or from the inline edge",
|
|
314
|
+
"note": "Carbon left-aligns its empty states inside data-dense views and the other six surveyed implementations center unconditionally. Both readings are real, and align is one axis rather than a second family.",
|
|
315
315
|
"language": "html",
|
|
316
|
-
"source": "<!-- The default, for a panel or a route. -->\n<section slResultState align=\"center\"></section>\n\n<!-- For a data-dense screen, where a
|
|
316
|
+
"source": "<!-- The default, for a panel or a route. -->\n<section slResultState align=\"center\"></section>\n\n<!-- For a data-dense screen, where a centerd column reads as an interruption. -->\n<section slResultState align=\"start\" reach=\"inline\"></section>\n",
|
|
317
317
|
"verdict": "excerpt"
|
|
318
318
|
},
|
|
319
319
|
{
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
"title": "A drawing around the page’s glyph",
|
|
330
330
|
"note": "Three drawings in the neutral surface and border roles — a framed tile, three layers leaning back, a stack of cards — made around the projected glyph. None takes a tone, and inline reach draws none. A region that announces assembles its drawing as it arrives; under reduced motion it arrives assembled.",
|
|
331
331
|
"language": "html",
|
|
332
|
-
"source": "<section slResultState illustration=\"stack\">\n <span slIcon slResultStateMedia><svg slGlyph name=\"bell\"></svg></span>\n <div slResultStateContent>\n <div slResultStateTitle>
|
|
332
|
+
"source": "<section slResultState illustration=\"stack\">\n <span slIcon slResultStateMedia><svg slGlyph name=\"bell\"></svg></span>\n <div slResultStateContent>\n <div slResultStateTitle>No alerts configured</div>\n </div>\n</section>\n\n<!-- A framed tile, and a stack of cards standing in for rows. -->\n<section slResultState illustration=\"tile\">\n <span slIcon slResultStateMedia><svg slGlyph name=\"inbox\"></svg></span>\n</section>\n<section slResultState illustration=\"cards\">\n <span slIcon slResultStateMedia><svg slGlyph name=\"file-text\"></svg></span>\n</section>\n\n<!-- The cards draw their two lines with no glyph at all. -->\n<section slResultState illustration=\"cards\"></section>\n",
|
|
333
333
|
"verdict": "excerpt"
|
|
334
334
|
},
|
|
335
335
|
{
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
"title": "The way out of the situation",
|
|
338
338
|
"note": "The controls are the consumer’s own buttons in a part outside the live region — a reader hearing the message is not read two button labels in the middle of it. Narrow the window past 20rem and watch them stack.",
|
|
339
339
|
"language": "html",
|
|
340
|
-
"source": "<section slResultState status=\"error\">\n <div slResultStateContent>\n <div slResultStateTitle>
|
|
340
|
+
"source": "<section slResultState status=\"error\">\n <div slResultStateContent>\n <div slResultStateTitle>The run failed</div>\n </div>\n <div slResultStateActions>\n <button slButton tone=\"danger\" [loading]=\"retrying()\" type=\"button\">Try again</button>\n <button slButton variant=\"outline\" type=\"button\">Open log</button>\n </div>\n <div slResultStateFooter>\n <a slLink href=\"/docs/retries\">How retries are counted</a>\n </div>\n</section>\n",
|
|
341
341
|
"verdict": "excerpt"
|
|
342
342
|
},
|
|
343
343
|
{
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
"title": "Content the family did not choose",
|
|
354
354
|
"note": "A German compound with no break opportunity, a digest no language can break, a title standing alone and a region with no mark — all in a column narrow enough to make each of them a problem.",
|
|
355
355
|
"language": "html",
|
|
356
|
-
"source": "<section slResultState status=\"error\">\n <div slResultStateContent>\n <div slResultStateTitle>{{ longTranslatedTitle }}</div>\n <p slResultStateDescription>
|
|
356
|
+
"source": "<section slResultState status=\"error\">\n <div slResultStateContent>\n <div slResultStateTitle>{{ longTranslatedTitle }}</div>\n <p slResultStateDescription>Run {{ digest }} failed.</p>\n </div>\n</section>\n",
|
|
357
357
|
"verdict": "excerpt"
|
|
358
358
|
},
|
|
359
359
|
{
|
package/docs/result-state.md
CHANGED
|
@@ -27,11 +27,11 @@ Excerpt — not a complete module
|
|
|
27
27
|
```html
|
|
28
28
|
<section slResultState status="empty">
|
|
29
29
|
<div slResultStateContent>
|
|
30
|
-
<div slResultStateTitle>
|
|
31
|
-
<p slResultStateDescription>
|
|
30
|
+
<div slResultStateTitle>No projects yet</div>
|
|
31
|
+
<p slResultStateDescription>Create a project to start collecting runs.</p>
|
|
32
32
|
</div>
|
|
33
33
|
<div slResultStateActions>
|
|
34
|
-
<button slButton type="button">
|
|
34
|
+
<button slButton type="button">Create project</button>
|
|
35
35
|
</div>
|
|
36
36
|
</section>
|
|
37
37
|
```
|
|
@@ -54,7 +54,7 @@ Excerpt — not a complete module
|
|
|
54
54
|
| --- | --- | --- | --- | --- |
|
|
55
55
|
| `status` | `'empty' \| 'no-results' \| 'not-found' \| 'error' \| 'forbidden' \| 'offline' \| 'success'` | empty | slResultState | What the region is reporting, written on the root as data-status for a page to key its own artwork on. The family paints nothing for it (RS1): what happened is in the title |
|
|
56
56
|
| `reach` | `'inline' \| 'section' \| 'page'` | section | slResultState | The scope the message applies to. inline is a row for a table cell and draws no illustration; page takes the top step of the type scale and draws the illustration half again as large |
|
|
57
|
-
| `align` | `'center' \| 'start'` | center | slResultState | Whether the region reads
|
|
57
|
+
| `align` | `'center' \| 'start'` | center | slResultState | Whether the region reads centerd or from the inline edge. start is for a data-dense screen, where a centerd column reads as an interruption |
|
|
58
58
|
| `live` | `'off' \| 'polite' \| 'assertive'` | polite | slResultState | Whether the text announces itself. polite writes role="status" on the content part and assertive writes role="alert"; both imply aria-live and aria-atomic, and neither is written on the box |
|
|
59
59
|
| `illustration` | `'none' \| 'tile' \| 'stack' \| 'cards'` | none | slResultState | The drawing the family makes around the projected slResultStateMedia, in the neutral surface and border roles and never in a tone. tile and stack frame a glyph and draw nothing without one; cards draws its lines with or without it; none draws nothing of the family’s own |
|
|
60
60
|
| `slResultStateMedia` | `directive` | — | a projected element | The glyph an illustration is drawn around, or artwork the page supplies under illustration="none". It is projected into the box the family draws, so it keeps the height the reach gives it. React passes a media node instead |
|
|
@@ -80,7 +80,7 @@ Excerpt — not a complete module
|
|
|
80
80
|
- There is no APG pattern for this family: the Authoring Practices list holds no empty, error or result state, and the nearest official guidance is the Region landmark practice, which states that “a region landmark must have a label”. The root is a section and the attribute is written only once a title exists, so an unlabelled region is a plain grouping element rather than a landmark with no name.
|
|
81
81
|
- The box is a landmark, not a live region. MDN’s alert role reference states that the role “should only be used for text content, not interactive elements such as links or buttons”, and this family has a row of buttons in it. The region that announces is slResultStateContent, which holds the title and the description alone; the mark, the actions and the footer are its siblings.
|
|
82
82
|
- live defaults to polite, which is the one place this family and alert disagree. WCAG 2.2’s Understanding document for SC 4.1.3 names this family’s own text as its example: “brief text messages displayed about the completion or status of the search, such as ‘Searching…’, ‘18 results returned’ or ‘No results returned’ would be status updates”. An alert may be a standing notice that was on the page before it loaded; a result is always the outcome of an operation. None of the seven surveyed implementations writes a live role of any kind.
|
|
83
|
-
- Status is never carried by
|
|
83
|
+
- Status is never carried by color alone, because the family paints no color for it: what happened is in the title and the description, which forced colors leave legible. The illustrations keep the theme’s system-color mapping under forced colors, so a stack is still three layers and not three outlines laid over one another.
|
|
84
84
|
- The media box is hidden from assistive technology, with the projected glyph, the drawing made around it and any artwork the page supplies. The title and the description already say what the picture says; an illustration that adds information is not decorative, and what it adds belongs in the description.
|
|
85
85
|
- The root carries tabindex="-1" and is not in the tab sequence. A template that has just emptied a table calls focus() on the instance exportAs gives it; the family never does it, because moving focus unprompted is a change of context nobody asked for. A tabindex the page wrote is read with HostAttributeToken and kept.
|
|
86
86
|
- The family holds no mutable value, so it has no model(), no output() and no ControlValueAccessor. Which status a region is in is a fact about the consumer’s own data — a region that decided it would be deciding whether the fetch failed.
|
|
@@ -94,7 +94,7 @@ Excerpt — not a complete module
|
|
|
94
94
|
|
|
95
95
|
### What the region is reporting
|
|
96
96
|
|
|
97
|
-
Seven semantics, seven silhouettes. Read in
|
|
97
|
+
Seven semantics, seven silhouettes. Read in grayscale, or under forced colors where every ground becomes one system color, the shape is the only thing left telling an absent collection from a failed request.
|
|
98
98
|
|
|
99
99
|
Excerpt — not a complete module
|
|
100
100
|
|
|
@@ -118,19 +118,19 @@ Excerpt — not a complete module
|
|
|
118
118
|
```html
|
|
119
119
|
<section slResultState reach="inline" status="no-results">
|
|
120
120
|
<div slResultStateContent>
|
|
121
|
-
<div slResultStateTitle>
|
|
121
|
+
<div slResultStateTitle>No rows match the filter</div>
|
|
122
122
|
</div>
|
|
123
123
|
<div slResultStateActions>
|
|
124
|
-
<button slButton size="sm" variant="ghost" type="button">
|
|
124
|
+
<button slButton size="sm" variant="ghost" type="button">Clear filters</button>
|
|
125
125
|
</div>
|
|
126
126
|
</section>
|
|
127
127
|
|
|
128
128
|
<section slResultState reach="page" status="not-found"></section>
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
###
|
|
131
|
+
### Centerd, or from the inline edge
|
|
132
132
|
|
|
133
|
-
Carbon left-aligns its empty states inside data-dense views and the other six surveyed implementations
|
|
133
|
+
Carbon left-aligns its empty states inside data-dense views and the other six surveyed implementations center unconditionally. Both readings are real, and align is one axis rather than a second family.
|
|
134
134
|
|
|
135
135
|
Excerpt — not a complete module
|
|
136
136
|
|
|
@@ -138,7 +138,7 @@ Excerpt — not a complete module
|
|
|
138
138
|
<!-- The default, for a panel or a route. -->
|
|
139
139
|
<section slResultState align="center"></section>
|
|
140
140
|
|
|
141
|
-
<!-- For a data-dense screen, where a
|
|
141
|
+
<!-- For a data-dense screen, where a centerd column reads as an interruption. -->
|
|
142
142
|
<section slResultState align="start" reach="inline"></section>
|
|
143
143
|
```
|
|
144
144
|
|
|
@@ -174,7 +174,7 @@ Excerpt — not a complete module
|
|
|
174
174
|
<section slResultState illustration="stack">
|
|
175
175
|
<span slIcon slResultStateMedia><svg slGlyph name="bell"></svg></span>
|
|
176
176
|
<div slResultStateContent>
|
|
177
|
-
<div slResultStateTitle>
|
|
177
|
+
<div slResultStateTitle>No alerts configured</div>
|
|
178
178
|
</div>
|
|
179
179
|
</section>
|
|
180
180
|
|
|
@@ -199,14 +199,14 @@ Excerpt — not a complete module
|
|
|
199
199
|
```html
|
|
200
200
|
<section slResultState status="error">
|
|
201
201
|
<div slResultStateContent>
|
|
202
|
-
<div slResultStateTitle>
|
|
202
|
+
<div slResultStateTitle>The run failed</div>
|
|
203
203
|
</div>
|
|
204
204
|
<div slResultStateActions>
|
|
205
|
-
<button slButton tone="danger" [loading]="retrying()" type="button">
|
|
206
|
-
<button slButton variant="outline" type="button">
|
|
205
|
+
<button slButton tone="danger" [loading]="retrying()" type="button">Try again</button>
|
|
206
|
+
<button slButton variant="outline" type="button">Open log</button>
|
|
207
207
|
</div>
|
|
208
208
|
<div slResultStateFooter>
|
|
209
|
-
<a slLink href="/docs/retries">
|
|
209
|
+
<a slLink href="/docs/retries">How retries are counted</a>
|
|
210
210
|
</div>
|
|
211
211
|
</section>
|
|
212
212
|
```
|
|
@@ -239,7 +239,7 @@ Excerpt — not a complete module
|
|
|
239
239
|
<section slResultState status="error">
|
|
240
240
|
<div slResultStateContent>
|
|
241
241
|
<div slResultStateTitle>{{ longTranslatedTitle }}</div>
|
|
242
|
-
<p slResultStateDescription>
|
|
242
|
+
<p slResultStateDescription>Run {{ digest }} failed.</p>
|
|
243
243
|
</div>
|
|
244
244
|
</section>
|
|
245
245
|
```
|
package/docs/saved-views.json
CHANGED
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"part": "modified",
|
|
70
70
|
"element": "span",
|
|
71
71
|
"required": false,
|
|
72
|
-
"purpose": "Inside the trigger while the grid differs from the view in use: a dot in the accent solid and the word Modified, so the state is never
|
|
72
|
+
"purpose": "Inside the trigger while the grid differs from the view in use: a dot in the accent solid and the word Modified, so the state is never color alone."
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
"part": "revert",
|