@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
|
@@ -877,6 +877,42 @@ export class DatePickerInvoiceDue {
|
|
|
877
877
|
}
|
|
878
878
|
```
|
|
879
879
|
|
|
880
|
+
### iso-date.ts
|
|
881
|
+
|
|
882
|
+
Example
|
|
883
|
+
|
|
884
|
+
```ts
|
|
885
|
+
import { Component, computed, signal } from '@angular/core';
|
|
886
|
+
import type { CalendarValue } from '@slotted/angular/calendar';
|
|
887
|
+
import { SlDatePicker } from '@slotted/angular/date-picker';
|
|
888
|
+
import { SlField, SlFieldDescription, SlFieldLabel } from '@slotted/angular/field';
|
|
889
|
+
import { isPlainDate, parseISODate, toISODate } from '@slotted/core/date';
|
|
890
|
+
|
|
891
|
+
@Component({
|
|
892
|
+
selector: 'app-date-picker-iso-date',
|
|
893
|
+
imports: [SlDatePicker, SlField, SlFieldDescription, SlFieldLabel],
|
|
894
|
+
template: `
|
|
895
|
+
<div slField>
|
|
896
|
+
<label slFieldLabel>Statement date</label>
|
|
897
|
+
<div slDatePicker [value]="date()" (valueChange)="set($event.value)"></div>
|
|
898
|
+
<span slFieldDescription>{{ summary() }}</span>
|
|
899
|
+
</div>
|
|
900
|
+
`,
|
|
901
|
+
})
|
|
902
|
+
export class DatePickerIsoDate {
|
|
903
|
+
/* The API carries the date as text; the picker holds a PlainDate. */
|
|
904
|
+
protected readonly iso = signal('2026-10-19');
|
|
905
|
+
protected readonly date = computed(() => parseISODate(this.iso()));
|
|
906
|
+
protected readonly summary = computed(() =>
|
|
907
|
+
this.iso() === '' ? 'No date sent.' : `The API receives ${this.iso()}.`,
|
|
908
|
+
);
|
|
909
|
+
|
|
910
|
+
protected set(value: CalendarValue): void {
|
|
911
|
+
this.iso.set(isPlainDate(value) ? toISODate(value) : '');
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
```
|
|
915
|
+
|
|
880
916
|
### locale.ts
|
|
881
917
|
|
|
882
918
|
Example
|
package/docs/date-picker.json
CHANGED
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"trigger",
|
|
76
76
|
"positioner",
|
|
77
77
|
"content",
|
|
78
|
+
"grip",
|
|
78
79
|
"presets",
|
|
79
80
|
"footer"
|
|
80
81
|
]
|
|
@@ -118,6 +119,12 @@
|
|
|
118
119
|
"required": true,
|
|
119
120
|
"purpose": "The painted surface, with the same accessible name as the trigger. Its width comes from the calendar inside it, not from the field it opens from."
|
|
120
121
|
},
|
|
122
|
+
{
|
|
123
|
+
"part": "grip",
|
|
124
|
+
"element": "span, aria-hidden",
|
|
125
|
+
"required": false,
|
|
126
|
+
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line color. A pull down past half the sheet, or a flick down, closes it with the reason pointer; Escape and the press outside stay the accessible ways out."
|
|
127
|
+
},
|
|
121
128
|
{
|
|
122
129
|
"part": "presets",
|
|
123
130
|
"element": "your own element carrying slDatePickerPresets",
|
|
@@ -134,14 +141,14 @@
|
|
|
134
141
|
"api": [
|
|
135
142
|
{
|
|
136
143
|
"name": "value",
|
|
137
|
-
"type": "PlainDate | DateRange | PlainDate[] | null",
|
|
144
|
+
"type": "PlainDate | DateRange | PlainDate[] | PlainYearMonth | null",
|
|
138
145
|
"defaultValue": "—",
|
|
139
146
|
"appliesTo": "SlDatePicker",
|
|
140
|
-
"description": "The selected value, whose shape follows selectionMode. Binding it makes the value controlled."
|
|
147
|
+
"description": "The selected value, whose shape follows selectionMode. Binding it makes the value controlled. PlainDate is exported by @slotted/core/date. parseISODate(text) returns a PlainDate or null, toISODate(date) returns 'YYYY-MM-DD', and isPlainDate(value) narrows the CalendarValue (valueChange) reports."
|
|
141
148
|
},
|
|
142
149
|
{
|
|
143
150
|
"name": "defaultValue",
|
|
144
|
-
"type": "PlainDate | DateRange | PlainDate[] | null",
|
|
151
|
+
"type": "PlainDate | DateRange | PlainDate[] | PlainYearMonth | null",
|
|
145
152
|
"defaultValue": "—",
|
|
146
153
|
"appliesTo": "SlDatePicker",
|
|
147
154
|
"description": "The starting value of an uncontrolled date picker. Read once, when the date picker initializes."
|
|
@@ -162,14 +169,14 @@
|
|
|
162
169
|
},
|
|
163
170
|
{
|
|
164
171
|
"name": "min",
|
|
165
|
-
"type": "PlainDate",
|
|
172
|
+
"type": "PlainDate | PlainYearMonth",
|
|
166
173
|
"defaultValue": "—",
|
|
167
174
|
"appliesTo": "SlDatePicker",
|
|
168
175
|
"description": "The earliest date the field and the calendar accept. Earlier days are disabled in the calendar, an earlier typed date marks the date picker invalid, and a form reports slottedDateRange."
|
|
169
176
|
},
|
|
170
177
|
{
|
|
171
178
|
"name": "max",
|
|
172
|
-
"type": "PlainDate",
|
|
179
|
+
"type": "PlainDate | PlainYearMonth",
|
|
173
180
|
"defaultValue": "—",
|
|
174
181
|
"appliesTo": "SlDatePicker",
|
|
175
182
|
"description": "The latest date the field and the calendar accept. Later days are disabled in the calendar, a later typed date marks the date picker invalid, and a form reports slottedDateRange."
|
|
@@ -181,6 +188,13 @@
|
|
|
181
188
|
"appliesTo": "SlDatePicker",
|
|
182
189
|
"description": "Returns true for a date the reader cannot choose. The calendar disables it, a typed unavailable date marks the date picker invalid, and a form reports slottedDateUnavailable."
|
|
183
190
|
},
|
|
191
|
+
{
|
|
192
|
+
"name": "granularity",
|
|
193
|
+
"type": "'day' | 'month'",
|
|
194
|
+
"defaultValue": "day",
|
|
195
|
+
"appliesTo": "SlDatePicker",
|
|
196
|
+
"description": "What a choice is. month opens the calendar on the months of a year and chooses a month cell; the field shows the month and the year segments; value, defaultValue, min and max are PlainYearMonth from @slotted/core/date ({ year, month }), (valueChange) reports one, and name submits YYYY-MM. parseISOYearMonth and toISOYearMonth convert to and from that text. selectionMode, months, isDateUnavailable and the week inputs do not apply."
|
|
197
|
+
},
|
|
184
198
|
{
|
|
185
199
|
"name": "selectionMode",
|
|
186
200
|
"type": "'single' | 'range' | 'multiple'",
|
|
@@ -403,6 +417,7 @@
|
|
|
403
417
|
}
|
|
404
418
|
},
|
|
405
419
|
"tokens": [
|
|
420
|
+
"--slotted-border-strong",
|
|
406
421
|
"--slotted-border-subtle",
|
|
407
422
|
"--slotted-border-width-thin",
|
|
408
423
|
"--slotted-control-border-width",
|
|
@@ -415,6 +430,7 @@
|
|
|
415
430
|
"--slotted-control-radius",
|
|
416
431
|
"--slotted-control-transition-duration",
|
|
417
432
|
"--slotted-control-transition-easing",
|
|
433
|
+
"--slotted-date-picker-content-backdrop-filter",
|
|
418
434
|
"--slotted-date-picker-content-border-color",
|
|
419
435
|
"--slotted-date-picker-content-color",
|
|
420
436
|
"--slotted-date-picker-content-padding",
|
|
@@ -428,6 +444,7 @@
|
|
|
428
444
|
"--slotted-date-picker-trigger-hover-background",
|
|
429
445
|
"--slotted-date-picker-trigger-size",
|
|
430
446
|
"--slotted-disabled-foreground",
|
|
447
|
+
"--slotted-drawer-resizer-line-color",
|
|
431
448
|
"--slotted-duration-medium",
|
|
432
449
|
"--slotted-duration-short",
|
|
433
450
|
"--slotted-easing-enter",
|
|
@@ -436,8 +453,10 @@
|
|
|
436
453
|
"--slotted-focus-ring-color-invalid",
|
|
437
454
|
"--slotted-focus-ring-offset",
|
|
438
455
|
"--slotted-focus-ring-width",
|
|
456
|
+
"--slotted-radius-full",
|
|
439
457
|
"--slotted-radius-lg",
|
|
440
458
|
"--slotted-shadow-md",
|
|
459
|
+
"--slotted-space-11",
|
|
441
460
|
"--slotted-space-2",
|
|
442
461
|
"--slotted-space-4",
|
|
443
462
|
"--slotted-space-5",
|
|
@@ -636,6 +655,14 @@
|
|
|
636
655
|
"source": "import { Component, computed, signal } from '@angular/core';\nimport type { CalendarValue } from '@slotted/angular/calendar';\nimport { SlDatePicker } from '@slotted/angular/date-picker';\nimport { SlField, SlFieldDescription, SlFieldLabel } from '@slotted/angular/field';\nimport { SlSelect, SlSelectItem, type SelectSelection } from '@slotted/angular/select';\nimport { SlStack } from '@slotted/angular/stack';\nimport {\n addDays,\n createDateFormat,\n isPlainDate,\n plainDate,\n type PlainDate,\n} from '@slotted/core/date';\n\nconst TERMS = [\n { value: 'receipt', label: 'Due on receipt', days: 0 },\n { value: 'net-15', label: 'Net 15', days: 15 },\n { value: 'net-30', label: 'Net 30', days: 30 },\n { value: 'net-60', label: 'Net 60', days: 60 },\n];\nconst words = createDateFormat({ locale: 'en-US' });\n\n@Component({\n selector: 'app-date-picker-invoice-due',\n imports: [\n SlDatePicker,\n SlField,\n SlFieldDescription,\n SlFieldLabel,\n SlSelect,\n SlSelectItem,\n SlStack,\n ],\n template: `\n <div slStack [gap]=\"5\">\n <div slField required>\n <label slFieldLabel>Invoice date</label>\n <div slDatePicker [value]=\"issued()\" (valueChange)=\"setIssued($event.value)\"></div>\n </div>\n <div slField>\n <label slFieldLabel>Payment terms</label>\n <sl-select [items]=\"terms\" [(value)]=\"term\">\n @for (option of terms; track option.value) {\n <sl-select-item [value]=\"option.value\">{{ option.label }}</sl-select-item>\n }\n </sl-select>\n </div>\n <div slField readOnly>\n <label slFieldLabel>Due date</label>\n <div slDatePicker [value]=\"due()\"></div>\n <span slFieldDescription>{{ summary() }}</span>\n </div>\n </div>\n `,\n})\nexport class DatePickerInvoiceDue {\n protected readonly terms = TERMS;\n protected readonly issued = signal<PlainDate | null>(plainDate(2026, 9, 30));\n protected readonly term = signal<SelectSelection>('net-30');\n protected readonly due = computed(() => {\n const issued = this.issued();\n const days = TERMS.find((option) => option.value === this.term())?.days ?? 0;\n return issued === null ? null : addDays(issued, days);\n });\n protected readonly summary = computed(() => {\n const due = this.due();\n return due === null ? 'Set the invoice date first.' : `Payment is due ${words.describe(due)}.`;\n });\n\n protected setIssued(value: CalendarValue): void {\n this.issued.set(isPlainDate(value) ? value : null);\n }\n}\n",
|
|
637
656
|
"verdict": "example"
|
|
638
657
|
},
|
|
658
|
+
{
|
|
659
|
+
"id": "iso-date",
|
|
660
|
+
"title": "iso-date.ts",
|
|
661
|
+
"note": null,
|
|
662
|
+
"language": "ts",
|
|
663
|
+
"source": "import { Component, computed, signal } from '@angular/core';\nimport type { CalendarValue } from '@slotted/angular/calendar';\nimport { SlDatePicker } from '@slotted/angular/date-picker';\nimport { SlField, SlFieldDescription, SlFieldLabel } from '@slotted/angular/field';\nimport { isPlainDate, parseISODate, toISODate } from '@slotted/core/date';\n\n@Component({\n selector: 'app-date-picker-iso-date',\n imports: [SlDatePicker, SlField, SlFieldDescription, SlFieldLabel],\n template: `\n <div slField>\n <label slFieldLabel>Statement date</label>\n <div slDatePicker [value]=\"date()\" (valueChange)=\"set($event.value)\"></div>\n <span slFieldDescription>{{ summary() }}</span>\n </div>\n `,\n})\nexport class DatePickerIsoDate {\n /* The API carries the date as text; the picker holds a PlainDate. */\n protected readonly iso = signal('2026-10-19');\n protected readonly date = computed(() => parseISODate(this.iso()));\n protected readonly summary = computed(() =>\n this.iso() === '' ? 'No date sent.' : `The API receives ${this.iso()}.`,\n );\n\n protected set(value: CalendarValue): void {\n this.iso.set(isPlainDate(value) ? toISODate(value) : '');\n }\n}\n",
|
|
664
|
+
"verdict": "example"
|
|
665
|
+
},
|
|
639
666
|
{
|
|
640
667
|
"id": "locale",
|
|
641
668
|
"title": "locale.ts",
|
package/docs/date-picker.md
CHANGED
|
@@ -43,6 +43,7 @@ export class DatePickerBasic {}
|
|
|
43
43
|
| `trigger` | button | yes |
|
|
44
44
|
| `positioner` | div, after the control inside the root | yes |
|
|
45
45
|
| `content` | div with role="dialog" | yes |
|
|
46
|
+
| `grip` | span, aria-hidden | no |
|
|
46
47
|
| `presets` | your own element carrying slDatePickerPresets | no |
|
|
47
48
|
| `footer` | your own element carrying slDatePickerFooter | no |
|
|
48
49
|
|
|
@@ -50,13 +51,14 @@ export class DatePickerBasic {}
|
|
|
50
51
|
|
|
51
52
|
| Name | Type | Default | Applies to | Description |
|
|
52
53
|
| --- | --- | --- | --- | --- |
|
|
53
|
-
| `value` | `PlainDate \| DateRange \| PlainDate[] \| null` | — | SlDatePicker | The selected value, whose shape follows selectionMode. Binding it makes the value controlled. |
|
|
54
|
-
| `defaultValue` | `PlainDate \| DateRange \| PlainDate[] \| null` | — | SlDatePicker | The starting value of an uncontrolled date picker. Read once, when the date picker initializes. |
|
|
54
|
+
| `value` | `PlainDate \| DateRange \| PlainDate[] \| PlainYearMonth \| null` | — | SlDatePicker | The selected value, whose shape follows selectionMode. Binding it makes the value controlled. PlainDate is exported by @slotted/core/date. parseISODate(text) returns a PlainDate or null, toISODate(date) returns 'YYYY-MM-DD', and isPlainDate(value) narrows the CalendarValue (valueChange) reports. |
|
|
55
|
+
| `defaultValue` | `PlainDate \| DateRange \| PlainDate[] \| PlainYearMonth \| null` | — | SlDatePicker | The starting value of an uncontrolled date picker. Read once, when the date picker initializes. |
|
|
55
56
|
| `open` | `boolean` | — | SlDatePicker | Whether the calendar is showing. Binding it makes the open state controlled. |
|
|
56
57
|
| `defaultOpen` | `boolean` | false | SlDatePicker | Whether the calendar shows when the date picker initializes. Focus does not move into it. |
|
|
57
|
-
| `min` | `PlainDate` | — | SlDatePicker | The earliest date the field and the calendar accept. Earlier days are disabled in the calendar, an earlier typed date marks the date picker invalid, and a form reports slottedDateRange. |
|
|
58
|
-
| `max` | `PlainDate` | — | SlDatePicker | The latest date the field and the calendar accept. Later days are disabled in the calendar, a later typed date marks the date picker invalid, and a form reports slottedDateRange. |
|
|
58
|
+
| `min` | `PlainDate \| PlainYearMonth` | — | SlDatePicker | The earliest date the field and the calendar accept. Earlier days are disabled in the calendar, an earlier typed date marks the date picker invalid, and a form reports slottedDateRange. |
|
|
59
|
+
| `max` | `PlainDate \| PlainYearMonth` | — | SlDatePicker | The latest date the field and the calendar accept. Later days are disabled in the calendar, a later typed date marks the date picker invalid, and a form reports slottedDateRange. |
|
|
59
60
|
| `isDateUnavailable` | `(date: PlainDate) => boolean` | — | SlDatePicker | Returns true for a date the reader cannot choose. The calendar disables it, a typed unavailable date marks the date picker invalid, and a form reports slottedDateUnavailable. |
|
|
61
|
+
| `granularity` | `'day' \| 'month'` | day | SlDatePicker | What a choice is. month opens the calendar on the months of a year and chooses a month cell; the field shows the month and the year segments; value, defaultValue, min and max are PlainYearMonth from @slotted/core/date ({ year, month }), (valueChange) reports one, and name submits YYYY-MM. parseISOYearMonth and toISOYearMonth convert to and from that text. selectionMode, months, isDateUnavailable and the week inputs do not apply. |
|
|
60
62
|
| `selectionMode` | `'single' \| 'range' \| 'multiple'` | single | SlDatePicker | How many dates the calendar selects, and so the shape of the value. The field shows a single date only; for a start and an end, use slDateRangePicker. |
|
|
61
63
|
| `months` | `number` | 1 | SlDatePicker | How many months the calendar draws side by side. |
|
|
62
64
|
| `defaultView` | `'day' \| 'month' \| 'year'` | day | SlDatePicker | The grid the calendar opens on. |
|
|
@@ -114,7 +116,7 @@ export class DatePickerBasic {}
|
|
|
114
116
|
|
|
115
117
|
## Tokens
|
|
116
118
|
|
|
117
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-width`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-date-picker-content-border-color`, `--slotted-date-picker-content-color`, `--slotted-date-picker-content-padding`, `--slotted-date-picker-content-radius`, `--slotted-date-picker-content-shadow`, `--slotted-date-picker-invalid-focus-ring-color`, `--slotted-date-picker-radius`, `--slotted-date-picker-surface`, `--slotted-date-picker-trigger-active-background`, `--slotted-date-picker-trigger-color`, `--slotted-date-picker-trigger-hover-background`, `--slotted-date-picker-trigger-size`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
119
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-width`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-date-picker-content-backdrop-filter`, `--slotted-date-picker-content-border-color`, `--slotted-date-picker-content-color`, `--slotted-date-picker-content-padding`, `--slotted-date-picker-content-radius`, `--slotted-date-picker-content-shadow`, `--slotted-date-picker-invalid-focus-ring-color`, `--slotted-date-picker-radius`, `--slotted-date-picker-surface`, `--slotted-date-picker-trigger-active-background`, `--slotted-date-picker-trigger-color`, `--slotted-date-picker-trigger-hover-background`, `--slotted-date-picker-trigger-size`, `--slotted-disabled-foreground`, `--slotted-drawer-resizer-line-color`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-11`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
118
120
|
|
|
119
121
|
## Examples
|
|
120
122
|
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
"trigger",
|
|
94
94
|
"positioner",
|
|
95
95
|
"content",
|
|
96
|
+
"grip",
|
|
96
97
|
"head",
|
|
97
98
|
"head-start",
|
|
98
99
|
"head-end",
|
|
@@ -167,6 +168,12 @@
|
|
|
167
168
|
"required": false,
|
|
168
169
|
"purpose": "The painted surface, with the same accessible name as the trigger. Its width is capped by the room available, so two months that do not fit side by side wrap."
|
|
169
170
|
},
|
|
171
|
+
{
|
|
172
|
+
"part": "grip",
|
|
173
|
+
"element": "span, aria-hidden",
|
|
174
|
+
"required": false,
|
|
175
|
+
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line color. A pull down past half the sheet, or a flick down, closes it with the reason pointer; Escape and the press outside stay the accessible ways out."
|
|
176
|
+
},
|
|
170
177
|
{
|
|
171
178
|
"part": "head",
|
|
172
179
|
"element": "div",
|
|
@@ -542,6 +549,7 @@
|
|
|
542
549
|
}
|
|
543
550
|
},
|
|
544
551
|
"tokens": [
|
|
552
|
+
"--slotted-border-strong",
|
|
545
553
|
"--slotted-border-subtle",
|
|
546
554
|
"--slotted-border-width-thin",
|
|
547
555
|
"--slotted-control-border-color",
|
|
@@ -611,6 +619,7 @@
|
|
|
611
619
|
"--slotted-disabled-background",
|
|
612
620
|
"--slotted-disabled-border",
|
|
613
621
|
"--slotted-disabled-foreground",
|
|
622
|
+
"--slotted-drawer-resizer-line-color",
|
|
614
623
|
"--slotted-duration-medium",
|
|
615
624
|
"--slotted-duration-short",
|
|
616
625
|
"--slotted-easing-enter",
|
|
@@ -625,11 +634,13 @@
|
|
|
625
634
|
"--slotted-font-weight-regular",
|
|
626
635
|
"--slotted-font-weight-semibold",
|
|
627
636
|
"--slotted-line-height-sm",
|
|
637
|
+
"--slotted-radius-full",
|
|
628
638
|
"--slotted-radius-lg",
|
|
629
639
|
"--slotted-radius-none",
|
|
630
640
|
"--slotted-radius-xs",
|
|
631
641
|
"--slotted-shadow-md",
|
|
632
642
|
"--slotted-space-1",
|
|
643
|
+
"--slotted-space-11",
|
|
633
644
|
"--slotted-space-2",
|
|
634
645
|
"--slotted-space-3",
|
|
635
646
|
"--slotted-space-4",
|
|
@@ -47,6 +47,7 @@ export class DateRangePickerBasic {}
|
|
|
47
47
|
| `trigger` | button | yes |
|
|
48
48
|
| `positioner` | div | no |
|
|
49
49
|
| `content` | div with role="dialog" | no |
|
|
50
|
+
| `grip` | span, aria-hidden | no |
|
|
50
51
|
| `head` | div | no |
|
|
51
52
|
| `head-start` | span | no |
|
|
52
53
|
| `head-end` | span | no |
|
|
@@ -135,7 +136,7 @@ export class DateRangePickerBasic {}
|
|
|
135
136
|
|
|
136
137
|
## Tokens
|
|
137
138
|
|
|
138
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-date-range-picker-action-active-background`, `--slotted-date-range-picker-action-color`, `--slotted-date-range-picker-action-hover-background`, `--slotted-date-range-picker-action-size`, `--slotted-date-range-picker-background`, `--slotted-date-range-picker-border-color`, `--slotted-date-range-picker-color`, `--slotted-date-range-picker-content-border-color`, `--slotted-date-range-picker-content-color`, `--slotted-date-range-picker-content-padding`, `--slotted-date-range-picker-content-radius`, `--slotted-date-range-picker-content-shadow`, `--slotted-date-range-picker-current-color`, `--slotted-date-range-picker-current-size`, `--slotted-date-range-picker-disabled-background`, `--slotted-date-range-picker-disabled-border-color`, `--slotted-date-range-picker-disabled-color`, `--slotted-date-range-picker-hover-border-color`, `--slotted-date-range-picker-invalid-border-color`, `--slotted-date-range-picker-invalid-edge-width`, `--slotted-date-range-picker-invalid-focus-ring-color`, `--slotted-date-range-picker-length-color`, `--slotted-date-range-picker-limit-color`, `--slotted-date-range-picker-pending-color`, `--slotted-date-range-picker-placeholder-color`, `--slotted-date-range-picker-plain-hover-background`, `--slotted-date-range-picker-preset-active-background`, `--slotted-date-range-picker-preset-hover-background`, `--slotted-date-range-picker-preset-selected-background`, `--slotted-date-range-picker-preset-selected-color`, `--slotted-date-range-picker-radius`, `--slotted-date-range-picker-readonly-background`, `--slotted-date-range-picker-separator-color`, `--slotted-date-range-picker-shadow`, `--slotted-date-range-picker-sheet-inline-size`, `--slotted-date-range-picker-subtle-background`, `--slotted-date-range-picker-subtle-border-color`, `--slotted-date-range-picker-subtle-hover-background`, `--slotted-date-range-picker-surface`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-line-height-sm`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-radius-xs`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface-raised`, `--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-subtle-hover`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
139
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-date-range-picker-action-active-background`, `--slotted-date-range-picker-action-color`, `--slotted-date-range-picker-action-hover-background`, `--slotted-date-range-picker-action-size`, `--slotted-date-range-picker-background`, `--slotted-date-range-picker-border-color`, `--slotted-date-range-picker-color`, `--slotted-date-range-picker-content-border-color`, `--slotted-date-range-picker-content-color`, `--slotted-date-range-picker-content-padding`, `--slotted-date-range-picker-content-radius`, `--slotted-date-range-picker-content-shadow`, `--slotted-date-range-picker-current-color`, `--slotted-date-range-picker-current-size`, `--slotted-date-range-picker-disabled-background`, `--slotted-date-range-picker-disabled-border-color`, `--slotted-date-range-picker-disabled-color`, `--slotted-date-range-picker-hover-border-color`, `--slotted-date-range-picker-invalid-border-color`, `--slotted-date-range-picker-invalid-edge-width`, `--slotted-date-range-picker-invalid-focus-ring-color`, `--slotted-date-range-picker-length-color`, `--slotted-date-range-picker-limit-color`, `--slotted-date-range-picker-pending-color`, `--slotted-date-range-picker-placeholder-color`, `--slotted-date-range-picker-plain-hover-background`, `--slotted-date-range-picker-preset-active-background`, `--slotted-date-range-picker-preset-hover-background`, `--slotted-date-range-picker-preset-selected-background`, `--slotted-date-range-picker-preset-selected-color`, `--slotted-date-range-picker-radius`, `--slotted-date-range-picker-readonly-background`, `--slotted-date-range-picker-separator-color`, `--slotted-date-range-picker-shadow`, `--slotted-date-range-picker-sheet-inline-size`, `--slotted-date-range-picker-subtle-background`, `--slotted-date-range-picker-subtle-border-color`, `--slotted-date-range-picker-subtle-hover-background`, `--slotted-date-range-picker-surface`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-drawer-resizer-line-color`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-line-height-sm`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-radius-xs`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-11`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface-raised`, `--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-subtle-hover`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
139
140
|
|
|
140
141
|
## Examples
|
|
141
142
|
|
package/docs/datetime-field.json
CHANGED
|
@@ -421,6 +421,7 @@
|
|
|
421
421
|
"--slotted-border-subtle",
|
|
422
422
|
"--slotted-control-border-color",
|
|
423
423
|
"--slotted-control-border-width",
|
|
424
|
+
"--slotted-control-focus-ring-offset",
|
|
424
425
|
"--slotted-control-font-family",
|
|
425
426
|
"--slotted-control-font-size-lg",
|
|
426
427
|
"--slotted-control-font-size-md",
|
|
@@ -514,7 +515,7 @@
|
|
|
514
515
|
"title": "Playground",
|
|
515
516
|
"note": "One control with every axis on it, driven by the controls below the canvas. Type into it: the run walks the whole row and crosses from the year into the hour without a key that moves focus, and pressing + turns it into a duration from now.",
|
|
516
517
|
"language": "html",
|
|
517
|
-
"source": "<div slField>\n <label slFieldLabel>
|
|
518
|
+
"source": "<div slField>\n <label slFieldLabel>Appointment start</label>\n <div slDateTimeField name=\"start\" locale=\"pt-BR\" [clearable]=\"true\"></div>\n <span slFieldDescription>The appointment starts on this date and time.</span>\n</div>\n",
|
|
518
519
|
"verdict": "excerpt"
|
|
519
520
|
},
|
|
520
521
|
{
|
|
@@ -546,7 +547,7 @@
|
|
|
546
547
|
"title": "The half that is missing",
|
|
547
548
|
"note": "A reader who wrote a day and walked away is not an empty control. The value is null — which every surveyed implementation reports — and which half is missing is what none of them can say: it is on the root as data-incomplete, on the request as incomplete, and in a reactive form as a slottedDateTimeIncomplete error carrying the missing half.",
|
|
548
549
|
"language": "html",
|
|
549
|
-
"source": "<div slField [invalid]=\"control.touched && control.invalid\">\n <label slFieldLabel>
|
|
550
|
+
"source": "<div slField [invalid]=\"control.touched && control.invalid\">\n <label slFieldLabel>Start</label>\n <div slDateTimeField [formControl]=\"control\" locale=\"pt-BR\"></div>\n @if (control.errors?.['slottedDateTimeIncomplete']; as incomplete) {\n <span slFieldError>Falta escrever a {{ incomplete.missing }}.</span>\n }\n</div>\n",
|
|
550
551
|
"verdict": "excerpt"
|
|
551
552
|
},
|
|
552
553
|
{
|
|
@@ -608,7 +609,7 @@
|
|
|
608
609
|
{
|
|
609
610
|
"id": "states",
|
|
610
611
|
"title": "States",
|
|
611
|
-
"note": "Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer, and a reactive form sets it through setDisabledState rather than through the input; invalid keeps its focus ring and retargets its
|
|
612
|
+
"note": "Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer, and a reactive form sets it through setDisabledState rather than through the input; invalid keeps its focus ring and retargets its color; and incomplete is its own quieter state, one tone short of the refused value.",
|
|
612
613
|
"language": "html",
|
|
613
614
|
"source": "<div slDateTimeField readOnly [defaultValue]=\"consultation\"></div>\n<div slDateTimeField disabled [defaultValue]=\"consultation\"></div>\n<div slDateTimeField required [defaultValue]=\"consultation\"></div>\n<div slDateTimeField invalid [defaultValue]=\"consultation\"></div>\n",
|
|
614
615
|
"verdict": "excerpt"
|
|
@@ -634,7 +635,7 @@
|
|
|
634
635
|
"title": "In a form",
|
|
635
636
|
"note": "The control belongs in a reactive form and in a template form, through ControlValueAccessor — the integration point React has no equivalent of. Beside it, the value still reaches a plain form post as YYYY-MM-DDTHH:mm:ss through the hidden input, which is input[type=datetime-local]’s own value format.",
|
|
636
637
|
"language": "html",
|
|
637
|
-
"source": "<form [formGroup]=\"form\">\n <div slField [invalid]=\"form.controls.
|
|
638
|
+
"source": "<form [formGroup]=\"form\">\n <div slField [invalid]=\"form.controls.start.touched && form.controls.start.invalid\">\n <label slFieldLabel>Appointment start</label>\n <div slDateTimeField formControlName=\"start\" locale=\"pt-BR\"></div>\n <span slFieldError>Choose a time within business hours.</span>\n </div>\n</form>\n",
|
|
638
639
|
"verdict": "excerpt"
|
|
639
640
|
},
|
|
640
641
|
{
|
package/docs/datetime-field.md
CHANGED
|
@@ -17,9 +17,9 @@ Excerpt — not a complete module
|
|
|
17
17
|
|
|
18
18
|
```html
|
|
19
19
|
<div slField>
|
|
20
|
-
<label slFieldLabel>
|
|
21
|
-
<div slDateTimeField name="
|
|
22
|
-
<span slFieldDescription>
|
|
20
|
+
<label slFieldLabel>Appointment start</label>
|
|
21
|
+
<div slDateTimeField name="start" locale="pt-BR" [clearable]="true"></div>
|
|
22
|
+
<span slFieldDescription>The appointment starts on this date and time.</span>
|
|
23
23
|
</div>
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -105,7 +105,7 @@ Excerpt — not a complete module
|
|
|
105
105
|
|
|
106
106
|
## Tokens
|
|
107
107
|
|
|
108
|
-
`--slotted-border-subtle`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-datetime-field-action-active-background`, `--slotted-datetime-field-action-color`, `--slotted-datetime-field-action-hover-background`, `--slotted-datetime-field-action-size`, `--slotted-datetime-field-adornment-color`, `--slotted-datetime-field-background`, `--slotted-datetime-field-border-color`, `--slotted-datetime-field-color`, `--slotted-datetime-field-disabled-background`, `--slotted-datetime-field-disabled-border-color`, `--slotted-datetime-field-disabled-color`, `--slotted-datetime-field-half-gap`, `--slotted-datetime-field-hover-border-color`, `--slotted-datetime-field-icon-size-min`, `--slotted-datetime-field-incomplete-border-color`, `--slotted-datetime-field-invalid-border-color`, `--slotted-datetime-field-invalid-edge-width`, `--slotted-datetime-field-invalid-focus-ring-color`, `--slotted-datetime-field-literal-color`, `--slotted-datetime-field-padding-block`, `--slotted-datetime-field-period-min-inline-size`, `--slotted-datetime-field-placeholder-color`, `--slotted-datetime-field-plain-hover-background`, `--slotted-datetime-field-preview-color`, `--slotted-datetime-field-preview-day-color`, `--slotted-datetime-field-radius`, `--slotted-datetime-field-readonly-background`, `--slotted-datetime-field-relative-border-color`, `--slotted-datetime-field-segment-focus-background`, `--slotted-datetime-field-segment-focus-color`, `--slotted-datetime-field-segment-min-inline-size`, `--slotted-datetime-field-segment-padding-inline`, `--slotted-datetime-field-segment-radius`, `--slotted-datetime-field-shadow`, `--slotted-datetime-field-subtle-background`, `--slotted-datetime-field-subtle-border-color`, `--slotted-datetime-field-subtle-hover-background`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-weight-semibold`, `--slotted-radius-none`, `--slotted-radius-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-warning-border`
|
|
108
|
+
`--slotted-border-subtle`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-datetime-field-action-active-background`, `--slotted-datetime-field-action-color`, `--slotted-datetime-field-action-hover-background`, `--slotted-datetime-field-action-size`, `--slotted-datetime-field-adornment-color`, `--slotted-datetime-field-background`, `--slotted-datetime-field-border-color`, `--slotted-datetime-field-color`, `--slotted-datetime-field-disabled-background`, `--slotted-datetime-field-disabled-border-color`, `--slotted-datetime-field-disabled-color`, `--slotted-datetime-field-half-gap`, `--slotted-datetime-field-hover-border-color`, `--slotted-datetime-field-icon-size-min`, `--slotted-datetime-field-incomplete-border-color`, `--slotted-datetime-field-invalid-border-color`, `--slotted-datetime-field-invalid-edge-width`, `--slotted-datetime-field-invalid-focus-ring-color`, `--slotted-datetime-field-literal-color`, `--slotted-datetime-field-padding-block`, `--slotted-datetime-field-period-min-inline-size`, `--slotted-datetime-field-placeholder-color`, `--slotted-datetime-field-plain-hover-background`, `--slotted-datetime-field-preview-color`, `--slotted-datetime-field-preview-day-color`, `--slotted-datetime-field-radius`, `--slotted-datetime-field-readonly-background`, `--slotted-datetime-field-relative-border-color`, `--slotted-datetime-field-segment-focus-background`, `--slotted-datetime-field-segment-focus-color`, `--slotted-datetime-field-segment-min-inline-size`, `--slotted-datetime-field-segment-padding-inline`, `--slotted-datetime-field-segment-radius`, `--slotted-datetime-field-shadow`, `--slotted-datetime-field-subtle-background`, `--slotted-datetime-field-subtle-border-color`, `--slotted-datetime-field-subtle-hover-background`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-weight-semibold`, `--slotted-radius-none`, `--slotted-radius-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-warning-border`
|
|
109
109
|
|
|
110
110
|
## Examples
|
|
111
111
|
|
|
@@ -154,7 +154,7 @@ Excerpt — not a complete module
|
|
|
154
154
|
|
|
155
155
|
```html
|
|
156
156
|
<div slField [invalid]="control.touched && control.invalid">
|
|
157
|
-
<label slFieldLabel>
|
|
157
|
+
<label slFieldLabel>Start</label>
|
|
158
158
|
<div slDateTimeField [formControl]="control" locale="pt-BR"></div>
|
|
159
159
|
@if (control.errors?.['slottedDateTimeIncomplete']; as incomplete) {
|
|
160
160
|
<span slFieldError>Falta escrever a {{ incomplete.missing }}.</span>
|
|
@@ -244,7 +244,7 @@ Excerpt — not a complete module
|
|
|
244
244
|
|
|
245
245
|
### States
|
|
246
246
|
|
|
247
|
-
Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer, and a reactive form sets it through setDisabledState rather than through the input; invalid keeps its focus ring and retargets its
|
|
247
|
+
Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer, and a reactive form sets it through setDisabledState rather than through the input; invalid keeps its focus ring and retargets its color; and incomplete is its own quieter state, one tone short of the refused value.
|
|
248
248
|
|
|
249
249
|
Excerpt — not a complete module
|
|
250
250
|
|
|
@@ -293,10 +293,10 @@ Excerpt — not a complete module
|
|
|
293
293
|
|
|
294
294
|
```html
|
|
295
295
|
<form [formGroup]="form">
|
|
296
|
-
<div slField [invalid]="form.controls.
|
|
297
|
-
<label slFieldLabel>
|
|
298
|
-
<div slDateTimeField formControlName="
|
|
299
|
-
<span slFieldError>
|
|
296
|
+
<div slField [invalid]="form.controls.start.touched && form.controls.start.invalid">
|
|
297
|
+
<label slFieldLabel>Appointment start</label>
|
|
298
|
+
<div slDateTimeField formControlName="start" locale="pt-BR"></div>
|
|
299
|
+
<span slFieldError>Choose a time within business hours.</span>
|
|
300
300
|
</div>
|
|
301
301
|
</form>
|
|
302
302
|
```
|
|
@@ -100,6 +100,7 @@
|
|
|
100
100
|
"trigger",
|
|
101
101
|
"positioner",
|
|
102
102
|
"content",
|
|
103
|
+
"grip",
|
|
103
104
|
"panels",
|
|
104
105
|
"date-panel",
|
|
105
106
|
"time-panel",
|
|
@@ -152,6 +153,12 @@
|
|
|
152
153
|
"required": false,
|
|
153
154
|
"purpose": "The painted panel, with the same accessible name as the trigger. It holds a grid and a listbox, the arrangement the APG Date Picker Combobox example uses for its popup. data-open-to names the surface that takes focus on open."
|
|
154
155
|
},
|
|
156
|
+
{
|
|
157
|
+
"part": "grip",
|
|
158
|
+
"element": "span, aria-hidden",
|
|
159
|
+
"required": false,
|
|
160
|
+
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line color. A pull down past half the sheet, or a flick down, closes it with the reason pointer; Escape and the press outside stay the accessible ways out."
|
|
161
|
+
},
|
|
155
162
|
{
|
|
156
163
|
"part": "head",
|
|
157
164
|
"element": "div",
|
|
@@ -566,6 +573,7 @@
|
|
|
566
573
|
}
|
|
567
574
|
},
|
|
568
575
|
"tokens": [
|
|
576
|
+
"--slotted-border-strong",
|
|
569
577
|
"--slotted-border-subtle",
|
|
570
578
|
"--slotted-border-width-thin",
|
|
571
579
|
"--slotted-control-border-color",
|
|
@@ -611,6 +619,7 @@
|
|
|
611
619
|
"--slotted-datetime-picker-trigger-hover-background",
|
|
612
620
|
"--slotted-datetime-picker-trigger-size",
|
|
613
621
|
"--slotted-disabled-foreground",
|
|
622
|
+
"--slotted-drawer-resizer-line-color",
|
|
614
623
|
"--slotted-duration-medium",
|
|
615
624
|
"--slotted-duration-short",
|
|
616
625
|
"--slotted-easing-enter",
|
|
@@ -621,10 +630,11 @@
|
|
|
621
630
|
"--slotted-focus-ring-width",
|
|
622
631
|
"--slotted-font-size-sm",
|
|
623
632
|
"--slotted-font-weight-medium",
|
|
633
|
+
"--slotted-radius-full",
|
|
624
634
|
"--slotted-radius-lg",
|
|
625
|
-
"--slotted-radius-sm",
|
|
626
635
|
"--slotted-shadow-md",
|
|
627
636
|
"--slotted-space-1",
|
|
637
|
+
"--slotted-space-11",
|
|
628
638
|
"--slotted-space-2",
|
|
629
639
|
"--slotted-space-3",
|
|
630
640
|
"--slotted-space-4",
|
package/docs/datetime-picker.md
CHANGED
|
@@ -48,6 +48,7 @@ export class DateTimePickerBasic {
|
|
|
48
48
|
| `trigger` | button | yes |
|
|
49
49
|
| `positioner` | div, after the control inside the root | no |
|
|
50
50
|
| `content` | div with role="dialog" | no |
|
|
51
|
+
| `grip` | span, aria-hidden | no |
|
|
51
52
|
| `head` | div | no |
|
|
52
53
|
| `head-value` | span | no |
|
|
53
54
|
| `now` | button | no |
|
|
@@ -143,7 +144,7 @@ export class DateTimePickerBasic {
|
|
|
143
144
|
|
|
144
145
|
## Tokens
|
|
145
146
|
|
|
146
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-size-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-datetime-picker-content-border-color`, `--slotted-datetime-picker-content-color`, `--slotted-datetime-picker-content-padding`, `--slotted-datetime-picker-content-radius`, `--slotted-datetime-picker-content-shadow`, `--slotted-datetime-picker-invalid-focus-ring-color`, `--slotted-datetime-picker-label-color`, `--slotted-datetime-picker-list-block-size`, `--slotted-datetime-picker-now-active-background`, `--slotted-datetime-picker-now-background`, `--slotted-datetime-picker-now-border-color`, `--slotted-datetime-picker-now-color`, `--slotted-datetime-picker-now-hover-background`, `--slotted-datetime-picker-now-hover-border-color`, `--slotted-datetime-picker-now-icon-color`, `--slotted-datetime-picker-option-current-background`, `--slotted-datetime-picker-option-hover-background`, `--slotted-datetime-picker-option-radius`, `--slotted-datetime-picker-option-selected-background`, `--slotted-datetime-picker-option-selected-color`, `--slotted-datetime-picker-option-selected-hover-background`, `--slotted-datetime-picker-radius`, `--slotted-datetime-picker-sheet-inline-size`, `--slotted-datetime-picker-surface`, `--slotted-datetime-picker-time-panel-inline-size`, `--slotted-datetime-picker-trigger-active-background`, `--slotted-datetime-picker-trigger-color`, `--slotted-datetime-picker-trigger-hover-background`, `--slotted-datetime-picker-trigger-size`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-sm`, `--slotted-font-weight-medium`, `--slotted-radius-
|
|
147
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-size-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-datetime-picker-content-border-color`, `--slotted-datetime-picker-content-color`, `--slotted-datetime-picker-content-padding`, `--slotted-datetime-picker-content-radius`, `--slotted-datetime-picker-content-shadow`, `--slotted-datetime-picker-invalid-focus-ring-color`, `--slotted-datetime-picker-label-color`, `--slotted-datetime-picker-list-block-size`, `--slotted-datetime-picker-now-active-background`, `--slotted-datetime-picker-now-background`, `--slotted-datetime-picker-now-border-color`, `--slotted-datetime-picker-now-color`, `--slotted-datetime-picker-now-hover-background`, `--slotted-datetime-picker-now-hover-border-color`, `--slotted-datetime-picker-now-icon-color`, `--slotted-datetime-picker-option-current-background`, `--slotted-datetime-picker-option-hover-background`, `--slotted-datetime-picker-option-radius`, `--slotted-datetime-picker-option-selected-background`, `--slotted-datetime-picker-option-selected-color`, `--slotted-datetime-picker-option-selected-hover-background`, `--slotted-datetime-picker-radius`, `--slotted-datetime-picker-sheet-inline-size`, `--slotted-datetime-picker-surface`, `--slotted-datetime-picker-time-panel-inline-size`, `--slotted-datetime-picker-trigger-active-background`, `--slotted-datetime-picker-trigger-color`, `--slotted-datetime-picker-trigger-hover-background`, `--slotted-datetime-picker-trigger-size`, `--slotted-disabled-foreground`, `--slotted-drawer-resizer-line-color`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-sm`, `--slotted-font-weight-medium`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-11`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-6`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
147
148
|
|
|
148
149
|
## Examples
|
|
149
150
|
|
|
@@ -104,8 +104,8 @@ Excerpt — not a complete module
|
|
|
104
104
|
```html
|
|
105
105
|
<div slDateTimeRangePicker>
|
|
106
106
|
<div slDateTimeRangePickerPresets>
|
|
107
|
-
<button [slDateTimeRangePickerPreset]="weekend">
|
|
108
|
-
<button [slDateTimeRangePickerPreset]="week">
|
|
107
|
+
<button [slDateTimeRangePickerPreset]="weekend">Weekend</button>
|
|
108
|
+
<button [slDateTimeRangePickerPreset]="week">One week</button>
|
|
109
109
|
</div>
|
|
110
110
|
</div>
|
|
111
111
|
```
|
|
@@ -204,7 +204,7 @@ Excerpt — not a complete module
|
|
|
204
204
|
{{ label }} <small>{{ duration }}</small>
|
|
205
205
|
</ng-template>
|
|
206
206
|
</div>
|
|
207
|
-
<button type="button" (click)="picker.openSurface()">
|
|
207
|
+
<button type="button" (click)="picker.openSurface()">Open</button>
|
|
208
208
|
```
|
|
209
209
|
|
|
210
210
|
### Keyboard
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
"hidden-input",
|
|
105
105
|
"positioner",
|
|
106
106
|
"content",
|
|
107
|
+
"grip",
|
|
107
108
|
"head",
|
|
108
109
|
"tabs",
|
|
109
110
|
"tab",
|
|
@@ -183,6 +184,12 @@
|
|
|
183
184
|
"required": false,
|
|
184
185
|
"purpose": "The painted surface, carrying role=\"dialog\" and the same name as the trigger. Sized by the calendar and the list, capped at thirty rems and by the room the positioner measured."
|
|
185
186
|
},
|
|
187
|
+
{
|
|
188
|
+
"part": "grip",
|
|
189
|
+
"element": "span, aria-hidden",
|
|
190
|
+
"required": false,
|
|
191
|
+
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line color. A pull down past half the sheet, or a flick down, closes it with the reason pointer; Escape and the press outside stay the accessible ways out."
|
|
192
|
+
},
|
|
186
193
|
{
|
|
187
194
|
"part": "head",
|
|
188
195
|
"element": "div",
|
|
@@ -732,6 +739,7 @@
|
|
|
732
739
|
}
|
|
733
740
|
},
|
|
734
741
|
"tokens": [
|
|
742
|
+
"--slotted-border-strong",
|
|
735
743
|
"--slotted-border-subtle",
|
|
736
744
|
"--slotted-border-width-thin",
|
|
737
745
|
"--slotted-control-border-color",
|
|
@@ -819,6 +827,7 @@
|
|
|
819
827
|
"--slotted-disabled-background",
|
|
820
828
|
"--slotted-disabled-border",
|
|
821
829
|
"--slotted-disabled-foreground",
|
|
830
|
+
"--slotted-drawer-resizer-line-color",
|
|
822
831
|
"--slotted-duration-medium",
|
|
823
832
|
"--slotted-duration-short",
|
|
824
833
|
"--slotted-easing-enter",
|
|
@@ -834,6 +843,7 @@
|
|
|
834
843
|
"--slotted-font-weight-semibold",
|
|
835
844
|
"--slotted-letter-spacing-wide",
|
|
836
845
|
"--slotted-line-height-sm",
|
|
846
|
+
"--slotted-radius-full",
|
|
837
847
|
"--slotted-radius-lg",
|
|
838
848
|
"--slotted-radius-none",
|
|
839
849
|
"--slotted-radius-pill",
|
|
@@ -841,6 +851,7 @@
|
|
|
841
851
|
"--slotted-radius-xs",
|
|
842
852
|
"--slotted-shadow-md",
|
|
843
853
|
"--slotted-space-1",
|
|
854
|
+
"--slotted-space-11",
|
|
844
855
|
"--slotted-space-2",
|
|
845
856
|
"--slotted-space-3",
|
|
846
857
|
"--slotted-space-4",
|
|
@@ -872,7 +883,7 @@
|
|
|
872
883
|
"title": "Playground",
|
|
873
884
|
"note": "A car picked up on the 12th and returned on the 16th. The frame is one line: press it and the two tabs, the field, the hint, the calendar and the list of the current end open under it. Every input is on the controls panel.",
|
|
874
885
|
"language": "html",
|
|
875
|
-
"source": "<div slField>\n <label slFieldLabel>
|
|
886
|
+
"source": "<div slField>\n <label slFieldLabel>Pickup and return</label>\n <div\n slDateTimeRangePicker\n clearable\n locale=\"pt-BR\"\n [messages]=\"{ start: 'Pickup', end: 'Return' }\"\n [defaultValue]=\"rental\"\n ></div>\n</div>\n",
|
|
876
887
|
"verdict": "excerpt"
|
|
877
888
|
},
|
|
878
889
|
{
|
|
@@ -944,7 +955,7 @@
|
|
|
944
955
|
"title": "Presets",
|
|
945
956
|
"note": "The rentals the agency offers by name. Each is a button with slDateTimeRangePickerPreset and its own range; pressing one writes the value and closes, and the one equal to the value is marked. The list is the product’s.",
|
|
946
957
|
"language": "html",
|
|
947
|
-
"source": "<div slDateTimeRangePicker>\n <div slDateTimeRangePickerPresets>\n <button [slDateTimeRangePickerPreset]=\"weekend\">
|
|
958
|
+
"source": "<div slDateTimeRangePicker>\n <div slDateTimeRangePickerPresets>\n <button [slDateTimeRangePickerPreset]=\"weekend\">Weekend</button>\n <button [slDateTimeRangePickerPreset]=\"week\">One week</button>\n </div>\n</div>\n",
|
|
948
959
|
"verdict": "excerpt"
|
|
949
960
|
},
|
|
950
961
|
{
|
|
@@ -1000,7 +1011,7 @@
|
|
|
1000
1011
|
"title": "Composition",
|
|
1001
1012
|
"note": "provideDateTimeRangePickerDefaults sets the months, the step and how a duration is written once, provideSlotted the language and every word; the exported instance opens, closes and focuses; the slDateTimeRangePickerOption template replaces what a row draws; position — which tab — is the consumer’s to own.",
|
|
1002
1013
|
"language": "html",
|
|
1003
|
-
"source": "<div\n slDateTimeRangePicker\n #picker=\"slDateTimeRangePicker\"\n [position]=\"position\"\n (positionChange)=\"position = $event.value\"\n>\n <ng-template slDateTimeRangePickerOption let-label=\"label\" let-duration=\"duration\">\n {{ label }} <small>{{ duration }}</small>\n </ng-template>\n</div>\n<button type=\"button\" (click)=\"picker.openSurface()\">
|
|
1014
|
+
"source": "<div\n slDateTimeRangePicker\n #picker=\"slDateTimeRangePicker\"\n [position]=\"position\"\n (positionChange)=\"position = $event.value\"\n>\n <ng-template slDateTimeRangePickerOption let-label=\"label\" let-duration=\"duration\">\n {{ label }} <small>{{ duration }}</small>\n </ng-template>\n</div>\n<button type=\"button\" (click)=\"picker.openSurface()\">Open</button>\n",
|
|
1004
1015
|
"verdict": "excerpt"
|
|
1005
1016
|
},
|
|
1006
1017
|
{
|