@slotted/angular 0.1.0-beta.3 → 0.1.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/AGENTS.snippet.md +3 -1
- package/docs/accordion.json +5 -5
- package/docs/accordion.md +12 -12
- package/docs/action-bar.json +23 -22
- package/docs/action-bar.md +30 -30
- package/docs/action-sheet.json +391 -64
- package/docs/action-sheet.md +259 -0
- package/docs/alert.json +31 -14
- package/docs/alert.md +29 -18
- package/docs/app-shell.examples.md +8 -8
- package/docs/app-shell.json +38 -21
- package/docs/app-shell.md +9 -7
- package/docs/avatar-group.json +1 -1
- package/docs/avatar-group.md +1 -1
- package/docs/avatar.json +32 -11
- package/docs/avatar.md +13 -11
- package/docs/badge.json +10 -4
- package/docs/badge.md +5 -5
- package/docs/breadcrumb.json +2 -2
- package/docs/breadcrumb.md +2 -2
- package/docs/button-group.json +2 -1
- package/docs/button-group.md +2 -2
- package/docs/button.examples.md +15 -0
- package/docs/button.json +134 -14
- package/docs/button.md +32 -8
- package/docs/calendar.json +31 -6
- package/docs/calendar.md +9 -6
- package/docs/card.json +3 -2
- package/docs/card.md +3 -3
- package/docs/carousel.json +10 -10
- package/docs/carousel.md +11 -11
- package/docs/cascader.json +2 -0
- package/docs/cascader.md +1 -1
- package/docs/chart.examples.md +45 -31
- package/docs/chart.json +40 -35
- package/docs/chart.md +7 -7
- package/docs/checkbox-group.examples.md +13 -13
- package/docs/checkbox-group.json +7 -7
- package/docs/checkbox-group.md +2 -2
- package/docs/checkbox.examples.md +7 -7
- package/docs/checkbox.json +6 -6
- package/docs/checkbox.md +3 -3
- package/docs/code-block.json +93 -93
- package/docs/code-block.md +70 -70
- package/docs/collapsible.json +12 -11
- package/docs/collapsible.md +20 -20
- package/docs/color-picker.json +26 -26
- package/docs/color-picker.md +16 -16
- package/docs/combobox.json +6 -2
- package/docs/combobox.md +3 -3
- package/docs/command-palette.json +2 -0
- package/docs/command-palette.md +1 -1
- package/docs/context-menu.json +1 -1
- package/docs/context-menu.md +1 -1
- package/docs/currency-field.examples.md +3 -3
- package/docs/currency-field.json +14 -6
- package/docs/currency-field.md +6 -5
- package/docs/dashboard-grid.json +53 -10
- package/docs/dashboard-grid.md +18 -6
- package/docs/data-grid.examples.md +3 -3
- package/docs/data-grid.json +37 -11
- package/docs/data-grid.md +2 -1
- package/docs/data-grid.props.md +7 -5
- package/docs/data-list.json +2 -1
- package/docs/data-list.md +1 -1
- package/docs/date-field.json +12 -4
- package/docs/date-field.md +8 -7
- package/docs/date-picker.examples.md +36 -0
- package/docs/date-picker.json +32 -5
- package/docs/date-picker.md +7 -5
- package/docs/date-range-picker.json +11 -0
- package/docs/date-range-picker.md +2 -1
- package/docs/datetime-field.json +5 -4
- package/docs/datetime-field.md +10 -10
- package/docs/datetime-picker.json +11 -1
- package/docs/datetime-picker.md +2 -1
- package/docs/datetime-range-picker.examples.md +3 -3
- package/docs/datetime-range-picker.json +14 -3
- package/docs/datetime-range-picker.md +4 -3
- package/docs/description-list.json +16 -7
- package/docs/description-list.md +8 -7
- package/docs/detail-panel.json +14 -12
- package/docs/detail-panel.md +20 -15
- package/docs/dialog.examples.md +143 -141
- package/docs/dialog.json +58 -24
- package/docs/dialog.md +6 -4
- package/docs/dialog.props.md +9 -7
- package/docs/drawer.examples.md +14 -14
- package/docs/drawer.json +44 -17
- package/docs/drawer.md +10 -8
- package/docs/entity-picker.json +22 -4
- package/docs/entity-picker.md +8 -6
- package/docs/event-calendar.examples.md +3 -3
- package/docs/event-calendar.json +5 -5
- package/docs/event-calendar.md +4 -4
- package/docs/field-group.json +21 -6
- package/docs/field-group.md +14 -12
- package/docs/field.examples.md +3 -3
- package/docs/field.json +20 -5
- package/docs/field.md +4 -2
- package/docs/filter-bar.json +118 -118
- package/docs/filter-bar.md +79 -79
- package/docs/form.json +24 -12
- package/docs/form.md +15 -13
- package/docs/fullscreen.json +4 -4
- package/docs/fullscreen.md +7 -7
- package/docs/guidelines/README.md +2 -2
- package/docs/guidelines/async-feedback.md +25 -4
- package/docs/guidelines/builders.md +1 -1
- package/docs/guidelines/composition.md +37 -11
- package/docs/guidelines/conversations.md +1 -1
- package/docs/guidelines/errors-and-conflicts.md +7 -6
- package/docs/guidelines/forms.md +111 -1
- package/docs/guidelines/index.md +27 -7
- package/docs/guidelines/layout-alignment.md +24 -14
- package/docs/guidelines/list-pages.md +44 -3
- package/docs/guidelines/overviews.md +39 -9
- package/docs/guidelines/own-elements.md +8 -8
- package/docs/guidelines/reading-permissions.md +2 -2
- package/docs/guidelines/record-pages.md +1 -1
- package/docs/guidelines/reports.md +1 -1
- package/docs/highlight.json +9 -9
- package/docs/highlight.md +14 -14
- package/docs/icon.json +5 -3
- package/docs/icon.md +4 -4
- package/docs/image.json +3 -3
- package/docs/image.md +3 -3
- package/docs/import-export-center.json +24 -23
- package/docs/import-export-center.md +18 -18
- package/docs/index.md +3 -2
- package/docs/inline-message.json +34 -21
- package/docs/inline-message.md +32 -30
- package/docs/inline.json +1 -1
- package/docs/inline.md +1 -1
- package/docs/kbd.json +5 -2
- package/docs/kbd.md +3 -3
- package/docs/link.json +22 -6
- package/docs/link.md +9 -7
- package/docs/list-item.json +20 -4
- package/docs/list-item.md +20 -17
- package/docs/list.examples.md +907 -0
- package/docs/list.json +121 -33
- package/docs/list.md +73 -137
- package/docs/listbox.json +1 -2
- package/docs/listbox.md +2 -2
- package/docs/loading-overlay.json +3 -3
- package/docs/loading-overlay.md +3 -3
- package/docs/markdown.json +86 -79
- package/docs/markdown.md +66 -65
- package/docs/media-viewer.json +521 -0
- package/docs/media-viewer.md +188 -0
- package/docs/menu.json +15 -1
- package/docs/menu.md +3 -1
- package/docs/message-scroller.json +2 -2
- package/docs/message-scroller.md +1 -1
- package/docs/message.json +18 -12
- package/docs/message.md +20 -20
- package/docs/multi-select.json +4 -1
- package/docs/multi-select.md +1 -1
- package/docs/navigation-menu.json +1 -0
- package/docs/navigation-menu.md +1 -1
- package/docs/notification-center.json +21 -16
- package/docs/notification-center.md +20 -24
- package/docs/number-field.examples.md +3 -3
- package/docs/number-field.json +4 -3
- package/docs/number-field.md +1 -1
- package/docs/otp-input.json +11 -10
- package/docs/otp-input.md +14 -14
- package/docs/page-header.json +31 -14
- package/docs/page-header.md +25 -25
- package/docs/page.json +4 -2
- package/docs/page.md +3 -2
- package/docs/pagination.json +2 -2
- package/docs/pagination.md +1 -1
- package/docs/popover.examples.md +1 -1
- package/docs/popover.json +5 -3
- package/docs/popover.md +2 -2
- package/docs/progress-indicator.json +7 -5
- package/docs/progress-indicator.md +7 -7
- package/docs/prompt-composer.json +53 -6
- package/docs/prompt-composer.md +12 -6
- package/docs/prose.json +1 -1
- package/docs/prose.md +1 -1
- package/docs/radio-group.examples.md +19 -19
- package/docs/radio-group.json +12 -12
- package/docs/radio-group.md +3 -3
- package/docs/rating.json +28 -26
- package/docs/rating.md +28 -37
- package/docs/result-state.json +13 -12
- package/docs/result-state.md +18 -18
- package/docs/saved-views.json +1 -1
- package/docs/scroll-area.json +266 -64
- package/docs/scroll-area.md +188 -0
- package/docs/section.json +44 -22
- package/docs/section.md +34 -31
- package/docs/segmented-control.json +21 -25
- package/docs/segmented-control.md +33 -33
- package/docs/select.json +4 -0
- package/docs/select.md +1 -1
- package/docs/side-navigation.json +1 -0
- package/docs/side-navigation.md +1 -1
- package/docs/skeleton.json +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/skills/build-own-element/SKILL.md +9 -9
- package/docs/skills/compose-screen/SKILL.md +59 -18
- package/docs/skills/index.md +2 -2
- package/docs/skills/review-screen/SKILL.md +29 -17
- package/docs/skills/theme-app/SKILL.md +66 -20
- package/docs/skills/waiting-states/SKILL.md +15 -11
- package/docs/slider.json +8 -8
- package/docs/slider.md +12 -12
- package/docs/sparkline.json +12 -9
- package/docs/sparkline.md +9 -9
- package/docs/split-button.json +14 -12
- package/docs/split-button.md +28 -30
- package/docs/splitter.json +279 -64
- package/docs/splitter.md +215 -0
- package/docs/stack.json +1 -1
- package/docs/stack.md +1 -1
- package/docs/stat-card.json +36 -9
- package/docs/stat-card.md +11 -8
- package/docs/status-indicator.json +22 -11
- package/docs/status-indicator.md +8 -6
- package/docs/stepper.json +4 -4
- package/docs/stepper.md +4 -4
- package/docs/switch.json +5 -5
- package/docs/switch.md +7 -7
- package/docs/table-of-contents.json +13 -12
- package/docs/table-of-contents.md +14 -14
- package/docs/table.examples.md +3 -3
- package/docs/table.json +17 -3
- package/docs/table.md +3 -1
- package/docs/tabs.json +16 -3
- package/docs/tabs.md +3 -2
- package/docs/tag.json +38 -26
- package/docs/tag.md +17 -17
- package/docs/tags-input.json +30 -3
- package/docs/tags-input.md +5 -2
- package/docs/text-field.examples.md +6 -6
- package/docs/text-field.json +6 -5
- package/docs/text-field.md +2 -2
- package/docs/textarea.examples.md +7 -7
- package/docs/textarea.json +4 -3
- package/docs/textarea.md +1 -1
- package/docs/time-field.json +4 -3
- package/docs/time-field.md +7 -7
- package/docs/time-picker.json +15 -5
- package/docs/time-picker.md +8 -7
- package/docs/time-range-picker.examples.md +5 -5
- package/docs/time-range-picker.json +15 -4
- package/docs/time-range-picker.md +3 -2
- package/docs/timeline.json +138 -132
- package/docs/timeline.md +125 -125
- package/docs/toast.json +15 -7
- package/docs/toast.md +8 -8
- package/docs/toggle-group.json +12 -12
- package/docs/toggle-group.md +28 -28
- package/docs/toggle.json +8 -8
- package/docs/toggle.md +7 -7
- package/docs/tokens.md +53 -26
- package/docs/toolbar.json +11 -11
- package/docs/toolbar.md +23 -23
- package/docs/tooltip.json +4 -3
- package/docs/tooltip.md +4 -4
- package/docs/top-navigation.examples.md +11 -15
- package/docs/top-navigation.json +9 -9
- package/docs/top-navigation.md +7 -7
- package/docs/tour.json +10 -9
- package/docs/tour.md +7 -7
- package/docs/typography.json +6 -4
- package/docs/typography.md +5 -5
- package/docs/upload.examples.md +3 -3
- package/docs/upload.json +9 -9
- package/docs/upload.md +4 -4
- package/fesm2022/slotted-angular-accordion.mjs +4 -2
- package/fesm2022/slotted-angular-accordion.mjs.map +1 -1
- package/fesm2022/slotted-angular-action-bar.mjs +27 -12
- package/fesm2022/slotted-angular-action-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-action-sheet.mjs +48 -29
- package/fesm2022/slotted-angular-action-sheet.mjs.map +1 -1
- package/fesm2022/slotted-angular-alert.mjs +56 -18
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-app-shell.mjs +85 -56
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
- package/fesm2022/slotted-angular-aspect-ratio.mjs +4 -2
- package/fesm2022/slotted-angular-aspect-ratio.mjs.map +1 -1
- package/fesm2022/slotted-angular-attachment.mjs +33 -22
- package/fesm2022/slotted-angular-attachment.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar-group.mjs +13 -10
- package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +17 -10
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +15 -11
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs +27 -19
- package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/slotted-angular-button-group.mjs +8 -5
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +163 -28
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-calendar.mjs +263 -65
- package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +19 -17
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-carousel.mjs +22 -11
- package/fesm2022/slotted-angular-carousel.mjs.map +1 -1
- package/fesm2022/slotted-angular-cascader.mjs +179 -65
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +26 -5
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox-group.mjs +5 -3
- package/fesm2022/slotted-angular-checkbox-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +14 -9
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-code-block.mjs +30 -16
- package/fesm2022/slotted-angular-code-block.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +21 -16
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-color-picker.mjs +83 -28
- package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +71 -32
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-combobox.mjs +108 -35
- package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
- package/fesm2022/slotted-angular-command-palette.mjs +162 -54
- package/fesm2022/slotted-angular-command-palette.mjs.map +1 -1
- package/fesm2022/slotted-angular-container.mjs +6 -4
- package/fesm2022/slotted-angular-container.mjs.map +1 -1
- package/fesm2022/slotted-angular-context-menu.mjs +5 -4
- package/fesm2022/slotted-angular-context-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-currency-field.mjs +100 -34
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +384 -88
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +461 -129
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-list.mjs +83 -50
- package/fesm2022/slotted-angular-data-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-field.mjs +78 -27
- package/fesm2022/slotted-angular-date-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs +135 -40
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs +68 -22
- package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs +49 -17
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs +64 -29
- package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +144 -54
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +47 -24
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-detail-panel.mjs +48 -30
- package/fesm2022/slotted-angular-detail-panel.mjs.map +1 -1
- package/fesm2022/slotted-angular-dialog.mjs +81 -39
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
- package/fesm2022/slotted-angular-divider.mjs +7 -5
- package/fesm2022/slotted-angular-divider.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +236 -105
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-entity-picker.mjs +474 -75
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-event-calendar.mjs +262 -105
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-field-group.mjs +30 -9
- package/fesm2022/slotted-angular-field-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-field.mjs +49 -18
- package/fesm2022/slotted-angular-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-filter-bar.mjs +111 -44
- package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-form.mjs +48 -17
- package/fesm2022/slotted-angular-form.mjs.map +1 -1
- package/fesm2022/slotted-angular-fullscreen.mjs +14 -8
- package/fesm2022/slotted-angular-fullscreen.mjs.map +1 -1
- package/fesm2022/slotted-angular-grid.mjs +6 -4
- package/fesm2022/slotted-angular-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-highlight.mjs +6 -4
- package/fesm2022/slotted-angular-highlight.mjs.map +1 -1
- package/fesm2022/slotted-angular-hover-card.mjs +5 -4
- package/fesm2022/slotted-angular-hover-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-icon.mjs +191 -90
- package/fesm2022/slotted-angular-icon.mjs.map +1 -1
- package/fesm2022/slotted-angular-image.mjs +13 -10
- package/fesm2022/slotted-angular-image.mjs.map +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs +185 -109
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +98 -23
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline.mjs +7 -5
- package/fesm2022/slotted-angular-inline.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs +11 -7
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-link.mjs +13 -4
- package/fesm2022/slotted-angular-link.mjs.map +1 -1
- package/fesm2022/slotted-angular-list-item.mjs +63 -23
- package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +15 -11
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +41 -23
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +62 -25
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
- package/fesm2022/slotted-angular-markdown.mjs +57 -31
- package/fesm2022/slotted-angular-markdown.mjs.map +1 -1
- package/fesm2022/slotted-angular-media-viewer.mjs +962 -0
- package/fesm2022/slotted-angular-media-viewer.mjs.map +1 -0
- package/fesm2022/slotted-angular-menu.mjs +62 -39
- package/fesm2022/slotted-angular-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-menubar.mjs +6 -3
- package/fesm2022/slotted-angular-menubar.mjs.map +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs +35 -16
- package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -1
- package/fesm2022/slotted-angular-message.mjs +119 -51
- package/fesm2022/slotted-angular-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-multi-select.mjs +163 -60
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-navigation-menu.mjs +34 -26
- package/fesm2022/slotted-angular-navigation-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +111 -68
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-number-field.mjs +24 -12
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs +14 -9
- package/fesm2022/slotted-angular-otp-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-page-header.mjs +90 -48
- package/fesm2022/slotted-angular-page-header.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +60 -12
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-pagination.mjs +35 -22
- package/fesm2022/slotted-angular-pagination.mjs.map +1 -1
- package/fesm2022/slotted-angular-popover.mjs +34 -21
- package/fesm2022/slotted-angular-popover.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +238 -54
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-prompt-composer.mjs +132 -22
- package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -1
- package/fesm2022/slotted-angular-prose.mjs +14 -11
- package/fesm2022/slotted-angular-prose.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +17 -11
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +143 -87
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-result-state.mjs +16 -12
- package/fesm2022/slotted-angular-result-state.mjs.map +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs +43 -16
- package/fesm2022/slotted-angular-saved-views.mjs.map +1 -1
- package/fesm2022/slotted-angular-scroll-area.mjs +13 -5
- package/fesm2022/slotted-angular-scroll-area.mjs.map +1 -1
- package/fesm2022/slotted-angular-section.mjs +81 -19
- package/fesm2022/slotted-angular-section.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +16 -10
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-select.mjs +189 -69
- package/fesm2022/slotted-angular-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-side-navigation.mjs +46 -35
- package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-skeleton.mjs +32 -16
- package/fesm2022/slotted-angular-skeleton.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +34 -14
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-sparkline.mjs +41 -14
- package/fesm2022/slotted-angular-sparkline.mjs.map +1 -1
- package/fesm2022/slotted-angular-split-button.mjs +37 -11
- package/fesm2022/slotted-angular-split-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-splitter.mjs +11 -9
- package/fesm2022/slotted-angular-splitter.mjs.map +1 -1
- package/fesm2022/slotted-angular-stack.mjs +6 -4
- package/fesm2022/slotted-angular-stack.mjs.map +1 -1
- package/fesm2022/slotted-angular-stat-card.mjs +120 -41
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +51 -20
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-stepper.mjs +40 -15
- package/fesm2022/slotted-angular-stepper.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs +15 -10
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table-of-contents.mjs +29 -21
- package/fesm2022/slotted-angular-table-of-contents.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +162 -79
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tabs.mjs +42 -18
- package/fesm2022/slotted-angular-tabs.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +20 -13
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +254 -29
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-text-field.mjs +55 -15
- package/fesm2022/slotted-angular-text-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-textarea.mjs +5 -3
- package/fesm2022/slotted-angular-textarea.mjs.map +1 -1
- package/fesm2022/slotted-angular-theme.mjs +6 -3
- package/fesm2022/slotted-angular-theme.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-field.mjs +48 -14
- package/fesm2022/slotted-angular-time-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-picker.mjs +55 -20
- package/fesm2022/slotted-angular-time-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-range-picker.mjs +142 -52
- package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-timeline.mjs +147 -64
- package/fesm2022/slotted-angular-timeline.mjs.map +1 -1
- package/fesm2022/slotted-angular-toast.mjs +50 -38
- package/fesm2022/slotted-angular-toast.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle-group.mjs +10 -6
- package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle.mjs +9 -4
- package/fesm2022/slotted-angular-toggle.mjs.map +1 -1
- package/fesm2022/slotted-angular-toolbar.mjs +27 -12
- package/fesm2022/slotted-angular-toolbar.mjs.map +1 -1
- package/fesm2022/slotted-angular-tooltip.mjs +15 -6
- package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
- package/fesm2022/slotted-angular-top-navigation.mjs +64 -44
- package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +49 -24
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-transfer.mjs +69 -30
- package/fesm2022/slotted-angular-transfer.mjs.map +1 -1
- package/fesm2022/slotted-angular-tree.mjs +80 -26
- package/fesm2022/slotted-angular-tree.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +9 -5
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +127 -59
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/fesm2022/slotted-angular-visually-hidden.mjs +4 -2
- package/fesm2022/slotted-angular-visually-hidden.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +169 -71
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +19 -3
- package/types/slotted-angular-accordion.d.ts.map +1 -1
- package/types/slotted-angular-action-bar.d.ts +2 -0
- package/types/slotted-angular-action-bar.d.ts.map +1 -1
- package/types/slotted-angular-action-sheet.d.ts.map +1 -1
- package/types/slotted-angular-alert.d.ts +17 -8
- package/types/slotted-angular-alert.d.ts.map +1 -1
- package/types/slotted-angular-app-shell.d.ts +10 -8
- package/types/slotted-angular-app-shell.d.ts.map +1 -1
- package/types/slotted-angular-aspect-ratio.d.ts.map +1 -1
- package/types/slotted-angular-attachment.d.ts +2 -1
- package/types/slotted-angular-attachment.d.ts.map +1 -1
- package/types/slotted-angular-avatar-group.d.ts +3 -3
- package/types/slotted-angular-avatar-group.d.ts.map +1 -1
- package/types/slotted-angular-avatar.d.ts +17 -9
- package/types/slotted-angular-avatar.d.ts.map +1 -1
- package/types/slotted-angular-badge.d.ts +4 -4
- package/types/slotted-angular-badge.d.ts.map +1 -1
- package/types/slotted-angular-breadcrumb.d.ts +1 -1
- package/types/slotted-angular-breadcrumb.d.ts.map +1 -1
- package/types/slotted-angular-button-group.d.ts +2 -2
- package/types/slotted-angular-button-group.d.ts.map +1 -1
- package/types/slotted-angular-button.d.ts +45 -12
- package/types/slotted-angular-button.d.ts.map +1 -1
- package/types/slotted-angular-calendar.d.ts +43 -2
- package/types/slotted-angular-calendar.d.ts.map +1 -1
- package/types/slotted-angular-card.d.ts +1 -1
- package/types/slotted-angular-card.d.ts.map +1 -1
- package/types/slotted-angular-carousel.d.ts.map +1 -1
- package/types/slotted-angular-cascader.d.ts.map +1 -1
- package/types/slotted-angular-chart.d.ts +14 -11
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-checkbox-group.d.ts.map +1 -1
- package/types/slotted-angular-checkbox.d.ts +1 -1
- package/types/slotted-angular-checkbox.d.ts.map +1 -1
- package/types/slotted-angular-code-block.d.ts +3 -2
- package/types/slotted-angular-code-block.d.ts.map +1 -1
- package/types/slotted-angular-collapsible.d.ts +3 -2
- package/types/slotted-angular-collapsible.d.ts.map +1 -1
- package/types/slotted-angular-color-picker.d.ts +6 -6
- package/types/slotted-angular-color-picker.d.ts.map +1 -1
- package/types/slotted-angular-column-manager.d.ts +1 -1
- package/types/slotted-angular-column-manager.d.ts.map +1 -1
- package/types/slotted-angular-combobox.d.ts +6 -1
- package/types/slotted-angular-combobox.d.ts.map +1 -1
- package/types/slotted-angular-command-palette.d.ts +10 -1
- package/types/slotted-angular-command-palette.d.ts.map +1 -1
- package/types/slotted-angular-container.d.ts.map +1 -1
- package/types/slotted-angular-context-menu.d.ts.map +1 -1
- package/types/slotted-angular-currency-field.d.ts +40 -14
- package/types/slotted-angular-currency-field.d.ts.map +1 -1
- package/types/slotted-angular-dashboard-grid.d.ts +65 -7
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-grid.d.ts +63 -5
- package/types/slotted-angular-data-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-list.d.ts.map +1 -1
- package/types/slotted-angular-date-field.d.ts +12 -1
- package/types/slotted-angular-date-field.d.ts.map +1 -1
- package/types/slotted-angular-date-picker.d.ts +39 -12
- package/types/slotted-angular-date-picker.d.ts.map +1 -1
- package/types/slotted-angular-date-range-picker.d.ts +1 -1
- package/types/slotted-angular-date-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-datetime-field.d.ts.map +1 -1
- package/types/slotted-angular-datetime-picker.d.ts +1 -1
- package/types/slotted-angular-datetime-picker.d.ts.map +1 -1
- package/types/slotted-angular-datetime-range-picker.d.ts +2 -2
- package/types/slotted-angular-datetime-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-description-list.d.ts +12 -4
- package/types/slotted-angular-description-list.d.ts.map +1 -1
- package/types/slotted-angular-detail-panel.d.ts.map +1 -1
- package/types/slotted-angular-dialog.d.ts +11 -3
- package/types/slotted-angular-dialog.d.ts.map +1 -1
- package/types/slotted-angular-divider.d.ts.map +1 -1
- package/types/slotted-angular-drawer.d.ts +29 -3
- package/types/slotted-angular-drawer.d.ts.map +1 -1
- package/types/slotted-angular-entity-picker.d.ts +63 -15
- package/types/slotted-angular-entity-picker.d.ts.map +1 -1
- package/types/slotted-angular-event-calendar.d.ts.map +1 -1
- package/types/slotted-angular-field-group.d.ts +10 -2
- package/types/slotted-angular-field-group.d.ts.map +1 -1
- package/types/slotted-angular-field.d.ts +12 -4
- package/types/slotted-angular-field.d.ts.map +1 -1
- package/types/slotted-angular-filter-bar.d.ts.map +1 -1
- package/types/slotted-angular-form.d.ts +11 -2
- package/types/slotted-angular-form.d.ts.map +1 -1
- package/types/slotted-angular-fullscreen.d.ts.map +1 -1
- package/types/slotted-angular-grid.d.ts.map +1 -1
- package/types/slotted-angular-highlight.d.ts +1 -1
- package/types/slotted-angular-highlight.d.ts.map +1 -1
- package/types/slotted-angular-hover-card.d.ts.map +1 -1
- package/types/slotted-angular-icon.d.ts +15 -5
- package/types/slotted-angular-icon.d.ts.map +1 -1
- package/types/slotted-angular-image.d.ts.map +1 -1
- package/types/slotted-angular-import-export-center.d.ts +9 -9
- package/types/slotted-angular-import-export-center.d.ts.map +1 -1
- package/types/slotted-angular-inline-message.d.ts +32 -31
- package/types/slotted-angular-inline-message.d.ts.map +1 -1
- package/types/slotted-angular-inline.d.ts +1 -1
- package/types/slotted-angular-inline.d.ts.map +1 -1
- package/types/slotted-angular-kbd.d.ts +1 -1
- package/types/slotted-angular-kbd.d.ts.map +1 -1
- package/types/slotted-angular-link.d.ts +8 -2
- package/types/slotted-angular-link.d.ts.map +1 -1
- package/types/slotted-angular-list-item.d.ts +5 -1
- package/types/slotted-angular-list-item.d.ts.map +1 -1
- package/types/slotted-angular-list.d.ts +1 -1
- package/types/slotted-angular-list.d.ts.map +1 -1
- package/types/slotted-angular-listbox.d.ts +2 -2
- package/types/slotted-angular-listbox.d.ts.map +1 -1
- package/types/slotted-angular-loading-overlay.d.ts +3 -3
- package/types/slotted-angular-loading-overlay.d.ts.map +1 -1
- package/types/slotted-angular-markdown.d.ts +6 -1
- package/types/slotted-angular-markdown.d.ts.map +1 -1
- package/types/slotted-angular-media-viewer.d.ts +140 -0
- package/types/slotted-angular-media-viewer.d.ts.map +1 -0
- package/types/slotted-angular-menu.d.ts +17 -3
- package/types/slotted-angular-menu.d.ts.map +1 -1
- package/types/slotted-angular-menubar.d.ts +5 -4
- package/types/slotted-angular-menubar.d.ts.map +1 -1
- package/types/slotted-angular-message-scroller.d.ts +1 -1
- package/types/slotted-angular-message-scroller.d.ts.map +1 -1
- package/types/slotted-angular-message.d.ts +1 -1
- package/types/slotted-angular-message.d.ts.map +1 -1
- package/types/slotted-angular-multi-select.d.ts +6 -1
- package/types/slotted-angular-multi-select.d.ts.map +1 -1
- package/types/slotted-angular-navigation-menu.d.ts.map +1 -1
- package/types/slotted-angular-notification-center.d.ts +5 -5
- package/types/slotted-angular-notification-center.d.ts.map +1 -1
- package/types/slotted-angular-number-field.d.ts.map +1 -1
- package/types/slotted-angular-otp-input.d.ts +1 -1
- package/types/slotted-angular-otp-input.d.ts.map +1 -1
- package/types/slotted-angular-page-header.d.ts +15 -6
- package/types/slotted-angular-page-header.d.ts.map +1 -1
- package/types/slotted-angular-page.d.ts +7 -1
- package/types/slotted-angular-page.d.ts.map +1 -1
- package/types/slotted-angular-pagination.d.ts.map +1 -1
- package/types/slotted-angular-popover.d.ts.map +1 -1
- package/types/slotted-angular-progress-indicator.d.ts +10 -3
- package/types/slotted-angular-progress-indicator.d.ts.map +1 -1
- package/types/slotted-angular-prompt-composer.d.ts +35 -3
- package/types/slotted-angular-prompt-composer.d.ts.map +1 -1
- package/types/slotted-angular-prose.d.ts.map +1 -1
- package/types/slotted-angular-radio-group.d.ts +2 -2
- package/types/slotted-angular-radio-group.d.ts.map +1 -1
- package/types/slotted-angular-rating.d.ts +3 -3
- package/types/slotted-angular-rating.d.ts.map +1 -1
- package/types/slotted-angular-result-state.d.ts +1 -1
- package/types/slotted-angular-result-state.d.ts.map +1 -1
- package/types/slotted-angular-saved-views.d.ts.map +1 -1
- package/types/slotted-angular-scroll-area.d.ts.map +1 -1
- package/types/slotted-angular-section.d.ts +14 -4
- package/types/slotted-angular-section.d.ts.map +1 -1
- package/types/slotted-angular-segmented-control.d.ts +2 -2
- package/types/slotted-angular-segmented-control.d.ts.map +1 -1
- package/types/slotted-angular-select.d.ts +13 -2
- package/types/slotted-angular-select.d.ts.map +1 -1
- package/types/slotted-angular-side-navigation.d.ts.map +1 -1
- package/types/slotted-angular-skeleton.d.ts.map +1 -1
- package/types/slotted-angular-slider.d.ts.map +1 -1
- package/types/slotted-angular-sparkline.d.ts +7 -1
- package/types/slotted-angular-sparkline.d.ts.map +1 -1
- package/types/slotted-angular-split-button.d.ts +2 -2
- package/types/slotted-angular-split-button.d.ts.map +1 -1
- package/types/slotted-angular-splitter.d.ts.map +1 -1
- package/types/slotted-angular-stack.d.ts.map +1 -1
- package/types/slotted-angular-stat-card.d.ts +31 -7
- package/types/slotted-angular-stat-card.d.ts.map +1 -1
- package/types/slotted-angular-status-indicator.d.ts +15 -5
- package/types/slotted-angular-status-indicator.d.ts.map +1 -1
- package/types/slotted-angular-stepper.d.ts +2 -1
- package/types/slotted-angular-stepper.d.ts.map +1 -1
- package/types/slotted-angular-switch.d.ts +1 -1
- package/types/slotted-angular-switch.d.ts.map +1 -1
- package/types/slotted-angular-table-of-contents.d.ts.map +1 -1
- package/types/slotted-angular-table.d.ts +21 -4
- package/types/slotted-angular-table.d.ts.map +1 -1
- package/types/slotted-angular-tabs.d.ts +4 -5
- package/types/slotted-angular-tabs.d.ts.map +1 -1
- package/types/slotted-angular-tag.d.ts +5 -5
- package/types/slotted-angular-tag.d.ts.map +1 -1
- package/types/slotted-angular-tags-input.d.ts +34 -2
- package/types/slotted-angular-tags-input.d.ts.map +1 -1
- package/types/slotted-angular-text-field.d.ts.map +1 -1
- package/types/slotted-angular-textarea.d.ts.map +1 -1
- package/types/slotted-angular-theme.d.ts +8 -6
- package/types/slotted-angular-theme.d.ts.map +1 -1
- package/types/slotted-angular-time-field.d.ts.map +1 -1
- package/types/slotted-angular-time-picker.d.ts +1 -1
- package/types/slotted-angular-time-picker.d.ts.map +1 -1
- package/types/slotted-angular-time-range-picker.d.ts +2 -2
- package/types/slotted-angular-time-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-timeline.d.ts +1 -1
- package/types/slotted-angular-timeline.d.ts.map +1 -1
- package/types/slotted-angular-toast.d.ts +9 -7
- package/types/slotted-angular-toast.d.ts.map +1 -1
- package/types/slotted-angular-toggle-group.d.ts +1 -1
- package/types/slotted-angular-toggle-group.d.ts.map +1 -1
- package/types/slotted-angular-toggle.d.ts +1 -1
- package/types/slotted-angular-toggle.d.ts.map +1 -1
- package/types/slotted-angular-toolbar.d.ts +2 -0
- package/types/slotted-angular-toolbar.d.ts.map +1 -1
- package/types/slotted-angular-tooltip.d.ts.map +1 -1
- package/types/slotted-angular-top-navigation.d.ts.map +1 -1
- package/types/slotted-angular-tour.d.ts +2 -2
- package/types/slotted-angular-tour.d.ts.map +1 -1
- package/types/slotted-angular-transfer.d.ts.map +1 -1
- package/types/slotted-angular-tree.d.ts.map +1 -1
- package/types/slotted-angular-typography.d.ts +1 -1
- package/types/slotted-angular-typography.d.ts.map +1 -1
- package/types/slotted-angular-upload.d.ts +4 -2
- package/types/slotted-angular-upload.d.ts.map +1 -1
- package/types/slotted-angular-visually-hidden.d.ts.map +1 -1
- package/types/slotted-angular-wizard.d.ts +1 -1
- package/types/slotted-angular-wizard.d.ts.map +1 -1
package/docs/dashboard-grid.json
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
false
|
|
13
13
|
],
|
|
14
14
|
"headingLevel": [
|
|
15
|
+
"auto",
|
|
15
16
|
"2",
|
|
16
17
|
"3",
|
|
17
18
|
"4",
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"defaults": {
|
|
31
32
|
"columns": 12,
|
|
32
33
|
"editBar": true,
|
|
33
|
-
"headingLevel": "
|
|
34
|
+
"headingLevel": "auto",
|
|
34
35
|
"editing": false,
|
|
35
36
|
"status": "ready",
|
|
36
37
|
"loading": false,
|
|
@@ -74,6 +75,8 @@
|
|
|
74
75
|
"grid",
|
|
75
76
|
"widget",
|
|
76
77
|
"title",
|
|
78
|
+
"title-row",
|
|
79
|
+
"help",
|
|
77
80
|
"description",
|
|
78
81
|
"detail",
|
|
79
82
|
"handle",
|
|
@@ -162,6 +165,18 @@
|
|
|
162
165
|
"required": true,
|
|
163
166
|
"purpose": "The widget’s heading at headingLevel; two lines, then an ellipsis. Names the article."
|
|
164
167
|
},
|
|
168
|
+
{
|
|
169
|
+
"part": "title-row",
|
|
170
|
+
"element": "div",
|
|
171
|
+
"required": false,
|
|
172
|
+
"purpose": "Holds the title and the help control; present with help."
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"part": "help",
|
|
176
|
+
"element": "button, a Popover trigger",
|
|
177
|
+
"required": false,
|
|
178
|
+
"purpose": "The information control after the title, named “About {title}”; opens the note, and Escape closes it and returns focus. Present with help."
|
|
179
|
+
},
|
|
165
180
|
{
|
|
166
181
|
"part": "description",
|
|
167
182
|
"element": "p",
|
|
@@ -190,7 +205,7 @@
|
|
|
190
205
|
"part": "message",
|
|
191
206
|
"element": "div around section[slResultState]",
|
|
192
207
|
"required": false,
|
|
193
|
-
"purpose": "status=\"empty\" or \"error\",
|
|
208
|
+
"purpose": "status=\"empty\" or \"error\", centerd in the body; the error draws Try again under retryable."
|
|
194
209
|
},
|
|
195
210
|
{
|
|
196
211
|
"part": "retry",
|
|
@@ -242,7 +257,7 @@
|
|
|
242
257
|
"type": "DashboardLayout",
|
|
243
258
|
"defaultValue": "[]",
|
|
244
259
|
"appliesTo": "[slDashboardGrid]",
|
|
245
|
-
"description": "The uncontrolled start. A widget it does not name takes the first cell it fits, in the order of the children"
|
|
260
|
+
"description": "The uncontrolled start, and what Reset asks for, bound or not. A widget it does not name takes the first cell it fits, in the order of the children"
|
|
246
261
|
},
|
|
247
262
|
{
|
|
248
263
|
"name": "editing",
|
|
@@ -274,10 +289,17 @@
|
|
|
274
289
|
},
|
|
275
290
|
{
|
|
276
291
|
"name": "headingLevel",
|
|
277
|
-
"type": "2 | 3 | 4 | 5 | 6",
|
|
278
|
-
"defaultValue": "
|
|
292
|
+
"type": "'auto' | 2 | 3 | 4 | 5 | 6",
|
|
293
|
+
"defaultValue": "auto",
|
|
279
294
|
"appliesTo": "[slDashboardGrid], sl-dashboard-widget, provideDashboardGridDefaults",
|
|
280
|
-
"description": "The level of each widget’s title"
|
|
295
|
+
"description": "The level of each widget’s title; auto is one rank under the heading around the grid — h2 in a page body, one deeper inside a section — and never above h2"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"name": "expandedFrom",
|
|
299
|
+
"type": "number",
|
|
300
|
+
"defaultValue": "1024",
|
|
301
|
+
"appliesTo": "[slDashboardGrid]",
|
|
302
|
+
"description": "The grid’s own width, in pixels, from which the expanded class applies; a grid beside a navigation rail keeps its layout with a lower value"
|
|
281
303
|
},
|
|
282
304
|
{
|
|
283
305
|
"name": "messages",
|
|
@@ -305,7 +327,7 @@
|
|
|
305
327
|
"type": "string",
|
|
306
328
|
"defaultValue": "—",
|
|
307
329
|
"appliesTo": "sl-dashboard-widget",
|
|
308
|
-
"description": "The widget’s key in the layout. Required"
|
|
330
|
+
"description": "The widget’s key in the layout. Required. The grid finds a widget in its own content, inside an ng-container, or inside a component of the application"
|
|
309
331
|
},
|
|
310
332
|
{
|
|
311
333
|
"name": "title",
|
|
@@ -321,6 +343,13 @@
|
|
|
321
343
|
"appliesTo": "sl-dashboard-widget",
|
|
322
344
|
"description": "The line under the title"
|
|
323
345
|
},
|
|
346
|
+
{
|
|
347
|
+
"name": "help",
|
|
348
|
+
"type": "string",
|
|
349
|
+
"defaultValue": "—",
|
|
350
|
+
"appliesTo": "sl-dashboard-widget",
|
|
351
|
+
"description": "A note behind an information control beside the title"
|
|
352
|
+
},
|
|
324
353
|
{
|
|
325
354
|
"name": "defaultColumns",
|
|
326
355
|
"type": "number",
|
|
@@ -335,6 +364,13 @@
|
|
|
335
364
|
"appliesTo": "sl-dashboard-widget",
|
|
336
365
|
"description": "Rows of a widget the layout does not name"
|
|
337
366
|
},
|
|
367
|
+
{
|
|
368
|
+
"name": "rows",
|
|
369
|
+
"type": "'auto'",
|
|
370
|
+
"defaultValue": "—",
|
|
371
|
+
"appliesTo": "sl-dashboard-widget",
|
|
372
|
+
"description": "Draws the widget as tall as its content, to a twelfth of a row’s step, and the widgets below rise or make room; at least one sub-row, or minRows when stated, at most maxRows. Moves and resizes read the content’s rows, rounded up"
|
|
373
|
+
},
|
|
338
374
|
{
|
|
339
375
|
"name": "minColumns",
|
|
340
376
|
"type": "number",
|
|
@@ -447,6 +483,13 @@
|
|
|
447
483
|
"appliesTo": "sl-dashboard-widget",
|
|
448
484
|
"description": "The widget’s own page, as a link in the corner"
|
|
449
485
|
},
|
|
486
|
+
{
|
|
487
|
+
"name": "a[slDashboardWidgetDetail]",
|
|
488
|
+
"type": "element",
|
|
489
|
+
"defaultValue": "—",
|
|
490
|
+
"appliesTo": "sl-dashboard-widget",
|
|
491
|
+
"description": "The application’s own detail link — routerLink on it — drawn in place of the family’s, with the family’s part, look, mark and name"
|
|
492
|
+
},
|
|
450
493
|
{
|
|
451
494
|
"name": "[slDashboardWidgetActions]",
|
|
452
495
|
"type": "projected content",
|
|
@@ -484,10 +527,10 @@
|
|
|
484
527
|
},
|
|
485
528
|
{
|
|
486
529
|
"name": "persistedDashboardLayout",
|
|
487
|
-
"type": "({ key, storage?, defaultLayout?, injector? }) => { layout, clear }",
|
|
530
|
+
"type": "({ key, storage?, defaultLayout?, injector? }) => { layout, defaultLayout, clear }",
|
|
488
531
|
"defaultValue": "localStorage",
|
|
489
532
|
"appliesTo": "an injection context",
|
|
490
|
-
"description": "A signal read once from the store and written after every change; bind it with [(layout)]"
|
|
533
|
+
"description": "A signal read once from the store and written after every change; bind it with [(layout)], and its defaultLayout to [defaultLayout], which Reset asks for"
|
|
491
534
|
}
|
|
492
535
|
],
|
|
493
536
|
"composition": [],
|
|
@@ -657,7 +700,7 @@
|
|
|
657
700
|
"title": "A layout kept across visits",
|
|
658
701
|
"note": "Carry or pull a widget and reload the page: the layout comes back from localStorage under the key trailhead-sales. Forget layout clears it. Text the store cannot read falls back to the default.",
|
|
659
702
|
"language": "ts",
|
|
660
|
-
"source": "@Component({\n template: `<div
|
|
703
|
+
"source": "@Component({\n template: `<div\n slDashboardGrid\n [(layout)]=\"persisted.layout\"\n [defaultLayout]=\"persisted.defaultLayout\"\n >\n …\n </div>`,\n})\nclass SalesPage {\n readonly persisted = persistedDashboardLayout({ key: 'trailhead-sales' });\n}\n",
|
|
661
704
|
"verdict": "excerpt"
|
|
662
705
|
},
|
|
663
706
|
{
|
package/docs/dashboard-grid.md
CHANGED
|
@@ -50,6 +50,8 @@ Excerpt — not a complete module
|
|
|
50
50
|
| `grid` | ul role="list" | yes |
|
|
51
51
|
| `widget` | li | yes |
|
|
52
52
|
| `title` | h2 to h6 | yes |
|
|
53
|
+
| `title-row` | div | no |
|
|
54
|
+
| `help` | button, a Popover trigger | no |
|
|
53
55
|
| `description` | p | no |
|
|
54
56
|
| `detail` | a, or button[slIconButton] | no |
|
|
55
57
|
| `handle` | button[slMenuTriggerFor] | no |
|
|
@@ -67,20 +69,23 @@ Excerpt — not a complete module
|
|
|
67
69
|
| Name | Type | Default | Applies to | Description |
|
|
68
70
|
| --- | --- | --- | --- | --- |
|
|
69
71
|
| `layout` | `DashboardLayout` | — | [slDashboardGrid] | Where each widget stands and how big it is: [{ key, x, y, w, h, hidden? }] in cells of the expanded class. Present means controlled |
|
|
70
|
-
| `defaultLayout` | `DashboardLayout` | [] | [slDashboardGrid] | The uncontrolled start. A widget it does not name takes the first cell it fits, in the order of the children |
|
|
72
|
+
| `defaultLayout` | `DashboardLayout` | [] | [slDashboardGrid] | The uncontrolled start, and what Reset asks for, bound or not. A widget it does not name takes the first cell it fits, in the order of the children |
|
|
71
73
|
| `editing` | `boolean` | false | [slDashboardGrid] | The edit mode. Present means controlled |
|
|
72
74
|
| `defaultEditing` | `boolean` | false | [slDashboardGrid] | The uncontrolled mode, read once |
|
|
73
75
|
| `columns` | `number \| { expanded, medium, compact }` | 12 | [slDashboardGrid], provideDashboardGridDefaults | Columns from 1024 pixels of the grid’s width; below it the widgets flow in halves and wholes of half as many, and below 600 in one column |
|
|
74
76
|
| `editBar` | `boolean` | true | [slDashboardGrid], provideDashboardGridDefaults | Whether the family draws Add, Reset, Cancel and Done while editing |
|
|
75
|
-
| `headingLevel` | `2 \| 3 \| 4 \| 5 \| 6` |
|
|
77
|
+
| `headingLevel` | `'auto' \| 2 \| 3 \| 4 \| 5 \| 6` | auto | [slDashboardGrid], sl-dashboard-widget, provideDashboardGridDefaults | The level of each widget’s title; auto is one rank under the heading around the grid — h2 in a page body, one deeper inside a section — and never above h2 |
|
|
78
|
+
| `expandedFrom` | `number` | 1024 | [slDashboardGrid] | The grid’s own width, in pixels, from which the expanded class applies; a grid beside a navigation rail keeps its layout with a lower value |
|
|
76
79
|
| `messages` | `Partial<DashboardGridMessages>` | — | [slDashboardGrid] | Words laid over the language in force, key by key: editBar, editStatus, add, reset, cancel, done, handle, detail, retry, emptyTitle, errorTitle, empty, emptyEditing, the eight menu items, hide, size, moved, movedInOrder, resized, hidden, shown, resetDone, cancelled |
|
|
77
80
|
| `exportAs slDashboardGrid` | `SlDashboardGrid` | — | [slDashboardGrid] | focusWidget(key), commitEditing(), cancelEditing(), currentLayout(), isEditing() |
|
|
78
81
|
| `host attributes` | `the element slDashboardGrid is on` | — | [slDashboardGrid] | id, class, style, data-* and events stay on the host; aria-label and aria-labelledby name the list |
|
|
79
|
-
| `value` | `string` | — | sl-dashboard-widget | The widget’s key in the layout. Required |
|
|
82
|
+
| `value` | `string` | — | sl-dashboard-widget | The widget’s key in the layout. Required. The grid finds a widget in its own content, inside an ng-container, or inside a component of the application |
|
|
80
83
|
| `title` | `string` | — | sl-dashboard-widget | The heading, the article’s name, the handle’s name and the entry in Add widget. Required |
|
|
81
84
|
| `description` | `string` | — | sl-dashboard-widget | The line under the title |
|
|
85
|
+
| `help` | `string` | — | sl-dashboard-widget | A note behind an information control beside the title |
|
|
82
86
|
| `defaultColumns` | `number` | 4 | sl-dashboard-widget | Expanded columns of a widget the layout does not name |
|
|
83
87
|
| `defaultRows` | `number` | 2 | sl-dashboard-widget | Rows of a widget the layout does not name |
|
|
88
|
+
| `rows` | `'auto'` | — | sl-dashboard-widget | Draws the widget as tall as its content, to a twelfth of a row’s step, and the widgets below rise or make room; at least one sub-row, or minRows when stated, at most maxRows. Moves and resizes read the content’s rows, rounded up |
|
|
84
89
|
| `minColumns` | `number` | 2 | sl-dashboard-widget | The fewest expanded columns a resize leaves |
|
|
85
90
|
| `maxColumns` | `number` | columns | sl-dashboard-widget | The most expanded columns a resize gives |
|
|
86
91
|
| `minRows` | `number` | 2 | sl-dashboard-widget | The fewest rows a resize leaves |
|
|
@@ -97,12 +102,13 @@ Excerpt — not a complete module
|
|
|
97
102
|
| `retryable` | `boolean` | false | sl-dashboard-widget | Draws Try again, which emits retry |
|
|
98
103
|
| `detailable` | `boolean` | false | sl-dashboard-widget | Draws the detail action as a button, which emits detail |
|
|
99
104
|
| `detailHref` | `string` | — | sl-dashboard-widget | The widget’s own page, as a link in the corner |
|
|
105
|
+
| `a[slDashboardWidgetDetail]` | `element` | — | sl-dashboard-widget | The application’s own detail link — routerLink on it — drawn in place of the family’s, with the family’s part, look, mark and name |
|
|
100
106
|
| `[slDashboardWidgetActions]` | `projected content` | — | sl-dashboard-widget | The consumer’s controls in the header’s corner |
|
|
101
107
|
| `[slDashboardWidgetFooter]` | `projected content` | — | sl-dashboard-widget | Content under the body |
|
|
102
108
|
| `fill / size` | `CardFill / CardSize` | outline / md | sl-dashboard-widget | The card’s own axes |
|
|
103
109
|
| `content` | `projected content` | — | sl-dashboard-widget | The body; kept in a template and drawn by the grid inside its own li and card, in the layout’s order |
|
|
104
110
|
| `provideDashboardGridDefaults` | `{ columns, editBar, headingLevel }` | — | providers | The decisions an application takes once; an instance that states any of them wins. The words come from the language in force (provideSlotted) |
|
|
105
|
-
| `persistedDashboardLayout` | `({ key, storage?, defaultLayout?, injector? }) => { layout, clear }` | localStorage | an injection context | A signal read once from the store and written after every change; bind it with [(layout)] |
|
|
111
|
+
| `persistedDashboardLayout` | `({ key, storage?, defaultLayout?, injector? }) => { layout, defaultLayout, clear }` | localStorage | an injection context | A signal read once from the store and written after every change; bind it with [(layout)], and its defaultLayout to [defaultLayout], which Reset asks for |
|
|
106
112
|
|
|
107
113
|
## Events
|
|
108
114
|
|
|
@@ -119,7 +125,7 @@ Excerpt — not a complete module
|
|
|
119
125
|
| Axis | Values | Default |
|
|
120
126
|
| --- | --- | --- |
|
|
121
127
|
| `editBar` | `true`, `false` | `true` |
|
|
122
|
-
| `headingLevel` | `2`, `3`, `4`, `5`, `6` | `
|
|
128
|
+
| `headingLevel` | `auto`, `2`, `3`, `4`, `5`, `6` | `auto` |
|
|
123
129
|
| `status` | `ready`, `empty`, `error` | `ready` |
|
|
124
130
|
|
|
125
131
|
## Rules
|
|
@@ -231,7 +237,13 @@ Excerpt — not a complete module
|
|
|
231
237
|
|
|
232
238
|
```ts
|
|
233
239
|
@Component({
|
|
234
|
-
template: `<div
|
|
240
|
+
template: `<div
|
|
241
|
+
slDashboardGrid
|
|
242
|
+
[(layout)]="persisted.layout"
|
|
243
|
+
[defaultLayout]="persisted.defaultLayout"
|
|
244
|
+
>
|
|
245
|
+
…
|
|
246
|
+
</div>`,
|
|
235
247
|
})
|
|
236
248
|
class SalesPage {
|
|
237
249
|
readonly persisted = persistedDashboardLayout({ key: 'trailhead-sales' });
|
|
@@ -587,7 +587,7 @@ Excerpt — not a complete module
|
|
|
587
587
|
|
|
588
588
|
### Search
|
|
589
589
|
|
|
590
|
-
One condition that belongs to no column: query.search is matched against the text of every searchable column through the locale collator, so "
|
|
590
|
+
One condition that belongs to no column: query.search is matched against the text of every searchable column through the locale collator, so "cafe" finds "Café". The field that writes it is the consumer’s own text-field.
|
|
591
591
|
|
|
592
592
|
Example
|
|
593
593
|
|
|
@@ -2253,7 +2253,7 @@ Excerpt — not a complete module
|
|
|
2253
2253
|
|
|
2254
2254
|
### Load more
|
|
2255
2255
|
|
|
2256
|
-
With an unknown total the footer states the range without one
|
|
2256
|
+
With an unknown total the footer states the range without one. loadMore is emitted on its own as the reader nears the end, and the footer says a page is loading; it offers a control only to retry a page that failed (loadMoreFailed). loadMoreTrigger="button" asks only from a Load more control, "both" does the two.
|
|
2257
2257
|
|
|
2258
2258
|
Excerpt — not a complete module
|
|
2259
2259
|
|
|
@@ -2270,7 +2270,7 @@ Excerpt — not a complete module
|
|
|
2270
2270
|
|
|
2271
2271
|
### Empty, no results, error, loading
|
|
2272
2272
|
|
|
2273
|
-
Three states a body can hold instead of rows, each a result-state: nothing at all; nothing after the filter, with Clear filters; and a failed load, with Try again. A first load draws skeleton rows; a refresh over rows already shown dims them and moves nothing.
|
|
2273
|
+
Three states a body can hold instead of rows, each a result-state: nothing at all; nothing after the filter, with Clear filters; and a failed load, with Try again. A first load draws skeleton rows; a refresh over rows already shown dims them and moves nothing. Zero rows is an answer too: once the grid has drawn the empty state, loading keeps it and draws no skeleton, and loading="initial" asks for the skeleton anyway.
|
|
2274
2274
|
|
|
2275
2275
|
Excerpt — not a complete module
|
|
2276
2276
|
|
package/docs/data-grid.json
CHANGED
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
"skeletonRows": 8,
|
|
99
99
|
"filterDebounce": 300,
|
|
100
100
|
"loadMoreThreshold": 20,
|
|
101
|
+
"loadMoreTrigger": "scroll",
|
|
101
102
|
"pageSizes": [
|
|
102
103
|
25,
|
|
103
104
|
50,
|
|
@@ -150,6 +151,7 @@
|
|
|
150
151
|
"column-menu",
|
|
151
152
|
"column-menu-description",
|
|
152
153
|
"resizer",
|
|
154
|
+
"resize-guide",
|
|
153
155
|
"drop-indicator",
|
|
154
156
|
"filter-row",
|
|
155
157
|
"filter-cell",
|
|
@@ -188,7 +190,7 @@
|
|
|
188
190
|
}
|
|
189
191
|
},
|
|
190
192
|
"docs": {
|
|
191
|
-
"
|
|
193
|
+
"data-grid": {
|
|
192
194
|
"imports": {
|
|
193
195
|
"source": "import {\n SlDataGrid,\n SlDataGridCellTemplate,\n SlDataGridColumnHelp,\n SlDataGridDetailTemplate,\n SlDataGridEditorTemplate,\n SlDataGridFooter,\n provideDataGridDefaults,\n} from '@slotted/angular/data-grid';\nimport type { GridColumn, GridQuery, GridColumnState } from '@slotted/core/grid';\nimport { applyQuery, emptyQuery, toGridParams, fromGridParams } from '@slotted/core/grid';",
|
|
194
196
|
"selector": "sl-data-grid",
|
|
@@ -273,6 +275,12 @@
|
|
|
273
275
|
"required": false,
|
|
274
276
|
"purpose": "The pointer’s handle on the trailing edge; a double press fits the column."
|
|
275
277
|
},
|
|
278
|
+
{
|
|
279
|
+
"part": "resize-guide",
|
|
280
|
+
"element": "div[aria-hidden]",
|
|
281
|
+
"required": false,
|
|
282
|
+
"purpose": "The line a drag of the resizer moves by translate across the scroller’s height; the width is applied on release."
|
|
283
|
+
},
|
|
276
284
|
{
|
|
277
285
|
"part": "drop-indicator",
|
|
278
286
|
"element": "div",
|
|
@@ -498,7 +506,7 @@
|
|
|
498
506
|
"type": "GridColumn<Row>[]",
|
|
499
507
|
"defaultValue": "—",
|
|
500
508
|
"appliesTo": "sl-data-grid",
|
|
501
|
-
"description": "The column model: id, label, description, kind, accessor, format, compare, width, minWidth, maxWidth, flex, priority, sortable, filterable, searchable, editable, resizable, reorderable, hideable, rowHeader, options, aggregate, validate, parse."
|
|
509
|
+
"description": "The column model: id, label, description, kind, accessor, format, compare, width, minWidth, maxWidth, flex, priority, sortable, filterable, searchable, editable, resizable, reorderable, hideable, rowHeader, pinned (end by default for kind actions), options, aggregate, validate, parse."
|
|
502
510
|
},
|
|
503
511
|
{
|
|
504
512
|
"name": "description",
|
|
@@ -561,14 +569,14 @@
|
|
|
561
569
|
"type": "boolean",
|
|
562
570
|
"defaultValue": "—",
|
|
563
571
|
"appliesTo": "sl-data-grid",
|
|
564
|
-
"description": "Whether a page past this one exists when the total is unknown;
|
|
572
|
+
"description": "Whether a page past this one exists when the total is unknown; loadMoreTrigger decides what asks for it."
|
|
565
573
|
},
|
|
566
574
|
{
|
|
567
575
|
"name": "loading",
|
|
568
|
-
"type": "boolean",
|
|
576
|
+
"type": "boolean | 'initial' | 'refresh'",
|
|
569
577
|
"defaultValue": "false",
|
|
570
578
|
"appliesTo": "sl-data-grid",
|
|
571
|
-
"description": "Skeleton rows with no
|
|
579
|
+
"description": "Skeleton rows with no answer to keep; aria-busy over an answer already drawn — rows, which dim, or the empty state, which stays. true is initial until the grid has drawn an answer, and refresh after; rows emptied while a load starts wait in the skeleton."
|
|
572
580
|
},
|
|
573
581
|
{
|
|
574
582
|
"name": "error",
|
|
@@ -596,7 +604,7 @@
|
|
|
596
604
|
"type": "model<Partial<GridColumnState> | undefined>",
|
|
597
605
|
"defaultValue": "—",
|
|
598
606
|
"appliesTo": "sl-data-grid",
|
|
599
|
-
"description": "order, widths, hidden and pinned, two-way;
|
|
607
|
+
"description": "order, widths, hidden and pinned, two-way; normalized against columns on every read."
|
|
600
608
|
},
|
|
601
609
|
{
|
|
602
610
|
"name": "selectionMode",
|
|
@@ -766,6 +774,20 @@
|
|
|
766
774
|
"appliesTo": "sl-data-grid",
|
|
767
775
|
"description": "Rows left below the window before loadMore is emitted."
|
|
768
776
|
},
|
|
777
|
+
{
|
|
778
|
+
"name": "loadMoreTrigger",
|
|
779
|
+
"type": "'scroll' | 'button' | 'both'",
|
|
780
|
+
"defaultValue": "scroll",
|
|
781
|
+
"appliesTo": "sl-data-grid",
|
|
782
|
+
"description": "What asks for the next page: nearing the end, with a loading status in the footer; a Load more control; or both."
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"name": "loadMoreFailed",
|
|
786
|
+
"type": "boolean",
|
|
787
|
+
"defaultValue": "false",
|
|
788
|
+
"appliesTo": "sl-data-grid",
|
|
789
|
+
"description": "The last page asked for failed: the automatic request stops and the footer offers Try again."
|
|
790
|
+
},
|
|
769
791
|
{
|
|
770
792
|
"name": "skeletonRows",
|
|
771
793
|
"type": "number",
|
|
@@ -934,7 +956,7 @@
|
|
|
934
956
|
"type": "provider",
|
|
935
957
|
"defaultValue": "—",
|
|
936
958
|
"appliesTo": "Application",
|
|
937
|
-
"description": "Sets variant, striped, stickyHeader, stickyTo, selectionMode, editMode, filterRow, virtualize, rowHeight, columnOverflow, overscan, pageSizes, filterDebounce, loadMoreThreshold and skeletonRows once for an injector. A grid that states one itself still wins. Its words and its locale come from the language in force (provideSlotted)."
|
|
959
|
+
"description": "Sets variant, striped, stickyHeader, stickyTo, selectionMode, editMode, filterRow, virtualize, rowHeight, columnOverflow, overscan, pageSizes, filterDebounce, loadMoreThreshold, loadMoreTrigger and skeletonRows once for an injector. A grid that states one itself still wins. Its words and its locale come from the language in force (provideSlotted)."
|
|
938
960
|
},
|
|
939
961
|
{
|
|
940
962
|
"name": "@slotted/core/grid",
|
|
@@ -1097,7 +1119,9 @@
|
|
|
1097
1119
|
"--slotted-control-font-size-md",
|
|
1098
1120
|
"--slotted-control-font-size-sm",
|
|
1099
1121
|
"--slotted-control-gap-md",
|
|
1122
|
+
"--slotted-control-height-lg",
|
|
1100
1123
|
"--slotted-control-height-md",
|
|
1124
|
+
"--slotted-control-height-sm",
|
|
1101
1125
|
"--slotted-control-icon-size-md",
|
|
1102
1126
|
"--slotted-control-inner-size-sm",
|
|
1103
1127
|
"--slotted-control-invalid-edge-width",
|
|
@@ -1133,7 +1157,10 @@
|
|
|
1133
1157
|
"--slotted-data-grid-pin-shadow-size",
|
|
1134
1158
|
"--slotted-data-grid-radius",
|
|
1135
1159
|
"--slotted-data-grid-range-surface",
|
|
1160
|
+
"--slotted-data-grid-resize-guide-color",
|
|
1161
|
+
"--slotted-data-grid-resize-guide-width",
|
|
1136
1162
|
"--slotted-data-grid-row-block-size",
|
|
1163
|
+
"--slotted-data-grid-row-border-color-selected",
|
|
1137
1164
|
"--slotted-data-grid-row-color-selected",
|
|
1138
1165
|
"--slotted-data-grid-row-max-block-size",
|
|
1139
1166
|
"--slotted-data-grid-row-surface-hover",
|
|
@@ -1181,7 +1208,6 @@
|
|
|
1181
1208
|
"--slotted-text-muted",
|
|
1182
1209
|
"--slotted-tone-accent-border",
|
|
1183
1210
|
"--slotted-tone-accent-solid",
|
|
1184
|
-
"--slotted-tone-accent-subtle-hover",
|
|
1185
1211
|
"--slotted-tone-accent-surface",
|
|
1186
1212
|
"--slotted-tone-accent-text",
|
|
1187
1213
|
"--slotted-tone-danger-border",
|
|
@@ -1248,7 +1274,7 @@
|
|
|
1248
1274
|
{
|
|
1249
1275
|
"id": "search",
|
|
1250
1276
|
"title": "Search",
|
|
1251
|
-
"note": "One condition that belongs to no column: query.search is matched against the text of every searchable column through the locale collator, so \"
|
|
1277
|
+
"note": "One condition that belongs to no column: query.search is matched against the text of every searchable column through the locale collator, so \"cafe\" finds \"Café\". The field that writes it is the consumer’s own text-field.",
|
|
1252
1278
|
"language": "ts",
|
|
1253
1279
|
"source": "import { Component, signal } from '@angular/core';\nimport { emptyQuery, withSearch, type GridColumn, type GridQuery } from '@slotted/core/grid';\nimport { SlDataGrid } from '@slotted/angular/data-grid';\nimport { SlStack } from '@slotted/angular/stack';\nimport { SlTextField, SlTextFieldInput } from '@slotted/angular/text-field';\n\ninterface Shipment {\n id: string;\n customer: string;\n destination: string;\n carrier: string;\n status: string;\n shipped: string;\n weight: number;\n cost: number;\n priority: boolean;\n}\n\nconst CUSTOMERS = [\n 'Alfreds Futterkiste',\n \"Bon app'\",\n 'Ernst Handel',\n 'Folk och fä HB',\n 'Hanari Carnes',\n 'Island Trading',\n 'QUICK-Stop',\n 'Wartian Herkku',\n];\nconst DESTINATIONS = [\n 'Berlin, DE',\n 'Marseille, FR',\n 'Graz, AT',\n 'Bräcke, SE',\n 'Rio de Janeiro, BR',\n 'Cowes, UK',\n 'Boise, US',\n 'Oulu, FI',\n];\nconst CARRIERS = ['UPS', 'FedEx', 'DHL', 'USPS'];\nconst STATUSES = ['In transit', 'Delivered', 'Delayed', 'Customs'];\n\nfunction shipments(count: number): Shipment[] {\n let seed = 7;\n const next = () => (seed = (seed * 1664525 + 1013904223) % 4294967296) / 4294967296;\n const pick = <T>(list: readonly T[]) => list[Math.floor(next() * list.length)]!;\n return Array.from({ length: count }, (_, index) => {\n const weight = Math.round(next() * 9000) / 10;\n return {\n id: `SH-${3301 + index}`,\n customer: pick(CUSTOMERS),\n destination: pick(DESTINATIONS),\n carrier: pick(CARRIERS),\n status: pick(STATUSES),\n shipped: `2026-09-${String(1 + Math.floor(next() * 28)).padStart(2, '0')}`,\n weight,\n cost: Math.round(weight * (2 + next() * 3) * 100) / 100,\n priority: next() < 0.3,\n };\n });\n}\n\nconst USD = new Intl.NumberFormat('en-US', { currency: 'USD', style: 'currency' });\nconst money = (value: unknown) => (typeof value === 'number' ? USD.format(value) : '');\nconst kilograms = (value: unknown) => (typeof value === 'number' ? `${value.toFixed(1)} kg` : '');\n\nconst COLUMNS: GridColumn<Shipment>[] = [\n { id: 'id', label: 'Shipment', accessor: 'id', rowHeader: true, width: 120, text: 'nowrap' },\n { id: 'customer', label: 'Customer', accessor: 'customer', flex: 1, minWidth: 180 },\n { id: 'destination', label: 'Destination', accessor: 'destination', width: 170 },\n {\n id: 'carrier',\n label: 'Carrier',\n accessor: 'carrier',\n kind: 'set',\n width: 110,\n options: CARRIERS.map((value) => ({ value, label: value })),\n },\n {\n id: 'status',\n label: 'Status',\n accessor: 'status',\n kind: 'set',\n width: 120,\n options: STATUSES.map((value) => ({ value, label: value })),\n },\n { id: 'shipped', label: 'Shipped', accessor: 'shipped', kind: 'date', width: 130 },\n {\n id: 'weight',\n label: 'Weight',\n accessor: 'weight',\n kind: 'number',\n width: 110,\n format: kilograms,\n },\n { id: 'cost', label: 'Cost', accessor: 'cost', kind: 'number', width: 120, format: money },\n];\n\nconst ROWS = shipments(24);\n\n@Component({\n selector: 'app-data-grid-search',\n imports: [SlDataGrid, SlStack, SlTextField, SlTextFieldInput],\n template: `\n <div slStack [gap]=\"3\">\n <div slTextField clearable>\n <input\n slTextFieldInput\n aria-label=\"Search shipments\"\n placeholder=\"Search shipments\"\n [value]=\"query().search\"\n (valueChange)=\"search($event.value)\"\n />\n </div>\n <sl-data-grid\n aria-label=\"Shipments\"\n rowKey=\"id\"\n height=\"22rem\"\n [(query)]=\"query\"\n [columns]=\"columns\"\n [rows]=\"rows\"\n ></sl-data-grid>\n </div>\n `,\n})\nexport class DataGridSearch {\n readonly rows = ROWS;\n readonly columns = COLUMNS;\n readonly query = signal<GridQuery>({ ...emptyQuery(), search: 'graz' });\n\n search(text: string): void {\n this.query.update((current) => withSearch(current, text).query);\n }\n}\n",
|
|
1254
1280
|
"verdict": "example"
|
|
@@ -1416,7 +1442,7 @@
|
|
|
1416
1442
|
{
|
|
1417
1443
|
"id": "load-more",
|
|
1418
1444
|
"title": "Load more",
|
|
1419
|
-
"note": "With an unknown total the footer states the range without one
|
|
1445
|
+
"note": "With an unknown total the footer states the range without one. loadMore is emitted on its own as the reader nears the end, and the footer says a page is loading; it offers a control only to retry a page that failed (loadMoreFailed). loadMoreTrigger=\"button\" asks only from a Load more control, \"both\" does the two.",
|
|
1420
1446
|
"language": "html",
|
|
1421
1447
|
"source": "<sl-data-grid\n rowKey=\"id\"\n [rows]=\"rows()\"\n [columns]=\"columns\"\n [hasMore]=\"hasMore()\"\n [query]=\"{ ...emptyQuery(), page: { cursor: cursor(), size: 50 } }\"\n (loadMore)=\"fetchMore()\"\n/>\n",
|
|
1422
1448
|
"verdict": "excerpt"
|
|
@@ -1424,7 +1450,7 @@
|
|
|
1424
1450
|
{
|
|
1425
1451
|
"id": "empty-and-loading",
|
|
1426
1452
|
"title": "Empty, no results, error, loading",
|
|
1427
|
-
"note": "Three states a body can hold instead of rows, each a result-state: nothing at all; nothing after the filter, with Clear filters; and a failed load, with Try again. A first load draws skeleton rows; a refresh over rows already shown dims them and moves nothing.",
|
|
1453
|
+
"note": "Three states a body can hold instead of rows, each a result-state: nothing at all; nothing after the filter, with Clear filters; and a failed load, with Try again. A first load draws skeleton rows; a refresh over rows already shown dims them and moves nothing. Zero rows is an answer too: once the grid has drawn the empty state, loading keeps it and draws no skeleton, and loading=\"initial\" asks for the skeleton anyway.",
|
|
1428
1454
|
"language": "html",
|
|
1429
1455
|
"source": "<sl-data-grid\n rowKey=\"id\"\n [rows]=\"rows()\"\n [columns]=\"columns\"\n [loading]=\"loading()\"\n [error]=\"error()\"\n (retry)=\"reload()\"\n/>\n",
|
|
1430
1456
|
"verdict": "excerpt"
|
package/docs/data-grid.md
CHANGED
|
@@ -137,6 +137,7 @@ export class DataGridBasic {
|
|
|
137
137
|
| `column-menu` | button[slMenuTriggerFor] | yes |
|
|
138
138
|
| `column-menu-description` | div[aria-hidden] | no |
|
|
139
139
|
| `resizer` | div[aria-hidden] | no |
|
|
140
|
+
| `resize-guide` | div[aria-hidden] | no |
|
|
140
141
|
| `drop-indicator` | div | no |
|
|
141
142
|
| `filter-row` | div[role="row"] | no |
|
|
142
143
|
| `filter-cell` | div[role="gridcell"] | no |
|
|
@@ -230,7 +231,7 @@ See [data-grid.props.md](./data-grid.props.md).
|
|
|
230
231
|
|
|
231
232
|
## Tokens
|
|
232
233
|
|
|
233
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-data-grid-band-surface`, `--slotted-data-grid-block-size`, `--slotted-data-grid-border-color`, `--slotted-data-grid-border-color-strong`, `--slotted-data-grid-border-width`, `--slotted-data-grid-cell-padding-block`, `--slotted-data-grid-cell-padding-inline`, `--slotted-data-grid-changed-surface`, `--slotted-data-grid-color`, `--slotted-data-grid-color-muted`, `--slotted-data-grid-control-radius`, `--slotted-data-grid-cursor-color`, `--slotted-data-grid-filter-operator-size`, `--slotted-data-grid-filter-panel-size`, `--slotted-data-grid-filter-panel-size-date`, `--slotted-data-grid-filter-panel-size-datetime`, `--slotted-data-grid-font-family`, `--slotted-data-grid-font-size`, `--slotted-data-grid-gap`, `--slotted-data-grid-head-block-size`, `--slotted-data-grid-header-surface`, `--slotted-data-grid-header-surface-hover`, `--slotted-data-grid-icon-size`, `--slotted-data-grid-indent`, `--slotted-data-grid-pin-shadow-color`, `--slotted-data-grid-pin-shadow-size`, `--slotted-data-grid-radius`, `--slotted-data-grid-range-surface`, `--slotted-data-grid-row-block-size`, `--slotted-data-grid-row-color-selected`, `--slotted-data-grid-row-max-block-size`, `--slotted-data-grid-row-surface-hover`, `--slotted-data-grid-row-surface-selected`, `--slotted-data-grid-row-surface-selected-hover`, `--slotted-data-grid-row-surface-stripe`, `--slotted-data-grid-shadow`, `--slotted-data-grid-sticky-offset`, `--slotted-data-grid-sticky-offset-end`, `--slotted-data-grid-surface`, `--slotted-disabled-foreground`, `--slotted-duration-long`, `--slotted-duration-loop`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-popover-gap`, `--slotted-popover-padding-block-sm`, `--slotted-popover-padding-inline-sm`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-surface`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-
|
|
234
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-data-grid-band-surface`, `--slotted-data-grid-block-size`, `--slotted-data-grid-border-color`, `--slotted-data-grid-border-color-strong`, `--slotted-data-grid-border-width`, `--slotted-data-grid-cell-padding-block`, `--slotted-data-grid-cell-padding-inline`, `--slotted-data-grid-changed-surface`, `--slotted-data-grid-color`, `--slotted-data-grid-color-muted`, `--slotted-data-grid-control-radius`, `--slotted-data-grid-cursor-color`, `--slotted-data-grid-filter-operator-size`, `--slotted-data-grid-filter-panel-size`, `--slotted-data-grid-filter-panel-size-date`, `--slotted-data-grid-filter-panel-size-datetime`, `--slotted-data-grid-font-family`, `--slotted-data-grid-font-size`, `--slotted-data-grid-gap`, `--slotted-data-grid-head-block-size`, `--slotted-data-grid-header-surface`, `--slotted-data-grid-header-surface-hover`, `--slotted-data-grid-icon-size`, `--slotted-data-grid-indent`, `--slotted-data-grid-pin-shadow-color`, `--slotted-data-grid-pin-shadow-size`, `--slotted-data-grid-radius`, `--slotted-data-grid-range-surface`, `--slotted-data-grid-resize-guide-color`, `--slotted-data-grid-resize-guide-width`, `--slotted-data-grid-row-block-size`, `--slotted-data-grid-row-border-color-selected`, `--slotted-data-grid-row-color-selected`, `--slotted-data-grid-row-max-block-size`, `--slotted-data-grid-row-surface-hover`, `--slotted-data-grid-row-surface-selected`, `--slotted-data-grid-row-surface-selected-hover`, `--slotted-data-grid-row-surface-stripe`, `--slotted-data-grid-shadow`, `--slotted-data-grid-sticky-offset`, `--slotted-data-grid-sticky-offset-end`, `--slotted-data-grid-surface`, `--slotted-disabled-foreground`, `--slotted-duration-long`, `--slotted-duration-loop`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-popover-gap`, `--slotted-popover-padding-block-sm`, `--slotted-popover-padding-inline-sm`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-surface`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
|
|
234
235
|
|
|
235
236
|
## Examples
|
|
236
237
|
|
package/docs/data-grid.props.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| --- | --- | --- | --- | --- |
|
|
10
10
|
| `rows` | `readonly Row[]` | — | sl-data-grid | The records; the grid never mutates them. Left out when a dataSource answers for them. |
|
|
11
11
|
| `rowKey` | `keyof Row \| (row) => string` | — | sl-data-grid | A field name or a function: the key every state model names a row by. |
|
|
12
|
-
| `columns` | `GridColumn<Row>[]` | — | sl-data-grid | The column model: id, label, description, kind, accessor, format, compare, width, minWidth, maxWidth, flex, priority, sortable, filterable, searchable, editable, resizable, reorderable, hideable, rowHeader, options, aggregate, validate, parse. |
|
|
12
|
+
| `columns` | `GridColumn<Row>[]` | — | sl-data-grid | The column model: id, label, description, kind, accessor, format, compare, width, minWidth, maxWidth, flex, priority, sortable, filterable, searchable, editable, resizable, reorderable, hideable, rowHeader, pinned (end by default for kind actions), options, aggregate, validate, parse. |
|
|
13
13
|
| `description` | `string` | — | GridColumn | What the column is: the header’s accessible description, the caption atop its menu and the first line of its help popover. |
|
|
14
14
|
| `priority` | `number` | — | GridColumn | The lower, the longer the column stays when the frame is too narrow. A column without one leaves before every numbered one; the identity column and an actions column never leave. |
|
|
15
15
|
| `popin` | `boolean` | true | GridColumn | Whether a column with no room moves into the row’s pop-in; false hides it instead. |
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
| `columnGroups` | `GridColumnGroup[]` | — | sl-data-grid | Headings spanning columns, drawn as a row above the names. |
|
|
19
19
|
| `mode` | `'client' \| 'server'` | inferred | sl-data-grid | client applies the query to rows; server draws rows as given. server when totalCount or hasMore is present. |
|
|
20
20
|
| `totalCount` | `number` | — | sl-data-grid | The whole set’s size in server mode; aria-rowcount and the range read it. |
|
|
21
|
-
| `hasMore` | `boolean` | — | sl-data-grid | Whether a page past this one exists when the total is unknown;
|
|
22
|
-
| `loading` | `boolean` | false | sl-data-grid | Skeleton rows with no
|
|
21
|
+
| `hasMore` | `boolean` | — | sl-data-grid | Whether a page past this one exists when the total is unknown; loadMoreTrigger decides what asks for it. |
|
|
22
|
+
| `loading` | `boolean \| 'initial' \| 'refresh'` | false | sl-data-grid | Skeleton rows with no answer to keep; aria-busy over an answer already drawn — rows, which dim, or the empty state, which stays. true is initial until the grid has drawn an answer, and refresh after; rows emptied while a load starts wait in the skeleton. |
|
|
23
23
|
| `error` | `string \| null` | — | sl-data-grid | The message of a failed load; draws the error state with Try again, which emits retry. |
|
|
24
24
|
| `disabledKeys` | `string[]` | — | sl-data-grid | Rows that are neither selectable nor editable, drawn with data-disabled. |
|
|
25
25
|
| `query` | `model<GridQuery>` | emptyQuery() | sl-data-grid | sort, filter, search, page and group in one object, two-way. An unbound grid starts from the model’s own initial value. |
|
|
26
|
-
| `columnState` | `model<Partial<GridColumnState> \| undefined>` | — | sl-data-grid | order, widths, hidden and pinned, two-way;
|
|
26
|
+
| `columnState` | `model<Partial<GridColumnState> \| undefined>` | — | sl-data-grid | order, widths, hidden and pinned, two-way; normalized against columns on every read. |
|
|
27
27
|
| `selectionMode` | `'none' \| 'single' \| 'multiple' \| 'range'` | none | sl-data-grid | Rows, one or many, with the checkbox column in multiple; or a rectangle of cells. |
|
|
28
28
|
| `value` | `model<string \| readonly string[] \| null>` | null | sl-data-grid | The selected row (single) or rows (multiple), two-way, and the value a form control holds through ControlValueAccessor. |
|
|
29
29
|
| `range` | `model<GridRange \| null>` | null | sl-data-grid | The cell rectangle as anchor and focus, in range mode, two-way. |
|
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
| `rowsReorder` | `{ key, from, to, reason, event }` | — | sl-data-grid | Where a row goes in rows: from, and the index it takes once moved. The consumer moves it. |
|
|
49
49
|
| `highlightChanges` | `boolean \| number` | false | sl-data-grid | Marks a mounted cell whose value changed between two rows, for the stated milliseconds (true is 1200). |
|
|
50
50
|
| `loadMoreThreshold` | `number` | 20 | sl-data-grid | Rows left below the window before loadMore is emitted. |
|
|
51
|
+
| `loadMoreTrigger` | `'scroll' \| 'button' \| 'both'` | scroll | sl-data-grid | What asks for the next page: nearing the end, with a loading status in the footer; a Load more control; or both. |
|
|
52
|
+
| `loadMoreFailed` | `boolean` | false | sl-data-grid | The last page asked for failed: the automatic request stops and the footer offers Try again. |
|
|
51
53
|
| `skeletonRows` | `number` | 8 | sl-data-grid | Rows the first load draws. |
|
|
52
54
|
| `pageSizes` | `number[]` | 25,50,100 | sl-data-grid | The sizes a page-size control in the footer offers, read through injectDataGridDefaults. |
|
|
53
55
|
| `variant` | `'plain' \| 'ruled' \| 'framed'` | ruled | sl-data-grid | No rules, rules between rows, or the border and the radius. |
|
|
@@ -71,7 +73,7 @@
|
|
|
71
73
|
| `align` | `'start' \| 'center' \| 'end'` | start | GridColumn | Where the value sits; a number column sits at the end unless told otherwise. |
|
|
72
74
|
| `numeric` | `boolean` | false | GridColumn | Tabular figures and end alignment; true for kind number. |
|
|
73
75
|
| `text` | `'wrap' \| 'truncate' \| 'nowrap'` | truncate | GridColumn | What a long value does. |
|
|
74
|
-
| `provideDataGridDefaults` | `provider` | — | Application | Sets variant, striped, stickyHeader, stickyTo, selectionMode, editMode, filterRow, virtualize, rowHeight, columnOverflow, overscan, pageSizes, filterDebounce, loadMoreThreshold and skeletonRows once for an injector. A grid that states one itself still wins. Its words and its locale come from the language in force (provideSlotted). |
|
|
76
|
+
| `provideDataGridDefaults` | `provider` | — | Application | Sets variant, striped, stickyHeader, stickyTo, selectionMode, editMode, filterRow, virtualize, rowHeight, columnOverflow, overscan, pageSizes, filterDebounce, loadMoreThreshold, loadMoreTrigger and skeletonRows once for an injector. A grid that states one itself still wins. Its words and its locale come from the language in force (provideSlotted). |
|
|
75
77
|
| `@slotted/core/grid` | `module` | — | Application | applyQuery, emptyQuery, withSortPress, withColumnFilter, withSearch, withPageIndex, withGroup, toGridParams, fromGridParams, normalizeColumnState, serializeColumnState, parseColumnState: the engine the grid runs on, for a server mock, a URL and a saved view. |
|
|
76
78
|
| `slDataGridCell, slDataGridEditor, slDataGridHeader, slDataGridFilter, slDataGridColumnHelp, slDataGridDetail, slDataGridGroup, slDataGridEmpty` | `ng-template directives` | — | sl-data-grid | Every surface a consumer replaces, projected as content; the four column-scoped ones name a column or serve every column, and slDataGridColumnHelp names one column and draws its help button. row, cell, head and body are fixed: the layout and the roles are theirs. |
|
|
77
79
|
| `slDataGridFooter` | `attribute` | — | sl-data-grid | Pagination, a page-size select, a count: the consumer’s own controls projected into the bar the grid draws. |
|
package/docs/data-list.json
CHANGED
package/docs/data-list.md
CHANGED
|
@@ -131,7 +131,7 @@ Excerpt — not a complete module
|
|
|
131
131
|
|
|
132
132
|
## Tokens
|
|
133
133
|
|
|
134
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-md`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-8`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`
|
|
134
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-md`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-8`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-z-index-sticky`
|
|
135
135
|
|
|
136
136
|
## Examples
|
|
137
137
|
|
package/docs/date-field.json
CHANGED
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"type": "PlainDate | null",
|
|
128
128
|
"defaultValue": "—",
|
|
129
129
|
"appliesTo": "SlDateField",
|
|
130
|
-
"description": "The date the control shows. Present means the consumer owns it: the control asks and waits rather than moving it."
|
|
130
|
+
"description": "The date the control shows. Present means the consumer owns it: the control asks and waits rather than moving it. PlainDate is exported by @slotted/core/date. parseISODate(text) returns a PlainDate or null, and toISODate(date) returns 'YYYY-MM-DD'."
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"name": "defaultValue",
|
|
@@ -136,6 +136,13 @@
|
|
|
136
136
|
"appliesTo": "SlDateField",
|
|
137
137
|
"description": "The date the control starts from when nobody else writes one. Read once, in ngOnInit, because Angular binds inputs after it constructs a component."
|
|
138
138
|
},
|
|
139
|
+
{
|
|
140
|
+
"name": "granularity",
|
|
141
|
+
"type": "'day' | 'month'",
|
|
142
|
+
"defaultValue": "day",
|
|
143
|
+
"appliesTo": "SlDateField",
|
|
144
|
+
"description": "What the control holds. month shows the month and the year segments in the locale’s order, takes the first day of the month as its value, and submits YYYY-MM through name."
|
|
145
|
+
},
|
|
139
146
|
{
|
|
140
147
|
"name": "min",
|
|
141
148
|
"type": "PlainDate",
|
|
@@ -313,6 +320,7 @@
|
|
|
313
320
|
"--slotted-border-subtle",
|
|
314
321
|
"--slotted-control-border-color",
|
|
315
322
|
"--slotted-control-border-width",
|
|
323
|
+
"--slotted-control-focus-ring-offset",
|
|
316
324
|
"--slotted-control-font-family",
|
|
317
325
|
"--slotted-control-font-size-lg",
|
|
318
326
|
"--slotted-control-font-size-md",
|
|
@@ -395,7 +403,7 @@
|
|
|
395
403
|
"title": "Playground",
|
|
396
404
|
"note": "One control with every input on it, driven by the controls below the canvas. Type into it: each field takes digits, the arrows step it, and the clear button appears only once there is something to clear.",
|
|
397
405
|
"language": "html",
|
|
398
|
-
"source": "<div slField>\n <label slFieldLabel>
|
|
406
|
+
"source": "<div slField>\n <label slFieldLabel>Due date</label>\n <div slDateField clearable locale=\"pt-BR\" name=\"due-date\"></div>\n <span slFieldDescription>The invoice is due on this date.</span>\n</div>\n",
|
|
399
407
|
"verdict": "excerpt"
|
|
400
408
|
},
|
|
401
409
|
{
|
|
@@ -433,7 +441,7 @@
|
|
|
433
441
|
{
|
|
434
442
|
"id": "states",
|
|
435
443
|
"title": "States",
|
|
436
|
-
"note": "Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer; invalid keeps its focus ring and retargets its
|
|
444
|
+
"note": "Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer; invalid keeps its focus ring and retargets its color. Tab through the row to see each one answer.",
|
|
437
445
|
"language": "html",
|
|
438
446
|
"source": "<div slDateField readOnly></div>\n<div slDateField invalid></div>\n<div slDateField disabled></div>\n<div slDateField required></div>\n",
|
|
439
447
|
"verdict": "excerpt"
|
|
@@ -481,7 +489,7 @@
|
|
|
481
489
|
{
|
|
482
490
|
"id": "keyboard",
|
|
483
491
|
"title": "The keyboard",
|
|
484
|
-
"note": "Every key the spin-button pattern lists, on the field that has focus. Note two
|
|
492
|
+
"note": "Every key the spin-button pattern lists, on the field that has focus. Note two behaviors nothing else here has: a step wraps inside its own field, and a day a short month could not hold comes back when a longer one can.",
|
|
485
493
|
"language": "html",
|
|
486
494
|
"source": "<!-- ArrowUp / ArrowDown step one, wrapping inside the field -->\n<!-- PageUp / PageDown five for a day or a month, ten for a year -->\n<!-- Home / End the field's lowest and highest value -->\n<!-- ArrowLeft / Right the previous and next field, in writing order -->\n<!-- 0-9 fills the field and moves on when it is full -->\n<!-- Backspace / Delete empties one field back to its placeholder -->\n<div slDateField></div>\n",
|
|
487
495
|
"verdict": "excerpt"
|