@slotted/angular 0.1.0-beta.3 → 0.1.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/AGENTS.snippet.md +3 -1
- package/docs/accordion.json +5 -5
- package/docs/accordion.md +12 -12
- package/docs/action-bar.json +23 -22
- package/docs/action-bar.md +30 -30
- package/docs/action-sheet.json +391 -64
- package/docs/action-sheet.md +259 -0
- package/docs/alert.json +31 -14
- package/docs/alert.md +29 -18
- package/docs/app-shell.examples.md +8 -8
- package/docs/app-shell.json +38 -21
- package/docs/app-shell.md +9 -7
- package/docs/avatar-group.json +1 -1
- package/docs/avatar-group.md +1 -1
- package/docs/avatar.json +32 -11
- package/docs/avatar.md +13 -11
- package/docs/badge.json +10 -4
- package/docs/badge.md +5 -5
- package/docs/breadcrumb.json +2 -2
- package/docs/breadcrumb.md +2 -2
- package/docs/button-group.json +2 -1
- package/docs/button-group.md +2 -2
- package/docs/button.examples.md +15 -0
- package/docs/button.json +134 -14
- package/docs/button.md +32 -8
- package/docs/calendar.json +31 -6
- package/docs/calendar.md +9 -6
- package/docs/card.json +3 -2
- package/docs/card.md +3 -3
- package/docs/carousel.json +10 -10
- package/docs/carousel.md +11 -11
- package/docs/cascader.json +2 -0
- package/docs/cascader.md +1 -1
- package/docs/chart.examples.md +45 -31
- package/docs/chart.json +40 -35
- package/docs/chart.md +7 -7
- package/docs/checkbox-group.examples.md +13 -13
- package/docs/checkbox-group.json +7 -7
- package/docs/checkbox-group.md +2 -2
- package/docs/checkbox.examples.md +7 -7
- package/docs/checkbox.json +6 -6
- package/docs/checkbox.md +3 -3
- package/docs/code-block.json +93 -93
- package/docs/code-block.md +70 -70
- package/docs/collapsible.json +12 -11
- package/docs/collapsible.md +20 -20
- package/docs/color-picker.json +26 -26
- package/docs/color-picker.md +16 -16
- package/docs/combobox.json +6 -2
- package/docs/combobox.md +3 -3
- package/docs/command-palette.json +2 -0
- package/docs/command-palette.md +1 -1
- package/docs/context-menu.json +1 -1
- package/docs/context-menu.md +1 -1
- package/docs/currency-field.examples.md +3 -3
- package/docs/currency-field.json +14 -6
- package/docs/currency-field.md +6 -5
- package/docs/dashboard-grid.json +53 -10
- package/docs/dashboard-grid.md +18 -6
- package/docs/data-grid.examples.md +3 -3
- package/docs/data-grid.json +37 -11
- package/docs/data-grid.md +2 -1
- package/docs/data-grid.props.md +7 -5
- package/docs/data-list.json +2 -1
- package/docs/data-list.md +1 -1
- package/docs/date-field.json +12 -4
- package/docs/date-field.md +8 -7
- package/docs/date-picker.examples.md +36 -0
- package/docs/date-picker.json +32 -5
- package/docs/date-picker.md +7 -5
- package/docs/date-range-picker.json +11 -0
- package/docs/date-range-picker.md +2 -1
- package/docs/datetime-field.json +5 -4
- package/docs/datetime-field.md +10 -10
- package/docs/datetime-picker.json +11 -1
- package/docs/datetime-picker.md +2 -1
- package/docs/datetime-range-picker.examples.md +3 -3
- package/docs/datetime-range-picker.json +14 -3
- package/docs/datetime-range-picker.md +4 -3
- package/docs/description-list.json +16 -7
- package/docs/description-list.md +8 -7
- package/docs/detail-panel.json +14 -12
- package/docs/detail-panel.md +20 -15
- package/docs/dialog.examples.md +143 -141
- package/docs/dialog.json +58 -24
- package/docs/dialog.md +6 -4
- package/docs/dialog.props.md +9 -7
- package/docs/drawer.examples.md +14 -14
- package/docs/drawer.json +44 -17
- package/docs/drawer.md +10 -8
- package/docs/entity-picker.json +22 -4
- package/docs/entity-picker.md +8 -6
- package/docs/event-calendar.examples.md +3 -3
- package/docs/event-calendar.json +5 -5
- package/docs/event-calendar.md +4 -4
- package/docs/field-group.json +21 -6
- package/docs/field-group.md +14 -12
- package/docs/field.examples.md +3 -3
- package/docs/field.json +20 -5
- package/docs/field.md +4 -2
- package/docs/filter-bar.json +118 -118
- package/docs/filter-bar.md +79 -79
- package/docs/form.json +24 -12
- package/docs/form.md +15 -13
- package/docs/fullscreen.json +4 -4
- package/docs/fullscreen.md +7 -7
- package/docs/guidelines/README.md +2 -2
- package/docs/guidelines/async-feedback.md +25 -4
- package/docs/guidelines/builders.md +1 -1
- package/docs/guidelines/composition.md +37 -11
- package/docs/guidelines/conversations.md +1 -1
- package/docs/guidelines/errors-and-conflicts.md +7 -6
- package/docs/guidelines/forms.md +111 -1
- package/docs/guidelines/index.md +27 -7
- package/docs/guidelines/layout-alignment.md +24 -14
- package/docs/guidelines/list-pages.md +44 -3
- package/docs/guidelines/overviews.md +39 -9
- package/docs/guidelines/own-elements.md +8 -8
- package/docs/guidelines/reading-permissions.md +2 -2
- package/docs/guidelines/record-pages.md +1 -1
- package/docs/guidelines/reports.md +1 -1
- package/docs/highlight.json +9 -9
- package/docs/highlight.md +14 -14
- package/docs/icon.json +5 -3
- package/docs/icon.md +4 -4
- package/docs/image.json +3 -3
- package/docs/image.md +3 -3
- package/docs/import-export-center.json +24 -23
- package/docs/import-export-center.md +18 -18
- package/docs/index.md +3 -2
- package/docs/inline-message.json +34 -21
- package/docs/inline-message.md +32 -30
- package/docs/inline.json +1 -1
- package/docs/inline.md +1 -1
- package/docs/kbd.json +5 -2
- package/docs/kbd.md +3 -3
- package/docs/link.json +22 -6
- package/docs/link.md +9 -7
- package/docs/list-item.json +20 -4
- package/docs/list-item.md +20 -17
- package/docs/list.examples.md +907 -0
- package/docs/list.json +121 -33
- package/docs/list.md +73 -137
- package/docs/listbox.json +1 -2
- package/docs/listbox.md +2 -2
- package/docs/loading-overlay.json +3 -3
- package/docs/loading-overlay.md +3 -3
- package/docs/markdown.json +86 -79
- package/docs/markdown.md +66 -65
- package/docs/media-viewer.json +521 -0
- package/docs/media-viewer.md +188 -0
- package/docs/menu.json +15 -1
- package/docs/menu.md +3 -1
- package/docs/message-scroller.json +2 -2
- package/docs/message-scroller.md +1 -1
- package/docs/message.json +18 -12
- package/docs/message.md +20 -20
- package/docs/multi-select.json +4 -1
- package/docs/multi-select.md +1 -1
- package/docs/navigation-menu.json +1 -0
- package/docs/navigation-menu.md +1 -1
- package/docs/notification-center.json +21 -16
- package/docs/notification-center.md +20 -24
- package/docs/number-field.examples.md +3 -3
- package/docs/number-field.json +4 -3
- package/docs/number-field.md +1 -1
- package/docs/otp-input.json +11 -10
- package/docs/otp-input.md +14 -14
- package/docs/page-header.json +31 -14
- package/docs/page-header.md +25 -25
- package/docs/page.json +4 -2
- package/docs/page.md +3 -2
- package/docs/pagination.json +2 -2
- package/docs/pagination.md +1 -1
- package/docs/popover.examples.md +1 -1
- package/docs/popover.json +5 -3
- package/docs/popover.md +2 -2
- package/docs/progress-indicator.json +7 -5
- package/docs/progress-indicator.md +7 -7
- package/docs/prompt-composer.json +53 -6
- package/docs/prompt-composer.md +12 -6
- package/docs/prose.json +1 -1
- package/docs/prose.md +1 -1
- package/docs/radio-group.examples.md +19 -19
- package/docs/radio-group.json +12 -12
- package/docs/radio-group.md +3 -3
- package/docs/rating.json +28 -26
- package/docs/rating.md +28 -37
- package/docs/result-state.json +13 -12
- package/docs/result-state.md +18 -18
- package/docs/saved-views.json +1 -1
- package/docs/scroll-area.json +266 -64
- package/docs/scroll-area.md +188 -0
- package/docs/section.json +44 -22
- package/docs/section.md +34 -31
- package/docs/segmented-control.json +21 -25
- package/docs/segmented-control.md +33 -33
- package/docs/select.json +4 -0
- package/docs/select.md +1 -1
- package/docs/side-navigation.json +1 -0
- package/docs/side-navigation.md +1 -1
- package/docs/skeleton.json +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/skills/build-own-element/SKILL.md +9 -9
- package/docs/skills/compose-screen/SKILL.md +59 -18
- package/docs/skills/index.md +2 -2
- package/docs/skills/review-screen/SKILL.md +29 -17
- package/docs/skills/theme-app/SKILL.md +66 -20
- package/docs/skills/waiting-states/SKILL.md +15 -11
- package/docs/slider.json +8 -8
- package/docs/slider.md +12 -12
- package/docs/sparkline.json +12 -9
- package/docs/sparkline.md +9 -9
- package/docs/split-button.json +14 -12
- package/docs/split-button.md +28 -30
- package/docs/splitter.json +279 -64
- package/docs/splitter.md +215 -0
- package/docs/stack.json +1 -1
- package/docs/stack.md +1 -1
- package/docs/stat-card.json +36 -9
- package/docs/stat-card.md +11 -8
- package/docs/status-indicator.json +22 -11
- package/docs/status-indicator.md +8 -6
- package/docs/stepper.json +4 -4
- package/docs/stepper.md +4 -4
- package/docs/switch.json +5 -5
- package/docs/switch.md +7 -7
- package/docs/table-of-contents.json +13 -12
- package/docs/table-of-contents.md +14 -14
- package/docs/table.examples.md +3 -3
- package/docs/table.json +17 -3
- package/docs/table.md +3 -1
- package/docs/tabs.json +16 -3
- package/docs/tabs.md +3 -2
- package/docs/tag.json +38 -26
- package/docs/tag.md +17 -17
- package/docs/tags-input.json +30 -3
- package/docs/tags-input.md +5 -2
- package/docs/text-field.examples.md +6 -6
- package/docs/text-field.json +6 -5
- package/docs/text-field.md +2 -2
- package/docs/textarea.examples.md +7 -7
- package/docs/textarea.json +4 -3
- package/docs/textarea.md +1 -1
- package/docs/time-field.json +4 -3
- package/docs/time-field.md +7 -7
- package/docs/time-picker.json +15 -5
- package/docs/time-picker.md +8 -7
- package/docs/time-range-picker.examples.md +5 -5
- package/docs/time-range-picker.json +15 -4
- package/docs/time-range-picker.md +3 -2
- package/docs/timeline.json +138 -132
- package/docs/timeline.md +125 -125
- package/docs/toast.json +15 -7
- package/docs/toast.md +8 -8
- package/docs/toggle-group.json +12 -12
- package/docs/toggle-group.md +28 -28
- package/docs/toggle.json +8 -8
- package/docs/toggle.md +7 -7
- package/docs/tokens.md +53 -26
- package/docs/toolbar.json +11 -11
- package/docs/toolbar.md +23 -23
- package/docs/tooltip.json +4 -3
- package/docs/tooltip.md +4 -4
- package/docs/top-navigation.examples.md +11 -15
- package/docs/top-navigation.json +9 -9
- package/docs/top-navigation.md +7 -7
- package/docs/tour.json +10 -9
- package/docs/tour.md +7 -7
- package/docs/typography.json +6 -4
- package/docs/typography.md +5 -5
- package/docs/upload.examples.md +3 -3
- package/docs/upload.json +9 -9
- package/docs/upload.md +4 -4
- package/fesm2022/slotted-angular-accordion.mjs +4 -2
- package/fesm2022/slotted-angular-accordion.mjs.map +1 -1
- package/fesm2022/slotted-angular-action-bar.mjs +27 -12
- package/fesm2022/slotted-angular-action-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-action-sheet.mjs +48 -29
- package/fesm2022/slotted-angular-action-sheet.mjs.map +1 -1
- package/fesm2022/slotted-angular-alert.mjs +56 -18
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-app-shell.mjs +85 -56
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
- package/fesm2022/slotted-angular-aspect-ratio.mjs +4 -2
- package/fesm2022/slotted-angular-aspect-ratio.mjs.map +1 -1
- package/fesm2022/slotted-angular-attachment.mjs +33 -22
- package/fesm2022/slotted-angular-attachment.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar-group.mjs +13 -10
- package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +17 -10
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +15 -11
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs +27 -19
- package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/slotted-angular-button-group.mjs +8 -5
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +163 -28
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-calendar.mjs +263 -65
- package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +19 -17
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-carousel.mjs +22 -11
- package/fesm2022/slotted-angular-carousel.mjs.map +1 -1
- package/fesm2022/slotted-angular-cascader.mjs +179 -65
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +26 -5
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox-group.mjs +5 -3
- package/fesm2022/slotted-angular-checkbox-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +14 -9
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-code-block.mjs +30 -16
- package/fesm2022/slotted-angular-code-block.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +21 -16
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-color-picker.mjs +83 -28
- package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +71 -32
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-combobox.mjs +108 -35
- package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
- package/fesm2022/slotted-angular-command-palette.mjs +162 -54
- package/fesm2022/slotted-angular-command-palette.mjs.map +1 -1
- package/fesm2022/slotted-angular-container.mjs +6 -4
- package/fesm2022/slotted-angular-container.mjs.map +1 -1
- package/fesm2022/slotted-angular-context-menu.mjs +5 -4
- package/fesm2022/slotted-angular-context-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-currency-field.mjs +100 -34
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +384 -88
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +461 -129
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-list.mjs +83 -50
- package/fesm2022/slotted-angular-data-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-field.mjs +78 -27
- package/fesm2022/slotted-angular-date-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs +135 -40
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs +68 -22
- package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs +49 -17
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs +64 -29
- package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +144 -54
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +47 -24
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-detail-panel.mjs +48 -30
- package/fesm2022/slotted-angular-detail-panel.mjs.map +1 -1
- package/fesm2022/slotted-angular-dialog.mjs +81 -39
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
- package/fesm2022/slotted-angular-divider.mjs +7 -5
- package/fesm2022/slotted-angular-divider.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +236 -105
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-entity-picker.mjs +474 -75
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-event-calendar.mjs +262 -105
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-field-group.mjs +30 -9
- package/fesm2022/slotted-angular-field-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-field.mjs +49 -18
- package/fesm2022/slotted-angular-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-filter-bar.mjs +111 -44
- package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-form.mjs +48 -17
- package/fesm2022/slotted-angular-form.mjs.map +1 -1
- package/fesm2022/slotted-angular-fullscreen.mjs +14 -8
- package/fesm2022/slotted-angular-fullscreen.mjs.map +1 -1
- package/fesm2022/slotted-angular-grid.mjs +6 -4
- package/fesm2022/slotted-angular-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-highlight.mjs +6 -4
- package/fesm2022/slotted-angular-highlight.mjs.map +1 -1
- package/fesm2022/slotted-angular-hover-card.mjs +5 -4
- package/fesm2022/slotted-angular-hover-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-icon.mjs +191 -90
- package/fesm2022/slotted-angular-icon.mjs.map +1 -1
- package/fesm2022/slotted-angular-image.mjs +13 -10
- package/fesm2022/slotted-angular-image.mjs.map +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs +185 -109
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +98 -23
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline.mjs +7 -5
- package/fesm2022/slotted-angular-inline.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs +11 -7
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-link.mjs +13 -4
- package/fesm2022/slotted-angular-link.mjs.map +1 -1
- package/fesm2022/slotted-angular-list-item.mjs +63 -23
- package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +15 -11
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +41 -23
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +62 -25
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
- package/fesm2022/slotted-angular-markdown.mjs +57 -31
- package/fesm2022/slotted-angular-markdown.mjs.map +1 -1
- package/fesm2022/slotted-angular-media-viewer.mjs +962 -0
- package/fesm2022/slotted-angular-media-viewer.mjs.map +1 -0
- package/fesm2022/slotted-angular-menu.mjs +62 -39
- package/fesm2022/slotted-angular-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-menubar.mjs +6 -3
- package/fesm2022/slotted-angular-menubar.mjs.map +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs +35 -16
- package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -1
- package/fesm2022/slotted-angular-message.mjs +119 -51
- package/fesm2022/slotted-angular-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-multi-select.mjs +163 -60
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-navigation-menu.mjs +34 -26
- package/fesm2022/slotted-angular-navigation-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +111 -68
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-number-field.mjs +24 -12
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs +14 -9
- package/fesm2022/slotted-angular-otp-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-page-header.mjs +90 -48
- package/fesm2022/slotted-angular-page-header.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +60 -12
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-pagination.mjs +35 -22
- package/fesm2022/slotted-angular-pagination.mjs.map +1 -1
- package/fesm2022/slotted-angular-popover.mjs +34 -21
- package/fesm2022/slotted-angular-popover.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +238 -54
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-prompt-composer.mjs +132 -22
- package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -1
- package/fesm2022/slotted-angular-prose.mjs +14 -11
- package/fesm2022/slotted-angular-prose.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +17 -11
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +143 -87
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-result-state.mjs +16 -12
- package/fesm2022/slotted-angular-result-state.mjs.map +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs +43 -16
- package/fesm2022/slotted-angular-saved-views.mjs.map +1 -1
- package/fesm2022/slotted-angular-scroll-area.mjs +13 -5
- package/fesm2022/slotted-angular-scroll-area.mjs.map +1 -1
- package/fesm2022/slotted-angular-section.mjs +81 -19
- package/fesm2022/slotted-angular-section.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +16 -10
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-select.mjs +189 -69
- package/fesm2022/slotted-angular-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-side-navigation.mjs +46 -35
- package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-skeleton.mjs +32 -16
- package/fesm2022/slotted-angular-skeleton.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +34 -14
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-sparkline.mjs +41 -14
- package/fesm2022/slotted-angular-sparkline.mjs.map +1 -1
- package/fesm2022/slotted-angular-split-button.mjs +37 -11
- package/fesm2022/slotted-angular-split-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-splitter.mjs +11 -9
- package/fesm2022/slotted-angular-splitter.mjs.map +1 -1
- package/fesm2022/slotted-angular-stack.mjs +6 -4
- package/fesm2022/slotted-angular-stack.mjs.map +1 -1
- package/fesm2022/slotted-angular-stat-card.mjs +120 -41
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +51 -20
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-stepper.mjs +40 -15
- package/fesm2022/slotted-angular-stepper.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs +15 -10
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table-of-contents.mjs +29 -21
- package/fesm2022/slotted-angular-table-of-contents.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +162 -79
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tabs.mjs +42 -18
- package/fesm2022/slotted-angular-tabs.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +20 -13
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +254 -29
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-text-field.mjs +55 -15
- package/fesm2022/slotted-angular-text-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-textarea.mjs +5 -3
- package/fesm2022/slotted-angular-textarea.mjs.map +1 -1
- package/fesm2022/slotted-angular-theme.mjs +6 -3
- package/fesm2022/slotted-angular-theme.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-field.mjs +48 -14
- package/fesm2022/slotted-angular-time-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-picker.mjs +55 -20
- package/fesm2022/slotted-angular-time-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-range-picker.mjs +142 -52
- package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-timeline.mjs +147 -64
- package/fesm2022/slotted-angular-timeline.mjs.map +1 -1
- package/fesm2022/slotted-angular-toast.mjs +50 -38
- package/fesm2022/slotted-angular-toast.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle-group.mjs +10 -6
- package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle.mjs +9 -4
- package/fesm2022/slotted-angular-toggle.mjs.map +1 -1
- package/fesm2022/slotted-angular-toolbar.mjs +27 -12
- package/fesm2022/slotted-angular-toolbar.mjs.map +1 -1
- package/fesm2022/slotted-angular-tooltip.mjs +15 -6
- package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
- package/fesm2022/slotted-angular-top-navigation.mjs +64 -44
- package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +49 -24
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-transfer.mjs +69 -30
- package/fesm2022/slotted-angular-transfer.mjs.map +1 -1
- package/fesm2022/slotted-angular-tree.mjs +80 -26
- package/fesm2022/slotted-angular-tree.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +9 -5
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +127 -59
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/fesm2022/slotted-angular-visually-hidden.mjs +4 -2
- package/fesm2022/slotted-angular-visually-hidden.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +169 -71
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +19 -3
- package/types/slotted-angular-accordion.d.ts.map +1 -1
- package/types/slotted-angular-action-bar.d.ts +2 -0
- package/types/slotted-angular-action-bar.d.ts.map +1 -1
- package/types/slotted-angular-action-sheet.d.ts.map +1 -1
- package/types/slotted-angular-alert.d.ts +17 -8
- package/types/slotted-angular-alert.d.ts.map +1 -1
- package/types/slotted-angular-app-shell.d.ts +10 -8
- package/types/slotted-angular-app-shell.d.ts.map +1 -1
- package/types/slotted-angular-aspect-ratio.d.ts.map +1 -1
- package/types/slotted-angular-attachment.d.ts +2 -1
- package/types/slotted-angular-attachment.d.ts.map +1 -1
- package/types/slotted-angular-avatar-group.d.ts +3 -3
- package/types/slotted-angular-avatar-group.d.ts.map +1 -1
- package/types/slotted-angular-avatar.d.ts +17 -9
- package/types/slotted-angular-avatar.d.ts.map +1 -1
- package/types/slotted-angular-badge.d.ts +4 -4
- package/types/slotted-angular-badge.d.ts.map +1 -1
- package/types/slotted-angular-breadcrumb.d.ts +1 -1
- package/types/slotted-angular-breadcrumb.d.ts.map +1 -1
- package/types/slotted-angular-button-group.d.ts +2 -2
- package/types/slotted-angular-button-group.d.ts.map +1 -1
- package/types/slotted-angular-button.d.ts +45 -12
- package/types/slotted-angular-button.d.ts.map +1 -1
- package/types/slotted-angular-calendar.d.ts +43 -2
- package/types/slotted-angular-calendar.d.ts.map +1 -1
- package/types/slotted-angular-card.d.ts +1 -1
- package/types/slotted-angular-card.d.ts.map +1 -1
- package/types/slotted-angular-carousel.d.ts.map +1 -1
- package/types/slotted-angular-cascader.d.ts.map +1 -1
- package/types/slotted-angular-chart.d.ts +14 -11
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-checkbox-group.d.ts.map +1 -1
- package/types/slotted-angular-checkbox.d.ts +1 -1
- package/types/slotted-angular-checkbox.d.ts.map +1 -1
- package/types/slotted-angular-code-block.d.ts +3 -2
- package/types/slotted-angular-code-block.d.ts.map +1 -1
- package/types/slotted-angular-collapsible.d.ts +3 -2
- package/types/slotted-angular-collapsible.d.ts.map +1 -1
- package/types/slotted-angular-color-picker.d.ts +6 -6
- package/types/slotted-angular-color-picker.d.ts.map +1 -1
- package/types/slotted-angular-column-manager.d.ts +1 -1
- package/types/slotted-angular-column-manager.d.ts.map +1 -1
- package/types/slotted-angular-combobox.d.ts +6 -1
- package/types/slotted-angular-combobox.d.ts.map +1 -1
- package/types/slotted-angular-command-palette.d.ts +10 -1
- package/types/slotted-angular-command-palette.d.ts.map +1 -1
- package/types/slotted-angular-container.d.ts.map +1 -1
- package/types/slotted-angular-context-menu.d.ts.map +1 -1
- package/types/slotted-angular-currency-field.d.ts +40 -14
- package/types/slotted-angular-currency-field.d.ts.map +1 -1
- package/types/slotted-angular-dashboard-grid.d.ts +65 -7
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-grid.d.ts +63 -5
- package/types/slotted-angular-data-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-list.d.ts.map +1 -1
- package/types/slotted-angular-date-field.d.ts +12 -1
- package/types/slotted-angular-date-field.d.ts.map +1 -1
- package/types/slotted-angular-date-picker.d.ts +39 -12
- package/types/slotted-angular-date-picker.d.ts.map +1 -1
- package/types/slotted-angular-date-range-picker.d.ts +1 -1
- package/types/slotted-angular-date-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-datetime-field.d.ts.map +1 -1
- package/types/slotted-angular-datetime-picker.d.ts +1 -1
- package/types/slotted-angular-datetime-picker.d.ts.map +1 -1
- package/types/slotted-angular-datetime-range-picker.d.ts +2 -2
- package/types/slotted-angular-datetime-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-description-list.d.ts +12 -4
- package/types/slotted-angular-description-list.d.ts.map +1 -1
- package/types/slotted-angular-detail-panel.d.ts.map +1 -1
- package/types/slotted-angular-dialog.d.ts +11 -3
- package/types/slotted-angular-dialog.d.ts.map +1 -1
- package/types/slotted-angular-divider.d.ts.map +1 -1
- package/types/slotted-angular-drawer.d.ts +29 -3
- package/types/slotted-angular-drawer.d.ts.map +1 -1
- package/types/slotted-angular-entity-picker.d.ts +63 -15
- package/types/slotted-angular-entity-picker.d.ts.map +1 -1
- package/types/slotted-angular-event-calendar.d.ts.map +1 -1
- package/types/slotted-angular-field-group.d.ts +10 -2
- package/types/slotted-angular-field-group.d.ts.map +1 -1
- package/types/slotted-angular-field.d.ts +12 -4
- package/types/slotted-angular-field.d.ts.map +1 -1
- package/types/slotted-angular-filter-bar.d.ts.map +1 -1
- package/types/slotted-angular-form.d.ts +11 -2
- package/types/slotted-angular-form.d.ts.map +1 -1
- package/types/slotted-angular-fullscreen.d.ts.map +1 -1
- package/types/slotted-angular-grid.d.ts.map +1 -1
- package/types/slotted-angular-highlight.d.ts +1 -1
- package/types/slotted-angular-highlight.d.ts.map +1 -1
- package/types/slotted-angular-hover-card.d.ts.map +1 -1
- package/types/slotted-angular-icon.d.ts +15 -5
- package/types/slotted-angular-icon.d.ts.map +1 -1
- package/types/slotted-angular-image.d.ts.map +1 -1
- package/types/slotted-angular-import-export-center.d.ts +9 -9
- package/types/slotted-angular-import-export-center.d.ts.map +1 -1
- package/types/slotted-angular-inline-message.d.ts +32 -31
- package/types/slotted-angular-inline-message.d.ts.map +1 -1
- package/types/slotted-angular-inline.d.ts +1 -1
- package/types/slotted-angular-inline.d.ts.map +1 -1
- package/types/slotted-angular-kbd.d.ts +1 -1
- package/types/slotted-angular-kbd.d.ts.map +1 -1
- package/types/slotted-angular-link.d.ts +8 -2
- package/types/slotted-angular-link.d.ts.map +1 -1
- package/types/slotted-angular-list-item.d.ts +5 -1
- package/types/slotted-angular-list-item.d.ts.map +1 -1
- package/types/slotted-angular-list.d.ts +1 -1
- package/types/slotted-angular-list.d.ts.map +1 -1
- package/types/slotted-angular-listbox.d.ts +2 -2
- package/types/slotted-angular-listbox.d.ts.map +1 -1
- package/types/slotted-angular-loading-overlay.d.ts +3 -3
- package/types/slotted-angular-loading-overlay.d.ts.map +1 -1
- package/types/slotted-angular-markdown.d.ts +6 -1
- package/types/slotted-angular-markdown.d.ts.map +1 -1
- package/types/slotted-angular-media-viewer.d.ts +140 -0
- package/types/slotted-angular-media-viewer.d.ts.map +1 -0
- package/types/slotted-angular-menu.d.ts +17 -3
- package/types/slotted-angular-menu.d.ts.map +1 -1
- package/types/slotted-angular-menubar.d.ts +5 -4
- package/types/slotted-angular-menubar.d.ts.map +1 -1
- package/types/slotted-angular-message-scroller.d.ts +1 -1
- package/types/slotted-angular-message-scroller.d.ts.map +1 -1
- package/types/slotted-angular-message.d.ts +1 -1
- package/types/slotted-angular-message.d.ts.map +1 -1
- package/types/slotted-angular-multi-select.d.ts +6 -1
- package/types/slotted-angular-multi-select.d.ts.map +1 -1
- package/types/slotted-angular-navigation-menu.d.ts.map +1 -1
- package/types/slotted-angular-notification-center.d.ts +5 -5
- package/types/slotted-angular-notification-center.d.ts.map +1 -1
- package/types/slotted-angular-number-field.d.ts.map +1 -1
- package/types/slotted-angular-otp-input.d.ts +1 -1
- package/types/slotted-angular-otp-input.d.ts.map +1 -1
- package/types/slotted-angular-page-header.d.ts +15 -6
- package/types/slotted-angular-page-header.d.ts.map +1 -1
- package/types/slotted-angular-page.d.ts +7 -1
- package/types/slotted-angular-page.d.ts.map +1 -1
- package/types/slotted-angular-pagination.d.ts.map +1 -1
- package/types/slotted-angular-popover.d.ts.map +1 -1
- package/types/slotted-angular-progress-indicator.d.ts +10 -3
- package/types/slotted-angular-progress-indicator.d.ts.map +1 -1
- package/types/slotted-angular-prompt-composer.d.ts +35 -3
- package/types/slotted-angular-prompt-composer.d.ts.map +1 -1
- package/types/slotted-angular-prose.d.ts.map +1 -1
- package/types/slotted-angular-radio-group.d.ts +2 -2
- package/types/slotted-angular-radio-group.d.ts.map +1 -1
- package/types/slotted-angular-rating.d.ts +3 -3
- package/types/slotted-angular-rating.d.ts.map +1 -1
- package/types/slotted-angular-result-state.d.ts +1 -1
- package/types/slotted-angular-result-state.d.ts.map +1 -1
- package/types/slotted-angular-saved-views.d.ts.map +1 -1
- package/types/slotted-angular-scroll-area.d.ts.map +1 -1
- package/types/slotted-angular-section.d.ts +14 -4
- package/types/slotted-angular-section.d.ts.map +1 -1
- package/types/slotted-angular-segmented-control.d.ts +2 -2
- package/types/slotted-angular-segmented-control.d.ts.map +1 -1
- package/types/slotted-angular-select.d.ts +13 -2
- package/types/slotted-angular-select.d.ts.map +1 -1
- package/types/slotted-angular-side-navigation.d.ts.map +1 -1
- package/types/slotted-angular-skeleton.d.ts.map +1 -1
- package/types/slotted-angular-slider.d.ts.map +1 -1
- package/types/slotted-angular-sparkline.d.ts +7 -1
- package/types/slotted-angular-sparkline.d.ts.map +1 -1
- package/types/slotted-angular-split-button.d.ts +2 -2
- package/types/slotted-angular-split-button.d.ts.map +1 -1
- package/types/slotted-angular-splitter.d.ts.map +1 -1
- package/types/slotted-angular-stack.d.ts.map +1 -1
- package/types/slotted-angular-stat-card.d.ts +31 -7
- package/types/slotted-angular-stat-card.d.ts.map +1 -1
- package/types/slotted-angular-status-indicator.d.ts +15 -5
- package/types/slotted-angular-status-indicator.d.ts.map +1 -1
- package/types/slotted-angular-stepper.d.ts +2 -1
- package/types/slotted-angular-stepper.d.ts.map +1 -1
- package/types/slotted-angular-switch.d.ts +1 -1
- package/types/slotted-angular-switch.d.ts.map +1 -1
- package/types/slotted-angular-table-of-contents.d.ts.map +1 -1
- package/types/slotted-angular-table.d.ts +21 -4
- package/types/slotted-angular-table.d.ts.map +1 -1
- package/types/slotted-angular-tabs.d.ts +4 -5
- package/types/slotted-angular-tabs.d.ts.map +1 -1
- package/types/slotted-angular-tag.d.ts +5 -5
- package/types/slotted-angular-tag.d.ts.map +1 -1
- package/types/slotted-angular-tags-input.d.ts +34 -2
- package/types/slotted-angular-tags-input.d.ts.map +1 -1
- package/types/slotted-angular-text-field.d.ts.map +1 -1
- package/types/slotted-angular-textarea.d.ts.map +1 -1
- package/types/slotted-angular-theme.d.ts +8 -6
- package/types/slotted-angular-theme.d.ts.map +1 -1
- package/types/slotted-angular-time-field.d.ts.map +1 -1
- package/types/slotted-angular-time-picker.d.ts +1 -1
- package/types/slotted-angular-time-picker.d.ts.map +1 -1
- package/types/slotted-angular-time-range-picker.d.ts +2 -2
- package/types/slotted-angular-time-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-timeline.d.ts +1 -1
- package/types/slotted-angular-timeline.d.ts.map +1 -1
- package/types/slotted-angular-toast.d.ts +9 -7
- package/types/slotted-angular-toast.d.ts.map +1 -1
- package/types/slotted-angular-toggle-group.d.ts +1 -1
- package/types/slotted-angular-toggle-group.d.ts.map +1 -1
- package/types/slotted-angular-toggle.d.ts +1 -1
- package/types/slotted-angular-toggle.d.ts.map +1 -1
- package/types/slotted-angular-toolbar.d.ts +2 -0
- package/types/slotted-angular-toolbar.d.ts.map +1 -1
- package/types/slotted-angular-tooltip.d.ts.map +1 -1
- package/types/slotted-angular-top-navigation.d.ts.map +1 -1
- package/types/slotted-angular-tour.d.ts +2 -2
- package/types/slotted-angular-tour.d.ts.map +1 -1
- package/types/slotted-angular-transfer.d.ts.map +1 -1
- package/types/slotted-angular-tree.d.ts.map +1 -1
- package/types/slotted-angular-typography.d.ts +1 -1
- package/types/slotted-angular-typography.d.ts.map +1 -1
- package/types/slotted-angular-upload.d.ts +4 -2
- package/types/slotted-angular-upload.d.ts.map +1 -1
- package/types/slotted-angular-visually-hidden.d.ts.map +1 -1
- package/types/slotted-angular-wizard.d.ts +1 -1
- package/types/slotted-angular-wizard.d.ts.map +1 -1
package/docs/code-block.md
CHANGED
|
@@ -58,43 +58,43 @@ Excerpt — not a complete module
|
|
|
58
58
|
|
|
59
59
|
| Name | Type | Default | Applies to | Description |
|
|
60
60
|
| --- | --- | --- | --- | --- |
|
|
61
|
-
| `code` | `string` | — | CodeBlock |
|
|
62
|
-
| `language` | `string` | text | CodeBlock | data-language
|
|
63
|
-
| `highlight` | `CodeHighlighter \| null` | — | CodeBlock |
|
|
64
|
-
| `tokens` | `CodeLine[]` | — | CodeBlock |
|
|
65
|
-
| `title` | `string` | — | CodeBlock |
|
|
66
|
-
| `fileName` | `string` | — | CodeBlock |
|
|
67
|
-
| `lineNumbers` | `boolean` | false | CodeBlock |
|
|
68
|
-
| `start` | `number` | 1 | CodeBlock |
|
|
69
|
-
| `marks` | `CodeMarks` | — | CodeBlock | highlight, add, remove, focus, error, warning —
|
|
70
|
-
| `wrap` | `model<boolean \| undefined>` | — | CodeBlock | [(wrap)]:
|
|
71
|
-
| `defaultWrap` | `boolean` | false | CodeBlock |
|
|
72
|
-
| `collapseAfter` | `number` | — | CodeBlock |
|
|
73
|
-
| `revealed` | `model<boolean \| undefined>` | — | CodeBlock | [(revealed)]:
|
|
74
|
-
| `defaultRevealed` | `boolean` | false | CodeBlock |
|
|
75
|
-
| `maxLines` | `number` | — | CodeBlock |
|
|
76
|
-
| `copy` | `boolean` | true | CodeBlock |
|
|
77
|
-
| `copyRemoved` | `boolean` | false | CodeBlock |
|
|
78
|
-
| `loading` | `boolean` | false | CodeBlock | Skeletons
|
|
79
|
-
| `tabSize` | `number` | 2 | CodeBlock |
|
|
80
|
-
| `messages` | `PartialMessages<CodeBlockMessages>` | — | slCodeBlock |
|
|
81
|
-
| `ng-template[slCodeBlockLine]` | `
|
|
82
|
-
| `[slCodeBlockAction]` | `
|
|
83
|
-
| `exportAs` | `slCodeBlock` | — | CodeBlock |
|
|
84
|
-
| `ng-template[slCodeBlockLine]` | `let-tokens, let-number="number", let-mark="mark", let-dim="dim"` | — | CodeBlock |
|
|
85
|
-
| `[slCodeBlockAction]` | `ng-content` | — | CodeBlock |
|
|
86
|
-
| `provideCodeBlockDefaults()` | `highlight \| lineNumbers \| copy` | — | Injector |
|
|
87
|
-
| `slTabs` | `
|
|
88
|
-
| `id, aria-*, data-*, (keydown)` | `
|
|
61
|
+
| `code` | `string` | — | CodeBlock | The source, as text. Never HTML |
|
|
62
|
+
| `language` | `string` | text | CodeBlock | data-language and class="language-<x>" |
|
|
63
|
+
| `highlight` | `CodeHighlighter \| null` | — | CodeBlock | The engine; null refuses the injector’s |
|
|
64
|
+
| `tokens` | `CodeLine[]` | — | CodeBlock | Lines the consumer already tokenized |
|
|
65
|
+
| `title` | `string` | — | CodeBlock | The file name in the header, and the region name |
|
|
66
|
+
| `fileName` | `string` | — | CodeBlock | The name for the glyph, when the title is not the name |
|
|
67
|
+
| `lineNumbers` | `boolean` | false | CodeBlock | The counter in the gutter |
|
|
68
|
+
| `start` | `number` | 1 | CodeBlock | The number of the first line |
|
|
69
|
+
| `marks` | `CodeMarks` | — | CodeBlock | highlight, add, remove, focus, error, warning — ranges "1,4-6" or lists |
|
|
70
|
+
| `wrap` | `model<boolean \| undefined>` | — | CodeBlock | [(wrap)]: present means controlled, for the life of the block |
|
|
71
|
+
| `defaultWrap` | `boolean` | false | CodeBlock | Where an uncontrolled block starts |
|
|
72
|
+
| `collapseAfter` | `number` | — | CodeBlock | Visible lines before the reveal control |
|
|
73
|
+
| `revealed` | `model<boolean \| undefined>` | — | CodeBlock | [(revealed)]: present means controlled |
|
|
74
|
+
| `defaultRevealed` | `boolean` | false | CodeBlock | Where an uncontrolled block starts |
|
|
75
|
+
| `maxLines` | `number` | — | CodeBlock | Lines before the body scrolls |
|
|
76
|
+
| `copy` | `boolean` | true | CodeBlock | The copy control |
|
|
77
|
+
| `copyRemoved` | `boolean` | false | CodeBlock | Keeps the removed lines in the copy |
|
|
78
|
+
| `loading` | `boolean` | false | CodeBlock | Skeletons at the height of six lines, aria-busy, no copy |
|
|
79
|
+
| `tabSize` | `number` | 2 | CodeBlock | Width of a tab, for the continuation indent |
|
|
80
|
+
| `messages` | `PartialMessages<CodeBlockMessages>` | — | slCodeBlock | The family’s words over the current locale, key by key |
|
|
81
|
+
| `ng-template[slCodeBlockLine]` | `projection` | — | CodeBlock | Replaces the token run of each line; receives the tokens, the number, the mark and the dimming |
|
|
82
|
+
| `[slCodeBlockAction]` | `projection` | — | CodeBlock | Consumer controls next to copy and wrap |
|
|
83
|
+
| `exportAs` | `slCodeBlock` | — | CodeBlock | Reaches the instance from the template: #block="slCodeBlock" and block.copyCode() or block.scrollToLine(12) |
|
|
84
|
+
| `ng-template[slCodeBlockLine]` | `let-tokens, let-number="number", let-mark="mark", let-dim="dim"` | — | CodeBlock | The line the application’s way; the gutter stays the family’s |
|
|
85
|
+
| `[slCodeBlockAction]` | `ng-content` | — | CodeBlock | A "Run" or an "Open in editor" next to the controls |
|
|
86
|
+
| `provideCodeBlockDefaults()` | `highlight \| lineNumbers \| copy` | — | Injector | The engine loaded once, for every block below; an input on the block wins |
|
|
87
|
+
| `slTabs` | `composition` | — | around | Several files: one block per panel |
|
|
88
|
+
| `id, aria-*, data-*, (keydown)` | `native attributes` | — | CodeBlock | Stay on the host element; the consumer’s listener runs alongside the family’s |
|
|
89
89
|
|
|
90
90
|
## Events
|
|
91
91
|
|
|
92
92
|
| Name | Payload | When |
|
|
93
93
|
| --- | --- | --- |
|
|
94
|
-
| `(wrapChangeRequest)` | `ChangeRequest<boolean>` |
|
|
95
|
-
| `(revealedChangeRequest)` | `ChangeRequest<boolean>` |
|
|
96
|
-
| `(copyRequest)` | `{ value, copied, reason, source }` |
|
|
97
|
-
| `(highlightError)` | `unknown` |
|
|
94
|
+
| `(wrapChangeRequest)` | `ChangeRequest<boolean>` | Before the lines wrap or unwrap; [(wrap)] is the other half, the value. The request carries the reason — pointer, keyboard or programmatic — and the source event; cancelling it moves nothing. |
|
|
95
|
+
| `(revealedChangeRequest)` | `ChangeRequest<boolean>` | Before the block reveals or folds the hidden lines; [(revealed)] is the value. The reason is pointer, keyboard, escape or programmatic. |
|
|
96
|
+
| `(copyRequest)` | `{ value, copied, reason, source }` | After the control, or copyCode(), writes to the clipboard. copied is false when the platform refused. |
|
|
97
|
+
| `(highlightError)` | `unknown` | When the engine rejects. The plain text stays. |
|
|
98
98
|
|
|
99
99
|
## Axes and defaults
|
|
100
100
|
|
|
@@ -106,11 +106,11 @@ Excerpt — not a complete module
|
|
|
106
106
|
|
|
107
107
|
## Rules
|
|
108
108
|
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
-
|
|
109
|
+
- The block has no role: it is text, read as text. Carbon’s role="textbox" with aria-readonly on a block nobody edits is refused in writing in the contract.
|
|
110
|
+
- The body is a scroll-area: role="region", tabindex="0" and a name — the title, then aria-label, then "Code" — only while the code overflows, which is what SC 2.1.1 and scrollable-region-focusable ask for. The scroll keys are the platform’s; the family writes none.
|
|
111
|
+
- The gutter of numbers and signs is aria-hidden and user-select: none: a screen reader hears the code and not a count, and a selection across the block copies code and nothing else.
|
|
112
|
+
- The copy control announces "Copied" or "Copy failed" through the shared live-announcer and swaps the glyph as well as the color; the wrap control is aria-pressed; the reveal control carries aria-expanded and aria-controls pointing to the body.
|
|
113
|
+
- Engine HTML never enters: the tokens are text in spans, and a <script> in a sample is the six characters it is.
|
|
114
114
|
|
|
115
115
|
## Tokens
|
|
116
116
|
|
|
@@ -118,19 +118,19 @@ Excerpt — not a complete module
|
|
|
118
118
|
|
|
119
119
|
## Examples
|
|
120
120
|
|
|
121
|
-
###
|
|
121
|
+
### Text first, tokens when they arrive
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
The block draws the plain text on the first paint and swaps in the tokens line by line when the engine answers: the height does not change, because each line is a row of the grid. The colors are the theme’s --slotted-code-* scale, and change with the scheme.
|
|
124
124
|
|
|
125
125
|
Excerpt — not a complete module
|
|
126
126
|
|
|
127
127
|
```html
|
|
128
|
-
<div slCodeBlock [code]="source" [highlight]="
|
|
128
|
+
<div slCodeBlock [code]="source" [highlight]="tokenize" language="ts"></div>
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
### Prism
|
|
131
|
+
### Prism and Shiki come in through the mappings
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
The family loads no grammar. fromPrismTokens folds the standard Prism names onto the twelve scopes; fromShikiTokens reads the last TextMate scope of each token. Engine HTML never enters: what arrives is text in spans.
|
|
134
134
|
|
|
135
135
|
Excerpt — not a complete module
|
|
136
136
|
|
|
@@ -142,9 +142,9 @@ const shiki = async (code, lang) =>
|
|
|
142
142
|
);
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
-
###
|
|
145
|
+
### Line numbers
|
|
146
146
|
|
|
147
|
-
lineNumbers
|
|
147
|
+
lineNumbers draws a counter in a gutter wide enough for the last number, measured in ch; start says where it begins. The gutter is aria-hidden and user-select: none, so a selection across the block copies code and nothing else.
|
|
148
148
|
|
|
149
149
|
Excerpt — not a complete module
|
|
150
150
|
|
|
@@ -152,9 +152,9 @@ Excerpt — not a complete module
|
|
|
152
152
|
<div slCodeBlock [code]="source" language="ts" lineNumbers start="98"></div>
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
-
###
|
|
155
|
+
### Marked lines
|
|
156
156
|
|
|
157
|
-
marks
|
|
157
|
+
marks takes ranges "1,4-6" or lists of numbers: highlight tints with the accent and a bar at the edge; error and warning with danger and warning. The tint is the tone’s text color at 7.5%, so no scope falls below 4.5:1.
|
|
158
158
|
|
|
159
159
|
Excerpt — not a complete module
|
|
160
160
|
|
|
@@ -167,9 +167,9 @@ Excerpt — not a complete module
|
|
|
167
167
|
></div>
|
|
168
168
|
```
|
|
169
169
|
|
|
170
|
-
###
|
|
170
|
+
### A diff
|
|
171
171
|
|
|
172
|
-
add
|
|
172
|
+
add and remove tint with success and danger and write + and − in the gutter, by CSS. The copy control leaves the removed lines out, because the code after the change is what gets pasted; copyRemoved keeps them.
|
|
173
173
|
|
|
174
174
|
Excerpt — not a complete module
|
|
175
175
|
|
|
@@ -183,9 +183,9 @@ Excerpt — not a complete module
|
|
|
183
183
|
></div>
|
|
184
184
|
```
|
|
185
185
|
|
|
186
|
-
###
|
|
186
|
+
### Focus on one part of the block
|
|
187
187
|
|
|
188
|
-
focus
|
|
188
|
+
focus dims and blurs the lines outside the range; the block lifts the veil with the pointer over it or focus inside, so whoever wants the rest gets it. Under reduced-motion the blur goes and the dimming stays, because the dimming is the information.
|
|
189
189
|
|
|
190
190
|
Excerpt — not a complete module
|
|
191
191
|
|
|
@@ -193,9 +193,9 @@ Excerpt — not a complete module
|
|
|
193
193
|
<div slCodeBlock [code]="source" language="json" [marks]="{ focus: '3-6' }"></div>
|
|
194
194
|
```
|
|
195
195
|
|
|
196
|
-
###
|
|
196
|
+
### Wrapping long lines
|
|
197
197
|
|
|
198
|
-
|
|
198
|
+
The wrap control appears only while a line overflows — the Docusaurus rule — and is a pressed button. The continuation of a wrapped line indents to the code’s own indent, measured once per line in ch.
|
|
199
199
|
|
|
200
200
|
Excerpt — not a complete module
|
|
201
201
|
|
|
@@ -209,9 +209,9 @@ Excerpt — not a complete module
|
|
|
209
209
|
></div>
|
|
210
210
|
```
|
|
211
211
|
|
|
212
|
-
###
|
|
212
|
+
### A named file
|
|
213
213
|
|
|
214
|
-
title
|
|
214
|
+
title puts up the header with the name in mono, the glyph of the file kind — a text sheet for a .ts, a table sheet for a .csv — and the language at the end. The title is also the name of the scroll region.
|
|
215
215
|
|
|
216
216
|
Excerpt — not a complete module
|
|
217
217
|
|
|
@@ -219,9 +219,9 @@ Excerpt — not a complete module
|
|
|
219
219
|
<div slCodeBlock [code]="rows" language="csv" title="orders-2026-09.csv"></div>
|
|
220
220
|
```
|
|
221
221
|
|
|
222
|
-
###
|
|
222
|
+
### Folded behind "Show more"
|
|
223
223
|
|
|
224
|
-
collapseAfter
|
|
224
|
+
collapseAfter hides what goes past n lines behind a control; the last visible line fades into it. revealed is the state model; Escape inside the revealed block folds it and keeps focus. The hidden lines stay in the DOM and in a selection.
|
|
225
225
|
|
|
226
226
|
Excerpt — not a complete module
|
|
227
227
|
|
|
@@ -236,9 +236,9 @@ Excerpt — not a complete module
|
|
|
236
236
|
></div>
|
|
237
237
|
```
|
|
238
238
|
|
|
239
|
-
###
|
|
239
|
+
### Scrolling past a maximum
|
|
240
240
|
|
|
241
|
-
maxLines
|
|
241
|
+
maxLines limits the body height and the scroll-area scrolls the rest, with the region named and reachable by Tab. It composes with collapseAfter: a block folded at eight and, revealed, scrolling past forty.
|
|
242
242
|
|
|
243
243
|
Excerpt — not a complete module
|
|
244
244
|
|
|
@@ -246,19 +246,19 @@ Excerpt — not a complete module
|
|
|
246
246
|
<div slCodeBlock [code]="log" language="text" lineNumbers maxLines="12"></div>
|
|
247
247
|
```
|
|
248
248
|
|
|
249
|
-
###
|
|
249
|
+
### Copying
|
|
250
250
|
|
|
251
|
-
|
|
251
|
+
The control writes the code the consumer gave, never the DOM text: no numbers, no signs, no wraps. When done, the check stays two seconds in place of the sheets and "Copied" is announced; copy="false" removes the control; copyCode() copies without it.
|
|
252
252
|
|
|
253
253
|
Excerpt — not a complete module
|
|
254
254
|
|
|
255
255
|
```html
|
|
256
|
-
<div slCodeBlock [code]="source" (copyRequest)="$event.copied && toast('
|
|
256
|
+
<div slCodeBlock [code]="source" (copyRequest)="$event.copied && toast('Copied')"></div>
|
|
257
257
|
```
|
|
258
258
|
|
|
259
|
-
###
|
|
259
|
+
### Code on the way, and no code
|
|
260
260
|
|
|
261
|
-
loading
|
|
261
|
+
loading draws the frame at the height of six lines with skeletons inside and aria-busy, without a copy control — not a spinner, which is for a region that already has content. An empty string is an empty line with its number.
|
|
262
262
|
|
|
263
263
|
Excerpt — not a complete module
|
|
264
264
|
|
|
@@ -266,9 +266,9 @@ Excerpt — not a complete module
|
|
|
266
266
|
<div slCodeBlock code="" loading title="deploy.log"></div>
|
|
267
267
|
```
|
|
268
268
|
|
|
269
|
-
###
|
|
269
|
+
### Content the family did not choose
|
|
270
270
|
|
|
271
|
-
|
|
271
|
+
A 400-character line scrolls and, under wrap, breaks inside an indivisible token instead of escaping the box; Arabic code on an RTL page reads from left to right; a <script> in the sample is six characters.
|
|
272
272
|
|
|
273
273
|
Excerpt — not a complete module
|
|
274
274
|
|
|
@@ -276,9 +276,9 @@ Excerpt — not a complete module
|
|
|
276
276
|
<div slCodeBlock [code]="'<script>alert(1)</script>'" language="html"></div>
|
|
277
277
|
```
|
|
278
278
|
|
|
279
|
-
###
|
|
279
|
+
### Composition
|
|
280
280
|
|
|
281
|
-
|
|
281
|
+
Several files are tabs with one block per panel; a consumer action goes in actions next to copy, through slCodeBlockAction; an ng-template slCodeBlockLine draws a line the application’s way; provideCodeBlockDefaults hands the engine once to the injector.
|
|
282
282
|
|
|
283
283
|
Excerpt — not a complete module
|
|
284
284
|
|
|
@@ -291,13 +291,13 @@ providers: [provideCodeBlockDefaults({ highlight: shiki, lineNumbers: true })];
|
|
|
291
291
|
// </div>
|
|
292
292
|
```
|
|
293
293
|
|
|
294
|
-
###
|
|
294
|
+
### Keyboard
|
|
295
295
|
|
|
296
|
-
Tab: copy, wrap, reveal,
|
|
296
|
+
Tab: copy, wrap, reveal, and the body when it overflows. In the body the arrows, Page, Home, End and Space are the platform’s; Enter and Space on the controls; Escape in a revealed block folds it and keeps focus.
|
|
297
297
|
|
|
298
298
|
Excerpt — not a complete module
|
|
299
299
|
|
|
300
300
|
```html
|
|
301
|
-
<!-- "group.ts, region" —
|
|
301
|
+
<!-- "group.ts, region" — the title, because the body is a named region only while the code overflows. -->
|
|
302
302
|
<div slCodeBlock [code]="wide" language="ts" title="group.ts"></div>
|
|
303
303
|
```
|
package/docs/collapsible.json
CHANGED
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"part": "description",
|
|
130
130
|
"element": "span",
|
|
131
131
|
"required": false,
|
|
132
|
-
"purpose": "A second line under the title, from the description input. It is inside the trigger, so it is part of the accessible name — “
|
|
132
|
+
"purpose": "A second line under the title, from the description input. It is inside the trigger, so it is part of the accessible name — “Delivery, 3 of 12 items” is what a reader hears."
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
"part": "actions",
|
|
@@ -312,6 +312,7 @@
|
|
|
312
312
|
"--slotted-collapsible-indicator-color",
|
|
313
313
|
"--slotted-collapsible-padding-inline",
|
|
314
314
|
"--slotted-collapsible-panel-color",
|
|
315
|
+
"--slotted-collapsible-panel-padding-block-start",
|
|
315
316
|
"--slotted-collapsible-radius",
|
|
316
317
|
"--slotted-collapsible-rule-color",
|
|
317
318
|
"--slotted-collapsible-surface",
|
|
@@ -361,7 +362,7 @@
|
|
|
361
362
|
"title": "Playground",
|
|
362
363
|
"note": "One disclosure with every input on it, driven by the controls below the canvas. Tab lands on the trigger; Enter and Space are the platform’s.",
|
|
363
364
|
"language": "html",
|
|
364
|
-
"source": "<div slCollapsible [(open)]=\"open\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
365
|
+
"source": "<div slCollapsible [(open)]=\"open\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Delivery address</button>\n </h3>\n <div slCollapsiblePanel>402 Maple Street — Seattle.</div>\n</div>\n",
|
|
365
366
|
"verdict": "excerpt"
|
|
366
367
|
},
|
|
367
368
|
{
|
|
@@ -369,7 +370,7 @@
|
|
|
369
370
|
"title": "The three ways it is drawn",
|
|
370
371
|
"note": "plain paints no chrome, ruled puts a hairline above the header so a stack reads as one list, and framed is a card. All three keep the same geometry.",
|
|
371
372
|
"language": "html",
|
|
372
|
-
"source": "<div slCollapsible variant=\"framed\" [open]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
373
|
+
"source": "<div slCollapsible variant=\"framed\" [open]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Payment methods</button>\n </h3>\n <div slCollapsiblePanel>Credit card, ACH transfer and Zelle.</div>\n</div>\n",
|
|
373
374
|
"verdict": "excerpt"
|
|
374
375
|
},
|
|
375
376
|
{
|
|
@@ -377,7 +378,7 @@
|
|
|
377
378
|
"title": "The step the header sits at",
|
|
378
379
|
"note": "The title comes from the type scale, because a header is prose; the row’s height, padding, gap and mark come from the control scales, so a dense page is tighter rather than smaller.",
|
|
379
380
|
"language": "html",
|
|
380
|
-
"source": "<div slCollapsible size=\"lg\" [open]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger description=\"3
|
|
381
|
+
"source": "<div slCollapsible size=\"lg\" [open]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger description=\"3 of 12 items\">Summary</button>\n </h3>\n <div slCollapsiblePanel>Delivery scheduled for September 12.</div>\n</div>\n",
|
|
381
382
|
"verdict": "excerpt"
|
|
382
383
|
},
|
|
383
384
|
{
|
|
@@ -385,7 +386,7 @@
|
|
|
385
386
|
"title": "The mark, and which side it stands on",
|
|
386
387
|
"note": "The chevron turns rather than pointing along the inline axis, so a right-to-left document needs no mirrored artwork; plus-minus is one pair drawn on one grid, and none draws nothing.",
|
|
387
388
|
"language": "html",
|
|
388
|
-
"source": "<div slCollapsible indicator=\"plus-minus\" togglePlacement=\"start\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
389
|
+
"source": "<div slCollapsible indicator=\"plus-minus\" togglePlacement=\"start\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Invoice</button>\n </h3>\n <div slCollapsiblePanel>Issued on September 3.</div>\n</div>\n",
|
|
389
390
|
"verdict": "excerpt"
|
|
390
391
|
},
|
|
391
392
|
{
|
|
@@ -393,7 +394,7 @@
|
|
|
393
394
|
"title": "Where it sits in the outline",
|
|
394
395
|
"note": "The element is the consumer’s own: a real heading is left alone, and anything else is given role=\"heading\" and the level — the alternative the pattern names.",
|
|
395
396
|
"language": "html",
|
|
396
|
-
"source": "<div slCollapsible level=\"3\">\n <div slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
397
|
+
"source": "<div slCollapsible level=\"3\">\n <div slCollapsibleHeader>\n <button slCollapsibleTrigger>Return conditions</button>\n </div>\n <div slCollapsiblePanel>Thirty calendar days.</div>\n</div>\n",
|
|
397
398
|
"verdict": "excerpt"
|
|
398
399
|
},
|
|
399
400
|
{
|
|
@@ -409,7 +410,7 @@
|
|
|
409
410
|
"title": "A control beside the heading",
|
|
410
411
|
"note": "It is a sibling of the heading rather than a child, because the pattern requires the button to be the only element inside it — and a control inside a button is invalid besides.",
|
|
411
412
|
"language": "html",
|
|
412
|
-
"source": "<div slCollapsible variant=\"framed\" [open]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Regras de frete</button>\n </h3>\n <div slCollapsibleActions>\n <div slToolbar aria-label=\"
|
|
413
|
+
"source": "<div slCollapsible variant=\"framed\" [open]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Regras de frete</button>\n </h3>\n <div slCollapsibleActions>\n <div slToolbar aria-label=\"Rule actions\" size=\"sm\">\n <button slButton size=\"sm\" variant=\"ghost\">Edit</button>\n </div>\n </div>\n <div slCollapsiblePanel>Free shipping over $250.00.</div>\n</div>\n",
|
|
413
414
|
"verdict": "excerpt"
|
|
414
415
|
},
|
|
415
416
|
{
|
|
@@ -417,7 +418,7 @@
|
|
|
417
418
|
"title": "When the content exists",
|
|
418
419
|
"note": "eager builds it up front so the panel can transition closed, lazy waits for the first open, active drops it each time, and until-found lets the browser’s page search open the panel.",
|
|
419
420
|
"language": "html",
|
|
420
|
-
"source": "<div slCollapsible mount=\"lazy\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
421
|
+
"source": "<div slCollapsible mount=\"lazy\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Delivery history</button>\n </h3>\n <div slCollapsiblePanel>\n <ng-template slCollapsibleContent>{{ history() }}</ng-template>\n </div>\n</div>\n",
|
|
421
422
|
"verdict": "excerpt"
|
|
422
423
|
},
|
|
423
424
|
{
|
|
@@ -425,7 +426,7 @@
|
|
|
425
426
|
"title": "Every state the family paints",
|
|
426
427
|
"note": "Hover lays a wash under the row and press goes one step further; disabled answers neither, because the browser has already taken the control out of action; loading holds the box open and says so.",
|
|
427
428
|
"language": "html",
|
|
428
|
-
"source": "<div slCollapsible [loading]=\"true\" [open]=\"true\" mount=\"lazy\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
429
|
+
"source": "<div slCollapsible [loading]=\"true\" [open]=\"true\" mount=\"lazy\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Delivery history</button>\n </h3>\n <div slCollapsiblePanel>\n <span slSkeleton shape=\"text\"></span>\n </div>\n</div>\n",
|
|
429
430
|
"verdict": "excerpt"
|
|
430
431
|
},
|
|
431
432
|
{
|
|
@@ -433,7 +434,7 @@
|
|
|
433
434
|
"title": "Content the family did not choose",
|
|
434
435
|
"note": "A long title grows the row instead of pushing the mark off the line, truncate clips it to one line with the whole string still in the DOM, and a title in another script reads its own way.",
|
|
435
436
|
"language": "html",
|
|
436
|
-
"source": "<div slCollapsible [truncate]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
437
|
+
"source": "<div slCollapsible [truncate]=\"true\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>Return conditions for international orders</button>\n </h3>\n <div slCollapsiblePanel>Thirty calendar days.</div>\n</div>\n",
|
|
437
438
|
"verdict": "excerpt"
|
|
438
439
|
},
|
|
439
440
|
{
|
|
@@ -449,7 +450,7 @@
|
|
|
449
450
|
"title": "The pattern’s table, and which device asked",
|
|
450
451
|
"note": "Enter and Space toggle because the trigger is a button; Tab reaches it like any other control, because the pattern keeps every disclosure in the page tab sequence.",
|
|
451
452
|
"language": "html",
|
|
452
|
-
"source": "<div slCollapsible (openChangeRequest)=\"reason.set($event.reason)\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>
|
|
453
|
+
"source": "<div slCollapsible (openChangeRequest)=\"reason.set($event.reason)\">\n <h3 slCollapsibleHeader>\n <button slCollapsibleTrigger>With the pointer, then with the keyboard</button>\n </h3>\n <div slCollapsiblePanel>The reason changes with the device.</div>\n</div>\n",
|
|
453
454
|
"verdict": "excerpt"
|
|
454
455
|
}
|
|
455
456
|
]
|
package/docs/collapsible.md
CHANGED
|
@@ -18,9 +18,9 @@ Excerpt — not a complete module
|
|
|
18
18
|
```html
|
|
19
19
|
<div slCollapsible [(open)]="open">
|
|
20
20
|
<h3 slCollapsibleHeader>
|
|
21
|
-
<button slCollapsibleTrigger>
|
|
21
|
+
<button slCollapsibleTrigger>Delivery address</button>
|
|
22
22
|
</h3>
|
|
23
|
-
<div slCollapsiblePanel>
|
|
23
|
+
<div slCollapsiblePanel>402 Maple Street — Seattle.</div>
|
|
24
24
|
</div>
|
|
25
25
|
```
|
|
26
26
|
|
|
@@ -90,7 +90,7 @@ Excerpt — not a complete module
|
|
|
90
90
|
|
|
91
91
|
## Tokens
|
|
92
92
|
|
|
93
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-collapsible-active-background`, `--slotted-collapsible-background`, `--slotted-collapsible-color`, `--slotted-collapsible-description-color`, `--slotted-collapsible-hover-background`, `--slotted-collapsible-hover-color`, `--slotted-collapsible-indicator-color`, `--slotted-collapsible-padding-inline`, `--slotted-collapsible-panel-color`, `--slotted-collapsible-radius`, `--slotted-collapsible-rule-color`, `--slotted-collapsible-surface`, `--slotted-control-font-family`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-letter-spacing`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
93
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-collapsible-active-background`, `--slotted-collapsible-background`, `--slotted-collapsible-color`, `--slotted-collapsible-description-color`, `--slotted-collapsible-hover-background`, `--slotted-collapsible-hover-color`, `--slotted-collapsible-indicator-color`, `--slotted-collapsible-padding-inline`, `--slotted-collapsible-panel-color`, `--slotted-collapsible-panel-padding-block-start`, `--slotted-collapsible-radius`, `--slotted-collapsible-rule-color`, `--slotted-collapsible-surface`, `--slotted-control-font-family`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-letter-spacing`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
94
94
|
|
|
95
95
|
## Examples
|
|
96
96
|
|
|
@@ -103,9 +103,9 @@ Excerpt — not a complete module
|
|
|
103
103
|
```html
|
|
104
104
|
<div slCollapsible variant="framed" [open]="true">
|
|
105
105
|
<h3 slCollapsibleHeader>
|
|
106
|
-
<button slCollapsibleTrigger>
|
|
106
|
+
<button slCollapsibleTrigger>Payment methods</button>
|
|
107
107
|
</h3>
|
|
108
|
-
<div slCollapsiblePanel>
|
|
108
|
+
<div slCollapsiblePanel>Credit card, ACH transfer and Zelle.</div>
|
|
109
109
|
</div>
|
|
110
110
|
```
|
|
111
111
|
|
|
@@ -118,9 +118,9 @@ Excerpt — not a complete module
|
|
|
118
118
|
```html
|
|
119
119
|
<div slCollapsible size="lg" [open]="true">
|
|
120
120
|
<h3 slCollapsibleHeader>
|
|
121
|
-
<button slCollapsibleTrigger description="3
|
|
121
|
+
<button slCollapsibleTrigger description="3 of 12 items">Summary</button>
|
|
122
122
|
</h3>
|
|
123
|
-
<div slCollapsiblePanel>
|
|
123
|
+
<div slCollapsiblePanel>Delivery scheduled for September 12.</div>
|
|
124
124
|
</div>
|
|
125
125
|
```
|
|
126
126
|
|
|
@@ -133,9 +133,9 @@ Excerpt — not a complete module
|
|
|
133
133
|
```html
|
|
134
134
|
<div slCollapsible indicator="plus-minus" togglePlacement="start">
|
|
135
135
|
<h3 slCollapsibleHeader>
|
|
136
|
-
<button slCollapsibleTrigger>
|
|
136
|
+
<button slCollapsibleTrigger>Invoice</button>
|
|
137
137
|
</h3>
|
|
138
|
-
<div slCollapsiblePanel>
|
|
138
|
+
<div slCollapsiblePanel>Issued on September 3.</div>
|
|
139
139
|
</div>
|
|
140
140
|
```
|
|
141
141
|
|
|
@@ -148,9 +148,9 @@ Excerpt — not a complete module
|
|
|
148
148
|
```html
|
|
149
149
|
<div slCollapsible level="3">
|
|
150
150
|
<div slCollapsibleHeader>
|
|
151
|
-
<button slCollapsibleTrigger>
|
|
151
|
+
<button slCollapsibleTrigger>Return conditions</button>
|
|
152
152
|
</div>
|
|
153
|
-
<div slCollapsiblePanel>
|
|
153
|
+
<div slCollapsiblePanel>Thirty calendar days.</div>
|
|
154
154
|
</div>
|
|
155
155
|
```
|
|
156
156
|
|
|
@@ -176,11 +176,11 @@ Excerpt — not a complete module
|
|
|
176
176
|
<button slCollapsibleTrigger>Regras de frete</button>
|
|
177
177
|
</h3>
|
|
178
178
|
<div slCollapsibleActions>
|
|
179
|
-
<div slToolbar aria-label="
|
|
180
|
-
<button slButton size="sm" variant="ghost">
|
|
179
|
+
<div slToolbar aria-label="Rule actions" size="sm">
|
|
180
|
+
<button slButton size="sm" variant="ghost">Edit</button>
|
|
181
181
|
</div>
|
|
182
182
|
</div>
|
|
183
|
-
<div slCollapsiblePanel>
|
|
183
|
+
<div slCollapsiblePanel>Free shipping over $250.00.</div>
|
|
184
184
|
</div>
|
|
185
185
|
```
|
|
186
186
|
|
|
@@ -193,7 +193,7 @@ Excerpt — not a complete module
|
|
|
193
193
|
```html
|
|
194
194
|
<div slCollapsible mount="lazy">
|
|
195
195
|
<h3 slCollapsibleHeader>
|
|
196
|
-
<button slCollapsibleTrigger>
|
|
196
|
+
<button slCollapsibleTrigger>Delivery history</button>
|
|
197
197
|
</h3>
|
|
198
198
|
<div slCollapsiblePanel>
|
|
199
199
|
<ng-template slCollapsibleContent>{{ history() }}</ng-template>
|
|
@@ -210,7 +210,7 @@ Excerpt — not a complete module
|
|
|
210
210
|
```html
|
|
211
211
|
<div slCollapsible [loading]="true" [open]="true" mount="lazy">
|
|
212
212
|
<h3 slCollapsibleHeader>
|
|
213
|
-
<button slCollapsibleTrigger>
|
|
213
|
+
<button slCollapsibleTrigger>Delivery history</button>
|
|
214
214
|
</h3>
|
|
215
215
|
<div slCollapsiblePanel>
|
|
216
216
|
<span slSkeleton shape="text"></span>
|
|
@@ -227,9 +227,9 @@ Excerpt — not a complete module
|
|
|
227
227
|
```html
|
|
228
228
|
<div slCollapsible [truncate]="true">
|
|
229
229
|
<h3 slCollapsibleHeader>
|
|
230
|
-
<button slCollapsibleTrigger>
|
|
230
|
+
<button slCollapsibleTrigger>Return conditions for international orders</button>
|
|
231
231
|
</h3>
|
|
232
|
-
<div slCollapsiblePanel>
|
|
232
|
+
<div slCollapsiblePanel>Thirty calendar days.</div>
|
|
233
233
|
</div>
|
|
234
234
|
```
|
|
235
235
|
|
|
@@ -254,8 +254,8 @@ Excerpt — not a complete module
|
|
|
254
254
|
```html
|
|
255
255
|
<div slCollapsible (openChangeRequest)="reason.set($event.reason)">
|
|
256
256
|
<h3 slCollapsibleHeader>
|
|
257
|
-
<button slCollapsibleTrigger>
|
|
257
|
+
<button slCollapsibleTrigger>With the pointer, then with the keyboard</button>
|
|
258
258
|
</h3>
|
|
259
|
-
<div slCollapsiblePanel>
|
|
259
|
+
<div slCollapsiblePanel>The reason changes with the device.</div>
|
|
260
260
|
</div>
|
|
261
261
|
```
|