@slotted/angular 0.0.0-stage → 0.1.0-beta.0
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/LICENSE +21 -0
- package/README.md +51 -2
- package/docs/AGENTS.snippet.md +10 -0
- package/docs/accordion.json +345 -0
- package/docs/accordion.md +207 -0
- package/docs/action-bar.json +421 -0
- package/docs/action-bar.md +364 -0
- package/docs/action-sheet.json +210 -0
- package/docs/action-sheet.md +19 -0
- package/docs/alert.json +407 -0
- package/docs/alert.md +239 -0
- package/docs/app-shell.examples.md +349 -0
- package/docs/app-shell.json +835 -0
- package/docs/app-shell.md +214 -0
- package/docs/aspect-ratio.json +159 -0
- package/docs/aspect-ratio.md +134 -0
- package/docs/attachment.json +486 -0
- package/docs/attachment.md +253 -0
- package/docs/avatar-group.json +208 -0
- package/docs/avatar-group.md +130 -0
- package/docs/avatar.json +342 -0
- package/docs/avatar.md +142 -0
- package/docs/badge.json +334 -0
- package/docs/badge.md +138 -0
- package/docs/breadcrumb.json +368 -0
- package/docs/breadcrumb.md +237 -0
- package/docs/button-group.json +158 -0
- package/docs/button-group.md +72 -0
- package/docs/button.examples.md +621 -0
- package/docs/button.json +977 -0
- package/docs/button.md +200 -0
- package/docs/calendar.json +592 -0
- package/docs/calendar.md +242 -0
- package/docs/card.json +283 -0
- package/docs/card.md +130 -0
- package/docs/carousel.json +560 -0
- package/docs/carousel.md +357 -0
- package/docs/cascader.json +933 -0
- package/docs/cascader.md +379 -0
- package/docs/chart.examples.md +582 -0
- package/docs/chart.json +1359 -0
- package/docs/chart.md +187 -0
- package/docs/checkbox-group.examples.md +612 -0
- package/docs/checkbox-group.json +395 -0
- package/docs/checkbox-group.md +106 -0
- package/docs/checkbox.examples.md +546 -0
- package/docs/checkbox.json +506 -0
- package/docs/checkbox.md +104 -0
- package/docs/code-block.json +616 -0
- package/docs/code-block.md +303 -0
- package/docs/collapsible.json +456 -0
- package/docs/collapsible.md +261 -0
- package/docs/color-picker.json +523 -0
- package/docs/color-picker.md +201 -0
- package/docs/column-manager.json +486 -0
- package/docs/column-manager.md +277 -0
- package/docs/combobox.examples.md +1732 -0
- package/docs/combobox.json +1250 -0
- package/docs/combobox.md +209 -0
- package/docs/command-palette.json +800 -0
- package/docs/command-palette.md +419 -0
- package/docs/container.json +156 -0
- package/docs/container.md +92 -0
- package/docs/context-menu.json +231 -0
- package/docs/context-menu.md +176 -0
- package/docs/currency-field.examples.md +321 -0
- package/docs/currency-field.json +649 -0
- package/docs/currency-field.md +128 -0
- package/docs/dashboard-grid.json +680 -0
- package/docs/dashboard-grid.md +265 -0
- package/docs/data-grid.examples.md +3064 -0
- package/docs/data-grid.json +1577 -0
- package/docs/data-grid.md +237 -0
- package/docs/data-grid.props.md +81 -0
- package/docs/data-list.json +685 -0
- package/docs/data-list.md +327 -0
- package/docs/date-field.json +490 -0
- package/docs/date-field.md +235 -0
- package/docs/date-picker.examples.md +1226 -0
- package/docs/date-picker.json +696 -0
- package/docs/date-picker.md +121 -0
- package/docs/date-range-picker.examples.md +1300 -0
- package/docs/date-range-picker.json +903 -0
- package/docs/date-range-picker.md +142 -0
- package/docs/datetime-field.json +665 -0
- package/docs/datetime-field.md +337 -0
- package/docs/datetime-picker.examples.md +1269 -0
- package/docs/datetime-picker.json +928 -0
- package/docs/datetime-picker.md +150 -0
- package/docs/datetime-range-picker.examples.md +225 -0
- package/docs/datetime-range-picker.json +1015 -0
- package/docs/datetime-range-picker.md +162 -0
- package/docs/description-list.json +471 -0
- package/docs/description-list.md +268 -0
- package/docs/detail-panel.json +530 -0
- package/docs/detail-panel.md +361 -0
- package/docs/dialog.examples.md +2467 -0
- package/docs/dialog.json +1141 -0
- package/docs/dialog.md +217 -0
- package/docs/dialog.props.md +63 -0
- package/docs/divider.json +148 -0
- package/docs/divider.md +83 -0
- package/docs/drawer.examples.md +1929 -0
- package/docs/drawer.json +753 -0
- package/docs/drawer.md +199 -0
- package/docs/entity-picker.json +946 -0
- package/docs/entity-picker.md +365 -0
- package/docs/event-calendar.examples.md +308 -0
- package/docs/event-calendar.json +1202 -0
- package/docs/event-calendar.md +201 -0
- package/docs/field-group.json +333 -0
- package/docs/field-group.md +181 -0
- package/docs/field.examples.md +676 -0
- package/docs/field.json +528 -0
- package/docs/field.md +127 -0
- package/docs/filter-bar.json +817 -0
- package/docs/filter-bar.md +380 -0
- package/docs/form.json +378 -0
- package/docs/form.md +235 -0
- package/docs/fullscreen.json +395 -0
- package/docs/fullscreen.md +225 -0
- package/docs/grid.json +176 -0
- package/docs/grid.md +74 -0
- package/docs/highlight.json +279 -0
- package/docs/highlight.md +210 -0
- package/docs/hover-card.json +254 -0
- package/docs/hover-card.md +213 -0
- package/docs/icon.json +173 -0
- package/docs/icon.md +101 -0
- package/docs/image.json +476 -0
- package/docs/image.md +254 -0
- package/docs/import-export-center.json +836 -0
- package/docs/import-export-center.md +345 -0
- package/docs/index.md +141 -0
- package/docs/inline-message.json +312 -0
- package/docs/inline-message.md +191 -0
- package/docs/inline.json +149 -0
- package/docs/inline.md +72 -0
- package/docs/kbd.json +350 -0
- package/docs/kbd.md +210 -0
- package/docs/link.json +264 -0
- package/docs/link.md +167 -0
- package/docs/list-item.json +463 -0
- package/docs/list-item.md +236 -0
- package/docs/list.json +321 -0
- package/docs/list.md +185 -0
- package/docs/listbox.json +807 -0
- package/docs/listbox.md +413 -0
- package/docs/loading-overlay.json +440 -0
- package/docs/loading-overlay.md +248 -0
- package/docs/markdown.json +461 -0
- package/docs/markdown.md +266 -0
- package/docs/menu.examples.md +1651 -0
- package/docs/menu.json +922 -0
- package/docs/menu.md +155 -0
- package/docs/menubar.json +292 -0
- package/docs/menubar.md +173 -0
- package/docs/message-scroller.json +401 -0
- package/docs/message-scroller.md +212 -0
- package/docs/message.json +862 -0
- package/docs/message.md +473 -0
- package/docs/multi-select.examples.md +1922 -0
- package/docs/multi-select.json +1314 -0
- package/docs/multi-select.md +213 -0
- package/docs/navigation-menu.json +529 -0
- package/docs/navigation-menu.md +329 -0
- package/docs/notification-center.json +664 -0
- package/docs/notification-center.md +372 -0
- package/docs/number-field.examples.md +1078 -0
- package/docs/number-field.json +668 -0
- package/docs/number-field.md +137 -0
- package/docs/otp-input.json +479 -0
- package/docs/otp-input.md +291 -0
- package/docs/page-header.json +574 -0
- package/docs/page-header.md +338 -0
- package/docs/page.json +332 -0
- package/docs/page.md +184 -0
- package/docs/pagination.json +434 -0
- package/docs/pagination.md +238 -0
- package/docs/popover.examples.md +1235 -0
- package/docs/popover.json +656 -0
- package/docs/popover.md +199 -0
- package/docs/progress-indicator.json +501 -0
- package/docs/progress-indicator.md +329 -0
- package/docs/prompt-composer.json +498 -0
- package/docs/prompt-composer.md +278 -0
- package/docs/prose.json +357 -0
- package/docs/prose.md +226 -0
- package/docs/radio-group.examples.md +626 -0
- package/docs/radio-group.json +541 -0
- package/docs/radio-group.md +112 -0
- package/docs/rating.json +1053 -0
- package/docs/rating.md +435 -0
- package/docs/result-state.json +376 -0
- package/docs/result-state.md +286 -0
- package/docs/saved-views.json +384 -0
- package/docs/saved-views.md +242 -0
- package/docs/scroll-area.json +120 -0
- package/docs/scroll-area.md +8 -0
- package/docs/section.json +344 -0
- package/docs/section.md +208 -0
- package/docs/segmented-control.json +429 -0
- package/docs/segmented-control.md +240 -0
- package/docs/select.examples.md +1214 -0
- package/docs/select.json +1147 -0
- package/docs/select.md +199 -0
- package/docs/side-navigation.json +632 -0
- package/docs/side-navigation.md +430 -0
- package/docs/skeleton.json +358 -0
- package/docs/skeleton.md +223 -0
- package/docs/slider.json +522 -0
- package/docs/slider.md +261 -0
- package/docs/sparkline.json +426 -0
- package/docs/sparkline.md +206 -0
- package/docs/split-button.json +361 -0
- package/docs/split-button.md +275 -0
- package/docs/splitter.json +142 -0
- package/docs/splitter.md +14 -0
- package/docs/stack.json +135 -0
- package/docs/stack.md +74 -0
- package/docs/stat-card.json +529 -0
- package/docs/stat-card.md +270 -0
- package/docs/status-indicator.json +314 -0
- package/docs/status-indicator.md +197 -0
- package/docs/stepper.json +451 -0
- package/docs/stepper.md +250 -0
- package/docs/switch.json +451 -0
- package/docs/switch.md +508 -0
- package/docs/table-of-contents.json +553 -0
- package/docs/table-of-contents.md +289 -0
- package/docs/table.examples.md +1981 -0
- package/docs/table.json +1059 -0
- package/docs/table.md +290 -0
- package/docs/tabs.examples.md +1370 -0
- package/docs/tabs.json +661 -0
- package/docs/tabs.md +211 -0
- package/docs/tag.json +813 -0
- package/docs/tag.md +241 -0
- package/docs/tags-input.json +771 -0
- package/docs/tags-input.md +361 -0
- package/docs/text-field.examples.md +821 -0
- package/docs/text-field.json +604 -0
- package/docs/text-field.md +125 -0
- package/docs/textarea.examples.md +612 -0
- package/docs/textarea.json +440 -0
- package/docs/textarea.md +98 -0
- package/docs/time-field.json +584 -0
- package/docs/time-field.md +291 -0
- package/docs/time-picker.json +679 -0
- package/docs/time-picker.md +315 -0
- package/docs/time-range-picker.examples.md +191 -0
- package/docs/time-range-picker.json +924 -0
- package/docs/time-range-picker.md +152 -0
- package/docs/timeline.json +839 -0
- package/docs/timeline.md +401 -0
- package/docs/toast.json +642 -0
- package/docs/toast.md +311 -0
- package/docs/toggle-group.json +417 -0
- package/docs/toggle-group.md +255 -0
- package/docs/toggle.json +326 -0
- package/docs/toggle.md +222 -0
- package/docs/toolbar.json +380 -0
- package/docs/toolbar.md +240 -0
- package/docs/tooltip.examples.md +664 -0
- package/docs/tooltip.json +604 -0
- package/docs/tooltip.md +146 -0
- package/docs/top-navigation.examples.md +287 -0
- package/docs/top-navigation.json +648 -0
- package/docs/top-navigation.md +138 -0
- package/docs/tour.json +759 -0
- package/docs/tour.md +337 -0
- package/docs/transfer.json +746 -0
- package/docs/transfer.md +273 -0
- package/docs/tree.json +918 -0
- package/docs/tree.md +397 -0
- package/docs/typography.json +317 -0
- package/docs/typography.md +107 -0
- package/docs/upload.examples.md +358 -0
- package/docs/upload.json +1103 -0
- package/docs/upload.md +166 -0
- package/docs/visually-hidden.json +71 -0
- package/docs/visually-hidden.md +42 -0
- package/docs/wizard.json +724 -0
- package/docs/wizard.md +295 -0
- package/fesm2022/slotted-angular-accordion.mjs +247 -0
- package/fesm2022/slotted-angular-accordion.mjs.map +1 -0
- package/fesm2022/slotted-angular-action-bar.mjs +639 -0
- package/fesm2022/slotted-angular-action-bar.mjs.map +1 -0
- package/fesm2022/slotted-angular-action-sheet.mjs +749 -0
- package/fesm2022/slotted-angular-action-sheet.mjs.map +1 -0
- package/fesm2022/slotted-angular-alert.mjs +427 -0
- package/fesm2022/slotted-angular-alert.mjs.map +1 -0
- package/fesm2022/slotted-angular-app-shell.mjs +1334 -0
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -0
- package/fesm2022/slotted-angular-aspect-ratio.mjs +63 -0
- package/fesm2022/slotted-angular-aspect-ratio.mjs.map +1 -0
- package/fesm2022/slotted-angular-attachment.mjs +595 -0
- package/fesm2022/slotted-angular-attachment.mjs.map +1 -0
- package/fesm2022/slotted-angular-avatar-group.mjs +230 -0
- package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -0
- package/fesm2022/slotted-angular-avatar.mjs +330 -0
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -0
- package/fesm2022/slotted-angular-badge.mjs +255 -0
- package/fesm2022/slotted-angular-badge.mjs.map +1 -0
- package/fesm2022/slotted-angular-breadcrumb.mjs +544 -0
- package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -0
- package/fesm2022/slotted-angular-button-group.mjs +146 -0
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -0
- package/fesm2022/slotted-angular-button.mjs +692 -0
- package/fesm2022/slotted-angular-button.mjs.map +1 -0
- package/fesm2022/slotted-angular-calendar.mjs +916 -0
- package/fesm2022/slotted-angular-calendar.mjs.map +1 -0
- package/fesm2022/slotted-angular-card.mjs +225 -0
- package/fesm2022/slotted-angular-card.mjs.map +1 -0
- package/fesm2022/slotted-angular-carousel.mjs +840 -0
- package/fesm2022/slotted-angular-carousel.mjs.map +1 -0
- package/fesm2022/slotted-angular-cascader.mjs +1839 -0
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -0
- package/fesm2022/slotted-angular-chart.mjs +974 -0
- package/fesm2022/slotted-angular-chart.mjs.map +1 -0
- package/fesm2022/slotted-angular-checkbox-group.mjs +283 -0
- package/fesm2022/slotted-angular-checkbox-group.mjs.map +1 -0
- package/fesm2022/slotted-angular-checkbox.mjs +468 -0
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -0
- package/fesm2022/slotted-angular-code-block.mjs +476 -0
- package/fesm2022/slotted-angular-code-block.mjs.map +1 -0
- package/fesm2022/slotted-angular-collapsible.mjs +479 -0
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -0
- package/fesm2022/slotted-angular-color-picker.mjs +910 -0
- package/fesm2022/slotted-angular-color-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-column-manager.mjs +1037 -0
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -0
- package/fesm2022/slotted-angular-combobox.mjs +1480 -0
- package/fesm2022/slotted-angular-combobox.mjs.map +1 -0
- package/fesm2022/slotted-angular-command-palette.mjs +1283 -0
- package/fesm2022/slotted-angular-command-palette.mjs.map +1 -0
- package/fesm2022/slotted-angular-container.mjs +105 -0
- package/fesm2022/slotted-angular-container.mjs.map +1 -0
- package/fesm2022/slotted-angular-context-menu.mjs +221 -0
- package/fesm2022/slotted-angular-context-menu.mjs.map +1 -0
- package/fesm2022/slotted-angular-currency-field.mjs +1131 -0
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -0
- package/fesm2022/slotted-angular-dashboard-grid.mjs +1928 -0
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -0
- package/fesm2022/slotted-angular-data-grid.mjs +6697 -0
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -0
- package/fesm2022/slotted-angular-data-list.mjs +1418 -0
- package/fesm2022/slotted-angular-data-list.mjs.map +1 -0
- package/fesm2022/slotted-angular-date-field.mjs +772 -0
- package/fesm2022/slotted-angular-date-field.mjs.map +1 -0
- package/fesm2022/slotted-angular-date-picker.mjs +690 -0
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-date-range-picker.mjs +1150 -0
- package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-datetime-field.mjs +1058 -0
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -0
- package/fesm2022/slotted-angular-datetime-picker.mjs +1362 -0
- package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +1872 -0
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-description-list.mjs +545 -0
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -0
- package/fesm2022/slotted-angular-detail-panel.mjs +754 -0
- package/fesm2022/slotted-angular-detail-panel.mjs.map +1 -0
- package/fesm2022/slotted-angular-dialog.mjs +980 -0
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -0
- package/fesm2022/slotted-angular-divider.mjs +76 -0
- package/fesm2022/slotted-angular-divider.mjs.map +1 -0
- package/fesm2022/slotted-angular-drawer.mjs +1397 -0
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -0
- package/fesm2022/slotted-angular-entity-picker.mjs +1987 -0
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-event-calendar.mjs +2934 -0
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -0
- package/fesm2022/slotted-angular-field-group.mjs +301 -0
- package/fesm2022/slotted-angular-field-group.mjs.map +1 -0
- package/fesm2022/slotted-angular-field.mjs +928 -0
- package/fesm2022/slotted-angular-field.mjs.map +1 -0
- package/fesm2022/slotted-angular-filter-bar.mjs +3107 -0
- package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -0
- package/fesm2022/slotted-angular-form.mjs +592 -0
- package/fesm2022/slotted-angular-form.mjs.map +1 -0
- package/fesm2022/slotted-angular-fullscreen.mjs +314 -0
- package/fesm2022/slotted-angular-fullscreen.mjs.map +1 -0
- package/fesm2022/slotted-angular-grid.mjs +58 -0
- package/fesm2022/slotted-angular-grid.mjs.map +1 -0
- package/fesm2022/slotted-angular-highlight.mjs +123 -0
- package/fesm2022/slotted-angular-highlight.mjs.map +1 -0
- package/fesm2022/slotted-angular-hover-card.mjs +326 -0
- package/fesm2022/slotted-angular-hover-card.mjs.map +1 -0
- package/fesm2022/slotted-angular-i18n.mjs +75 -0
- package/fesm2022/slotted-angular-i18n.mjs.map +1 -0
- package/fesm2022/slotted-angular-icon.mjs +232 -0
- package/fesm2022/slotted-angular-icon.mjs.map +1 -0
- package/fesm2022/slotted-angular-image.mjs +442 -0
- package/fesm2022/slotted-angular-image.mjs.map +1 -0
- package/fesm2022/slotted-angular-import-export-center.mjs +1792 -0
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -0
- package/fesm2022/slotted-angular-inline-message.mjs +280 -0
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -0
- package/fesm2022/slotted-angular-inline.mjs +52 -0
- package/fesm2022/slotted-angular-inline.mjs.map +1 -0
- package/fesm2022/slotted-angular-kbd.mjs +284 -0
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -0
- package/fesm2022/slotted-angular-link.mjs +182 -0
- package/fesm2022/slotted-angular-link.mjs.map +1 -0
- package/fesm2022/slotted-angular-list-item.mjs +367 -0
- package/fesm2022/slotted-angular-list-item.mjs.map +1 -0
- package/fesm2022/slotted-angular-list.mjs +256 -0
- package/fesm2022/slotted-angular-list.mjs.map +1 -0
- package/fesm2022/slotted-angular-listbox.mjs +1274 -0
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -0
- package/fesm2022/slotted-angular-loading-overlay.mjs +451 -0
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -0
- package/fesm2022/slotted-angular-markdown.mjs +914 -0
- package/fesm2022/slotted-angular-markdown.mjs.map +1 -0
- package/fesm2022/slotted-angular-menu.mjs +1211 -0
- package/fesm2022/slotted-angular-menu.mjs.map +1 -0
- package/fesm2022/slotted-angular-menubar.mjs +230 -0
- package/fesm2022/slotted-angular-menubar.mjs.map +1 -0
- package/fesm2022/slotted-angular-message-scroller.mjs +378 -0
- package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -0
- package/fesm2022/slotted-angular-message.mjs +866 -0
- package/fesm2022/slotted-angular-message.mjs.map +1 -0
- package/fesm2022/slotted-angular-multi-select.mjs +1939 -0
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -0
- package/fesm2022/slotted-angular-navigation-menu.mjs +770 -0
- package/fesm2022/slotted-angular-navigation-menu.mjs.map +1 -0
- package/fesm2022/slotted-angular-notification-center.mjs +1172 -0
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -0
- package/fesm2022/slotted-angular-number-field.mjs +966 -0
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -0
- package/fesm2022/slotted-angular-otp-input.mjs +629 -0
- package/fesm2022/slotted-angular-otp-input.mjs.map +1 -0
- package/fesm2022/slotted-angular-page-header.mjs +788 -0
- package/fesm2022/slotted-angular-page-header.mjs.map +1 -0
- package/fesm2022/slotted-angular-page.mjs +255 -0
- package/fesm2022/slotted-angular-page.mjs.map +1 -0
- package/fesm2022/slotted-angular-pagination.mjs +562 -0
- package/fesm2022/slotted-angular-pagination.mjs.map +1 -0
- package/fesm2022/slotted-angular-popover.mjs +799 -0
- package/fesm2022/slotted-angular-popover.mjs.map +1 -0
- package/fesm2022/slotted-angular-progress-indicator.mjs +572 -0
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -0
- package/fesm2022/slotted-angular-prompt-composer.mjs +596 -0
- package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -0
- package/fesm2022/slotted-angular-prose.mjs +314 -0
- package/fesm2022/slotted-angular-prose.mjs.map +1 -0
- package/fesm2022/slotted-angular-radio-group.mjs +469 -0
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -0
- package/fesm2022/slotted-angular-rating.mjs +1174 -0
- package/fesm2022/slotted-angular-rating.mjs.map +1 -0
- package/fesm2022/slotted-angular-result-state.mjs +330 -0
- package/fesm2022/slotted-angular-result-state.mjs.map +1 -0
- package/fesm2022/slotted-angular-saved-views.mjs +877 -0
- package/fesm2022/slotted-angular-saved-views.mjs.map +1 -0
- package/fesm2022/slotted-angular-scroll-area.mjs +294 -0
- package/fesm2022/slotted-angular-scroll-area.mjs.map +1 -0
- package/fesm2022/slotted-angular-section.mjs +266 -0
- package/fesm2022/slotted-angular-section.mjs.map +1 -0
- package/fesm2022/slotted-angular-segmented-control.mjs +454 -0
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -0
- package/fesm2022/slotted-angular-select.mjs +1899 -0
- package/fesm2022/slotted-angular-select.mjs.map +1 -0
- package/fesm2022/slotted-angular-side-navigation.mjs +1042 -0
- package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -0
- package/fesm2022/slotted-angular-skeleton.mjs +316 -0
- package/fesm2022/slotted-angular-skeleton.mjs.map +1 -0
- package/fesm2022/slotted-angular-slider.mjs +586 -0
- package/fesm2022/slotted-angular-slider.mjs.map +1 -0
- package/fesm2022/slotted-angular-sparkline.mjs +235 -0
- package/fesm2022/slotted-angular-sparkline.mjs.map +1 -0
- package/fesm2022/slotted-angular-split-button.mjs +331 -0
- package/fesm2022/slotted-angular-split-button.mjs.map +1 -0
- package/fesm2022/slotted-angular-splitter.mjs +516 -0
- package/fesm2022/slotted-angular-splitter.mjs.map +1 -0
- package/fesm2022/slotted-angular-stack.mjs +48 -0
- package/fesm2022/slotted-angular-stack.mjs.map +1 -0
- package/fesm2022/slotted-angular-stat-card.mjs +478 -0
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -0
- package/fesm2022/slotted-angular-status-indicator.mjs +155 -0
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -0
- package/fesm2022/slotted-angular-stepper.mjs +536 -0
- package/fesm2022/slotted-angular-stepper.mjs.map +1 -0
- package/fesm2022/slotted-angular-switch.mjs +447 -0
- package/fesm2022/slotted-angular-switch.mjs.map +1 -0
- package/fesm2022/slotted-angular-table-of-contents.mjs +750 -0
- package/fesm2022/slotted-angular-table-of-contents.mjs.map +1 -0
- package/fesm2022/slotted-angular-table.mjs +2518 -0
- package/fesm2022/slotted-angular-table.mjs.map +1 -0
- package/fesm2022/slotted-angular-tabs.mjs +829 -0
- package/fesm2022/slotted-angular-tabs.mjs.map +1 -0
- package/fesm2022/slotted-angular-tag.mjs +595 -0
- package/fesm2022/slotted-angular-tag.mjs.map +1 -0
- package/fesm2022/slotted-angular-tags-input.mjs +1211 -0
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -0
- package/fesm2022/slotted-angular-text-field.mjs +674 -0
- package/fesm2022/slotted-angular-text-field.mjs.map +1 -0
- package/fesm2022/slotted-angular-textarea.mjs +275 -0
- package/fesm2022/slotted-angular-textarea.mjs.map +1 -0
- package/fesm2022/slotted-angular-theme.mjs +45 -0
- package/fesm2022/slotted-angular-theme.mjs.map +1 -0
- package/fesm2022/slotted-angular-time-field.mjs +895 -0
- package/fesm2022/slotted-angular-time-field.mjs.map +1 -0
- package/fesm2022/slotted-angular-time-picker.mjs +856 -0
- package/fesm2022/slotted-angular-time-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-time-range-picker.mjs +1534 -0
- package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-timeline.mjs +928 -0
- package/fesm2022/slotted-angular-timeline.mjs.map +1 -0
- package/fesm2022/slotted-angular-toast.mjs +917 -0
- package/fesm2022/slotted-angular-toast.mjs.map +1 -0
- package/fesm2022/slotted-angular-toggle-group.mjs +311 -0
- package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -0
- package/fesm2022/slotted-angular-toggle.mjs +162 -0
- package/fesm2022/slotted-angular-toggle.mjs.map +1 -0
- package/fesm2022/slotted-angular-toolbar.mjs +536 -0
- package/fesm2022/slotted-angular-toolbar.mjs.map +1 -0
- package/fesm2022/slotted-angular-tooltip.mjs +798 -0
- package/fesm2022/slotted-angular-tooltip.mjs.map +1 -0
- package/fesm2022/slotted-angular-top-navigation.mjs +1308 -0
- package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -0
- package/fesm2022/slotted-angular-tour.mjs +1330 -0
- package/fesm2022/slotted-angular-tour.mjs.map +1 -0
- package/fesm2022/slotted-angular-transfer.mjs +1406 -0
- package/fesm2022/slotted-angular-transfer.mjs.map +1 -0
- package/fesm2022/slotted-angular-tree.mjs +1448 -0
- package/fesm2022/slotted-angular-tree.mjs.map +1 -0
- package/fesm2022/slotted-angular-typography.mjs +184 -0
- package/fesm2022/slotted-angular-typography.mjs.map +1 -0
- package/fesm2022/slotted-angular-upload.mjs +1523 -0
- package/fesm2022/slotted-angular-upload.mjs.map +1 -0
- package/fesm2022/slotted-angular-visually-hidden.mjs +32 -0
- package/fesm2022/slotted-angular-visually-hidden.mjs.map +1 -0
- package/fesm2022/slotted-angular-wizard.mjs +1715 -0
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -0
- package/fesm2022/slotted-angular.mjs +4 -0
- package/fesm2022/slotted-angular.mjs.map +1 -0
- package/package.json +537 -3
- package/types/slotted-angular-accordion.d.ts +156 -0
- package/types/slotted-angular-accordion.d.ts.map +1 -0
- package/types/slotted-angular-action-bar.d.ts +291 -0
- package/types/slotted-angular-action-bar.d.ts.map +1 -0
- package/types/slotted-angular-action-sheet.d.ts +294 -0
- package/types/slotted-angular-action-sheet.d.ts.map +1 -0
- package/types/slotted-angular-alert.d.ts +214 -0
- package/types/slotted-angular-alert.d.ts.map +1 -0
- package/types/slotted-angular-app-shell.d.ts +549 -0
- package/types/slotted-angular-app-shell.d.ts.map +1 -0
- package/types/slotted-angular-aspect-ratio.d.ts +57 -0
- package/types/slotted-angular-aspect-ratio.d.ts.map +1 -0
- package/types/slotted-angular-attachment.d.ts +294 -0
- package/types/slotted-angular-attachment.d.ts.map +1 -0
- package/types/slotted-angular-avatar-group.d.ts +119 -0
- package/types/slotted-angular-avatar-group.d.ts.map +1 -0
- package/types/slotted-angular-avatar.d.ts +202 -0
- package/types/slotted-angular-avatar.d.ts.map +1 -0
- package/types/slotted-angular-badge.d.ts +166 -0
- package/types/slotted-angular-badge.d.ts.map +1 -0
- package/types/slotted-angular-breadcrumb.d.ts +251 -0
- package/types/slotted-angular-breadcrumb.d.ts.map +1 -0
- package/types/slotted-angular-button-group.d.ts +89 -0
- package/types/slotted-angular-button-group.d.ts.map +1 -0
- package/types/slotted-angular-button.d.ts +390 -0
- package/types/slotted-angular-button.d.ts.map +1 -0
- package/types/slotted-angular-calendar.d.ts +280 -0
- package/types/slotted-angular-calendar.d.ts.map +1 -0
- package/types/slotted-angular-card.d.ts +140 -0
- package/types/slotted-angular-card.d.ts.map +1 -0
- package/types/slotted-angular-carousel.d.ts +288 -0
- package/types/slotted-angular-carousel.d.ts.map +1 -0
- package/types/slotted-angular-cascader.d.ts +351 -0
- package/types/slotted-angular-cascader.d.ts.map +1 -0
- package/types/slotted-angular-chart.d.ts +319 -0
- package/types/slotted-angular-chart.d.ts.map +1 -0
- package/types/slotted-angular-checkbox-group.d.ts +156 -0
- package/types/slotted-angular-checkbox-group.d.ts.map +1 -0
- package/types/slotted-angular-checkbox.d.ts +197 -0
- package/types/slotted-angular-checkbox.d.ts.map +1 -0
- package/types/slotted-angular-code-block.d.ts +158 -0
- package/types/slotted-angular-code-block.d.ts.map +1 -0
- package/types/slotted-angular-collapsible.d.ts +272 -0
- package/types/slotted-angular-collapsible.d.ts.map +1 -0
- package/types/slotted-angular-color-picker.d.ts +181 -0
- package/types/slotted-angular-color-picker.d.ts.map +1 -0
- package/types/slotted-angular-column-manager.d.ts +200 -0
- package/types/slotted-angular-column-manager.d.ts.map +1 -0
- package/types/slotted-angular-combobox.d.ts +449 -0
- package/types/slotted-angular-combobox.d.ts.map +1 -0
- package/types/slotted-angular-command-palette.d.ts +256 -0
- package/types/slotted-angular-command-palette.d.ts.map +1 -0
- package/types/slotted-angular-container.d.ts +84 -0
- package/types/slotted-angular-container.d.ts.map +1 -0
- package/types/slotted-angular-context-menu.d.ts +84 -0
- package/types/slotted-angular-context-menu.d.ts.map +1 -0
- package/types/slotted-angular-currency-field.d.ts +480 -0
- package/types/slotted-angular-currency-field.d.ts.map +1 -0
- package/types/slotted-angular-dashboard-grid.d.ts +341 -0
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -0
- package/types/slotted-angular-data-grid.d.ts +1077 -0
- package/types/slotted-angular-data-grid.d.ts.map +1 -0
- package/types/slotted-angular-data-list.d.ts +272 -0
- package/types/slotted-angular-data-list.d.ts.map +1 -0
- package/types/slotted-angular-date-field.d.ts +320 -0
- package/types/slotted-angular-date-field.d.ts.map +1 -0
- package/types/slotted-angular-date-picker.d.ts +224 -0
- package/types/slotted-angular-date-picker.d.ts.map +1 -0
- package/types/slotted-angular-date-range-picker.d.ts +310 -0
- package/types/slotted-angular-date-range-picker.d.ts.map +1 -0
- package/types/slotted-angular-datetime-field.d.ts +362 -0
- package/types/slotted-angular-datetime-field.d.ts.map +1 -0
- package/types/slotted-angular-datetime-picker.d.ts +370 -0
- package/types/slotted-angular-datetime-picker.d.ts.map +1 -0
- package/types/slotted-angular-datetime-range-picker.d.ts +459 -0
- package/types/slotted-angular-datetime-range-picker.d.ts.map +1 -0
- package/types/slotted-angular-description-list.d.ts +281 -0
- package/types/slotted-angular-description-list.d.ts.map +1 -0
- package/types/slotted-angular-detail-panel.d.ts +240 -0
- package/types/slotted-angular-detail-panel.d.ts.map +1 -0
- package/types/slotted-angular-dialog.d.ts +497 -0
- package/types/slotted-angular-dialog.d.ts.map +1 -0
- package/types/slotted-angular-divider.d.ts +40 -0
- package/types/slotted-angular-divider.d.ts.map +1 -0
- package/types/slotted-angular-drawer.d.ts +532 -0
- package/types/slotted-angular-drawer.d.ts.map +1 -0
- package/types/slotted-angular-entity-picker.d.ts +338 -0
- package/types/slotted-angular-entity-picker.d.ts.map +1 -0
- package/types/slotted-angular-event-calendar.d.ts +574 -0
- package/types/slotted-angular-event-calendar.d.ts.map +1 -0
- package/types/slotted-angular-field-group.d.ts +152 -0
- package/types/slotted-angular-field-group.d.ts.map +1 -0
- package/types/slotted-angular-field.d.ts +535 -0
- package/types/slotted-angular-field.d.ts.map +1 -0
- package/types/slotted-angular-filter-bar.d.ts +573 -0
- package/types/slotted-angular-filter-bar.d.ts.map +1 -0
- package/types/slotted-angular-form.d.ts +298 -0
- package/types/slotted-angular-form.d.ts.map +1 -0
- package/types/slotted-angular-fullscreen.d.ts +145 -0
- package/types/slotted-angular-fullscreen.d.ts.map +1 -0
- package/types/slotted-angular-grid.d.ts +50 -0
- package/types/slotted-angular-grid.d.ts.map +1 -0
- package/types/slotted-angular-highlight.d.ts +93 -0
- package/types/slotted-angular-highlight.d.ts.map +1 -0
- package/types/slotted-angular-hover-card.d.ts +140 -0
- package/types/slotted-angular-hover-card.d.ts.map +1 -0
- package/types/slotted-angular-i18n.d.ts +46 -0
- package/types/slotted-angular-i18n.d.ts.map +1 -0
- package/types/slotted-angular-icon.d.ts +94 -0
- package/types/slotted-angular-icon.d.ts.map +1 -0
- package/types/slotted-angular-image.d.ts +251 -0
- package/types/slotted-angular-image.d.ts.map +1 -0
- package/types/slotted-angular-import-export-center.d.ts +351 -0
- package/types/slotted-angular-import-export-center.d.ts.map +1 -0
- package/types/slotted-angular-inline-message.d.ts +195 -0
- package/types/slotted-angular-inline-message.d.ts.map +1 -0
- package/types/slotted-angular-inline.d.ts +41 -0
- package/types/slotted-angular-inline.d.ts.map +1 -0
- package/types/slotted-angular-kbd.d.ts +174 -0
- package/types/slotted-angular-kbd.d.ts.map +1 -0
- package/types/slotted-angular-link.d.ts +94 -0
- package/types/slotted-angular-link.d.ts.map +1 -0
- package/types/slotted-angular-list-item.d.ts +210 -0
- package/types/slotted-angular-list-item.d.ts.map +1 -0
- package/types/slotted-angular-list.d.ts +176 -0
- package/types/slotted-angular-list.d.ts.map +1 -0
- package/types/slotted-angular-listbox.d.ts +470 -0
- package/types/slotted-angular-listbox.d.ts.map +1 -0
- package/types/slotted-angular-loading-overlay.d.ts +219 -0
- package/types/slotted-angular-loading-overlay.d.ts.map +1 -0
- package/types/slotted-angular-markdown.d.ts +172 -0
- package/types/slotted-angular-markdown.d.ts.map +1 -0
- package/types/slotted-angular-menu.d.ts +448 -0
- package/types/slotted-angular-menu.d.ts.map +1 -0
- package/types/slotted-angular-menubar.d.ts +90 -0
- package/types/slotted-angular-menubar.d.ts.map +1 -0
- package/types/slotted-angular-message-scroller.d.ts +151 -0
- package/types/slotted-angular-message-scroller.d.ts.map +1 -0
- package/types/slotted-angular-message.d.ts +348 -0
- package/types/slotted-angular-message.d.ts.map +1 -0
- package/types/slotted-angular-multi-select.d.ts +462 -0
- package/types/slotted-angular-multi-select.d.ts.map +1 -0
- package/types/slotted-angular-navigation-menu.d.ts +309 -0
- package/types/slotted-angular-navigation-menu.d.ts.map +1 -0
- package/types/slotted-angular-notification-center.d.ts +318 -0
- package/types/slotted-angular-notification-center.d.ts.map +1 -0
- package/types/slotted-angular-number-field.d.ts +402 -0
- package/types/slotted-angular-number-field.d.ts.map +1 -0
- package/types/slotted-angular-otp-input.d.ts +286 -0
- package/types/slotted-angular-otp-input.d.ts.map +1 -0
- package/types/slotted-angular-page-header.d.ts +334 -0
- package/types/slotted-angular-page-header.d.ts.map +1 -0
- package/types/slotted-angular-page.d.ts +141 -0
- package/types/slotted-angular-page.d.ts.map +1 -0
- package/types/slotted-angular-pagination.d.ts +213 -0
- package/types/slotted-angular-pagination.d.ts.map +1 -0
- package/types/slotted-angular-popover.d.ts +366 -0
- package/types/slotted-angular-popover.d.ts.map +1 -0
- package/types/slotted-angular-progress-indicator.d.ts +312 -0
- package/types/slotted-angular-progress-indicator.d.ts.map +1 -0
- package/types/slotted-angular-prompt-composer.d.ts +242 -0
- package/types/slotted-angular-prompt-composer.d.ts.map +1 -0
- package/types/slotted-angular-prose.d.ts +171 -0
- package/types/slotted-angular-prose.d.ts.map +1 -0
- package/types/slotted-angular-radio-group.d.ts +268 -0
- package/types/slotted-angular-radio-group.d.ts.map +1 -0
- package/types/slotted-angular-rating.d.ts +374 -0
- package/types/slotted-angular-rating.d.ts.map +1 -0
- package/types/slotted-angular-result-state.d.ts +217 -0
- package/types/slotted-angular-result-state.d.ts.map +1 -0
- package/types/slotted-angular-saved-views.d.ts +198 -0
- package/types/slotted-angular-saved-views.d.ts.map +1 -0
- package/types/slotted-angular-scroll-area.d.ts +186 -0
- package/types/slotted-angular-scroll-area.d.ts.map +1 -0
- package/types/slotted-angular-section.d.ts +143 -0
- package/types/slotted-angular-section.d.ts.map +1 -0
- package/types/slotted-angular-segmented-control.d.ts +251 -0
- package/types/slotted-angular-segmented-control.d.ts.map +1 -0
- package/types/slotted-angular-select.d.ts +507 -0
- package/types/slotted-angular-select.d.ts.map +1 -0
- package/types/slotted-angular-side-navigation.d.ts +373 -0
- package/types/slotted-angular-side-navigation.d.ts.map +1 -0
- package/types/slotted-angular-skeleton.d.ts +198 -0
- package/types/slotted-angular-skeleton.d.ts.map +1 -0
- package/types/slotted-angular-slider.d.ts +216 -0
- package/types/slotted-angular-slider.d.ts.map +1 -0
- package/types/slotted-angular-sparkline.d.ts +106 -0
- package/types/slotted-angular-sparkline.d.ts.map +1 -0
- package/types/slotted-angular-split-button.d.ts +180 -0
- package/types/slotted-angular-split-button.d.ts.map +1 -0
- package/types/slotted-angular-splitter.d.ts +206 -0
- package/types/slotted-angular-splitter.d.ts.map +1 -0
- package/types/slotted-angular-stack.d.ts +38 -0
- package/types/slotted-angular-stack.d.ts.map +1 -0
- package/types/slotted-angular-stat-card.d.ts +232 -0
- package/types/slotted-angular-stat-card.d.ts.map +1 -0
- package/types/slotted-angular-status-indicator.d.ts +106 -0
- package/types/slotted-angular-status-indicator.d.ts.map +1 -0
- package/types/slotted-angular-stepper.d.ts +198 -0
- package/types/slotted-angular-stepper.d.ts.map +1 -0
- package/types/slotted-angular-switch.d.ts +243 -0
- package/types/slotted-angular-switch.d.ts.map +1 -0
- package/types/slotted-angular-table-of-contents.d.ts +210 -0
- package/types/slotted-angular-table-of-contents.d.ts.map +1 -0
- package/types/slotted-angular-table.d.ts +888 -0
- package/types/slotted-angular-table.d.ts.map +1 -0
- package/types/slotted-angular-tabs.d.ts +340 -0
- package/types/slotted-angular-tabs.d.ts.map +1 -0
- package/types/slotted-angular-tag.d.ts +279 -0
- package/types/slotted-angular-tag.d.ts.map +1 -0
- package/types/slotted-angular-tags-input.d.ts +302 -0
- package/types/slotted-angular-tags-input.d.ts.map +1 -0
- package/types/slotted-angular-text-field.d.ts +334 -0
- package/types/slotted-angular-text-field.d.ts.map +1 -0
- package/types/slotted-angular-textarea.d.ts +150 -0
- package/types/slotted-angular-textarea.d.ts.map +1 -0
- package/types/slotted-angular-theme.d.ts +26 -0
- package/types/slotted-angular-theme.d.ts.map +1 -0
- package/types/slotted-angular-time-field.d.ts +300 -0
- package/types/slotted-angular-time-field.d.ts.map +1 -0
- package/types/slotted-angular-time-picker.d.ts +260 -0
- package/types/slotted-angular-time-picker.d.ts.map +1 -0
- package/types/slotted-angular-time-range-picker.d.ts +401 -0
- package/types/slotted-angular-time-range-picker.d.ts.map +1 -0
- package/types/slotted-angular-timeline.d.ts +329 -0
- package/types/slotted-angular-timeline.d.ts.map +1 -0
- package/types/slotted-angular-toast.d.ts +340 -0
- package/types/slotted-angular-toast.d.ts.map +1 -0
- package/types/slotted-angular-toggle-group.d.ts +167 -0
- package/types/slotted-angular-toggle-group.d.ts.map +1 -0
- package/types/slotted-angular-toggle.d.ts +106 -0
- package/types/slotted-angular-toggle.d.ts.map +1 -0
- package/types/slotted-angular-toolbar.d.ts +252 -0
- package/types/slotted-angular-toolbar.d.ts.map +1 -0
- package/types/slotted-angular-tooltip.d.ts +388 -0
- package/types/slotted-angular-tooltip.d.ts.map +1 -0
- package/types/slotted-angular-top-navigation.d.ts +442 -0
- package/types/slotted-angular-top-navigation.d.ts.map +1 -0
- package/types/slotted-angular-tour.d.ts +440 -0
- package/types/slotted-angular-tour.d.ts.map +1 -0
- package/types/slotted-angular-transfer.d.ts +296 -0
- package/types/slotted-angular-transfer.d.ts.map +1 -0
- package/types/slotted-angular-tree.d.ts +499 -0
- package/types/slotted-angular-tree.d.ts.map +1 -0
- package/types/slotted-angular-typography.d.ts +89 -0
- package/types/slotted-angular-typography.d.ts.map +1 -0
- package/types/slotted-angular-upload.d.ts +365 -0
- package/types/slotted-angular-upload.d.ts.map +1 -0
- package/types/slotted-angular-visually-hidden.d.ts +19 -0
- package/types/slotted-angular-visually-hidden.d.ts.map +1 -0
- package/types/slotted-angular-wizard.d.ts +441 -0
- package/types/slotted-angular-wizard.d.ts.map +1 -0
- package/types/slotted-angular.d.ts +3 -0
- package/types/slotted-angular.d.ts.map +1 -0
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, inject, input, booleanAttribute, output, computed, signal, ElementRef, effect, untracked, DestroyRef, ViewEncapsulation, ChangeDetectionStrategy, Component, HostAttributeToken, afterNextRender, Directive } from '@angular/core';
|
|
3
|
+
import { injectMessages } from '@slotted/angular/i18n';
|
|
4
|
+
import { SlGlyph, SlIcon } from '@slotted/angular/icon';
|
|
5
|
+
import { messageScrollerMessages } from '@slotted/core/i18n';
|
|
6
|
+
import { getLiveAnnouncer } from '@slotted/core/live-announcer';
|
|
7
|
+
import { createMessageScroller } from '@slotted/core/message-scroller';
|
|
8
|
+
|
|
9
|
+
const FALLBACK = {
|
|
10
|
+
follow: false,
|
|
11
|
+
defaultPosition: 'last-anchor',
|
|
12
|
+
peek: 64,
|
|
13
|
+
scrollMargin: 0,
|
|
14
|
+
};
|
|
15
|
+
const MESSAGE_SCROLLER_DEFAULTS = new InjectionToken('slotted message-scroller defaults', { providedIn: 'root', factory: () => FALLBACK });
|
|
16
|
+
/**
|
|
17
|
+
* An application decides once whether its conversations follow a reply,
|
|
18
|
+
* where a saved one opens, and how much of the previous turn stays in view.
|
|
19
|
+
* A scroller that states any of them wins. Its words come from the language
|
|
20
|
+
* in force (`provideSlotted`).
|
|
21
|
+
*/
|
|
22
|
+
function provideMessageScrollerDefaults(defaults) {
|
|
23
|
+
return {
|
|
24
|
+
provide: MESSAGE_SCROLLER_DEFAULTS,
|
|
25
|
+
useFactory: () => ({
|
|
26
|
+
follow: defaults.follow ?? FALLBACK.follow,
|
|
27
|
+
defaultPosition: defaults.defaultPosition ?? FALLBACK.defaultPosition,
|
|
28
|
+
peek: defaults.peek ?? FALLBACK.peek,
|
|
29
|
+
scrollMargin: defaults.scrollMargin ?? FALLBACK.scrollMargin,
|
|
30
|
+
}),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function injectMessageScrollerDefaults() {
|
|
34
|
+
return inject(MESSAGE_SCROLLER_DEFAULTS);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The region a conversation scrolls in, on the `div` the page wrote. It fills
|
|
39
|
+
* a parent whose height is bounded; the viewport inside it scrolls and the
|
|
40
|
+
* jump control stands over it.
|
|
41
|
+
*
|
|
42
|
+
* The behaviour is `@slotted/core/message-scroller`: where a saved
|
|
43
|
+
* conversation opens, whether new words pull the view (`follow`), where a
|
|
44
|
+
* turn the reader sends stands (`anchor` on the item), older rows arriving
|
|
45
|
+
* above without moving the reader, and jumps — `scrollToMessage()` on the
|
|
46
|
+
* instance (`#chat="slMessageScroller"`). The engine writes the scroll state
|
|
47
|
+
* on the DOM itself; the instance's `state` signal is what the jump control
|
|
48
|
+
* reads.
|
|
49
|
+
*/
|
|
50
|
+
class SlMessageScroller {
|
|
51
|
+
follow = input(undefined, { ...(ngDevMode ? { debugName: "follow" } : /* istanbul ignore next */ {}), transform: (value) => (value === undefined ? undefined : booleanAttribute(value)) });
|
|
52
|
+
defaultPosition = input(undefined, /* @ts-ignore */
|
|
53
|
+
...(ngDevMode ? [{ debugName: "defaultPosition" }] : /* istanbul ignore next */ []));
|
|
54
|
+
edgeThreshold = input(undefined, /* @ts-ignore */
|
|
55
|
+
...(ngDevMode ? [{ debugName: "edgeThreshold" }] : /* istanbul ignore next */ []));
|
|
56
|
+
scrollMargin = input(undefined, /* @ts-ignore */
|
|
57
|
+
...(ngDevMode ? [{ debugName: "scrollMargin" }] : /* istanbul ignore next */ []));
|
|
58
|
+
peek = input(undefined, /* @ts-ignore */
|
|
59
|
+
...(ngDevMode ? [{ debugName: "peek" }] : /* istanbul ignore next */ []));
|
|
60
|
+
preserveOnPrepend = input(undefined, /* @ts-ignore */
|
|
61
|
+
...(ngDevMode ? [{ debugName: "preserveOnPrepend" }] : /* istanbul ignore next */ []));
|
|
62
|
+
/** A reply is streaming: the log is `aria-busy` and the change is announced once each way. */
|
|
63
|
+
busy = input(false, { ...(ngDevMode ? { debugName: "busy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
64
|
+
/**
|
|
65
|
+
* Words laid over the catalog of the language in force, key by key: the
|
|
66
|
+
* region's name, the jump controls, the unread line, the loader and the
|
|
67
|
+
* two announcements of a streaming reply.
|
|
68
|
+
*/
|
|
69
|
+
messages = input(undefined, /* @ts-ignore */
|
|
70
|
+
...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
|
|
71
|
+
/** The reader reached the top — the moment to ask for older messages. */
|
|
72
|
+
reachStart = output();
|
|
73
|
+
anchorChange = output();
|
|
74
|
+
scrollableChange = output();
|
|
75
|
+
defaults = injectMessageScrollerDefaults();
|
|
76
|
+
/** The family's words in the language in force, with this scroller's `messages` laid over them. */
|
|
77
|
+
t = injectMessages(messageScrollerMessages, this.messages);
|
|
78
|
+
resolvedPosition = computed(() => this.defaultPosition() ?? this.defaults.defaultPosition, /* @ts-ignore */
|
|
79
|
+
...(ngDevMode ? [{ debugName: "resolvedPosition" }] : /* istanbul ignore next */ []));
|
|
80
|
+
engine = createMessageScroller({
|
|
81
|
+
defaultPosition: this.defaults.defaultPosition,
|
|
82
|
+
onAnchorChange: (id, reason) => this.anchorChange.emit({ id, reason }),
|
|
83
|
+
onReachStart: (reason) => this.reachStart.emit(reason),
|
|
84
|
+
onScrollableChange: (edges) => this.scrollableChange.emit(edges),
|
|
85
|
+
});
|
|
86
|
+
/** The engine's state: which edges the viewport can scroll toward, the count of rows out of view. */
|
|
87
|
+
state = signal(this.engine.getState(), /* @ts-ignore */
|
|
88
|
+
...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
89
|
+
root = inject(ElementRef).nativeElement;
|
|
90
|
+
viewport = null;
|
|
91
|
+
content = null;
|
|
92
|
+
disconnect = null;
|
|
93
|
+
constructor() {
|
|
94
|
+
const unsubscribe = this.engine.subscribe(() => this.state.set(this.engine.getState()));
|
|
95
|
+
effect(() => {
|
|
96
|
+
this.engine.update({
|
|
97
|
+
defaultPosition: this.resolvedPosition(),
|
|
98
|
+
edgeThreshold: this.edgeThreshold(),
|
|
99
|
+
follow: this.follow() ?? this.defaults.follow,
|
|
100
|
+
peek: this.peek() ?? this.defaults.peek,
|
|
101
|
+
preserveOnPrepend: this.preserveOnPrepend(),
|
|
102
|
+
scrollMargin: this.scrollMargin() ?? this.defaults.scrollMargin,
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
let wasBusy = null;
|
|
106
|
+
effect(() => {
|
|
107
|
+
const busy = this.busy();
|
|
108
|
+
if (wasBusy !== null && wasBusy !== busy) {
|
|
109
|
+
getLiveAnnouncer().announce(untracked(() => (busy ? this.t('busy') : this.t('idle'))));
|
|
110
|
+
}
|
|
111
|
+
wasBusy = busy;
|
|
112
|
+
});
|
|
113
|
+
inject(DestroyRef).onDestroy(() => {
|
|
114
|
+
unsubscribe();
|
|
115
|
+
this.disconnect?.();
|
|
116
|
+
this.engine.destroy();
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
/** @internal */ registerViewport(node) {
|
|
120
|
+
this.viewport = node;
|
|
121
|
+
this.connect();
|
|
122
|
+
}
|
|
123
|
+
/** @internal */ registerContent(node) {
|
|
124
|
+
this.content = node;
|
|
125
|
+
this.connect();
|
|
126
|
+
}
|
|
127
|
+
connect() {
|
|
128
|
+
if (this.viewport === null || this.content === null)
|
|
129
|
+
return;
|
|
130
|
+
this.disconnect?.();
|
|
131
|
+
this.disconnect = this.engine.connect({
|
|
132
|
+
content: this.content,
|
|
133
|
+
root: this.root,
|
|
134
|
+
viewport: this.viewport,
|
|
135
|
+
});
|
|
136
|
+
this.state.set(this.engine.getState());
|
|
137
|
+
}
|
|
138
|
+
scrollToMessage(id, options) {
|
|
139
|
+
return this.engine.scrollToMessage(id, options);
|
|
140
|
+
}
|
|
141
|
+
scrollToEnd(options) {
|
|
142
|
+
return this.engine.scrollToEnd(options);
|
|
143
|
+
}
|
|
144
|
+
scrollToStart(options) {
|
|
145
|
+
return this.engine.scrollToStart(options);
|
|
146
|
+
}
|
|
147
|
+
/** Moves focus to the viewport, which scrolls from the keyboard. */
|
|
148
|
+
focus() {
|
|
149
|
+
this.viewport?.focus();
|
|
150
|
+
}
|
|
151
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScroller, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
152
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlMessageScroller, isStandalone: true, selector: "[slMessageScroller]", inputs: { follow: { classPropertyName: "follow", publicName: "follow", isSignal: true, isRequired: false, transformFunction: null }, defaultPosition: { classPropertyName: "defaultPosition", publicName: "defaultPosition", isSignal: true, isRequired: false, transformFunction: null }, edgeThreshold: { classPropertyName: "edgeThreshold", publicName: "edgeThreshold", isSignal: true, isRequired: false, transformFunction: null }, scrollMargin: { classPropertyName: "scrollMargin", publicName: "scrollMargin", isSignal: true, isRequired: false, transformFunction: null }, peek: { classPropertyName: "peek", publicName: "peek", isSignal: true, isRequired: false, transformFunction: null }, preserveOnPrepend: { classPropertyName: "preserveOnPrepend", publicName: "preserveOnPrepend", isSignal: true, isRequired: false, transformFunction: null }, busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { reachStart: "reachStart", anchorChange: "anchorChange", scrollableChange: "scrollableChange" }, host: { attributes: { "data-ui": "message-scroller", "data-part": "root" } }, exportAs: ["slMessageScroller"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["@layer slotted.components{[data-ui=message-scroller][data-part=root]{--_inset: var(--slotted-message-scroller-padding, var(--slotted-space-6, 1rem));--_gap: var(--slotted-message-scroller-gap, calc(var(--slotted-control-gap-md, 8px) * 2.5));--_fade: var(--slotted-message-scroller-fade, var(--slotted-space-6, 1rem));display:flex;flex-direction:column;position:relative;box-sizing:border-box;block-size:100%;min-block-size:0;min-inline-size:0;overflow:hidden;color:var(--slotted-text);font-family:var(--slotted-font-family-sans, sans-serif)}[data-ui=message-scroller] [data-part=viewport]{position:relative;flex:1 1 auto;box-sizing:border-box;min-block-size:0;overflow-x:hidden;overflow-y:auto;overflow-anchor:none;overscroll-behavior:contain;scrollbar-color:var(--slotted-border-strong) transparent;scrollbar-gutter:stable;scrollbar-width:thin}[data-ui=message-scroller] [data-part=viewport][data-scrollable~=start]{-webkit-mask-image:linear-gradient(to bottom,transparent,#000 var(--_fade));mask-image:linear-gradient(to bottom,transparent,#000 var(--_fade))}[data-ui=message-scroller] [data-part=viewport][data-scrollable~=end]{-webkit-mask-image:linear-gradient(to top,transparent,#000 var(--_fade));mask-image:linear-gradient(to top,transparent,#000 var(--_fade))}[data-ui=message-scroller] [data-part=viewport][data-scrollable~=start][data-scrollable~=end]{-webkit-mask-image:linear-gradient(to bottom,transparent,#000 var(--_fade),#000 calc(100% - var(--_fade)),transparent);mask-image:linear-gradient(to bottom,transparent,#000 var(--_fade),#000 calc(100% - var(--_fade)),transparent)}[data-ui=message-scroller] [data-part=viewport][data-pending]{visibility:hidden}[data-ui=message-scroller] [data-part=viewport]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color);outline-offset:calc(var(--slotted-focus-ring-offset, 2px) * -1)}[data-ui=message-scroller] [data-part=content]{display:flex;flex-direction:column;justify-content:flex-end;gap:var(--_gap);box-sizing:border-box;min-block-size:100%;padding:var(--_inset);padding-block-end:calc(var(--_inset) + var(--slotted-message-scroller-room, 0px))}[data-ui=message-scroller] [data-part=item]{min-inline-size:0;border-radius:var(--slotted-radius-md, 6px);content-visibility:auto;contain-intrinsic-size:auto 6rem;transition:opacity var(--slotted-duration-medium) var(--slotted-easing-enter, ease-out),translate var(--slotted-duration-medium) var(--slotted-easing-enter, ease-out),background-color var(--slotted-duration-long) var(--slotted-easing-standard, ease),box-shadow var(--slotted-duration-long) var(--slotted-easing-standard, ease)}@starting-style{[data-ui=message-scroller] [data-part=item]{opacity:0;translate:0 var(--slotted-space-4, .5rem)}}[data-ui=message-scroller] [data-part=item][data-current]{background-color:var(--slotted-tone-accent-subtle-hover);box-shadow:0 0 0 var(--slotted-space-3, .375rem) var(--slotted-tone-accent-subtle-hover)}[data-ui=message-scroller] :is([data-part=separator],[data-part=unread]){display:flex;align-items:center;gap:var(--slotted-space-4, .5rem);color:var(--slotted-text-muted);font-size:var(--slotted-font-size-xs, .75rem);font-weight:var(--slotted-font-weight-medium, 500);line-height:round(up,calc(var(--slotted-font-size-xs, .75rem) * var(--slotted-line-height-xs, 1.4)),1px)}[data-ui=message-scroller] :is([data-part=separator],[data-part=unread]):before,[data-ui=message-scroller] :is([data-part=separator],[data-part=unread]):after{content:\"\";flex:1 1 0;min-inline-size:var(--slotted-space-6, 1rem);border-block-start:var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle)}[data-ui=message-scroller] [data-part=item]:has(>[data-part=separator][data-sticky]),[data-ui=message-scroller] [data-part=separator][data-sticky]:not([data-part=item]>*){position:sticky;inset-block-start:var(--_fade);z-index:1;content-visibility:visible}[data-ui=message-scroller] [data-part=separator][data-sticky]:before,[data-ui=message-scroller] [data-part=separator][data-sticky]:after{content:none}[data-ui=message-scroller] [data-part=separator][data-sticky]{justify-content:center}[data-ui=message-scroller] [data-part=separator][data-sticky]>*{box-shadow:var(--slotted-shadow-xs)}[data-ui=message-scroller] [data-part=separator]>*{padding-block:var(--slotted-space-1, .125rem);padding-inline:var(--slotted-space-4, .5rem);border:var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle);border-radius:var(--slotted-radius-full, 9999px);background-color:var(--slotted-surface)}[data-ui=message-scroller] [data-part=unread]{color:var(--slotted-tone-accent-text)}[data-ui=message-scroller] [data-part=unread]:before,[data-ui=message-scroller] [data-part=unread]:after{border-block-start-color:var(--slotted-tone-accent-border)}[data-ui=message-scroller] [data-part=loader]{display:flex;align-items:center;justify-content:center;gap:var(--slotted-space-3, .375rem);padding-block:var(--slotted-space-2, .25rem);color:var(--slotted-text-muted);font-size:var(--slotted-control-font-size-md, 13px)}[data-ui=message-scroller] [data-part=loader]>[data-ui=spinner]{--slotted-spinner-size: var(--slotted-control-icon-size-sm, 14px)}[data-ui=message-scroller] [data-part=jump]{--_size: var(--slotted-message-scroller-jump-size, var(--slotted-control-height-md, 34px));--_ground: var(--slotted-surface-raised);--_ink: var(--slotted-text);--_shift: var(--slotted-space-4, .5rem);display:inline-flex;align-items:center;justify-content:center;gap:var(--slotted-space-2, .25rem);position:absolute;inset-block-end:var(--_inset);inset-inline-start:50%;z-index:2;box-sizing:border-box;min-inline-size:var(--_size);block-size:var(--_size);margin:0;padding:0;border:var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle);border-radius:var(--slotted-radius-full, 9999px);background-color:var(--_ground);box-shadow:var(--slotted-shadow-md);color:var(--_ink);font:inherit;font-size:var(--slotted-control-font-size-md, 13px);font-weight:var(--slotted-font-weight-medium, 500);line-height:1;white-space:nowrap;cursor:pointer;translate:-50% 0;transition:opacity var(--slotted-duration-medium) var(--slotted-easing-enter, ease-out),translate var(--slotted-duration-medium) var(--slotted-easing-enter, ease-out),background-color var(--slotted-duration-short) var(--slotted-easing-standard, ease)}[data-ui=message-scroller] [data-part=jump]:dir(rtl){translate:50% 0}[data-ui=message-scroller] [data-part=jump][data-direction=start]{inset-block:var(--_inset) auto;--_shift: calc(var(--slotted-space-4, .5rem) * -1)}[data-ui=message-scroller] [data-part=jump]>[data-ui=icon]{--slotted-icon-size: var(--slotted-control-icon-size-md, 16px);rotate:-90deg}[data-ui=message-scroller] [data-part=jump][data-direction=start]>[data-ui=icon]{rotate:90deg}[data-ui=message-scroller] [data-part=jump]:has(>[data-part=jump-count]){padding-inline:var(--slotted-space-4, .5rem) var(--slotted-space-5, .75rem)}[data-ui=message-scroller] [data-part=jump-count]{font-variant-numeric:tabular-nums}[data-ui=message-scroller] [data-part=jump][data-active=false]{opacity:0;pointer-events:none;translate:-50% var(--_shift);transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit, ease-in),translate var(--slotted-duration-short) var(--slotted-easing-exit, ease-in)}[data-ui=message-scroller] [data-part=jump][data-active=false]:dir(rtl){translate:50% var(--_shift)}[data-ui=message-scroller] [data-part=jump]:hover:not(:disabled):not([data-disabled]){background-color:color-mix(in oklab,var(--_ink) var(--slotted-message-scroller-state-layer-hover, 6%),var(--_ground))}[data-ui=message-scroller] [data-part=jump]:active:not(:disabled):not([data-disabled]){background-color:color-mix(in oklab,var(--_ink) var(--slotted-message-scroller-state-layer-active, 12%),var(--_ground));translate:-50% var(--slotted-space-1, .125rem)}[data-ui=message-scroller] [data-part=jump]:active:not(:disabled):not([data-disabled]):dir(rtl){translate:50% var(--slotted-space-1, .125rem)}[data-ui=message-scroller] [data-part=jump]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color);outline-offset:var(--slotted-focus-ring-offset, 2px)}@media(forced-colors:active){[data-ui=message-scroller] [data-part=item][data-current]{outline:var(--slotted-border-width-thick, 2px) solid Highlight;outline-offset:var(--slotted-space-2, .25rem)}[data-ui=message-scroller] [data-part=viewport][data-scrollable]{-webkit-mask-image:none;mask-image:none}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
153
|
+
}
|
|
154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScroller, decorators: [{
|
|
155
|
+
type: Component,
|
|
156
|
+
args: [{ selector: '[slMessageScroller]', standalone: true, exportAs: 'slMessageScroller', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { 'data-ui': 'message-scroller', 'data-part': 'root' }, styles: ["@layer slotted.components{[data-ui=message-scroller][data-part=root]{--_inset: var(--slotted-message-scroller-padding, var(--slotted-space-6, 1rem));--_gap: var(--slotted-message-scroller-gap, calc(var(--slotted-control-gap-md, 8px) * 2.5));--_fade: var(--slotted-message-scroller-fade, var(--slotted-space-6, 1rem));display:flex;flex-direction:column;position:relative;box-sizing:border-box;block-size:100%;min-block-size:0;min-inline-size:0;overflow:hidden;color:var(--slotted-text);font-family:var(--slotted-font-family-sans, sans-serif)}[data-ui=message-scroller] [data-part=viewport]{position:relative;flex:1 1 auto;box-sizing:border-box;min-block-size:0;overflow-x:hidden;overflow-y:auto;overflow-anchor:none;overscroll-behavior:contain;scrollbar-color:var(--slotted-border-strong) transparent;scrollbar-gutter:stable;scrollbar-width:thin}[data-ui=message-scroller] [data-part=viewport][data-scrollable~=start]{-webkit-mask-image:linear-gradient(to bottom,transparent,#000 var(--_fade));mask-image:linear-gradient(to bottom,transparent,#000 var(--_fade))}[data-ui=message-scroller] [data-part=viewport][data-scrollable~=end]{-webkit-mask-image:linear-gradient(to top,transparent,#000 var(--_fade));mask-image:linear-gradient(to top,transparent,#000 var(--_fade))}[data-ui=message-scroller] [data-part=viewport][data-scrollable~=start][data-scrollable~=end]{-webkit-mask-image:linear-gradient(to bottom,transparent,#000 var(--_fade),#000 calc(100% - var(--_fade)),transparent);mask-image:linear-gradient(to bottom,transparent,#000 var(--_fade),#000 calc(100% - var(--_fade)),transparent)}[data-ui=message-scroller] [data-part=viewport][data-pending]{visibility:hidden}[data-ui=message-scroller] [data-part=viewport]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color);outline-offset:calc(var(--slotted-focus-ring-offset, 2px) * -1)}[data-ui=message-scroller] [data-part=content]{display:flex;flex-direction:column;justify-content:flex-end;gap:var(--_gap);box-sizing:border-box;min-block-size:100%;padding:var(--_inset);padding-block-end:calc(var(--_inset) + var(--slotted-message-scroller-room, 0px))}[data-ui=message-scroller] [data-part=item]{min-inline-size:0;border-radius:var(--slotted-radius-md, 6px);content-visibility:auto;contain-intrinsic-size:auto 6rem;transition:opacity var(--slotted-duration-medium) var(--slotted-easing-enter, ease-out),translate var(--slotted-duration-medium) var(--slotted-easing-enter, ease-out),background-color var(--slotted-duration-long) var(--slotted-easing-standard, ease),box-shadow var(--slotted-duration-long) var(--slotted-easing-standard, ease)}@starting-style{[data-ui=message-scroller] [data-part=item]{opacity:0;translate:0 var(--slotted-space-4, .5rem)}}[data-ui=message-scroller] [data-part=item][data-current]{background-color:var(--slotted-tone-accent-subtle-hover);box-shadow:0 0 0 var(--slotted-space-3, .375rem) var(--slotted-tone-accent-subtle-hover)}[data-ui=message-scroller] :is([data-part=separator],[data-part=unread]){display:flex;align-items:center;gap:var(--slotted-space-4, .5rem);color:var(--slotted-text-muted);font-size:var(--slotted-font-size-xs, .75rem);font-weight:var(--slotted-font-weight-medium, 500);line-height:round(up,calc(var(--slotted-font-size-xs, .75rem) * var(--slotted-line-height-xs, 1.4)),1px)}[data-ui=message-scroller] :is([data-part=separator],[data-part=unread]):before,[data-ui=message-scroller] :is([data-part=separator],[data-part=unread]):after{content:\"\";flex:1 1 0;min-inline-size:var(--slotted-space-6, 1rem);border-block-start:var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle)}[data-ui=message-scroller] [data-part=item]:has(>[data-part=separator][data-sticky]),[data-ui=message-scroller] [data-part=separator][data-sticky]:not([data-part=item]>*){position:sticky;inset-block-start:var(--_fade);z-index:1;content-visibility:visible}[data-ui=message-scroller] [data-part=separator][data-sticky]:before,[data-ui=message-scroller] [data-part=separator][data-sticky]:after{content:none}[data-ui=message-scroller] [data-part=separator][data-sticky]{justify-content:center}[data-ui=message-scroller] [data-part=separator][data-sticky]>*{box-shadow:var(--slotted-shadow-xs)}[data-ui=message-scroller] [data-part=separator]>*{padding-block:var(--slotted-space-1, .125rem);padding-inline:var(--slotted-space-4, .5rem);border:var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle);border-radius:var(--slotted-radius-full, 9999px);background-color:var(--slotted-surface)}[data-ui=message-scroller] [data-part=unread]{color:var(--slotted-tone-accent-text)}[data-ui=message-scroller] [data-part=unread]:before,[data-ui=message-scroller] [data-part=unread]:after{border-block-start-color:var(--slotted-tone-accent-border)}[data-ui=message-scroller] [data-part=loader]{display:flex;align-items:center;justify-content:center;gap:var(--slotted-space-3, .375rem);padding-block:var(--slotted-space-2, .25rem);color:var(--slotted-text-muted);font-size:var(--slotted-control-font-size-md, 13px)}[data-ui=message-scroller] [data-part=loader]>[data-ui=spinner]{--slotted-spinner-size: var(--slotted-control-icon-size-sm, 14px)}[data-ui=message-scroller] [data-part=jump]{--_size: var(--slotted-message-scroller-jump-size, var(--slotted-control-height-md, 34px));--_ground: var(--slotted-surface-raised);--_ink: var(--slotted-text);--_shift: var(--slotted-space-4, .5rem);display:inline-flex;align-items:center;justify-content:center;gap:var(--slotted-space-2, .25rem);position:absolute;inset-block-end:var(--_inset);inset-inline-start:50%;z-index:2;box-sizing:border-box;min-inline-size:var(--_size);block-size:var(--_size);margin:0;padding:0;border:var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle);border-radius:var(--slotted-radius-full, 9999px);background-color:var(--_ground);box-shadow:var(--slotted-shadow-md);color:var(--_ink);font:inherit;font-size:var(--slotted-control-font-size-md, 13px);font-weight:var(--slotted-font-weight-medium, 500);line-height:1;white-space:nowrap;cursor:pointer;translate:-50% 0;transition:opacity var(--slotted-duration-medium) var(--slotted-easing-enter, ease-out),translate var(--slotted-duration-medium) var(--slotted-easing-enter, ease-out),background-color var(--slotted-duration-short) var(--slotted-easing-standard, ease)}[data-ui=message-scroller] [data-part=jump]:dir(rtl){translate:50% 0}[data-ui=message-scroller] [data-part=jump][data-direction=start]{inset-block:var(--_inset) auto;--_shift: calc(var(--slotted-space-4, .5rem) * -1)}[data-ui=message-scroller] [data-part=jump]>[data-ui=icon]{--slotted-icon-size: var(--slotted-control-icon-size-md, 16px);rotate:-90deg}[data-ui=message-scroller] [data-part=jump][data-direction=start]>[data-ui=icon]{rotate:90deg}[data-ui=message-scroller] [data-part=jump]:has(>[data-part=jump-count]){padding-inline:var(--slotted-space-4, .5rem) var(--slotted-space-5, .75rem)}[data-ui=message-scroller] [data-part=jump-count]{font-variant-numeric:tabular-nums}[data-ui=message-scroller] [data-part=jump][data-active=false]{opacity:0;pointer-events:none;translate:-50% var(--_shift);transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit, ease-in),translate var(--slotted-duration-short) var(--slotted-easing-exit, ease-in)}[data-ui=message-scroller] [data-part=jump][data-active=false]:dir(rtl){translate:50% var(--_shift)}[data-ui=message-scroller] [data-part=jump]:hover:not(:disabled):not([data-disabled]){background-color:color-mix(in oklab,var(--_ink) var(--slotted-message-scroller-state-layer-hover, 6%),var(--_ground))}[data-ui=message-scroller] [data-part=jump]:active:not(:disabled):not([data-disabled]){background-color:color-mix(in oklab,var(--_ink) var(--slotted-message-scroller-state-layer-active, 12%),var(--_ground));translate:-50% var(--slotted-space-1, .125rem)}[data-ui=message-scroller] [data-part=jump]:active:not(:disabled):not([data-disabled]):dir(rtl){translate:50% var(--slotted-space-1, .125rem)}[data-ui=message-scroller] [data-part=jump]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color);outline-offset:var(--slotted-focus-ring-offset, 2px)}@media(forced-colors:active){[data-ui=message-scroller] [data-part=item][data-current]{outline:var(--slotted-border-width-thick, 2px) solid Highlight;outline-offset:var(--slotted-space-2, .25rem)}[data-ui=message-scroller] [data-part=viewport][data-scrollable]{-webkit-mask-image:none;mask-image:none}}}\n"] }]
|
|
157
|
+
}], ctorParameters: () => [], propDecorators: { follow: [{ type: i0.Input, args: [{ isSignal: true, alias: "follow", required: false }] }], defaultPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultPosition", required: false }] }], edgeThreshold: [{ type: i0.Input, args: [{ isSignal: true, alias: "edgeThreshold", required: false }] }], scrollMargin: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollMargin", required: false }] }], peek: [{ type: i0.Input, args: [{ isSignal: true, alias: "peek", required: false }] }], preserveOnPrepend: [{ type: i0.Input, args: [{ isSignal: true, alias: "preserveOnPrepend", required: false }] }], busy: [{ type: i0.Input, args: [{ isSignal: true, alias: "busy", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], reachStart: [{ type: i0.Output, args: ["reachStart"] }], anchorChange: [{ type: i0.Output, args: ["anchorChange"] }], scrollableChange: [{ type: i0.Output, args: ["scrollableChange"] }] } });
|
|
158
|
+
function scroller() {
|
|
159
|
+
const owner = inject(SlMessageScroller, { optional: true });
|
|
160
|
+
if (owner === null)
|
|
161
|
+
throw new Error('A message-scroller part is rendered outside slMessageScroller.');
|
|
162
|
+
return owner;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* The element that scrolls: a labelled region that takes focus, so the
|
|
166
|
+
* keyboard scrolls it; hidden, laid out, until the opening position applies.
|
|
167
|
+
*/
|
|
168
|
+
class SlMessageScrollerViewport {
|
|
169
|
+
owner = scroller();
|
|
170
|
+
tabindex = inject(new HostAttributeToken('tabindex'), { optional: true }) ?? '0';
|
|
171
|
+
written = inject(new HostAttributeToken('aria-label'), { optional: true });
|
|
172
|
+
label = computed(() => this.written ?? this.owner.t('label'), /* @ts-ignore */
|
|
173
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
174
|
+
constructor() {
|
|
175
|
+
const host = inject(ElementRef).nativeElement;
|
|
176
|
+
if (this.owner.resolvedPosition() !== 'start')
|
|
177
|
+
host.setAttribute('data-pending', '');
|
|
178
|
+
afterNextRender(() => this.owner.registerViewport(host));
|
|
179
|
+
}
|
|
180
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScrollerViewport, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
181
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlMessageScrollerViewport, isStandalone: true, selector: "[slMessageScrollerViewport]", host: { attributes: { "data-part": "viewport", "role": "region" }, properties: { "attr.tabindex": "tabindex", "attr.aria-label": "label()" } }, ngImport: i0 });
|
|
182
|
+
}
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScrollerViewport, decorators: [{
|
|
184
|
+
type: Directive,
|
|
185
|
+
args: [{
|
|
186
|
+
selector: '[slMessageScrollerViewport]',
|
|
187
|
+
standalone: true,
|
|
188
|
+
host: {
|
|
189
|
+
'data-part': 'viewport',
|
|
190
|
+
role: 'region',
|
|
191
|
+
'[attr.tabindex]': 'tabindex',
|
|
192
|
+
'[attr.aria-label]': 'label()',
|
|
193
|
+
},
|
|
194
|
+
}]
|
|
195
|
+
}], ctorParameters: () => [] });
|
|
196
|
+
/** The rows: a WAI-ARIA `log`; `busy` on the scroller holds arrivals back until a reply is whole. */
|
|
197
|
+
class SlMessageScrollerContent {
|
|
198
|
+
owner = scroller();
|
|
199
|
+
constructor() {
|
|
200
|
+
const host = inject(ElementRef).nativeElement;
|
|
201
|
+
afterNextRender(() => this.owner.registerContent(host));
|
|
202
|
+
}
|
|
203
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScrollerContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
204
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlMessageScrollerContent, isStandalone: true, selector: "[slMessageScrollerContent]", host: { attributes: { "data-part": "content", "role": "log", "aria-relevant": "additions" }, properties: { "attr.aria-busy": "owner.busy() ? 'true' : null" } }, ngImport: i0 });
|
|
205
|
+
}
|
|
206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScrollerContent, decorators: [{
|
|
207
|
+
type: Directive,
|
|
208
|
+
args: [{
|
|
209
|
+
selector: '[slMessageScrollerContent]',
|
|
210
|
+
standalone: true,
|
|
211
|
+
host: {
|
|
212
|
+
'data-part': 'content',
|
|
213
|
+
role: 'log',
|
|
214
|
+
'aria-relevant': 'additions',
|
|
215
|
+
'[attr.aria-busy]': "owner.busy() ? 'true' : null",
|
|
216
|
+
},
|
|
217
|
+
}]
|
|
218
|
+
}], ctorParameters: () => [] });
|
|
219
|
+
/** One row — a message, a separator, a line the system writes. */
|
|
220
|
+
class SlMessageScrollerItem {
|
|
221
|
+
messageId = input(undefined, /* @ts-ignore */
|
|
222
|
+
...(ngDevMode ? [{ debugName: "messageId" }] : /* istanbul ignore next */ []));
|
|
223
|
+
anchor = input(false, { ...(ngDevMode ? { debugName: "anchor" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
224
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScrollerItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
225
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: SlMessageScrollerItem, isStandalone: true, selector: "[slMessageScrollerItem]", inputs: { messageId: { classPropertyName: "messageId", publicName: "messageId", isSignal: true, isRequired: false, transformFunction: null }, anchor: { classPropertyName: "anchor", publicName: "anchor", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-part": "item" }, properties: { "attr.data-message-id": "messageId() ?? null", "attr.data-anchor": "anchor() ? 'true' : null" } }, ngImport: i0 });
|
|
226
|
+
}
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScrollerItem, decorators: [{
|
|
228
|
+
type: Directive,
|
|
229
|
+
args: [{
|
|
230
|
+
selector: '[slMessageScrollerItem]',
|
|
231
|
+
standalone: true,
|
|
232
|
+
host: {
|
|
233
|
+
'data-part': 'item',
|
|
234
|
+
'[attr.data-message-id]': 'messageId() ?? null',
|
|
235
|
+
'[attr.data-anchor]': "anchor() ? 'true' : null",
|
|
236
|
+
},
|
|
237
|
+
}]
|
|
238
|
+
}], propDecorators: { messageId: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageId", required: false }] }], anchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "anchor", required: false }] }] } });
|
|
239
|
+
/** A day, or a line the system writes; `sticky` keeps it at the top while its rows are in view. */
|
|
240
|
+
class SlMessageScrollerSeparator {
|
|
241
|
+
sticky = input(false, { ...(ngDevMode ? { debugName: "sticky" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
242
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScrollerSeparator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
243
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlMessageScrollerSeparator, isStandalone: true, selector: "[slMessageScrollerSeparator]", inputs: { sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-part": "separator" }, properties: { "attr.data-sticky": "sticky() ? '' : null" } }, ngImport: i0, template: '<span><ng-content></ng-content></span>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
244
|
+
}
|
|
245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScrollerSeparator, decorators: [{
|
|
246
|
+
type: Component,
|
|
247
|
+
args: [{
|
|
248
|
+
selector: '[slMessageScrollerSeparator]',
|
|
249
|
+
standalone: true,
|
|
250
|
+
template: '<span><ng-content></ng-content></span>',
|
|
251
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
252
|
+
encapsulation: ViewEncapsulation.None,
|
|
253
|
+
host: { 'data-part': 'separator', '[attr.data-sticky]': "sticky() ? '' : null" },
|
|
254
|
+
}]
|
|
255
|
+
}], propDecorators: { sticky: [{ type: i0.Input, args: [{ isSignal: true, alias: "sticky", required: false }] }] } });
|
|
256
|
+
/** The line above the first message the reader has not seen. */
|
|
257
|
+
class SlMessageScrollerUnread {
|
|
258
|
+
owner = scroller();
|
|
259
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScrollerUnread, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
260
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: SlMessageScrollerUnread, isStandalone: true, selector: "[slMessageScrollerUnread]", host: { attributes: { "data-part": "unread" } }, ngImport: i0, template: `<span
|
|
261
|
+
><ng-content>{{ owner.t('unread') }}</ng-content></span
|
|
262
|
+
>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
263
|
+
}
|
|
264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScrollerUnread, decorators: [{
|
|
265
|
+
type: Component,
|
|
266
|
+
args: [{
|
|
267
|
+
selector: '[slMessageScrollerUnread]',
|
|
268
|
+
standalone: true,
|
|
269
|
+
template: `<span
|
|
270
|
+
><ng-content>{{ owner.t('unread') }}</ng-content></span
|
|
271
|
+
>`,
|
|
272
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
273
|
+
encapsulation: ViewEncapsulation.None,
|
|
274
|
+
host: { 'data-part': 'unread' },
|
|
275
|
+
}]
|
|
276
|
+
}] });
|
|
277
|
+
/** Older rows on their way: the shared ring and a line of text, read once as a status. */
|
|
278
|
+
class SlMessageScrollerLoader {
|
|
279
|
+
owner = scroller();
|
|
280
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScrollerLoader, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
281
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: SlMessageScrollerLoader, isStandalone: true, selector: "[slMessageScrollerLoader]", host: { attributes: { "data-part": "loader", "role": "status" } }, ngImport: i0, template: `<span aria-hidden="true" data-ui="spinner"></span
|
|
282
|
+
><span
|
|
283
|
+
><ng-content>{{ owner.t('loader') }}</ng-content></span
|
|
284
|
+
>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
285
|
+
}
|
|
286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScrollerLoader, decorators: [{
|
|
287
|
+
type: Component,
|
|
288
|
+
args: [{
|
|
289
|
+
selector: '[slMessageScrollerLoader]',
|
|
290
|
+
standalone: true,
|
|
291
|
+
template: `<span aria-hidden="true" data-ui="spinner"></span
|
|
292
|
+
><span
|
|
293
|
+
><ng-content>{{ owner.t('loader') }}</ng-content></span
|
|
294
|
+
>`,
|
|
295
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
296
|
+
encapsulation: ViewEncapsulation.None,
|
|
297
|
+
host: { 'data-part': 'loader', role: 'status' },
|
|
298
|
+
}]
|
|
299
|
+
}] });
|
|
300
|
+
/**
|
|
301
|
+
* The control that takes the reader to the latest row — or, with
|
|
302
|
+
* `direction="start"`, to the first — on the `button` the page wrote. With
|
|
303
|
+
* nowhere to go it is inert and out of the tab order; when rows arrived out
|
|
304
|
+
* of view it says how many, in its name and on its face.
|
|
305
|
+
*/
|
|
306
|
+
class SlMessageScrollerJump {
|
|
307
|
+
direction = input('end', /* @ts-ignore */
|
|
308
|
+
...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
309
|
+
behavior = input('smooth', /* @ts-ignore */
|
|
310
|
+
...(ngDevMode ? [{ debugName: "behavior" }] : /* istanbul ignore next */ []));
|
|
311
|
+
owner = scroller();
|
|
312
|
+
ownLabel = inject(new HostAttributeToken('aria-label'), { optional: true });
|
|
313
|
+
active = computed(() => {
|
|
314
|
+
const { scrollable } = this.owner.state();
|
|
315
|
+
return this.direction() === 'end' ? scrollable.end : scrollable.start;
|
|
316
|
+
}, /* @ts-ignore */
|
|
317
|
+
...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
318
|
+
count = computed(() => this.direction() === 'end' ? this.owner.state().newCount : 0, /* @ts-ignore */
|
|
319
|
+
...(ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []));
|
|
320
|
+
words = computed(() => {
|
|
321
|
+
const count = this.count();
|
|
322
|
+
return count > 0 ? this.owner.t('jumpCount', { count }) : null;
|
|
323
|
+
}, /* @ts-ignore */
|
|
324
|
+
...(ngDevMode ? [{ debugName: "words" }] : /* istanbul ignore next */ []));
|
|
325
|
+
label = computed(() => {
|
|
326
|
+
if (this.ownLabel !== null)
|
|
327
|
+
return this.ownLabel;
|
|
328
|
+
if (this.direction() === 'start')
|
|
329
|
+
return this.owner.t('jumpToStart');
|
|
330
|
+
const count = this.count();
|
|
331
|
+
return count > 0 ? this.owner.t('jumpToEndCount', { count }) : this.owner.t('jumpToEnd');
|
|
332
|
+
}, /* @ts-ignore */
|
|
333
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
334
|
+
onClick(event) {
|
|
335
|
+
if (event.defaultPrevented)
|
|
336
|
+
return;
|
|
337
|
+
if (this.direction() === 'end')
|
|
338
|
+
this.owner.scrollToEnd({ behavior: this.behavior() });
|
|
339
|
+
else
|
|
340
|
+
this.owner.scrollToStart({ behavior: this.behavior() });
|
|
341
|
+
}
|
|
342
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScrollerJump, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
343
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlMessageScrollerJump, isStandalone: true, selector: "button[slMessageScrollerJump]", inputs: { direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, behavior: { classPropertyName: "behavior", publicName: "behavior", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-part": "jump", "type": "button" }, listeners: { "click": "onClick($event)" }, properties: { "attr.data-direction": "direction()", "attr.data-active": "active() ? \"true\" : \"false\"", "attr.inert": "active() ? null : ''", "attr.tabindex": "active() ? 0 : -1", "attr.aria-label": "label()" } }, ngImport: i0, template: `<span slIcon><svg slGlyph name="arrow-left"></svg></span>
|
|
344
|
+
@if (words(); as count) {
|
|
345
|
+
<span data-part="jump-count">{{ count }}</span>
|
|
346
|
+
}`, isInline: true, dependencies: [{ kind: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
347
|
+
}
|
|
348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMessageScrollerJump, decorators: [{
|
|
349
|
+
type: Component,
|
|
350
|
+
args: [{
|
|
351
|
+
selector: 'button[slMessageScrollerJump]',
|
|
352
|
+
standalone: true,
|
|
353
|
+
imports: [SlGlyph, SlIcon],
|
|
354
|
+
template: `<span slIcon><svg slGlyph name="arrow-left"></svg></span>
|
|
355
|
+
@if (words(); as count) {
|
|
356
|
+
<span data-part="jump-count">{{ count }}</span>
|
|
357
|
+
}`,
|
|
358
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
359
|
+
encapsulation: ViewEncapsulation.None,
|
|
360
|
+
host: {
|
|
361
|
+
'data-part': 'jump',
|
|
362
|
+
type: 'button',
|
|
363
|
+
'[attr.data-direction]': 'direction()',
|
|
364
|
+
'[attr.data-active]': 'active() ? "true" : "false"',
|
|
365
|
+
'[attr.inert]': "active() ? null : ''",
|
|
366
|
+
'[attr.tabindex]': 'active() ? 0 : -1',
|
|
367
|
+
'[attr.aria-label]': 'label()',
|
|
368
|
+
'(click)': 'onClick($event)',
|
|
369
|
+
},
|
|
370
|
+
}]
|
|
371
|
+
}], propDecorators: { direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], behavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "behavior", required: false }] }] } });
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Generated bundle index. Do not edit.
|
|
375
|
+
*/
|
|
376
|
+
|
|
377
|
+
export { MESSAGE_SCROLLER_DEFAULTS, SlMessageScroller, SlMessageScrollerContent, SlMessageScrollerItem, SlMessageScrollerJump, SlMessageScrollerLoader, SlMessageScrollerSeparator, SlMessageScrollerUnread, SlMessageScrollerViewport, injectMessageScrollerDefaults, provideMessageScrollerDefaults };
|
|
378
|
+
//# sourceMappingURL=slotted-angular-message-scroller.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotted-angular-message-scroller.mjs","sources":["../../message-scroller/src/message-scroller-defaults.ts","../../message-scroller/src/message-scroller.ts","../../message-scroller/src/slotted-angular-message-scroller.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\nimport type { MessageScrollerPosition } from '@slotted/core/message-scroller';\n\nexport interface MessageScrollerDefaults {\n follow: boolean;\n defaultPosition: MessageScrollerPosition;\n peek: number;\n scrollMargin: number;\n}\n\nconst FALLBACK: MessageScrollerDefaults = {\n follow: false,\n defaultPosition: 'last-anchor',\n peek: 64,\n scrollMargin: 0,\n};\n\nexport const MESSAGE_SCROLLER_DEFAULTS = new InjectionToken<MessageScrollerDefaults>(\n 'slotted message-scroller defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once whether its conversations follow a reply,\n * where a saved one opens, and how much of the previous turn stays in view.\n * A scroller that states any of them wins. Its words come from the language\n * in force (`provideSlotted`).\n */\nexport function provideMessageScrollerDefaults(defaults: Partial<MessageScrollerDefaults>) {\n return {\n provide: MESSAGE_SCROLLER_DEFAULTS,\n useFactory: (): MessageScrollerDefaults => ({\n follow: defaults.follow ?? FALLBACK.follow,\n defaultPosition: defaults.defaultPosition ?? FALLBACK.defaultPosition,\n peek: defaults.peek ?? FALLBACK.peek,\n scrollMargin: defaults.scrollMargin ?? FALLBACK.scrollMargin,\n }),\n };\n}\n\nexport function injectMessageScrollerDefaults(): MessageScrollerDefaults {\n return inject(MESSAGE_SCROLLER_DEFAULTS);\n}\n","import {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n untracked,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport {\n messageScrollerMessages,\n type MessageScrollerMessages,\n type PartialMessages,\n} from '@slotted/core/i18n';\nimport { getLiveAnnouncer } from '@slotted/core/live-announcer';\nimport { createMessageScroller } from '@slotted/core/message-scroller';\nimport type {\n MessageScrollerEdges,\n MessageScrollerPosition,\n MessageScrollerState,\n ScrollCommandOptions,\n ScrollToMessageOptions,\n} from '@slotted/core/message-scroller';\n\nimport { injectMessageScrollerDefaults } from './message-scroller-defaults';\n\n/**\n * The region a conversation scrolls in, on the `div` the page wrote. It fills\n * a parent whose height is bounded; the viewport inside it scrolls and the\n * jump control stands over it.\n *\n * The behaviour is `@slotted/core/message-scroller`: where a saved\n * conversation opens, whether new words pull the view (`follow`), where a\n * turn the reader sends stands (`anchor` on the item), older rows arriving\n * above without moving the reader, and jumps — `scrollToMessage()` on the\n * instance (`#chat=\"slMessageScroller\"`). The engine writes the scroll state\n * on the DOM itself; the instance's `state` signal is what the jump control\n * reads.\n */\n@Component({\n selector: '[slMessageScroller]',\n standalone: true,\n exportAs: 'slMessageScroller',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/message-scroller/message-scroller.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { 'data-ui': 'message-scroller', 'data-part': 'root' },\n})\nexport class SlMessageScroller {\n readonly follow = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n readonly defaultPosition = input<MessageScrollerPosition | undefined>(undefined);\n readonly edgeThreshold = input<number | undefined>(undefined);\n readonly scrollMargin = input<number | undefined>(undefined);\n readonly peek = input<number | undefined>(undefined);\n readonly preserveOnPrepend = input<boolean | undefined>(undefined);\n /** A reply is streaming: the log is `aria-busy` and the change is announced once each way. */\n readonly busy = input(false, { transform: booleanAttribute });\n /**\n * Words laid over the catalog of the language in force, key by key: the\n * region's name, the jump controls, the unread line, the loader and the\n * two announcements of a streaming reply.\n */\n readonly messages = input<PartialMessages<MessageScrollerMessages> | undefined>(undefined);\n\n /** The reader reached the top — the moment to ask for older messages. */\n readonly reachStart = output<'scroll'>();\n readonly anchorChange = output<{ id: string | null; reason: 'scroll' | 'programmatic' }>();\n readonly scrollableChange = output<MessageScrollerEdges>();\n\n private readonly defaults = injectMessageScrollerDefaults();\n /** The family's words in the language in force, with this scroller's `messages` laid over them. */\n readonly t = injectMessages(messageScrollerMessages, this.messages);\n readonly resolvedPosition = computed(\n () => this.defaultPosition() ?? this.defaults.defaultPosition,\n );\n\n private readonly engine = createMessageScroller({\n defaultPosition: this.defaults.defaultPosition,\n onAnchorChange: (id, reason) => this.anchorChange.emit({ id, reason }),\n onReachStart: (reason) => this.reachStart.emit(reason),\n onScrollableChange: (edges) => this.scrollableChange.emit(edges),\n });\n\n /** The engine's state: which edges the viewport can scroll toward, the count of rows out of view. */\n readonly state = signal<MessageScrollerState>(this.engine.getState());\n\n private readonly root = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private viewport: HTMLElement | null = null;\n private content: HTMLElement | null = null;\n private disconnect: (() => void) | null = null;\n\n constructor() {\n const unsubscribe = this.engine.subscribe(() => this.state.set(this.engine.getState()));\n effect(() => {\n this.engine.update({\n defaultPosition: this.resolvedPosition(),\n edgeThreshold: this.edgeThreshold(),\n follow: this.follow() ?? this.defaults.follow,\n peek: this.peek() ?? this.defaults.peek,\n preserveOnPrepend: this.preserveOnPrepend(),\n scrollMargin: this.scrollMargin() ?? this.defaults.scrollMargin,\n });\n });\n let wasBusy: boolean | null = null;\n effect(() => {\n const busy = this.busy();\n if (wasBusy !== null && wasBusy !== busy) {\n getLiveAnnouncer().announce(untracked(() => (busy ? this.t('busy') : this.t('idle'))));\n }\n wasBusy = busy;\n });\n inject(DestroyRef).onDestroy(() => {\n unsubscribe();\n this.disconnect?.();\n this.engine.destroy();\n });\n }\n\n /** @internal */ registerViewport(node: HTMLElement) {\n this.viewport = node;\n this.connect();\n }\n\n /** @internal */ registerContent(node: HTMLElement) {\n this.content = node;\n this.connect();\n }\n\n private connect() {\n if (this.viewport === null || this.content === null) return;\n this.disconnect?.();\n this.disconnect = this.engine.connect({\n content: this.content,\n root: this.root,\n viewport: this.viewport,\n });\n this.state.set(this.engine.getState());\n }\n\n scrollToMessage(id: string, options?: ScrollToMessageOptions): boolean {\n return this.engine.scrollToMessage(id, options);\n }\n\n scrollToEnd(options?: ScrollCommandOptions): boolean {\n return this.engine.scrollToEnd(options);\n }\n\n scrollToStart(options?: ScrollCommandOptions): boolean {\n return this.engine.scrollToStart(options);\n }\n\n /** Moves focus to the viewport, which scrolls from the keyboard. */\n focus() {\n this.viewport?.focus();\n }\n}\n\nfunction scroller(): SlMessageScroller {\n const owner = inject(SlMessageScroller, { optional: true });\n if (owner === null)\n throw new Error('A message-scroller part is rendered outside slMessageScroller.');\n return owner;\n}\n\n/**\n * The element that scrolls: a labelled region that takes focus, so the\n * keyboard scrolls it; hidden, laid out, until the opening position applies.\n */\n@Directive({\n selector: '[slMessageScrollerViewport]',\n standalone: true,\n host: {\n 'data-part': 'viewport',\n role: 'region',\n '[attr.tabindex]': 'tabindex',\n '[attr.aria-label]': 'label()',\n },\n})\nexport class SlMessageScrollerViewport {\n private readonly owner = scroller();\n protected readonly tabindex =\n inject(new HostAttributeToken('tabindex'), { optional: true }) ?? '0';\n private readonly written = inject(new HostAttributeToken('aria-label'), { optional: true });\n protected readonly label = computed(() => this.written ?? this.owner.t('label'));\n\n constructor() {\n const host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n if (this.owner.resolvedPosition() !== 'start') host.setAttribute('data-pending', '');\n afterNextRender(() => this.owner.registerViewport(host));\n }\n}\n\n/** The rows: a WAI-ARIA `log`; `busy` on the scroller holds arrivals back until a reply is whole. */\n@Directive({\n selector: '[slMessageScrollerContent]',\n standalone: true,\n host: {\n 'data-part': 'content',\n role: 'log',\n 'aria-relevant': 'additions',\n '[attr.aria-busy]': \"owner.busy() ? 'true' : null\",\n },\n})\nexport class SlMessageScrollerContent {\n protected readonly owner = scroller();\n\n constructor() {\n const host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n afterNextRender(() => this.owner.registerContent(host));\n }\n}\n\n/** One row — a message, a separator, a line the system writes. */\n@Directive({\n selector: '[slMessageScrollerItem]',\n standalone: true,\n host: {\n 'data-part': 'item',\n '[attr.data-message-id]': 'messageId() ?? null',\n '[attr.data-anchor]': \"anchor() ? 'true' : null\",\n },\n})\nexport class SlMessageScrollerItem {\n readonly messageId = input<string | undefined>(undefined);\n readonly anchor = input(false, { transform: booleanAttribute });\n}\n\n/** A day, or a line the system writes; `sticky` keeps it at the top while its rows are in view. */\n@Component({\n selector: '[slMessageScrollerSeparator]',\n standalone: true,\n template: '<span><ng-content></ng-content></span>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { 'data-part': 'separator', '[attr.data-sticky]': \"sticky() ? '' : null\" },\n})\nexport class SlMessageScrollerSeparator {\n readonly sticky = input(false, { transform: booleanAttribute });\n}\n\n/** The line above the first message the reader has not seen. */\n@Component({\n selector: '[slMessageScrollerUnread]',\n standalone: true,\n template: `<span\n ><ng-content>{{ owner.t('unread') }}</ng-content></span\n >`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { 'data-part': 'unread' },\n})\nexport class SlMessageScrollerUnread {\n protected readonly owner = scroller();\n}\n\n/** Older rows on their way: the shared ring and a line of text, read once as a status. */\n@Component({\n selector: '[slMessageScrollerLoader]',\n standalone: true,\n template: `<span aria-hidden=\"true\" data-ui=\"spinner\"></span\n ><span\n ><ng-content>{{ owner.t('loader') }}</ng-content></span\n >`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { 'data-part': 'loader', role: 'status' },\n})\nexport class SlMessageScrollerLoader {\n protected readonly owner = scroller();\n}\n\n/**\n * The control that takes the reader to the latest row — or, with\n * `direction=\"start\"`, to the first — on the `button` the page wrote. With\n * nowhere to go it is inert and out of the tab order; when rows arrived out\n * of view it says how many, in its name and on its face.\n */\n@Component({\n selector: 'button[slMessageScrollerJump]',\n standalone: true,\n imports: [SlGlyph, SlIcon],\n template: `<span slIcon><svg slGlyph name=\"arrow-left\"></svg></span>\n @if (words(); as count) {\n <span data-part=\"jump-count\">{{ count }}</span>\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'jump',\n type: 'button',\n '[attr.data-direction]': 'direction()',\n '[attr.data-active]': 'active() ? \"true\" : \"false\"',\n '[attr.inert]': \"active() ? null : ''\",\n '[attr.tabindex]': 'active() ? 0 : -1',\n '[attr.aria-label]': 'label()',\n '(click)': 'onClick($event)',\n },\n})\nexport class SlMessageScrollerJump {\n readonly direction = input<'end' | 'start'>('end');\n readonly behavior = input<ScrollBehavior>('smooth');\n\n private readonly owner = scroller();\n private readonly ownLabel = inject(new HostAttributeToken('aria-label'), { optional: true });\n\n protected readonly active = computed(() => {\n const { scrollable } = this.owner.state();\n return this.direction() === 'end' ? scrollable.end : scrollable.start;\n });\n private readonly count = computed(() =>\n this.direction() === 'end' ? this.owner.state().newCount : 0,\n );\n protected readonly words = computed(() => {\n const count = this.count();\n return count > 0 ? this.owner.t('jumpCount', { count }) : null;\n });\n protected readonly label = computed(() => {\n if (this.ownLabel !== null) return this.ownLabel;\n if (this.direction() === 'start') return this.owner.t('jumpToStart');\n const count = this.count();\n return count > 0 ? this.owner.t('jumpToEndCount', { count }) : this.owner.t('jumpToEnd');\n });\n\n protected onClick(event: MouseEvent) {\n if (event.defaultPrevented) return;\n if (this.direction() === 'end') this.owner.scrollToEnd({ behavior: this.behavior() });\n else this.owner.scrollToStart({ behavior: this.behavior() });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAUA,MAAM,QAAQ,GAA4B;AACxC,IAAA,MAAM,EAAE,KAAK;AACb,IAAA,eAAe,EAAE,aAAa;AAC9B,IAAA,IAAI,EAAE,EAAE;AACR,IAAA,YAAY,EAAE,CAA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