@slotted/angular 0.1.0-beta.29 → 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 +1 -1
- package/docs/accordion.json +5 -5
- package/docs/accordion.md +12 -12
- package/docs/action-bar.json +20 -20
- package/docs/action-bar.md +28 -28
- package/docs/action-sheet.json +4 -4
- package/docs/action-sheet.md +12 -12
- package/docs/alert.json +10 -10
- package/docs/alert.md +16 -16
- package/docs/app-shell.examples.md +7 -7
- package/docs/app-shell.json +13 -13
- package/docs/app-shell.md +3 -3
- package/docs/avatar-group.json +1 -1
- package/docs/avatar-group.md +1 -1
- package/docs/avatar.json +10 -10
- package/docs/avatar.md +9 -9
- package/docs/badge.json +3 -3
- package/docs/badge.md +3 -3
- package/docs/breadcrumb.json +2 -2
- package/docs/breadcrumb.md +2 -2
- package/docs/button-group.json +1 -1
- package/docs/button-group.md +1 -1
- package/docs/button.json +11 -11
- package/docs/button.md +7 -7
- package/docs/calendar.json +4 -4
- package/docs/calendar.md +3 -3
- 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/chart.examples.md +32 -32
- package/docs/chart.json +33 -33
- package/docs/chart.md +4 -4
- 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 +1 -1
- package/docs/code-block.md +1 -1
- 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 +2 -2
- package/docs/combobox.md +2 -2
- 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 +6 -6
- package/docs/currency-field.md +4 -4
- package/docs/dashboard-grid.json +1 -1
- package/docs/data-grid.examples.md +1 -1
- package/docs/data-grid.json +2 -2
- package/docs/data-grid.props.md +1 -1
- package/docs/date-field.json +3 -3
- package/docs/date-field.md +5 -5
- package/docs/date-picker.json +1 -1
- package/docs/date-range-picker.json +1 -1
- package/docs/datetime-field.json +4 -4
- package/docs/datetime-field.md +9 -9
- package/docs/datetime-picker.json +1 -1
- package/docs/datetime-range-picker.examples.md +3 -3
- package/docs/datetime-range-picker.json +4 -4
- package/docs/datetime-range-picker.md +2 -2
- package/docs/description-list.json +5 -5
- package/docs/description-list.md +4 -4
- package/docs/detail-panel.json +10 -10
- package/docs/detail-panel.md +12 -12
- package/docs/dialog.examples.md +5 -5
- package/docs/dialog.json +10 -10
- package/docs/dialog.md +2 -2
- package/docs/dialog.props.md +2 -2
- package/docs/drawer.examples.md +13 -13
- package/docs/drawer.json +6 -6
- package/docs/event-calendar.examples.md +3 -3
- package/docs/event-calendar.json +5 -5
- package/docs/event-calendar.md +2 -2
- package/docs/field-group.json +6 -6
- package/docs/field-group.md +11 -11
- package/docs/field.examples.md +3 -3
- package/docs/field.json +4 -4
- package/docs/field.md +1 -1
- package/docs/form.json +8 -8
- package/docs/form.md +12 -12
- package/docs/fullscreen.json +4 -4
- package/docs/fullscreen.md +7 -7
- package/docs/guidelines/async-feedback.md +2 -2
- package/docs/guidelines/builders.md +1 -1
- package/docs/guidelines/composition.md +4 -4
- package/docs/guidelines/conversations.md +1 -1
- package/docs/guidelines/index.md +2 -2
- package/docs/guidelines/layout-alignment.md +5 -5
- package/docs/guidelines/overviews.md +3 -3
- package/docs/guidelines/own-elements.md +7 -7
- package/docs/guidelines/record-pages.md +1 -1
- package/docs/highlight.json +9 -9
- package/docs/highlight.md +14 -14
- package/docs/icon.json +2 -2
- package/docs/icon.md +2 -2
- 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/inline-message.json +15 -15
- package/docs/inline-message.md +22 -22
- package/docs/inline.json +1 -1
- package/docs/inline.md +1 -1
- package/docs/kbd.json +2 -2
- package/docs/kbd.md +2 -2
- package/docs/link.json +6 -6
- package/docs/link.md +6 -6
- package/docs/list-item.json +1 -1
- package/docs/list-item.md +1 -1
- package/docs/list.json +1 -1
- package/docs/listbox.json +1 -1
- package/docs/listbox.md +1 -1
- package/docs/loading-overlay.json +3 -3
- package/docs/loading-overlay.md +3 -3
- package/docs/message-scroller.json +1 -1
- package/docs/message-scroller.md +1 -1
- package/docs/message.json +11 -11
- package/docs/message.md +17 -17
- package/docs/multi-select.json +1 -1
- package/docs/notification-center.json +16 -16
- package/docs/notification-center.md +18 -22
- package/docs/number-field.examples.md +3 -3
- package/docs/number-field.json +3 -3
- package/docs/otp-input.json +10 -10
- package/docs/otp-input.md +13 -13
- package/docs/page-header.json +9 -9
- package/docs/page-header.md +20 -22
- package/docs/pagination.json +2 -2
- package/docs/pagination.md +1 -1
- package/docs/popover.examples.md +1 -1
- package/docs/popover.json +3 -3
- package/docs/popover.md +1 -1
- package/docs/progress-indicator.json +4 -4
- package/docs/progress-indicator.md +4 -4
- package/docs/prompt-composer.json +4 -4
- package/docs/prompt-composer.md +5 -5
- 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 +23 -23
- package/docs/rating.md +25 -34
- 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 +5 -5
- package/docs/scroll-area.md +6 -6
- package/docs/section.json +6 -6
- package/docs/section.md +12 -12
- package/docs/segmented-control.json +14 -14
- package/docs/segmented-control.md +32 -32
- package/docs/skeleton.json +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/skills/build-own-element/SKILL.md +3 -3
- package/docs/skills/compose-screen/SKILL.md +2 -2
- package/docs/skills/index.md +2 -2
- package/docs/skills/review-screen/SKILL.md +3 -3
- package/docs/skills/theme-app/SKILL.md +9 -9
- package/docs/skills/waiting-states/SKILL.md +1 -1
- package/docs/slider.json +8 -8
- package/docs/slider.md +12 -12
- package/docs/sparkline.json +8 -8
- package/docs/sparkline.md +6 -6
- package/docs/split-button.json +11 -11
- package/docs/split-button.md +25 -27
- package/docs/stack.json +1 -1
- package/docs/stack.md +1 -1
- package/docs/stat-card.json +3 -3
- package/docs/stat-card.md +2 -2
- package/docs/status-indicator.json +8 -8
- package/docs/status-indicator.md +5 -5
- 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 +11 -11
- package/docs/table-of-contents.md +12 -12
- package/docs/table.examples.md +1 -1
- package/docs/table.json +1 -1
- package/docs/tabs.json +1 -1
- package/docs/tabs.md +1 -1
- package/docs/tag.json +17 -17
- package/docs/tag.md +14 -14
- package/docs/tags-input.json +1 -1
- package/docs/tags-input.md +1 -1
- package/docs/text-field.examples.md +6 -6
- package/docs/text-field.json +4 -4
- package/docs/textarea.examples.md +7 -7
- package/docs/textarea.json +3 -3
- package/docs/time-field.json +3 -3
- package/docs/time-field.md +6 -6
- package/docs/time-picker.json +5 -5
- package/docs/time-picker.md +6 -6
- package/docs/time-range-picker.examples.md +5 -5
- package/docs/time-range-picker.json +5 -5
- package/docs/time-range-picker.md +1 -1
- package/docs/toast.json +6 -6
- package/docs/toast.md +6 -6
- 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 +15 -15
- package/docs/toolbar.json +11 -11
- package/docs/toolbar.md +23 -23
- package/docs/tooltip.json +3 -3
- package/docs/tooltip.md +3 -3
- 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 +2 -2
- package/docs/typography.md +2 -2
- package/docs/upload.examples.md +3 -3
- package/docs/upload.json +9 -9
- package/docs/upload.md +4 -4
- package/fesm2022/slotted-angular-alert.mjs +2 -2
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-app-shell.mjs +10 -10
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar-group.mjs +4 -4
- package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +3 -3
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +1 -1
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/slotted-angular-button-group.mjs +1 -1
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +2 -2
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +1 -1
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +2 -2
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-code-block.mjs +1 -1
- package/fesm2022/slotted-angular-code-block.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-color-picker.mjs +6 -6
- package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +3 -1
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-currency-field.mjs +2 -2
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +6 -6
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +3 -3
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-dialog.mjs +3 -3
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +1 -1
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-event-calendar.mjs +3 -3
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-field.mjs +2 -2
- package/fesm2022/slotted-angular-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-form.mjs +6 -6
- package/fesm2022/slotted-angular-form.mjs.map +1 -1
- package/fesm2022/slotted-angular-grid.mjs +2 -2
- package/fesm2022/slotted-angular-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-highlight.mjs +1 -1
- package/fesm2022/slotted-angular-highlight.mjs.map +1 -1
- package/fesm2022/slotted-angular-icon.mjs +3 -3
- package/fesm2022/slotted-angular-icon.mjs.map +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs +10 -10
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +4 -4
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline.mjs +3 -3
- package/fesm2022/slotted-angular-inline.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +1 -1
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +2 -2
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +3 -3
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
- package/fesm2022/slotted-angular-menu.mjs +2 -2
- package/fesm2022/slotted-angular-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +3 -3
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-number-field.mjs +1 -1
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-popover.mjs +2 -2
- package/fesm2022/slotted-angular-popover.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +2 -2
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +2 -2
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +5 -5
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-result-state.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +3 -3
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-stack.mjs +2 -2
- package/fesm2022/slotted-angular-stack.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +2 -2
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tabs.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +1 -1
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-theme.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-range-picker.mjs +6 -6
- package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-toast.mjs +2 -2
- package/fesm2022/slotted-angular-toast.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +3 -3
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +1 -1
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +2 -2
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +6 -6
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +15 -3
- package/types/slotted-angular-alert.d.ts +3 -3
- package/types/slotted-angular-app-shell.d.ts +4 -4
- package/types/slotted-angular-avatar-group.d.ts +3 -3
- package/types/slotted-angular-avatar.d.ts +6 -6
- package/types/slotted-angular-badge.d.ts +3 -3
- package/types/slotted-angular-breadcrumb.d.ts +1 -1
- package/types/slotted-angular-button-group.d.ts +1 -1
- package/types/slotted-angular-button.d.ts +2 -2
- package/types/slotted-angular-card.d.ts +1 -1
- package/types/slotted-angular-chart.d.ts +2 -2
- package/types/slotted-angular-checkbox.d.ts +1 -1
- package/types/slotted-angular-code-block.d.ts +1 -1
- package/types/slotted-angular-collapsible.d.ts +1 -1
- package/types/slotted-angular-color-picker.d.ts +6 -6
- 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-currency-field.d.ts +1 -1
- package/types/slotted-angular-data-grid.d.ts +1 -1
- package/types/slotted-angular-datetime-range-picker.d.ts +1 -1
- package/types/slotted-angular-description-list.d.ts +1 -1
- package/types/slotted-angular-field.d.ts +2 -2
- package/types/slotted-angular-form.d.ts +1 -1
- package/types/slotted-angular-highlight.d.ts +1 -1
- package/types/slotted-angular-icon.d.ts +2 -2
- package/types/slotted-angular-import-export-center.d.ts +9 -9
- package/types/slotted-angular-inline-message.d.ts +3 -3
- package/types/slotted-angular-inline.d.ts +1 -1
- package/types/slotted-angular-kbd.d.ts +1 -1
- package/types/slotted-angular-list.d.ts +1 -1
- package/types/slotted-angular-listbox.d.ts +2 -2
- package/types/slotted-angular-loading-overlay.d.ts +3 -3
- package/types/slotted-angular-menu.d.ts +1 -1
- package/types/slotted-angular-message-scroller.d.ts +1 -1
- package/types/slotted-angular-notification-center.d.ts +4 -4
- package/types/slotted-angular-otp-input.d.ts +1 -1
- package/types/slotted-angular-progress-indicator.d.ts +2 -2
- package/types/slotted-angular-radio-group.d.ts +2 -2
- package/types/slotted-angular-rating.d.ts +2 -2
- package/types/slotted-angular-result-state.d.ts +1 -1
- package/types/slotted-angular-segmented-control.d.ts +2 -2
- package/types/slotted-angular-status-indicator.d.ts +2 -2
- package/types/slotted-angular-switch.d.ts +1 -1
- package/types/slotted-angular-table.d.ts +1 -1
- package/types/slotted-angular-tabs.d.ts +1 -1
- package/types/slotted-angular-tag.d.ts +3 -3
- package/types/slotted-angular-tags-input.d.ts +1 -1
- package/types/slotted-angular-theme.d.ts +1 -1
- package/types/slotted-angular-time-range-picker.d.ts +1 -1
- package/types/slotted-angular-toast.d.ts +4 -4
- package/types/slotted-angular-toggle-group.d.ts +1 -1
- package/types/slotted-angular-toggle.d.ts +1 -1
- package/types/slotted-angular-tour.d.ts +2 -2
- package/types/slotted-angular-wizard.d.ts +1 -1
package/docs/color-picker.json
CHANGED
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"part": "root",
|
|
127
127
|
"element": "div[slColorPicker]",
|
|
128
128
|
"required": true,
|
|
129
|
-
"purpose": "The panel. Carries data-ui=\"color-picker\", data-size, data-format, data-disabled, data-readonly, data-invalid and data-out-of-gamut, and every
|
|
129
|
+
"purpose": "The panel. Carries data-ui=\"color-picker\", data-size, data-format, data-disabled, data-readonly, data-invalid and data-out-of-gamut, and every color it paints as a runtime property: --slotted-color-picker-color, -opaque, -hue, -x, -y, -alpha, -previous, -contrast-with."
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"part": "area",
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"part": "channel-thumb",
|
|
151
151
|
"element": "div role=\"slider\"",
|
|
152
152
|
"required": false,
|
|
153
|
-
"purpose": "The APG slider: arrows ±1, Shift and PageUp/PageDown ±10, Home and End to the ends. It travels inside its track, so at either end it still sits on the
|
|
153
|
+
"purpose": "The APG slider: arrows ±1, Shift and PageUp/PageDown ±10, Home and End to the ends. It travels inside its track, so at either end it still sits on the color it names."
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
"part": "row",
|
|
@@ -162,19 +162,19 @@
|
|
|
162
162
|
"part": "swatch",
|
|
163
163
|
"element": "span role=\"img\"",
|
|
164
164
|
"required": false,
|
|
165
|
-
"purpose": "The
|
|
165
|
+
"purpose": "The color now, over the transparency grid, named by its value."
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
"part": "previous",
|
|
169
169
|
"element": "button",
|
|
170
170
|
"required": false,
|
|
171
|
-
"purpose": "The
|
|
171
|
+
"purpose": "The color the panel opened with, beside the color now; pressing it restores that color with the reason \"select\"."
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
"part": "input",
|
|
175
175
|
"element": "input, in a text-field frame",
|
|
176
176
|
"required": false,
|
|
177
|
-
"purpose": "The value as text in any notation. A
|
|
177
|
+
"purpose": "The value as text in any notation. A color still being written is aria-invalid and left alone; Enter or leaving commits it in the current notation, or puts back the last valid one. Always left-to-right."
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
"part": "format",
|
|
@@ -186,13 +186,13 @@
|
|
|
186
186
|
"part": "eyedropper",
|
|
187
187
|
"element": "button",
|
|
188
188
|
"required": false,
|
|
189
|
-
"purpose": "The platform’s EyeDropper, drawn only where window.EyeDropper exists; the
|
|
189
|
+
"purpose": "The platform’s EyeDropper, drawn only where window.EyeDropper exists; the color picked arrives with the reason \"programmatic\"."
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
"part": "presets",
|
|
193
193
|
"element": "div role=\"radiogroup\"",
|
|
194
194
|
"required": false,
|
|
195
|
-
"purpose": "
|
|
195
|
+
"purpose": "Colors offered as one press; arrow keys move and choose, the radio group’s own way."
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
"part": "preset",
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
"part": "contrast",
|
|
205
205
|
"element": "div aria-live=\"polite\"",
|
|
206
206
|
"required": false,
|
|
207
|
-
"purpose": "Drawn when contrastWith is given: Aa in the
|
|
207
|
+
"purpose": "Drawn when contrastWith is given: Aa in the color over that background, the WCAG ratio, and the level in words — AAA, AA, AA large or Fail."
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
"part": "contrast-sample",
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
"part": "gamut",
|
|
229
229
|
"element": "p role=\"status\"",
|
|
230
230
|
"required": false,
|
|
231
|
-
"purpose": "Drawn when an oklch value lies outside sRGB: the value is kept as written and the panel says the screen shows the nearest
|
|
231
|
+
"purpose": "Drawn when an oklch value lies outside sRGB: the value is kept as written and the panel says the screen shows the nearest color."
|
|
232
232
|
}
|
|
233
233
|
],
|
|
234
234
|
"api": [
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
"type": "string",
|
|
252
252
|
"defaultValue": "—",
|
|
253
253
|
"appliesTo": "slColorPicker, slColorField",
|
|
254
|
-
"description": "Present means controlled: a
|
|
254
|
+
"description": "Present means controlled: a color in hex, rgb, hsl or oklch"
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
257
|
"name": "defaultValue",
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
"type": "boolean",
|
|
273
273
|
"defaultValue": "true",
|
|
274
274
|
"appliesTo": "slColorPicker, slColorField",
|
|
275
|
-
"description": "Whether the
|
|
275
|
+
"description": "Whether the color carries an alpha channel"
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
"name": "size",
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
"type": "readonly string[]",
|
|
287
287
|
"defaultValue": "—",
|
|
288
288
|
"appliesTo": "slColorPicker, slColorField, provideColorPickerDefaults",
|
|
289
|
-
"description": "
|
|
289
|
+
"description": "Colors offered as one press"
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
292
|
"name": "contrastWith",
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
"type": "boolean",
|
|
301
301
|
"defaultValue": "from the field, or false",
|
|
302
302
|
"appliesTo": "slColorPicker, slColorField",
|
|
303
|
-
"description": "Out of the tab order; the
|
|
303
|
+
"description": "Out of the tab order; the color greyed"
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
306
|
"name": "readOnly",
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
{
|
|
359
359
|
"name": "(valueChange)",
|
|
360
360
|
"payload": "ChangeRequest<string>",
|
|
361
|
-
"when": "Before the
|
|
361
|
+
"when": "Before the color moves, in the current notation: reason \"pointer\", \"keyboard\", \"select\" (a preset, the restore, a notation change) or \"programmatic\" (the eyedropper). cancel() refuses the move."
|
|
362
362
|
},
|
|
363
363
|
{
|
|
364
364
|
"name": "(formatChange)",
|
|
@@ -368,15 +368,15 @@
|
|
|
368
368
|
{
|
|
369
369
|
"name": "ControlValueAccessor",
|
|
370
370
|
"payload": "the form’s own value",
|
|
371
|
-
"when": "On both slColorPicker and slColorField, whenever the
|
|
371
|
+
"when": "On both slColorPicker and slColorField, whenever the color moves and nobody refused it."
|
|
372
372
|
}
|
|
373
373
|
],
|
|
374
374
|
"accessibility": [
|
|
375
|
-
"Each thumb is a slider with a name and a value text in words — \"Hue, 221°\", \"Opacity, 60 %\", \"Saturation and brightness, 84 %, 92 %\" — so the
|
|
375
|
+
"Each thumb is a slider with a name and a value text in words — \"Hue, 221°\", \"Opacity, 60 %\", \"Saturation and brightness, 84 %, 92 %\" — so the color is never told by color alone; the area thumb carries aria-roledescription \"2D slider\", the React Aria convention for a slider with two axes.",
|
|
376
376
|
"The keyboard is the APG slider for each channel and the APG radio group for the presets; in a right-to-left document the horizontal arrows follow the mirrored axis.",
|
|
377
|
-
"The contrast part names the level in words beside the ratio, and it is aria-live polite, so a reader adjusting the
|
|
378
|
-
"The text is always left-to-right: a
|
|
379
|
-
"Forced
|
|
377
|
+
"The contrast part names the level in words beside the ratio, and it is aria-live polite, so a reader adjusting the color hears when it crosses AA.",
|
|
378
|
+
"The text is always left-to-right: a color notation reads the same in every language.",
|
|
379
|
+
"Forced colors keep the reader’s colors visible: the area, the channels, the swatches and the presets opt out of the system palette, because a color picker whose colors are replaced shows nothing."
|
|
380
380
|
]
|
|
381
381
|
}
|
|
382
382
|
},
|
|
@@ -442,17 +442,17 @@
|
|
|
442
442
|
{
|
|
443
443
|
"id": "playground",
|
|
444
444
|
"title": "Playground",
|
|
445
|
-
"note": "The whole panel. Drag in the area, move the hue and the opacity, type a
|
|
445
|
+
"note": "The whole panel. Drag in the area, move the hue and the opacity, type a color in any notation, change the notation, pick a preset; the value under the panel is what onValueChange receives.",
|
|
446
446
|
"language": "html",
|
|
447
447
|
"source": "<div slColorPicker defaultValue=\"#2563EB\" (valueChange)=\"color.set($event.value)\"></div>\n",
|
|
448
448
|
"verdict": "excerpt"
|
|
449
449
|
},
|
|
450
450
|
{
|
|
451
451
|
"id": "field",
|
|
452
|
-
"title": "A field that holds a
|
|
452
|
+
"title": "A field that holds a color",
|
|
453
453
|
"note": "The swatch in the field’s start opens the panel in a popover; the text takes any notation and keeps the one shown. In a Field, the label names the text.",
|
|
454
454
|
"language": "html",
|
|
455
|
-
"source": "<div slField>\n <label slFieldLabel>
|
|
455
|
+
"source": "<div slField>\n <label slFieldLabel>Primary color</label>\n <div slColorField [formControl]=\"primary\" [presets]=\"brand\"></div>\n</div>\n",
|
|
456
456
|
"verdict": "excerpt"
|
|
457
457
|
},
|
|
458
458
|
{
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
},
|
|
466
466
|
{
|
|
467
467
|
"id": "formats",
|
|
468
|
-
"title": "Four notations, one
|
|
468
|
+
"title": "Four notations, one color",
|
|
469
469
|
"note": "The value comes back in the notation shown. Change it in the menu and the value is rewritten; type another notation and it is converted to this one.",
|
|
470
470
|
"language": "html",
|
|
471
471
|
"source": "<div\n slColorPicker\n defaultValue=\"#2563EB\"\n [format]=\"format()\"\n (formatChange)=\"format.set($event.value)\"\n></div>\n",
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
{
|
|
475
475
|
"id": "alpha",
|
|
476
476
|
"title": "Opacity",
|
|
477
|
-
"note": "The alpha channel fades the
|
|
477
|
+
"note": "The alpha channel fades the color over the transparency grid, drawn from the theme’s own surfaces. alpha={false} removes it for a color that must be opaque — a brand color, a text color.",
|
|
478
478
|
"language": "html",
|
|
479
479
|
"source": "<div slColorPicker defaultValue=\"rgb(22 163 74 / 60%)\"></div>\n<div slColorPicker defaultValue=\"#16A34A\" [alpha]=\"false\"></div>\n",
|
|
480
480
|
"verdict": "excerpt"
|
|
@@ -490,7 +490,7 @@
|
|
|
490
490
|
{
|
|
491
491
|
"id": "contrast",
|
|
492
492
|
"title": "Contrast against the background it will sit on",
|
|
493
|
-
"note": "contrastWith names the background; the panel shows Aa in the
|
|
493
|
+
"note": "contrastWith names the background; the panel shows Aa in the color over it, the WCAG ratio and the level in words. An alpha color is composited first, because that is what the reader sees.",
|
|
494
494
|
"language": "html",
|
|
495
495
|
"source": "<div slColorPicker defaultValue=\"#64748B\" contrastWith=\"#FFFFFF\"></div>\n",
|
|
496
496
|
"verdict": "excerpt"
|
|
@@ -498,7 +498,7 @@
|
|
|
498
498
|
{
|
|
499
499
|
"id": "states",
|
|
500
500
|
"title": "Disabled, read-only and out of gamut",
|
|
501
|
-
"note": "Disabled greys the
|
|
501
|
+
"note": "Disabled greys the color and takes the panel out of the tab order; read-only keeps the sliders focusable and moves nothing; an oklch color outside sRGB is said, never quietly clipped.",
|
|
502
502
|
"language": "html",
|
|
503
503
|
"source": "<div slColorPicker disabled defaultValue=\"#64748B\"></div>\n<div slColorPicker readOnly defaultValue=\"#DB2777\"></div>\n<div slColorPicker defaultValue=\"oklch(0.9 0.3 150)\"></div>\n",
|
|
504
504
|
"verdict": "excerpt"
|
package/docs/color-picker.md
CHANGED
|
@@ -52,14 +52,14 @@ Excerpt — not a complete module
|
|
|
52
52
|
| --- | --- | --- | --- | --- |
|
|
53
53
|
| `variant` | `'outline' \| 'subtle'` | outline | slColorField | The text-field frame of the field |
|
|
54
54
|
| `required` | `boolean` | from the field | slColorField | aria-required on the text, never the native attribute |
|
|
55
|
-
| `value` | `string` | — | slColorPicker, slColorField | Present means controlled: a
|
|
55
|
+
| `value` | `string` | — | slColorPicker, slColorField | Present means controlled: a color in hex, rgb, hsl or oklch |
|
|
56
56
|
| `defaultValue` | `string` | #000000 | slColorPicker, slColorField | What an uncontrolled picker starts from |
|
|
57
57
|
| `format` | `'hex' \| 'rgb' \| 'hsl' \| 'oklch'` | hex | slColorPicker, slColorField, provideColorPickerDefaults | The notation the value is written in; defaults to the value’s own, then to the provider’s. defaultFormat is the uncontrolled half |
|
|
58
|
-
| `alpha` | `boolean` | true | slColorPicker, slColorField | Whether the
|
|
58
|
+
| `alpha` | `boolean` | true | slColorPicker, slColorField | Whether the color carries an alpha channel |
|
|
59
59
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | slColorPicker, slColorField, provideColorPickerDefaults | The step, read from the field first |
|
|
60
|
-
| `presets` | `readonly string[]` | — | slColorPicker, slColorField, provideColorPickerDefaults |
|
|
60
|
+
| `presets` | `readonly string[]` | — | slColorPicker, slColorField, provideColorPickerDefaults | Colors offered as one press |
|
|
61
61
|
| `contrastWith` | `string` | — | slColorPicker, slColorField | The background the contrast is measured against; absent, no contrast is drawn |
|
|
62
|
-
| `disabled` | `boolean` | from the field, or false | slColorPicker, slColorField | Out of the tab order; the
|
|
62
|
+
| `disabled` | `boolean` | from the field, or false | slColorPicker, slColorField | Out of the tab order; the color greyed |
|
|
63
63
|
| `readOnly` | `boolean` | from the field, or false | slColorPicker, slColorField | Focusable and legible; nothing moves |
|
|
64
64
|
| `invalid` | `boolean` | from the field, or false | slColorPicker, slColorField | data-invalid on the root; aria-invalid on the text |
|
|
65
65
|
| `open` | `boolean` | false | slColorField | Present means the consumer owns whether the panel is open; defaultOpen is the uncontrolled half |
|
|
@@ -72,9 +72,9 @@ Excerpt — not a complete module
|
|
|
72
72
|
|
|
73
73
|
| Name | Payload | When |
|
|
74
74
|
| --- | --- | --- |
|
|
75
|
-
| `(valueChange)` | `ChangeRequest<string>` | Before the
|
|
75
|
+
| `(valueChange)` | `ChangeRequest<string>` | Before the color moves, in the current notation: reason "pointer", "keyboard", "select" (a preset, the restore, a notation change) or "programmatic" (the eyedropper). cancel() refuses the move. |
|
|
76
76
|
| `(formatChange)` | `ChangeRequest<ColorFormat>` | Before the notation changes, with reason "select". |
|
|
77
|
-
| `ControlValueAccessor` | `the form’s own value` | On both slColorPicker and slColorField, whenever the
|
|
77
|
+
| `ControlValueAccessor` | `the form’s own value` | On both slColorPicker and slColorField, whenever the color moves and nobody refused it. |
|
|
78
78
|
|
|
79
79
|
## Axes and defaults
|
|
80
80
|
|
|
@@ -87,11 +87,11 @@ Excerpt — not a complete module
|
|
|
87
87
|
|
|
88
88
|
## Rules
|
|
89
89
|
|
|
90
|
-
- Each thumb is a slider with a name and a value text in words — "Hue, 221°", "Opacity, 60 %", "Saturation and brightness, 84 %, 92 %" — so the
|
|
90
|
+
- Each thumb is a slider with a name and a value text in words — "Hue, 221°", "Opacity, 60 %", "Saturation and brightness, 84 %, 92 %" — so the color is never told by color alone; the area thumb carries aria-roledescription "2D slider", the React Aria convention for a slider with two axes.
|
|
91
91
|
- The keyboard is the APG slider for each channel and the APG radio group for the presets; in a right-to-left document the horizontal arrows follow the mirrored axis.
|
|
92
|
-
- The contrast part names the level in words beside the ratio, and it is aria-live polite, so a reader adjusting the
|
|
93
|
-
- The text is always left-to-right: a
|
|
94
|
-
- Forced
|
|
92
|
+
- The contrast part names the level in words beside the ratio, and it is aria-live polite, so a reader adjusting the color hears when it crosses AA.
|
|
93
|
+
- The text is always left-to-right: a color notation reads the same in every language.
|
|
94
|
+
- Forced colors keep the reader’s colors visible: the area, the channels, the swatches and the presets opt out of the system palette, because a color picker whose colors are replaced shows nothing.
|
|
95
95
|
|
|
96
96
|
## Tokens
|
|
97
97
|
|
|
@@ -99,7 +99,7 @@ Excerpt — not a complete module
|
|
|
99
99
|
|
|
100
100
|
## Examples
|
|
101
101
|
|
|
102
|
-
### A field that holds a
|
|
102
|
+
### A field that holds a color
|
|
103
103
|
|
|
104
104
|
The swatch in the field’s start opens the panel in a popover; the text takes any notation and keeps the one shown. In a Field, the label names the text.
|
|
105
105
|
|
|
@@ -107,7 +107,7 @@ Excerpt — not a complete module
|
|
|
107
107
|
|
|
108
108
|
```html
|
|
109
109
|
<div slField>
|
|
110
|
-
<label slFieldLabel>
|
|
110
|
+
<label slFieldLabel>Primary color</label>
|
|
111
111
|
<div slColorField [formControl]="primary" [presets]="brand"></div>
|
|
112
112
|
</div>
|
|
113
113
|
```
|
|
@@ -122,7 +122,7 @@ Excerpt — not a complete module
|
|
|
122
122
|
<div slColorPicker [alpha]="false" [presets]="[]" defaultValue="#16A34A"></div>
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
### Four notations, one
|
|
125
|
+
### Four notations, one color
|
|
126
126
|
|
|
127
127
|
The value comes back in the notation shown. Change it in the menu and the value is rewritten; type another notation and it is converted to this one.
|
|
128
128
|
|
|
@@ -139,7 +139,7 @@ Excerpt — not a complete module
|
|
|
139
139
|
|
|
140
140
|
### Opacity
|
|
141
141
|
|
|
142
|
-
The alpha channel fades the
|
|
142
|
+
The alpha channel fades the color over the transparency grid, drawn from the theme’s own surfaces. alpha={false} removes it for a color that must be opaque — a brand color, a text color.
|
|
143
143
|
|
|
144
144
|
Excerpt — not a complete module
|
|
145
145
|
|
|
@@ -160,7 +160,7 @@ providers: [provideColorPickerDefaults({ presets: ['#0F172A', '#DC2626', '#16A34
|
|
|
160
160
|
|
|
161
161
|
### Contrast against the background it will sit on
|
|
162
162
|
|
|
163
|
-
contrastWith names the background; the panel shows Aa in the
|
|
163
|
+
contrastWith names the background; the panel shows Aa in the color over it, the WCAG ratio and the level in words. An alpha color is composited first, because that is what the reader sees.
|
|
164
164
|
|
|
165
165
|
Excerpt — not a complete module
|
|
166
166
|
|
|
@@ -170,7 +170,7 @@ Excerpt — not a complete module
|
|
|
170
170
|
|
|
171
171
|
### Disabled, read-only and out of gamut
|
|
172
172
|
|
|
173
|
-
Disabled greys the
|
|
173
|
+
Disabled greys the color and takes the panel out of the tab order; read-only keeps the sliders focusable and moves nothing; an oklch color outside sRGB is said, never quietly clipped.
|
|
174
174
|
|
|
175
175
|
Excerpt — not a complete module
|
|
176
176
|
|
package/docs/combobox.json
CHANGED
|
@@ -752,7 +752,7 @@
|
|
|
752
752
|
"type": "placeholder, aria-label",
|
|
753
753
|
"defaultValue": "—",
|
|
754
754
|
"appliesTo": "sl-combobox",
|
|
755
|
-
"description": "The two attributes the host passes to the input. Other attributes stay on the host element, and every text-editing key keeps its browser
|
|
755
|
+
"description": "The two attributes the host passes to the input. Other attributes stay on the host element, and every text-editing key keeps its browser behavior."
|
|
756
756
|
}
|
|
757
757
|
],
|
|
758
758
|
"events": [
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
],
|
|
815
815
|
"accessibility": [
|
|
816
816
|
"The input has role=\"combobox\" with aria-autocomplete, aria-expanded and aria-controls. The popup has role=\"listbox\", and each row has role=\"option\". The trigger button is out of the tab sequence, as the ARIA combobox pattern requires.",
|
|
817
|
-
"Focus stays on the input, so Home, End, ArrowLeft, ArrowRight, Backspace and Delete keep their text-editing
|
|
817
|
+
"Focus stays on the input, so Home, End, ArrowLeft, ArrowRight, Backspace and Delete keep their text-editing behavior. The highlight moves through aria-activedescendant, and the caret does not move with it.",
|
|
818
818
|
"Escape works in two steps, both named by the pattern. With the popup open, it closes the popup and keeps the text. With the popup closed, it restores the label of the chosen option, and a second press clears the selection.",
|
|
819
819
|
"The status row is a polite live region. It announces how many options matched, and \"Loading…\" while a request is in flight.",
|
|
820
820
|
"Tab commits nothing: an option the reader arrowed past is not a choice, which is where the combobox differs from the select. Tab does accept an inline completion that is still showing."
|
package/docs/combobox.md
CHANGED
|
@@ -142,7 +142,7 @@ export class ComboboxBasic {
|
|
|
142
142
|
| `exportAs` | `slCombobox` | — | sl-combobox | The component instance, for a template that calls focus(), setOpen() or scrollToKey(). |
|
|
143
143
|
| `ControlValueAccessor` | `NG_VALUE_ACCESSOR` | — | sl-combobox | formControl, formControlName and ngModel bind the chosen value, and the disabled state of the form control reaches the combobox. |
|
|
144
144
|
| `Validator` | `NG_VALIDATORS` | — | sl-combobox | Reports required, and text that matches no option while allowsCustomValue is off. A native input cannot report the second. |
|
|
145
|
-
| `native attributes` | `placeholder, aria-label` | — | sl-combobox | The two attributes the host passes to the input. Other attributes stay on the host element, and every text-editing key keeps its browser
|
|
145
|
+
| `native attributes` | `placeholder, aria-label` | — | sl-combobox | The two attributes the host passes to the input. Other attributes stay on the host element, and every text-editing key keeps its browser behavior. |
|
|
146
146
|
|
|
147
147
|
## Events
|
|
148
148
|
|
|
@@ -195,7 +195,7 @@ export class ComboboxBasic {
|
|
|
195
195
|
## Rules
|
|
196
196
|
|
|
197
197
|
- The input has role="combobox" with aria-autocomplete, aria-expanded and aria-controls. The popup has role="listbox", and each row has role="option". The trigger button is out of the tab sequence, as the ARIA combobox pattern requires.
|
|
198
|
-
- Focus stays on the input, so Home, End, ArrowLeft, ArrowRight, Backspace and Delete keep their text-editing
|
|
198
|
+
- Focus stays on the input, so Home, End, ArrowLeft, ArrowRight, Backspace and Delete keep their text-editing behavior. The highlight moves through aria-activedescendant, and the caret does not move with it.
|
|
199
199
|
- Escape works in two steps, both named by the pattern. With the popup open, it closes the popup and keeps the text. With the popup closed, it restores the label of the chosen option, and a second press clears the selection.
|
|
200
200
|
- The status row is a polite live region. It announces how many options matched, and "Loading…" while a request is in flight.
|
|
201
201
|
- Tab commits nothing: an option the reader arrowed past is not a choice, which is where the combobox differs from the select. Tab does accept an inline completion that is still showing.
|
package/docs/context-menu.json
CHANGED
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
{
|
|
223
223
|
"id": "states",
|
|
224
224
|
"title": "States",
|
|
225
|
-
"note": "Three tiles: at rest nothing is painted; open draws the inward mark in the
|
|
225
|
+
"note": "Three tiles: at rest nothing is painted; open draws the inward mark in the color that separates two surfaces; disabled paints nothing either; pressed exists only for the half second a finger is held, and turns off selection rather than painting.",
|
|
226
226
|
"language": "css",
|
|
227
227
|
"source": "[data-ui='context-menu'][data-open] {\n --slotted-context-menu-mark-color: var(--slotted-tone-accent-border);\n}\n[data-ui='context-menu'][data-pressed] {\n opacity: 0.9;\n}\n",
|
|
228
228
|
"verdict": "excerpt"
|
package/docs/context-menu.md
CHANGED
|
@@ -162,7 +162,7 @@ Excerpt — not a complete module
|
|
|
162
162
|
|
|
163
163
|
### States
|
|
164
164
|
|
|
165
|
-
Three tiles: at rest nothing is painted; open draws the inward mark in the
|
|
165
|
+
Three tiles: at rest nothing is painted; open draws the inward mark in the color that separates two surfaces; disabled paints nothing either; pressed exists only for the half second a finger is held, and turns off selection rather than painting.
|
|
166
166
|
|
|
167
167
|
Excerpt — not a complete module
|
|
168
168
|
|
|
@@ -179,7 +179,7 @@ Excerpt — not a complete module
|
|
|
179
179
|
defaultValue="1480"
|
|
180
180
|
currencyDisplay="none"
|
|
181
181
|
/>
|
|
182
|
-
<span slCurrencyFieldEnd>
|
|
182
|
+
<span slCurrencyFieldEnd>per month</span>
|
|
183
183
|
</div>
|
|
184
184
|
```
|
|
185
185
|
|
|
@@ -194,7 +194,7 @@ Excerpt — not a complete module
|
|
|
194
194
|
<span slCurrencyFieldStart><span slCurrencyFieldScrub>R$</span></span>
|
|
195
195
|
<input
|
|
196
196
|
slCurrencyFieldInput
|
|
197
|
-
aria-label="
|
|
197
|
+
aria-label="Price"
|
|
198
198
|
currency="BRL"
|
|
199
199
|
currencyDisplay="none"
|
|
200
200
|
locale="pt-BR"
|
|
@@ -207,7 +207,7 @@ Excerpt — not a complete module
|
|
|
207
207
|
<span slCurrencyFieldStart><span slCurrencyFieldScrub [sensitivity]="4">R$</span></span>
|
|
208
208
|
<input
|
|
209
209
|
slCurrencyFieldInput
|
|
210
|
-
aria-label="
|
|
210
|
+
aria-label="Budget"
|
|
211
211
|
currency="BRL"
|
|
212
212
|
currencyDisplay="none"
|
|
213
213
|
locale="pt-BR"
|
package/docs/currency-field.json
CHANGED
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"part": "decrement",
|
|
156
156
|
"element": "button[type=button][tabindex=-1], rendered by the frame",
|
|
157
157
|
"required": false,
|
|
158
|
-
"purpose": "Steps down by step — one major unit by default, not one cent — by largeStep with Shift and by smallStep with Alt. Held, it repeats. Disabled at min, and out of the tab order because the arrow keys reach the same
|
|
158
|
+
"purpose": "Steps down by step — one major unit by default, not one cent — by largeStep with Shift and by smallStep with Alt. Held, it repeats. Disabled at min, and out of the tab order because the arrow keys reach the same behavior from the control."
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"part": "increment",
|
|
@@ -464,9 +464,9 @@
|
|
|
464
464
|
"The frame carries no role. WAI-ARIA requires the children of a spinbutton to be non-interactive and presentational, so the two steppers are the control’s siblings inside a box that announces nothing.",
|
|
465
465
|
"Under cents-first entry the caret is put back after the last digit on every edit, and it decides nothing while it is anywhere else: a digit typed against the front of R$ 0,00 is two cents, not twenty reais, because the digits that changed are read from the difference between the text before the edit and the text after it. That is legal here and forbidden in number-field for one reason: the text is generated rather than typed, so there is no reader’s caret to preserve and exactly one position where the next keystroke means something. A separator keystroke is refused outright, and the sign is a key of its own so it never enters the digit run.",
|
|
466
466
|
"inputmode is numeric under cents-first entry — the separator is never typed and the sign is a single key — and derived from the format under natural entry. A static inputmode the consumer wrote is read with HostAttributeToken before the binding computes, so it survives.",
|
|
467
|
-
"aria-required, never the native required. The native attribute engages browser constraint validation and changes submit
|
|
467
|
+
"aria-required, never the native required. The native attribute engages browser constraint validation and changes submit behavior, which the library must not impose as a side effect of describing a field. disabled and readonly are native, because that is what those two words mean.",
|
|
468
468
|
"transaction-amount and transaction-currency are the standard autofill field names for a payment amount, and naming a field’s purpose is what WCAG 2.2 SC 1.3.5 asks for. The family leaves autocomplete off by default and documents the token.",
|
|
469
|
-
"The invalid state is never
|
|
469
|
+
"The invalid state is never color alone: aria-invalid announces it and the field’s error says it in words. In the high-contrast scheme the border cannot carry it at all, which is why it never has to."
|
|
470
470
|
]
|
|
471
471
|
}
|
|
472
472
|
},
|
|
@@ -569,7 +569,7 @@
|
|
|
569
569
|
"title": "Playground",
|
|
570
570
|
"note": "One control with every axis on it, driven by the controls below the canvas. Type 1, 2, 3, 4 without touching a separator: the digits enter at the cent and shift left.",
|
|
571
571
|
"language": "html",
|
|
572
|
-
"source": "<div slField>\n <label slFieldLabel>
|
|
572
|
+
"source": "<div slField>\n <label slFieldLabel>Order total</label>\n <div slCurrencyField>\n <input slCurrencyFieldInput currency=\"BRL\" locale=\"pt-BR\" defaultValue=\"1480\" min=\"0\" />\n </div>\n <span slFieldDescription>Type only the digits: 1234 becomes $12.34.</span>\n</div>\n",
|
|
573
573
|
"verdict": "excerpt"
|
|
574
574
|
},
|
|
575
575
|
{
|
|
@@ -641,7 +641,7 @@
|
|
|
641
641
|
"title": "The symbol inside the amount, and the symbol beside it",
|
|
642
642
|
"note": "Both are here because choosing wrongly is the mistake: the symbol from currency is selected, copied and parsed with the amount, and the one in slCurrencyFieldStart is none of those things.",
|
|
643
643
|
"language": "html",
|
|
644
|
-
"source": "<!-- Inside: R$ moves with the locale and is copied with the amount. -->\n<div slCurrencyField>\n <input slCurrencyFieldInput currency=\"BRL\" locale=\"pt-BR\" defaultValue=\"1480\" />\n</div>\n\n<!-- Beside: a label rather than part of the number, never parsed. -->\n<div slCurrencyField>\n <span slCurrencyFieldStart>R$</span>\n <input\n slCurrencyFieldInput\n currency=\"BRL\"\n locale=\"pt-BR\"\n defaultValue=\"1480\"\n currencyDisplay=\"none\"\n />\n <span slCurrencyFieldEnd>
|
|
644
|
+
"source": "<!-- Inside: R$ moves with the locale and is copied with the amount. -->\n<div slCurrencyField>\n <input slCurrencyFieldInput currency=\"BRL\" locale=\"pt-BR\" defaultValue=\"1480\" />\n</div>\n\n<!-- Beside: a label rather than part of the number, never parsed. -->\n<div slCurrencyField>\n <span slCurrencyFieldStart>R$</span>\n <input\n slCurrencyFieldInput\n currency=\"BRL\"\n locale=\"pt-BR\"\n defaultValue=\"1480\"\n currencyDisplay=\"none\"\n />\n <span slCurrencyFieldEnd>per month</span>\n</div>\n",
|
|
645
645
|
"verdict": "excerpt"
|
|
646
646
|
},
|
|
647
647
|
{
|
|
@@ -649,7 +649,7 @@
|
|
|
649
649
|
"title": "Drag the symbol to move the amount",
|
|
650
650
|
"note": "The sibling’s gesture on a currency mark. Press R$ and drag sideways: two pixels per step of one real, Shift for ten, Alt for ten centavos. A right-to-left document steps up towards the left, the inline end.",
|
|
651
651
|
"language": "html",
|
|
652
|
-
"source": "<div slCurrencyField>\n <span slCurrencyFieldStart><span slCurrencyFieldScrub>R$</span></span>\n <input\n slCurrencyFieldInput\n aria-label=\"
|
|
652
|
+
"source": "<div slCurrencyField>\n <span slCurrencyFieldStart><span slCurrencyFieldScrub>R$</span></span>\n <input\n slCurrencyFieldInput\n aria-label=\"Price\"\n currency=\"BRL\"\n currencyDisplay=\"none\"\n locale=\"pt-BR\"\n defaultValue=\"1480\"\n min=\"0\"\n />\n</div>\n\n<div slCurrencyField>\n <span slCurrencyFieldStart><span slCurrencyFieldScrub [sensitivity]=\"4\">R$</span></span>\n <input\n slCurrencyFieldInput\n aria-label=\"Budget\"\n currency=\"BRL\"\n currencyDisplay=\"none\"\n locale=\"pt-BR\"\n defaultValue=\"250\"\n min=\"0\"\n max=\"1000\"\n step=\"10\"\n />\n</div>\n",
|
|
653
653
|
"verdict": "excerpt"
|
|
654
654
|
},
|
|
655
655
|
{
|
package/docs/currency-field.md
CHANGED
|
@@ -24,11 +24,11 @@ Excerpt — not a complete module
|
|
|
24
24
|
|
|
25
25
|
```html
|
|
26
26
|
<div slField>
|
|
27
|
-
<label slFieldLabel>
|
|
27
|
+
<label slFieldLabel>Order total</label>
|
|
28
28
|
<div slCurrencyField>
|
|
29
29
|
<input slCurrencyFieldInput currency="BRL" locale="pt-BR" defaultValue="1480" min="0" />
|
|
30
30
|
</div>
|
|
31
|
-
<span slFieldDescription>
|
|
31
|
+
<span slFieldDescription>Type only the digits: 1234 becomes $12.34.</span>
|
|
32
32
|
</div>
|
|
33
33
|
```
|
|
34
34
|
|
|
@@ -119,9 +119,9 @@ Excerpt — not a complete module
|
|
|
119
119
|
- The frame carries no role. WAI-ARIA requires the children of a spinbutton to be non-interactive and presentational, so the two steppers are the control’s siblings inside a box that announces nothing.
|
|
120
120
|
- Under cents-first entry the caret is put back after the last digit on every edit, and it decides nothing while it is anywhere else: a digit typed against the front of R$ 0,00 is two cents, not twenty reais, because the digits that changed are read from the difference between the text before the edit and the text after it. That is legal here and forbidden in number-field for one reason: the text is generated rather than typed, so there is no reader’s caret to preserve and exactly one position where the next keystroke means something. A separator keystroke is refused outright, and the sign is a key of its own so it never enters the digit run.
|
|
121
121
|
- inputmode is numeric under cents-first entry — the separator is never typed and the sign is a single key — and derived from the format under natural entry. A static inputmode the consumer wrote is read with HostAttributeToken before the binding computes, so it survives.
|
|
122
|
-
- aria-required, never the native required. The native attribute engages browser constraint validation and changes submit
|
|
122
|
+
- aria-required, never the native required. The native attribute engages browser constraint validation and changes submit behavior, which the library must not impose as a side effect of describing a field. disabled and readonly are native, because that is what those two words mean.
|
|
123
123
|
- transaction-amount and transaction-currency are the standard autofill field names for a payment amount, and naming a field’s purpose is what WCAG 2.2 SC 1.3.5 asks for. The family leaves autocomplete off by default and documents the token.
|
|
124
|
-
- The invalid state is never
|
|
124
|
+
- The invalid state is never color alone: aria-invalid announces it and the field’s error says it in words. In the high-contrast scheme the border cannot carry it at all, which is why it never has to.
|
|
125
125
|
|
|
126
126
|
## Tokens
|
|
127
127
|
|
package/docs/dashboard-grid.json
CHANGED
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"part": "message",
|
|
192
192
|
"element": "div around section[slResultState]",
|
|
193
193
|
"required": false,
|
|
194
|
-
"purpose": "status=\"empty\" or \"error\",
|
|
194
|
+
"purpose": "status=\"empty\" or \"error\", centerd in the body; the error draws Try again under retryable."
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
"part": "retry",
|
|
@@ -587,7 +587,7 @@ Excerpt — not a complete module
|
|
|
587
587
|
|
|
588
588
|
### Search
|
|
589
589
|
|
|
590
|
-
One condition that belongs to no column: query.search is matched against the text of every searchable column through the locale collator, so "
|
|
590
|
+
One condition that belongs to no column: query.search is matched against the text of every searchable column through the locale collator, so "cafe" finds "Café". The field that writes it is the consumer’s own text-field.
|
|
591
591
|
|
|
592
592
|
Example
|
|
593
593
|
|
package/docs/data-grid.json
CHANGED
|
@@ -604,7 +604,7 @@
|
|
|
604
604
|
"type": "model<Partial<GridColumnState> | undefined>",
|
|
605
605
|
"defaultValue": "—",
|
|
606
606
|
"appliesTo": "sl-data-grid",
|
|
607
|
-
"description": "order, widths, hidden and pinned, two-way;
|
|
607
|
+
"description": "order, widths, hidden and pinned, two-way; normalized against columns on every read."
|
|
608
608
|
},
|
|
609
609
|
{
|
|
610
610
|
"name": "selectionMode",
|
|
@@ -1274,7 +1274,7 @@
|
|
|
1274
1274
|
{
|
|
1275
1275
|
"id": "search",
|
|
1276
1276
|
"title": "Search",
|
|
1277
|
-
"note": "One condition that belongs to no column: query.search is matched against the text of every searchable column through the locale collator, so \"
|
|
1277
|
+
"note": "One condition that belongs to no column: query.search is matched against the text of every searchable column through the locale collator, so \"cafe\" finds \"Café\". The field that writes it is the consumer’s own text-field.",
|
|
1278
1278
|
"language": "ts",
|
|
1279
1279
|
"source": "import { Component, signal } from '@angular/core';\nimport { emptyQuery, withSearch, type GridColumn, type GridQuery } from '@slotted/core/grid';\nimport { SlDataGrid } from '@slotted/angular/data-grid';\nimport { SlStack } from '@slotted/angular/stack';\nimport { SlTextField, SlTextFieldInput } from '@slotted/angular/text-field';\n\ninterface Shipment {\n id: string;\n customer: string;\n destination: string;\n carrier: string;\n status: string;\n shipped: string;\n weight: number;\n cost: number;\n priority: boolean;\n}\n\nconst CUSTOMERS = [\n 'Alfreds Futterkiste',\n \"Bon app'\",\n 'Ernst Handel',\n 'Folk och fä HB',\n 'Hanari Carnes',\n 'Island Trading',\n 'QUICK-Stop',\n 'Wartian Herkku',\n];\nconst DESTINATIONS = [\n 'Berlin, DE',\n 'Marseille, FR',\n 'Graz, AT',\n 'Bräcke, SE',\n 'Rio de Janeiro, BR',\n 'Cowes, UK',\n 'Boise, US',\n 'Oulu, FI',\n];\nconst CARRIERS = ['UPS', 'FedEx', 'DHL', 'USPS'];\nconst STATUSES = ['In transit', 'Delivered', 'Delayed', 'Customs'];\n\nfunction shipments(count: number): Shipment[] {\n let seed = 7;\n const next = () => (seed = (seed * 1664525 + 1013904223) % 4294967296) / 4294967296;\n const pick = <T>(list: readonly T[]) => list[Math.floor(next() * list.length)]!;\n return Array.from({ length: count }, (_, index) => {\n const weight = Math.round(next() * 9000) / 10;\n return {\n id: `SH-${3301 + index}`,\n customer: pick(CUSTOMERS),\n destination: pick(DESTINATIONS),\n carrier: pick(CARRIERS),\n status: pick(STATUSES),\n shipped: `2026-09-${String(1 + Math.floor(next() * 28)).padStart(2, '0')}`,\n weight,\n cost: Math.round(weight * (2 + next() * 3) * 100) / 100,\n priority: next() < 0.3,\n };\n });\n}\n\nconst USD = new Intl.NumberFormat('en-US', { currency: 'USD', style: 'currency' });\nconst money = (value: unknown) => (typeof value === 'number' ? USD.format(value) : '');\nconst kilograms = (value: unknown) => (typeof value === 'number' ? `${value.toFixed(1)} kg` : '');\n\nconst COLUMNS: GridColumn<Shipment>[] = [\n { id: 'id', label: 'Shipment', accessor: 'id', rowHeader: true, width: 120, text: 'nowrap' },\n { id: 'customer', label: 'Customer', accessor: 'customer', flex: 1, minWidth: 180 },\n { id: 'destination', label: 'Destination', accessor: 'destination', width: 170 },\n {\n id: 'carrier',\n label: 'Carrier',\n accessor: 'carrier',\n kind: 'set',\n width: 110,\n options: CARRIERS.map((value) => ({ value, label: value })),\n },\n {\n id: 'status',\n label: 'Status',\n accessor: 'status',\n kind: 'set',\n width: 120,\n options: STATUSES.map((value) => ({ value, label: value })),\n },\n { id: 'shipped', label: 'Shipped', accessor: 'shipped', kind: 'date', width: 130 },\n {\n id: 'weight',\n label: 'Weight',\n accessor: 'weight',\n kind: 'number',\n width: 110,\n format: kilograms,\n },\n { id: 'cost', label: 'Cost', accessor: 'cost', kind: 'number', width: 120, format: money },\n];\n\nconst ROWS = shipments(24);\n\n@Component({\n selector: 'app-data-grid-search',\n imports: [SlDataGrid, SlStack, SlTextField, SlTextFieldInput],\n template: `\n <div slStack [gap]=\"3\">\n <div slTextField clearable>\n <input\n slTextFieldInput\n aria-label=\"Search shipments\"\n placeholder=\"Search shipments\"\n [value]=\"query().search\"\n (valueChange)=\"search($event.value)\"\n />\n </div>\n <sl-data-grid\n aria-label=\"Shipments\"\n rowKey=\"id\"\n height=\"22rem\"\n [(query)]=\"query\"\n [columns]=\"columns\"\n [rows]=\"rows\"\n ></sl-data-grid>\n </div>\n `,\n})\nexport class DataGridSearch {\n readonly rows = ROWS;\n readonly columns = COLUMNS;\n readonly query = signal<GridQuery>({ ...emptyQuery(), search: 'graz' });\n\n search(text: string): void {\n this.query.update((current) => withSearch(current, text).query);\n }\n}\n",
|
|
1280
1280
|
"verdict": "example"
|
package/docs/data-grid.props.md
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
| `error` | `string \| null` | — | sl-data-grid | The message of a failed load; draws the error state with Try again, which emits retry. |
|
|
24
24
|
| `disabledKeys` | `string[]` | — | sl-data-grid | Rows that are neither selectable nor editable, drawn with data-disabled. |
|
|
25
25
|
| `query` | `model<GridQuery>` | emptyQuery() | sl-data-grid | sort, filter, search, page and group in one object, two-way. An unbound grid starts from the model’s own initial value. |
|
|
26
|
-
| `columnState` | `model<Partial<GridColumnState> \| undefined>` | — | sl-data-grid | order, widths, hidden and pinned, two-way;
|
|
26
|
+
| `columnState` | `model<Partial<GridColumnState> \| undefined>` | — | sl-data-grid | order, widths, hidden and pinned, two-way; normalized against columns on every read. |
|
|
27
27
|
| `selectionMode` | `'none' \| 'single' \| 'multiple' \| 'range'` | none | sl-data-grid | Rows, one or many, with the checkbox column in multiple; or a rectangle of cells. |
|
|
28
28
|
| `value` | `model<string \| readonly string[] \| null>` | null | sl-data-grid | The selected row (single) or rows (multiple), two-way, and the value a form control holds through ControlValueAccessor. |
|
|
29
29
|
| `range` | `model<GridRange \| null>` | null | sl-data-grid | The cell rectangle as anchor and focus, in range mode, two-way. |
|
package/docs/date-field.json
CHANGED
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
"title": "Playground",
|
|
404
404
|
"note": "One control with every input on it, driven by the controls below the canvas. Type into it: each field takes digits, the arrows step it, and the clear button appears only once there is something to clear.",
|
|
405
405
|
"language": "html",
|
|
406
|
-
"source": "<div slField>\n <label slFieldLabel>
|
|
406
|
+
"source": "<div slField>\n <label slFieldLabel>Due date</label>\n <div slDateField clearable locale=\"pt-BR\" name=\"due-date\"></div>\n <span slFieldDescription>The invoice is due on this date.</span>\n</div>\n",
|
|
407
407
|
"verdict": "excerpt"
|
|
408
408
|
},
|
|
409
409
|
{
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
{
|
|
442
442
|
"id": "states",
|
|
443
443
|
"title": "States",
|
|
444
|
-
"note": "Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer; invalid keeps its focus ring and retargets its
|
|
444
|
+
"note": "Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer; invalid keeps its focus ring and retargets its color. Tab through the row to see each one answer.",
|
|
445
445
|
"language": "html",
|
|
446
446
|
"source": "<div slDateField readOnly></div>\n<div slDateField invalid></div>\n<div slDateField disabled></div>\n<div slDateField required></div>\n",
|
|
447
447
|
"verdict": "excerpt"
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
{
|
|
490
490
|
"id": "keyboard",
|
|
491
491
|
"title": "The keyboard",
|
|
492
|
-
"note": "Every key the spin-button pattern lists, on the field that has focus. Note two
|
|
492
|
+
"note": "Every key the spin-button pattern lists, on the field that has focus. Note two behaviors nothing else here has: a step wraps inside its own field, and a day a short month could not hold comes back when a longer one can.",
|
|
493
493
|
"language": "html",
|
|
494
494
|
"source": "<!-- ArrowUp / ArrowDown step one, wrapping inside the field -->\n<!-- PageUp / PageDown five for a day or a month, ten for a year -->\n<!-- Home / End the field's lowest and highest value -->\n<!-- ArrowLeft / Right the previous and next field, in writing order -->\n<!-- 0-9 fills the field and moves on when it is full -->\n<!-- Backspace / Delete empties one field back to its placeholder -->\n<div slDateField></div>\n",
|
|
495
495
|
"verdict": "excerpt"
|
package/docs/date-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 slDateField clearable locale="pt-BR" name="
|
|
22
|
-
<span slFieldDescription>
|
|
20
|
+
<label slFieldLabel>Due date</label>
|
|
21
|
+
<div slDateField clearable locale="pt-BR" name="due-date"></div>
|
|
22
|
+
<span slFieldDescription>The invoice is due on this date.</span>
|
|
23
23
|
</div>
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -148,7 +148,7 @@ Excerpt — not a complete module
|
|
|
148
148
|
|
|
149
149
|
### States
|
|
150
150
|
|
|
151
|
-
Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer; invalid keeps its focus ring and retargets its
|
|
151
|
+
Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer; invalid keeps its focus ring and retargets its color. Tab through the row to see each one answer.
|
|
152
152
|
|
|
153
153
|
Excerpt — not a complete module
|
|
154
154
|
|
|
@@ -221,7 +221,7 @@ Excerpt — not a complete module
|
|
|
221
221
|
|
|
222
222
|
### The keyboard
|
|
223
223
|
|
|
224
|
-
Every key the spin-button pattern lists, on the field that has focus. Note two
|
|
224
|
+
Every key the spin-button pattern lists, on the field that has focus. Note two behaviors nothing else here has: a step wraps inside its own field, and a day a short month could not hold comes back when a longer one can.
|
|
225
225
|
|
|
226
226
|
Excerpt — not a complete module
|
|
227
227
|
|
package/docs/date-picker.json
CHANGED
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"part": "grip",
|
|
124
124
|
"element": "span, aria-hidden",
|
|
125
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
|
|
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
127
|
},
|
|
128
128
|
{
|
|
129
129
|
"part": "presets",
|