@slotted/angular 0.1.0-beta.3 → 0.1.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/AGENTS.snippet.md +3 -1
- package/docs/accordion.json +5 -5
- package/docs/accordion.md +12 -12
- package/docs/action-bar.json +23 -22
- package/docs/action-bar.md +30 -30
- package/docs/action-sheet.json +391 -64
- package/docs/action-sheet.md +259 -0
- package/docs/alert.json +31 -14
- package/docs/alert.md +29 -18
- package/docs/app-shell.examples.md +8 -8
- package/docs/app-shell.json +38 -21
- package/docs/app-shell.md +9 -7
- package/docs/avatar-group.json +1 -1
- package/docs/avatar-group.md +1 -1
- package/docs/avatar.json +32 -11
- package/docs/avatar.md +13 -11
- package/docs/badge.json +10 -4
- package/docs/badge.md +5 -5
- package/docs/breadcrumb.json +2 -2
- package/docs/breadcrumb.md +2 -2
- package/docs/button-group.json +2 -1
- package/docs/button-group.md +2 -2
- package/docs/button.examples.md +15 -0
- package/docs/button.json +134 -14
- package/docs/button.md +32 -8
- package/docs/calendar.json +31 -6
- package/docs/calendar.md +9 -6
- package/docs/card.json +3 -2
- package/docs/card.md +3 -3
- package/docs/carousel.json +10 -10
- package/docs/carousel.md +11 -11
- package/docs/cascader.json +2 -0
- package/docs/cascader.md +1 -1
- package/docs/chart.examples.md +45 -31
- package/docs/chart.json +40 -35
- package/docs/chart.md +7 -7
- package/docs/checkbox-group.examples.md +13 -13
- package/docs/checkbox-group.json +7 -7
- package/docs/checkbox-group.md +2 -2
- package/docs/checkbox.examples.md +7 -7
- package/docs/checkbox.json +6 -6
- package/docs/checkbox.md +3 -3
- package/docs/code-block.json +93 -93
- package/docs/code-block.md +70 -70
- package/docs/collapsible.json +12 -11
- package/docs/collapsible.md +20 -20
- package/docs/color-picker.json +26 -26
- package/docs/color-picker.md +16 -16
- package/docs/combobox.json +6 -2
- package/docs/combobox.md +3 -3
- package/docs/command-palette.json +2 -0
- package/docs/command-palette.md +1 -1
- package/docs/context-menu.json +1 -1
- package/docs/context-menu.md +1 -1
- package/docs/currency-field.examples.md +3 -3
- package/docs/currency-field.json +14 -6
- package/docs/currency-field.md +6 -5
- package/docs/dashboard-grid.json +53 -10
- package/docs/dashboard-grid.md +18 -6
- package/docs/data-grid.examples.md +3 -3
- package/docs/data-grid.json +37 -11
- package/docs/data-grid.md +2 -1
- package/docs/data-grid.props.md +7 -5
- package/docs/data-list.json +2 -1
- package/docs/data-list.md +1 -1
- package/docs/date-field.json +12 -4
- package/docs/date-field.md +8 -7
- package/docs/date-picker.examples.md +36 -0
- package/docs/date-picker.json +32 -5
- package/docs/date-picker.md +7 -5
- package/docs/date-range-picker.json +11 -0
- package/docs/date-range-picker.md +2 -1
- package/docs/datetime-field.json +5 -4
- package/docs/datetime-field.md +10 -10
- package/docs/datetime-picker.json +11 -1
- package/docs/datetime-picker.md +2 -1
- package/docs/datetime-range-picker.examples.md +3 -3
- package/docs/datetime-range-picker.json +14 -3
- package/docs/datetime-range-picker.md +4 -3
- package/docs/description-list.json +16 -7
- package/docs/description-list.md +8 -7
- package/docs/detail-panel.json +14 -12
- package/docs/detail-panel.md +20 -15
- package/docs/dialog.examples.md +143 -141
- package/docs/dialog.json +58 -24
- package/docs/dialog.md +6 -4
- package/docs/dialog.props.md +9 -7
- package/docs/drawer.examples.md +14 -14
- package/docs/drawer.json +44 -17
- package/docs/drawer.md +10 -8
- package/docs/entity-picker.json +22 -4
- package/docs/entity-picker.md +8 -6
- package/docs/event-calendar.examples.md +3 -3
- package/docs/event-calendar.json +5 -5
- package/docs/event-calendar.md +4 -4
- package/docs/field-group.json +21 -6
- package/docs/field-group.md +14 -12
- package/docs/field.examples.md +3 -3
- package/docs/field.json +20 -5
- package/docs/field.md +4 -2
- package/docs/filter-bar.json +118 -118
- package/docs/filter-bar.md +79 -79
- package/docs/form.json +24 -12
- package/docs/form.md +15 -13
- package/docs/fullscreen.json +4 -4
- package/docs/fullscreen.md +7 -7
- package/docs/guidelines/README.md +2 -2
- package/docs/guidelines/async-feedback.md +25 -4
- package/docs/guidelines/builders.md +1 -1
- package/docs/guidelines/composition.md +37 -11
- package/docs/guidelines/conversations.md +1 -1
- package/docs/guidelines/errors-and-conflicts.md +7 -6
- package/docs/guidelines/forms.md +111 -1
- package/docs/guidelines/index.md +27 -7
- package/docs/guidelines/layout-alignment.md +24 -14
- package/docs/guidelines/list-pages.md +44 -3
- package/docs/guidelines/overviews.md +39 -9
- package/docs/guidelines/own-elements.md +8 -8
- package/docs/guidelines/reading-permissions.md +2 -2
- package/docs/guidelines/record-pages.md +1 -1
- package/docs/guidelines/reports.md +1 -1
- package/docs/highlight.json +9 -9
- package/docs/highlight.md +14 -14
- package/docs/icon.json +5 -3
- package/docs/icon.md +4 -4
- package/docs/image.json +3 -3
- package/docs/image.md +3 -3
- package/docs/import-export-center.json +24 -23
- package/docs/import-export-center.md +18 -18
- package/docs/index.md +3 -2
- package/docs/inline-message.json +34 -21
- package/docs/inline-message.md +32 -30
- package/docs/inline.json +1 -1
- package/docs/inline.md +1 -1
- package/docs/kbd.json +5 -2
- package/docs/kbd.md +3 -3
- package/docs/link.json +22 -6
- package/docs/link.md +9 -7
- package/docs/list-item.json +20 -4
- package/docs/list-item.md +20 -17
- package/docs/list.examples.md +907 -0
- package/docs/list.json +121 -33
- package/docs/list.md +73 -137
- package/docs/listbox.json +1 -2
- package/docs/listbox.md +2 -2
- package/docs/loading-overlay.json +3 -3
- package/docs/loading-overlay.md +3 -3
- package/docs/markdown.json +86 -79
- package/docs/markdown.md +66 -65
- package/docs/media-viewer.json +521 -0
- package/docs/media-viewer.md +188 -0
- package/docs/menu.json +15 -1
- package/docs/menu.md +3 -1
- package/docs/message-scroller.json +2 -2
- package/docs/message-scroller.md +1 -1
- package/docs/message.json +18 -12
- package/docs/message.md +20 -20
- package/docs/multi-select.json +4 -1
- package/docs/multi-select.md +1 -1
- package/docs/navigation-menu.json +1 -0
- package/docs/navigation-menu.md +1 -1
- package/docs/notification-center.json +21 -16
- package/docs/notification-center.md +20 -24
- package/docs/number-field.examples.md +3 -3
- package/docs/number-field.json +4 -3
- package/docs/number-field.md +1 -1
- package/docs/otp-input.json +11 -10
- package/docs/otp-input.md +14 -14
- package/docs/page-header.json +31 -14
- package/docs/page-header.md +25 -25
- package/docs/page.json +4 -2
- package/docs/page.md +3 -2
- package/docs/pagination.json +2 -2
- package/docs/pagination.md +1 -1
- package/docs/popover.examples.md +1 -1
- package/docs/popover.json +5 -3
- package/docs/popover.md +2 -2
- package/docs/progress-indicator.json +7 -5
- package/docs/progress-indicator.md +7 -7
- package/docs/prompt-composer.json +53 -6
- package/docs/prompt-composer.md +12 -6
- package/docs/prose.json +1 -1
- package/docs/prose.md +1 -1
- package/docs/radio-group.examples.md +19 -19
- package/docs/radio-group.json +12 -12
- package/docs/radio-group.md +3 -3
- package/docs/rating.json +28 -26
- package/docs/rating.md +28 -37
- package/docs/result-state.json +13 -12
- package/docs/result-state.md +18 -18
- package/docs/saved-views.json +1 -1
- package/docs/scroll-area.json +266 -64
- package/docs/scroll-area.md +188 -0
- package/docs/section.json +44 -22
- package/docs/section.md +34 -31
- package/docs/segmented-control.json +21 -25
- package/docs/segmented-control.md +33 -33
- package/docs/select.json +4 -0
- package/docs/select.md +1 -1
- package/docs/side-navigation.json +1 -0
- package/docs/side-navigation.md +1 -1
- package/docs/skeleton.json +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/skills/build-own-element/SKILL.md +9 -9
- package/docs/skills/compose-screen/SKILL.md +59 -18
- package/docs/skills/index.md +2 -2
- package/docs/skills/review-screen/SKILL.md +29 -17
- package/docs/skills/theme-app/SKILL.md +66 -20
- package/docs/skills/waiting-states/SKILL.md +15 -11
- package/docs/slider.json +8 -8
- package/docs/slider.md +12 -12
- package/docs/sparkline.json +12 -9
- package/docs/sparkline.md +9 -9
- package/docs/split-button.json +14 -12
- package/docs/split-button.md +28 -30
- package/docs/splitter.json +279 -64
- package/docs/splitter.md +215 -0
- package/docs/stack.json +1 -1
- package/docs/stack.md +1 -1
- package/docs/stat-card.json +36 -9
- package/docs/stat-card.md +11 -8
- package/docs/status-indicator.json +22 -11
- package/docs/status-indicator.md +8 -6
- package/docs/stepper.json +4 -4
- package/docs/stepper.md +4 -4
- package/docs/switch.json +5 -5
- package/docs/switch.md +7 -7
- package/docs/table-of-contents.json +13 -12
- package/docs/table-of-contents.md +14 -14
- package/docs/table.examples.md +3 -3
- package/docs/table.json +17 -3
- package/docs/table.md +3 -1
- package/docs/tabs.json +16 -3
- package/docs/tabs.md +3 -2
- package/docs/tag.json +38 -26
- package/docs/tag.md +17 -17
- package/docs/tags-input.json +30 -3
- package/docs/tags-input.md +5 -2
- package/docs/text-field.examples.md +6 -6
- package/docs/text-field.json +6 -5
- package/docs/text-field.md +2 -2
- package/docs/textarea.examples.md +7 -7
- package/docs/textarea.json +4 -3
- package/docs/textarea.md +1 -1
- package/docs/time-field.json +4 -3
- package/docs/time-field.md +7 -7
- package/docs/time-picker.json +15 -5
- package/docs/time-picker.md +8 -7
- package/docs/time-range-picker.examples.md +5 -5
- package/docs/time-range-picker.json +15 -4
- package/docs/time-range-picker.md +3 -2
- package/docs/timeline.json +138 -132
- package/docs/timeline.md +125 -125
- package/docs/toast.json +15 -7
- package/docs/toast.md +8 -8
- package/docs/toggle-group.json +12 -12
- package/docs/toggle-group.md +28 -28
- package/docs/toggle.json +8 -8
- package/docs/toggle.md +7 -7
- package/docs/tokens.md +53 -26
- package/docs/toolbar.json +11 -11
- package/docs/toolbar.md +23 -23
- package/docs/tooltip.json +4 -3
- package/docs/tooltip.md +4 -4
- package/docs/top-navigation.examples.md +11 -15
- package/docs/top-navigation.json +9 -9
- package/docs/top-navigation.md +7 -7
- package/docs/tour.json +10 -9
- package/docs/tour.md +7 -7
- package/docs/typography.json +6 -4
- package/docs/typography.md +5 -5
- package/docs/upload.examples.md +3 -3
- package/docs/upload.json +9 -9
- package/docs/upload.md +4 -4
- package/fesm2022/slotted-angular-accordion.mjs +4 -2
- package/fesm2022/slotted-angular-accordion.mjs.map +1 -1
- package/fesm2022/slotted-angular-action-bar.mjs +27 -12
- package/fesm2022/slotted-angular-action-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-action-sheet.mjs +48 -29
- package/fesm2022/slotted-angular-action-sheet.mjs.map +1 -1
- package/fesm2022/slotted-angular-alert.mjs +56 -18
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-app-shell.mjs +85 -56
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
- package/fesm2022/slotted-angular-aspect-ratio.mjs +4 -2
- package/fesm2022/slotted-angular-aspect-ratio.mjs.map +1 -1
- package/fesm2022/slotted-angular-attachment.mjs +33 -22
- package/fesm2022/slotted-angular-attachment.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar-group.mjs +13 -10
- package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +17 -10
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +15 -11
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs +27 -19
- package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/slotted-angular-button-group.mjs +8 -5
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +163 -28
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-calendar.mjs +263 -65
- package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +19 -17
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-carousel.mjs +22 -11
- package/fesm2022/slotted-angular-carousel.mjs.map +1 -1
- package/fesm2022/slotted-angular-cascader.mjs +179 -65
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +26 -5
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox-group.mjs +5 -3
- package/fesm2022/slotted-angular-checkbox-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +14 -9
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-code-block.mjs +30 -16
- package/fesm2022/slotted-angular-code-block.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +21 -16
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-color-picker.mjs +83 -28
- package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +71 -32
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-combobox.mjs +108 -35
- package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
- package/fesm2022/slotted-angular-command-palette.mjs +162 -54
- package/fesm2022/slotted-angular-command-palette.mjs.map +1 -1
- package/fesm2022/slotted-angular-container.mjs +6 -4
- package/fesm2022/slotted-angular-container.mjs.map +1 -1
- package/fesm2022/slotted-angular-context-menu.mjs +5 -4
- package/fesm2022/slotted-angular-context-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-currency-field.mjs +100 -34
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +384 -88
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +461 -129
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-list.mjs +83 -50
- package/fesm2022/slotted-angular-data-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-field.mjs +78 -27
- package/fesm2022/slotted-angular-date-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs +135 -40
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs +68 -22
- package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs +49 -17
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs +64 -29
- package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +144 -54
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +47 -24
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-detail-panel.mjs +48 -30
- package/fesm2022/slotted-angular-detail-panel.mjs.map +1 -1
- package/fesm2022/slotted-angular-dialog.mjs +81 -39
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
- package/fesm2022/slotted-angular-divider.mjs +7 -5
- package/fesm2022/slotted-angular-divider.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +236 -105
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-entity-picker.mjs +474 -75
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-event-calendar.mjs +262 -105
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-field-group.mjs +30 -9
- package/fesm2022/slotted-angular-field-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-field.mjs +49 -18
- package/fesm2022/slotted-angular-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-filter-bar.mjs +111 -44
- package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-form.mjs +48 -17
- package/fesm2022/slotted-angular-form.mjs.map +1 -1
- package/fesm2022/slotted-angular-fullscreen.mjs +14 -8
- package/fesm2022/slotted-angular-fullscreen.mjs.map +1 -1
- package/fesm2022/slotted-angular-grid.mjs +6 -4
- package/fesm2022/slotted-angular-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-highlight.mjs +6 -4
- package/fesm2022/slotted-angular-highlight.mjs.map +1 -1
- package/fesm2022/slotted-angular-hover-card.mjs +5 -4
- package/fesm2022/slotted-angular-hover-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-icon.mjs +191 -90
- package/fesm2022/slotted-angular-icon.mjs.map +1 -1
- package/fesm2022/slotted-angular-image.mjs +13 -10
- package/fesm2022/slotted-angular-image.mjs.map +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs +185 -109
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +98 -23
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline.mjs +7 -5
- package/fesm2022/slotted-angular-inline.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs +11 -7
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-link.mjs +13 -4
- package/fesm2022/slotted-angular-link.mjs.map +1 -1
- package/fesm2022/slotted-angular-list-item.mjs +63 -23
- package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +15 -11
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +41 -23
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +62 -25
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
- package/fesm2022/slotted-angular-markdown.mjs +57 -31
- package/fesm2022/slotted-angular-markdown.mjs.map +1 -1
- package/fesm2022/slotted-angular-media-viewer.mjs +962 -0
- package/fesm2022/slotted-angular-media-viewer.mjs.map +1 -0
- package/fesm2022/slotted-angular-menu.mjs +62 -39
- package/fesm2022/slotted-angular-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-menubar.mjs +6 -3
- package/fesm2022/slotted-angular-menubar.mjs.map +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs +35 -16
- package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -1
- package/fesm2022/slotted-angular-message.mjs +119 -51
- package/fesm2022/slotted-angular-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-multi-select.mjs +163 -60
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-navigation-menu.mjs +34 -26
- package/fesm2022/slotted-angular-navigation-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +111 -68
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-number-field.mjs +24 -12
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs +14 -9
- package/fesm2022/slotted-angular-otp-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-page-header.mjs +90 -48
- package/fesm2022/slotted-angular-page-header.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +60 -12
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-pagination.mjs +35 -22
- package/fesm2022/slotted-angular-pagination.mjs.map +1 -1
- package/fesm2022/slotted-angular-popover.mjs +34 -21
- package/fesm2022/slotted-angular-popover.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +238 -54
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-prompt-composer.mjs +132 -22
- package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -1
- package/fesm2022/slotted-angular-prose.mjs +14 -11
- package/fesm2022/slotted-angular-prose.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +17 -11
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +143 -87
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-result-state.mjs +16 -12
- package/fesm2022/slotted-angular-result-state.mjs.map +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs +43 -16
- package/fesm2022/slotted-angular-saved-views.mjs.map +1 -1
- package/fesm2022/slotted-angular-scroll-area.mjs +13 -5
- package/fesm2022/slotted-angular-scroll-area.mjs.map +1 -1
- package/fesm2022/slotted-angular-section.mjs +81 -19
- package/fesm2022/slotted-angular-section.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +16 -10
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-select.mjs +189 -69
- package/fesm2022/slotted-angular-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-side-navigation.mjs +46 -35
- package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-skeleton.mjs +32 -16
- package/fesm2022/slotted-angular-skeleton.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +34 -14
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-sparkline.mjs +41 -14
- package/fesm2022/slotted-angular-sparkline.mjs.map +1 -1
- package/fesm2022/slotted-angular-split-button.mjs +37 -11
- package/fesm2022/slotted-angular-split-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-splitter.mjs +11 -9
- package/fesm2022/slotted-angular-splitter.mjs.map +1 -1
- package/fesm2022/slotted-angular-stack.mjs +6 -4
- package/fesm2022/slotted-angular-stack.mjs.map +1 -1
- package/fesm2022/slotted-angular-stat-card.mjs +120 -41
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +51 -20
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-stepper.mjs +40 -15
- package/fesm2022/slotted-angular-stepper.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs +15 -10
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table-of-contents.mjs +29 -21
- package/fesm2022/slotted-angular-table-of-contents.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +162 -79
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tabs.mjs +42 -18
- package/fesm2022/slotted-angular-tabs.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +20 -13
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +254 -29
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-text-field.mjs +55 -15
- package/fesm2022/slotted-angular-text-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-textarea.mjs +5 -3
- package/fesm2022/slotted-angular-textarea.mjs.map +1 -1
- package/fesm2022/slotted-angular-theme.mjs +6 -3
- package/fesm2022/slotted-angular-theme.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-field.mjs +48 -14
- package/fesm2022/slotted-angular-time-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-picker.mjs +55 -20
- package/fesm2022/slotted-angular-time-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-range-picker.mjs +142 -52
- package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-timeline.mjs +147 -64
- package/fesm2022/slotted-angular-timeline.mjs.map +1 -1
- package/fesm2022/slotted-angular-toast.mjs +50 -38
- package/fesm2022/slotted-angular-toast.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle-group.mjs +10 -6
- package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle.mjs +9 -4
- package/fesm2022/slotted-angular-toggle.mjs.map +1 -1
- package/fesm2022/slotted-angular-toolbar.mjs +27 -12
- package/fesm2022/slotted-angular-toolbar.mjs.map +1 -1
- package/fesm2022/slotted-angular-tooltip.mjs +15 -6
- package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
- package/fesm2022/slotted-angular-top-navigation.mjs +64 -44
- package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +49 -24
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-transfer.mjs +69 -30
- package/fesm2022/slotted-angular-transfer.mjs.map +1 -1
- package/fesm2022/slotted-angular-tree.mjs +80 -26
- package/fesm2022/slotted-angular-tree.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +9 -5
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +127 -59
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/fesm2022/slotted-angular-visually-hidden.mjs +4 -2
- package/fesm2022/slotted-angular-visually-hidden.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +169 -71
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +19 -3
- package/types/slotted-angular-accordion.d.ts.map +1 -1
- package/types/slotted-angular-action-bar.d.ts +2 -0
- package/types/slotted-angular-action-bar.d.ts.map +1 -1
- package/types/slotted-angular-action-sheet.d.ts.map +1 -1
- package/types/slotted-angular-alert.d.ts +17 -8
- package/types/slotted-angular-alert.d.ts.map +1 -1
- package/types/slotted-angular-app-shell.d.ts +10 -8
- package/types/slotted-angular-app-shell.d.ts.map +1 -1
- package/types/slotted-angular-aspect-ratio.d.ts.map +1 -1
- package/types/slotted-angular-attachment.d.ts +2 -1
- package/types/slotted-angular-attachment.d.ts.map +1 -1
- package/types/slotted-angular-avatar-group.d.ts +3 -3
- package/types/slotted-angular-avatar-group.d.ts.map +1 -1
- package/types/slotted-angular-avatar.d.ts +17 -9
- package/types/slotted-angular-avatar.d.ts.map +1 -1
- package/types/slotted-angular-badge.d.ts +4 -4
- package/types/slotted-angular-badge.d.ts.map +1 -1
- package/types/slotted-angular-breadcrumb.d.ts +1 -1
- package/types/slotted-angular-breadcrumb.d.ts.map +1 -1
- package/types/slotted-angular-button-group.d.ts +2 -2
- package/types/slotted-angular-button-group.d.ts.map +1 -1
- package/types/slotted-angular-button.d.ts +45 -12
- package/types/slotted-angular-button.d.ts.map +1 -1
- package/types/slotted-angular-calendar.d.ts +43 -2
- package/types/slotted-angular-calendar.d.ts.map +1 -1
- package/types/slotted-angular-card.d.ts +1 -1
- package/types/slotted-angular-card.d.ts.map +1 -1
- package/types/slotted-angular-carousel.d.ts.map +1 -1
- package/types/slotted-angular-cascader.d.ts.map +1 -1
- package/types/slotted-angular-chart.d.ts +14 -11
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-checkbox-group.d.ts.map +1 -1
- package/types/slotted-angular-checkbox.d.ts +1 -1
- package/types/slotted-angular-checkbox.d.ts.map +1 -1
- package/types/slotted-angular-code-block.d.ts +3 -2
- package/types/slotted-angular-code-block.d.ts.map +1 -1
- package/types/slotted-angular-collapsible.d.ts +3 -2
- package/types/slotted-angular-collapsible.d.ts.map +1 -1
- package/types/slotted-angular-color-picker.d.ts +6 -6
- package/types/slotted-angular-color-picker.d.ts.map +1 -1
- package/types/slotted-angular-column-manager.d.ts +1 -1
- package/types/slotted-angular-column-manager.d.ts.map +1 -1
- package/types/slotted-angular-combobox.d.ts +6 -1
- package/types/slotted-angular-combobox.d.ts.map +1 -1
- package/types/slotted-angular-command-palette.d.ts +10 -1
- package/types/slotted-angular-command-palette.d.ts.map +1 -1
- package/types/slotted-angular-container.d.ts.map +1 -1
- package/types/slotted-angular-context-menu.d.ts.map +1 -1
- package/types/slotted-angular-currency-field.d.ts +40 -14
- package/types/slotted-angular-currency-field.d.ts.map +1 -1
- package/types/slotted-angular-dashboard-grid.d.ts +65 -7
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-grid.d.ts +63 -5
- package/types/slotted-angular-data-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-list.d.ts.map +1 -1
- package/types/slotted-angular-date-field.d.ts +12 -1
- package/types/slotted-angular-date-field.d.ts.map +1 -1
- package/types/slotted-angular-date-picker.d.ts +39 -12
- package/types/slotted-angular-date-picker.d.ts.map +1 -1
- package/types/slotted-angular-date-range-picker.d.ts +1 -1
- package/types/slotted-angular-date-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-datetime-field.d.ts.map +1 -1
- package/types/slotted-angular-datetime-picker.d.ts +1 -1
- package/types/slotted-angular-datetime-picker.d.ts.map +1 -1
- package/types/slotted-angular-datetime-range-picker.d.ts +2 -2
- package/types/slotted-angular-datetime-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-description-list.d.ts +12 -4
- package/types/slotted-angular-description-list.d.ts.map +1 -1
- package/types/slotted-angular-detail-panel.d.ts.map +1 -1
- package/types/slotted-angular-dialog.d.ts +11 -3
- package/types/slotted-angular-dialog.d.ts.map +1 -1
- package/types/slotted-angular-divider.d.ts.map +1 -1
- package/types/slotted-angular-drawer.d.ts +29 -3
- package/types/slotted-angular-drawer.d.ts.map +1 -1
- package/types/slotted-angular-entity-picker.d.ts +63 -15
- package/types/slotted-angular-entity-picker.d.ts.map +1 -1
- package/types/slotted-angular-event-calendar.d.ts.map +1 -1
- package/types/slotted-angular-field-group.d.ts +10 -2
- package/types/slotted-angular-field-group.d.ts.map +1 -1
- package/types/slotted-angular-field.d.ts +12 -4
- package/types/slotted-angular-field.d.ts.map +1 -1
- package/types/slotted-angular-filter-bar.d.ts.map +1 -1
- package/types/slotted-angular-form.d.ts +11 -2
- package/types/slotted-angular-form.d.ts.map +1 -1
- package/types/slotted-angular-fullscreen.d.ts.map +1 -1
- package/types/slotted-angular-grid.d.ts.map +1 -1
- package/types/slotted-angular-highlight.d.ts +1 -1
- package/types/slotted-angular-highlight.d.ts.map +1 -1
- package/types/slotted-angular-hover-card.d.ts.map +1 -1
- package/types/slotted-angular-icon.d.ts +15 -5
- package/types/slotted-angular-icon.d.ts.map +1 -1
- package/types/slotted-angular-image.d.ts.map +1 -1
- package/types/slotted-angular-import-export-center.d.ts +9 -9
- package/types/slotted-angular-import-export-center.d.ts.map +1 -1
- package/types/slotted-angular-inline-message.d.ts +32 -31
- package/types/slotted-angular-inline-message.d.ts.map +1 -1
- package/types/slotted-angular-inline.d.ts +1 -1
- package/types/slotted-angular-inline.d.ts.map +1 -1
- package/types/slotted-angular-kbd.d.ts +1 -1
- package/types/slotted-angular-kbd.d.ts.map +1 -1
- package/types/slotted-angular-link.d.ts +8 -2
- package/types/slotted-angular-link.d.ts.map +1 -1
- package/types/slotted-angular-list-item.d.ts +5 -1
- package/types/slotted-angular-list-item.d.ts.map +1 -1
- package/types/slotted-angular-list.d.ts +1 -1
- package/types/slotted-angular-list.d.ts.map +1 -1
- package/types/slotted-angular-listbox.d.ts +2 -2
- package/types/slotted-angular-listbox.d.ts.map +1 -1
- package/types/slotted-angular-loading-overlay.d.ts +3 -3
- package/types/slotted-angular-loading-overlay.d.ts.map +1 -1
- package/types/slotted-angular-markdown.d.ts +6 -1
- package/types/slotted-angular-markdown.d.ts.map +1 -1
- package/types/slotted-angular-media-viewer.d.ts +140 -0
- package/types/slotted-angular-media-viewer.d.ts.map +1 -0
- package/types/slotted-angular-menu.d.ts +17 -3
- package/types/slotted-angular-menu.d.ts.map +1 -1
- package/types/slotted-angular-menubar.d.ts +5 -4
- package/types/slotted-angular-menubar.d.ts.map +1 -1
- package/types/slotted-angular-message-scroller.d.ts +1 -1
- package/types/slotted-angular-message-scroller.d.ts.map +1 -1
- package/types/slotted-angular-message.d.ts +1 -1
- package/types/slotted-angular-message.d.ts.map +1 -1
- package/types/slotted-angular-multi-select.d.ts +6 -1
- package/types/slotted-angular-multi-select.d.ts.map +1 -1
- package/types/slotted-angular-navigation-menu.d.ts.map +1 -1
- package/types/slotted-angular-notification-center.d.ts +5 -5
- package/types/slotted-angular-notification-center.d.ts.map +1 -1
- package/types/slotted-angular-number-field.d.ts.map +1 -1
- package/types/slotted-angular-otp-input.d.ts +1 -1
- package/types/slotted-angular-otp-input.d.ts.map +1 -1
- package/types/slotted-angular-page-header.d.ts +15 -6
- package/types/slotted-angular-page-header.d.ts.map +1 -1
- package/types/slotted-angular-page.d.ts +7 -1
- package/types/slotted-angular-page.d.ts.map +1 -1
- package/types/slotted-angular-pagination.d.ts.map +1 -1
- package/types/slotted-angular-popover.d.ts.map +1 -1
- package/types/slotted-angular-progress-indicator.d.ts +10 -3
- package/types/slotted-angular-progress-indicator.d.ts.map +1 -1
- package/types/slotted-angular-prompt-composer.d.ts +35 -3
- package/types/slotted-angular-prompt-composer.d.ts.map +1 -1
- package/types/slotted-angular-prose.d.ts.map +1 -1
- package/types/slotted-angular-radio-group.d.ts +2 -2
- package/types/slotted-angular-radio-group.d.ts.map +1 -1
- package/types/slotted-angular-rating.d.ts +3 -3
- package/types/slotted-angular-rating.d.ts.map +1 -1
- package/types/slotted-angular-result-state.d.ts +1 -1
- package/types/slotted-angular-result-state.d.ts.map +1 -1
- package/types/slotted-angular-saved-views.d.ts.map +1 -1
- package/types/slotted-angular-scroll-area.d.ts.map +1 -1
- package/types/slotted-angular-section.d.ts +14 -4
- package/types/slotted-angular-section.d.ts.map +1 -1
- package/types/slotted-angular-segmented-control.d.ts +2 -2
- package/types/slotted-angular-segmented-control.d.ts.map +1 -1
- package/types/slotted-angular-select.d.ts +13 -2
- package/types/slotted-angular-select.d.ts.map +1 -1
- package/types/slotted-angular-side-navigation.d.ts.map +1 -1
- package/types/slotted-angular-skeleton.d.ts.map +1 -1
- package/types/slotted-angular-slider.d.ts.map +1 -1
- package/types/slotted-angular-sparkline.d.ts +7 -1
- package/types/slotted-angular-sparkline.d.ts.map +1 -1
- package/types/slotted-angular-split-button.d.ts +2 -2
- package/types/slotted-angular-split-button.d.ts.map +1 -1
- package/types/slotted-angular-splitter.d.ts.map +1 -1
- package/types/slotted-angular-stack.d.ts.map +1 -1
- package/types/slotted-angular-stat-card.d.ts +31 -7
- package/types/slotted-angular-stat-card.d.ts.map +1 -1
- package/types/slotted-angular-status-indicator.d.ts +15 -5
- package/types/slotted-angular-status-indicator.d.ts.map +1 -1
- package/types/slotted-angular-stepper.d.ts +2 -1
- package/types/slotted-angular-stepper.d.ts.map +1 -1
- package/types/slotted-angular-switch.d.ts +1 -1
- package/types/slotted-angular-switch.d.ts.map +1 -1
- package/types/slotted-angular-table-of-contents.d.ts.map +1 -1
- package/types/slotted-angular-table.d.ts +21 -4
- package/types/slotted-angular-table.d.ts.map +1 -1
- package/types/slotted-angular-tabs.d.ts +4 -5
- package/types/slotted-angular-tabs.d.ts.map +1 -1
- package/types/slotted-angular-tag.d.ts +5 -5
- package/types/slotted-angular-tag.d.ts.map +1 -1
- package/types/slotted-angular-tags-input.d.ts +34 -2
- package/types/slotted-angular-tags-input.d.ts.map +1 -1
- package/types/slotted-angular-text-field.d.ts.map +1 -1
- package/types/slotted-angular-textarea.d.ts.map +1 -1
- package/types/slotted-angular-theme.d.ts +8 -6
- package/types/slotted-angular-theme.d.ts.map +1 -1
- package/types/slotted-angular-time-field.d.ts.map +1 -1
- package/types/slotted-angular-time-picker.d.ts +1 -1
- package/types/slotted-angular-time-picker.d.ts.map +1 -1
- package/types/slotted-angular-time-range-picker.d.ts +2 -2
- package/types/slotted-angular-time-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-timeline.d.ts +1 -1
- package/types/slotted-angular-timeline.d.ts.map +1 -1
- package/types/slotted-angular-toast.d.ts +9 -7
- package/types/slotted-angular-toast.d.ts.map +1 -1
- package/types/slotted-angular-toggle-group.d.ts +1 -1
- package/types/slotted-angular-toggle-group.d.ts.map +1 -1
- package/types/slotted-angular-toggle.d.ts +1 -1
- package/types/slotted-angular-toggle.d.ts.map +1 -1
- package/types/slotted-angular-toolbar.d.ts +2 -0
- package/types/slotted-angular-toolbar.d.ts.map +1 -1
- package/types/slotted-angular-tooltip.d.ts.map +1 -1
- package/types/slotted-angular-top-navigation.d.ts.map +1 -1
- package/types/slotted-angular-tour.d.ts +2 -2
- package/types/slotted-angular-tour.d.ts.map +1 -1
- package/types/slotted-angular-transfer.d.ts.map +1 -1
- package/types/slotted-angular-tree.d.ts.map +1 -1
- package/types/slotted-angular-typography.d.ts +1 -1
- package/types/slotted-angular-typography.d.ts.map +1 -1
- package/types/slotted-angular-upload.d.ts +4 -2
- package/types/slotted-angular-upload.d.ts.map +1 -1
- package/types/slotted-angular-visually-hidden.d.ts.map +1 -1
- package/types/slotted-angular-wizard.d.ts +1 -1
- package/types/slotted-angular-wizard.d.ts.map +1 -1
package/docs/radio-group.json
CHANGED
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"part": "control",
|
|
91
91
|
"element": "input type=\"radio\", in the item’s template",
|
|
92
92
|
"required": true,
|
|
93
|
-
"purpose": "The native radio input. It holds the value, the name the group shares and the identifier. The shared name gives the set the platform’s keyboard
|
|
93
|
+
"purpose": "The native radio input. It holds the value, the name the group shares and the identifier. The shared name gives the set the platform’s keyboard behavior. Reach the element through the item’s exportAs: item.inputElement has focus() and click()."
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
"part": "indicator",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"type": "string",
|
|
125
125
|
"defaultValue": "—",
|
|
126
126
|
"appliesTo": "SlRadioGroup",
|
|
127
|
-
"description": "The value an uncontrolled group starts from, read once when the directive
|
|
127
|
+
"description": "The value an uncontrolled group starts from, read once when the directive initializes. Left unset, nothing is chosen and Tab lands on the first item, as the WAI-ARIA Authoring Practices recommend for a set with no default."
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
"name": "name",
|
|
@@ -259,8 +259,8 @@
|
|
|
259
259
|
"Each item takes its accessible name from its own label, through for pointing at an identifier the component generates. The group takes its name from the field group’s legend or, outside a field group, from an aria-label the consumer writes. Inside a field group the radiogroup role is withdrawn, so the set is not announced twice.",
|
|
260
260
|
"The group writes aria-required, never the native required on an item, and its validator, not any one item, demands a value, because “choose one” is a fact about the set. disabled is native, because the native attribute is also what makes the browser skip the option with the arrow keys.",
|
|
261
261
|
"A radio has no native read-only state, so the radio group enforces one: it refuses the activation, aria-readonly announces it on the group, and every item keeps its tab stop, its focus ring and its full contrast. The chosen option keeps its accent, because the value is real.",
|
|
262
|
-
"Refusing the activation is not enough on its own. The HTML standard’s canceled activation
|
|
263
|
-
"The invalid state does not rely on
|
|
262
|
+
"Refusing the activation is not enough on its own. The HTML standard’s canceled activation behavior restores the clicked radio but not the neighbour it unchecked, so the radio group writes every element from the value afterwards. Without that, a controlled group that refused a change would show no choice at all.",
|
|
263
|
+
"The invalid state does not rely on color alone. In the high-contrast scheme the theme paints the danger border in the same color as every other border, so the circle also thickens its edge. The sentence that says what is wrong is the field group’s error.",
|
|
264
264
|
"The target is larger than the circle. A 24-pixel square around the circle meets WCAG 2.2 SC 2.5.8 at every size and density, while the circle is 14 pixels at size=\"sm\"; the label extends the target to the end of the text, and the hover wash covers exactly that area. The row keeps its line height: the target is drawn around the circle, not laid out beside it."
|
|
265
265
|
]
|
|
266
266
|
}
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
"title": "Playground",
|
|
375
375
|
"note": "One set with every axis on it, driven by the controls below the canvas. Tab into it once: the whole group is a single stop, and the arrows move the choice from there.",
|
|
376
376
|
"language": "html",
|
|
377
|
-
"source": "<div slRadioGroup name=\"shipping\" defaultValue=\"standard\">\n <div slRadio value=\"standard\">
|
|
377
|
+
"source": "<div slRadioGroup name=\"shipping\" defaultValue=\"standard\">\n <div slRadio value=\"standard\">Standard delivery</div>\n <div slRadio value=\"express\">Express delivery</div>\n <div slRadio value=\"pickup\">Store pickup</div>\n</div>\n",
|
|
378
378
|
"verdict": "excerpt"
|
|
379
379
|
},
|
|
380
380
|
{
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
"title": "The plan picker, which is what tiles are for",
|
|
391
391
|
"note": "An exclusive set of framed choices is the case Cloudscape built a whole Tiles family for and Carbon a selectable Tile. Here it is one axis on the group: each item becomes the surface, the arrow keys and the roving tab stop stay the platform’s, and Grid gives the row equal widths and equal heights.",
|
|
392
392
|
"language": "html",
|
|
393
|
-
"source": "<div slRadioGroup name=\"plan\" variant=\"tile\" defaultValue=\"team\">\n <div slGrid minItemWidth=\"sm\">\n <div slRadio value=\"starter\">\n Starter\n <p slRadioDescription>
|
|
393
|
+
"source": "<div slRadioGroup name=\"plan\" variant=\"tile\" defaultValue=\"team\">\n <div slGrid minItemWidth=\"sm\">\n <div slRadio value=\"starter\">\n Starter\n <p slRadioDescription>Up to three projects and one seat.</p>\n </div>\n <div slRadio value=\"team\">\n Team\n <p slRadioDescription>Projetos sem limite e dez assentos.</p>\n </div>\n </div>\n</div>\n",
|
|
394
394
|
"verdict": "excerpt"
|
|
395
395
|
},
|
|
396
396
|
{
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
"title": "Which side of its label the circle is on",
|
|
415
415
|
"note": "start pushes every circle to the end of the row, and the column is a fraction rather than each label’s own width because a column of controls has to line up with itself.",
|
|
416
416
|
"language": "html",
|
|
417
|
-
"source": "<div slRadioGroup labelPlacement=\"end\" defaultValue=\"card\">\n <div slRadio value=\"card\">
|
|
417
|
+
"source": "<div slRadioGroup labelPlacement=\"end\" defaultValue=\"card\">\n <div slRadio value=\"card\">Card</div>\n</div>\n\n<div slRadioGroup labelPlacement=\"start\" defaultValue=\"card\">\n <div slRadio value=\"card\">Card</div>\n</div>\n",
|
|
418
418
|
"verdict": "excerpt"
|
|
419
419
|
},
|
|
420
420
|
{
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
"title": "Saying more about one option",
|
|
423
423
|
"note": "The description belongs to the item and reaches only that item’s control, so a reader on the second option hears the second sentence rather than everything the set has to say.",
|
|
424
424
|
"language": "html",
|
|
425
|
-
"source": "<div slRadioGroup defaultValue=\"monthly\">\n <div slRadio value=\"monthly\">\n
|
|
425
|
+
"source": "<div slRadioGroup defaultValue=\"monthly\">\n <div slRadio value=\"monthly\">\n Monthly\n <p slRadioDescription>Billed on the 5th of every month, no cancellation fee.</p>\n </div>\n <div slRadio value=\"yearly\">\n Annual\n <p slRadioDescription>Two months off, billed at signup.</p>\n </div>\n</div>\n",
|
|
426
426
|
"verdict": "excerpt"
|
|
427
427
|
},
|
|
428
428
|
{
|
|
@@ -430,7 +430,7 @@
|
|
|
430
430
|
"title": "Inside a group of fields, and in a reactive form",
|
|
431
431
|
"note": "The fieldset and its legend are what group and name the set, so the group withdraws its own radiogroup role — and the same element takes formControlName, because the accessor and the validator both live on the root.",
|
|
432
432
|
"language": "html",
|
|
433
|
-
"source": "<fieldset slFieldGroup required>\n <legend slFieldGroupLegend>
|
|
433
|
+
"source": "<fieldset slFieldGroup required>\n <legend slFieldGroupLegend>Payment method</legend>\n <div slRadioGroup required formControlName=\"payment\">\n <div slRadio value=\"card\">Card</div>\n <div slRadio value=\"zelle\">Zelle</div>\n </div>\n</fieldset>\n",
|
|
434
434
|
"verdict": "excerpt"
|
|
435
435
|
},
|
|
436
436
|
{
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
"title": "Content the family did not choose",
|
|
439
439
|
"note": "An option that wraps to three lines keeps its circle on the first of them, an unbroken token breaks instead of taking the page with it, and a right-to-left label mirrors the whole row.",
|
|
440
440
|
"language": "html",
|
|
441
|
-
"source": "<div slRadioGroup defaultValue=\"a\">\n <div slRadio value=\"a\">\n
|
|
441
|
+
"source": "<div slRadioGroup defaultValue=\"a\">\n <div slRadio value=\"a\">\n I authorize sharing the delivery data with the carrier.\n <p slRadioDescription>The circle stays on the first line of the label.</p>\n </div>\n <div slRadio value=\"b\" dir=\"rtl\">أوافق على مشاركة بيانات التسليم.</div>\n</div>\n",
|
|
442
442
|
"verdict": "excerpt"
|
|
443
443
|
},
|
|
444
444
|
{
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
"title": "Setting it once, and reaching past it",
|
|
447
447
|
"note": "The token carries the three decisions an application takes once, exportAs reaches both instances, and the root is the consumer’s own element — so a set of choices can be a real list.",
|
|
448
448
|
"language": "html",
|
|
449
|
-
"source": "<ul slRadioGroup class=\"slotted-demo-list\" defaultValue=\"a\">\n <li slRadio value=\"a\">
|
|
449
|
+
"source": "<ul slRadioGroup class=\"slotted-demo-list\" defaultValue=\"a\">\n <li slRadio value=\"a\">One item</li>\n <li slRadio value=\"b\">And another below it</li>\n</ul>\n",
|
|
450
450
|
"verdict": "excerpt"
|
|
451
451
|
},
|
|
452
452
|
{
|
|
@@ -454,7 +454,7 @@
|
|
|
454
454
|
"title": "The APG table, implemented by the platform",
|
|
455
455
|
"note": "Tab lands on the chosen item or on the first, the arrows move focus and selection together in both axes, the set wraps at both ends, and disabled options are skipped — none of it written here.",
|
|
456
456
|
"language": "html",
|
|
457
|
-
"source": "<!-- Native radios in one form owner with one name already implement the\n whole APG table, in a right-to-left document too. The group generates\n a name when the consumer writes none, because an unnamed set is not a\n set — the price is that such a group inside a form submits under a\n generated key. -->\n<div slRadioGroup name=\"shipping\">\n <div slRadio value=\"standard\">
|
|
457
|
+
"source": "<!-- Native radios in one form owner with one name already implement the\n whole APG table, in a right-to-left document too. The group generates\n a name when the consumer writes none, because an unnamed set is not a\n set — the price is that such a group inside a form submits under a\n generated key. -->\n<div slRadioGroup name=\"shipping\">\n <div slRadio value=\"standard\">Standard</div>\n <div slRadio value=\"express\">Express</div>\n</div>\n",
|
|
458
458
|
"verdict": "excerpt"
|
|
459
459
|
},
|
|
460
460
|
{
|
package/docs/radio-group.md
CHANGED
|
@@ -58,7 +58,7 @@ export class RadioGroupBasic {}
|
|
|
58
58
|
| Name | Type | Default | Applies to | Description |
|
|
59
59
|
| --- | --- | --- | --- | --- |
|
|
60
60
|
| `value` | `string` | — | SlRadioGroup | The controlled value. When present, the consumer owns the choice. When absent, the radio group owns it and starts from defaultValue, or from the form control bound to the root. |
|
|
61
|
-
| `defaultValue` | `string` | — | SlRadioGroup | The value an uncontrolled group starts from, read once when the directive
|
|
61
|
+
| `defaultValue` | `string` | — | SlRadioGroup | The value an uncontrolled group starts from, read once when the directive initializes. Left unset, nothing is chosen and Tab lands on the first item, as the WAI-ARIA Authoring Practices recommend for a set with no default. |
|
|
62
62
|
| `name` | `string` | generated | SlRadioGroup | The submission name every item shares, which is what makes the platform treat the items as one set. Generated when unset, because the platform groups radios by name within a form. |
|
|
63
63
|
| `variant` | `'plain' \| 'tile'` | plain | SlRadioGroup, provideRadioGroupDefaults | How every item is drawn. tile frames each item and makes its whole surface the target; the inputs still share a name, so the arrow keys, the wrap and the single tab stop do not change. Arranging the tiles is left to Grid. |
|
|
64
64
|
| `orientation` | `'vertical' \| 'horizontal'` | vertical | SlRadioGroup, provideRadioGroupDefaults | How the choices flow. A horizontal set wraps instead of scrolling, and aria-orientation is written only where the group carries the radiogroup role. |
|
|
@@ -99,8 +99,8 @@ export class RadioGroupBasic {}
|
|
|
99
99
|
- Each item takes its accessible name from its own label, through for pointing at an identifier the component generates. The group takes its name from the field group’s legend or, outside a field group, from an aria-label the consumer writes. Inside a field group the radiogroup role is withdrawn, so the set is not announced twice.
|
|
100
100
|
- The group writes aria-required, never the native required on an item, and its validator, not any one item, demands a value, because “choose one” is a fact about the set. disabled is native, because the native attribute is also what makes the browser skip the option with the arrow keys.
|
|
101
101
|
- A radio has no native read-only state, so the radio group enforces one: it refuses the activation, aria-readonly announces it on the group, and every item keeps its tab stop, its focus ring and its full contrast. The chosen option keeps its accent, because the value is real.
|
|
102
|
-
- Refusing the activation is not enough on its own. The HTML standard’s canceled activation
|
|
103
|
-
- The invalid state does not rely on
|
|
102
|
+
- Refusing the activation is not enough on its own. The HTML standard’s canceled activation behavior restores the clicked radio but not the neighbour it unchecked, so the radio group writes every element from the value afterwards. Without that, a controlled group that refused a change would show no choice at all.
|
|
103
|
+
- The invalid state does not rely on color alone. In the high-contrast scheme the theme paints the danger border in the same color as every other border, so the circle also thickens its edge. The sentence that says what is wrong is the field group’s error.
|
|
104
104
|
- The target is larger than the circle. A 24-pixel square around the circle meets WCAG 2.2 SC 2.5.8 at every size and density, while the circle is 14 pixels at size="sm"; the label extends the target to the end of the text, and the hover wash covers exactly that area. The row keeps its line height: the target is drawn around the circle, not laid out beside it.
|
|
105
105
|
|
|
106
106
|
## Tokens
|
package/docs/rating.json
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"tone": [
|
|
16
16
|
"accent",
|
|
17
|
+
"info",
|
|
17
18
|
"success",
|
|
18
19
|
"warning",
|
|
19
20
|
"danger"
|
|
@@ -241,10 +242,10 @@
|
|
|
241
242
|
},
|
|
242
243
|
{
|
|
243
244
|
"name": "tone",
|
|
244
|
-
"type": "'accent' | 'success' | 'warning' | 'danger'",
|
|
245
|
+
"type": "'accent' | 'info' | 'success' | 'warning' | 'danger'",
|
|
245
246
|
"defaultValue": "warning",
|
|
246
247
|
"appliesTo": "SlRating, provideRating",
|
|
247
|
-
"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"
|
|
248
249
|
},
|
|
249
250
|
{
|
|
250
251
|
"name": "name",
|
|
@@ -368,7 +369,7 @@
|
|
|
368
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.",
|
|
369
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.",
|
|
370
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.",
|
|
371
|
-
"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."
|
|
372
373
|
]
|
|
373
374
|
},
|
|
374
375
|
"ratingDisplay": {
|
|
@@ -382,7 +383,7 @@
|
|
|
382
383
|
"part": "root",
|
|
383
384
|
"element": "the div carrying slRatingDisplay",
|
|
384
385
|
"required": true,
|
|
385
|
-
"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."
|
|
386
387
|
},
|
|
387
388
|
{
|
|
388
389
|
"part": "symbols",
|
|
@@ -457,10 +458,10 @@
|
|
|
457
458
|
},
|
|
458
459
|
{
|
|
459
460
|
"name": "tone",
|
|
460
|
-
"type": "'accent' | 'success' | 'warning' | 'danger'",
|
|
461
|
+
"type": "'accent' | 'info' | 'success' | 'warning' | 'danger'",
|
|
461
462
|
"defaultValue": "warning",
|
|
462
463
|
"appliesTo": "SlRatingDisplay, provideRating",
|
|
463
|
-
"description": "The
|
|
464
|
+
"description": "The color of the lit share"
|
|
464
465
|
},
|
|
465
466
|
{
|
|
466
467
|
"name": "variant",
|
|
@@ -523,8 +524,8 @@
|
|
|
523
524
|
],
|
|
524
525
|
"events": [],
|
|
525
526
|
"accessibility": [
|
|
526
|
-
"The display is one image, role=\"img\", named by its whole value and its count: \"
|
|
527
|
-
"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.",
|
|
528
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."
|
|
529
530
|
]
|
|
530
531
|
},
|
|
@@ -695,7 +696,7 @@
|
|
|
695
696
|
"part": "swatch",
|
|
696
697
|
"element": "span aria-hidden=\"true\"",
|
|
697
698
|
"required": false,
|
|
698
|
-
"purpose": "The bucket’s
|
|
699
|
+
"purpose": "The bucket’s color key."
|
|
699
700
|
}
|
|
700
701
|
],
|
|
701
702
|
"api": [
|
|
@@ -757,10 +758,10 @@
|
|
|
757
758
|
},
|
|
758
759
|
{
|
|
759
760
|
"name": "tone",
|
|
760
|
-
"type": "'accent' | 'success' | 'warning' | 'danger'",
|
|
761
|
+
"type": "'accent' | 'info' | 'success' | 'warning' | 'danger'",
|
|
761
762
|
"defaultValue": "warning",
|
|
762
763
|
"appliesTo": "SlRatingSummary, provideRating",
|
|
763
|
-
"description": "The
|
|
764
|
+
"description": "The color of the stars and the bars"
|
|
764
765
|
},
|
|
765
766
|
{
|
|
766
767
|
"name": "messages",
|
|
@@ -783,7 +784,7 @@
|
|
|
783
784
|
"type": "SlRatingSummary",
|
|
784
785
|
"defaultValue": "—",
|
|
785
786
|
"appliesTo": "a template",
|
|
786
|
-
"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"
|
|
787
788
|
},
|
|
788
789
|
{
|
|
789
790
|
"name": "provideRating()",
|
|
@@ -802,9 +803,9 @@
|
|
|
802
803
|
],
|
|
803
804
|
"accessibility": [
|
|
804
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.",
|
|
805
|
-
"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.",
|
|
806
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.",
|
|
807
|
-
"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."
|
|
808
809
|
]
|
|
809
810
|
}
|
|
810
811
|
},
|
|
@@ -883,6 +884,7 @@
|
|
|
883
884
|
"--slotted-tone-danger-solid",
|
|
884
885
|
"--slotted-tone-danger-surface",
|
|
885
886
|
"--slotted-tone-danger-text",
|
|
887
|
+
"--slotted-tone-info-solid",
|
|
886
888
|
"--slotted-tone-secondary-border",
|
|
887
889
|
"--slotted-tone-secondary-subtle-active",
|
|
888
890
|
"--slotted-tone-secondary-subtle-hover",
|
|
@@ -918,7 +920,7 @@
|
|
|
918
920
|
"title": "Read-only, disabled and invalid",
|
|
919
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.",
|
|
920
922
|
"language": "html",
|
|
921
|
-
"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",
|
|
922
924
|
"verdict": "excerpt"
|
|
923
925
|
},
|
|
924
926
|
{
|
|
@@ -926,7 +928,7 @@
|
|
|
926
928
|
"title": "In a field, and in a reactive form",
|
|
927
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.",
|
|
928
930
|
"language": "html",
|
|
929
|
-
"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",
|
|
930
932
|
"verdict": "excerpt"
|
|
931
933
|
},
|
|
932
934
|
{
|
|
@@ -934,7 +936,7 @@
|
|
|
934
936
|
"title": "Words for each value, and a scale of ten",
|
|
935
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.",
|
|
936
938
|
"language": "html",
|
|
937
|
-
"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",
|
|
938
940
|
"verdict": "excerpt"
|
|
939
941
|
},
|
|
940
942
|
{
|
|
@@ -982,7 +984,7 @@
|
|
|
982
984
|
"title": "The mean, and the spread behind it",
|
|
983
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.",
|
|
984
986
|
"language": "html",
|
|
985
|
-
"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",
|
|
986
988
|
"verdict": "excerpt"
|
|
987
989
|
},
|
|
988
990
|
{
|
|
@@ -1006,7 +1008,7 @@
|
|
|
1006
1008
|
"title": "Playground",
|
|
1007
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.",
|
|
1008
1010
|
"language": "html",
|
|
1009
|
-
"source": "<section
|
|
1011
|
+
"source": "<section slRatingSummary aria-label=\"Customer reviews\" [counts]=\"[9, 18, 47, 158, 1052]\"></section>\n",
|
|
1010
1012
|
"verdict": "excerpt"
|
|
1011
1013
|
},
|
|
1012
1014
|
{
|
|
@@ -1014,15 +1016,15 @@
|
|
|
1014
1016
|
"title": "Levels that filter the reviews",
|
|
1015
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.",
|
|
1016
1018
|
"language": "html",
|
|
1017
|
-
"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",
|
|
1018
1020
|
"verdict": "excerpt"
|
|
1019
1021
|
},
|
|
1020
1022
|
{
|
|
1021
1023
|
"id": "spectrum",
|
|
1022
1024
|
"title": "The spectrum: spread, mean and margin",
|
|
1023
|
-
"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\".",
|
|
1024
1026
|
"language": "html",
|
|
1025
|
-
"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",
|
|
1026
1028
|
"verdict": "excerpt"
|
|
1027
1029
|
},
|
|
1028
1030
|
{
|
|
@@ -1030,15 +1032,15 @@
|
|
|
1030
1032
|
"title": "One conclusion, the first that holds",
|
|
1031
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.",
|
|
1032
1034
|
"language": "html",
|
|
1033
|
-
"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",
|
|
1034
1036
|
"verdict": "excerpt"
|
|
1035
1037
|
},
|
|
1036
1038
|
{
|
|
1037
1039
|
"id": "empty",
|
|
1038
1040
|
"title": "Nobody has rated it yet",
|
|
1039
|
-
"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.",
|
|
1040
1042
|
"language": "html",
|
|
1041
|
-
"source": "<section slRatingSummary aria-label=\"
|
|
1043
|
+
"source": "<section slRatingSummary aria-label=\"No reviews\" [counts]=\"[0, 0, 0, 0, 0]\"></section>\n",
|
|
1042
1044
|
"verdict": "excerpt"
|
|
1043
1045
|
},
|
|
1044
1046
|
{
|
|
@@ -1046,7 +1048,7 @@
|
|
|
1046
1048
|
"title": "In a narrow column",
|
|
1047
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.",
|
|
1048
1050
|
"language": "html",
|
|
1049
|
-
"source": "<section
|
|
1051
|
+
"source": "<section slRatingSummary size=\"sm\" aria-label=\"Reviews\" [counts]=\"[9, 18, 47, 158, 1052]\"></section>\n",
|
|
1050
1052
|
"verdict": "excerpt"
|
|
1051
1053
|
}
|
|
1052
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' \| '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' \| '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' \| '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
|
|
@@ -177,8 +177,8 @@ Excerpt — not a complete module
|
|
|
177
177
|
| Axis | Values | Default |
|
|
178
178
|
| --- | --- | --- |
|
|
179
179
|
| `size` | `sm`, `md`, `lg` | `md` |
|
|
180
|
-
| `tone` | `accent`, `success`, `warning`, `danger` | `warning` |
|
|
181
|
-
| `variant` | `full`, `compact`, `histogram` | `full`,
|
|
180
|
+
| `tone` | `accent`, `info`, `success`, `warning`, `danger` | `warning` |
|
|
181
|
+
| `variant` | `full`, `compact`, `histogram` | `full`, bars |
|
|
182
182
|
| `summaryVariant` | `bars`, `spectrum` | — |
|
|
183
183
|
|
|
184
184
|
## Rules
|
|
@@ -186,18 +186,18 @@ 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
|
|
|
200
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-sm`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-foreground`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-4xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-highlight-tint-opacity`, `--slotted-line-height-4xl`, `--slotted-line-height-md`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-rating-active-background`, `--slotted-rating-bar-color`, `--slotted-rating-bar-size`, `--slotted-rating-edge`, `--slotted-rating-empty-color`, `--slotted-rating-gap`, `--slotted-rating-hover-background`, `--slotted-rating-invalid-color`, `--slotted-rating-invalid-edge-width`, `--slotted-rating-lit-color`, `--slotted-rating-symbol-size`, `--slotted-space-1`, `--slotted-space-10`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface-inverse`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-inverse`, `--slotted-text-muted`, `--slotted-tone-accent-solid`, `--slotted-tone-danger-border`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-success-border`, `--slotted-tone-success-solid`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`
|
|
200
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-sm`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-foreground`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-4xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-highlight-tint-opacity`, `--slotted-line-height-4xl`, `--slotted-line-height-md`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-rating-active-background`, `--slotted-rating-bar-color`, `--slotted-rating-bar-size`, `--slotted-rating-edge`, `--slotted-rating-empty-color`, `--slotted-rating-gap`, `--slotted-rating-hover-background`, `--slotted-rating-invalid-color`, `--slotted-rating-invalid-edge-width`, `--slotted-rating-lit-color`, `--slotted-rating-symbol-size`, `--slotted-space-1`, `--slotted-space-10`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface-inverse`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-inverse`, `--slotted-text-muted`, `--slotted-tone-accent-solid`, `--slotted-tone-danger-border`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-info-solid`, `--slotted-tone-secondary-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-success-border`, `--slotted-tone-success-solid`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`
|
|
201
201
|
|
|
202
202
|
## Examples
|
|
203
203
|
|
|
@@ -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
|
```
|