@slotted/angular 0.1.0-beta.2 → 0.1.0-beta.21
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 +2 -0
- package/docs/action-bar.json +5 -4
- package/docs/action-bar.md +4 -4
- package/docs/action-sheet.json +391 -64
- package/docs/action-sheet.md +259 -0
- package/docs/alert.json +22 -5
- package/docs/alert.md +16 -5
- package/docs/app-shell.examples.md +1 -1
- package/docs/app-shell.json +24 -7
- package/docs/app-shell.md +5 -3
- package/docs/avatar.json +22 -1
- package/docs/avatar.md +5 -3
- package/docs/badge.json +7 -1
- package/docs/badge.md +3 -3
- package/docs/button-group.json +2 -0
- package/docs/button-group.md +1 -1
- package/docs/button.examples.md +15 -0
- package/docs/button.json +165 -11
- package/docs/button.md +34 -6
- package/docs/calendar.json +27 -2
- package/docs/calendar.md +6 -3
- package/docs/cascader.json +1 -0
- package/docs/cascader.md +1 -1
- package/docs/chart.examples.md +16 -2
- package/docs/chart.json +13 -4
- package/docs/chart.md +4 -3
- package/docs/code-block.json +92 -92
- package/docs/code-block.md +69 -69
- package/docs/combobox.json +2 -0
- package/docs/combobox.md +1 -1
- package/docs/command-palette.json +1 -0
- package/docs/command-palette.md +1 -1
- package/docs/currency-field.json +40 -1
- package/docs/currency-field.md +5 -1
- package/docs/dashboard-grid.json +31 -9
- package/docs/dashboard-grid.md +15 -6
- package/docs/data-grid.examples.md +2 -2
- package/docs/data-grid.json +34 -8
- package/docs/data-grid.md +2 -1
- package/docs/data-grid.props.md +6 -4
- package/docs/data-list.json +2 -1
- package/docs/data-list.md +1 -1
- package/docs/date-field.json +9 -1
- package/docs/date-field.md +3 -2
- package/docs/date-picker.examples.md +36 -0
- package/docs/date-picker.json +21 -5
- package/docs/date-picker.md +6 -5
- package/docs/datetime-field.json +1 -0
- package/docs/datetime-field.md +1 -1
- package/docs/description-list.json +9 -1
- package/docs/description-list.md +2 -1
- package/docs/detail-panel.json +4 -2
- package/docs/detail-panel.md +8 -3
- package/docs/dialog.examples.md +158 -136
- package/docs/dialog.json +36 -11
- package/docs/dialog.md +4 -2
- package/docs/dialog.props.md +1 -1
- package/docs/drawer.examples.md +1 -1
- package/docs/drawer.json +29 -10
- package/docs/drawer.md +9 -7
- package/docs/entity-picker.json +20 -4
- package/docs/entity-picker.md +8 -6
- package/docs/event-calendar.md +2 -2
- package/docs/filter-bar.json +118 -118
- package/docs/filter-bar.md +79 -79
- package/docs/form.json +2 -1
- package/docs/form.md +1 -1
- package/docs/guidelines/README.md +2 -2
- package/docs/guidelines/async-feedback.md +25 -4
- package/docs/guidelines/composition.md +33 -7
- package/docs/guidelines/errors-and-conflicts.md +7 -6
- package/docs/guidelines/forms.md +10 -0
- package/docs/guidelines/index.md +16 -4
- package/docs/guidelines/layout-alignment.md +19 -9
- package/docs/guidelines/list-pages.md +44 -3
- package/docs/guidelines/overviews.md +31 -1
- package/docs/guidelines/own-elements.md +1 -1
- package/docs/guidelines/reading-permissions.md +2 -2
- package/docs/guidelines/reports.md +1 -1
- package/docs/icon.json +3 -1
- package/docs/icon.md +3 -3
- package/docs/index.md +2 -2
- package/docs/inline-message.json +20 -7
- package/docs/inline-message.md +11 -9
- package/docs/kbd.json +3 -0
- package/docs/kbd.md +1 -1
- package/docs/link.json +16 -0
- package/docs/link.md +3 -1
- package/docs/list-item.json +19 -3
- package/docs/list-item.md +19 -16
- package/docs/list.json +19 -1
- package/docs/list.md +3 -1
- package/docs/markdown.json +86 -79
- package/docs/markdown.md +66 -65
- package/docs/menu.json +13 -0
- package/docs/menu.md +3 -1
- package/docs/message-scroller.json +1 -1
- package/docs/message.json +7 -1
- package/docs/message.md +3 -3
- package/docs/multi-select.json +1 -0
- package/docs/multi-select.md +1 -1
- package/docs/notification-center.json +4 -0
- package/docs/notification-center.md +2 -2
- package/docs/number-field.json +1 -0
- package/docs/number-field.md +1 -1
- package/docs/otp-input.json +1 -0
- package/docs/otp-input.md +1 -1
- package/docs/page-header.json +22 -5
- package/docs/page-header.md +6 -4
- package/docs/page.json +4 -2
- package/docs/page.md +3 -2
- package/docs/popover.json +2 -1
- package/docs/popover.md +1 -1
- package/docs/progress-indicator.json +3 -1
- package/docs/progress-indicator.md +3 -3
- package/docs/prompt-composer.json +50 -3
- package/docs/prompt-composer.md +8 -2
- package/docs/rating.json +5 -3
- package/docs/rating.md +6 -6
- package/docs/scroll-area.json +266 -64
- package/docs/scroll-area.md +188 -0
- package/docs/section.json +38 -16
- package/docs/section.md +23 -20
- package/docs/segmented-control.json +36 -12
- package/docs/segmented-control.md +17 -1
- package/docs/select.json +2 -0
- package/docs/select.md +1 -1
- package/docs/side-navigation.json +1 -0
- package/docs/side-navigation.md +1 -1
- package/docs/skills/build-own-element/SKILL.md +6 -6
- package/docs/skills/compose-screen/SKILL.md +53 -17
- package/docs/skills/review-screen/SKILL.md +28 -17
- package/docs/skills/theme-app/SKILL.md +53 -15
- package/docs/skills/waiting-states/SKILL.md +14 -10
- package/docs/sparkline.json +5 -2
- package/docs/sparkline.md +4 -4
- package/docs/split-button.json +4 -1
- package/docs/split-button.md +3 -3
- package/docs/splitter.json +279 -64
- package/docs/splitter.md +215 -0
- package/docs/stat-card.json +11 -5
- package/docs/stat-card.md +6 -6
- package/docs/status-indicator.json +16 -5
- package/docs/status-indicator.md +3 -1
- package/docs/table-of-contents.json +2 -1
- package/docs/table-of-contents.md +2 -2
- package/docs/table.examples.md +3 -3
- package/docs/table.json +85 -3
- package/docs/table.md +12 -1
- package/docs/tabs.json +16 -3
- package/docs/tabs.md +3 -2
- package/docs/tag.json +24 -13
- package/docs/tag.md +11 -11
- package/docs/tags-input.json +29 -2
- package/docs/tags-input.md +4 -1
- package/docs/text-field.json +2 -1
- package/docs/text-field.md +2 -2
- package/docs/textarea.json +1 -0
- package/docs/textarea.md +1 -1
- package/docs/time-field.json +1 -0
- package/docs/time-field.md +1 -1
- package/docs/timeline.json +138 -132
- package/docs/timeline.md +125 -125
- package/docs/toast.json +8 -1
- package/docs/toast.md +3 -3
- package/docs/toggle-group.json +14 -3
- package/docs/toggle-group.md +3 -3
- package/docs/toggle.json +12 -3
- package/docs/toggle.md +3 -3
- package/docs/tokens.md +54 -11
- package/docs/toolbar.json +1 -1
- package/docs/toolbar.md +1 -1
- package/docs/tooltip.json +1 -0
- package/docs/tooltip.md +1 -1
- package/docs/tour.json +1 -1
- package/docs/typography.json +4 -2
- package/docs/typography.md +5 -5
- 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 +29 -16
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-app-shell.mjs +124 -63
- 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 +9 -6
- package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +14 -7
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +14 -10
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs +26 -18
- package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/slotted-angular-button-group.mjs +7 -4
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +197 -30
- 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 +18 -16
- 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 +180 -66
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +62 -20
- 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 +13 -8
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-code-block.mjs +29 -15
- package/fesm2022/slotted-angular-code-block.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +20 -15
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-color-picker.mjs +77 -22
- package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +68 -31
- 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 +149 -32
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +295 -68
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +461 -129
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-list.mjs +83 -50
- package/fesm2022/slotted-angular-data-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-field.mjs +74 -25
- package/fesm2022/slotted-angular-date-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs +112 -40
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs +45 -22
- package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs +48 -16
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs +41 -29
- package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +115 -48
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +44 -21
- 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 +79 -37
- 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 +235 -104
- 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 +259 -102
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-field-group.mjs +14 -7
- package/fesm2022/slotted-angular-field-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-field.mjs +35 -15
- package/fesm2022/slotted-angular-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-filter-bar.mjs +118 -51
- package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-form.mjs +18 -10
- 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 +4 -2
- package/fesm2022/slotted-angular-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-highlight.mjs +5 -3
- 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 +188 -87
- 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 +175 -99
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +94 -19
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline.mjs +4 -2
- 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 +37 -22
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +39 -21
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +59 -22
- 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-menu.mjs +51 -29
- 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 +34 -15
- 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 +108 -65
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-number-field.mjs +23 -11
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs +13 -8
- 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 +32 -19
- package/fesm2022/slotted-angular-popover.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +236 -52
- 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 +15 -9
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +138 -82
- 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 +37 -11
- 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 +31 -11
- 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 +4 -2
- package/fesm2022/slotted-angular-stack.mjs.map +1 -1
- package/fesm2022/slotted-angular-stat-card.mjs +69 -31
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +50 -19
- 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 +241 -71
- 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 +19 -12
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +253 -28
- 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 +32 -20
- package/fesm2022/slotted-angular-time-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-range-picker.mjs +113 -46
- 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 +48 -36
- package/fesm2022/slotted-angular-toast.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle-group.mjs +25 -8
- 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 +47 -22
- 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 +8 -4
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +125 -57
- 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 +163 -65
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +3 -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 +13 -4
- package/types/slotted-angular-alert.d.ts.map +1 -1
- package/types/slotted-angular-app-shell.d.ts +12 -4
- 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.map +1 -1
- package/types/slotted-angular-avatar.d.ts +11 -3
- package/types/slotted-angular-avatar.d.ts.map +1 -1
- package/types/slotted-angular-badge.d.ts +1 -1
- package/types/slotted-angular-badge.d.ts.map +1 -1
- package/types/slotted-angular-breadcrumb.d.ts.map +1 -1
- package/types/slotted-angular-button-group.d.ts +1 -1
- package/types/slotted-angular-button-group.d.ts.map +1 -1
- package/types/slotted-angular-button.d.ts +67 -14
- 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.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 +21 -9
- 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.map +1 -1
- package/types/slotted-angular-code-block.d.ts +2 -1
- package/types/slotted-angular-code-block.d.ts.map +1 -1
- package/types/slotted-angular-collapsible.d.ts +2 -1
- package/types/slotted-angular-collapsible.d.ts.map +1 -1
- package/types/slotted-angular-color-picker.d.ts.map +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 +63 -15
- package/types/slotted-angular-currency-field.d.ts.map +1 -1
- package/types/slotted-angular-dashboard-grid.d.ts +63 -7
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-grid.d.ts +62 -4
- package/types/slotted-angular-data-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-list.d.ts.map +1 -1
- package/types/slotted-angular-date-field.d.ts +11 -1
- package/types/slotted-angular-date-field.d.ts.map +1 -1
- package/types/slotted-angular-date-picker.d.ts +38 -12
- package/types/slotted-angular-date-picker.d.ts.map +1 -1
- package/types/slotted-angular-date-range-picker.d.ts +0 -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 +0 -1
- package/types/slotted-angular-datetime-picker.d.ts.map +1 -1
- package/types/slotted-angular-datetime-range-picker.d.ts +0 -1
- package/types/slotted-angular-datetime-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-description-list.d.ts +11 -3
- 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.map +1 -1
- 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.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.map +1 -1
- package/types/slotted-angular-hover-card.d.ts.map +1 -1
- package/types/slotted-angular-icon.d.ts +13 -3
- 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.map +1 -1
- package/types/slotted-angular-inline-message.d.ts +29 -28
- package/types/slotted-angular-inline-message.d.ts.map +1 -1
- package/types/slotted-angular-inline.d.ts.map +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 +42 -27
- package/types/slotted-angular-list.d.ts.map +1 -1
- package/types/slotted-angular-listbox.d.ts.map +1 -1
- 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-menu.d.ts +11 -2
- 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.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 +1 -1
- 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.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 +8 -1
- 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.map +1 -1
- package/types/slotted-angular-rating.d.ts +1 -1
- package/types/slotted-angular-rating.d.ts.map +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 +15 -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 +9 -4
- package/types/slotted-angular-stat-card.d.ts.map +1 -1
- package/types/slotted-angular-status-indicator.d.ts +13 -3
- 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.map +1 -1
- package/types/slotted-angular-table-of-contents.d.ts.map +1 -1
- package/types/slotted-angular-table.d.ts +63 -6
- package/types/slotted-angular-table.d.ts.map +1 -1
- package/types/slotted-angular-tabs.d.ts +3 -4
- package/types/slotted-angular-tabs.d.ts.map +1 -1
- package/types/slotted-angular-tag.d.ts +2 -2
- package/types/slotted-angular-tag.d.ts.map +1 -1
- package/types/slotted-angular-tags-input.d.ts +33 -1
- 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 +7 -5
- 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 +0 -1
- package/types/slotted-angular-time-picker.d.ts.map +1 -1
- package/types/slotted-angular-time-range-picker.d.ts +0 -1
- 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 +5 -3
- package/types/slotted-angular-toast.d.ts.map +1 -1
- package/types/slotted-angular-toggle-group.d.ts +8 -2
- 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.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.map +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createFocusOrigin } from '@slotted/core/focus';
|
|
1
2
|
import { NO_SCROLL_EDGES, scrollEdgeAttributes, createScrollEdges } from '@slotted/core/overflow';
|
|
2
3
|
import * as i0 from '@angular/core';
|
|
3
4
|
import { InjectionToken, inject, input, booleanAttribute, output, ElementRef, DestroyRef, viewChild, signal, computed, afterNextRender, ViewEncapsulation, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
|
|
@@ -168,6 +169,9 @@ class SlScrollArea {
|
|
|
168
169
|
this.edges = handle;
|
|
169
170
|
this.measured.set(handle.state());
|
|
170
171
|
this.sideways.set(handle.sideways());
|
|
172
|
+
/** A click on the content focuses the scrollport; its ring is for the keyboard (`createFocusOrigin`). */
|
|
173
|
+
const origin = createFocusOrigin(viewport);
|
|
174
|
+
this.destroyRef.onDestroy(origin.destroy);
|
|
171
175
|
});
|
|
172
176
|
this.destroyRef.onDestroy(() => {
|
|
173
177
|
this.edges?.destroy();
|
|
@@ -216,10 +220,11 @@ class SlScrollArea {
|
|
|
216
220
|
this.scrollChange.emit({ position: this.edges.position(), source: event });
|
|
217
221
|
}
|
|
218
222
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlScrollArea, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
219
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", type: SlScrollArea, isStandalone: true, selector: "[slScrollArea]", inputs: { axis: { classPropertyName: "axis", publicName: "axis", isSignal: true, isRequired: false, transformFunction: null }, scrollbars: { classPropertyName: "scrollbars", publicName: "scrollbars", isSignal: true, isRequired: false, transformFunction: null }, gutter: { classPropertyName: "gutter", publicName: "gutter", isSignal: true, isRequired: false, transformFunction: null }, fade: { classPropertyName: "fade", publicName: "fade", isSignal: true, isRequired: false, transformFunction: null }, overscroll: { classPropertyName: "overscroll", publicName: "overscroll", isSignal: true, isRequired: false, transformFunction: null }, maxBlockSize: { classPropertyName: "maxBlockSize", publicName: "maxBlockSize", isSignal: true, isRequired: false, transformFunction: null }, maxInlineSize: { classPropertyName: "maxInlineSize", publicName: "maxInlineSize", isSignal: true, isRequired: false, transformFunction: null }, tabbable: { classPropertyName: "tabbable", publicName: "tabbable", isSignal: true, isRequired: false, transformFunction: null }, labelledBy: { classPropertyName: "labelledBy", publicName: "labelledBy", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { scrollChange: "scrollChange", overflowChange: "overflowChange" }, host: { attributes: { "data-ui": "scroll-area", "data-part": "root" }, properties: { "attr.data-axis": "resolvedAxis()", "attr.data-scrollbars": "resolvedScrollbars()", "attr.data-gutter": "resolvedGutter()", "attr.data-fade": "resolvedFade()", "attr.data-overscroll": "resolvedOverscroll()", "attr.data-overflowing": "edgeAttributes()['data-overflowing'] ?? null", "attr.data-at-block-start": "edgeAttributes()['data-at-block-start'] ?? null", "attr.data-at-block-end": "edgeAttributes()['data-at-block-end'] ?? null", "attr.data-at-inline-start": "edgeAttributes()['data-at-inline-start'] ?? null", "attr.data-at-inline-end": "edgeAttributes()['data-at-inline-end'] ?? null", "attr.data-sideways": "sideways() ? '' : null", "style.max-block-size": "maxBlockSize() ?? null", "style.max-inline-size": "maxInlineSize() ?? null" } }, viewQueries: [{ propertyName: "viewportRef", first: true, predicate: ["viewport"], descendants: true, isSignal: true }], exportAs: ["slScrollArea"], ngImport: i0, template: `
|
|
223
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", type: SlScrollArea, isStandalone: true, selector: "[slScrollArea]", inputs: { axis: { classPropertyName: "axis", publicName: "axis", isSignal: true, isRequired: false, transformFunction: null }, scrollbars: { classPropertyName: "scrollbars", publicName: "scrollbars", isSignal: true, isRequired: false, transformFunction: null }, gutter: { classPropertyName: "gutter", publicName: "gutter", isSignal: true, isRequired: false, transformFunction: null }, fade: { classPropertyName: "fade", publicName: "fade", isSignal: true, isRequired: false, transformFunction: null }, overscroll: { classPropertyName: "overscroll", publicName: "overscroll", isSignal: true, isRequired: false, transformFunction: null }, maxBlockSize: { classPropertyName: "maxBlockSize", publicName: "maxBlockSize", isSignal: true, isRequired: false, transformFunction: null }, maxInlineSize: { classPropertyName: "maxInlineSize", publicName: "maxInlineSize", isSignal: true, isRequired: false, transformFunction: null }, tabbable: { classPropertyName: "tabbable", publicName: "tabbable", isSignal: true, isRequired: false, transformFunction: null }, labelledBy: { classPropertyName: "labelledBy", publicName: "labelledBy", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { scrollChange: "scrollChange", overflowChange: "overflowChange" }, host: { attributes: { "data-ui": "scroll-area", "data-ui-scroll-area": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.data-axis": "resolvedAxis()", "attr.data-scrollbars": "resolvedScrollbars()", "attr.data-gutter": "resolvedGutter()", "attr.data-fade": "resolvedFade()", "attr.data-overscroll": "resolvedOverscroll()", "attr.data-overflowing": "edgeAttributes()['data-overflowing'] ?? null", "attr.data-at-block-start": "edgeAttributes()['data-at-block-start'] ?? null", "attr.data-at-block-end": "edgeAttributes()['data-at-block-end'] ?? null", "attr.data-at-inline-start": "edgeAttributes()['data-at-inline-start'] ?? null", "attr.data-at-inline-end": "edgeAttributes()['data-at-inline-end'] ?? null", "attr.data-sideways": "sideways() ? '' : null", "style.max-block-size": "maxBlockSize() ?? null", "style.max-inline-size": "maxInlineSize() ?? null" } }, viewQueries: [{ propertyName: "viewportRef", first: true, predicate: ["viewport"], descendants: true, isSignal: true }], exportAs: ["slScrollArea"], ngImport: i0, template: `
|
|
220
224
|
<div
|
|
221
225
|
#viewport
|
|
222
226
|
data-part="viewport"
|
|
227
|
+
data-part-viewport=""
|
|
223
228
|
[attr.role]="wired() ? 'region' : null"
|
|
224
229
|
[attr.tabindex]="wired() ? '0' : null"
|
|
225
230
|
[attr.aria-label]="ariaLabel()"
|
|
@@ -228,7 +233,7 @@ class SlScrollArea {
|
|
|
228
233
|
>
|
|
229
234
|
<ng-content />
|
|
230
235
|
</div>
|
|
231
|
-
`, isInline: true, styles: ["@layer slotted.components{[data-ui
|
|
236
|
+
`, isInline: true, styles: ["@layer slotted.components{[data-ui-scroll-area]{--_fade: min(var(--slotted-scroll-area-fade-size, var(--slotted-space-8, 1.5rem)), 20%);--_thumb: var(--slotted-scroll-area-thumb-color, var(--slotted-border-strong, ButtonBorder));--_track: var(--slotted-scroll-area-track-color, var(--slotted-surface-sunken, Canvas));display:grid;box-sizing:border-box;min-block-size:0;min-inline-size:0}[data-ui-scroll-area]>[data-part-viewport]{--_scroll-area-fade-block-start: var(--_fade);--_scroll-area-fade-block-end: var(--_fade);--_scroll-area-fade-inline-start: var(--_fade);--_scroll-area-fade-inline-end: var(--_fade);--_fade-top: var(--_scroll-area-fade-block-start);--_fade-bottom: var(--_scroll-area-fade-block-end);--_fade-left: var(--_scroll-area-fade-inline-start);--_fade-right: var(--_scroll-area-fade-inline-end);box-sizing:border-box;min-block-size:0;min-inline-size:0;border-radius:inherit;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--_thumb) var(--_track);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--_fade-top),#000 calc(100% - var(--_fade-bottom)),transparent 100%),linear-gradient(to right,transparent 0,#000 var(--_fade-left),#000 calc(100% - var(--_fade-right)),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 var(--_fade-top),#000 calc(100% - var(--_fade-bottom)),transparent 100%),linear-gradient(to right,transparent 0,#000 var(--_fade-left),#000 calc(100% - var(--_fade-right)),transparent 100%);-webkit-mask-composite:source-in;mask-composite:intersect;transition:--_scroll-area-fade-block-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-end var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-end var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-scroll-area]:dir(rtl)>[data-part-viewport]{--_fade-left: var(--_scroll-area-fade-inline-end);--_fade-right: var(--_scroll-area-fade-inline-start)}[data-ui-scroll-area][data-axis=block]>[data-part-viewport]{overflow-x:hidden;overflow-y:auto;overflow-inline:hidden;overflow-block:auto}[data-ui-scroll-area][data-axis=inline]>[data-part-viewport]{overflow-x:auto;overflow-y:hidden;overflow-inline:auto;overflow-block:hidden}[data-ui-scroll-area][data-axis=both]>[data-part-viewport]{overflow:auto}[data-ui-scroll-area][data-scrollbars=always][data-axis=block]>[data-part-viewport]{overflow-y:scroll;overflow-block:scroll}[data-ui-scroll-area][data-scrollbars=always][data-axis=inline]>[data-part-viewport]{overflow-x:scroll;overflow-inline:scroll}[data-ui-scroll-area][data-scrollbars=always][data-axis=both]>[data-part-viewport]{overflow:scroll}[data-ui-scroll-area][data-scrollbars=none]>[data-part-viewport]{scrollbar-width:none}[data-ui-scroll-area][data-scrollbars=hover]>[data-part-viewport]{scrollbar-color:transparent transparent;transition:scrollbar-color var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-end var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-end var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-scroll-area][data-scrollbars=hover]:not([data-disabled]):hover>[data-part-viewport],[data-ui-scroll-area][data-scrollbars=hover]:focus-within>[data-part-viewport]{scrollbar-color:var(--_thumb) var(--_track)}[data-ui-scroll-area][data-gutter=auto]>[data-part-viewport]{scrollbar-gutter:auto}[data-ui-scroll-area][data-gutter=both-edges]>[data-part-viewport]{scrollbar-gutter:stable both-edges}[data-ui-scroll-area][data-overscroll=auto]>[data-part-viewport]{overscroll-behavior:auto}[data-ui-scroll-area][data-overscroll=none]>[data-part-viewport]{overscroll-behavior:none}[data-ui-scroll-area][data-axis=inline]>[data-part-viewport]{overscroll-behavior-y:auto;overscroll-behavior-block:auto}[data-ui-scroll-area][data-axis=block]>[data-part-viewport]{overscroll-behavior-x:auto;overscroll-behavior-inline:auto}[data-ui-scroll-area][data-at-block-start]>[data-part-viewport]{--_scroll-area-fade-block-start: 0px}[data-ui-scroll-area][data-at-block-end]>[data-part-viewport]{--_scroll-area-fade-block-end: 0px}[data-ui-scroll-area][data-at-inline-start]>[data-part-viewport]{--_scroll-area-fade-inline-start: 0px}[data-ui-scroll-area][data-at-inline-end]>[data-part-viewport]{--_scroll-area-fade-inline-end: 0px}[data-ui-scroll-area][data-fade=end]>[data-part-viewport]{--_scroll-area-fade-block-start: 0px;--_scroll-area-fade-inline-start: 0px}[data-ui-scroll-area][data-fade=none]>[data-part-viewport],[data-ui-scroll-area][data-sideways]>[data-part-viewport]{-webkit-mask-image:none;mask-image:none}[data-ui-scroll-area]>[data-part-viewport]>[data-part-content]{box-sizing:border-box;min-inline-size:fit-content;padding:var(--slotted-scroll-area-inset, var(--slotted-space-5, .75rem))}[data-ui-scroll-area]>[data-part-viewport]:focus{outline:none}[data-ui-scroll-area]:has(>[data-part-viewport]:focus-visible[data-focus-origin=keyboard]){outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@media print{[data-ui-scroll-area],[data-ui-scroll-area]>[data-part-viewport]{max-block-size:none;max-inline-size:none;overflow:visible;-webkit-mask-image:none;mask-image:none}}@media(forced-colors:active){[data-ui-scroll-area]>[data-part-viewport]{-webkit-mask-image:none;mask-image:none;scrollbar-color:auto}}}@property --_scroll-area-fade-block-start{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-block-end{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-inline-start{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-inline-end{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
232
237
|
}
|
|
233
238
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlScrollArea, decorators: [{
|
|
234
239
|
type: Component,
|
|
@@ -236,6 +241,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
236
241
|
<div
|
|
237
242
|
#viewport
|
|
238
243
|
data-part="viewport"
|
|
244
|
+
data-part-viewport=""
|
|
239
245
|
[attr.role]="wired() ? 'region' : null"
|
|
240
246
|
[attr.tabindex]="wired() ? '0' : null"
|
|
241
247
|
[attr.aria-label]="ariaLabel()"
|
|
@@ -246,7 +252,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
246
252
|
</div>
|
|
247
253
|
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
248
254
|
'data-ui': 'scroll-area',
|
|
255
|
+
'data-ui-scroll-area': '',
|
|
249
256
|
'data-part': 'root',
|
|
257
|
+
'data-part-root': '',
|
|
250
258
|
'[attr.data-axis]': 'resolvedAxis()',
|
|
251
259
|
'[attr.data-scrollbars]': 'resolvedScrollbars()',
|
|
252
260
|
'[attr.data-gutter]': 'resolvedGutter()',
|
|
@@ -260,7 +268,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
260
268
|
'[attr.data-sideways]': "sideways() ? '' : null",
|
|
261
269
|
'[style.max-block-size]': 'maxBlockSize() ?? null',
|
|
262
270
|
'[style.max-inline-size]': 'maxInlineSize() ?? null',
|
|
263
|
-
}, styles: ["@layer slotted.components{[data-ui
|
|
271
|
+
}, styles: ["@layer slotted.components{[data-ui-scroll-area]{--_fade: min(var(--slotted-scroll-area-fade-size, var(--slotted-space-8, 1.5rem)), 20%);--_thumb: var(--slotted-scroll-area-thumb-color, var(--slotted-border-strong, ButtonBorder));--_track: var(--slotted-scroll-area-track-color, var(--slotted-surface-sunken, Canvas));display:grid;box-sizing:border-box;min-block-size:0;min-inline-size:0}[data-ui-scroll-area]>[data-part-viewport]{--_scroll-area-fade-block-start: var(--_fade);--_scroll-area-fade-block-end: var(--_fade);--_scroll-area-fade-inline-start: var(--_fade);--_scroll-area-fade-inline-end: var(--_fade);--_fade-top: var(--_scroll-area-fade-block-start);--_fade-bottom: var(--_scroll-area-fade-block-end);--_fade-left: var(--_scroll-area-fade-inline-start);--_fade-right: var(--_scroll-area-fade-inline-end);box-sizing:border-box;min-block-size:0;min-inline-size:0;border-radius:inherit;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--_thumb) var(--_track);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--_fade-top),#000 calc(100% - var(--_fade-bottom)),transparent 100%),linear-gradient(to right,transparent 0,#000 var(--_fade-left),#000 calc(100% - var(--_fade-right)),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 var(--_fade-top),#000 calc(100% - var(--_fade-bottom)),transparent 100%),linear-gradient(to right,transparent 0,#000 var(--_fade-left),#000 calc(100% - var(--_fade-right)),transparent 100%);-webkit-mask-composite:source-in;mask-composite:intersect;transition:--_scroll-area-fade-block-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-end var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-end var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-scroll-area]:dir(rtl)>[data-part-viewport]{--_fade-left: var(--_scroll-area-fade-inline-end);--_fade-right: var(--_scroll-area-fade-inline-start)}[data-ui-scroll-area][data-axis=block]>[data-part-viewport]{overflow-x:hidden;overflow-y:auto;overflow-inline:hidden;overflow-block:auto}[data-ui-scroll-area][data-axis=inline]>[data-part-viewport]{overflow-x:auto;overflow-y:hidden;overflow-inline:auto;overflow-block:hidden}[data-ui-scroll-area][data-axis=both]>[data-part-viewport]{overflow:auto}[data-ui-scroll-area][data-scrollbars=always][data-axis=block]>[data-part-viewport]{overflow-y:scroll;overflow-block:scroll}[data-ui-scroll-area][data-scrollbars=always][data-axis=inline]>[data-part-viewport]{overflow-x:scroll;overflow-inline:scroll}[data-ui-scroll-area][data-scrollbars=always][data-axis=both]>[data-part-viewport]{overflow:scroll}[data-ui-scroll-area][data-scrollbars=none]>[data-part-viewport]{scrollbar-width:none}[data-ui-scroll-area][data-scrollbars=hover]>[data-part-viewport]{scrollbar-color:transparent transparent;transition:scrollbar-color var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-end var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-end var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-scroll-area][data-scrollbars=hover]:not([data-disabled]):hover>[data-part-viewport],[data-ui-scroll-area][data-scrollbars=hover]:focus-within>[data-part-viewport]{scrollbar-color:var(--_thumb) var(--_track)}[data-ui-scroll-area][data-gutter=auto]>[data-part-viewport]{scrollbar-gutter:auto}[data-ui-scroll-area][data-gutter=both-edges]>[data-part-viewport]{scrollbar-gutter:stable both-edges}[data-ui-scroll-area][data-overscroll=auto]>[data-part-viewport]{overscroll-behavior:auto}[data-ui-scroll-area][data-overscroll=none]>[data-part-viewport]{overscroll-behavior:none}[data-ui-scroll-area][data-axis=inline]>[data-part-viewport]{overscroll-behavior-y:auto;overscroll-behavior-block:auto}[data-ui-scroll-area][data-axis=block]>[data-part-viewport]{overscroll-behavior-x:auto;overscroll-behavior-inline:auto}[data-ui-scroll-area][data-at-block-start]>[data-part-viewport]{--_scroll-area-fade-block-start: 0px}[data-ui-scroll-area][data-at-block-end]>[data-part-viewport]{--_scroll-area-fade-block-end: 0px}[data-ui-scroll-area][data-at-inline-start]>[data-part-viewport]{--_scroll-area-fade-inline-start: 0px}[data-ui-scroll-area][data-at-inline-end]>[data-part-viewport]{--_scroll-area-fade-inline-end: 0px}[data-ui-scroll-area][data-fade=end]>[data-part-viewport]{--_scroll-area-fade-block-start: 0px;--_scroll-area-fade-inline-start: 0px}[data-ui-scroll-area][data-fade=none]>[data-part-viewport],[data-ui-scroll-area][data-sideways]>[data-part-viewport]{-webkit-mask-image:none;mask-image:none}[data-ui-scroll-area]>[data-part-viewport]>[data-part-content]{box-sizing:border-box;min-inline-size:fit-content;padding:var(--slotted-scroll-area-inset, var(--slotted-space-5, .75rem))}[data-ui-scroll-area]>[data-part-viewport]:focus{outline:none}[data-ui-scroll-area]:has(>[data-part-viewport]:focus-visible[data-focus-origin=keyboard]){outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@media print{[data-ui-scroll-area],[data-ui-scroll-area]>[data-part-viewport]{max-block-size:none;max-inline-size:none;overflow:visible;-webkit-mask-image:none;mask-image:none}}@media(forced-colors:active){[data-ui-scroll-area]>[data-part-viewport]{-webkit-mask-image:none;mask-image:none;scrollbar-color:auto}}}@property --_scroll-area-fade-block-start{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-block-end{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-inline-start{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-inline-end{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}\n"] }]
|
|
264
272
|
}], ctorParameters: () => [], propDecorators: { axis: [{ type: i0.Input, args: [{ isSignal: true, alias: "axis", required: false }] }], scrollbars: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollbars", required: false }] }], gutter: [{ type: i0.Input, args: [{ isSignal: true, alias: "gutter", required: false }] }], fade: [{ type: i0.Input, args: [{ isSignal: true, alias: "fade", required: false }] }], overscroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "overscroll", required: false }] }], maxBlockSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxBlockSize", required: false }] }], maxInlineSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxInlineSize", required: false }] }], tabbable: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabbable", required: false }] }], labelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelledBy", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], scrollChange: [{ type: i0.Output, args: ["scrollChange"] }], overflowChange: [{ type: i0.Output, args: ["overflowChange"] }], viewportRef: [{ type: i0.ViewChild, args: ['viewport', { isSignal: true }] }] } });
|
|
265
273
|
/**
|
|
266
274
|
* The inset that scrolls with the content.
|
|
@@ -274,7 +282,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
274
282
|
*/
|
|
275
283
|
class SlScrollAreaContent {
|
|
276
284
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlScrollAreaContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
277
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlScrollAreaContent, isStandalone: true, selector: "[slScrollAreaContent]", host: { attributes: { "data-part": "content" } }, exportAs: ["slScrollAreaContent"], ngImport: i0 });
|
|
285
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlScrollAreaContent, isStandalone: true, selector: "[slScrollAreaContent]", host: { attributes: { "data-part": "content", "data-part-content": "" } }, exportAs: ["slScrollAreaContent"], ngImport: i0 });
|
|
278
286
|
}
|
|
279
287
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlScrollAreaContent, decorators: [{
|
|
280
288
|
type: Directive,
|
|
@@ -282,7 +290,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
282
290
|
selector: '[slScrollAreaContent]',
|
|
283
291
|
standalone: true,
|
|
284
292
|
exportAs: 'slScrollAreaContent',
|
|
285
|
-
host: { 'data-part': 'content' },
|
|
293
|
+
host: { 'data-part': 'content', 'data-part-content': '' },
|
|
286
294
|
}]
|
|
287
295
|
}] });
|
|
288
296
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotted-angular-scroll-area.mjs","sources":["../../scroll-area/src/scroll-area-defaults.ts","../../scroll-area/src/scroll-area.ts","../../scroll-area/src/slotted-angular-scroll-area.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\n/** Which axes scroll. Logical, so a vertical writing mode needs no second vocabulary. */\nexport type ScrollAreaAxis = 'block' | 'inline' | 'both';\n\n/**\n * What the scrollbar does. `auto` is `overflow: auto`; `always` is\n * `overflow: scroll`; `hover` paints the bar transparent until a pointer or the\n * keyboard is inside; `none` removes the bar and leaves the scrolling.\n *\n * `scroll` — visible only while scrolling, which Radix and Mantine both ship —\n * is folded into `hover`, because it is what a platform overlay scrollbar\n * already does on its own.\n */\nexport type ScrollAreaScrollbars = 'auto' | 'always' | 'hover' | 'none';\n\n/** `scrollbar-gutter`, and `stable` is the default because content that shifts is the defect. */\nexport type ScrollAreaGutter = 'auto' | 'stable' | 'both-edges';\n\n/**\n * Where the veil is drawn. `both` dims what the reader has passed as well as\n * what is ahead; `end` only what is ahead; `none` leaves the scrollbar to say\n * there is more.\n */\nexport type ScrollAreaFade = 'both' | 'end' | 'none';\n\n/** `overscroll-behavior`, and `contain` is the default. */\nexport type ScrollAreaOverscroll = 'contain' | 'auto' | 'none';\n\nexport interface ScrollAreaDefaults {\n axis: ScrollAreaAxis;\n scrollbars: ScrollAreaScrollbars;\n gutter: ScrollAreaGutter;\n fade: ScrollAreaFade;\n overscroll: ScrollAreaOverscroll;\n}\n\nconst FALLBACK: ScrollAreaDefaults = {\n axis: 'block',\n fade: 'both',\n gutter: 'stable',\n overscroll: 'contain',\n scrollbars: 'auto',\n};\n\nexport const SCROLL_AREA_DEFAULTS = new InjectionToken<ScrollAreaDefaults>(\n 'slotted scroll-area defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once what its scroll areas look like — whether the\n * bar waits for a hand, whether the veil dims both ends — rather than repeating\n * it on fifty of them. A region's name comes from the language in force\n * (`provideSlotted`).\n *\n * None of the five surveyed implementations has an equivalent: each takes its\n * policy per instance, and Mantine's `type` in particular is written on every\n * call site of every product that uses it.\n */\nexport function provideScrollAreaDefaults(defaults: Partial<ScrollAreaDefaults>) {\n return {\n provide: SCROLL_AREA_DEFAULTS,\n useFactory: (): ScrollAreaDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a scroll area is here, before it states anything of its own. */\nexport function injectScrollAreaDefaults(): ScrollAreaDefaults {\n return inject(SCROLL_AREA_DEFAULTS);\n}\n","import {\n createScrollEdges,\n NO_SCROLL_EDGES,\n scrollEdgeAttributes,\n type LogicalEdge,\n type ScrollEdgesHandle,\n type ScrollEdgesState,\n type ScrollPosition,\n} from '@slotted/core/overflow';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n inject,\n input,\n output,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport {\n scrollAreaMessages,\n type PartialMessages,\n type ScrollAreaMessages,\n} from '@slotted/core/i18n';\n\nimport { injectScrollAreaDefaults } from './scroll-area-defaults';\nimport type {\n ScrollAreaAxis,\n ScrollAreaFade,\n ScrollAreaGutter,\n ScrollAreaOverscroll,\n ScrollAreaScrollbars,\n} from './scroll-area-defaults';\n\n/** What `scrollChange` carries: where the scroller is, and the event that moved it. */\nexport interface ScrollAreaScrollEvent {\n readonly position: ScrollPosition;\n readonly source: Event;\n}\n\n/**\n * A scrollport, and the box that frames it.\n *\n * The scrollbar is the platform's, themed by the stylesheet through\n * `scrollbar-color`; the keyboard is the platform's too. What this component\n * adds is the measurement of whether the content overflows and which of its\n * ends show, published on the frame for CSS and emitted to the consumer, and\n * the tab stop a scrolling region owes a keyboard together with the name that\n * tab stop owes a screen reader — both written only while the content actually\n * overflows, which is the pattern `prose` shipped first for one block inside a\n * document.\n *\n * The frame is the consumer's own element — `<div slScrollArea>` — and the\n * scrollport is the component's, projected into: the frame is where a border,\n * a radius and a ground go, and the scrollport is the element the veil is on.\n * A consumer's own attributes on the host are never written over, because the\n * family writes its role, its tab stop and its name on an element it owns.\n *\n * The scroll position is never held. The browser moves it on a wheel, a\n * fling, a `Tab` into a child, an anchor navigation and a printed page, and a\n * consumer holding the value would have to accept every one of those or fight\n * the platform. It is emitted, and the instance moves it.\n */\n@Component({\n selector: '[slScrollArea]',\n standalone: true,\n exportAs: 'slScrollArea',\n template: `\n <div\n #viewport\n data-part=\"viewport\"\n [attr.role]=\"wired() ? 'region' : null\"\n [attr.tabindex]=\"wired() ? '0' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n (scroll)=\"onScroll($event)\"\n >\n <ng-content />\n </div>\n `,\n styleUrl: '../../../styles/src/scroll-area/scroll-area.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'scroll-area',\n 'data-part': 'root',\n '[attr.data-axis]': 'resolvedAxis()',\n '[attr.data-scrollbars]': 'resolvedScrollbars()',\n '[attr.data-gutter]': 'resolvedGutter()',\n '[attr.data-fade]': 'resolvedFade()',\n '[attr.data-overscroll]': 'resolvedOverscroll()',\n '[attr.data-overflowing]': \"edgeAttributes()['data-overflowing'] ?? null\",\n '[attr.data-at-block-start]': \"edgeAttributes()['data-at-block-start'] ?? null\",\n '[attr.data-at-block-end]': \"edgeAttributes()['data-at-block-end'] ?? null\",\n '[attr.data-at-inline-start]': \"edgeAttributes()['data-at-inline-start'] ?? null\",\n '[attr.data-at-inline-end]': \"edgeAttributes()['data-at-inline-end'] ?? null\",\n '[attr.data-sideways]': \"sideways() ? '' : null\",\n '[style.max-block-size]': 'maxBlockSize() ?? null',\n '[style.max-inline-size]': 'maxInlineSize() ?? null',\n },\n})\nexport class SlScrollArea {\n readonly axis = input<ScrollAreaAxis | undefined>(undefined);\n readonly scrollbars = input<ScrollAreaScrollbars | undefined>(undefined);\n readonly gutter = input<ScrollAreaGutter | undefined>(undefined);\n readonly fade = input<ScrollAreaFade | undefined>(undefined);\n readonly overscroll = input<ScrollAreaOverscroll | undefined>(undefined);\n\n /**\n * Scroll only past this size, as any CSS length. It is Mantine's\n * `ScrollArea.Autosize` as one binding rather than a second component.\n */\n readonly maxBlockSize = input<string | undefined>(undefined);\n readonly maxInlineSize = input<string | undefined>(undefined);\n\n /**\n * Whether the scrollport joins the tab sequence while it overflows.\n *\n * On by default, because content that scrolls has to be scrollable by\n * keyboard and a scrollport with no tab stop is not — unless a child of it\n * already takes focus. A consumer who knows the content is reachable another\n * way turns it off and carries the reason.\n */\n readonly tabbable = input(true, { transform: booleanAttribute });\n\n /**\n * The name the region is announced by. Resolved in one order: `labelledBy`,\n * then `messages.label`, then the catalog of the language in force.\n */\n readonly labelledBy = input<string | undefined>(undefined);\n /** Words laid over the catalog of the language in force: the region's name (`label`). */\n readonly messages = input<PartialMessages<ScrollAreaMessages> | undefined>(undefined);\n\n /**\n * The position, as a distance from each logical start, on every scroll. It\n * is a report and not a request: the browser moves the position on a wheel,\n * a fling, a `Tab` into a child and a printed page, and a consumer holding it\n * would have to accept every one of those.\n */\n readonly scrollChange = output<ScrollAreaScrollEvent>();\n\n /** The measurement, and only a new one: which axes overflow, and which ends show. */\n readonly overflowChange = output<ScrollEdgesState>();\n\n private readonly defaults = injectScrollAreaDefaults();\n /** The family's words in the language in force, with this area's `messages` laid over them. */\n readonly t = injectMessages(scrollAreaMessages, this.messages);\n private readonly element = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n private readonly destroyRef = inject(DestroyRef);\n private readonly viewportRef = viewChild.required<ElementRef<HTMLElement>>('viewport');\n\n /**\n * The measurement, as a signal, so the attributes it becomes are rendered.\n * Before the first render it is the state of content that fits — four ends\n * showing and nothing overflowing — which paints no veil and writes no tab\n * stop, so a server render and its hydration agree and the veil does not\n * flash on before the browser has said whether there is anything behind it.\n */\n private readonly measured = signal<ScrollEdgesState>(NO_SCROLL_EDGES);\n protected readonly sideways = signal(false);\n private edges: ScrollEdgesHandle | null = null;\n\n protected readonly resolvedAxis = computed(() => this.axis() ?? this.defaults.axis);\n protected readonly resolvedScrollbars = computed(\n () => this.scrollbars() ?? this.defaults.scrollbars,\n );\n protected readonly resolvedGutter = computed(() => this.gutter() ?? this.defaults.gutter);\n protected readonly resolvedFade = computed(() => this.fade() ?? this.defaults.fade);\n protected readonly resolvedOverscroll = computed(\n () => this.overscroll() ?? this.defaults.overscroll,\n );\n\n protected readonly edgeAttributes = computed(() => scrollEdgeAttributes(this.measured()));\n\n protected readonly overflowing = computed(() => {\n const state = this.measured();\n return state.block.overflowing || state.inline.overflowing;\n });\n protected readonly wired = computed(() => this.overflowing() && this.tabbable());\n protected readonly ariaLabelledBy = computed(() =>\n this.wired() ? (this.labelledBy() ?? null) : null,\n );\n protected readonly ariaLabel = computed(() => {\n if (!this.wired() || this.labelledBy() !== undefined) return null;\n return this.t('label');\n });\n\n constructor() {\n /**\n * After the first render and only in a browser: Angular builds the\n * component during a server render too, and there is nothing to measure\n * there. The wiring appears at the first moment a browser can say whether\n * the content overflows at all.\n */\n afterNextRender(() => {\n const viewport = this.viewportRef().nativeElement;\n const handle = createScrollEdges(viewport, {\n onChange: (next) => {\n this.measured.set(next);\n if (this.edges !== null) this.sideways.set(this.edges.sideways());\n this.overflowChange.emit(next);\n },\n });\n this.edges = handle;\n this.measured.set(handle.state());\n this.sideways.set(handle.sideways());\n });\n\n this.destroyRef.onDestroy(() => {\n this.edges?.destroy();\n this.edges = null;\n });\n }\n\n /** The frame: the consumer's own element. */\n get root(): HTMLElement {\n return this.element;\n }\n\n /** The scrollport: the element that scrolls and takes focus. */\n get viewport(): HTMLElement {\n return this.viewportRef().nativeElement;\n }\n\n /** The last measurement: whether each axis overflows, and which of its ends show. */\n state(): ScrollEdgesState {\n return this.edges?.state() ?? NO_SCROLL_EDGES;\n }\n\n /** The distance from each logical start, read now. */\n position(): ScrollPosition {\n return this.edges?.position() ?? { block: 0, inline: 0 };\n }\n\n /** Moves to a logical position. An axis left out is an axis left alone. */\n scrollTo(target: Partial<ScrollPosition>): void {\n this.edges?.scrollTo(target);\n }\n\n /** Moves to one end of one axis. */\n scrollToEdge(edge: LogicalEdge): void {\n this.edges?.scrollToEdge(edge);\n }\n\n /** Brings one element into view by the shortest movement that does it, without moving anything else. */\n reveal(element: Element): void {\n this.edges?.reveal(element);\n }\n\n /** Measures again, after content the observer could not see changed. */\n refresh(): void {\n this.edges?.refresh();\n }\n\n /** Moves focus to the scrollport. */\n focus(): void {\n this.viewport.focus();\n }\n\n protected onScroll(event: Event) {\n if (this.edges === null) return;\n this.scrollChange.emit({ position: this.edges.position(), source: event });\n }\n}\n\n/**\n * The inset that scrolls with the content.\n *\n * Padding on a scrollport is not applied at the end edge of its scrollable\n * overflow in every engine, so an inset that has to survive a scroll to the\n * end goes on an element inside it. The family states no inset of its own: the\n * directive exists to give the consumer's one a place to live, on the\n * consumer's own element, and an area whose content already carries its own\n * inset uses no `slScrollAreaContent` at all.\n */\n@Directive({\n selector: '[slScrollAreaContent]',\n standalone: true,\n exportAs: 'slScrollAreaContent',\n host: { 'data-part': 'content' },\n})\nexport class SlScrollAreaContent {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAqCA,MAAM,QAAQ,GAAuB;AACnC,IAAA,IAAI,EAAE,OAAO;AACb,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,UAAU,EAAE,MAAM;CACnB;MAEY,oBA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AAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,SAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE;AACjC,iBAAA;;;AC/RD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"slotted-angular-scroll-area.mjs","sources":["../../scroll-area/src/scroll-area-defaults.ts","../../scroll-area/src/scroll-area.ts","../../scroll-area/src/slotted-angular-scroll-area.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\n/** Which axes scroll. Logical, so a vertical writing mode needs no second vocabulary. */\nexport type ScrollAreaAxis = 'block' | 'inline' | 'both';\n\n/**\n * What the scrollbar does. `auto` is `overflow: auto`; `always` is\n * `overflow: scroll`; `hover` paints the bar transparent until a pointer or the\n * keyboard is inside; `none` removes the bar and leaves the scrolling.\n *\n * `scroll` — visible only while scrolling, which Radix and Mantine both ship —\n * is folded into `hover`, because it is what a platform overlay scrollbar\n * already does on its own.\n */\nexport type ScrollAreaScrollbars = 'auto' | 'always' | 'hover' | 'none';\n\n/** `scrollbar-gutter`, and `stable` is the default because content that shifts is the defect. */\nexport type ScrollAreaGutter = 'auto' | 'stable' | 'both-edges';\n\n/**\n * Where the veil is drawn. `both` dims what the reader has passed as well as\n * what is ahead; `end` only what is ahead; `none` leaves the scrollbar to say\n * there is more.\n */\nexport type ScrollAreaFade = 'both' | 'end' | 'none';\n\n/** `overscroll-behavior`, and `contain` is the default. */\nexport type ScrollAreaOverscroll = 'contain' | 'auto' | 'none';\n\nexport interface ScrollAreaDefaults {\n axis: ScrollAreaAxis;\n scrollbars: ScrollAreaScrollbars;\n gutter: ScrollAreaGutter;\n fade: ScrollAreaFade;\n overscroll: ScrollAreaOverscroll;\n}\n\nconst FALLBACK: ScrollAreaDefaults = {\n axis: 'block',\n fade: 'both',\n gutter: 'stable',\n overscroll: 'contain',\n scrollbars: 'auto',\n};\n\nexport const SCROLL_AREA_DEFAULTS = new InjectionToken<ScrollAreaDefaults>(\n 'slotted scroll-area defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once what its scroll areas look like — whether the\n * bar waits for a hand, whether the veil dims both ends — rather than repeating\n * it on fifty of them. A region's name comes from the language in force\n * (`provideSlotted`).\n *\n * None of the five surveyed implementations has an equivalent: each takes its\n * policy per instance, and Mantine's `type` in particular is written on every\n * call site of every product that uses it.\n */\nexport function provideScrollAreaDefaults(defaults: Partial<ScrollAreaDefaults>) {\n return {\n provide: SCROLL_AREA_DEFAULTS,\n useFactory: (): ScrollAreaDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a scroll area is here, before it states anything of its own. */\nexport function injectScrollAreaDefaults(): ScrollAreaDefaults {\n return inject(SCROLL_AREA_DEFAULTS);\n}\n","import { createFocusOrigin } from '@slotted/core/focus';\nimport {\n createScrollEdges,\n NO_SCROLL_EDGES,\n scrollEdgeAttributes,\n type LogicalEdge,\n type ScrollEdgesHandle,\n type ScrollEdgesState,\n type ScrollPosition,\n} from '@slotted/core/overflow';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n inject,\n input,\n output,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport {\n scrollAreaMessages,\n type PartialMessages,\n type ScrollAreaMessages,\n} from '@slotted/core/i18n';\n\nimport { injectScrollAreaDefaults } from './scroll-area-defaults';\nimport type {\n ScrollAreaAxis,\n ScrollAreaFade,\n ScrollAreaGutter,\n ScrollAreaOverscroll,\n ScrollAreaScrollbars,\n} from './scroll-area-defaults';\n\n/** What `scrollChange` carries: where the scroller is, and the event that moved it. */\nexport interface ScrollAreaScrollEvent {\n readonly position: ScrollPosition;\n readonly source: Event;\n}\n\n/**\n * A scrollport, and the box that frames it.\n *\n * The scrollbar is the platform's, themed by the stylesheet through\n * `scrollbar-color`; the keyboard is the platform's too. What this component\n * adds is the measurement of whether the content overflows and which of its\n * ends show, published on the frame for CSS and emitted to the consumer, and\n * the tab stop a scrolling region owes a keyboard together with the name that\n * tab stop owes a screen reader — both written only while the content actually\n * overflows, which is the pattern `prose` shipped first for one block inside a\n * document.\n *\n * The frame is the consumer's own element — `<div slScrollArea>` — and the\n * scrollport is the component's, projected into: the frame is where a border,\n * a radius and a ground go, and the scrollport is the element the veil is on.\n * A consumer's own attributes on the host are never written over, because the\n * family writes its role, its tab stop and its name on an element it owns.\n *\n * The scroll position is never held. The browser moves it on a wheel, a\n * fling, a `Tab` into a child, an anchor navigation and a printed page, and a\n * consumer holding the value would have to accept every one of those or fight\n * the platform. It is emitted, and the instance moves it.\n */\n@Component({\n selector: '[slScrollArea]',\n standalone: true,\n exportAs: 'slScrollArea',\n template: `\n <div\n #viewport\n data-part=\"viewport\"\n data-part-viewport=\"\"\n [attr.role]=\"wired() ? 'region' : null\"\n [attr.tabindex]=\"wired() ? '0' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n (scroll)=\"onScroll($event)\"\n >\n <ng-content />\n </div>\n `,\n styleUrl: '../../../styles/src/scroll-area/scroll-area.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'scroll-area',\n 'data-ui-scroll-area': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-axis]': 'resolvedAxis()',\n '[attr.data-scrollbars]': 'resolvedScrollbars()',\n '[attr.data-gutter]': 'resolvedGutter()',\n '[attr.data-fade]': 'resolvedFade()',\n '[attr.data-overscroll]': 'resolvedOverscroll()',\n '[attr.data-overflowing]': \"edgeAttributes()['data-overflowing'] ?? null\",\n '[attr.data-at-block-start]': \"edgeAttributes()['data-at-block-start'] ?? null\",\n '[attr.data-at-block-end]': \"edgeAttributes()['data-at-block-end'] ?? null\",\n '[attr.data-at-inline-start]': \"edgeAttributes()['data-at-inline-start'] ?? null\",\n '[attr.data-at-inline-end]': \"edgeAttributes()['data-at-inline-end'] ?? null\",\n '[attr.data-sideways]': \"sideways() ? '' : null\",\n '[style.max-block-size]': 'maxBlockSize() ?? null',\n '[style.max-inline-size]': 'maxInlineSize() ?? null',\n },\n})\nexport class SlScrollArea {\n readonly axis = input<ScrollAreaAxis | undefined>(undefined);\n readonly scrollbars = input<ScrollAreaScrollbars | undefined>(undefined);\n readonly gutter = input<ScrollAreaGutter | undefined>(undefined);\n readonly fade = input<ScrollAreaFade | undefined>(undefined);\n readonly overscroll = input<ScrollAreaOverscroll | undefined>(undefined);\n\n /**\n * Scroll only past this size, as any CSS length. It is Mantine's\n * `ScrollArea.Autosize` as one binding rather than a second component.\n */\n readonly maxBlockSize = input<string | undefined>(undefined);\n readonly maxInlineSize = input<string | undefined>(undefined);\n\n /**\n * Whether the scrollport joins the tab sequence while it overflows.\n *\n * On by default, because content that scrolls has to be scrollable by\n * keyboard and a scrollport with no tab stop is not — unless a child of it\n * already takes focus. A consumer who knows the content is reachable another\n * way turns it off and carries the reason.\n */\n readonly tabbable = input(true, { transform: booleanAttribute });\n\n /**\n * The name the region is announced by. Resolved in one order: `labelledBy`,\n * then `messages.label`, then the catalog of the language in force.\n */\n readonly labelledBy = input<string | undefined>(undefined);\n /** Words laid over the catalog of the language in force: the region's name (`label`). */\n readonly messages = input<PartialMessages<ScrollAreaMessages> | undefined>(undefined);\n\n /**\n * The position, as a distance from each logical start, on every scroll. It\n * is a report and not a request: the browser moves the position on a wheel,\n * a fling, a `Tab` into a child and a printed page, and a consumer holding it\n * would have to accept every one of those.\n */\n readonly scrollChange = output<ScrollAreaScrollEvent>();\n\n /** The measurement, and only a new one: which axes overflow, and which ends show. */\n readonly overflowChange = output<ScrollEdgesState>();\n\n private readonly defaults = injectScrollAreaDefaults();\n /** The family's words in the language in force, with this area's `messages` laid over them. */\n readonly t = injectMessages(scrollAreaMessages, this.messages);\n private readonly element = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n private readonly destroyRef = inject(DestroyRef);\n private readonly viewportRef = viewChild.required<ElementRef<HTMLElement>>('viewport');\n\n /**\n * The measurement, as a signal, so the attributes it becomes are rendered.\n * Before the first render it is the state of content that fits — four ends\n * showing and nothing overflowing — which paints no veil and writes no tab\n * stop, so a server render and its hydration agree and the veil does not\n * flash on before the browser has said whether there is anything behind it.\n */\n private readonly measured = signal<ScrollEdgesState>(NO_SCROLL_EDGES);\n protected readonly sideways = signal(false);\n private edges: ScrollEdgesHandle | null = null;\n\n protected readonly resolvedAxis = computed(() => this.axis() ?? this.defaults.axis);\n protected readonly resolvedScrollbars = computed(\n () => this.scrollbars() ?? this.defaults.scrollbars,\n );\n protected readonly resolvedGutter = computed(() => this.gutter() ?? this.defaults.gutter);\n protected readonly resolvedFade = computed(() => this.fade() ?? this.defaults.fade);\n protected readonly resolvedOverscroll = computed(\n () => this.overscroll() ?? this.defaults.overscroll,\n );\n\n protected readonly edgeAttributes = computed(() => scrollEdgeAttributes(this.measured()));\n\n protected readonly overflowing = computed(() => {\n const state = this.measured();\n return state.block.overflowing || state.inline.overflowing;\n });\n protected readonly wired = computed(() => this.overflowing() && this.tabbable());\n protected readonly ariaLabelledBy = computed(() =>\n this.wired() ? (this.labelledBy() ?? null) : null,\n );\n protected readonly ariaLabel = computed(() => {\n if (!this.wired() || this.labelledBy() !== undefined) return null;\n return this.t('label');\n });\n\n constructor() {\n /**\n * After the first render and only in a browser: Angular builds the\n * component during a server render too, and there is nothing to measure\n * there. The wiring appears at the first moment a browser can say whether\n * the content overflows at all.\n */\n afterNextRender(() => {\n const viewport = this.viewportRef().nativeElement;\n const handle = createScrollEdges(viewport, {\n onChange: (next) => {\n this.measured.set(next);\n if (this.edges !== null) this.sideways.set(this.edges.sideways());\n this.overflowChange.emit(next);\n },\n });\n this.edges = handle;\n this.measured.set(handle.state());\n this.sideways.set(handle.sideways());\n\n /** A click on the content focuses the scrollport; its ring is for the keyboard (`createFocusOrigin`). */\n const origin = createFocusOrigin(viewport);\n this.destroyRef.onDestroy(origin.destroy);\n });\n\n this.destroyRef.onDestroy(() => {\n this.edges?.destroy();\n this.edges = null;\n });\n }\n\n /** The frame: the consumer's own element. */\n get root(): HTMLElement {\n return this.element;\n }\n\n /** The scrollport: the element that scrolls and takes focus. */\n get viewport(): HTMLElement {\n return this.viewportRef().nativeElement;\n }\n\n /** The last measurement: whether each axis overflows, and which of its ends show. */\n state(): ScrollEdgesState {\n return this.edges?.state() ?? NO_SCROLL_EDGES;\n }\n\n /** The distance from each logical start, read now. */\n position(): ScrollPosition {\n return this.edges?.position() ?? { block: 0, inline: 0 };\n }\n\n /** Moves to a logical position. An axis left out is an axis left alone. */\n scrollTo(target: Partial<ScrollPosition>): void {\n this.edges?.scrollTo(target);\n }\n\n /** Moves to one end of one axis. */\n scrollToEdge(edge: LogicalEdge): void {\n this.edges?.scrollToEdge(edge);\n }\n\n /** Brings one element into view by the shortest movement that does it, without moving anything else. */\n reveal(element: Element): void {\n this.edges?.reveal(element);\n }\n\n /** Measures again, after content the observer could not see changed. */\n refresh(): void {\n this.edges?.refresh();\n }\n\n /** Moves focus to the scrollport. */\n focus(): void {\n this.viewport.focus();\n }\n\n protected onScroll(event: Event) {\n if (this.edges === null) return;\n this.scrollChange.emit({ position: this.edges.position(), source: event });\n }\n}\n\n/**\n * The inset that scrolls with the content.\n *\n * Padding on a scrollport is not applied at the end edge of its scrollable\n * overflow in every engine, so an inset that has to survive a scroll to the\n * end goes on an element inside it. The family states no inset of its own: the\n * directive exists to give the consumer's one a place to live, on the\n * consumer's own element, and an area whose content already carries its own\n * inset uses no `slScrollAreaContent` at all.\n */\n@Directive({\n selector: '[slScrollAreaContent]',\n standalone: true,\n exportAs: 'slScrollAreaContent',\n host: { 'data-part': 'content', 'data-part-content': '' },\n})\nexport class SlScrollAreaContent {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAqCA,MAAM,QAAQ,GAAuB;AACnC,IAAA,IAAI,EAAE,OAAO;AACb,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,UAAU,EAAE,MAAM;CACnB;MAEY,oBAAoB,GAAG,IAAI,cAAc,CACpD,8BAA8B,EAC9B,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,EAAE;AAGjD;;;;;;;;;AASG;AACG,SAAU,yBAAyB,CAAC,QAAqC,EAAA;IAC7E,OAAO;AACL,QAAA,OAAO,EAAE,oBAAoB;AAC7B,QAAA,UAAU,EAAE,OAA2B,EAAE,GAAG,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;KACrE;AACH;AAEA;SACgB,wBAAwB,GAAA;AACtC,IAAA,OAAO,MAAM,CAAC,oBAAoB,CAAC;AACrC;;ACtBA;;;;;;;;;;;;;;;;;;;;;;AAsBG;MA0CU,YAAY,CAAA;IACd,IAAI,GAAG,KAAK,CAA6B,SAAS;6EAAC;IACnD,UAAU,GAAG,KAAK,CAAmC,SAAS;mFAAC;IAC/D,MAAM,GAAG,KAAK,CAA+B,SAAS;+EAAC;IACvD,IAAI,GAAG,KAAK,CAA6B,SAAS;6EAAC;IACnD,UAAU,GAAG,KAAK,CAAmC,SAAS;mFAAC;AAExE;;;AAGG;IACM,YAAY,GAAG,KAAK,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qB;oBAC/B,IAAI,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,EAAE,EAAE;AAC1D,iBAAA;;;ACvSD;;AAEG;;"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as i1 from '@slotted/angular/typography';
|
|
2
2
|
import { SlHeadingLevel } from '@slotted/angular/typography';
|
|
3
|
+
import { observeStuck } from '@slotted/core/sticky-header';
|
|
3
4
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, inject, Injectable, input, booleanAttribute, HostAttributeToken, signal, ElementRef, computed, effect, ViewEncapsulation, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
|
|
5
|
+
import { InjectionToken, inject, Injectable, input, booleanAttribute, HostAttributeToken, signal, ElementRef, computed, effect, ViewEncapsulation, ChangeDetectionStrategy, Component, Directive, isDevMode } from '@angular/core';
|
|
5
6
|
|
|
6
7
|
const FALLBACK = {
|
|
7
8
|
divider: false,
|
|
@@ -125,15 +126,37 @@ class SlSection {
|
|
|
125
126
|
this.native.style.removeProperty(HEADER_SIZE_PROPERTY);
|
|
126
127
|
});
|
|
127
128
|
});
|
|
129
|
+
/**
|
|
130
|
+
* `data-stuck` on the header while content passes under it, so a theme
|
|
131
|
+
* can paint the header's ground only then. Written on the element, so a
|
|
132
|
+
* scroll costs no change detection.
|
|
133
|
+
*/
|
|
134
|
+
effect((onCleanup) => {
|
|
135
|
+
const header = this.header();
|
|
136
|
+
if (!this.resolvedSticky() || header === null)
|
|
137
|
+
return;
|
|
138
|
+
const stop = observeStuck(header, (stuck) => {
|
|
139
|
+
if (stuck)
|
|
140
|
+
header.setAttribute('data-stuck', '');
|
|
141
|
+
else
|
|
142
|
+
header.removeAttribute('data-stuck');
|
|
143
|
+
});
|
|
144
|
+
onCleanup(() => {
|
|
145
|
+
stop();
|
|
146
|
+
header.removeAttribute('data-stuck');
|
|
147
|
+
});
|
|
148
|
+
});
|
|
128
149
|
}
|
|
129
150
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSection, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
130
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlSection, isStandalone: true, selector: "[slSection]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, ground: { classPropertyName: "ground", publicName: "ground", isSignal: true, isRequired: false, transformFunction: null }, divider: { classPropertyName: "divider", publicName: "divider", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "section", "data-part": "root" }, properties: { "attr.id": "id()", "attr.aria-labelledby": "hasHeading() ? headingId() : null", "attr.data-size": "resolvedSize()", "attr.data-level": "resolvedLevel()", "attr.data-ground": "resolvedGround()", "attr.data-divider": "resolvedDivider() ? '' : null", "attr.data-sticky": "resolvedSticky() ? '' : null" } }, exportAs: ["slSection"], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["@layer slotted.components{[data-ui
|
|
151
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlSection, isStandalone: true, selector: "[slSection]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, ground: { classPropertyName: "ground", publicName: "ground", isSignal: true, isRequired: false, transformFunction: null }, divider: { classPropertyName: "divider", publicName: "divider", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "section", "data-ui-section": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.id": "id()", "attr.aria-labelledby": "hasHeading() ? headingId() : null", "attr.data-size": "resolvedSize()", "attr.data-level": "resolvedLevel()", "attr.data-ground": "resolvedGround()", "attr.data-divider": "resolvedDivider() ? '' : null", "attr.data-sticky": "resolvedSticky() ? '' : null" } }, exportAs: ["slSection"], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["@layer slotted.components{[data-ui-section]{--_gap: var(--slotted-section-gap, var(--slotted-space-5, .75rem));--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_rule: var(--slotted-section-border, var(--slotted-border-subtle, ButtonBorder));--_heading-size: var(--slotted-section-heading-size-md, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-md, var(--slotted-font-size-md, .875rem) );--_subheading-line-height: var(--slotted-line-height-md, 1.5);--_ground: var(--slotted-page-ground, var(--slotted-surface, Canvas));color:var(--_text);display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);gap:var(--_gap);min-inline-size:0;scroll-margin-block-start:var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-size=sm]{--_heading-size: var(--slotted-section-heading-size-sm, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-sm, var(--slotted-font-size-sm, .8125rem) );--_subheading-line-height: var(--slotted-line-height-sm, 1.45)}[data-ui-section][data-size=lg]{--_heading-size: var(--slotted-section-heading-size-lg, var(--slotted-font-size-sm, .8125rem));--_heading-line-height: var(--slotted-line-height-sm, 1.45);--_subheading-size: var( --slotted-section-subheading-size-lg, var(--slotted-font-size-lg, 1rem) );--_subheading-line-height: var(--slotted-line-height-lg, 1.5)}:is([data-ui-container],[data-part-body])>[data-ui-section]+[data-ui-section]{margin-block-start:var(--slotted-section-spacing, var(--slotted-space-9, 2rem))}[data-ui-section]>[data-part-body]>[data-ui-section]:not(:first-child){margin-block-start:var(--slotted-section-subsection-spacing, var(--slotted-space-7, 1.25rem))}[data-ui-section][data-ground=surface]{--_ground: var(--slotted-section-surface, var(--slotted-surface-raised, Canvas));--slotted-ground: var(--_ground);background-color:var(--_ground);border:var(--slotted-border-width-thin, 1px) solid var(--_rule);border-radius:var(--slotted-section-radius, var(--slotted-radius-lg, 8px));padding:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section]>[data-part-header]{align-items:baseline;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr);min-inline-size:0}[data-ui-section][data-divider]>[data-part-header]{border-block-end:var(--slotted-border-width-thin, 1px) solid var(--_rule);padding-block-end:var(--slotted-space-4, .5rem)}[data-ui-section][data-ground=surface][data-divider]>[data-part-header]{margin-inline:calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));padding-inline:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section][data-sticky]>[data-part-header]{background-color:var(--slotted-section-header-background, var(--_ground));inset-block-start:var(--slotted-page-sticky-top, 0px);margin-block-start:calc(-1 * var(--slotted-space-4, .5rem));padding-block-start:var(--slotted-space-4, .5rem);position:sticky;z-index:var(--slotted-z-index-sticky, 100)}[data-ui-section][data-sticky]{--_above: var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-sticky]>[data-part-body]{--slotted-page-sticky-top: calc(var(--_above) + var(--slotted-section-header-size, 0px));--slotted-table-sticky-offset: var(--slotted-page-sticky-top)}[data-ui-section]>[data-part-header]>[data-part-title]{align-items:baseline;display:grid;grid-column:1;grid-row:1 / span 3;grid-template-columns:minmax(min-content,max-content) 1fr;grid-template-rows:subgrid;min-inline-size:0}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-eyebrow]{color:var(--_muted);font-size:var(--slotted-font-size-xs, .75rem);grid-column:1 / -1;grid-row:1;margin-block-end:var(--slotted-space-1, .125rem);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.06em;line-height:var(--slotted-line-height-xs, 1.4);text-transform:uppercase}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_text);font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--_heading-size);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.08em;line-height:var(--_heading-line-height);text-transform:uppercase;grid-column:1;grid-row:2;margin:0;min-inline-size:0;overflow-wrap:break-word;text-wrap:pretty}[data-ui-section] [data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_muted);font-size:var(--_subheading-size);letter-spacing:normal;line-height:var(--_subheading-line-height);text-transform:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]{align-items:baseline;display:flex;flex-wrap:wrap;gap:var(--slotted-space-3, .375rem);grid-column:2;grid-row:2;justify-self:start;margin-inline-start:var(--slotted-space-4, .5rem)}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]:empty{display:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-description]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);grid-column:1 / -1;grid-row:3;line-height:var(--slotted-line-height-sm, 1.45);margin:var(--slotted-space-1, .125rem) 0 0;max-inline-size:var(--slotted-section-description-measure, 70ch);text-wrap:pretty}[data-ui-section]>[data-part-header]>[data-part-actions]{--slotted-link-font-size: var(--slotted-font-size-sm, .8125rem);align-items:center;display:flex;gap:var(--slotted-control-gap-md, 8px);grid-column:2;grid-row:2;margin-inline-start:var(--slotted-space-6, 1rem)}[data-ui-section]>[data-part-header]>[data-part-actions]:empty{display:none}@container (inline-size < 20rem){[data-ui-section]>[data-part-header]>[data-part-actions]{grid-column:1 / -1;grid-row:4;justify-self:end;margin:var(--slotted-space-3, .375rem) 0 0}}[data-ui-section]>[data-part-body]{min-inline-size:0}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
131
152
|
}
|
|
132
153
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSection, decorators: [{
|
|
133
154
|
type: Component,
|
|
134
155
|
args: [{ selector: '[slSection]', standalone: true, exportAs: 'slSection', template: '<ng-content />', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
135
156
|
'data-ui': 'section',
|
|
157
|
+
'data-ui-section': '',
|
|
136
158
|
'data-part': 'root',
|
|
159
|
+
'data-part-root': '',
|
|
137
160
|
'[attr.id]': 'id()',
|
|
138
161
|
'[attr.aria-labelledby]': 'hasHeading() ? headingId() : null',
|
|
139
162
|
'[attr.data-size]': 'resolvedSize()',
|
|
@@ -141,7 +164,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
141
164
|
'[attr.data-ground]': 'resolvedGround()',
|
|
142
165
|
'[attr.data-divider]': "resolvedDivider() ? '' : null",
|
|
143
166
|
'[attr.data-sticky]': "resolvedSticky() ? '' : null",
|
|
144
|
-
}, styles: ["@layer slotted.components{[data-ui
|
|
167
|
+
}, styles: ["@layer slotted.components{[data-ui-section]{--_gap: var(--slotted-section-gap, var(--slotted-space-5, .75rem));--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_rule: var(--slotted-section-border, var(--slotted-border-subtle, ButtonBorder));--_heading-size: var(--slotted-section-heading-size-md, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-md, var(--slotted-font-size-md, .875rem) );--_subheading-line-height: var(--slotted-line-height-md, 1.5);--_ground: var(--slotted-page-ground, var(--slotted-surface, Canvas));color:var(--_text);display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);gap:var(--_gap);min-inline-size:0;scroll-margin-block-start:var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-size=sm]{--_heading-size: var(--slotted-section-heading-size-sm, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-sm, var(--slotted-font-size-sm, .8125rem) );--_subheading-line-height: var(--slotted-line-height-sm, 1.45)}[data-ui-section][data-size=lg]{--_heading-size: var(--slotted-section-heading-size-lg, var(--slotted-font-size-sm, .8125rem));--_heading-line-height: var(--slotted-line-height-sm, 1.45);--_subheading-size: var( --slotted-section-subheading-size-lg, var(--slotted-font-size-lg, 1rem) );--_subheading-line-height: var(--slotted-line-height-lg, 1.5)}:is([data-ui-container],[data-part-body])>[data-ui-section]+[data-ui-section]{margin-block-start:var(--slotted-section-spacing, var(--slotted-space-9, 2rem))}[data-ui-section]>[data-part-body]>[data-ui-section]:not(:first-child){margin-block-start:var(--slotted-section-subsection-spacing, var(--slotted-space-7, 1.25rem))}[data-ui-section][data-ground=surface]{--_ground: var(--slotted-section-surface, var(--slotted-surface-raised, Canvas));--slotted-ground: var(--_ground);background-color:var(--_ground);border:var(--slotted-border-width-thin, 1px) solid var(--_rule);border-radius:var(--slotted-section-radius, var(--slotted-radius-lg, 8px));padding:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section]>[data-part-header]{align-items:baseline;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr);min-inline-size:0}[data-ui-section][data-divider]>[data-part-header]{border-block-end:var(--slotted-border-width-thin, 1px) solid var(--_rule);padding-block-end:var(--slotted-space-4, .5rem)}[data-ui-section][data-ground=surface][data-divider]>[data-part-header]{margin-inline:calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));padding-inline:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section][data-sticky]>[data-part-header]{background-color:var(--slotted-section-header-background, var(--_ground));inset-block-start:var(--slotted-page-sticky-top, 0px);margin-block-start:calc(-1 * var(--slotted-space-4, .5rem));padding-block-start:var(--slotted-space-4, .5rem);position:sticky;z-index:var(--slotted-z-index-sticky, 100)}[data-ui-section][data-sticky]{--_above: var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-sticky]>[data-part-body]{--slotted-page-sticky-top: calc(var(--_above) + var(--slotted-section-header-size, 0px));--slotted-table-sticky-offset: var(--slotted-page-sticky-top)}[data-ui-section]>[data-part-header]>[data-part-title]{align-items:baseline;display:grid;grid-column:1;grid-row:1 / span 3;grid-template-columns:minmax(min-content,max-content) 1fr;grid-template-rows:subgrid;min-inline-size:0}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-eyebrow]{color:var(--_muted);font-size:var(--slotted-font-size-xs, .75rem);grid-column:1 / -1;grid-row:1;margin-block-end:var(--slotted-space-1, .125rem);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.06em;line-height:var(--slotted-line-height-xs, 1.4);text-transform:uppercase}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_text);font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--_heading-size);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.08em;line-height:var(--_heading-line-height);text-transform:uppercase;grid-column:1;grid-row:2;margin:0;min-inline-size:0;overflow-wrap:break-word;text-wrap:pretty}[data-ui-section] [data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_muted);font-size:var(--_subheading-size);letter-spacing:normal;line-height:var(--_subheading-line-height);text-transform:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]{align-items:baseline;display:flex;flex-wrap:wrap;gap:var(--slotted-space-3, .375rem);grid-column:2;grid-row:2;justify-self:start;margin-inline-start:var(--slotted-space-4, .5rem)}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]:empty{display:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-description]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);grid-column:1 / -1;grid-row:3;line-height:var(--slotted-line-height-sm, 1.45);margin:var(--slotted-space-1, .125rem) 0 0;max-inline-size:var(--slotted-section-description-measure, 70ch);text-wrap:pretty}[data-ui-section]>[data-part-header]>[data-part-actions]{--slotted-link-font-size: var(--slotted-font-size-sm, .8125rem);align-items:center;display:flex;gap:var(--slotted-control-gap-md, 8px);grid-column:2;grid-row:2;margin-inline-start:var(--slotted-space-6, 1rem)}[data-ui-section]>[data-part-header]>[data-part-actions]:empty{display:none}@container (inline-size < 20rem){[data-ui-section]>[data-part-header]>[data-part-actions]{grid-column:1 / -1;grid-row:4;justify-self:end;margin:var(--slotted-space-3, .375rem) 0 0}}[data-ui-section]>[data-part-body]{min-inline-size:0}}\n"] }]
|
|
145
168
|
}], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], ground: [{ type: i0.Input, args: [{ isSignal: true, alias: "ground", required: false }] }], divider: [{ type: i0.Input, args: [{ isSignal: true, alias: "divider", required: false }] }], sticky: [{ type: i0.Input, args: [{ isSignal: true, alias: "sticky", required: false }] }] } });
|
|
146
169
|
|
|
147
170
|
const HEADINGS = new Set(['H1', 'H2', 'H3', 'H4', 'H5', 'H6']);
|
|
@@ -160,51 +183,89 @@ class SlSectionHeader {
|
|
|
160
183
|
this.section.header.set(null);
|
|
161
184
|
}
|
|
162
185
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
163
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSectionHeader, isStandalone: true, selector: "[slSectionHeader]", host: { attributes: { "data-part": "header" } }, ngImport: i0 });
|
|
186
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSectionHeader, isStandalone: true, selector: "[slSectionHeader]", host: { attributes: { "data-part": "header", "data-part-header": "" } }, ngImport: i0 });
|
|
164
187
|
}
|
|
165
188
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionHeader, decorators: [{
|
|
166
189
|
type: Directive,
|
|
167
|
-
args: [{
|
|
190
|
+
args: [{
|
|
191
|
+
selector: '[slSectionHeader]',
|
|
192
|
+
standalone: true,
|
|
193
|
+
host: { 'data-part': 'header', 'data-part-header': '' },
|
|
194
|
+
}]
|
|
168
195
|
}] });
|
|
169
|
-
/** Eyebrow, heading, description, in that order. */
|
|
196
|
+
/** Eyebrow, heading, tags, description, in that order. */
|
|
170
197
|
class SlSectionTitle {
|
|
171
198
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
172
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSectionTitle, isStandalone: true, selector: "[slSectionTitle]", host: { attributes: { "data-part": "title" } }, ngImport: i0 });
|
|
199
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSectionTitle, isStandalone: true, selector: "[slSectionTitle]", host: { attributes: { "data-part": "title", "data-part-title": "" } }, ngImport: i0 });
|
|
173
200
|
}
|
|
174
201
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionTitle, decorators: [{
|
|
175
202
|
type: Directive,
|
|
176
|
-
args: [{
|
|
203
|
+
args: [{
|
|
204
|
+
selector: '[slSectionTitle]',
|
|
205
|
+
standalone: true,
|
|
206
|
+
host: { 'data-part': 'title', 'data-part-title': '' },
|
|
207
|
+
}]
|
|
177
208
|
}] });
|
|
178
209
|
/** A short overline above the heading — a count, a category. Structural, not status. */
|
|
179
210
|
class SlSectionEyebrow {
|
|
180
211
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionEyebrow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
181
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSectionEyebrow, isStandalone: true, selector: "[slSectionEyebrow]", host: { attributes: { "data-part": "eyebrow" } }, ngImport: i0 });
|
|
212
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSectionEyebrow, isStandalone: true, selector: "[slSectionEyebrow]", host: { attributes: { "data-part": "eyebrow", "data-part-eyebrow": "" } }, ngImport: i0 });
|
|
182
213
|
}
|
|
183
214
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionEyebrow, decorators: [{
|
|
184
215
|
type: Directive,
|
|
185
|
-
args: [{
|
|
216
|
+
args: [{
|
|
217
|
+
selector: '[slSectionEyebrow]',
|
|
218
|
+
standalone: true,
|
|
219
|
+
host: { 'data-part': 'eyebrow', 'data-part-eyebrow': '' },
|
|
220
|
+
}]
|
|
221
|
+
}] });
|
|
222
|
+
/**
|
|
223
|
+
* Badges or tags beside the heading — a count, a status — on its baseline.
|
|
224
|
+
* Outside the heading, so they are not read into the region's name.
|
|
225
|
+
*/
|
|
226
|
+
class SlSectionTags {
|
|
227
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionTags, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
228
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSectionTags, isStandalone: true, selector: "[slSectionTags]", host: { attributes: { "data-part": "tags", "data-part-tags": "" } }, ngImport: i0 });
|
|
229
|
+
}
|
|
230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionTags, decorators: [{
|
|
231
|
+
type: Directive,
|
|
232
|
+
args: [{
|
|
233
|
+
selector: '[slSectionTags]',
|
|
234
|
+
standalone: true,
|
|
235
|
+
host: { 'data-part': 'tags', 'data-part-tags': '' },
|
|
236
|
+
}]
|
|
186
237
|
}] });
|
|
187
238
|
/** A paragraph under the heading, in the muted text, with a measure. */
|
|
188
239
|
class SlSectionDescription {
|
|
240
|
+
native = inject(ElementRef).nativeElement;
|
|
241
|
+
ngOnInit() {
|
|
242
|
+
if (isDevMode() && this.native.parentElement?.getAttribute('data-part') !== 'title') {
|
|
243
|
+
console.warn('slSectionDescription is written outside slSectionTitle, so the stylesheet does not reach it and it renders unstyled. Move it inside slSectionTitle.');
|
|
244
|
+
}
|
|
245
|
+
}
|
|
189
246
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
190
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSectionDescription, isStandalone: true, selector: "[slSectionDescription]", host: { attributes: { "data-part": "description" } }, ngImport: i0 });
|
|
247
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSectionDescription, isStandalone: true, selector: "[slSectionDescription]", host: { attributes: { "data-part": "description", "data-part-description": "" } }, ngImport: i0 });
|
|
191
248
|
}
|
|
192
249
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionDescription, decorators: [{
|
|
193
250
|
type: Directive,
|
|
194
251
|
args: [{
|
|
195
252
|
selector: '[slSectionDescription]',
|
|
196
253
|
standalone: true,
|
|
197
|
-
host: { 'data-part': 'description' },
|
|
254
|
+
host: { 'data-part': 'description', 'data-part-description': '' },
|
|
198
255
|
}]
|
|
199
256
|
}] });
|
|
200
|
-
/** The end of the
|
|
257
|
+
/** The end of the heading's row, on its baseline: a button, a toolbar, a link. */
|
|
201
258
|
class SlSectionActions {
|
|
202
259
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
203
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSectionActions, isStandalone: true, selector: "[slSectionActions]", host: { attributes: { "data-part": "actions" } }, ngImport: i0 });
|
|
260
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSectionActions, isStandalone: true, selector: "[slSectionActions]", host: { attributes: { "data-part": "actions", "data-part-actions": "" } }, ngImport: i0 });
|
|
204
261
|
}
|
|
205
262
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionActions, decorators: [{
|
|
206
263
|
type: Directive,
|
|
207
|
-
args: [{
|
|
264
|
+
args: [{
|
|
265
|
+
selector: '[slSectionActions]',
|
|
266
|
+
standalone: true,
|
|
267
|
+
host: { 'data-part': 'actions', 'data-part-actions': '' },
|
|
268
|
+
}]
|
|
208
269
|
}] });
|
|
209
270
|
/**
|
|
210
271
|
* The heading, at the rank the section resolved. Rendering it is what makes
|
|
@@ -227,7 +288,7 @@ class SlSectionHeading {
|
|
|
227
288
|
this.section.hasHeading.set(false);
|
|
228
289
|
}
|
|
229
290
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionHeading, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
230
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSectionHeading, isStandalone: true, selector: "[slSectionHeading]", host: { attributes: { "data-part": "heading" }, properties: { "attr.id": "section.headingId()", "attr.role": "ariaRole()", "attr.aria-level": "ariaLevel()" } }, exportAs: ["slSectionHeading"], ngImport: i0 });
|
|
291
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSectionHeading, isStandalone: true, selector: "[slSectionHeading]", host: { attributes: { "data-part": "heading", "data-part-heading": "" }, properties: { "attr.id": "section.headingId()", "attr.role": "ariaRole()", "attr.aria-level": "ariaLevel()" } }, exportAs: ["slSectionHeading"], ngImport: i0 });
|
|
231
292
|
}
|
|
232
293
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionHeading, decorators: [{
|
|
233
294
|
type: Directive,
|
|
@@ -237,6 +298,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
237
298
|
exportAs: 'slSectionHeading',
|
|
238
299
|
host: {
|
|
239
300
|
'data-part': 'heading',
|
|
301
|
+
'data-part-heading': '',
|
|
240
302
|
'[attr.id]': 'section.headingId()',
|
|
241
303
|
'[attr.role]': 'ariaRole()',
|
|
242
304
|
'[attr.aria-level]': 'ariaLevel()',
|
|
@@ -246,7 +308,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
246
308
|
/** The content, one outline step deeper: `slHeadingLevel` is a host directive. */
|
|
247
309
|
class SlSectionBody {
|
|
248
310
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionBody, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
249
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSectionBody, isStandalone: true, selector: "[slSectionBody]", host: { attributes: { "data-part": "body" } }, hostDirectives: [{ directive: i1.SlHeadingLevel }], ngImport: i0 });
|
|
311
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSectionBody, isStandalone: true, selector: "[slSectionBody]", host: { attributes: { "data-part": "body", "data-part-body": "" } }, hostDirectives: [{ directive: i1.SlHeadingLevel }], ngImport: i0 });
|
|
250
312
|
}
|
|
251
313
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSectionBody, decorators: [{
|
|
252
314
|
type: Directive,
|
|
@@ -254,7 +316,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
254
316
|
selector: '[slSectionBody]',
|
|
255
317
|
standalone: true,
|
|
256
318
|
hostDirectives: [SlHeadingLevel],
|
|
257
|
-
host: { 'data-part': 'body' },
|
|
319
|
+
host: { 'data-part': 'body', 'data-part-body': '' },
|
|
258
320
|
}]
|
|
259
321
|
}] });
|
|
260
322
|
|
|
@@ -262,5 +324,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
262
324
|
* Generated bundle index. Do not edit.
|
|
263
325
|
*/
|
|
264
326
|
|
|
265
|
-
export { HEADER_SIZE_PROPERTY, SECTION_DEFAULTS, SlSection, SlSectionActions, SlSectionBody, SlSectionDescription, SlSectionEyebrow, SlSectionHeader, SlSectionHeading, SlSectionIdFactory, SlSectionTitle, injectSectionDefaults, provideSectionDefaults };
|
|
327
|
+
export { HEADER_SIZE_PROPERTY, SECTION_DEFAULTS, SlSection, SlSectionActions, SlSectionBody, SlSectionDescription, SlSectionEyebrow, SlSectionHeader, SlSectionHeading, SlSectionIdFactory, SlSectionTags, SlSectionTitle, injectSectionDefaults, provideSectionDefaults };
|
|
266
328
|
//# sourceMappingURL=slotted-angular-section.mjs.map
|