@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
|
@@ -16,7 +16,7 @@ Selector: `[slTableOfContents]` · exportAs: `slTableOfContents`
|
|
|
16
16
|
Excerpt — not a complete module
|
|
17
17
|
|
|
18
18
|
```html
|
|
19
|
-
<nav slTableOfContents [items]="sections" label="
|
|
19
|
+
<nav slTableOfContents [items]="sections" label="On this page"></nav>
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Anatomy
|
|
@@ -106,13 +106,13 @@ Excerpt — not a complete module
|
|
|
106
106
|
|
|
107
107
|
```html
|
|
108
108
|
<nav slTableOfContents [items]="sections" [(value)]="section">
|
|
109
|
-
<ng-template slTableOfContentsLabel>
|
|
109
|
+
<ng-template slTableOfContentsLabel>On this page</ng-template>
|
|
110
110
|
</nav>
|
|
111
111
|
```
|
|
112
112
|
|
|
113
113
|
### Read from the document’s own headings
|
|
114
114
|
|
|
115
|
-
The returns policy is prose; nobody wrote a list for it. source points at the article, the family reads its h2 and h3 after the view is built, writes an id on each heading that has none — “
|
|
115
|
+
The returns policy is prose; nobody wrote a list for it. source points at the article, the family reads its h2 and h3 after the view is built, writes an id on each heading that has none — “Return periods” becomes #return-periods — and rebuilds the list when the article changes.
|
|
116
116
|
|
|
117
117
|
Excerpt — not a complete module
|
|
118
118
|
|
|
@@ -140,7 +140,7 @@ sticky pins the list under the page’s chrome and gives it the rest of the view
|
|
|
140
140
|
Excerpt — not a complete module
|
|
141
141
|
|
|
142
142
|
```html
|
|
143
|
-
<nav slTableOfContents [items]="sections" label="
|
|
143
|
+
<nav slTableOfContents [items]="sections" label="On this page" sticky></nav>
|
|
144
144
|
```
|
|
145
145
|
|
|
146
146
|
### The bar under a page title
|
|
@@ -165,19 +165,19 @@ Excerpt — not a complete module
|
|
|
165
165
|
<nav
|
|
166
166
|
slTableOfContents
|
|
167
167
|
[items]="sections"
|
|
168
|
-
label="
|
|
168
|
+
label="On this page"
|
|
169
169
|
[layout]="phone() ? 'collapsed' : 'vertical'"
|
|
170
170
|
></nav>
|
|
171
171
|
```
|
|
172
172
|
|
|
173
173
|
### Clauses, numbered
|
|
174
174
|
|
|
175
|
-
A supplier contract is read by clause number. numbered draws counters per level — 2., 2.1, 2.2 — in tabular figures, so a column of numbers lines up and a reader on the phone with legal can say “
|
|
175
|
+
A supplier contract is read by clause number. numbered draws counters per level — 2., 2.1, 2.2 — in tabular figures, so a column of numbers lines up and a reader on the phone with legal can say “clause 3.2” and mean the same line.
|
|
176
176
|
|
|
177
177
|
Excerpt — not a complete module
|
|
178
178
|
|
|
179
179
|
```html
|
|
180
|
-
<nav slTableOfContents [items]="clauses" label="
|
|
180
|
+
<nav slTableOfContents [items]="clauses" label="Clauses" numbered></nav>
|
|
181
181
|
```
|
|
182
182
|
|
|
183
183
|
### Three steps on the control scale
|
|
@@ -208,8 +208,8 @@ Excerpt — not a complete module
|
|
|
208
208
|
|
|
209
209
|
```ts
|
|
210
210
|
const items = [
|
|
211
|
-
{ id: '
|
|
212
|
-
{ id: 'ref', label: 'REF-2026-09-16-
|
|
211
|
+
{ id: 'scope', label: 'Scope of application and definitions used in this document' },
|
|
212
|
+
{ id: 'ref', label: 'REF-2026-09-16-INDUSTRIAL-RETURN-000482915' },
|
|
213
213
|
];
|
|
214
214
|
```
|
|
215
215
|
|
|
@@ -274,16 +274,16 @@ Excerpt — not a complete module
|
|
|
274
274
|
|
|
275
275
|
```html
|
|
276
276
|
<nav slTableOfContents #list="slTableOfContents" [items]="sections"></nav>
|
|
277
|
-
<button slButton (click)="list.focus()">
|
|
277
|
+
<button slButton (click)="list.focus()">Focus the index</button>
|
|
278
278
|
```
|
|
279
279
|
|
|
280
280
|
### What a screen reader hears
|
|
281
281
|
|
|
282
|
-
A navigation landmark named “
|
|
282
|
+
A navigation landmark named “On this page”, a list of six items, and one link announced as “current location”. After Enter the reader hears the section’s heading, because focus moved there. The collapsed trigger announces expanded and collapsed, and Escape returns to it.
|
|
283
283
|
|
|
284
284
|
Excerpt — not a complete module
|
|
285
285
|
|
|
286
286
|
```html
|
|
287
|
-
<nav slTableOfContents [items]="sections" label="
|
|
287
|
+
<nav slTableOfContents [items]="sections" label="On this page"></nav>
|
|
288
288
|
<!-- <nav aria-labelledby="…-label"> … <a aria-current="location"> -->
|
|
289
289
|
```
|
package/docs/table.examples.md
CHANGED
|
@@ -51,7 +51,7 @@ Excerpt — not a complete module
|
|
|
51
51
|
|
|
52
52
|
### A stripe to carry the eye across
|
|
53
53
|
|
|
54
|
-
Off by default, because a stripe costs a row its own state
|
|
54
|
+
Off by default, because a stripe costs a row its own state colors. It is mixed from the ink at five per cent, one step under the header band, and every state is painted over it: a striped row that is selected reads as selected.
|
|
55
55
|
|
|
56
56
|
Example
|
|
57
57
|
|
package/docs/table.json
CHANGED
|
@@ -877,7 +877,7 @@
|
|
|
877
877
|
{
|
|
878
878
|
"id": "striped",
|
|
879
879
|
"title": "A stripe to carry the eye across",
|
|
880
|
-
"note": "Off by default, because a stripe costs a row its own state
|
|
880
|
+
"note": "Off by default, because a stripe costs a row its own state colors. It is mixed from the ink at five per cent, one step under the header band, and every state is painted over it: a striped row that is selected reads as selected.",
|
|
881
881
|
"language": "ts",
|
|
882
882
|
"source": "import { Component } from '@angular/core';\nimport {\n SlTable,\n SlTableBody,\n SlTableCell,\n SlTableColumnHeader,\n SlTableContent,\n SlTableHead,\n SlTableRow,\n SlTableRowHeader,\n} from '@slotted/angular/table';\n\nconst STOCK = [\n { sku: 'PRD-0412', product: 'Chai', warehouse: 'Reno', onHand: 390, reserved: 42 },\n { sku: 'PRD-0413', product: 'Chang', warehouse: 'Reno', onHand: 170, reserved: 12 },\n { sku: 'PRD-0414', product: 'Aniseed Syrup', warehouse: 'Columbus', onHand: 130, reserved: 70 },\n {\n sku: 'PRD-0415',\n product: \"Chef Anton's Cajun Seasoning\",\n warehouse: 'Savannah',\n onHand: 530,\n reserved: 0,\n },\n {\n sku: 'PRD-0416',\n product: \"Grandma's Boysenberry Spread\",\n warehouse: 'Columbus',\n onHand: 120,\n reserved: 25,\n },\n {\n sku: 'PRD-0417',\n product: 'Northwoods Cranberry Sauce',\n warehouse: 'Reno',\n onHand: 60,\n reserved: 60,\n },\n];\n\n@Component({\n selector: 'app-table-striped',\n imports: [\n SlTable,\n SlTableBody,\n SlTableCell,\n SlTableColumnHeader,\n SlTableContent,\n SlTableHead,\n SlTableRow,\n SlTableRowHeader,\n ],\n template: `\n <div slTable [columns]=\"5\" striped>\n <div slTableContent aria-label=\"Stock on hand\">\n <thead slTableHead>\n <tr slTableRow>\n <th slTableColumnHeader>SKU</th>\n <th slTableColumnHeader>Product</th>\n <th slTableColumnHeader>Warehouse</th>\n <th slTableColumnHeader numeric>On hand</th>\n <th slTableColumnHeader numeric>Reserved</th>\n </tr>\n </thead>\n <tbody slTableBody>\n @for (item of stock; track item.sku) {\n <tr slTableRow [value]=\"item.sku\">\n <th slTableRowHeader text=\"nowrap\">{{ item.sku }}</th>\n <td slTableCell>{{ item.product }}</td>\n <td slTableCell>{{ item.warehouse }}</td>\n <td slTableCell numeric>{{ item.onHand }}</td>\n <td slTableCell numeric>{{ item.reserved }}</td>\n </tr>\n }\n </tbody>\n </div>\n </div>\n `,\n})\nexport class TableStriped {\n readonly stock = STOCK;\n}\n",
|
|
883
883
|
"verdict": "example"
|
package/docs/tabs.json
CHANGED
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
"The paging controls are aria-hidden and outside the Tab sequence, because the arrow keys reach every tab and scroll it into view. Cloudscape’s guidance warns against extra Tab stops between a tab list and its panel.",
|
|
377
377
|
"A list that starts to overflow scrolls the selected tab into view once its paging controls are drawn, so the selected tab is not left behind the end control.",
|
|
378
378
|
"Each tab names its panel with aria-controls and each panel names its tab with aria-labelledby. The ids come from the value, with the characters an id cannot hold escaped rather than replaced, so two values that differ only by a space never share a panel.",
|
|
379
|
-
"The selected tab is never shown by
|
|
379
|
+
"The selected tab is never shown by color alone: the marker is a bar never thinner than a thick border, which stays visible in the high-contrast scheme, where the theme paints every surface Canvas and the fill of the contained variant disappears.",
|
|
380
380
|
"A panel carries tabindex=\"0\", so the Tab key reaches it from the list. The pattern permits that stop even when the panel’s first content is focusable."
|
|
381
381
|
]
|
|
382
382
|
}
|
package/docs/tabs.md
CHANGED
|
@@ -200,7 +200,7 @@ export class TabsBasic {
|
|
|
200
200
|
- The paging controls are aria-hidden and outside the Tab sequence, because the arrow keys reach every tab and scroll it into view. Cloudscape’s guidance warns against extra Tab stops between a tab list and its panel.
|
|
201
201
|
- A list that starts to overflow scrolls the selected tab into view once its paging controls are drawn, so the selected tab is not left behind the end control.
|
|
202
202
|
- Each tab names its panel with aria-controls and each panel names its tab with aria-labelledby. The ids come from the value, with the characters an id cannot hold escaped rather than replaced, so two values that differ only by a space never share a panel.
|
|
203
|
-
- The selected tab is never shown by
|
|
203
|
+
- The selected tab is never shown by color alone: the marker is a bar never thinner than a thick border, which stays visible in the high-contrast scheme, where the theme paints every surface Canvas and the fill of the contained variant disappears.
|
|
204
204
|
- A panel carries tabindex="0", so the Tab key reaches it from the list. The pattern permits that stop even when the panel’s first content is focusable.
|
|
205
205
|
|
|
206
206
|
## Tokens
|
package/docs/tag.json
CHANGED
|
@@ -186,14 +186,14 @@
|
|
|
186
186
|
"type": "'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
|
|
187
187
|
"defaultValue": "secondary",
|
|
188
188
|
"appliesTo": "slTag",
|
|
189
|
-
"description": "Which of the five semantic
|
|
189
|
+
"description": "Which of the five semantic colors the tag speaks in"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
"name": "variant",
|
|
193
193
|
"type": "'solid' | 'soft' | 'outline' | 'dashed'",
|
|
194
194
|
"defaultValue": "soft",
|
|
195
195
|
"appliesTo": "slTag",
|
|
196
|
-
"description": "How that
|
|
196
|
+
"description": "How that color is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant"
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
"name": "size",
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
"The remove control is as tall as the chip and as wide as its glyph plus a step of air on each side, floored at the WCAG 2.2 2.5.8 minimum of 24 CSS pixels, which carries it past that minimum in both axes at every size and every density. The chip’s own height is floored at that minimum for the same reason.",
|
|
307
307
|
"A tag is one line. A value too long for its container is clipped with an ellipsis rather than reflowed, and the clipping is visual only: the whole value stays in the DOM, in the accessibility tree, and findable by page search.",
|
|
308
308
|
"The label is a bidi isolate whose direction comes from its own first strong character, so an Arabic value inside an English page reads right to left and is clipped at its own end.",
|
|
309
|
-
"Under forced
|
|
309
|
+
"Under forced colors every tone ground becomes one system color, so the family draws its edge in currentColor there, and a selected chip takes the system’s own Highlight pair.",
|
|
310
310
|
"A static tag carries no role of its own. What a value means comes from where it sits, and a role invented here would be wrong more often than right.",
|
|
311
311
|
"A run of static tags is written role=\"list\" on the group, which announces its length and turns the arrow keys off."
|
|
312
312
|
]
|
|
@@ -320,14 +320,14 @@
|
|
|
320
320
|
"type": "'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
|
|
321
321
|
"defaultValue": "secondary",
|
|
322
322
|
"appliesTo": "slTag",
|
|
323
|
-
"description": "Which of the five semantic
|
|
323
|
+
"description": "Which of the five semantic colors the tag speaks in"
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
326
|
"name": "variant",
|
|
327
327
|
"type": "'solid' | 'soft' | 'outline' | 'dashed'",
|
|
328
328
|
"defaultValue": "soft",
|
|
329
329
|
"appliesTo": "slTag",
|
|
330
|
-
"description": "How that
|
|
330
|
+
"description": "How that color is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant"
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
333
|
"name": "size",
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
"The remove control is as tall as the chip and as wide as its glyph plus a step of air on each side, floored at the WCAG 2.2 2.5.8 minimum of 24 CSS pixels, which carries it past that minimum in both axes at every size and every density. The chip’s own height is floored at that minimum for the same reason.",
|
|
413
413
|
"A tag is one line. A value too long for its container is clipped with an ellipsis rather than reflowed, and the clipping is visual only: the whole value stays in the DOM, in the accessibility tree, and findable by page search.",
|
|
414
414
|
"The label is a bidi isolate whose direction comes from its own first strong character, so an Arabic value inside an English page reads right to left and is clipped at its own end.",
|
|
415
|
-
"Under forced
|
|
415
|
+
"Under forced colors every tone ground becomes one system color, so the family draws its edge in currentColor there, and a selected chip takes the system’s own Highlight pair.",
|
|
416
416
|
"The command is a real button, so Enter and Space both activate it and the platform supplies the rest.",
|
|
417
417
|
"A disabled chip writes the native disabled attribute on a button body, which is the form the platform offers for that element."
|
|
418
418
|
]
|
|
@@ -426,14 +426,14 @@
|
|
|
426
426
|
"type": "'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
|
|
427
427
|
"defaultValue": "secondary",
|
|
428
428
|
"appliesTo": "slTag",
|
|
429
|
-
"description": "Which of the five semantic
|
|
429
|
+
"description": "Which of the five semantic colors the tag speaks in"
|
|
430
430
|
},
|
|
431
431
|
{
|
|
432
432
|
"name": "variant",
|
|
433
433
|
"type": "'solid' | 'soft' | 'outline' | 'dashed'",
|
|
434
434
|
"defaultValue": "soft",
|
|
435
435
|
"appliesTo": "slTag",
|
|
436
|
-
"description": "How that
|
|
436
|
+
"description": "How that color is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant"
|
|
437
437
|
},
|
|
438
438
|
{
|
|
439
439
|
"name": "size",
|
|
@@ -518,7 +518,7 @@
|
|
|
518
518
|
"The remove control is as tall as the chip and as wide as its glyph plus a step of air on each side, floored at the WCAG 2.2 2.5.8 minimum of 24 CSS pixels, which carries it past that minimum in both axes at every size and every density. The chip’s own height is floored at that minimum for the same reason.",
|
|
519
519
|
"A tag is one line. A value too long for its container is clipped with an ellipsis rather than reflowed, and the clipping is visual only: the whole value stays in the DOM, in the accessibility tree, and findable by page search.",
|
|
520
520
|
"The label is a bidi isolate whose direction comes from its own first strong character, so an Arabic value inside an English page reads right to left and is clipped at its own end.",
|
|
521
|
-
"Under forced
|
|
521
|
+
"Under forced colors every tone ground becomes one system color, so the family draws its edge in currentColor there, and a selected chip takes the system’s own Highlight pair.",
|
|
522
522
|
"The destination is a real anchor, so middle click, the context menu, download and “open in new tab” all keep working.",
|
|
523
523
|
"A disabled chip link keeps its place in the tab sequence and loses its href, which is the line the link family draws: an anchor without a destination would drop out of the tab sequence and take its own explanation with it."
|
|
524
524
|
]
|
|
@@ -532,14 +532,14 @@
|
|
|
532
532
|
"type": "'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
|
|
533
533
|
"defaultValue": "secondary",
|
|
534
534
|
"appliesTo": "slTag",
|
|
535
|
-
"description": "Which of the five semantic
|
|
535
|
+
"description": "Which of the five semantic colors the tag speaks in"
|
|
536
536
|
},
|
|
537
537
|
{
|
|
538
538
|
"name": "variant",
|
|
539
539
|
"type": "'solid' | 'soft' | 'outline' | 'dashed'",
|
|
540
540
|
"defaultValue": "soft",
|
|
541
541
|
"appliesTo": "slTag",
|
|
542
|
-
"description": "How that
|
|
542
|
+
"description": "How that color is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant"
|
|
543
543
|
},
|
|
544
544
|
{
|
|
545
545
|
"name": "size",
|
|
@@ -638,10 +638,10 @@
|
|
|
638
638
|
"The remove control is as tall as the chip and as wide as its glyph plus a step of air on each side, floored at the WCAG 2.2 2.5.8 minimum of 24 CSS pixels, which carries it past that minimum in both axes at every size and every density. The chip’s own height is floored at that minimum for the same reason.",
|
|
639
639
|
"A tag is one line. A value too long for its container is clipped with an ellipsis rather than reflowed, and the clipping is visual only: the whole value stays in the DOM, in the accessibility tree, and findable by page search.",
|
|
640
640
|
"The label is a bidi isolate whose direction comes from its own first strong character, so an Arabic value inside an English page reads right to left and is clipped at its own end.",
|
|
641
|
-
"Under forced
|
|
641
|
+
"Under forced colors every tone ground becomes one system color, so the family draws its edge in currentColor there, and a selected chip takes the system’s own Highlight pair.",
|
|
642
642
|
"A selected tag announces aria-pressed, not aria-selected. aria-selected is only valid inside a listbox, a grid or a tree, and an option may not contain the remove control this family puts beside the label.",
|
|
643
643
|
"The label never changes with the state, which is the APG’s rule for a toggle.",
|
|
644
|
-
"Selection is not
|
|
644
|
+
"Selection is not color alone. The chip fills, and a check grows into the label beside the words — WCAG 2.2 1.4.1."
|
|
645
645
|
]
|
|
646
646
|
}
|
|
647
647
|
},
|
|
@@ -746,7 +746,7 @@
|
|
|
746
746
|
"title": "A value beside the thing it belongs to",
|
|
747
747
|
"note": null,
|
|
748
748
|
"language": "html",
|
|
749
|
-
"source": "<span slTag tone=\"success\"><span slTagBody>
|
|
749
|
+
"source": "<span slTag tone=\"success\"><span slTagBody>Delivered</span></span>\n",
|
|
750
750
|
"verdict": "excerpt"
|
|
751
751
|
},
|
|
752
752
|
{
|
|
@@ -754,7 +754,7 @@
|
|
|
754
754
|
"title": "A run of values a person can take away",
|
|
755
755
|
"note": null,
|
|
756
756
|
"language": "html",
|
|
757
|
-
"source": "<div slTagGroup aria-label=\"
|
|
757
|
+
"source": "<div slTagGroup aria-label=\"Labels\">\n @for (label of labels(); track label) {\n <span slTag removable (remove)=\"drop(label)\">\n <span slTagBody>{{ label }}</span>\n <button slTagRemove></button>\n </span>\n }\n</div>\n",
|
|
758
758
|
"verdict": "excerpt"
|
|
759
759
|
},
|
|
760
760
|
{
|
|
@@ -762,7 +762,7 @@
|
|
|
762
762
|
"title": "A removal the application refuses until it is confirmed",
|
|
763
763
|
"note": null,
|
|
764
764
|
"language": "html",
|
|
765
|
-
"source": "<span slTag removable (remove)=\"confirm($event)\">\n <span slTagBody>
|
|
765
|
+
"source": "<span slTag removable (remove)=\"confirm($event)\">\n <span slTagBody>Production</span>\n <button slTagRemove></button>\n</span>\n",
|
|
766
766
|
"verdict": "excerpt"
|
|
767
767
|
},
|
|
768
768
|
{
|
|
@@ -778,7 +778,7 @@
|
|
|
778
778
|
"title": "A chip that runs a command",
|
|
779
779
|
"note": null,
|
|
780
780
|
"language": "html",
|
|
781
|
-
"source": "<span slTag>\n <button slTagBody (click)=\"assign()\">
|
|
781
|
+
"source": "<span slTag>\n <button slTagBody (click)=\"assign()\">Assign owner</button>\n</span>\n",
|
|
782
782
|
"verdict": "excerpt"
|
|
783
783
|
},
|
|
784
784
|
{
|
package/docs/tag.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Excerpt — not a complete module
|
|
9
9
|
|
|
10
10
|
```html
|
|
11
|
-
<span slTag tone="success"><span slTagBody>
|
|
11
|
+
<span slTag tone="success"><span slTagBody>Delivered</span></span>
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
## Props
|
|
@@ -17,8 +17,8 @@ Excerpt — not a complete module
|
|
|
17
17
|
|
|
18
18
|
| Name | Type | Default | Applies to | Description |
|
|
19
19
|
| --- | --- | --- | --- | --- |
|
|
20
|
-
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | slTag | Which of the five semantic
|
|
21
|
-
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | slTag | How that
|
|
20
|
+
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | slTag | Which of the five semantic colors the tag speaks in |
|
|
21
|
+
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | slTag | How that color is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
|
|
22
22
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | slTag | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
|
|
23
23
|
| `shape` | `'pill' \| 'square'` | pill | slTag | A rounded chip, or a rectangle with the small corner radius |
|
|
24
24
|
| `start` | `slTagStart` | — | slTag | A glyph or an avatar before the words: the directive on the consumer’s own element, projected into the content box |
|
|
@@ -38,8 +38,8 @@ Excerpt — not a complete module
|
|
|
38
38
|
|
|
39
39
|
| Name | Type | Default | Applies to | Description |
|
|
40
40
|
| --- | --- | --- | --- | --- |
|
|
41
|
-
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | slTag | Which of the five semantic
|
|
42
|
-
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | slTag | How that
|
|
41
|
+
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | slTag | Which of the five semantic colors the tag speaks in |
|
|
42
|
+
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | slTag | How that color is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
|
|
43
43
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | slTag | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
|
|
44
44
|
| `shape` | `'pill' \| 'square'` | pill | slTag | A rounded chip, or a rectangle with the small corner radius |
|
|
45
45
|
| `start` | `slTagStart` | — | slTagBody | A glyph or an avatar before the words: the directive on the consumer’s own element, projected into the content box |
|
|
@@ -55,8 +55,8 @@ Excerpt — not a complete module
|
|
|
55
55
|
|
|
56
56
|
| Name | Type | Default | Applies to | Description |
|
|
57
57
|
| --- | --- | --- | --- | --- |
|
|
58
|
-
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | slTag | Which of the five semantic
|
|
59
|
-
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | slTag | How that
|
|
58
|
+
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | slTag | Which of the five semantic colors the tag speaks in |
|
|
59
|
+
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | slTag | How that color is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
|
|
60
60
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | slTag | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
|
|
61
61
|
| `shape` | `'pill' \| 'square'` | pill | slTag | A rounded chip, or a rectangle with the small corner radius |
|
|
62
62
|
| `start` | `slTagStart` | — | slTagBody | A glyph or an avatar before the words: the directive on the consumer’s own element, projected into the content box |
|
|
@@ -72,8 +72,8 @@ Excerpt — not a complete module
|
|
|
72
72
|
|
|
73
73
|
| Name | Type | Default | Applies to | Description |
|
|
74
74
|
| --- | --- | --- | --- | --- |
|
|
75
|
-
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | slTag | Which of the five semantic
|
|
76
|
-
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | slTag | How that
|
|
75
|
+
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | slTag | Which of the five semantic colors the tag speaks in |
|
|
76
|
+
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | slTag | How that color is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
|
|
77
77
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | slTag | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
|
|
78
78
|
| `shape` | `'pill' \| 'square'` | pill | slTag | A rounded chip, or a rectangle with the small corner radius |
|
|
79
79
|
| `start` | `slTagStart` | — | slTagToggle | A glyph or an avatar before the words: the directive on the consumer’s own element, projected into the content box |
|
|
@@ -108,7 +108,7 @@ Excerpt — not a complete module
|
|
|
108
108
|
- The remove control is as tall as the chip and as wide as its glyph plus a step of air on each side, floored at the WCAG 2.2 2.5.8 minimum of 24 CSS pixels, which carries it past that minimum in both axes at every size and every density. The chip’s own height is floored at that minimum for the same reason.
|
|
109
109
|
- A tag is one line. A value too long for its container is clipped with an ellipsis rather than reflowed, and the clipping is visual only: the whole value stays in the DOM, in the accessibility tree, and findable by page search.
|
|
110
110
|
- The label is a bidi isolate whose direction comes from its own first strong character, so an Arabic value inside an English page reads right to left and is clipped at its own end.
|
|
111
|
-
- Under forced
|
|
111
|
+
- Under forced colors every tone ground becomes one system color, so the family draws its edge in currentColor there, and a selected chip takes the system’s own Highlight pair.
|
|
112
112
|
- A static tag carries no role of its own. What a value means comes from where it sits, and a role invented here would be wrong more often than right.
|
|
113
113
|
- A run of static tags is written role="list" on the group, which announces its length and turns the arrow keys off.
|
|
114
114
|
- The command is a real button, so Enter and Space both activate it and the platform supplies the rest.
|
|
@@ -117,7 +117,7 @@ Excerpt — not a complete module
|
|
|
117
117
|
- A disabled chip link keeps its place in the tab sequence and loses its href, which is the line the link family draws: an anchor without a destination would drop out of the tab sequence and take its own explanation with it.
|
|
118
118
|
- A selected tag announces aria-pressed, not aria-selected. aria-selected is only valid inside a listbox, a grid or a tree, and an option may not contain the remove control this family puts beside the label.
|
|
119
119
|
- The label never changes with the state, which is the APG’s rule for a toggle.
|
|
120
|
-
- Selection is not
|
|
120
|
+
- Selection is not color alone. The chip fills, and a check grows into the label beside the words — WCAG 2.2 1.4.1.
|
|
121
121
|
|
|
122
122
|
## Tokens
|
|
123
123
|
|
|
@@ -130,7 +130,7 @@ Excerpt — not a complete module
|
|
|
130
130
|
Excerpt — not a complete module
|
|
131
131
|
|
|
132
132
|
```html
|
|
133
|
-
<div slTagGroup aria-label="
|
|
133
|
+
<div slTagGroup aria-label="Labels">
|
|
134
134
|
@for (label of labels(); track label) {
|
|
135
135
|
<span slTag removable (remove)="drop(label)">
|
|
136
136
|
<span slTagBody>{{ label }}</span>
|
|
@@ -146,7 +146,7 @@ Excerpt — not a complete module
|
|
|
146
146
|
|
|
147
147
|
```html
|
|
148
148
|
<span slTag removable (remove)="confirm($event)">
|
|
149
|
-
<span slTagBody>
|
|
149
|
+
<span slTagBody>Production</span>
|
|
150
150
|
<button slTagRemove></button>
|
|
151
151
|
</span>
|
|
152
152
|
```
|
|
@@ -167,7 +167,7 @@ Excerpt — not a complete module
|
|
|
167
167
|
|
|
168
168
|
```html
|
|
169
169
|
<span slTag>
|
|
170
|
-
<button slTagBody (click)="assign()">
|
|
170
|
+
<button slTagBody (click)="assign()">Assign owner</button>
|
|
171
171
|
</span>
|
|
172
172
|
```
|
|
173
173
|
|
package/docs/tags-input.json
CHANGED
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
"accessibility": [
|
|
538
538
|
"The control is a layout grid with one row: the chips are cells and the field is the last cell, so one Tab reaches the input and the arrows walk the row. The input carries no role, because it opens nothing.",
|
|
539
539
|
"Focus is set on a chip cell rather than on the remove button inside it, which is tabindex=\"-1\"; Delete and Backspace do what the button does, and the row’s hint says so. Angular Material’s own chip grid resolves the grid pattern’s text-plus-widget cell the same way.",
|
|
540
|
-
"An invalid value is said three ways — the danger tone, the alert mark, and a description carrying the reason — because
|
|
540
|
+
"An invalid value is said three ways — the danger tone, the alert mark, and a description carrying the reason — because color alone is not a message. The same reason is the input’s custom validity and the Validator’s invalidValues error, so a native form and a Reactive Form both refuse it.",
|
|
541
541
|
"Every change is announced once, politely: a value added with the count now held and its reason if it failed, a value removed with the count that is left, a move with its new position, a duplicate with the chip that holds it, and a copy with the count copied.",
|
|
542
542
|
"After a removal focus goes to the chip that took the removed one’s index, then the previous one, then the input — it is never lost to the document body."
|
|
543
543
|
]
|
package/docs/tags-input.md
CHANGED
|
@@ -121,7 +121,7 @@ Excerpt — not a complete module
|
|
|
121
121
|
|
|
122
122
|
- The control is a layout grid with one row: the chips are cells and the field is the last cell, so one Tab reaches the input and the arrows walk the row. The input carries no role, because it opens nothing.
|
|
123
123
|
- Focus is set on a chip cell rather than on the remove button inside it, which is tabindex="-1"; Delete and Backspace do what the button does, and the row’s hint says so. Angular Material’s own chip grid resolves the grid pattern’s text-plus-widget cell the same way.
|
|
124
|
-
- An invalid value is said three ways — the danger tone, the alert mark, and a description carrying the reason — because
|
|
124
|
+
- An invalid value is said three ways — the danger tone, the alert mark, and a description carrying the reason — because color alone is not a message. The same reason is the input’s custom validity and the Validator’s invalidValues error, so a native form and a Reactive Form both refuse it.
|
|
125
125
|
- Every change is announced once, politely: a value added with the count now held and its reason if it failed, a value removed with the count that is left, a move with its new position, a duplicate with the chip that holds it, and a copy with the count copied.
|
|
126
126
|
- After a removal focus goes to the chip that took the removed one’s index, then the previous one, then the input — it is never lost to the document body.
|
|
127
127
|
|
|
@@ -15,9 +15,9 @@ Excerpt — not a complete module
|
|
|
15
15
|
<div slField>
|
|
16
16
|
<label slFieldLabel>E-mail</label>
|
|
17
17
|
<div slTextField clearable>
|
|
18
|
-
<input slTextFieldInput type="email" placeholder="
|
|
18
|
+
<input slTextFieldInput type="email" placeholder="you@company.com" />
|
|
19
19
|
</div>
|
|
20
|
-
<span slFieldDescription>
|
|
20
|
+
<span slFieldDescription>We will use this address for billing.</span>
|
|
21
21
|
</div>
|
|
22
22
|
```
|
|
23
23
|
|
|
@@ -201,7 +201,7 @@ Excerpt — not a complete module
|
|
|
201
201
|
|
|
202
202
|
```html
|
|
203
203
|
<div slTextField clearable>
|
|
204
|
-
<input slTextFieldInput type="search" defaultValue="
|
|
204
|
+
<input slTextFieldInput type="search" defaultValue="invoice 2026" />
|
|
205
205
|
</div>
|
|
206
206
|
|
|
207
207
|
<div slTextField revealable>
|
|
@@ -429,7 +429,7 @@ export class TextFieldLoading {
|
|
|
429
429
|
|
|
430
430
|
### The four states the frame paints
|
|
431
431
|
|
|
432
|
-
Read-only keeps full-strength ink and only its ground changes, because the value is real and still submitted; disabled is muted to a measured
|
|
432
|
+
Read-only keeps full-strength ink and only its ground changes, because the value is real and still submitted; disabled is muted to a measured color rather than faded, so a disabled form still says what it holds.
|
|
433
433
|
|
|
434
434
|
Example
|
|
435
435
|
|
|
@@ -607,9 +607,9 @@ Excerpt — not a complete module
|
|
|
607
607
|
|
|
608
608
|
<!-- exportAs, for the element the template has to reach. -->
|
|
609
609
|
<div slTextField>
|
|
610
|
-
<input slTextFieldInput #
|
|
610
|
+
<input slTextFieldInput #field="slTextFieldInput" />
|
|
611
611
|
<span slTextFieldEnd>
|
|
612
|
-
<button slTextFieldAction (click)="
|
|
612
|
+
<button slTextFieldAction (click)="field.inputElement.select()">Select</button>
|
|
613
613
|
</span>
|
|
614
614
|
</div>
|
|
615
615
|
```
|
package/docs/text-field.json
CHANGED
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
"title": "Playground",
|
|
447
447
|
"note": "One control with every axis on it, driven by the controls below the canvas. Type into it: the clear button appears only once there is something to clear.",
|
|
448
448
|
"language": "html",
|
|
449
|
-
"source": "<div slField>\n <label slFieldLabel>E-mail</label>\n <div slTextField clearable>\n <input slTextFieldInput type=\"email\" placeholder=\"
|
|
449
|
+
"source": "<div slField>\n <label slFieldLabel>E-mail</label>\n <div slTextField clearable>\n <input slTextFieldInput type=\"email\" placeholder=\"you@company.com\" />\n </div>\n <span slFieldDescription>We will use this address for billing.</span>\n</div>\n",
|
|
450
450
|
"verdict": "excerpt"
|
|
451
451
|
},
|
|
452
452
|
{
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
"title": "The two buttons the frame draws",
|
|
479
479
|
"note": "Both are real buttons inside the frame, both keep the caret, and both are held to the 24-pixel minimum. Tab into the field and press Tab again: the ring moves to the button rather than staying around the box.",
|
|
480
480
|
"language": "html",
|
|
481
|
-
"source": "<div slTextField clearable>\n <input slTextFieldInput type=\"search\" defaultValue=\"
|
|
481
|
+
"source": "<div slTextField clearable>\n <input slTextFieldInput type=\"search\" defaultValue=\"invoice 2026\" />\n</div>\n\n<div slTextField revealable>\n <input slTextFieldInput type=\"password\" autocomplete=\"current-password\" />\n</div>\n",
|
|
482
482
|
"verdict": "excerpt"
|
|
483
483
|
},
|
|
484
484
|
{
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
{
|
|
517
517
|
"id": "states",
|
|
518
518
|
"title": "The four states the frame paints",
|
|
519
|
-
"note": "Read-only keeps full-strength ink and only its ground changes, because the value is real and still submitted; disabled is muted to a measured
|
|
519
|
+
"note": "Read-only keeps full-strength ink and only its ground changes, because the value is real and still submitted; disabled is muted to a measured color rather than faded, so a disabled form still says what it holds.",
|
|
520
520
|
"language": "ts",
|
|
521
521
|
"source": "import { Component } from '@angular/core';\nimport { SlField, SlFieldDescription, SlFieldError, SlFieldLabel } from '@slotted/angular/field';\nimport { SlStack } from '@slotted/angular/stack';\nimport { SlTextField, SlTextFieldInput } from '@slotted/angular/text-field';\n\n@Component({\n selector: 'app-text-field-states',\n imports: [\n SlField,\n SlFieldDescription,\n SlFieldError,\n SlFieldLabel,\n SlStack,\n SlTextField,\n SlTextFieldInput,\n ],\n template: `\n <div slStack [gap]=\"5\">\n <div slField invalid>\n <label slFieldLabel>VAT number</label>\n <div slTextField><input slTextFieldInput defaultValue=\"DE 81234\" /></div>\n <span slFieldError>A German VAT number has nine digits after DE.</span>\n </div>\n <div slField readOnly>\n <label slFieldLabel>Order number</label>\n <div slTextField mono><input slTextFieldInput defaultValue=\"SO-2026-00418\" /></div>\n <span slFieldDescription>Assigned when the order was placed.</span>\n </div>\n <div slField disabled>\n <label slFieldLabel>Currency</label>\n <div slTextField><input slTextFieldInput defaultValue=\"USD\" /></div>\n <span slFieldDescription>Set by the customer’s price list.</span>\n </div>\n </div>\n `,\n})\nexport class TextFieldStates {}\n",
|
|
522
522
|
"verdict": "example"
|
|
@@ -550,7 +550,7 @@
|
|
|
550
550
|
"title": "Setting it once, and reaching past it",
|
|
551
551
|
"note": "provideTextFieldDefaults carries the decisions an application takes once; exportAs reaches the instance, and inputElement is the native element with focus, select and setSelectionRange already on it.",
|
|
552
552
|
"language": "html",
|
|
553
|
-
"source": "<!-- ControlValueAccessor: the control belongs in a form as it stands. -->\n<div slTextField clearable>\n <input slTextFieldInput [formControl]=\"email\" type=\"email\" />\n</div>\n\n<!-- exportAs, for the element the template has to reach. -->\n<div slTextField>\n <input slTextFieldInput #
|
|
553
|
+
"source": "<!-- ControlValueAccessor: the control belongs in a form as it stands. -->\n<div slTextField clearable>\n <input slTextFieldInput [formControl]=\"email\" type=\"email\" />\n</div>\n\n<!-- exportAs, for the element the template has to reach. -->\n<div slTextField>\n <input slTextFieldInput #field=\"slTextFieldInput\" />\n <span slTextFieldEnd>\n <button slTextFieldAction (click)=\"field.inputElement.select()\">Select</button>\n </span>\n</div>\n",
|
|
554
554
|
"verdict": "excerpt"
|
|
555
555
|
},
|
|
556
556
|
{
|
|
@@ -13,9 +13,9 @@ Excerpt — not a complete module
|
|
|
13
13
|
|
|
14
14
|
```html
|
|
15
15
|
<div slField>
|
|
16
|
-
<label slFieldLabel>
|
|
17
|
-
<textarea slTextarea [rows]="3" placeholder="
|
|
18
|
-
<span slFieldDescription>
|
|
16
|
+
<label slFieldLabel>Notes</label>
|
|
17
|
+
<textarea slTextarea [rows]="3" placeholder="Describe what happened"></textarea>
|
|
18
|
+
<span slFieldDescription>Appears in the ticket history.</span>
|
|
19
19
|
</div>
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -273,8 +273,8 @@ Excerpt — not a complete module
|
|
|
273
273
|
<textarea slTextarea [formControl]="notes" autoSize></textarea>
|
|
274
274
|
|
|
275
275
|
<!-- exportAs, for the element the template has to reach. -->
|
|
276
|
-
<textarea slTextarea #
|
|
277
|
-
<button type="button" (click)="
|
|
276
|
+
<textarea slTextarea #field="slTextarea"></textarea>
|
|
277
|
+
<button type="button" (click)="field.textareaElement.select()">Select</button>
|
|
278
278
|
```
|
|
279
279
|
|
|
280
280
|
### What the keyboard does, and what it deliberately does not
|
|
@@ -284,9 +284,9 @@ Enter makes a line and never submits — the difference WAI-ARIA notes between a
|
|
|
284
284
|
Excerpt — not a complete module
|
|
285
285
|
|
|
286
286
|
```html
|
|
287
|
-
<form (ngSubmit)="
|
|
287
|
+
<form (ngSubmit)="submit()">
|
|
288
288
|
<textarea slTextarea [formControl]="notes" [rows]="3"></textarea>
|
|
289
|
-
<button slButton type="submit">
|
|
289
|
+
<button slButton type="submit">Submit</button>
|
|
290
290
|
</form>
|
|
291
291
|
```
|
|
292
292
|
|
package/docs/textarea.json
CHANGED
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
"title": "Playground",
|
|
307
307
|
"note": "One control with every axis on it, driven by the controls below the canvas. Turn autoSize on and type: the box grows to the ceiling and then scrolls.",
|
|
308
308
|
"language": "html",
|
|
309
|
-
"source": "<div slField>\n <label slFieldLabel>
|
|
309
|
+
"source": "<div slField>\n <label slFieldLabel>Notes</label>\n <textarea slTextarea [rows]=\"3\" placeholder=\"Describe what happened\"></textarea>\n <span slFieldDescription>Appears in the ticket history.</span>\n</div>\n",
|
|
310
310
|
"verdict": "excerpt"
|
|
311
311
|
},
|
|
312
312
|
{
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
"title": "Setting it once, and reaching past it",
|
|
371
371
|
"note": "provideTextareaDefaults carries the four decisions an application takes once; exportAs reaches the instance, and textareaElement is the native element with focus, select and setSelectionRange already on it.",
|
|
372
372
|
"language": "html",
|
|
373
|
-
"source": "<!-- ControlValueAccessor: the control belongs in a form as it stands. -->\n<textarea slTextarea [formControl]=\"notes\" autoSize></textarea>\n\n<!-- exportAs, for the element the template has to reach. -->\n<textarea slTextarea #
|
|
373
|
+
"source": "<!-- ControlValueAccessor: the control belongs in a form as it stands. -->\n<textarea slTextarea [formControl]=\"notes\" autoSize></textarea>\n\n<!-- exportAs, for the element the template has to reach. -->\n<textarea slTextarea #field=\"slTextarea\"></textarea>\n<button type=\"button\" (click)=\"field.textareaElement.select()\">Select</button>\n",
|
|
374
374
|
"verdict": "excerpt"
|
|
375
375
|
},
|
|
376
376
|
{
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
"title": "What the keyboard does, and what it deliberately does not",
|
|
379
379
|
"note": "Enter makes a line and never submits — the difference WAI-ARIA notes between a single-line and a multi-line control — and Tab leaves the control rather than inserting a tab, so a keyboard user is never trapped in a comment box.",
|
|
380
380
|
"language": "html",
|
|
381
|
-
"source": "<form (ngSubmit)=\"
|
|
381
|
+
"source": "<form (ngSubmit)=\"submit()\">\n <textarea slTextarea [formControl]=\"notes\" [rows]=\"3\"></textarea>\n <button slButton type=\"submit\">Submit</button>\n</form>\n",
|
|
382
382
|
"verdict": "excerpt"
|
|
383
383
|
},
|
|
384
384
|
{
|
package/docs/time-field.json
CHANGED
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
"title": "Playground",
|
|
451
451
|
"note": "One control with every axis on it, driven by the controls below the canvas. Type into it: each field takes digits, the arrows step it, and pressing + turns it into a duration from now.",
|
|
452
452
|
"language": "html",
|
|
453
|
-
"source": "<div slField>\n <label slFieldLabel>
|
|
453
|
+
"source": "<div slField>\n <label slFieldLabel>Start time</label>\n <div slTimeField clearable locale=\"pt-BR\" name=\"start\"></div>\n <span slFieldDescription>The meeting starts at this time.</span>\n</div>\n",
|
|
454
454
|
"verdict": "excerpt"
|
|
455
455
|
},
|
|
456
456
|
{
|
|
@@ -528,7 +528,7 @@
|
|
|
528
528
|
{
|
|
529
529
|
"id": "states",
|
|
530
530
|
"title": "States",
|
|
531
|
-
"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
|
|
531
|
+
"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.",
|
|
532
532
|
"language": "html",
|
|
533
533
|
"source": "<div slTimeField readOnly></div>\n<div slTimeField invalid></div>\n<div slTimeField disabled></div>\n<div slTimeField required></div>\n",
|
|
534
534
|
"verdict": "excerpt"
|
|
@@ -554,7 +554,7 @@
|
|
|
554
554
|
"title": "In a form",
|
|
555
555
|
"note": "The value reaches a plain form post as an HH:mm:ss string through a hidden input, so a server reads it without any JavaScript touching the control. A half-typed time posts nothing at all, because it is not a time.",
|
|
556
556
|
"language": "html",
|
|
557
|
-
"source": "<form [formGroup]=\"form\" (ngSubmit)=\"save()\">\n <div slField>\n <label slFieldLabel>
|
|
557
|
+
"source": "<form [formGroup]=\"form\" (ngSubmit)=\"save()\">\n <div slField>\n <label slFieldLabel>Start time</label>\n <div slTimeField formControlName=\"start\" required></div>\n </div>\n</form>\n",
|
|
558
558
|
"verdict": "excerpt"
|
|
559
559
|
},
|
|
560
560
|
{
|