@slotted/angular 0.1.0-beta.3 → 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 +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 +30 -13
- package/docs/alert.md +29 -18
- package/docs/app-shell.examples.md +8 -8
- package/docs/app-shell.json +37 -20
- 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 +2 -2
- package/docs/card.md +2 -2
- package/docs/carousel.json +10 -10
- package/docs/carousel.md +11 -11
- package/docs/cascader.json +1 -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 +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 +5 -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 +32 -10
- package/docs/dashboard-grid.md +15 -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 +56 -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 +43 -17
- package/docs/drawer.md +10 -8
- package/docs/entity-picker.json +21 -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 +23 -11
- 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 +23 -23
- package/docs/import-export-center.md +17 -17
- 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.json +1 -1
- 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 +14 -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 +3 -1
- package/docs/multi-select.md +1 -1
- package/docs/notification-center.json +20 -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 +30 -13
- 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 +4 -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 +12 -12
- package/docs/result-state.md +17 -17
- 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 +43 -21
- package/docs/section.md +34 -31
- package/docs/segmented-control.json +21 -25
- package/docs/segmented-control.md +33 -33
- package/docs/select.json +3 -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 +54 -18
- package/docs/skills/index.md +2 -2
- package/docs/skills/review-screen/SKILL.md +28 -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 +14 -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 +45 -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 +9 -9
- package/docs/tour.md +6 -6
- 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 +295 -68
- 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 +74 -25
- 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 +63 -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 +11 -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
|
@@ -8,14 +8,24 @@ description: Use when writing or changing a screen of an application built with
|
|
|
8
8
|
A screen is composed from the families' own parts first. An element of the
|
|
9
9
|
screen's own exists only where no family names a place for it.
|
|
10
10
|
|
|
11
|
-
## 1.
|
|
11
|
+
## 1. Name the domain values
|
|
12
|
+
|
|
13
|
+
Name the values the product is about on this screen — money, a period, a day,
|
|
14
|
+
an account, a person — and the task the reader performs with each: enter it in
|
|
15
|
+
one motion, step it, compare it. For each, write which family accepts the
|
|
16
|
+
value and whether that family performs the task in one step with the value's
|
|
17
|
+
own words. When it does not, CP-04 applies before any family is chosen: a
|
|
18
|
+
family that technically accepts a value does not answer the reader's task by
|
|
19
|
+
that fact.
|
|
20
|
+
|
|
21
|
+
## 2. Classify the screen
|
|
12
22
|
|
|
13
23
|
| The screen | Topic |
|
|
14
24
|
| ----------------------------------------------------- | ------------------ |
|
|
15
25
|
| Lists records, searches, filters, pages | `list-pages.md` |
|
|
16
26
|
| Shows one record, its figures and its related records | `record-pages.md` |
|
|
17
27
|
| Creates or edits a record | `forms.md` |
|
|
18
|
-
|
|
|
28
|
+
| Summarizes a domain in figures and charts | `overviews.md` |
|
|
19
29
|
| Places a list beside a tree of its places | `browsing.md` |
|
|
20
30
|
| Reads records over a chosen period | `reports.md` |
|
|
21
31
|
| Writes or reads a rule the system runs later | `builders.md` |
|
|
@@ -26,28 +36,30 @@ screen's own exists only where no family names a place for it.
|
|
|
26
36
|
A screen can be two of these: a record with an edit form in place reads both
|
|
27
37
|
topics.
|
|
28
38
|
|
|
29
|
-
##
|
|
39
|
+
## 3. Read
|
|
30
40
|
|
|
31
|
-
1.
|
|
32
|
-
2.
|
|
33
|
-
3. The topic of step
|
|
34
|
-
when the screen places controls in a row
|
|
41
|
+
1. `../../guidelines/index.md`.
|
|
42
|
+
2. `../../guidelines/composition.md`, always.
|
|
43
|
+
3. The topic of step 2. Add `layout-alignment.md` and `shell-composition.md`
|
|
44
|
+
when the screen places controls in a row, makes an element of its own
|
|
45
|
+
`position: sticky` (a summary or a preview beside a form or a list), or
|
|
46
|
+
works in the application frame.
|
|
35
47
|
4. Add `errors-and-conflicts.md` and `reading-permissions.md` when the screen
|
|
36
48
|
writes data or reads under a role.
|
|
37
49
|
5. When the screen writes an element of its own, follow
|
|
38
|
-
|
|
50
|
+
`../../skills/build-own-element/SKILL.md`.
|
|
39
51
|
|
|
40
|
-
##
|
|
52
|
+
## 4. Read each family before writing beside it
|
|
41
53
|
|
|
42
|
-
For each family the screen uses, read
|
|
54
|
+
For each family the screen uses, read `../../<family>.md` — its anatomy,
|
|
43
55
|
its slots, its axes (CP-01). When the family names a slot for an element, the
|
|
44
56
|
element stands in that slot.
|
|
45
57
|
|
|
46
|
-
##
|
|
58
|
+
## 5. Compose
|
|
47
59
|
|
|
48
|
-
-
|
|
49
|
-
|
|
50
|
-
|
|
60
|
+
- Every destination of the navigation is `full`, and a list adds `fill`; a
|
|
61
|
+
create or edit form is `wide`; preferences read as prose are `measure`
|
|
62
|
+
(CP-10).
|
|
51
63
|
- Siblings of the screen's own stand in `inline` (one row) or `stack` (one
|
|
52
64
|
column) with a gap from the space scale; text of the screen's own takes its
|
|
53
65
|
size from the `typography` family's `text` member (CP-02).
|
|
@@ -59,18 +71,42 @@ element stands in that slot.
|
|
|
59
71
|
nothing louder beside it (CP-06).
|
|
60
72
|
- A control that switches what a region holds changes words and values, never
|
|
61
73
|
the size or the position of a box (CP-08).
|
|
74
|
+
- A control that switches a region — tabs, a route, a filter — updates its
|
|
75
|
+
own state at once and renders the region from a deferred value (in React,
|
|
76
|
+
useDeferredValue or startTransition) (CP-09). A list longer than a hundred
|
|
77
|
+
rows is a `data-grid`, which windows its rows where it has a height of its
|
|
78
|
+
own and is served in pages below 600 pixels (LP-12, LP-14). Its columns, its disabled keys and a function row key are module constants or memoized: a new one on a render of the screen renders every mounted row again. Its renderers, its messages and its tree may be written inline.
|
|
79
|
+
- An element of the screen's own made `position: sticky` stops under the
|
|
80
|
+
page's chrome: its offset starts at `--slotted-page-sticky-top`, and its
|
|
81
|
+
height cap subtracts it (LA-06). An offset from the scroller's edge alone
|
|
82
|
+
sticks it behind the stuck header.
|
|
62
83
|
- Where no anatomy answers the problem, the screen writes an element of its
|
|
63
84
|
own instead of bending a family into a shape it does not have (CP-04). That
|
|
64
|
-
element is built with
|
|
85
|
+
element is built with `../../skills/build-own-element/SKILL.md`.
|
|
65
86
|
|
|
66
|
-
##
|
|
87
|
+
## 6. Waits
|
|
67
88
|
|
|
68
89
|
Every region filled by a request and every control that starts one follow
|
|
69
|
-
|
|
90
|
+
`../../skills/waiting-states/SKILL.md`.
|
|
70
91
|
|
|
71
|
-
##
|
|
92
|
+
## 7. Done
|
|
72
93
|
|
|
73
94
|
1. Each `MUST` rule of the topics read: its `Check` passes.
|
|
74
95
|
2. Each `SHOULD` rule not followed is listed with its reason.
|
|
75
96
|
3. No CSS of the screen's own targets a family's parts; a family's appearance
|
|
76
97
|
changes through its axes.
|
|
98
|
+
4. On the production build, at 375 pixels with a coarse pointer and the CPU
|
|
99
|
+
throttled 4×, with the list holding at least 200 rows: each control that
|
|
100
|
+
switches a region, a row's selection, select-all, a sort, a row menu and a
|
|
101
|
+
scroll of one screen each paint within 200 ms of the input (the Event Timing
|
|
102
|
+
duration), and no list mounts more rows than its window or than the pages
|
|
103
|
+
it has requested (LP-12). A development build is not a measurement: a
|
|
104
|
+
hundred rows of twenty columns measured 93 ms on the production build and
|
|
105
|
+
160 ms on the development one (LP-14).
|
|
106
|
+
5. For each value named in step 1, the control that edits it was chosen
|
|
107
|
+
against the task, and the reason is written beside it.
|
|
108
|
+
6. At 360 pixels with a coarse pointer, the header's actions and the footer's
|
|
109
|
+
actions each occupy one row (LA-03, LA-07).
|
|
110
|
+
7. Each element of the screen's own made sticky: scroll until the page header
|
|
111
|
+
sticks, at two positions; its top stands at or below the header's title
|
|
112
|
+
area (LA-06 Check).
|
package/docs/skills/index.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Each skill, with when it applies. Read a skill before its task.
|
|
4
4
|
|
|
5
|
-
- build-own-element: `./build-own-element/SKILL.md` — Use when writing a component, widget or visual element that no family of @slotted/angular draws — a timeline strip, a seat map, a heat grid, a bespoke control. Proves first that no family answers, then builds the element from the theme's tokens with the states, focus, target size, forced
|
|
5
|
+
- build-own-element: `./build-own-element/SKILL.md` — Use when writing a component, widget or visual element that no family of @slotted/angular draws — a timeline strip, a seat map, a heat grid, a bespoke control. Proves first that no family answers, then builds the element from the theme's tokens with the states, focus, target size, forced colors and motion the families keep.
|
|
6
6
|
- compose-screen: `./compose-screen/SKILL.md` — Use when writing or changing a screen of an application built with @slotted/angular — a list of records, the page of one record, a form that writes one, an overview, a report, a tree beside a list, a rule builder, a conversation or a ledger. Applies the Slotted guidelines in order and ends with each Check of the rules read.
|
|
7
7
|
- review-screen: `./review-screen/SKILL.md` — Use when reviewing, auditing or fixing an existing screen of an application built with @slotted/angular, or when asked whether a screen follows the Slotted guidelines. Reads the rules that apply, sweeps the screen's code for the defects found without running it, and reports each finding with its rule, level and place.
|
|
8
|
-
- theme-app: `./theme-app/SKILL.md` — Use when changing how an application built with @slotted/angular looks, as a whole or in one region — its brand
|
|
8
|
+
- theme-app: `./theme-app/SKILL.md` — Use when changing how an application built with @slotted/angular looks, as a whole or in one region — its brand color, a light, dark or high-contrast scheme, density, fonts, corners, or the shape of a control. Chooses the narrowest level that reaches the change — a seed, a token, a family token or a theme rule — and where it is declared.
|
|
9
9
|
- waiting-states: `./waiting-states/SKILL.md` — Use when building or reviewing anything a person waits in front of in an application built with @slotted/angular — placeholders, a control's own loading state, a loading overlay, a progress indicator, or the empty and error states beside them. Decides which indicator answers which wait and how placeholders are built from the anatomy they stand in for.
|
|
@@ -12,37 +12,48 @@ A review answers one question per rule read: does the screen pass the rule's
|
|
|
12
12
|
|
|
13
13
|
1. List the screen's files: its component, its template, its stylesheet and
|
|
14
14
|
the requests it starts.
|
|
15
|
-
2. List the families it imports, and read
|
|
15
|
+
2. List the families it imports, and read `../../<family>.md` for each.
|
|
16
16
|
3. List the elements of the screen's own: every element that is not a family,
|
|
17
17
|
with the CSS that paints it.
|
|
18
18
|
4. Classify the screen with the table in step 1 of
|
|
19
|
-
|
|
19
|
+
`../../skills/compose-screen/SKILL.md`.
|
|
20
20
|
|
|
21
21
|
## 2. Read
|
|
22
22
|
|
|
23
|
-
1.
|
|
24
|
-
|
|
23
|
+
1. `../../guidelines/index.md` and
|
|
24
|
+
`../../guidelines/composition.md`.
|
|
25
25
|
2. The topics of the classification, and each topic whose `triggers` the
|
|
26
26
|
screen matches.
|
|
27
27
|
3. `own-elements.md` when step 1 listed an element of the screen's own.
|
|
28
|
-
4.
|
|
28
|
+
4. `../../skills/waiting-states/SKILL.md` when the screen starts a
|
|
29
29
|
request.
|
|
30
30
|
|
|
31
31
|
## 3. Sweep the code
|
|
32
32
|
|
|
33
33
|
Each search below finds a defect without running the screen.
|
|
34
34
|
|
|
35
|
-
| Search the screen's files for
|
|
36
|
-
|
|
|
37
|
-
| A
|
|
38
|
-
| A rule of the application's CSS that sets
|
|
39
|
-
| A control that starts a request and is not in its `loading` state until the answer
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
| A
|
|
45
|
-
|
|
|
35
|
+
| Search the screen's files for | Defect | Rule |
|
|
36
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------- | ------------ |
|
|
37
|
+
| A color literal (hex, rgb, hsl, oklch), a length in pixels or rem other than zero, or a font size, in the screen's CSS | a value the theme has a token for | CP-05, OE-01 |
|
|
38
|
+
| A rule of the application's CSS that sets color, border, radius, padding or type on a family's `data-ui` or `data-part` | the screen restyles a family instead of setting its axes | OE-08 |
|
|
39
|
+
| A control that starts a request and is not in its `loading` state until the answer, except a Refresh of the whole page | a control that fires twice | AF-03 |
|
|
40
|
+
| A Refresh of the whole page drawing a spinner on its button, or a refetch of data on screen with no `page-header` progress bar | a wait in the wrong place, and no wait shown for the page | AF-07 |
|
|
41
|
+
| An empty state drawn from the initial value of the data, before the first answer | a wait shown as nothing | AF-01 |
|
|
42
|
+
| A spinner standing in a region that has no items yet | placeholders missing | AF-02 |
|
|
43
|
+
| Siblings of the page's own spaced by margins, or text with a font size of its own | layout outside the primitives | CP-02 |
|
|
44
|
+
| A grid or flex track around a family that scrolls, with no zero minimum | the page scrolls, not the family | CP-03 |
|
|
45
|
+
| A badge, a tag or a color beside a family that already draws the same state | a state stated twice | CP-06 |
|
|
46
|
+
| An element of the screen's own that takes focus with no ring in its `focus-visible` state | focus not drawn | OE-03 |
|
|
47
|
+
| A `data-grid` or `table` with no `variant` on a page whose `width` is not `bleed` | a grid with no frame on the page's surface | LP-15 |
|
|
48
|
+
| A list page's `page-header` with a heading and no subheading, no figures and no solid primary action | a header that does not say what the list covers | LP-16 |
|
|
49
|
+
| A grid whose column state unpins its `actions` column | the row's actions leave the frame | LP-17 |
|
|
50
|
+
| A row of `stat-card`s where a label has more than three words, or one card has a comparison the others lack | a row of cards with no shared structure | OV-06 |
|
|
51
|
+
| A `stat-card` without the `plain` `fill`, or a `chart` with the `card` `variant`, inside a widget of the `dashboard-grid`, a `section` with the `surface` `ground` or a `card` | a frame inside a frame | OV-08 |
|
|
52
|
+
| A menu, a toggle or a state of the application's own that hides, orders or resizes the blocks of an overview | an arranged overview built outside `dashboard-grid` | OV-07 |
|
|
53
|
+
| Two destinations of the navigation whose `page`s state different `width`s | the column's edges move between destinations | CP-10 |
|
|
54
|
+
| A write whose success handler refreshes only the region of the control that wrote | figures elsewhere stay stale after the write | AF-08 |
|
|
55
|
+
| Two or more actions in a `page-header`'s `actions` outside a `toolbar` that folds into its menu, or toolbar items with no counterpart beside the primary one | a header whose actions wrap on a phone | LA-03 |
|
|
56
|
+
| A footer `action-bar` of three or more actions with no overflow control, or a secondary action with no counterpart | a footer that stacks into a column on a phone | LA-07 |
|
|
46
57
|
|
|
47
58
|
A rule whose `Check` needs the screen running — a size class, a throttled
|
|
48
59
|
network, the accessibility tree — is run when the environment can run it, and
|
|
@@ -65,6 +76,6 @@ deviation. The screen passes when no `MUST` finding remains.
|
|
|
65
76
|
1. Fix every `MUST` finding, then each `SHOULD` finding the request covers.
|
|
66
77
|
2. A fix uses what the family offers — its state, its slot, its axis — and
|
|
67
78
|
never CSS on its parts.
|
|
68
|
-
3. A literal becomes a token of the group
|
|
79
|
+
3. A literal becomes a token of the group `../../tokens.md` lists for
|
|
69
80
|
that decision.
|
|
70
81
|
4. Run the searches of step 3 again on the changed files: none finds anything.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: theme-app
|
|
3
|
-
description: Use when changing how an application built with @slotted/angular looks, as a whole or in one region — its brand
|
|
3
|
+
description: Use when changing how an application built with @slotted/angular looks, as a whole or in one region — its brand color, a light, dark or high-contrast scheme, density, fonts, corners, or the shape of a control. Chooses the narrowest level that reaches the change — a seed, a token, a family token or a theme rule — and where it is declared.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Theme an application
|
|
@@ -12,18 +12,28 @@ theme or on a scope, never by CSS of the application on a family's parts.
|
|
|
12
12
|
|
|
13
13
|
Take the first row that reaches the change.
|
|
14
14
|
|
|
15
|
-
| The change
|
|
16
|
-
|
|
|
17
|
-
| The brand
|
|
18
|
-
| Light, dark, high contrast, or the system's preference
|
|
19
|
-
| How tight controls and rows are
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
15
|
+
| The change | Level | Declared in |
|
|
16
|
+
| ------------------------------------------------------------------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
|
|
17
|
+
| The brand color, or the color of one intent | a seed: `--slotted-seed-accent` or another name of `SEED_NAMES` | the theme's `seeds`, or a scope |
|
|
18
|
+
| Light, dark, high contrast, or the system's preference | the scheme: `light`, `dark`, `high-contrast`, `system` | `data-slotted-scheme`, or the scheme of the `slThemeScope` directive from `@slotted/angular/theme` |
|
|
19
|
+
| How tight controls and rows are | the density: `comfortable`, `compact`, `dense` | `data-slotted-density`, or the density of the `slThemeScope` directive from `@slotted/angular/theme` |
|
|
20
|
+
| How round corners are, chosen by the reader | the corners: `square`, `soft`, `standard`, `round` | `data-slotted-corners`, or the corners of the `slThemeScope` directive from `@slotted/angular/theme`; the theme's `corners` holds each radius scale |
|
|
21
|
+
| How deep a scheme's grounds sit, or how far each layer steps from the one below | the recipe: one derivation per token per scheme | the theme's `recipe`, spread from the base theme's, as below; `themeConformance` still checks every contrast |
|
|
22
|
+
| A recipe derivation chosen by the reader: an OLED black page, a stronger border | a variant: an axis, its values, a partial recipe per scheme | the theme's `variants`; `data-slotted-variant-<axis>` set to the value; `themeConformance` checks each value |
|
|
23
|
+
| Spacing, corners, type, lines, shadows or motion | a token of a group in `../../tokens.md` | the theme's `base`; `schemes` for a value per scheme; `densities` per density |
|
|
24
|
+
| One family's look | a token the family's page lists under Tokens | the theme's `components` |
|
|
25
|
+
| What no token reaches | a theme rule | the theme's `rules` |
|
|
23
26
|
|
|
24
|
-
Every
|
|
25
|
-
new seed keeps the ratios of every scheme. A
|
|
26
|
-
`text` or `border` groups is changed through its seed,
|
|
27
|
+
Every color token derives from the six seeds within contrast bounds, so a
|
|
28
|
+
new seed keeps the ratios of every scheme. A color of the `tone`, `surface`,
|
|
29
|
+
`text` or `border` groups is changed through its seed, or through its
|
|
30
|
+
derivation in the recipe, never declared by hand.
|
|
31
|
+
|
|
32
|
+
A recipe change keeps every other derivation of the base theme: the theme's
|
|
33
|
+
`recipe` spreads the base theme's recipe, spreads from it the scheme it
|
|
34
|
+
changes, and replaces one token's derivation — its seed, its lightness and its
|
|
35
|
+
chroma's scale and ceiling, the shape every derivation of the standard recipe
|
|
36
|
+
has.
|
|
27
37
|
|
|
28
38
|
## 2. One theme for the product
|
|
29
39
|
|
|
@@ -46,20 +56,44 @@ new seed keeps the ratios of every scheme. A colour of the `tone`, `surface`,
|
|
|
46
56
|
|
|
47
57
|
## 3. One region
|
|
48
58
|
|
|
49
|
-
1. A scheme
|
|
50
|
-
an overlay opened inside it, or the `data-slotted-scheme
|
|
51
|
-
`data-slotted-density` attributes on the
|
|
59
|
+
1. A scheme, a density or corners for a subtree: the `slThemeScope` directive from `@slotted/angular/theme`, which carries
|
|
60
|
+
them to an overlay opened inside it, or the `data-slotted-scheme`,
|
|
61
|
+
`data-slotted-density` and `data-slotted-corners` attributes on the
|
|
62
|
+
subtree's root. A variant of the theme is the
|
|
63
|
+
`data-slotted-variant-<axis>` attribute on the subtree's root or on an
|
|
64
|
+
ancestor of the scheme's root.
|
|
52
65
|
2. A seed for a subtree: the seed property on an element that also carries
|
|
53
|
-
`data-slotted-seeds`, or the seeds of the `slThemeScope` directive from `@slotted/angular/theme`. Every
|
|
66
|
+
`data-slotted-seeds`, or the seeds of the `slThemeScope` directive from `@slotted/angular/theme`. Every color under it
|
|
54
67
|
derives again from that seed.
|
|
55
|
-
3. A
|
|
68
|
+
3. A color the reader picks at runtime: write the seed property on the element
|
|
56
69
|
that carries `data-slotted-theme`, with `seedStyle` from
|
|
57
70
|
`@slotted/theme/seeds`, which leaves the token contract out of the bundle.
|
|
58
71
|
4. A bar of the application's own that floats over scrolling content — a phone
|
|
59
72
|
tab bar, a sticky banner — is a material: its background reads
|
|
60
73
|
`--slotted-surface-material` and its backdrop filter reads
|
|
61
74
|
`--slotted-material-backdrop`. The theme makes both opaque under reduced
|
|
62
|
-
transparency and forced
|
|
75
|
+
transparency and forced colors. A page header becomes that material once
|
|
76
|
+
content passes under it with its `material` input, set on the header or on
|
|
77
|
+
its defaults. A theme draws the command palette as one by setting
|
|
78
|
+
`--slotted-command-palette-surface` to the material surface and
|
|
79
|
+
`--slotted-command-palette-backdrop-filter` to the material backdrop, and a
|
|
80
|
+
raised toast with `--slotted-toast-surface` and
|
|
81
|
+
`--slotted-toast-backdrop-filter`. The bars at the bottom edge take
|
|
82
|
+
`--slotted-page-footer-background` with
|
|
83
|
+
`--slotted-page-footer-backdrop-filter`, and
|
|
84
|
+
`--slotted-detail-panel-footer-background` with
|
|
85
|
+
`--slotted-detail-panel-footer-backdrop-filter`, and a drawer's footer
|
|
86
|
+
`--slotted-drawer-footer-surface` with
|
|
87
|
+
`--slotted-drawer-footer-backdrop-filter`, and a bottom sheet's sticky
|
|
88
|
+
header and resizer, once content scrolls under them,
|
|
89
|
+
`--slotted-drawer-header-surface` with
|
|
90
|
+
`--slotted-drawer-header-backdrop-filter`, and a dialog's panel
|
|
91
|
+
`--slotted-dialog-surface` with `--slotted-dialog-backdrop-filter`. The
|
|
92
|
+
chart's tooltip, menu and help read one filter,
|
|
93
|
+
`--slotted-chart-overlay-backdrop-filter`. A chart's table view takes
|
|
94
|
+
`--slotted-chart-table-surface` and its sticky header
|
|
95
|
+
`--slotted-chart-table-header-surface`; `--slotted-chart-surface` stays
|
|
96
|
+
opaque, because the series colors mix with it.
|
|
63
97
|
|
|
64
98
|
## 4. Restyle a control
|
|
65
99
|
|
|
@@ -69,11 +103,23 @@ new seed keeps the ratios of every scheme. A colour of the `tone`, `surface`,
|
|
|
69
103
|
3. Else a theme rule. It lives in `slotted.theme-rules`, selects only
|
|
70
104
|
`data-ui`, `data-part`, the attributes a family writes and the theme's
|
|
71
105
|
attributes, and reads only tokens; the compiler names the file, the line
|
|
72
|
-
and the selector of a rule it refuses.
|
|
106
|
+
and the selector of a rule it refuses. A rule for one scheme begins with
|
|
107
|
+
the nesting selector, which names the theme root that carries the scheme.
|
|
108
|
+
The same selector without it asks for a descendant of the root and is
|
|
109
|
+
refused:
|
|
110
|
+
|
|
111
|
+
```css
|
|
112
|
+
&[data-slotted-scheme='dark'] [data-ui='card'] {
|
|
113
|
+
/* accepted */
|
|
114
|
+
}
|
|
115
|
+
[data-slotted-scheme='dark'] [data-ui='card'] {
|
|
116
|
+
/* refused */
|
|
117
|
+
}
|
|
118
|
+
```
|
|
73
119
|
|
|
74
120
|
## 5. Done
|
|
75
121
|
|
|
76
122
|
1. The application's own CSS declares no token of the `tone`, `surface`,
|
|
77
|
-
`text` or `border` groups, and sets no
|
|
123
|
+
`text` or `border` groups, and sets no color, border, radius, padding or
|
|
78
124
|
type on a family's `data-ui` or `data-part`.
|
|
79
125
|
2. `themeConformance` passes for the theme.
|
|
@@ -12,20 +12,21 @@ pending screen occupy the same boxes.
|
|
|
12
12
|
The failure this skill prevents: three grey bars of equal length where a table,
|
|
13
13
|
a card and a list should have been.
|
|
14
14
|
|
|
15
|
-
Rules cited here are in
|
|
16
|
-
named here has its page:
|
|
15
|
+
Rules cited here are in `../../guidelines/async-feedback.md`. Each family
|
|
16
|
+
named here has its page: `../../<family>.md`.
|
|
17
17
|
|
|
18
18
|
## 1. Which indicator answers which wait
|
|
19
19
|
|
|
20
20
|
Answer in order and stop at the first row that decides.
|
|
21
21
|
|
|
22
|
-
| The wait
|
|
23
|
-
|
|
|
24
|
-
| Structure is known before the data arrives — a list, a table, a card, a form
|
|
25
|
-
|
|
|
26
|
-
| A
|
|
27
|
-
|
|
|
28
|
-
|
|
|
22
|
+
| The wait | The indicator |
|
|
23
|
+
| ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
|
|
24
|
+
| Structure is known before the data arrives — a list, a table, a card, a form | `skeleton` placeholders |
|
|
25
|
+
| Data already on screen is read again for the whole page — a Refresh, a refetch after a write, a refetch on focus | the `page-header` progress part in the page header; the region keeps its items and no control draws its own indicator |
|
|
26
|
+
| A control started the request and stays on screen — a button, a field, a menu item | that family's own `loading` state |
|
|
27
|
+
| A region already painted is being replaced and must not be touched meanwhile | `loading-overlay` |
|
|
28
|
+
| The work reports how much is done | `progress-indicator` with a value |
|
|
29
|
+
| Nothing above: duration unknown, structure unknown, area small | `progress-indicator` in its `indeterminate` state |
|
|
29
30
|
|
|
30
31
|
Two indicators never answer the same wait in the same region. Placeholders
|
|
31
32
|
under an overlay, an indeterminate indicator inside placeholders, and a
|
|
@@ -44,7 +45,7 @@ family's indicator (AF-03).
|
|
|
44
45
|
|
|
45
46
|
## 2. Placeholders are the anatomy, not rectangles
|
|
46
47
|
|
|
47
|
-
Placeholders are the same layout as the content, drawn in one
|
|
48
|
+
Placeholders are the same layout as the content, drawn in one color. Build
|
|
48
49
|
them from the loaded markup:
|
|
49
50
|
|
|
50
51
|
1. Keep the container, the parts, the grid, the inset and the gap tokens the
|
|
@@ -136,4 +137,7 @@ animating behind a message.
|
|
|
136
137
|
untouched.
|
|
137
138
|
- [ ] Reduced motion stops the animation and keeps the shape.
|
|
138
139
|
- [ ] Empty, no results and error are distinct states, each with its next step.
|
|
139
|
-
- [ ]
|
|
140
|
+
- [ ] For each control that writes, the regions on any screen whose figures
|
|
141
|
+
the write changes are listed, and each is shown read again after the
|
|
142
|
+
write (AF-08).
|
|
143
|
+
- [ ] Each `Check` of AF-01 to AF-08 passes.
|
package/docs/slider.json
CHANGED
|
@@ -340,9 +340,9 @@
|
|
|
340
340
|
"Each thumb’s own min and max follow its neighbour, which is the multi-thumb pattern’s requirement that the announced range of a dependent slider be updated when the value changes. The tab order stays the array’s order however the thumbs move, which is the pattern’s second requirement.",
|
|
341
341
|
"The whole keyboard table is the family’s: arrows by step, Shift and the page keys by largeStep, Home and End to this thumb’s own bounds. The inline arrows follow the reading direction and the block arrows do not — a scale has a direction and bidi is not it — which is what the pattern’s note about reversing the direction means in a mirrored document.",
|
|
342
342
|
"aria-valuetext carries the formatted string, because aria-valuenow alone announces 1480 for a scale showing R$ 1.480,00. A mark that carries a label becomes that string at its own value, which is exactly the case the pattern names for the property.",
|
|
343
|
-
"aria-required, never the native required. The native attribute engages browser constraint validation and changes submit
|
|
343
|
+
"aria-required, never the native required. The native attribute engages browser constraint validation and changes submit behavior, which the library must not impose as a side effect of describing a field. disabled is native, because that is what the word means; readonly is not, because input[type=range] does not answer it.",
|
|
344
344
|
"The target is the band rather than the thumb: it is floored at 24 CSS pixels in the cross axis, which is WCAG 2.2 SC 2.5.8, and a press anywhere on it moves the nearest thumb and starts a drag.",
|
|
345
|
-
"Nothing is said by
|
|
345
|
+
"Nothing is said by color alone. Invalid is announced by aria-invalid and said in words by the field’s error, and in the high-contrast scheme the rail is a white channel with a black edge so the fill is still visible inside it."
|
|
346
346
|
]
|
|
347
347
|
}
|
|
348
348
|
},
|
|
@@ -427,7 +427,7 @@
|
|
|
427
427
|
"title": "Playground",
|
|
428
428
|
"note": "One scale with every input on it, driven by the controls below the canvas. Press anywhere on the band: the nearest thumb moves there and keeps following the pointer.",
|
|
429
429
|
"language": "html",
|
|
430
|
-
"source": "<div slField>\n <label slFieldLabel>Volume</label>\n <div slSlider [defaultValue]=\"40\" [max]=\"1\" [step]=\"0.01\" [format]=\"percent\"></div>\n <p slFieldDescription>
|
|
430
|
+
"source": "<div slField>\n <label slFieldLabel>Volume</label>\n <div slSlider [defaultValue]=\"40\" [max]=\"1\" [step]=\"0.01\" [format]=\"percent\"></div>\n <p slFieldDescription>Applies to all alerts in the app.</p>\n</div>\n",
|
|
431
431
|
"verdict": "excerpt"
|
|
432
432
|
},
|
|
433
433
|
{
|
|
@@ -443,7 +443,7 @@
|
|
|
443
443
|
"title": "Which axis the scale runs along",
|
|
444
444
|
"note": "A vertical scale puts its minimum at the bottom, where the browser’s own vertical range input puts it. The arrows follow: Up increases in both orientations, and only the inline pair mirrors in a right-to-left document.",
|
|
445
445
|
"language": "html",
|
|
446
|
-
"source": "<div slSlider orientation=\"vertical\" aria-label=\"
|
|
446
|
+
"source": "<div slSlider orientation=\"vertical\" aria-label=\"Treble\" [defaultValue]=\"70\"></div>\n<div slSlider orientation=\"vertical\" aria-label=\"Mid\" [defaultValue]=\"35\"></div>\n<div slSlider orientation=\"vertical\" aria-label=\"Bass\" [defaultValue]=\"50\"></div>\n",
|
|
447
447
|
"verdict": "excerpt"
|
|
448
448
|
},
|
|
449
449
|
{
|
|
@@ -451,7 +451,7 @@
|
|
|
451
451
|
"title": "Two thumbs, and the distance between them",
|
|
452
452
|
"note": "An array of values makes a range. Each thumb’s own min and max follow its neighbour, so the two cannot cross and a screen reader is told the range each one actually has — which is what the multi-thumb pattern requires and what clamping in script leaves wrong.",
|
|
453
453
|
"language": "html",
|
|
454
|
-
"source": "<div\n slSlider\n name=\"preco\"\n [defaultValue]=\"[240, 780]\"\n [max]=\"1000\"\n [step]=\"10\"\n [minStepsBetween]=\"2\"\n [thumbLabels]=\"['
|
|
454
|
+
"source": "<div\n slSlider\n name=\"preco\"\n [defaultValue]=\"[240, 780]\"\n [max]=\"1000\"\n [step]=\"10\"\n [minStepsBetween]=\"2\"\n [thumbLabels]=\"['Minimum price', 'Maximum price']\"\n></div>\n",
|
|
455
455
|
"verdict": "excerpt"
|
|
456
456
|
},
|
|
457
457
|
{
|
|
@@ -483,7 +483,7 @@
|
|
|
483
483
|
"title": "Where the number stands",
|
|
484
484
|
"note": "auto shows the bubble while a thumb is dragged or focused, always keeps it there, and none withdraws both the bubble and the read-out. The room the bubble stands in is reserved either way, so nothing moves when a drag begins.",
|
|
485
485
|
"language": "html",
|
|
486
|
-
"source": "<div slSlider valueLabel=\"auto\" [defaultValue]=\"40\"></div>\n<div slSlider valueLabel=\"always\" [defaultValue]=\"40\"></div>\n\n<!-- A value that is a sentence belongs in a label of the consumer's own. -->\n<div slSlider valueLabel=\"none\" [defaultValue]=\"2\" [max]=\"2\" [marks]=\"
|
|
486
|
+
"source": "<div slSlider valueLabel=\"auto\" [defaultValue]=\"40\"></div>\n<div slSlider valueLabel=\"always\" [defaultValue]=\"40\"></div>\n\n<!-- A value that is a sentence belongs in a label of the consumer's own. -->\n<div slSlider valueLabel=\"none\" [defaultValue]=\"2\" [max]=\"2\" [marks]=\"deliveries\"></div>\n",
|
|
487
487
|
"verdict": "excerpt"
|
|
488
488
|
},
|
|
489
489
|
{
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
"title": "Content the family did not choose",
|
|
500
500
|
"note": "A five-label scale at 240 pixels, a mark label of four words, a negative range and a value written in a locale that groups with a full stop. Nothing is truncated and nothing is taken out of the DOM.",
|
|
501
501
|
"language": "html",
|
|
502
|
-
"source": "<div\n slSlider\n locale=\"pt-BR\"\n [defaultValue]=\"[-1480, 2960]\"\n [min]=\"-4000\"\n [max]=\"4000\"\n [step]=\"20\"\n [thumbLabels]=\"['
|
|
502
|
+
"source": "<div\n slSlider\n locale=\"pt-BR\"\n [defaultValue]=\"[-1480, 2960]\"\n [min]=\"-4000\"\n [max]=\"4000\"\n [step]=\"20\"\n [thumbLabels]=\"['Minimum balance', 'Maximum balance']\"\n></div>\n",
|
|
503
503
|
"verdict": "excerpt"
|
|
504
504
|
},
|
|
505
505
|
{
|
|
@@ -507,7 +507,7 @@
|
|
|
507
507
|
"title": "In a field, in a reactive form, and beside a number",
|
|
508
508
|
"note": "The label, the description, the error and the identifier arrive from the field with nothing written. formControl puts the value in a reactive form, name submits one value per thumb, and a number field beside the scale is the pairing the guide recommends when precision matters.",
|
|
509
509
|
"language": "html",
|
|
510
|
-
"source": "<div slField [invalid]=\"true\">\n <label slFieldLabel>
|
|
510
|
+
"source": "<div slField [invalid]=\"true\">\n <label slFieldLabel>Share</label>\n <div slSlider name=\"share\" [formControl]=\"share\" #scale=\"slSlider\"></div>\n <p slFieldError>The share cannot exceed ninety percent.</p>\n</div>\n\n<button slButton type=\"button\" (click)=\"scale.focusThumb(0)\">Ir ao valor</button>\n",
|
|
511
511
|
"verdict": "excerpt"
|
|
512
512
|
},
|
|
513
513
|
{
|
package/docs/slider.md
CHANGED
|
@@ -19,7 +19,7 @@ Excerpt — not a complete module
|
|
|
19
19
|
<div slField>
|
|
20
20
|
<label slFieldLabel>Volume</label>
|
|
21
21
|
<div slSlider [defaultValue]="40" [max]="1" [step]="0.01" [format]="percent"></div>
|
|
22
|
-
<p slFieldDescription>
|
|
22
|
+
<p slFieldDescription>Applies to all alerts in the app.</p>
|
|
23
23
|
</div>
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -90,9 +90,9 @@ Excerpt — not a complete module
|
|
|
90
90
|
- Each thumb’s own min and max follow its neighbour, which is the multi-thumb pattern’s requirement that the announced range of a dependent slider be updated when the value changes. The tab order stays the array’s order however the thumbs move, which is the pattern’s second requirement.
|
|
91
91
|
- The whole keyboard table is the family’s: arrows by step, Shift and the page keys by largeStep, Home and End to this thumb’s own bounds. The inline arrows follow the reading direction and the block arrows do not — a scale has a direction and bidi is not it — which is what the pattern’s note about reversing the direction means in a mirrored document.
|
|
92
92
|
- aria-valuetext carries the formatted string, because aria-valuenow alone announces 1480 for a scale showing R$ 1.480,00. A mark that carries a label becomes that string at its own value, which is exactly the case the pattern names for the property.
|
|
93
|
-
- aria-required, never the native required. The native attribute engages browser constraint validation and changes submit
|
|
93
|
+
- aria-required, never the native required. The native attribute engages browser constraint validation and changes submit behavior, which the library must not impose as a side effect of describing a field. disabled is native, because that is what the word means; readonly is not, because input[type=range] does not answer it.
|
|
94
94
|
- The target is the band rather than the thumb: it is floored at 24 CSS pixels in the cross axis, which is WCAG 2.2 SC 2.5.8, and a press anywhere on it moves the nearest thumb and starts a drag.
|
|
95
|
-
- Nothing is said by
|
|
95
|
+
- Nothing is said by color alone. Invalid is announced by aria-invalid and said in words by the field’s error, and in the high-contrast scheme the rail is a white channel with a black edge so the fill is still visible inside it.
|
|
96
96
|
|
|
97
97
|
## Tokens
|
|
98
98
|
|
|
@@ -124,9 +124,9 @@ A vertical scale puts its minimum at the bottom, where the browser’s own verti
|
|
|
124
124
|
Excerpt — not a complete module
|
|
125
125
|
|
|
126
126
|
```html
|
|
127
|
-
<div slSlider orientation="vertical" aria-label="
|
|
128
|
-
<div slSlider orientation="vertical" aria-label="
|
|
129
|
-
<div slSlider orientation="vertical" aria-label="
|
|
127
|
+
<div slSlider orientation="vertical" aria-label="Treble" [defaultValue]="70"></div>
|
|
128
|
+
<div slSlider orientation="vertical" aria-label="Mid" [defaultValue]="35"></div>
|
|
129
|
+
<div slSlider orientation="vertical" aria-label="Bass" [defaultValue]="50"></div>
|
|
130
130
|
```
|
|
131
131
|
|
|
132
132
|
### Two thumbs, and the distance between them
|
|
@@ -143,7 +143,7 @@ Excerpt — not a complete module
|
|
|
143
143
|
[max]="1000"
|
|
144
144
|
[step]="10"
|
|
145
145
|
[minStepsBetween]="2"
|
|
146
|
-
[thumbLabels]="['
|
|
146
|
+
[thumbLabels]="['Minimum price', 'Maximum price']"
|
|
147
147
|
></div>
|
|
148
148
|
```
|
|
149
149
|
|
|
@@ -198,7 +198,7 @@ Excerpt — not a complete module
|
|
|
198
198
|
<div slSlider valueLabel="always" [defaultValue]="40"></div>
|
|
199
199
|
|
|
200
200
|
<!-- A value that is a sentence belongs in a label of the consumer's own. -->
|
|
201
|
-
<div slSlider valueLabel="none" [defaultValue]="2" [max]="2" [marks]="
|
|
201
|
+
<div slSlider valueLabel="none" [defaultValue]="2" [max]="2" [marks]="deliveries"></div>
|
|
202
202
|
```
|
|
203
203
|
|
|
204
204
|
### Every state the family paints
|
|
@@ -228,7 +228,7 @@ Excerpt — not a complete module
|
|
|
228
228
|
[min]="-4000"
|
|
229
229
|
[max]="4000"
|
|
230
230
|
[step]="20"
|
|
231
|
-
[thumbLabels]="['
|
|
231
|
+
[thumbLabels]="['Minimum balance', 'Maximum balance']"
|
|
232
232
|
></div>
|
|
233
233
|
```
|
|
234
234
|
|
|
@@ -240,9 +240,9 @@ Excerpt — not a complete module
|
|
|
240
240
|
|
|
241
241
|
```html
|
|
242
242
|
<div slField [invalid]="true">
|
|
243
|
-
<label slFieldLabel>
|
|
244
|
-
<div slSlider name="
|
|
245
|
-
<p slFieldError>
|
|
243
|
+
<label slFieldLabel>Share</label>
|
|
244
|
+
<div slSlider name="share" [formControl]="share" #scale="slSlider"></div>
|
|
245
|
+
<p slFieldError>The share cannot exceed ninety percent.</p>
|
|
246
246
|
</div>
|
|
247
247
|
|
|
248
248
|
<button slButton type="button" (click)="scale.focusThumb(0)">Ir ao valor</button>
|