@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
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
"part": "grip",
|
|
173
173
|
"element": "span, aria-hidden",
|
|
174
174
|
"required": false,
|
|
175
|
-
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line
|
|
175
|
+
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line color. A pull down past half the sheet, or a flick down, closes it with the reason pointer; Escape and the press outside stay the accessible ways out."
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
"part": "head",
|
package/docs/datetime-field.json
CHANGED
|
@@ -515,7 +515,7 @@
|
|
|
515
515
|
"title": "Playground",
|
|
516
516
|
"note": "One control with every axis on it, driven by the controls below the canvas. Type into it: the run walks the whole row and crosses from the year into the hour without a key that moves focus, and pressing + turns it into a duration from now.",
|
|
517
517
|
"language": "html",
|
|
518
|
-
"source": "<div slField>\n <label slFieldLabel>
|
|
518
|
+
"source": "<div slField>\n <label slFieldLabel>Appointment start</label>\n <div slDateTimeField name=\"start\" locale=\"pt-BR\" [clearable]=\"true\"></div>\n <span slFieldDescription>The appointment starts on this date and time.</span>\n</div>\n",
|
|
519
519
|
"verdict": "excerpt"
|
|
520
520
|
},
|
|
521
521
|
{
|
|
@@ -547,7 +547,7 @@
|
|
|
547
547
|
"title": "The half that is missing",
|
|
548
548
|
"note": "A reader who wrote a day and walked away is not an empty control. The value is null — which every surveyed implementation reports — and which half is missing is what none of them can say: it is on the root as data-incomplete, on the request as incomplete, and in a reactive form as a slottedDateTimeIncomplete error carrying the missing half.",
|
|
549
549
|
"language": "html",
|
|
550
|
-
"source": "<div slField [invalid]=\"control.touched && control.invalid\">\n <label slFieldLabel>
|
|
550
|
+
"source": "<div slField [invalid]=\"control.touched && control.invalid\">\n <label slFieldLabel>Start</label>\n <div slDateTimeField [formControl]=\"control\" locale=\"pt-BR\"></div>\n @if (control.errors?.['slottedDateTimeIncomplete']; as incomplete) {\n <span slFieldError>Falta escrever a {{ incomplete.missing }}.</span>\n }\n</div>\n",
|
|
551
551
|
"verdict": "excerpt"
|
|
552
552
|
},
|
|
553
553
|
{
|
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
{
|
|
610
610
|
"id": "states",
|
|
611
611
|
"title": "States",
|
|
612
|
-
"note": "Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer, and a reactive form sets it through setDisabledState rather than through the input; invalid keeps its focus ring and retargets its
|
|
612
|
+
"note": "Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer, and a reactive form sets it through setDisabledState rather than through the input; invalid keeps its focus ring and retargets its color; and incomplete is its own quieter state, one tone short of the refused value.",
|
|
613
613
|
"language": "html",
|
|
614
614
|
"source": "<div slDateTimeField readOnly [defaultValue]=\"consultation\"></div>\n<div slDateTimeField disabled [defaultValue]=\"consultation\"></div>\n<div slDateTimeField required [defaultValue]=\"consultation\"></div>\n<div slDateTimeField invalid [defaultValue]=\"consultation\"></div>\n",
|
|
615
615
|
"verdict": "excerpt"
|
|
@@ -635,7 +635,7 @@
|
|
|
635
635
|
"title": "In a form",
|
|
636
636
|
"note": "The control belongs in a reactive form and in a template form, through ControlValueAccessor — the integration point React has no equivalent of. Beside it, the value still reaches a plain form post as YYYY-MM-DDTHH:mm:ss through the hidden input, which is input[type=datetime-local]’s own value format.",
|
|
637
637
|
"language": "html",
|
|
638
|
-
"source": "<form [formGroup]=\"form\">\n <div slField [invalid]=\"form.controls.
|
|
638
|
+
"source": "<form [formGroup]=\"form\">\n <div slField [invalid]=\"form.controls.start.touched && form.controls.start.invalid\">\n <label slFieldLabel>Appointment start</label>\n <div slDateTimeField formControlName=\"start\" locale=\"pt-BR\"></div>\n <span slFieldError>Choose a time within business hours.</span>\n </div>\n</form>\n",
|
|
639
639
|
"verdict": "excerpt"
|
|
640
640
|
},
|
|
641
641
|
{
|
package/docs/datetime-field.md
CHANGED
|
@@ -17,9 +17,9 @@ Excerpt — not a complete module
|
|
|
17
17
|
|
|
18
18
|
```html
|
|
19
19
|
<div slField>
|
|
20
|
-
<label slFieldLabel>
|
|
21
|
-
<div slDateTimeField name="
|
|
22
|
-
<span slFieldDescription>
|
|
20
|
+
<label slFieldLabel>Appointment start</label>
|
|
21
|
+
<div slDateTimeField name="start" locale="pt-BR" [clearable]="true"></div>
|
|
22
|
+
<span slFieldDescription>The appointment starts on this date and time.</span>
|
|
23
23
|
</div>
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -154,7 +154,7 @@ Excerpt — not a complete module
|
|
|
154
154
|
|
|
155
155
|
```html
|
|
156
156
|
<div slField [invalid]="control.touched && control.invalid">
|
|
157
|
-
<label slFieldLabel>
|
|
157
|
+
<label slFieldLabel>Start</label>
|
|
158
158
|
<div slDateTimeField [formControl]="control" locale="pt-BR"></div>
|
|
159
159
|
@if (control.errors?.['slottedDateTimeIncomplete']; as incomplete) {
|
|
160
160
|
<span slFieldError>Falta escrever a {{ incomplete.missing }}.</span>
|
|
@@ -244,7 +244,7 @@ Excerpt — not a complete module
|
|
|
244
244
|
|
|
245
245
|
### States
|
|
246
246
|
|
|
247
|
-
Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer, and a reactive form sets it through setDisabledState rather than through the input; invalid keeps its focus ring and retargets its
|
|
247
|
+
Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer, and a reactive form sets it through setDisabledState rather than through the input; invalid keeps its focus ring and retargets its color; and incomplete is its own quieter state, one tone short of the refused value.
|
|
248
248
|
|
|
249
249
|
Excerpt — not a complete module
|
|
250
250
|
|
|
@@ -293,10 +293,10 @@ Excerpt — not a complete module
|
|
|
293
293
|
|
|
294
294
|
```html
|
|
295
295
|
<form [formGroup]="form">
|
|
296
|
-
<div slField [invalid]="form.controls.
|
|
297
|
-
<label slFieldLabel>
|
|
298
|
-
<div slDateTimeField formControlName="
|
|
299
|
-
<span slFieldError>
|
|
296
|
+
<div slField [invalid]="form.controls.start.touched && form.controls.start.invalid">
|
|
297
|
+
<label slFieldLabel>Appointment start</label>
|
|
298
|
+
<div slDateTimeField formControlName="start" locale="pt-BR"></div>
|
|
299
|
+
<span slFieldError>Choose a time within business hours.</span>
|
|
300
300
|
</div>
|
|
301
301
|
</form>
|
|
302
302
|
```
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"part": "grip",
|
|
158
158
|
"element": "span, aria-hidden",
|
|
159
159
|
"required": false,
|
|
160
|
-
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line
|
|
160
|
+
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line color. A pull down past half the sheet, or a flick down, closes it with the reason pointer; Escape and the press outside stay the accessible ways out."
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"part": "head",
|
|
@@ -104,8 +104,8 @@ Excerpt — not a complete module
|
|
|
104
104
|
```html
|
|
105
105
|
<div slDateTimeRangePicker>
|
|
106
106
|
<div slDateTimeRangePickerPresets>
|
|
107
|
-
<button [slDateTimeRangePickerPreset]="weekend">
|
|
108
|
-
<button [slDateTimeRangePickerPreset]="week">
|
|
107
|
+
<button [slDateTimeRangePickerPreset]="weekend">Weekend</button>
|
|
108
|
+
<button [slDateTimeRangePickerPreset]="week">One week</button>
|
|
109
109
|
</div>
|
|
110
110
|
</div>
|
|
111
111
|
```
|
|
@@ -204,7 +204,7 @@ Excerpt — not a complete module
|
|
|
204
204
|
{{ label }} <small>{{ duration }}</small>
|
|
205
205
|
</ng-template>
|
|
206
206
|
</div>
|
|
207
|
-
<button type="button" (click)="picker.openSurface()">
|
|
207
|
+
<button type="button" (click)="picker.openSurface()">Open</button>
|
|
208
208
|
```
|
|
209
209
|
|
|
210
210
|
### Keyboard
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"part": "grip",
|
|
189
189
|
"element": "span, aria-hidden",
|
|
190
190
|
"required": false,
|
|
191
|
-
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line
|
|
191
|
+
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line color. A pull down past half the sheet, or a flick down, closes it with the reason pointer; Escape and the press outside stay the accessible ways out."
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
"part": "head",
|
|
@@ -883,7 +883,7 @@
|
|
|
883
883
|
"title": "Playground",
|
|
884
884
|
"note": "A car picked up on the 12th and returned on the 16th. The frame is one line: press it and the two tabs, the field, the hint, the calendar and the list of the current end open under it. Every input is on the controls panel.",
|
|
885
885
|
"language": "html",
|
|
886
|
-
"source": "<div slField>\n <label slFieldLabel>
|
|
886
|
+
"source": "<div slField>\n <label slFieldLabel>Pickup and return</label>\n <div\n slDateTimeRangePicker\n clearable\n locale=\"pt-BR\"\n [messages]=\"{ start: 'Pickup', end: 'Return' }\"\n [defaultValue]=\"rental\"\n ></div>\n</div>\n",
|
|
887
887
|
"verdict": "excerpt"
|
|
888
888
|
},
|
|
889
889
|
{
|
|
@@ -955,7 +955,7 @@
|
|
|
955
955
|
"title": "Presets",
|
|
956
956
|
"note": "The rentals the agency offers by name. Each is a button with slDateTimeRangePickerPreset and its own range; pressing one writes the value and closes, and the one equal to the value is marked. The list is the product’s.",
|
|
957
957
|
"language": "html",
|
|
958
|
-
"source": "<div slDateTimeRangePicker>\n <div slDateTimeRangePickerPresets>\n <button [slDateTimeRangePickerPreset]=\"weekend\">
|
|
958
|
+
"source": "<div slDateTimeRangePicker>\n <div slDateTimeRangePickerPresets>\n <button [slDateTimeRangePickerPreset]=\"weekend\">Weekend</button>\n <button [slDateTimeRangePickerPreset]=\"week\">One week</button>\n </div>\n</div>\n",
|
|
959
959
|
"verdict": "excerpt"
|
|
960
960
|
},
|
|
961
961
|
{
|
|
@@ -1011,7 +1011,7 @@
|
|
|
1011
1011
|
"title": "Composition",
|
|
1012
1012
|
"note": "provideDateTimeRangePickerDefaults sets the months, the step and how a duration is written once, provideSlotted the language and every word; the exported instance opens, closes and focuses; the slDateTimeRangePickerOption template replaces what a row draws; position — which tab — is the consumer’s to own.",
|
|
1013
1013
|
"language": "html",
|
|
1014
|
-
"source": "<div\n slDateTimeRangePicker\n #picker=\"slDateTimeRangePicker\"\n [position]=\"position\"\n (positionChange)=\"position = $event.value\"\n>\n <ng-template slDateTimeRangePickerOption let-label=\"label\" let-duration=\"duration\">\n {{ label }} <small>{{ duration }}</small>\n </ng-template>\n</div>\n<button type=\"button\" (click)=\"picker.openSurface()\">
|
|
1014
|
+
"source": "<div\n slDateTimeRangePicker\n #picker=\"slDateTimeRangePicker\"\n [position]=\"position\"\n (positionChange)=\"position = $event.value\"\n>\n <ng-template slDateTimeRangePickerOption let-label=\"label\" let-duration=\"duration\">\n {{ label }} <small>{{ duration }}</small>\n </ng-template>\n</div>\n<button type=\"button\" (click)=\"picker.openSurface()\">Open</button>\n",
|
|
1015
1015
|
"verdict": "excerpt"
|
|
1016
1016
|
},
|
|
1017
1017
|
{
|
|
@@ -17,12 +17,12 @@ Excerpt — not a complete module
|
|
|
17
17
|
|
|
18
18
|
```html
|
|
19
19
|
<div slField>
|
|
20
|
-
<label slFieldLabel>
|
|
20
|
+
<label slFieldLabel>Pickup and return</label>
|
|
21
21
|
<div
|
|
22
22
|
slDateTimeRangePicker
|
|
23
23
|
clearable
|
|
24
24
|
locale="pt-BR"
|
|
25
|
-
[messages]="{ start: '
|
|
25
|
+
[messages]="{ start: 'Pickup', end: 'Return' }"
|
|
26
26
|
[defaultValue]="rental"
|
|
27
27
|
></div>
|
|
28
28
|
</div>
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"part": "copy",
|
|
128
128
|
"element": "button, drawn by the component",
|
|
129
129
|
"required": false,
|
|
130
|
-
"purpose": "Puts the value on the clipboard and says it finished, by its mark as well as by its
|
|
130
|
+
"purpose": "Puts the value on the clipboard and says it finished, by its mark as well as by its color. Where the platform refuses the write it selects the value instead, so the reader can take it with the keyboard."
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"part": "toggle",
|
|
@@ -295,10 +295,10 @@
|
|
|
295
295
|
"The rendered elements are a dl, a dt and a dd, and the family writes no role at all. HTML-AAM maps them to list, term and definition already, and MDN records that authoring the ARIA term and definition roles by hand changes how VoiceOver announces the construct. The APG has no pattern for a description list — twenty-nine patterns, and none of them is this — so the platform is the specification the family follows.",
|
|
296
296
|
"The div around each pair is the second form the HTML Standard permits inside a dl, and it is what makes a pair one grid area. The row action is a second dd of the same group, because a dt may be followed by more than one dd.",
|
|
297
297
|
"A row action is named by its own term through aria-describedby pointing at the dt, so a reader who tabs to “Change” hears which row it changes. GOV.UK repeats the term as visually hidden text inside every action, which a template system has to do; a reference says it once and cannot drift. A static aria-describedby you wrote is read with HostAttributeToken and composed with rather than replaced.",
|
|
298
|
-
"A value that is missing is drawn and said: the mark is geometry in CSS and the reason is real text in a visually hidden sibling, because
|
|
299
|
-
"The reveal toggle is the APG Disclosure pattern — role button, aria-expanded true while the content is visible, Enter and Space toggling — and the copy control is a plain button, so both take their keyboard
|
|
298
|
+
"A value that is missing is drawn and said: the mark is geometry in CSS and the reason is real text in a visually hidden sibling, because color and shape alone never carry meaning.",
|
|
299
|
+
"The reveal toggle is the APG Disclosure pattern — role button, aria-expanded true while the content is visible, Enter and Space toggling — and the copy control is a plain button, so both take their keyboard behavior from the platform. The family adds no key of its own: a read-only list of pairs is not a composite widget, and inventing arrow navigation would take Tab away from controls that need it.",
|
|
300
300
|
"Clamping is visual only. Every character stays in the DOM, selectable, copyable and readable by a screen reader, which is what the repository means by never truncating without access.",
|
|
301
|
-
"A finished copy is announced politely through the shared live announcer rather than a region this family owns, so two copies in one update are both heard; and the control changes its mark as well as its
|
|
301
|
+
"A finished copy is announced politely through the shared live announcer rather than a region this family owns, so two copies in one update are both heard; and the control changes its mark as well as its color, so a reader who cannot see the green still sees it finish.",
|
|
302
302
|
"A browser refuses the clipboard where the document is not focused, and inside an iframe carrying no clipboard-write permission — a Storybook page is both. A control that failed silently there would be indistinguishable from a broken one, so the family selects the value instead and announces that it did: the reader sees the selection and copies it with the keyboard.",
|
|
303
303
|
"A clamp is a maximum rather than a promise, so the reveal control appears only for a value that has more text than the clamp allows. A control that reveals nothing is one a reader presses once and learns to distrust."
|
|
304
304
|
]
|
|
@@ -439,7 +439,7 @@
|
|
|
439
439
|
{
|
|
440
440
|
"id": "copy",
|
|
441
441
|
"title": "A value worth taking away",
|
|
442
|
-
"note": "An identifier, a key, an ARN. The control writes the rendered text unless you state another, says it finished by its mark as well as its
|
|
442
|
+
"note": "An identifier, a key, an ARN. The control writes the rendered text unless you state another, says it finished by its mark as well as its color for two seconds, and announces the result politely. Pressing it on this page selects the value instead: a browser refuses the clipboard inside an iframe that carries no clipboard-write permission, and the family does the part it still can.",
|
|
443
443
|
"language": "html",
|
|
444
444
|
"source": "<dd slDescriptionListDescription copy (copied)=\"log($event.copied)\">\n arn:aws:iam::421900075512:role/billing-reconciler\n</dd>\n\n<dd slDescriptionListDescription copy [copyValue]=\"account.iban\">\n {{ account.iban | iban }}\n</dd>\n",
|
|
445
445
|
"verdict": "excerpt"
|
package/docs/description-list.md
CHANGED
|
@@ -92,10 +92,10 @@ Excerpt — not a complete module
|
|
|
92
92
|
- The rendered elements are a dl, a dt and a dd, and the family writes no role at all. HTML-AAM maps them to list, term and definition already, and MDN records that authoring the ARIA term and definition roles by hand changes how VoiceOver announces the construct. The APG has no pattern for a description list — twenty-nine patterns, and none of them is this — so the platform is the specification the family follows.
|
|
93
93
|
- The div around each pair is the second form the HTML Standard permits inside a dl, and it is what makes a pair one grid area. The row action is a second dd of the same group, because a dt may be followed by more than one dd.
|
|
94
94
|
- A row action is named by its own term through aria-describedby pointing at the dt, so a reader who tabs to “Change” hears which row it changes. GOV.UK repeats the term as visually hidden text inside every action, which a template system has to do; a reference says it once and cannot drift. A static aria-describedby you wrote is read with HostAttributeToken and composed with rather than replaced.
|
|
95
|
-
- A value that is missing is drawn and said: the mark is geometry in CSS and the reason is real text in a visually hidden sibling, because
|
|
96
|
-
- The reveal toggle is the APG Disclosure pattern — role button, aria-expanded true while the content is visible, Enter and Space toggling — and the copy control is a plain button, so both take their keyboard
|
|
95
|
+
- A value that is missing is drawn and said: the mark is geometry in CSS and the reason is real text in a visually hidden sibling, because color and shape alone never carry meaning.
|
|
96
|
+
- The reveal toggle is the APG Disclosure pattern — role button, aria-expanded true while the content is visible, Enter and Space toggling — and the copy control is a plain button, so both take their keyboard behavior from the platform. The family adds no key of its own: a read-only list of pairs is not a composite widget, and inventing arrow navigation would take Tab away from controls that need it.
|
|
97
97
|
- Clamping is visual only. Every character stays in the DOM, selectable, copyable and readable by a screen reader, which is what the repository means by never truncating without access.
|
|
98
|
-
- A finished copy is announced politely through the shared live announcer rather than a region this family owns, so two copies in one update are both heard; and the control changes its mark as well as its
|
|
98
|
+
- A finished copy is announced politely through the shared live announcer rather than a region this family owns, so two copies in one update are both heard; and the control changes its mark as well as its color, so a reader who cannot see the green still sees it finish.
|
|
99
99
|
- A browser refuses the clipboard where the document is not focused, and inside an iframe carrying no clipboard-write permission — a Storybook page is both. A control that failed silently there would be indistinguishable from a broken one, so the family selects the value instead and announces that it did: the reader sees the selection and copies it with the keyboard.
|
|
100
100
|
- A clamp is a maximum rather than a promise, so the reveal control appears only for a value that has more text than the clamp allows. A control that reveals nothing is one a reader presses once and learns to distrust.
|
|
101
101
|
|
|
@@ -196,7 +196,7 @@ Excerpt — not a complete module
|
|
|
196
196
|
|
|
197
197
|
### A value worth taking away
|
|
198
198
|
|
|
199
|
-
An identifier, a key, an ARN. The control writes the rendered text unless you state another, says it finished by its mark as well as its
|
|
199
|
+
An identifier, a key, an ARN. The control writes the rendered text unless you state another, says it finished by its mark as well as its color for two seconds, and announces the result politely. Pressing it on this page selects the value instead: a browser refuses the clipboard inside an iframe that carries no clipboard-write permission, and the family does the part it still can.
|
|
200
200
|
|
|
201
201
|
Excerpt — not a complete module
|
|
202
202
|
|
package/docs/detail-panel.json
CHANGED
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"part": "message",
|
|
143
143
|
"element": "div",
|
|
144
144
|
"required": false,
|
|
145
|
-
"purpose": "In place of the columns under status=\"not-found\" or \"error\": a
|
|
145
|
+
"purpose": "In place of the columns under status=\"not-found\" or \"error\": a centerd box, four space-12 tall, for a [slResultState]. The consumer’s element carrying slDetailPanelMessage. The header and the footer stay, so a drawer opened on a deleted record still closes."
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
"part": "footer",
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
"title": "Playground",
|
|
398
398
|
"note": "The sales order SO-2026-01842 of Meridian Controls Group, a screen tall, with every axis on the controls below. Switch layout to tabs and the strip appears in the header with the same three sections; switch aside to start and the fields move to the other column.",
|
|
399
399
|
"language": "html",
|
|
400
|
-
"source": "<article slDetailPanel [recordKey]=\"order.id\">\n <header slPageHeader>…</header>\n <div slDetailPanelBody>\n <ng-template slDetailPanelSection name=\"linhas\" label=\"Linhas\" [count]=\"4\">\n <sl-order-lines />\n </ng-template>\n <ng-template slDetailPanelSection name=\"historico\" label=\"
|
|
400
|
+
"source": "<article slDetailPanel [recordKey]=\"order.id\">\n <header slPageHeader>…</header>\n <div slDetailPanelBody>\n <ng-template slDetailPanelSection name=\"linhas\" label=\"Linhas\" [count]=\"4\">\n <sl-order-lines />\n </ng-template>\n <ng-template slDetailPanelSection name=\"historico\" label=\"History\">\n <sl-order-history />\n </ng-template>\n <aside slDetailPanelAside><sl-order-fields /></aside>\n </div>\n</article>\n",
|
|
401
401
|
"verdict": "excerpt"
|
|
402
402
|
},
|
|
403
403
|
{
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
"title": "layout: stacked, or tabs",
|
|
414
414
|
"note": "The same three sections and the same section value. Stacked, each has a heading with its count and its actions in the heading row; tabbed, the strip sits in the header’s tabs slot, one section is the tabpanel, and its actions move to a row above the content.",
|
|
415
415
|
"language": "html",
|
|
416
|
-
"source": "<article slDetailPanel layout=\"tabs\" [recordKey]=\"order.id\">\n <header slPageHeader>\n …\n <div slDetailPanelTabs label=\"
|
|
416
|
+
"source": "<article slDetailPanel layout=\"tabs\" [recordKey]=\"order.id\">\n <header slPageHeader>\n …\n <div slDetailPanelTabs label=\"Order sections\"></div>\n </header>\n <div slDetailPanelBody>…</div>\n</article>\n",
|
|
417
417
|
"verdict": "excerpt"
|
|
418
418
|
},
|
|
419
419
|
{
|
|
@@ -437,7 +437,7 @@
|
|
|
437
437
|
"title": "Previous and next: focus follows the record",
|
|
438
438
|
"note": "Press the next control in the header, or Tab to it and press Enter: the record changes, the scroller returns to its start, and — because focus was inside the panel — the heading takes focus and a screen reader announces the new order. A recordKey changed while focus is elsewhere moves nothing.",
|
|
439
439
|
"language": "html",
|
|
440
|
-
"source": "<article slDetailPanel [recordKey]=\"order().id\">\n <header slPageHeader>\n …\n <div slPageHeaderNavigation>\n <button slIconButton aria-label=\"
|
|
440
|
+
"source": "<article slDetailPanel [recordKey]=\"order().id\">\n <header slPageHeader>\n …\n <div slPageHeaderNavigation>\n <button slIconButton aria-label=\"Next order\" (click)=\"next()\">…</button>\n </div>\n </header>\n …\n</article>\n",
|
|
441
441
|
"verdict": "excerpt"
|
|
442
442
|
},
|
|
443
443
|
{
|
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
"title": "status: not-found, and error",
|
|
462
462
|
"note": "A record that does not exist and a request that failed need different words and different actions, so they are two statuses. Both replace the columns with the message and keep the chrome: the back link still goes back and the footer’s close still closes.",
|
|
463
463
|
"language": "html",
|
|
464
|
-
"source": "<article slDetailPanel status=\"not-found\" recordKey=\"SO-2026-01900\">\n <header slPageHeader>…</header>\n <div slDetailPanelBody>\n <div slDetailPanelMessage>\n <section slResultState status=\"not-found\">\n <div slResultStateContent>\n <div slResultStateTitle>
|
|
464
|
+
"source": "<article slDetailPanel status=\"not-found\" recordKey=\"SO-2026-01900\">\n <header slPageHeader>…</header>\n <div slDetailPanelBody>\n <div slDetailPanelMessage>\n <section slResultState status=\"not-found\">\n <div slResultStateContent>\n <div slResultStateTitle>This order no longer exists</div>\n </div>\n </section>\n </div>\n </div>\n</article>\n",
|
|
465
465
|
"verdict": "excerpt"
|
|
466
466
|
},
|
|
467
467
|
{
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
"title": "banner: the record changed under the reader",
|
|
470
470
|
"note": "Marta Silva registered a payment two minutes ago. The alert sits between the header and the columns, the width of both, in the flow rather than as a toast that disappears — it is read before the stale content, and Reload is the one action.",
|
|
471
471
|
"language": "html",
|
|
472
|
-
"source": "<div slDetailPanelBody>\n <div slDetailPanelBanner>\n <section slAlert tone=\"warning\">\n <div slAlertContent>\n <div slAlertTitle>
|
|
472
|
+
"source": "<div slDetailPanelBody>\n <div slDetailPanelBanner>\n <section slAlert tone=\"warning\">\n <div slAlertContent>\n <div slAlertTitle>This invoice was changed by someone else</div>\n </div>\n <div slAlertActions>\n <button slButton size=\"sm\" tone=\"warning\">Recarregar</button>\n </div>\n </section>\n </div>\n …\n</div>\n",
|
|
473
473
|
"verdict": "excerpt"
|
|
474
474
|
},
|
|
475
475
|
{
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
"title": "footer: the actions that stay",
|
|
478
478
|
"note": "In a box that scrolls itself the footer stays at the bottom edge, painted so the content passes under it, with an ActionBar inside aligned to the column above. Scroll to the end: the last section stops above the footer, not behind it.",
|
|
479
479
|
"language": "html",
|
|
480
|
-
"source": "<article slDetailPanel scroll=\"self\" [recordKey]=\"order.id\">\n …\n <footer slDetailPanelFooter>\n <div slActionBar aria-label=\"
|
|
480
|
+
"source": "<article slDetailPanel scroll=\"self\" [recordKey]=\"order.id\">\n …\n <footer slDetailPanelFooter>\n <div slActionBar aria-label=\"Order actions\" variant=\"plain\">\n <div slActionBarActions>\n <div slActionBarAction><button slButton variant=\"ghost\">Close</button></div>\n <div slActionBarAction><button slButton tone=\"accent\">Record payment</button></div>\n </div>\n </div>\n </footer>\n</article>\n",
|
|
481
481
|
"verdict": "excerpt"
|
|
482
482
|
},
|
|
483
483
|
{
|
|
@@ -507,9 +507,9 @@
|
|
|
507
507
|
{
|
|
508
508
|
"id": "composition",
|
|
509
509
|
"title": "What a section holds, and what sits beside it",
|
|
510
|
-
"note": "A Table in the lines section, a Timeline feed in the history, a DescriptionList of fields in the aside with a copy control on the invoice, a Toolbar with overflow in the header’s actions and a Tag in its marks. Each is placed by the panel and owned by its own family; the panel writes none of their
|
|
510
|
+
"note": "A Table in the lines section, a Timeline feed in the history, a DescriptionList of fields in the aside with a copy control on the invoice, a Toolbar with overflow in the header’s actions and a Tag in its marks. Each is placed by the panel and owned by its own family; the panel writes none of their behavior.",
|
|
511
511
|
"language": "html",
|
|
512
|
-
"source": "<ng-template slDetailPanelSection name=\"historico\" label=\"
|
|
512
|
+
"source": "<ng-template slDetailPanelSection name=\"historico\" label=\"History\">\n <div slTimeline label=\"Order history\" order=\"newest-first\">\n @for (event of history; track event.time) {\n <li slTimelineItem [title]=\"event.title\" [time]=\"event.time\"></li>\n }\n </div>\n</ng-template>\n",
|
|
513
513
|
"verdict": "excerpt"
|
|
514
514
|
},
|
|
515
515
|
{
|
|
@@ -525,7 +525,7 @@
|
|
|
525
525
|
"title": "What a reader hears",
|
|
526
526
|
"note": "The article is named by the heading, so the record is announced by its identifier and customer; the aside is a complementary landmark named by the aside message; under tabs, Tab from the strip lands on the tabpanel with the outward ring and then on the table inside it. Press next: the heading takes focus and says the new record.",
|
|
527
527
|
"language": "html",
|
|
528
|
-
"source": "<article slDetailPanel aria-label=\"
|
|
528
|
+
"source": "<article slDetailPanel aria-label=\"Sales order SO-2026-01842\" [recordKey]=\"order.id\">…</article>\n",
|
|
529
529
|
"verdict": "excerpt"
|
|
530
530
|
}
|
|
531
531
|
]
|
package/docs/detail-panel.md
CHANGED
|
@@ -22,7 +22,7 @@ Excerpt — not a complete module
|
|
|
22
22
|
<ng-template slDetailPanelSection name="linhas" label="Linhas" [count]="4">
|
|
23
23
|
<sl-order-lines />
|
|
24
24
|
</ng-template>
|
|
25
|
-
<ng-template slDetailPanelSection name="historico" label="
|
|
25
|
+
<ng-template slDetailPanelSection name="historico" label="History">
|
|
26
26
|
<sl-order-history />
|
|
27
27
|
</ng-template>
|
|
28
28
|
<aside slDetailPanelAside><sl-order-fields /></aside>
|
|
@@ -137,7 +137,7 @@ Excerpt — not a complete module
|
|
|
137
137
|
<article slDetailPanel layout="tabs" [recordKey]="order.id">
|
|
138
138
|
<header slPageHeader>
|
|
139
139
|
…
|
|
140
|
-
<div slDetailPanelTabs label="
|
|
140
|
+
<div slDetailPanelTabs label="Order sections"></div>
|
|
141
141
|
</header>
|
|
142
142
|
<div slDetailPanelBody>…</div>
|
|
143
143
|
</article>
|
|
@@ -187,7 +187,7 @@ Excerpt — not a complete module
|
|
|
187
187
|
<header slPageHeader>
|
|
188
188
|
…
|
|
189
189
|
<div slPageHeaderNavigation>
|
|
190
|
-
<button slIconButton aria-label="
|
|
190
|
+
<button slIconButton aria-label="Next order" (click)="next()">…</button>
|
|
191
191
|
</div>
|
|
192
192
|
</header>
|
|
193
193
|
…
|
|
@@ -239,7 +239,7 @@ Excerpt — not a complete module
|
|
|
239
239
|
<div slDetailPanelMessage>
|
|
240
240
|
<section slResultState status="not-found">
|
|
241
241
|
<div slResultStateContent>
|
|
242
|
-
<div slResultStateTitle>
|
|
242
|
+
<div slResultStateTitle>This order no longer exists</div>
|
|
243
243
|
</div>
|
|
244
244
|
</section>
|
|
245
245
|
</div>
|
|
@@ -258,7 +258,7 @@ Excerpt — not a complete module
|
|
|
258
258
|
<div slDetailPanelBanner>
|
|
259
259
|
<section slAlert tone="warning">
|
|
260
260
|
<div slAlertContent>
|
|
261
|
-
<div slAlertTitle>
|
|
261
|
+
<div slAlertTitle>This invoice was changed by someone else</div>
|
|
262
262
|
</div>
|
|
263
263
|
<div slAlertActions>
|
|
264
264
|
<button slButton size="sm" tone="warning">Recarregar</button>
|
|
@@ -279,10 +279,10 @@ Excerpt — not a complete module
|
|
|
279
279
|
<article slDetailPanel scroll="self" [recordKey]="order.id">
|
|
280
280
|
…
|
|
281
281
|
<footer slDetailPanelFooter>
|
|
282
|
-
<div slActionBar aria-label="
|
|
282
|
+
<div slActionBar aria-label="Order actions" variant="plain">
|
|
283
283
|
<div slActionBarActions>
|
|
284
|
-
<div slActionBarAction><button slButton variant="ghost">
|
|
285
|
-
<div slActionBarAction><button slButton tone="accent">
|
|
284
|
+
<div slActionBarAction><button slButton variant="ghost">Close</button></div>
|
|
285
|
+
<div slActionBarAction><button slButton tone="accent">Record payment</button></div>
|
|
286
286
|
</div>
|
|
287
287
|
</div>
|
|
288
288
|
</footer>
|
|
@@ -328,13 +328,13 @@ Excerpt — not a complete module
|
|
|
328
328
|
|
|
329
329
|
### What a section holds, and what sits beside it
|
|
330
330
|
|
|
331
|
-
A Table in the lines section, a Timeline feed in the history, a DescriptionList of fields in the aside with a copy control on the invoice, a Toolbar with overflow in the header’s actions and a Tag in its marks. Each is placed by the panel and owned by its own family; the panel writes none of their
|
|
331
|
+
A Table in the lines section, a Timeline feed in the history, a DescriptionList of fields in the aside with a copy control on the invoice, a Toolbar with overflow in the header’s actions and a Tag in its marks. Each is placed by the panel and owned by its own family; the panel writes none of their behavior.
|
|
332
332
|
|
|
333
333
|
Excerpt — not a complete module
|
|
334
334
|
|
|
335
335
|
```html
|
|
336
|
-
<ng-template slDetailPanelSection name="historico" label="
|
|
337
|
-
<div slTimeline label="
|
|
336
|
+
<ng-template slDetailPanelSection name="historico" label="History">
|
|
337
|
+
<div slTimeline label="Order history" order="newest-first">
|
|
338
338
|
@for (event of history; track event.time) {
|
|
339
339
|
<li slTimelineItem [title]="event.title" [time]="event.time"></li>
|
|
340
340
|
}
|
|
@@ -362,5 +362,5 @@ The article is named by the heading, so the record is announced by its identifie
|
|
|
362
362
|
Excerpt — not a complete module
|
|
363
363
|
|
|
364
364
|
```html
|
|
365
|
-
<article slDetailPanel aria-label="
|
|
365
|
+
<article slDetailPanel aria-label="Sales order SO-2026-01842" [recordKey]="order.id">…</article>
|
|
366
366
|
```
|
package/docs/dialog.examples.md
CHANGED
|
@@ -117,7 +117,7 @@ export class DialogSizes {
|
|
|
117
117
|
|
|
118
118
|
### Where the panel sits in the layer
|
|
119
119
|
|
|
120
|
-
center is right for a panel whose height is settled; top is right for one that grows as the reader types, because a
|
|
120
|
+
center is right for a panel whose height is settled; top is right for one that grows as the reader types, because a centerd panel moves under the cursor every time a line is added.
|
|
121
121
|
|
|
122
122
|
Example
|
|
123
123
|
|
|
@@ -604,7 +604,7 @@ export class DialogNested {
|
|
|
604
604
|
|
|
605
605
|
### Content the family did not choose
|
|
606
606
|
|
|
607
|
-
A ninety-character unbroken token in the title would widen a
|
|
607
|
+
A ninety-character unbroken token in the title would widen a centerd panel past both edges of the layer at once; overflow-wrap and a zero minimum are the pair that answer it. Long German and right-to-left strings are in the same scene.
|
|
608
608
|
|
|
609
609
|
Excerpt — not a complete module
|
|
610
610
|
|
|
@@ -884,7 +884,7 @@ Excerpt — not a complete module
|
|
|
884
884
|
|
|
885
885
|
### What kind of decision this is
|
|
886
886
|
|
|
887
|
-
Each tone carries its own mark, so the register survives a reader who cannot tell the
|
|
887
|
+
Each tone carries its own mark, so the register survives a reader who cannot tell the colors apart and forced colors, where every tone ground becomes one system color and the silhouette is all that is left.
|
|
888
888
|
|
|
889
889
|
Excerpt — not a complete module
|
|
890
890
|
|
|
@@ -894,7 +894,7 @@ Excerpt — not a complete module
|
|
|
894
894
|
|
|
895
895
|
### Two controls, each saying what it does
|
|
896
896
|
|
|
897
|
-
Labels name the action rather than answering a question — “
|
|
897
|
+
Labels name the action rather than answering a question — “Delete project”, not “Yes”. The action closes with submit and the cancel with dismiss, so a consumer reading the reason knows which one the reader chose.
|
|
898
898
|
|
|
899
899
|
Excerpt — not a complete module
|
|
900
900
|
|
|
@@ -941,7 +941,7 @@ Excerpt — not a complete module
|
|
|
941
941
|
|
|
942
942
|
### The actions are the consumer’s own buttons
|
|
943
943
|
|
|
944
|
-
render hands each control every attribute the family wrote, so the danger button is the library’s Button with the family’s
|
|
944
|
+
render hands each control every attribute the family wrote, so the danger button is the library’s Button with the family’s behavior on it — nothing is reimplemented and nothing is wrapped.
|
|
945
945
|
|
|
946
946
|
Excerpt — not a complete module
|
|
947
947
|
|
package/docs/dialog.json
CHANGED
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
"When the dialog opens, focus moves to its first focusable element, to the element initialFocus names, or to the panel itself with initialFocus=\"container\", for content that is read before it is used. When it closes, focus returns to the element that had it when the dialog opened, or to the element finalFocus names. If that element has left the document, focus goes to its nearest ancestor still in the document.",
|
|
473
473
|
"Containment, inertness and Escape are implemented in JavaScript rather than with the native dialog element, so every overlay of the library shares one stacking order: a select opened inside a dialog paints above it. Without JavaScript, there is no dialog.",
|
|
474
474
|
"The close button’s target is at least 24 by 24 pixels, and its mark is drawn from a glyph, not a character.",
|
|
475
|
-
"The panel has a border as well as a shadow, so its edge stays visible under forced
|
|
475
|
+
"The panel has a border as well as a shadow, so its edge stays visible under forced colors, where shadows are removed and the scrim becomes opaque."
|
|
476
476
|
]
|
|
477
477
|
},
|
|
478
478
|
"alertDialog": {
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
"part": "icon",
|
|
547
547
|
"element": "your own element, with slAlertDialogIcon on it",
|
|
548
548
|
"required": false,
|
|
549
|
-
"purpose": "The mark of the tone, drawn from a glyph, so the kind of decision does not depend on
|
|
549
|
+
"purpose": "The mark of the tone, drawn from a glyph, so the kind of decision does not depend on color alone. Under forced colors it is the only signal of the tone."
|
|
550
550
|
},
|
|
551
551
|
{
|
|
552
552
|
"part": "cancel",
|
|
@@ -644,7 +644,7 @@
|
|
|
644
644
|
"type": "'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
|
|
645
645
|
"defaultValue": "danger",
|
|
646
646
|
"appliesTo": "sl-alert-dialog",
|
|
647
|
-
"description": "The kind of decision. It sets the mark slAlertDialogIcon draws and its
|
|
647
|
+
"description": "The kind of decision. It sets the mark slAlertDialogIcon draws and its color."
|
|
648
648
|
},
|
|
649
649
|
{
|
|
650
650
|
"name": "modal",
|
|
@@ -672,7 +672,7 @@
|
|
|
672
672
|
"type": "'panel' | 'plain'",
|
|
673
673
|
"defaultValue": "panel",
|
|
674
674
|
"appliesTo": "sl-alert-dialog",
|
|
675
|
-
"description": "Whether sl-alert-dialog paints the panel. plain removes the paint and keeps the
|
|
675
|
+
"description": "Whether sl-alert-dialog paints the panel. plain removes the paint and keeps the behavior."
|
|
676
676
|
},
|
|
677
677
|
{
|
|
678
678
|
"name": "fullScreen",
|
|
@@ -771,7 +771,7 @@
|
|
|
771
771
|
"Focus starts on slAlertDialogCancel, the least destructive answer, as the pattern advises for a step that cannot be undone easily.",
|
|
772
772
|
"A press outside never closes an alert dialog, and it is always modal. Escape closes it, which answers with the cancel; set escape=\"none\" when cancelling is not safe either.",
|
|
773
773
|
"There is no close part: the reader answers with the cancel or the action. slDialogClose inside sl-alert-dialog throws an error.",
|
|
774
|
-
"The tone is carried by the icon’s shape as well as by its
|
|
774
|
+
"The tone is carried by the icon’s shape as well as by its color, so it survives forced colors and readers who cannot tell the colors apart."
|
|
775
775
|
]
|
|
776
776
|
}
|
|
777
777
|
},
|
|
@@ -872,7 +872,7 @@
|
|
|
872
872
|
{
|
|
873
873
|
"id": "placement",
|
|
874
874
|
"title": "Where the panel sits in the layer",
|
|
875
|
-
"note": "center is right for a panel whose height is settled; top is right for one that grows as the reader types, because a
|
|
875
|
+
"note": "center is right for a panel whose height is settled; top is right for one that grows as the reader types, because a centerd panel moves under the cursor every time a line is added.",
|
|
876
876
|
"language": "ts",
|
|
877
877
|
"source": "import { Component, signal } from '@angular/core';\nimport { SlButton } from '@slotted/angular/button';\nimport {\n SlDialog,\n SlDialogBody,\n SlDialogClose,\n SlDialogDescription,\n SlDialogFooter,\n SlDialogHeader,\n SlDialogTitle,\n SlDialogTrigger,\n} from '@slotted/angular/dialog';\nimport { SlField, SlFieldLabel } from '@slotted/angular/field';\nimport { SlTextarea } from '@slotted/angular/textarea';\n\n@Component({\n selector: 'app-dialog-placement',\n imports: [\n SlButton,\n SlDialog,\n SlDialogBody,\n SlDialogClose,\n SlDialogDescription,\n SlDialogFooter,\n SlDialogHeader,\n SlDialogTitle,\n SlDialogTrigger,\n SlField,\n SlFieldLabel,\n SlTextarea,\n ],\n template: `\n <button slButton tone=\"secondary\" variant=\"outline\" [slDialogTrigger]=\"dialog\">\n Add a note\n </button>\n <sl-dialog #dialog=\"slDialog\" placement=\"top\" [(open)]=\"open\">\n <header slDialogHeader>\n <h2 slDialogTitle>Note on order SO-1182</h2>\n <p slDialogDescription>The warehouse team sees the note on the pick list.</p>\n <button slDialogClose></button>\n </header>\n <div slDialogBody>\n <div slField>\n <label slFieldLabel>Note</label>\n <textarea\n slTextarea\n [rows]=\"3\"\n [maxRows]=\"12\"\n placeholder=\"Leave at the loading dock after 2 pm.\"\n ></textarea>\n </div>\n </div>\n <footer slDialogFooter>\n <button slButton variant=\"ghost\" tone=\"secondary\" (click)=\"open.set(false)\">Cancel</button>\n <button slButton (click)=\"open.set(false)\">Add note</button>\n </footer>\n </sl-dialog>\n `,\n})\nexport class DialogPlacement {\n readonly open = signal(false);\n}\n",
|
|
878
878
|
"verdict": "example"
|
|
@@ -944,7 +944,7 @@
|
|
|
944
944
|
{
|
|
945
945
|
"id": "content",
|
|
946
946
|
"title": "Content the family did not choose",
|
|
947
|
-
"note": "A ninety-character unbroken token in the title would widen a
|
|
947
|
+
"note": "A ninety-character unbroken token in the title would widen a centerd panel past both edges of the layer at once; overflow-wrap and a zero minimum are the pair that answer it. Long German and right-to-left strings are in the same scene.",
|
|
948
948
|
"language": "html",
|
|
949
949
|
"source": "<h2 slDialogTitle>deployment-pipeline-eu-west-1-production-rollback-2026-09-04T01</h2>\n",
|
|
950
950
|
"verdict": "excerpt"
|
|
@@ -1000,7 +1000,7 @@
|
|
|
1000
1000
|
{
|
|
1001
1001
|
"id": "tones",
|
|
1002
1002
|
"title": "What kind of decision this is",
|
|
1003
|
-
"note": "Each tone carries its own mark, so the register survives a reader who cannot tell the
|
|
1003
|
+
"note": "Each tone carries its own mark, so the register survives a reader who cannot tell the colors apart and forced colors, where every tone ground becomes one system color and the silhouette is all that is left.",
|
|
1004
1004
|
"language": "html",
|
|
1005
1005
|
"source": "<sl-alert-dialog tone=\"warning\" [(open)]=\"open\">…</sl-alert-dialog>\n",
|
|
1006
1006
|
"verdict": "excerpt"
|
|
@@ -1008,7 +1008,7 @@
|
|
|
1008
1008
|
{
|
|
1009
1009
|
"id": "actions",
|
|
1010
1010
|
"title": "Two controls, each saying what it does",
|
|
1011
|
-
"note": "Labels name the action rather than answering a question — “
|
|
1011
|
+
"note": "Labels name the action rather than answering a question — “Delete project”, not “Yes”. The action closes with submit and the cancel with dismiss, so a consumer reading the reason knows which one the reader chose.",
|
|
1012
1012
|
"language": "html",
|
|
1013
1013
|
"source": "<footer slDialogFooter>\n <button slButton slAlertDialogCancel>Keep project</button>\n <button slButton slAlertDialogAction value=\"deleted\">Delete project</button>\n</footer>\n",
|
|
1014
1014
|
"verdict": "excerpt"
|
|
@@ -1040,7 +1040,7 @@
|
|
|
1040
1040
|
{
|
|
1041
1041
|
"id": "composition",
|
|
1042
1042
|
"title": "The actions are the consumer’s own buttons",
|
|
1043
|
-
"note": "render hands each control every attribute the family wrote, so the danger button is the library’s Button with the family’s
|
|
1043
|
+
"note": "render hands each control every attribute the family wrote, so the danger button is the library’s Button with the family’s behavior on it — nothing is reimplemented and nothing is wrapped.",
|
|
1044
1044
|
"language": "html",
|
|
1045
1045
|
"source": "<button slButton tone=\"danger\" slAlertDialogAction>Delete project</button>\n",
|
|
1046
1046
|
"verdict": "excerpt"
|
package/docs/dialog.md
CHANGED
|
@@ -202,13 +202,13 @@ See [dialog.props.md](./dialog.props.md).
|
|
|
202
202
|
- When the dialog opens, focus moves to its first focusable element, to the element initialFocus names, or to the panel itself with initialFocus="container", for content that is read before it is used. When it closes, focus returns to the element that had it when the dialog opened, or to the element finalFocus names. If that element has left the document, focus goes to its nearest ancestor still in the document.
|
|
203
203
|
- Containment, inertness and Escape are implemented in JavaScript rather than with the native dialog element, so every overlay of the library shares one stacking order: a select opened inside a dialog paints above it. Without JavaScript, there is no dialog.
|
|
204
204
|
- The close button’s target is at least 24 by 24 pixels, and its mark is drawn from a glyph, not a character.
|
|
205
|
-
- The panel has a border as well as a shadow, so its edge stays visible under forced
|
|
205
|
+
- The panel has a border as well as a shadow, so its edge stays visible under forced colors, where shadows are removed and the scrim becomes opaque.
|
|
206
206
|
- sl-alert-dialog follows the WAI-ARIA alert dialog pattern: the modal dialog pattern with role="alertdialog" and a required description. The keyboard is the same: Tab and Shift+Tab wrap inside the panel, and Escape closes it.
|
|
207
207
|
- aria-describedby is required. sl-alert-dialog throws an error when no slDialogDescription is rendered while it is open, so a confirmation is never announced without the sentence that says what it does.
|
|
208
208
|
- Focus starts on slAlertDialogCancel, the least destructive answer, as the pattern advises for a step that cannot be undone easily.
|
|
209
209
|
- A press outside never closes an alert dialog, and it is always modal. Escape closes it, which answers with the cancel; set escape="none" when cancelling is not safe either.
|
|
210
210
|
- There is no close part: the reader answers with the cancel or the action. slDialogClose inside sl-alert-dialog throws an error.
|
|
211
|
-
- The tone is carried by the icon’s shape as well as by its
|
|
211
|
+
- The tone is carried by the icon’s shape as well as by its color, so it survives forced colors and readers who cannot tell the colors apart.
|
|
212
212
|
|
|
213
213
|
## Tokens
|
|
214
214
|
|
package/docs/dialog.props.md
CHANGED
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
| `initialFocus` | `'first' \| 'container' \| 'cancel' \| HTMLElement \| false` | cancel | sl-alert-dialog | Where focus goes when the dialog opens. The default, cancel, is the least destructive answer. |
|
|
51
51
|
| `finalFocus` | `HTMLElement \| false` | — | sl-dialog, sl-alert-dialog | Where focus goes when the dialog closes. Unset, focus returns to the element that had it when the dialog opened, usually the trigger. false leaves focus where it is. |
|
|
52
52
|
| `value` | `string` | — | slDialogClose, slAlertDialogCancel, slAlertDialogAction | The result this button closes the dialog with, read from request.result in (openChangeRequest) and from (closed). slAlertDialogCancel defaults to "cancel" and slAlertDialogAction to "confirm". |
|
|
53
|
-
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | danger | sl-alert-dialog | The kind of decision. It sets the mark slAlertDialogIcon draws and its
|
|
53
|
+
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | danger | sl-alert-dialog | The kind of decision. It sets the mark slAlertDialogIcon draws and its color. |
|
|
54
54
|
| `modal` | `boolean` | true | sl-alert-dialog | Fixed: an alert dialog is always modal. |
|
|
55
55
|
| `outsidePress` | `'close' \| 'none'` | none | sl-alert-dialog | Fixed: a press outside never closes an alert dialog. |
|
|
56
56
|
| `back` | `'close' \| 'none'` | close | sl-alert-dialog | Whether the browser’s way back cancels the confirmation, as Escape does. The close request carries the reason back. |
|
|
57
|
-
| `surface` | `'panel' \| 'plain'` | panel | sl-alert-dialog | Whether sl-alert-dialog paints the panel. plain removes the paint and keeps the
|
|
57
|
+
| `surface` | `'panel' \| 'plain'` | panel | sl-alert-dialog | Whether sl-alert-dialog paints the panel. plain removes the paint and keeps the behavior. |
|
|
58
58
|
| `fullScreen` | `'never' \| 'narrow' \| 'always'` | never | sl-alert-dialog | When the panel fills the whole layer. sl-alert-dialog keeps its margins at every width by default. |
|
|
59
59
|
| `directives on your own elements` | `attribute selector` | — | slDialogTrigger, slDialogHeader, slDialogTitle, slDialogDescription, slDialogBody, slDialogFooter, slDialogClose, slAlertDialogIcon, slAlertDialogCancel, slAlertDialogAction | Every part except the layer is a directive on an element you write, so the trigger, the cancel and the action can be a slButton. |
|
|
60
60
|
| `exportAs` | `'slDialog' \| 'slAlertDialog'` | — | sl-dialog, sl-alert-dialog | A template reference variable reaches the instance. [slDialogTrigger]="dialog" links a trigger to it from anywhere in the same template. |
|