@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
|
@@ -27,7 +27,8 @@ triggers:
|
|
|
27
27
|
badge,
|
|
28
28
|
tag,
|
|
29
29
|
]
|
|
30
|
-
families:
|
|
30
|
+
families:
|
|
31
|
+
[data-grid, table, filter-bar, action-bar, pagination, page, page-header, link, badge, tag]
|
|
31
32
|
---
|
|
32
33
|
|
|
33
34
|
# List pages
|
|
@@ -148,11 +149,11 @@ Check: With touch emulation at 390 pixels the filter bar's `end` slot is one lin
|
|
|
148
149
|
|
|
149
150
|
Level: MUST
|
|
150
151
|
Applies to: a page whose body is a `data-grid` or a `table` over a store, with a bar or a message above it
|
|
151
|
-
Rule: From 600 pixels of the page's width the listing takes the height the bar and the messages leave and scrolls its own rows while the page does not scroll; below 600 the page's `fill` does not apply, the listing is as tall as its rows and the page scrolls.
|
|
152
|
+
Rule: From 600 pixels of the page's width the listing takes the height the bar and the messages leave and scrolls its own rows while the page does not scroll; below 600 the page's `fill` does not apply, the listing is as tall as its rows and the page scrolls. Below 600 the grid therefore windows nothing, and a store that can pass a hundred rows is served in pages: the grid asks for the next one when its last `loadMoreThreshold` rows come into view of the page's scroller, not of its own box.
|
|
152
153
|
Why: Two scrollers on one screen let the wheel answer whichever is under the pointer; and on a phone a filled page left the rows 155 pixels of a 667-pixel screen under a header, a banner and the tools.
|
|
153
154
|
Do: Write the page with `fill`; make the region a flex column that takes its parent's full height with a zero minimum, and give the listing `flex: 1 1 0` with `min-block-size: 0`, and below 600 pixels a flex basis of auto, so the listing fills a column that has a height and takes its rows' height in one that has none. The page's footer bar (LP-03) stays outside it.
|
|
154
155
|
Don't: Keep the zero basis below 600 pixels, which collapses the listing to nothing once the column loses its height, or give it an `auto` basis above 600, where its rows' height climbs the column and the page scrolls again.
|
|
155
|
-
Check: At 1280 with a full page of rows, the document's scroll height equals its client height and the wheel over a row moves the rows; at 375×667 the document scrolls
|
|
156
|
+
Check: At 1280 with a full page of rows, the document's scroll height equals its client height and the wheel over a row moves the rows; at 375×667 the document scrolls, the grid is as tall as its rows, opening the page over a store served 30 rows at a time requests pages only until the grid's last `loadMoreThreshold` rows are below the screen's edge, and scrolling to the end requests the next one.
|
|
156
157
|
|
|
157
158
|
### LP-13 · A mark in a cell is the small step
|
|
158
159
|
|
|
@@ -163,3 +164,43 @@ Why: A row sets its text at the small type step, 13 pixels in a 34-pixel row; an
|
|
|
163
164
|
Do: Give every mark a cell holds — a state, a flag, a warning — the `sm` `size`: 12-pixel words in a 19-pixel box.
|
|
164
165
|
Don't: Leave a cell's mark at the family's default, or size it up to make a state stand out; a tone says that.
|
|
165
166
|
Check: On every list, every `badge` and `tag` inside a cell of a `data-grid` or a `table` carries the `sm` `size`.
|
|
167
|
+
|
|
168
|
+
### LP-14 · A list that can pass a hundred rows is a data-grid
|
|
169
|
+
|
|
170
|
+
Level: MUST
|
|
171
|
+
Applies to: a list of records whose count the reader does not bound — transactions, postings, imports
|
|
172
|
+
Rule: A list that can hold more than a hundred rows, or more than twenty columns, is a `data-grid`, which windows rows and middle columns under its default `virtualize` of `auto` wherever it has a height of its own; below 600 pixels, where it is as tall as its rows (LP-12), the store is served in pages instead. `table` is for sets the page bounds, such as a statement's lines or a record's related rows.
|
|
173
|
+
Why: `table` mounts every cell: a hundred rows of twenty columns measured 93 ms in one task with a production build of React in Chrome and 160 ms with a development build, and the count of rows the store returns sets that cost.
|
|
174
|
+
Do: Give the store's list a `data-grid` with its query, and keep `table` for the bounded sets inside a record or a document.
|
|
175
|
+
Don't: Render an unbounded store into a `table`, or page a `table` to keep it under a hundred rows where the grid's window would have kept the whole set reachable.
|
|
176
|
+
Check: Every list over an unbounded store is a `data-grid`; every `table` on a page renders a set the page bounds.
|
|
177
|
+
|
|
178
|
+
### LP-15 · A grid on the page's surface is framed
|
|
179
|
+
|
|
180
|
+
Level: SHOULD
|
|
181
|
+
Applies to: a `data-grid` or a `table` on a list page, a record or an overview
|
|
182
|
+
Rule: A grid that stands on the page's surface beside other blocks takes the `framed` `variant`; a grid that is the page's only body under a `bleed` page may stay `ruled`; `plain` is for a grid inside a `card` or a panel that already draws the frame.
|
|
183
|
+
Why: `ruled`, the grid's default, draws rules between rows and no outer edge, and on a raised page surface every grid read as a bare slab beside blocks that have edges.
|
|
184
|
+
Do: Give every grid that shares the page with a header area, a filter bar or other blocks the `framed` `variant`, and leave `ruled` to the full-bleed list whose edges are the page's.
|
|
185
|
+
Don't: Leave the variant at its default on a page whose width is not `bleed`, or frame a grid a second time inside a card.
|
|
186
|
+
Check: Every `data-grid` with no `variant` stands on a page whose `width` is `bleed`; every grid inside a `card` is `plain`.
|
|
187
|
+
|
|
188
|
+
### LP-16 · A list's header says what the list covers
|
|
189
|
+
|
|
190
|
+
Level: SHOULD
|
|
191
|
+
Applies to: the `page-header` of a list page
|
|
192
|
+
Rule: A list page's header holds a subheading that says what the list covers, the control of the period when the list reads one, the page's figures for that period in the header area as label-over-figure pairs, and the primary action as the last, solid control; a refresh control is an icon button and never the only action.
|
|
193
|
+
Why: A header with a heading and a refresh icon left the period and the totals with no place, and the reader learned what the list covered only by reading its rows.
|
|
194
|
+
Do: Write the `page-header`'s `subheading` part for what the list covers, the period's control and the figures in its `header-area` as `figure` parts, and end its `actions` with the solid primary action; the refresh stands before it as the `button` family's `iconButton`.
|
|
195
|
+
Don't: Leave a list's header as a heading alone, put its figures in a row of cards above the grid, or make a refresh icon the header's only control.
|
|
196
|
+
Check: Every list page's header has a subheading, its figures in the header area, and a solid primary action last; no header's only control is a refresh.
|
|
197
|
+
|
|
198
|
+
### LP-17 · The row header and the row's actions stay in the frame
|
|
199
|
+
|
|
200
|
+
Level: SHOULD
|
|
201
|
+
Applies to: a `data-grid` whose columns can scroll sideways
|
|
202
|
+
Rule: The column of kind `actions` stays pinned to the end, which is the grid's default, and the row header is pinned to the start with `pinned: 'start'` when it is the first column; no other column is pinned without a reason the page states.
|
|
203
|
+
Why: When the columns scrolled sideways the row's menu left the frame, and on a narrow frame the reader scrolled away from the actions to reach them.
|
|
204
|
+
Do: Keep the `actions` column at its default pin, write `pinned: 'start'` on a row header that is the first column, and pin nothing else.
|
|
205
|
+
Don't: Unpin the actions column, or pin a column the reader did not ask to keep in view.
|
|
206
|
+
Check: In a frame narrower than the grid's columns, scrolled to the end, every row's actions cell is in view, and so is the row header when it is the first column.
|
|
@@ -3,12 +3,12 @@ topic: overviews
|
|
|
3
3
|
prefix: OV
|
|
4
4
|
triggers:
|
|
5
5
|
[overview, dashboard, flagship, figure, stat card, exception, summary, chart, door, phone, narrow]
|
|
6
|
-
families: [stat-card, chart, list, list-item, table, section, grid]
|
|
6
|
+
families: [stat-card, chart, list, list-item, table, section, grid, dashboard-grid, card]
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Overviews
|
|
10
10
|
|
|
11
|
-
How a screen that
|
|
11
|
+
How a screen that summarizes a module is composed: what its figures lead to,
|
|
12
12
|
what a phone keeps first, and when a chart earns its place. The library gives
|
|
13
13
|
`stat-card` a figure and an action, `chart` a comparison and its table, and
|
|
14
14
|
`list` rows that are destinations; it does not say that a figure is a door, in
|
|
@@ -21,7 +21,7 @@ Level: SHOULD
|
|
|
21
21
|
Applies to: a `stat-card` on an overview whose number counts records a list page holds
|
|
22
22
|
Rule: The figure leads to the list page of the records it counts, and that list opens with the figure's condition applied as the bar's own pills, which the reader removes like any other.
|
|
23
23
|
Why: A number the reader cannot open is a question with no way to its answer, and a list opened without the condition makes the reader rebuild the filter the figure already stood for.
|
|
24
|
-
Do: Put the door in the card's `action` part at the desk. Keep the list a destination of its own in the navigation, and let the overview
|
|
24
|
+
Do: Put the door in the card's `action` part at the desk. Keep the list a destination of its own in the navigation, and let the overview summarize and lead rather than hold the list in its body. Carry the condition in the address, so the door is a link a colleague can paste.
|
|
25
25
|
Don't: Draw a figure with no way to the records, open the unfiltered list, or narrow the list through a place the bar does not show.
|
|
26
26
|
Check: Press each figure's door: the list's bar shows the figure's pill and its count equals the figure.
|
|
27
27
|
|
|
@@ -45,15 +45,15 @@ Do: Decide the chart from the scope the page already reads, and write the senten
|
|
|
45
45
|
Don't: Draw one group of bars, or leave an empty chart region for a reader scoped to one place.
|
|
46
46
|
Check: Sign in as a reader whose scope holds one category: the overview draws no comparison chart, and one sentence states that category's numbers.
|
|
47
47
|
|
|
48
|
-
### OV-04 · A threshold is said,
|
|
48
|
+
### OV-04 · A threshold is said, then painted
|
|
49
49
|
|
|
50
50
|
Level: SHOULD
|
|
51
51
|
Applies to: a figure of an overview whose reading changes at a share the product states — overdue receivables against all receivables
|
|
52
|
-
Rule: The thresholds are stated once in words beside the figures, and a figure past one says so in its own comparison line, on the line the placeholder reserves.
|
|
53
|
-
Why:
|
|
54
|
-
Do: Keep the shares in one place of the page's code and one sentence on screen ("a warning from 20 percent of receivables and a danger from 33"),
|
|
55
|
-
Don't: Set
|
|
56
|
-
Check: Bring a figure past each stated threshold: the threshold sentence stands beside the figures,
|
|
52
|
+
Rule: The thresholds are stated once in words beside the figures, and a figure past one says so in its own comparison line, on the line the placeholder reserves; the card takes `attention` at the threshold's level (`warning` or `danger`).
|
|
53
|
+
Why: Color is a second channel: `attention` paints the value and the edge of the card, and a reader who does not see the color reads the crossing in the comparison. The card's `tone` is the trend's and paints nothing on a card without one, and a mark added beside the label moves the card's header to a second line.
|
|
54
|
+
Do: Keep the shares in one place of the page's code and one sentence on screen ("a warning from 20 percent of receivables and a danger from 33"), end the crossed figure's comparison with the threshold it passed ("26% of receivables, above 20%"), and set `attention` to `warning` on that card.
|
|
55
|
+
Don't: Set `attention` on a card whose comparison does not name the threshold, set `tone` to flag a crossing, or add a badge to the card's header for the crossing.
|
|
56
|
+
Check: Bring a figure past each stated threshold: the threshold sentence stands beside the figures, the figure's own comparison line says it crossed, on the line its placeholder reserved, and the card carries `attention` at the threshold's level.
|
|
57
57
|
|
|
58
58
|
### OV-05 · A chart is framed only as a tile
|
|
59
59
|
|
|
@@ -64,3 +64,33 @@ Why: The section's heading and its space already frame a chart that is its body,
|
|
|
64
64
|
Do: Give a plain chart a `title` that names the measure and not the section's words again; in a grid of peer tiles, let the chart's title be the tile's title and share the row's height, as `stat-card` always does.
|
|
65
65
|
Don't: Frame every chart by habit, or leave a chart plain among framed tiles where it reads as the page's background.
|
|
66
66
|
Check: For each chart, name what frames it: a titled section (plain) or a grid of peers (card); a chart with neither frame, or with both, is a finding.
|
|
67
|
+
|
|
68
|
+
### OV-06 · The stat-cards of one row share their structure
|
|
69
|
+
|
|
70
|
+
Level: SHOULD
|
|
71
|
+
Applies to: a row of `stat-card`s on an overview or a record page
|
|
72
|
+
Rule: The cards of one row carry a label of at most three words, the figure, and the same optional parts on every card — a comparison of one line on each, or on none.
|
|
73
|
+
Why: One card with a long label and a wrapping comparison beside three cards with a label and a value made four boxes of the tallest card's height, three of them mostly empty, and the row read as broken.
|
|
74
|
+
Do: Give every card a short label, its figure and one comparison line; detail that only one card has goes into its comparison or a tooltip.
|
|
75
|
+
Don't: Lengthen one card's label to carry its detail, or give one card of the row a part the others lack.
|
|
76
|
+
Check: In every row of `stat-card`s, every label has three words or fewer, and either every card has a comparison or none does.
|
|
77
|
+
|
|
78
|
+
### OV-07 · An arranged overview is a dashboard-grid
|
|
79
|
+
|
|
80
|
+
Level: SHOULD
|
|
81
|
+
Applies to: an overview whose blocks the reader moves, resizes or hides
|
|
82
|
+
Rule: The overview is one `dashboard-grid` whose blocks are each one of its widgets, and each headline figure is a widget of its own whose title is the figure's label.
|
|
83
|
+
Why: A grid of the application's own with its own menu for hiding blocks repeats the editing, the keyboard moves, the persistence and the Add widget menu the family already draws.
|
|
84
|
+
Do: Give each widget a `value` and a `title`, and let the `auto` `rows` size a figure's widget to its content; persist the layout with the family's own persistence.
|
|
85
|
+
Don't: Build a `grid` of sections with a menu of the application's own that hides or orders them, or put several figures inside one widget.
|
|
86
|
+
Check: Find every control of the overview that hides, moves or resizes a block: each is the `dashboard-grid`'s own.
|
|
87
|
+
|
|
88
|
+
### OV-08 · Inside a frame, a figure is plain
|
|
89
|
+
|
|
90
|
+
Level: SHOULD
|
|
91
|
+
Applies to: `stat-card` and `chart` inside a framed region — a widget of the `dashboard-grid`, a `section` with the `surface` `ground`, a `card`
|
|
92
|
+
Rule: A `stat-card` inside a framed region takes the `plain` `fill` and a `chart` takes the `plain` `variant`; a frame inside a frame is a finding.
|
|
93
|
+
Why: The region's frame already separates the figure from its neighbours, and a second frame inside it draws a card within a card whose inner edge sits one inset from the outer.
|
|
94
|
+
Do: Let the region's title name the figure, as a widget's title does, and keep the figure's own header for a status or an action.
|
|
95
|
+
Don't: Leave a `stat-card` at its default `outline` fill, or a `chart` at the `card` `variant`, inside a widget, a surface section or a card.
|
|
96
|
+
Check: For each `stat-card` and `chart`, name the frame around it: inside a widget, a surface section or a card, its fill or variant is `plain`.
|
|
@@ -9,7 +9,7 @@ families: [button, typography]
|
|
|
9
9
|
# Own elements
|
|
10
10
|
|
|
11
11
|
How an element no family draws is built from the theme: which tokens it reads,
|
|
12
|
-
how its states yield, and what it keeps under focus, touch, forced
|
|
12
|
+
how its states yield, and what it keeps under focus, touch, forced colors and
|
|
13
13
|
reduced motion. The families meet each rule below; an element of the
|
|
14
14
|
application's own meets them through the same tokens. Where a family answers
|
|
15
15
|
the problem, the family is used instead (CP-04).
|
|
@@ -18,7 +18,7 @@ the problem, the family is used instead (CP-04).
|
|
|
18
18
|
|
|
19
19
|
Level: MUST
|
|
20
20
|
Applies to: every element of the application's own that paints, spaces or moves
|
|
21
|
-
Rule: An element of the application's own reads only tokens of the groups
|
|
21
|
+
Rule: An element of the application's own reads only tokens of the groups `../tokens.md` lists for the application.
|
|
22
22
|
Why: A token of a family-only group is that family's adjustment and changes with it; an application group is the theme's promise.
|
|
23
23
|
Do: A strip of day cells spaces with `--slotted-space-2`, paints a busy day with `--slotted-tone-warning-surface` and rounds with `--slotted-radius-sm`.
|
|
24
24
|
Don't: A cell takes its height from `--slotted-avatar-size-sm` because the number fit.
|
|
@@ -28,7 +28,7 @@ Check: Every custom property of the element's own CSS that starts with --slotted
|
|
|
28
28
|
|
|
29
29
|
Level: MUST
|
|
30
30
|
Applies to: an interactive element of the application's own
|
|
31
|
-
Rule: Where two states hold at once, the element paints the ground, the edge and the text
|
|
31
|
+
Rule: Where two states hold at once, the element paints the ground, the edge and the text color of the stronger, in the order `disabled`, `loading`, `readonly`, `invalid`, `checked`, `selected`, `pressed`, `current`, `complete`, `active`, `hover`; the focus ring of OE-03 is drawn over every state.
|
|
32
32
|
Why: A disabled element that lights under the pointer reads as operable and answers nothing.
|
|
33
33
|
Do: The hover rule of a day cell excludes the disabled and the selected cell, so a selected day keeps its ground under the pointer.
|
|
34
34
|
Don't: A hover ground declared after the selected ground repaints the chosen day while the pointer crosses it.
|
|
@@ -39,7 +39,7 @@ Check: Put the pointer over a disabled, a selected and a current instance: each
|
|
|
39
39
|
Level: MUST
|
|
40
40
|
Applies to: every element of the application's own that takes focus
|
|
41
41
|
Rule: In its `focus-visible` state the element draws an outline of `--slotted-focus-ring-width` in `--slotted-focus-ring-color`, offset by `--slotted-focus-ring-offset`.
|
|
42
|
-
Why: The ring is the one focus indicator the families share, and the theme maps its
|
|
42
|
+
Why: The ring is the one focus indicator the families share, and the theme maps its color to the system highlight under forced colors.
|
|
43
43
|
Do: A day cell draws the outline in `focus-visible` and keeps it while selected; in error it points `--slotted-focus-ring-color` at `--slotted-focus-ring-color-invalid`.
|
|
44
44
|
Don't: `outline: none` on the cell, with a change of ground as the only sign of focus.
|
|
45
45
|
Check: Move focus with the keyboard in the light, dark and high-contrast schemes: the ring is drawn at the theme's width and offset in each.
|
|
@@ -64,15 +64,15 @@ Do: A week picker beside a `button` at the medium step reads `--slotted-control-
|
|
|
64
64
|
Don't: A height taken from the space scale that matches the button only at the comfortable density.
|
|
65
65
|
Check: Switch the density among comfortable, compact and dense: the element's height equals the height of the button beside it in each.
|
|
66
66
|
|
|
67
|
-
### OE-06 · Forced
|
|
67
|
+
### OE-06 · Forced colors keep states
|
|
68
68
|
|
|
69
69
|
Level: MUST
|
|
70
70
|
Applies to: an element of the application's own that shows a state
|
|
71
71
|
Rule: Under `forced-colors: active`, each state the element shows differs from rest by a border, an outline or text, not by a ground or a shadow alone.
|
|
72
|
-
Why: The system replaces every ground with its own and removes shadows, so a state carried by
|
|
72
|
+
Why: The system replaces every ground with its own and removes shadows, so a state carried by color alone disappears.
|
|
73
73
|
Do: A selected day adds an edge of `--slotted-border-width-thick` to its tinted ground.
|
|
74
74
|
Don't: A selected day told apart only by `--slotted-tone-accent-surface`.
|
|
75
|
-
Check: Emulate forced
|
|
75
|
+
Check: Emulate forced colors and step through every state: each reads differently from rest.
|
|
76
76
|
|
|
77
77
|
### OE-07 · Motion follows the scale
|
|
78
78
|
|
|
@@ -109,7 +109,7 @@ Check: At a fixed viewport, resize the element's container across its threshold
|
|
|
109
109
|
Level: SHOULD
|
|
110
110
|
Applies to: an element of the application's own that stands above another surface
|
|
111
111
|
Rule: A surface above another takes `--slotted-surface-raised` with one step of the `shadow` group, and a layer that floats over the page takes its stacking order from the `z-index` group.
|
|
112
|
-
Why: The theme pairs each elevation with a ground per scheme and drops shadows under forced
|
|
112
|
+
Why: The theme pairs each elevation with a ground per scheme and drops shadows under forced colors; a shadow or a stacking order written by hand stays outside both.
|
|
113
113
|
Do: A day's detail card floats with `--slotted-surface-raised`, `--slotted-shadow-md` and `--slotted-z-index-popover`.
|
|
114
114
|
Don't: A shadow written as a literal and a stacking order of 9999.
|
|
115
115
|
Check: Every shadow and every stacking order of the element's own CSS reads a token of these two groups.
|
|
@@ -19,7 +19,7 @@ triggers:
|
|
|
19
19
|
forbidden,
|
|
20
20
|
scope,
|
|
21
21
|
]
|
|
22
|
-
families: [data-grid, table, stat-card,
|
|
22
|
+
families: [data-grid, table, stat-card, alert, tabs, filter-bar]
|
|
23
23
|
---
|
|
24
24
|
|
|
25
25
|
# Reading under permissions
|
|
@@ -46,7 +46,7 @@ Level: SHOULD
|
|
|
46
46
|
Applies to: a screen that left a value out under PM-01, where its absence changes what the remaining numbers mean
|
|
47
47
|
Rule: One statement names the permission the value needs and the roles that hold it; two missing permissions are one statement, not two.
|
|
48
48
|
Why: A figure row with a hole in it reads as a screen that failed rather than as a screen that was told not to say; and a reader who holds neither permission does not need to be told twice in two tones.
|
|
49
|
-
Do: Put the statement where the absence changes the reading — under the figures on a record, above the rows on a list — and use the permission's own name, which is what a reader asks an administrator for.
|
|
49
|
+
Do: Put the statement in an `alert` where the absence changes the reading — under the figures on a record, above the rows on a list — and use the permission's own name, which is what a reader asks an administrator for.
|
|
50
50
|
Don't: Repeat the statement per tab, per column or per card, or leave the absence unexplained where the rest of the numbers depend on it.
|
|
51
51
|
Check: Sign in as a reader holding neither the price nor the cost permission: one sentence names both permissions and the roles that hold them.
|
|
52
52
|
|
|
@@ -103,7 +103,7 @@ Level: SHOULD
|
|
|
103
103
|
Applies to: a record that moves through states other people watch — an order, a quote, a shipment, a ticket
|
|
104
104
|
Rule: The page answers "where is this" above the record's contents: the steps it has passed, the step it is on, what that step is waiting on, and one sentence naming what happens next.
|
|
105
105
|
Why: A reader opening an order is asking what is holding it up, not what is on line seven; a status word alone says where it is and not what it is waiting for, and the lines say neither.
|
|
106
|
-
Do: Draw the steps as the record's own element (CP-04) with the state each one is in, and give the stopped record its own tone — a hold and a cancellation are not the same
|
|
106
|
+
Do: Draw the steps as the record's own element (CP-04) with the state each one is in, and give the stopped record its own tone — a hold and a cancellation are not the same color as progress. The figures stay above it (RP-02) and the related records below (RP-03).
|
|
107
107
|
Don't: Leave the lifecycle to a status `tag` in the header, or bury it under the lines.
|
|
108
108
|
Check: Open a record waiting on a step: the page says the step, who it waits on and what happens next, above its contents.
|
|
109
109
|
|
package/docs/highlight.json
CHANGED
|
@@ -165,8 +165,8 @@
|
|
|
165
165
|
"The text a reader hears is the text: every run is a slice of the string handed in, nothing is parsed and nothing is hidden. A label holding <b> reads <b>.",
|
|
166
166
|
"Most screen readers do not announce mark by default (MDN, Accessibility). The family injects no hidden “highlight start” before each match: a five-match option would become ten announcements. An application that needs the announcement writes the ::before rule in its own scope, over [data-ui=\"highlight\"] [data-part=\"match\"].",
|
|
167
167
|
"The mark changes no metric of the word — weight, spacing and padding are the label’s own — so a filter that marks a different span on every keystroke never reflows the label under the reader’s eyes.",
|
|
168
|
-
"The current match is not a stronger band: 0.075 is the share the 7:1 promise caps in high-contrast, and doubling it leaves 6.5:1. It takes the accent’s solid ground and the ink the theme pairs with it, and under forced
|
|
169
|
-
"A disabled row’s mark gives up the tone and keeps the rule, so the reader still sees which span matched on the one option they cannot take, and the loudest
|
|
168
|
+
"The current match is not a stronger band: 0.075 is the share the 7:1 promise caps in high-contrast, and doubling it leaves 6.5:1. It takes the accent’s solid ground and the ink the theme pairs with it, and under forced colors the Highlight and HighlightText pair the user agent draws its own find match in.",
|
|
169
|
+
"A disabled row’s mark gives up the tone and keeps the rule, so the reader still sees which span matched on the one option they cannot take, and the loudest color on the surface is not on it."
|
|
170
170
|
]
|
|
171
171
|
}
|
|
172
172
|
},
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"title": "A query, compared the way the reader’s locale compares",
|
|
201
201
|
"note": "The comparison is Intl.Collator at base sensitivity: aca finds Açaí, resume finds Résumé and strasse finds Straße. Nothing is a regular expression — C++ and a.b are text.",
|
|
202
202
|
"language": "html",
|
|
203
|
-
"source": "<span slHighlight text=\"Açaí do Vale Ltda.\" query=\"aca\"></span>\n<span slHighlight text=\"Résumé
|
|
203
|
+
"source": "<span slHighlight text=\"Açaí do Vale Ltda.\" query=\"aca\"></span>\n<span slHighlight text=\"Résumé Services\" query=\"RESUME\"></span>\n<span slHighlight text=\"Straße 12\" query=\"strasse\"></span>\n<span slHighlight text=\"C++ Consulting a.b\" query=\"c++\"></span>\n",
|
|
204
204
|
"verdict": "excerpt"
|
|
205
205
|
},
|
|
206
206
|
{
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
"title": "Several queries at once",
|
|
209
209
|
"note": "An array marks every query, and two that overlap or touch become one run: an and na over banana is one mark, never a mark inside a mark.",
|
|
210
210
|
"language": "html",
|
|
211
|
-
"source": "<span slHighlight text=\"Banana
|
|
211
|
+
"source": "<span slHighlight text=\"Banana Brazil Foods\" [query]=\"['an', 'na']\"></span>\n<span slHighlight text=\"Invoice no. 2026-0441\" [query]=\"['invoice', '0441']\"></span>\n",
|
|
212
212
|
"verdict": "excerpt"
|
|
213
213
|
},
|
|
214
214
|
{
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"title": "Spans a server already found",
|
|
225
225
|
"note": "ranges wins over query: the marks are the indexes the search engine returned, in the text’s own code units. A span past the end is clipped, an inverted one is turned round, and one inside an emoji is widened to the whole character.",
|
|
226
226
|
"language": "html",
|
|
227
|
-
"source": "<span slHighlight text=\"
|
|
227
|
+
"source": "<span slHighlight text=\"Supplier certified in 2024\" [ranges]=\"[[9, 18]]\"></span>\n<span\n slHighlight\n text=\"🇧🇷 Brazil Cables\"\n [ranges]=\"[\n [1, 2],\n [12, 40],\n ]\"\n></span>\n",
|
|
228
228
|
"verdict": "excerpt"
|
|
229
229
|
},
|
|
230
230
|
{
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
"title": "A matcher of the consumer’s own",
|
|
233
233
|
"note": "matcher replaces the collator scan and receives the queries already trimmed of empties. Here it marks whole words only — the one capability Chakra ships as exactMatch, written in three lines over what the family exports.",
|
|
234
234
|
"language": "ts",
|
|
235
|
-
"source": "import { matchRanges } from '@slotted/core/highlight';\n\nfunction boundary(text: string, at: number) {\n const around = text.slice(Math.max(0, at - 1), at + 1);\n return at === 0 || at === text.length || /\\W/.test(around);\n}\nexport function wholeWords(text: string, queries: readonly string[]) {\n const inside = ([start, end]: readonly [number, number]) =>\n boundary(text, start) && boundary(text, end);\n return matchRanges(text, queries).filter(inside);\n}\n\n// <span slHighlight text=\"
|
|
235
|
+
"source": "import { matchRanges } from '@slotted/core/highlight';\n\nfunction boundary(text: string, at: number) {\n const around = text.slice(Math.max(0, at - 1), at + 1);\n return at === 0 || at === text.length || /\\W/.test(around);\n}\nexport function wholeWords(text: string, queries: readonly string[]) {\n const inside = ([start, end]: readonly [number, number]) =>\n boundary(text, start) && boundary(text, end);\n return matchRanges(text, queries).filter(inside);\n}\n\n// <span slHighlight text=\"Steel cable and network cables\" query=\"cable\" [matcher]=\"wholeWords\"></span>\n",
|
|
236
236
|
"verdict": "excerpt"
|
|
237
237
|
},
|
|
238
238
|
{
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
"title": "The match a find bar is standing on",
|
|
241
241
|
"note": "current names one match by index, counting matches only, and that mark takes the accent’s solid ground and ink. The family never moves it: the arrows belong to the find bar, and scrolling to it is the consumer’s, through the element.",
|
|
242
242
|
"language": "html",
|
|
243
|
-
"source": "<span slHighlight [text]=\"clause\" query=\"
|
|
243
|
+
"source": "<span slHighlight [text]=\"clause\" query=\"supplier\" [current]=\"current()\"></span>\n",
|
|
244
244
|
"verdict": "excerpt"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
"title": "Disabled, from the root or from the row above it",
|
|
249
249
|
"note": "A disabled mark gives up the tone and keeps the rule, so the reader still sees which span matched on an option they cannot take. The state is read from data-disabled on the root or on any ancestor, so a host’s option says it once.",
|
|
250
250
|
"language": "html",
|
|
251
|
-
"source": "<span slHighlight text=\"Cloudberry
|
|
251
|
+
"source": "<span slHighlight text=\"Cloudberry Logistics\" query=\"berr\" disabled></span>\n\n<div data-disabled>\n <span slHighlight text=\"Gooseberry Transport\" query=\"berr\"></span>\n</div>\n",
|
|
252
252
|
"verdict": "excerpt"
|
|
253
253
|
},
|
|
254
254
|
{
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
"title": "Content the family did not choose",
|
|
265
265
|
"note": "A run that wraps is two boxes and both carry the band; a mark inside Arabic sits where the logical indexes put it in either direction; a query inside a flag or a decomposed accent widens to the whole character; a thousand-character label with a one-letter query answers under a millisecond.",
|
|
266
266
|
"language": "html",
|
|
267
|
-
"source": "<span slHighlight text=\"
|
|
267
|
+
"source": "<span slHighlight text=\"Consolidated annual sales report\" query=\"consolidated annual\"></span>\n<span slHighlight text=\"شركة النور للتجارة\" query=\"النور\"></span>\n<span slHighlight text=\"🇧🇷 Brazil · Crème\" [query]=\"['bra', 'e']\"></span>\n",
|
|
268
268
|
"verdict": "excerpt"
|
|
269
269
|
},
|
|
270
270
|
{
|
package/docs/highlight.md
CHANGED
|
@@ -57,8 +57,8 @@ Excerpt — not a complete module
|
|
|
57
57
|
- The text a reader hears is the text: every run is a slice of the string handed in, nothing is parsed and nothing is hidden. A label holding <b> reads <b>.
|
|
58
58
|
- Most screen readers do not announce mark by default (MDN, Accessibility). The family injects no hidden “highlight start” before each match: a five-match option would become ten announcements. An application that needs the announcement writes the ::before rule in its own scope, over [data-ui="highlight"] [data-part="match"].
|
|
59
59
|
- The mark changes no metric of the word — weight, spacing and padding are the label’s own — so a filter that marks a different span on every keystroke never reflows the label under the reader’s eyes.
|
|
60
|
-
- The current match is not a stronger band: 0.075 is the share the 7:1 promise caps in high-contrast, and doubling it leaves 6.5:1. It takes the accent’s solid ground and the ink the theme pairs with it, and under forced
|
|
61
|
-
- A disabled row’s mark gives up the tone and keeps the rule, so the reader still sees which span matched on the one option they cannot take, and the loudest
|
|
60
|
+
- The current match is not a stronger band: 0.075 is the share the 7:1 promise caps in high-contrast, and doubling it leaves 6.5:1. It takes the accent’s solid ground and the ink the theme pairs with it, and under forced colors the Highlight and HighlightText pair the user agent draws its own find match in.
|
|
61
|
+
- A disabled row’s mark gives up the tone and keeps the rule, so the reader still sees which span matched on the one option they cannot take, and the loudest color on the surface is not on it.
|
|
62
62
|
|
|
63
63
|
## Tokens
|
|
64
64
|
|
|
@@ -74,9 +74,9 @@ Excerpt — not a complete module
|
|
|
74
74
|
|
|
75
75
|
```html
|
|
76
76
|
<span slHighlight text="Açaí do Vale Ltda." query="aca"></span>
|
|
77
|
-
<span slHighlight text="Résumé
|
|
77
|
+
<span slHighlight text="Résumé Services" query="RESUME"></span>
|
|
78
78
|
<span slHighlight text="Straße 12" query="strasse"></span>
|
|
79
|
-
<span slHighlight text="C++
|
|
79
|
+
<span slHighlight text="C++ Consulting a.b" query="c++"></span>
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
### Several queries at once
|
|
@@ -86,8 +86,8 @@ An array marks every query, and two that overlap or touch become one run: an and
|
|
|
86
86
|
Excerpt — not a complete module
|
|
87
87
|
|
|
88
88
|
```html
|
|
89
|
-
<span slHighlight text="Banana
|
|
90
|
-
<span slHighlight text="
|
|
89
|
+
<span slHighlight text="Banana Brazil Foods" [query]="['an', 'na']"></span>
|
|
90
|
+
<span slHighlight text="Invoice no. 2026-0441" [query]="['invoice', '0441']"></span>
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
### Every occurrence, or the first
|
|
@@ -108,10 +108,10 @@ ranges wins over query: the marks are the indexes the search engine returned, in
|
|
|
108
108
|
Excerpt — not a complete module
|
|
109
109
|
|
|
110
110
|
```html
|
|
111
|
-
<span slHighlight text="
|
|
111
|
+
<span slHighlight text="Supplier certified in 2024" [ranges]="[[9, 18]]"></span>
|
|
112
112
|
<span
|
|
113
113
|
slHighlight
|
|
114
|
-
text="🇧🇷
|
|
114
|
+
text="🇧🇷 Brazil Cables"
|
|
115
115
|
[ranges]="[
|
|
116
116
|
[1, 2],
|
|
117
117
|
[12, 40],
|
|
@@ -138,7 +138,7 @@ export function wholeWords(text: string, queries: readonly string[]) {
|
|
|
138
138
|
return matchRanges(text, queries).filter(inside);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
// <span slHighlight text="
|
|
141
|
+
// <span slHighlight text="Steel cable and network cables" query="cable" [matcher]="wholeWords"></span>
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
### The match a find bar is standing on
|
|
@@ -148,7 +148,7 @@ current names one match by index, counting matches only, and that mark takes the
|
|
|
148
148
|
Excerpt — not a complete module
|
|
149
149
|
|
|
150
150
|
```html
|
|
151
|
-
<span slHighlight [text]="clause" query="
|
|
151
|
+
<span slHighlight [text]="clause" query="supplier" [current]="current()"></span>
|
|
152
152
|
```
|
|
153
153
|
|
|
154
154
|
### Disabled, from the root or from the row above it
|
|
@@ -158,10 +158,10 @@ A disabled mark gives up the tone and keeps the rule, so the reader still sees w
|
|
|
158
158
|
Excerpt — not a complete module
|
|
159
159
|
|
|
160
160
|
```html
|
|
161
|
-
<span slHighlight text="Cloudberry
|
|
161
|
+
<span slHighlight text="Cloudberry Logistics" query="berr" disabled></span>
|
|
162
162
|
|
|
163
163
|
<div data-disabled>
|
|
164
|
-
<span slHighlight text="Gooseberry
|
|
164
|
+
<span slHighlight text="Gooseberry Transport" query="berr"></span>
|
|
165
165
|
</div>
|
|
166
166
|
```
|
|
167
167
|
|
|
@@ -189,9 +189,9 @@ A run that wraps is two boxes and both carry the band; a mark inside Arabic sits
|
|
|
189
189
|
Excerpt — not a complete module
|
|
190
190
|
|
|
191
191
|
```html
|
|
192
|
-
<span slHighlight text="
|
|
192
|
+
<span slHighlight text="Consolidated annual sales report" query="consolidated annual"></span>
|
|
193
193
|
<span slHighlight text="شركة النور للتجارة" query="النور"></span>
|
|
194
|
-
<span slHighlight text="🇧🇷
|
|
194
|
+
<span slHighlight text="🇧🇷 Brazil · Crème" [query]="['bra', 'e']"></span>
|
|
195
195
|
```
|
|
196
196
|
|
|
197
197
|
### What a reader hears
|
package/docs/icon.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"default",
|
|
19
19
|
"muted",
|
|
20
20
|
"accent",
|
|
21
|
+
"info",
|
|
21
22
|
"success",
|
|
22
23
|
"warning",
|
|
23
24
|
"danger",
|
|
@@ -58,10 +59,10 @@
|
|
|
58
59
|
},
|
|
59
60
|
{
|
|
60
61
|
"name": "tone",
|
|
61
|
-
"type": "'inherit' | 'default' | 'muted' | 'accent' | 'success' | 'warning' | 'danger' | 'inverse'",
|
|
62
|
+
"type": "'inherit' | 'default' | 'muted' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | 'inverse'",
|
|
62
63
|
"defaultValue": "inherit",
|
|
63
64
|
"appliesTo": "slIcon",
|
|
64
|
-
"description": "
|
|
65
|
+
"description": "Color; inherit takes the color of the text beside it"
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
68
|
"name": "directional",
|
|
@@ -100,7 +101,7 @@
|
|
|
100
101
|
"WAI-ARIA requires a label on role=\"img\" (§5.2.8 lists img among the roles for which a name is required), which is why the role appears only once a name exists.",
|
|
101
102
|
"An aria-label or aria-labelledby written on the element is read as a name, so the icon a consumer labelled directly keeps its label and stays in the tree.",
|
|
102
103
|
"The name says what the icon means, not what it draws: “Payment failed”, not “red triangle”. An icon that repeats adjacent text is decorative and stays out of the tree.",
|
|
103
|
-
"
|
|
104
|
+
"Color is inherited, so an icon works in forced colors without a rule of its own. Color alone never carries the state: the icon accompanies text, or it carries a name.",
|
|
104
105
|
"size=\"text\" is 1em, so it follows the type it sits in under page zoom and under a text-only resize alike. The sm, md and lg steps read the theme’s control geometry, which page zoom scales and a text-only resize does not; an application that needs the icon to follow text alone uses text, or retunes the density scale in rem.",
|
|
105
106
|
"The optical shift is computed from the cap height of the surrounding font and the size of the box, so an icon stays on the text’s optical line at every combination of the two rather than at the one ratio a constant would fit."
|
|
106
107
|
]
|
|
@@ -117,6 +118,7 @@
|
|
|
117
118
|
"--slotted-text-muted",
|
|
118
119
|
"--slotted-tone-accent-text",
|
|
119
120
|
"--slotted-tone-danger-text",
|
|
121
|
+
"--slotted-tone-info-text",
|
|
120
122
|
"--slotted-tone-success-text",
|
|
121
123
|
"--slotted-tone-warning-text"
|
|
122
124
|
],
|
package/docs/icon.md
CHANGED
|
@@ -18,7 +18,7 @@ Excerpt — not a complete module
|
|
|
18
18
|
| Name | Type | Default | Applies to | Description |
|
|
19
19
|
| --- | --- | --- | --- | --- |
|
|
20
20
|
| `size` | `'text' \| 'sm' \| 'md' \| 'lg'` | md | slIcon | Box size; sm, md and lg read the control icon scale, text follows the type |
|
|
21
|
-
| `tone` | `'inherit' \| 'default' \| 'muted' \| 'accent' \| 'success' \| 'warning' \| 'danger' \| 'inverse'` | inherit | slIcon |
|
|
21
|
+
| `tone` | `'inherit' \| 'default' \| 'muted' \| 'accent' \| 'info' \| 'success' \| 'warning' \| 'danger' \| 'inverse'` | inherit | slIcon | Color; inherit takes the color of the text beside it |
|
|
22
22
|
| `directional` | `boolean` | false | slIcon | The artwork points somewhere, so it mirrors in a right-to-left document |
|
|
23
23
|
| `label` | `string` | — | slIcon | The name the icon carries; absent, the icon leaves the accessibility tree |
|
|
24
24
|
| `content` | `projected` | — | slIcon | The glyph — an ng-icon, an svg, any artwork the consumer projects |
|
|
@@ -29,7 +29,7 @@ Excerpt — not a complete module
|
|
|
29
29
|
| Axis | Values | Default |
|
|
30
30
|
| --- | --- | --- |
|
|
31
31
|
| `size` | `text`, `sm`, `md`, `lg` | `md` |
|
|
32
|
-
| `tone` | `inherit`, `default`, `muted`, `accent`, `success`, `warning`, `danger`, `inverse` | `inherit` |
|
|
32
|
+
| `tone` | `inherit`, `default`, `muted`, `accent`, `info`, `success`, `warning`, `danger`, `inverse` | `inherit` |
|
|
33
33
|
|
|
34
34
|
## Rules
|
|
35
35
|
|
|
@@ -38,13 +38,13 @@ Excerpt — not a complete module
|
|
|
38
38
|
- WAI-ARIA requires a label on role="img" (§5.2.8 lists img among the roles for which a name is required), which is why the role appears only once a name exists.
|
|
39
39
|
- An aria-label or aria-labelledby written on the element is read as a name, so the icon a consumer labelled directly keeps its label and stays in the tree.
|
|
40
40
|
- The name says what the icon means, not what it draws: “Payment failed”, not “red triangle”. An icon that repeats adjacent text is decorative and stays out of the tree.
|
|
41
|
-
-
|
|
41
|
+
- Color is inherited, so an icon works in forced colors without a rule of its own. Color alone never carries the state: the icon accompanies text, or it carries a name.
|
|
42
42
|
- size="text" is 1em, so it follows the type it sits in under page zoom and under a text-only resize alike. The sm, md and lg steps read the theme’s control geometry, which page zoom scales and a text-only resize does not; an application that needs the icon to follow text alone uses text, or retunes the density scale in rem.
|
|
43
43
|
- The optical shift is computed from the cap height of the surrounding font and the size of the box, so an icon stays on the text’s optical line at every combination of the two rather than at the one ratio a constant would fit.
|
|
44
44
|
|
|
45
45
|
## Tokens
|
|
46
46
|
|
|
47
|
-
`--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-icon-baseline-shift`, `--slotted-icon-size`, `--slotted-text`, `--slotted-text-inverse`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`
|
|
47
|
+
`--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-icon-baseline-shift`, `--slotted-icon-size`, `--slotted-text`, `--slotted-text-inverse`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`
|
|
48
48
|
|
|
49
49
|
## Examples
|
|
50
50
|
|
package/docs/image.json
CHANGED
|
@@ -334,8 +334,8 @@
|
|
|
334
334
|
"There is no image pattern in the WAI-ARIA Authoring Practices; the applicable guidance is the W3C WAI alt decision tree, and the family follows it by writing the alt on its own img and leaving a projected img’s alone: an informative picture says what it shows, a decorative one says \"\" and is skipped, a functional one (a link, a button) says what it does.",
|
|
335
335
|
"The img is never taken out of the DOM. While the picture loads it is transparent over the ground; after it fails it takes no box and the fallback takes its place — but its alt is still the name a reader hears, so a broken thumbnail is announced as what it was meant to show.",
|
|
336
336
|
"The placeholder is aria-hidden and the blurred preview inside it has an empty alt: neither is content. The fallback is not hidden, because a consumer may put a retry button in it, and it is out of the flow until the picture fails so that button is neither focusable nor announced before then.",
|
|
337
|
-
"A picture is not a control and paints nothing at rest. The component attaches to an a or a button, and for exactly that case the family paints the focus ring outside the box and a 2px strong edge on hover —
|
|
338
|
-
"The picture crosses over the ground on --slotted-duration-short, which prefers-reduced-motion collapses to 1ms in the theme; nothing loops. Under forced
|
|
337
|
+
"A picture is not a control and paints nothing at rest. The component attaches to an a or a button, and for exactly that case the family paints the focus ring outside the box and a 2px strong edge on hover — color and geometry, not the photograph — and holds the hover back on a disabled button.",
|
|
338
|
+
"The picture crosses over the ground on --slotted-duration-short, which prefers-reduced-motion collapses to 1ms in the theme; nothing loops. Under forced colors the ground becomes Canvas, the edge ButtonBorder, and the glyph keeps currentColor; the photograph is left alone by the user agent’s own rule.",
|
|
339
339
|
"A caption belongs in a figcaption after the frame, and is not repeated in the alt; zoom and preview belong to Dialog, opened from a host that is a button."
|
|
340
340
|
]
|
|
341
341
|
}
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
{
|
|
404
404
|
"id": "position",
|
|
405
405
|
"title": "The focal point a crop keeps",
|
|
406
|
-
"note": "A wide picture in a square frame keeps its start, its
|
|
406
|
+
"note": "A wide picture in a square frame keeps its start, its center or its end; a portrait in a 16:9 frame keeps its top or its bottom; a CMS focal point is any object-position value. Switch the toolbar to rtl and start and end swap sides, which object-position alone does not do.",
|
|
407
407
|
"language": "html",
|
|
408
408
|
"source": "<div slImage alt=\"…\" position=\"start\" ratio=\"square\" [src]=\"site.wide\"></div>\n<div slImage alt=\"…\" position=\"top\" ratio=\"video\" [src]=\"site.portrait\"></div>\n<div slImage alt=\"…\" position=\"30% 20%\" ratio=\"video\" [src]=\"site.portrait\"></div>\n",
|
|
409
409
|
"verdict": "excerpt"
|
package/docs/image.md
CHANGED
|
@@ -85,8 +85,8 @@ Excerpt — not a complete module
|
|
|
85
85
|
- There is no image pattern in the WAI-ARIA Authoring Practices; the applicable guidance is the W3C WAI alt decision tree, and the family follows it by writing the alt on its own img and leaving a projected img’s alone: an informative picture says what it shows, a decorative one says "" and is skipped, a functional one (a link, a button) says what it does.
|
|
86
86
|
- The img is never taken out of the DOM. While the picture loads it is transparent over the ground; after it fails it takes no box and the fallback takes its place — but its alt is still the name a reader hears, so a broken thumbnail is announced as what it was meant to show.
|
|
87
87
|
- The placeholder is aria-hidden and the blurred preview inside it has an empty alt: neither is content. The fallback is not hidden, because a consumer may put a retry button in it, and it is out of the flow until the picture fails so that button is neither focusable nor announced before then.
|
|
88
|
-
- A picture is not a control and paints nothing at rest. The component attaches to an a or a button, and for exactly that case the family paints the focus ring outside the box and a 2px strong edge on hover —
|
|
89
|
-
- The picture crosses over the ground on --slotted-duration-short, which prefers-reduced-motion collapses to 1ms in the theme; nothing loops. Under forced
|
|
88
|
+
- A picture is not a control and paints nothing at rest. The component attaches to an a or a button, and for exactly that case the family paints the focus ring outside the box and a 2px strong edge on hover — color and geometry, not the photograph — and holds the hover back on a disabled button.
|
|
89
|
+
- The picture crosses over the ground on --slotted-duration-short, which prefers-reduced-motion collapses to 1ms in the theme; nothing loops. Under forced colors the ground becomes Canvas, the edge ButtonBorder, and the glyph keeps currentColor; the photograph is left alone by the user agent’s own rule.
|
|
90
90
|
- A caption belongs in a figcaption after the frame, and is not repeated in the alt; zoom and preview belong to Dialog, opened from a host that is a button.
|
|
91
91
|
|
|
92
92
|
## Tokens
|
|
@@ -131,7 +131,7 @@ Excerpt — not a complete module
|
|
|
131
131
|
|
|
132
132
|
### The focal point a crop keeps
|
|
133
133
|
|
|
134
|
-
A wide picture in a square frame keeps its start, its
|
|
134
|
+
A wide picture in a square frame keeps its start, its center or its end; a portrait in a 16:9 frame keeps its top or its bottom; a CMS focal point is any object-position value. Switch the toolbar to rtl and start and end swap sides, which object-position alone does not do.
|
|
135
135
|
|
|
136
136
|
Excerpt — not a complete module
|
|
137
137
|
|