@slotted/angular 0.0.0-stage → 0.1.0-beta.1
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,917 @@
|
|
|
1
|
+
import { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InjectionToken, inject, signal, computed, DestroyRef, Injectable, input, ElementRef, Injector, effect, Directive, booleanAttribute, output, viewChild, PLATFORM_ID, afterRenderEffect, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
+
import { injectMessages } from '@slotted/angular/i18n';
|
|
5
|
+
import { SlGlyph, SlIcon } from '@slotted/angular/icon';
|
|
6
|
+
import { SlLoader } from '@slotted/angular/progress-indicator';
|
|
7
|
+
import { createRemovalFocus } from '@slotted/core/focus';
|
|
8
|
+
import { toastMessages } from '@slotted/core/i18n';
|
|
9
|
+
import { createPortalRoot } from '@slotted/core/portal';
|
|
10
|
+
import { createPresence } from '@slotted/core/presence';
|
|
11
|
+
import { createToastStore } from '@slotted/core/toast';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The key that moves focus into the region. Five surveyed implementations ship
|
|
15
|
+
* a shortcut and no two chose the same key; `F6` is the one two of them chose
|
|
16
|
+
* for the reason that generalises — it is the landmark-navigation key.
|
|
17
|
+
*/
|
|
18
|
+
const TOAST_HOTKEY = 'F6';
|
|
19
|
+
const FALLBACK = {
|
|
20
|
+
placement: 'bottom-end',
|
|
21
|
+
attach: 'portal',
|
|
22
|
+
stacking: 'list',
|
|
23
|
+
tone: 'accent',
|
|
24
|
+
variant: 'raised',
|
|
25
|
+
priority: 'polite',
|
|
26
|
+
dismissible: true,
|
|
27
|
+
swipe: true,
|
|
28
|
+
progress: false,
|
|
29
|
+
pauseOnHover: true,
|
|
30
|
+
pauseWhenHidden: true,
|
|
31
|
+
limit: 3,
|
|
32
|
+
duration: 5000,
|
|
33
|
+
swipeThreshold: 48,
|
|
34
|
+
hotkey: TOAST_HOTKEY,
|
|
35
|
+
};
|
|
36
|
+
const TOAST_DEFAULTS = new InjectionToken('slotted toast defaults', {
|
|
37
|
+
providedIn: 'root',
|
|
38
|
+
factory: () => FALLBACK,
|
|
39
|
+
});
|
|
40
|
+
/**
|
|
41
|
+
* An application decides once where its messages appear and how long they
|
|
42
|
+
* stay. A region or a message that states any of them still wins: an explicit
|
|
43
|
+
* value is never overridden by the token. The region's name and the close
|
|
44
|
+
* control's come from the language in force (`provideSlotted`).
|
|
45
|
+
*/
|
|
46
|
+
function provideToastDefaults(defaults) {
|
|
47
|
+
return {
|
|
48
|
+
provide: TOAST_DEFAULTS,
|
|
49
|
+
useFactory: () => ({ ...FALLBACK, ...defaults }),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/** What a region renders as here, before it states anything of its own. */
|
|
53
|
+
function injectToastDefaults() {
|
|
54
|
+
return inject(TOAST_DEFAULTS);
|
|
55
|
+
}
|
|
56
|
+
/** What a reader hears when the call did not say. */
|
|
57
|
+
function spokenFrom(input) {
|
|
58
|
+
if (input.announcement !== undefined)
|
|
59
|
+
return input.announcement;
|
|
60
|
+
return [input.title, input.description].filter(Boolean).join('. ');
|
|
61
|
+
}
|
|
62
|
+
/** The store's own fields, and the rest carried whole as the message's payload. */
|
|
63
|
+
function split(input) {
|
|
64
|
+
const { id, duration, priority, announcement, loading, onStatusChange, ...content } = input;
|
|
65
|
+
void announcement;
|
|
66
|
+
return {
|
|
67
|
+
...(id === undefined ? {} : { id }),
|
|
68
|
+
...(duration === undefined ? {} : { duration }),
|
|
69
|
+
...(priority === undefined ? {} : { priority }),
|
|
70
|
+
...(loading === undefined ? {} : { loading }),
|
|
71
|
+
...(onStatusChange === undefined ? {} : { onStatusChange }),
|
|
72
|
+
announcement: spokenFrom(input),
|
|
73
|
+
/* The one field the store reads out of the content: a message a reader is
|
|
74
|
+
meant to act on is a message no clock may end. */
|
|
75
|
+
action: content.actions !== undefined,
|
|
76
|
+
data: content,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The imperative facade, and the observable model, which
|
|
81
|
+
* `docs/component-features.md` §14 asks for in one sentence.
|
|
82
|
+
*
|
|
83
|
+
* It is `providedIn: 'root'` because that is the surface Angular Material's
|
|
84
|
+
* consumers already know: a message is shown from an interceptor, a resolver or
|
|
85
|
+
* an effect, none of which is anywhere near a component. The reads are signals,
|
|
86
|
+
* so a zoneless application renders on them without a `markForCheck` anywhere.
|
|
87
|
+
*/
|
|
88
|
+
class SlToastService {
|
|
89
|
+
defaults = inject(TOAST_DEFAULTS);
|
|
90
|
+
/** The model a region renders. Also the escape hatch for a page's own host. */
|
|
91
|
+
store = createToastStore({
|
|
92
|
+
limit: this.defaults.limit,
|
|
93
|
+
duration: this.defaults.duration,
|
|
94
|
+
});
|
|
95
|
+
snapshot = signal(this.store.snapshot, /* @ts-ignore */
|
|
96
|
+
...(ngDevMode ? [{ debugName: "snapshot" }] : /* istanbul ignore next */ []));
|
|
97
|
+
/** The messages on screen, newest first. */
|
|
98
|
+
visible = computed(() => this.snapshot().visible, /* @ts-ignore */
|
|
99
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
100
|
+
/** The messages waiting behind the limit. A page may say how many. */
|
|
101
|
+
queued = computed(() => this.snapshot().queued, /* @ts-ignore */
|
|
102
|
+
...(ngDevMode ? [{ debugName: "queued" }] : /* istanbul ignore next */ []));
|
|
103
|
+
/** Whether every clock is held. */
|
|
104
|
+
paused = computed(() => this.snapshot().paused, /* @ts-ignore */
|
|
105
|
+
...(ngDevMode ? [{ debugName: "paused" }] : /* istanbul ignore next */ []));
|
|
106
|
+
constructor() {
|
|
107
|
+
const stop = this.store.subscribe(() => this.snapshot.set(this.store.snapshot));
|
|
108
|
+
inject(DestroyRef).onDestroy(() => {
|
|
109
|
+
stop();
|
|
110
|
+
this.store.destroy();
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/** Adds a message, or updates the one that already carries this id. */
|
|
114
|
+
show(input = {}) {
|
|
115
|
+
return this.store.show(split(input));
|
|
116
|
+
}
|
|
117
|
+
/** Changes a message already in the queue, keeping its place. */
|
|
118
|
+
update(id, input) {
|
|
119
|
+
this.store.update(id, split(input));
|
|
120
|
+
}
|
|
121
|
+
/** Asks for a message to leave, carrying the reason. */
|
|
122
|
+
dismiss(id, reason = 'programmatic') {
|
|
123
|
+
this.store.dismiss(id, reason);
|
|
124
|
+
}
|
|
125
|
+
/** Asks for every message to leave at once — a route change, a sign-out. */
|
|
126
|
+
clear(reason = 'clear') {
|
|
127
|
+
this.store.clear(reason);
|
|
128
|
+
}
|
|
129
|
+
pauseAll() {
|
|
130
|
+
this.store.pauseAll();
|
|
131
|
+
}
|
|
132
|
+
resumeAll() {
|
|
133
|
+
this.store.resumeAll();
|
|
134
|
+
}
|
|
135
|
+
/** A message that follows a promise: loading, then success or failure. */
|
|
136
|
+
promise(promise, input) {
|
|
137
|
+
return this.store.promise(promise, {
|
|
138
|
+
loading: split(input.loading),
|
|
139
|
+
success: typeof input.success === 'function'
|
|
140
|
+
? (value) => split(input.success(value))
|
|
141
|
+
: split(input.success),
|
|
142
|
+
error: typeof input.error === 'function'
|
|
143
|
+
? (reason) => split(input.error(reason))
|
|
144
|
+
: split(input.error),
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
148
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastService, providedIn: 'root' });
|
|
149
|
+
}
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastService, decorators: [{
|
|
151
|
+
type: Injectable,
|
|
152
|
+
args: [{ providedIn: 'root' }]
|
|
153
|
+
}], ctorParameters: () => [] });
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The glyph each tone draws: `specs/components/toast/contract.json` holds the
|
|
157
|
+
* map, and the binding draws it because a stylesheet paints no icon.
|
|
158
|
+
*/
|
|
159
|
+
const TONE_GLYPH = {
|
|
160
|
+
accent: 'circle-info',
|
|
161
|
+
secondary: null,
|
|
162
|
+
success: 'circle-check',
|
|
163
|
+
warning: 'circle-alert',
|
|
164
|
+
danger: 'circle-x',
|
|
165
|
+
};
|
|
166
|
+
/** Which way a message is dragged away, given the edge its region sits at. */
|
|
167
|
+
function swipeAxis(placement, direction) {
|
|
168
|
+
const block = placement.startsWith('top') ? -1 : 1;
|
|
169
|
+
const rtl = direction === 'rtl';
|
|
170
|
+
const inline = placement.endsWith('-start')
|
|
171
|
+
? rtl
|
|
172
|
+
? 1
|
|
173
|
+
: -1
|
|
174
|
+
: placement.endsWith('-end')
|
|
175
|
+
? rtl
|
|
176
|
+
? -1
|
|
177
|
+
: 1
|
|
178
|
+
: 0;
|
|
179
|
+
return { block, inline };
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* A message's own height, which is not the height it is drawn at: a closed
|
|
183
|
+
* pile draws every message at the front one's height, and an opening one
|
|
184
|
+
* animates it. The override is lifted for the one read, and not at all while
|
|
185
|
+
* the height is moving, because lifting it then cancels the movement — the
|
|
186
|
+
* last measurement stands until the transition ends and the observer fires
|
|
187
|
+
* again. Chrome names the logical property's transition by its physical one.
|
|
188
|
+
*/
|
|
189
|
+
function naturalHeight(item) {
|
|
190
|
+
const moving = typeof item.getAnimations === 'function' &&
|
|
191
|
+
item
|
|
192
|
+
.getAnimations()
|
|
193
|
+
.some((animation) => ['block-size', 'height', 'width'].includes(animation.transitionProperty ?? ''));
|
|
194
|
+
if (moving) {
|
|
195
|
+
const last = Number.parseFloat(item.style.getPropertyValue('--slotted-toast-height'));
|
|
196
|
+
if (!Number.isNaN(last))
|
|
197
|
+
return last;
|
|
198
|
+
}
|
|
199
|
+
const inline = item.style.blockSize;
|
|
200
|
+
item.style.blockSize = 'auto';
|
|
201
|
+
const height = item.getBoundingClientRect().height;
|
|
202
|
+
item.style.blockSize = inline;
|
|
203
|
+
return height;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* One message: everything about it that is behaviour rather than markup.
|
|
207
|
+
*
|
|
208
|
+
* It is a directive rather than a component so a page that writes its own list
|
|
209
|
+
* — from `SlToastService.visible()` and nothing else — gets the timer, the
|
|
210
|
+
* exit, the swipe and the keyboard by putting one attribute on its own `li`.
|
|
211
|
+
*/
|
|
212
|
+
class SlToastItem {
|
|
213
|
+
message = input.required({ ...(ngDevMode ? { debugName: "message" } : /* istanbul ignore next */ {}), alias: 'slToastItem' });
|
|
214
|
+
/** How far this message is from the front of the pile. The stylesheet reads it. */
|
|
215
|
+
index = input(0, { ...(ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {}), alias: 'slToastItemIndex' });
|
|
216
|
+
region = inject(SlToastRegion);
|
|
217
|
+
host = inject(ElementRef);
|
|
218
|
+
/**
|
|
219
|
+
* The message's own injector, handed to a page's body template so the parts
|
|
220
|
+
* inside it — the mark's glyph above all — read this message and not the
|
|
221
|
+
* place the template was declared.
|
|
222
|
+
*/
|
|
223
|
+
injector = inject(Injector);
|
|
224
|
+
status = signal('entering', /* @ts-ignore */
|
|
225
|
+
...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
226
|
+
dragging = signal(false, /* @ts-ignore */
|
|
227
|
+
...(ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []));
|
|
228
|
+
offset = signal(null, /* @ts-ignore */
|
|
229
|
+
...(ngDevMode ? [{ debugName: "offset" }] : /* istanbul ignore next */ []));
|
|
230
|
+
drag = null;
|
|
231
|
+
tone = computed(() => this.message().data.tone ?? this.region.defaults.tone, /* @ts-ignore */
|
|
232
|
+
...(ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []));
|
|
233
|
+
/**
|
|
234
|
+
* The glyph the tone's mark draws: none while a promise is in flight, when
|
|
235
|
+
* the mark is `progress-indicator`'s contained loader, and none for
|
|
236
|
+
* `secondary`, a neutral message with no severity to state.
|
|
237
|
+
*/
|
|
238
|
+
mark = computed(() => this.message().loading ? null : TONE_GLYPH[this.tone()], /* @ts-ignore */
|
|
239
|
+
...(ngDevMode ? [{ debugName: "mark" }] : /* istanbul ignore next */ []));
|
|
240
|
+
variant = computed(() => this.message().data.variant ?? this.region.defaults.variant, /* @ts-ignore */
|
|
241
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
242
|
+
isOpen = computed(() => this.status() === 'open', /* @ts-ignore */
|
|
243
|
+
...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
|
|
244
|
+
durationValue = computed(() => {
|
|
245
|
+
const duration = this.message().duration;
|
|
246
|
+
return duration > 0 ? `${duration}ms` : null;
|
|
247
|
+
}, /* @ts-ignore */
|
|
248
|
+
...(ngDevMode ? [{ debugName: "durationValue" }] : /* istanbul ignore next */ []));
|
|
249
|
+
swipeX = computed(() => {
|
|
250
|
+
const value = this.offset();
|
|
251
|
+
return value === null ? null : `${value.x}px`;
|
|
252
|
+
}, /* @ts-ignore */
|
|
253
|
+
...(ngDevMode ? [{ debugName: "swipeX" }] : /* istanbul ignore next */ []));
|
|
254
|
+
swipeY = computed(() => {
|
|
255
|
+
const value = this.offset();
|
|
256
|
+
return value === null ? null : `${value.y}px`;
|
|
257
|
+
}, /* @ts-ignore */
|
|
258
|
+
...(ngDevMode ? [{ debugName: "swipeY" }] : /* istanbul ignore next */ []));
|
|
259
|
+
/**
|
|
260
|
+
* `packages/core/src/presence` reads the exit the stylesheet declares and
|
|
261
|
+
* completes it on a timer when the browser never reports one — a backgrounded
|
|
262
|
+
* tab, a `display: none` ancestor. Ark guesses two hundred milliseconds
|
|
263
|
+
* instead, and a message caught by any of those cases never leaves.
|
|
264
|
+
*/
|
|
265
|
+
presence = createPresence({
|
|
266
|
+
initialPresent: true,
|
|
267
|
+
skipInitialAnimation: false,
|
|
268
|
+
onStatusChange: (next) => this.status.set(next),
|
|
269
|
+
onExitComplete: () => this.region.store.remove(this.message().id),
|
|
270
|
+
});
|
|
271
|
+
constructor() {
|
|
272
|
+
this.presence.setNode(this.host.nativeElement);
|
|
273
|
+
effect(() => {
|
|
274
|
+
this.presence.request(this.message().status !== 'closing', 'programmatic');
|
|
275
|
+
});
|
|
276
|
+
inject(DestroyRef).onDestroy(() => this.presence.destroy());
|
|
277
|
+
}
|
|
278
|
+
onKeyDown(event) {
|
|
279
|
+
if (event.defaultPrevented || event.key !== 'Escape')
|
|
280
|
+
return;
|
|
281
|
+
/* Only the message the keyboard is in: a page whose dialog is open keeps
|
|
282
|
+
its own Escape. */
|
|
283
|
+
event.stopPropagation();
|
|
284
|
+
this.region.store.dismiss(this.message().id, 'escape');
|
|
285
|
+
}
|
|
286
|
+
onPointerDown(event) {
|
|
287
|
+
if (!this.region.resolvedSwipe() || event.button !== 0)
|
|
288
|
+
return;
|
|
289
|
+
/* A control inside the message is what the pointer came for. */
|
|
290
|
+
if (event.target.closest('button, a, input, select, textarea'))
|
|
291
|
+
return;
|
|
292
|
+
this.drag = { id: event.pointerId, x: event.clientX, y: event.clientY };
|
|
293
|
+
this.host.nativeElement.setPointerCapture(event.pointerId);
|
|
294
|
+
}
|
|
295
|
+
onPointerMove(event) {
|
|
296
|
+
const start = this.drag;
|
|
297
|
+
if (!start || start.id !== event.pointerId)
|
|
298
|
+
return;
|
|
299
|
+
const element = this.host.nativeElement;
|
|
300
|
+
const view = element.ownerDocument.defaultView;
|
|
301
|
+
const axis = swipeAxis(this.region.resolvedPlacement(), view?.getComputedStyle(element).direction ?? 'ltr');
|
|
302
|
+
/* Only movement toward the edge the region sits at counts. Dragging a
|
|
303
|
+
message into the page is not a gesture, it is a slip. */
|
|
304
|
+
const x = axis.inline === 0 ? 0 : Math.max(0, (event.clientX - start.x) * axis.inline);
|
|
305
|
+
const y = Math.max(0, (event.clientY - start.y) * axis.block);
|
|
306
|
+
if (!this.dragging() && Math.max(x, y) < 2)
|
|
307
|
+
return;
|
|
308
|
+
this.dragging.set(true);
|
|
309
|
+
this.offset.set({ x: x * axis.inline, y: y * axis.block });
|
|
310
|
+
}
|
|
311
|
+
onPointerUp(event) {
|
|
312
|
+
if (!this.drag || this.drag.id !== event.pointerId)
|
|
313
|
+
return;
|
|
314
|
+
const moved = this.offset();
|
|
315
|
+
const distance = moved === null ? 0 : Math.max(Math.abs(moved.x), Math.abs(moved.y));
|
|
316
|
+
this.drag = null;
|
|
317
|
+
this.dragging.set(false);
|
|
318
|
+
this.offset.set(null);
|
|
319
|
+
const element = this.host.nativeElement;
|
|
320
|
+
if (element.hasPointerCapture(event.pointerId))
|
|
321
|
+
element.releasePointerCapture(event.pointerId);
|
|
322
|
+
/* Past the threshold the gesture was a dismissal; short of it the message
|
|
323
|
+
springs back, which is the only way a reader can change their mind. */
|
|
324
|
+
if (event.type !== 'pointercancel' && distance >= this.region.defaults.swipeThreshold) {
|
|
325
|
+
this.region.store.dismiss(this.message().id, 'pointer');
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
329
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: SlToastItem, isStandalone: true, selector: "li[slToastItem]", inputs: { message: { classPropertyName: "message", publicName: "slToastItem", isSignal: true, isRequired: true, transformFunction: null }, index: { classPropertyName: "index", publicName: "slToastItemIndex", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-part": "item", "tabindex": "-1" }, listeners: { "keydown": "onKeyDown($event)", "pointerdown": "onPointerDown($event)", "pointermove": "onPointerMove($event)", "pointerup": "onPointerUp($event)", "pointercancel": "onPointerUp($event)" }, properties: { "attr.data-tone": "tone()", "attr.data-variant": "variant()", "attr.data-open": "isOpen() ? '' : null", "attr.data-loading": "message().loading ? '' : null", "attr.data-dragging": "dragging() ? '' : null", "style.--slotted-toast-index": "index()", "style.--slotted-toast-duration": "durationValue()", "style.--slotted-toast-swipe-x": "swipeX()", "style.--slotted-toast-swipe-y": "swipeY()" } }, exportAs: ["slToastItem"], ngImport: i0 });
|
|
330
|
+
}
|
|
331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastItem, decorators: [{
|
|
332
|
+
type: Directive,
|
|
333
|
+
args: [{
|
|
334
|
+
selector: 'li[slToastItem]',
|
|
335
|
+
standalone: true,
|
|
336
|
+
exportAs: 'slToastItem',
|
|
337
|
+
host: {
|
|
338
|
+
'data-part': 'item',
|
|
339
|
+
tabindex: '-1',
|
|
340
|
+
'[attr.data-tone]': 'tone()',
|
|
341
|
+
'[attr.data-variant]': 'variant()',
|
|
342
|
+
'[attr.data-open]': "isOpen() ? '' : null",
|
|
343
|
+
'[attr.data-loading]': "message().loading ? '' : null",
|
|
344
|
+
'[attr.data-dragging]': "dragging() ? '' : null",
|
|
345
|
+
'[style.--slotted-toast-index]': 'index()',
|
|
346
|
+
'[style.--slotted-toast-duration]': 'durationValue()',
|
|
347
|
+
'[style.--slotted-toast-swipe-x]': 'swipeX()',
|
|
348
|
+
'[style.--slotted-toast-swipe-y]': 'swipeY()',
|
|
349
|
+
'(keydown)': 'onKeyDown($event)',
|
|
350
|
+
'(pointerdown)': 'onPointerDown($event)',
|
|
351
|
+
'(pointermove)': 'onPointerMove($event)',
|
|
352
|
+
'(pointerup)': 'onPointerUp($event)',
|
|
353
|
+
'(pointercancel)': 'onPointerUp($event)',
|
|
354
|
+
},
|
|
355
|
+
}]
|
|
356
|
+
}], ctorParameters: () => [], propDecorators: { message: [{ type: i0.Input, args: [{ isSignal: true, alias: "slToastItem", required: true }] }], index: [{ type: i0.Input, args: [{ isSignal: true, alias: "slToastItemIndex", required: false }] }] } });
|
|
357
|
+
/**
|
|
358
|
+
* The place transient messages appear, and the only part of this family a page
|
|
359
|
+
* renders directly.
|
|
360
|
+
*
|
|
361
|
+
* **It is a landmark, not a live region.** A live role on a box holding a Close
|
|
362
|
+
* and an Undo is read with both buttons inside the sentence, and a region
|
|
363
|
+
* created in the same task as its text is silent under ARIA 1.2 §6.4. The words
|
|
364
|
+
* are spoken by `packages/core/src/live-announcer`; this element is what a
|
|
365
|
+
* reader navigates to, with the hotkey or with their own landmark list.
|
|
366
|
+
*
|
|
367
|
+
* **It never takes focus.** The APG's Alert pattern is explicit that an
|
|
368
|
+
* arriving message must not affect the keyboard, and the whole of this family's
|
|
369
|
+
* claim on it is one key the reader presses.
|
|
370
|
+
*/
|
|
371
|
+
class SlToastRegion {
|
|
372
|
+
/** Defaults to the token, then to `bottom-end`. */
|
|
373
|
+
placement = input(undefined, /* @ts-ignore */
|
|
374
|
+
...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
|
|
375
|
+
/** Defaults to the token, then to `portal`. */
|
|
376
|
+
attach = input(undefined, /* @ts-ignore */
|
|
377
|
+
...(ngDevMode ? [{ debugName: "attach" }] : /* istanbul ignore next */ []));
|
|
378
|
+
/** Defaults to the token, then to `list`. */
|
|
379
|
+
stacking = input(undefined, /* @ts-ignore */
|
|
380
|
+
...(ngDevMode ? [{ debugName: "stacking" }] : /* istanbul ignore next */ []));
|
|
381
|
+
swipe = input(undefined, { ...(ngDevMode ? { debugName: "swipe" } : /* istanbul ignore next */ {}), transform: (value) => (value === undefined ? undefined : booleanAttribute(value)) });
|
|
382
|
+
limit = input(undefined, /* @ts-ignore */
|
|
383
|
+
...(ngDevMode ? [{ debugName: "limit" }] : /* istanbul ignore next */ []));
|
|
384
|
+
duration = input(undefined, /* @ts-ignore */
|
|
385
|
+
...(ngDevMode ? [{ debugName: "duration" }] : /* istanbul ignore next */ []));
|
|
386
|
+
pauseOnHover = input(undefined, { ...(ngDevMode ? { debugName: "pauseOnHover" } : /* istanbul ignore next */ {}), transform: (value) => (value === undefined ? undefined : booleanAttribute(value)) });
|
|
387
|
+
pauseWhenHidden = input(undefined, { ...(ngDevMode ? { debugName: "pauseWhenHidden" } : /* istanbul ignore next */ {}), transform: (value) => (value === undefined ? undefined : booleanAttribute(value)) });
|
|
388
|
+
/** The key that moves focus into the region. Defaults to the token. */
|
|
389
|
+
hotkey = input(undefined, /* @ts-ignore */
|
|
390
|
+
...(ngDevMode ? [{ debugName: "hotkey" }] : /* istanbul ignore next */ []));
|
|
391
|
+
/**
|
|
392
|
+
* Words laid over the catalog of the language in force, key by key: the name
|
|
393
|
+
* a reader finds the region by (`label`) and what each close control
|
|
394
|
+
* announces (`close`).
|
|
395
|
+
*/
|
|
396
|
+
messages = input(undefined, /* @ts-ignore */
|
|
397
|
+
...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
|
|
398
|
+
/** The element a portalled region is placed inside. */
|
|
399
|
+
container = input(undefined, /* @ts-ignore */
|
|
400
|
+
...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
|
|
401
|
+
/** The queue the page owns. Present at all decides the mode for good. */
|
|
402
|
+
toasts = input(undefined, /* @ts-ignore */
|
|
403
|
+
...(ngDevMode ? [{ debugName: "toasts" }] : /* istanbul ignore next */ []));
|
|
404
|
+
/**
|
|
405
|
+
* One output for one transition, carrying the value, the value it replaces,
|
|
406
|
+
* the reason, the originating event and `cancel()`. There is no `[(toasts)]`
|
|
407
|
+
* because a two-way binding has one slot and cannot carry any of those — the
|
|
408
|
+
* shape `alert` settled.
|
|
409
|
+
*/
|
|
410
|
+
toastsChange = output();
|
|
411
|
+
defaults = injectToastDefaults();
|
|
412
|
+
/** The family's words in the language in force, with this region's `messages` laid over them. */
|
|
413
|
+
t = injectMessages(toastMessages, this.messages);
|
|
414
|
+
service = inject(SlToastService);
|
|
415
|
+
layer = viewChild.required('layer', /* @ts-ignore */
|
|
416
|
+
...(ngDevMode ? [{ debugName: "layer" }] : /* istanbul ignore next */ []));
|
|
417
|
+
host = inject(ElementRef);
|
|
418
|
+
browser = isPlatformBrowser(inject(PLATFORM_ID));
|
|
419
|
+
/**
|
|
420
|
+
* A region the page's own array feeds cannot share the injected service: the
|
|
421
|
+
* mode is decided once, for the life of the store, and the service's store is
|
|
422
|
+
* uncontrolled by construction.
|
|
423
|
+
*/
|
|
424
|
+
ownStore = this.toasts() === undefined
|
|
425
|
+
? null
|
|
426
|
+
: createToastStore({ toasts: this.toasts() ?? [] });
|
|
427
|
+
store = this.ownStore ?? this.service.store;
|
|
428
|
+
snapshot = signal(this.store.snapshot, /* @ts-ignore */
|
|
429
|
+
...(ngDevMode ? [{ debugName: "snapshot" }] : /* istanbul ignore next */ []));
|
|
430
|
+
visible = computed(() => this.snapshot().visible, /* @ts-ignore */
|
|
431
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
432
|
+
queued = computed(() => this.snapshot().queued, /* @ts-ignore */
|
|
433
|
+
...(ngDevMode ? [{ debugName: "queued" }] : /* istanbul ignore next */ []));
|
|
434
|
+
paused = computed(() => this.snapshot().paused, /* @ts-ignore */
|
|
435
|
+
...(ngDevMode ? [{ debugName: "paused" }] : /* istanbul ignore next */ []));
|
|
436
|
+
resolvedPlacement = computed(() => this.placement() ?? this.defaults.placement, /* @ts-ignore */
|
|
437
|
+
...(ngDevMode ? [{ debugName: "resolvedPlacement" }] : /* istanbul ignore next */ []));
|
|
438
|
+
resolvedAttach = computed(() => this.attach() ?? this.defaults.attach, /* @ts-ignore */
|
|
439
|
+
...(ngDevMode ? [{ debugName: "resolvedAttach" }] : /* istanbul ignore next */ []));
|
|
440
|
+
resolvedStacking = computed(() => this.stacking() ?? this.defaults.stacking, /* @ts-ignore */
|
|
441
|
+
...(ngDevMode ? [{ debugName: "resolvedStacking" }] : /* istanbul ignore next */ []));
|
|
442
|
+
resolvedSwipe = computed(() => this.swipe() ?? this.defaults.swipe, /* @ts-ignore */
|
|
443
|
+
...(ngDevMode ? [{ debugName: "resolvedSwipe" }] : /* istanbul ignore next */ []));
|
|
444
|
+
resolvedHotkey = computed(() => this.hotkey() ?? this.defaults.hotkey, /* @ts-ignore */
|
|
445
|
+
...(ngDevMode ? [{ debugName: "resolvedHotkey" }] : /* istanbul ignore next */ []));
|
|
446
|
+
interacting = { pointer: false, focus: false };
|
|
447
|
+
/** Where the keyboard was before the hotkey moved it into the region. */
|
|
448
|
+
cameFrom = null;
|
|
449
|
+
constructor() {
|
|
450
|
+
const stop = this.store.subscribe(() => this.snapshot.set(this.store.snapshot));
|
|
451
|
+
this.store.onRequest((request) => this.toastsChange.emit(request));
|
|
452
|
+
effect(() => {
|
|
453
|
+
this.store.configure({
|
|
454
|
+
limit: this.limit() ?? this.defaults.limit,
|
|
455
|
+
duration: this.duration() ?? this.defaults.duration,
|
|
456
|
+
pauseOnHover: this.pauseOnHover() ?? this.defaults.pauseOnHover,
|
|
457
|
+
pauseWhenHidden: this.pauseWhenHidden() ?? this.defaults.pauseWhenHidden,
|
|
458
|
+
});
|
|
459
|
+
});
|
|
460
|
+
effect(() => {
|
|
461
|
+
const owned = this.toasts();
|
|
462
|
+
if (owned !== undefined)
|
|
463
|
+
this.store.sync(owned);
|
|
464
|
+
});
|
|
465
|
+
/**
|
|
466
|
+
* A portalled region inherits nothing from where it was written, so the
|
|
467
|
+
* layer carries the theme, the scheme, the density and the direction of the
|
|
468
|
+
* host it came from. Every surveyed implementation loses them.
|
|
469
|
+
*
|
|
470
|
+
* Only in the browser, as the focus effects below: the server's document is
|
|
471
|
+
* not the page. The region is drawn in its host there, where hydration
|
|
472
|
+
* expects the view's nodes, and nothing on the server holds focus.
|
|
473
|
+
*/
|
|
474
|
+
effect((onCleanup) => {
|
|
475
|
+
const section = this.layer().nativeElement;
|
|
476
|
+
if (this.resolvedAttach() !== 'portal' || !this.browser)
|
|
477
|
+
return;
|
|
478
|
+
const handle = createPortalRoot({
|
|
479
|
+
origin: this.host.nativeElement,
|
|
480
|
+
container: this.container() ?? null,
|
|
481
|
+
});
|
|
482
|
+
handle.container?.append(section);
|
|
483
|
+
onCleanup(() => {
|
|
484
|
+
/* Back where Angular expects it before the layer goes, so the view's
|
|
485
|
+
own teardown removes a node whose parent it still knows. */
|
|
486
|
+
this.host.nativeElement.append(section);
|
|
487
|
+
handle.release();
|
|
488
|
+
});
|
|
489
|
+
});
|
|
490
|
+
/**
|
|
491
|
+
* Where the keyboard goes when the message it was in is taken away — the
|
|
492
|
+
* next message, then the element focus came from. Only React Aria answers
|
|
493
|
+
* it at all, and only for its own close button.
|
|
494
|
+
*/
|
|
495
|
+
effect((onCleanup) => {
|
|
496
|
+
const section = this.layer().nativeElement;
|
|
497
|
+
if (!this.browser)
|
|
498
|
+
return;
|
|
499
|
+
const handle = createRemovalFocus(section, {
|
|
500
|
+
itemSelector: '[data-part="item"]',
|
|
501
|
+
fallback: () => this.cameFrom,
|
|
502
|
+
});
|
|
503
|
+
onCleanup(() => handle.destroy());
|
|
504
|
+
});
|
|
505
|
+
/** The one key this family binds, and the only thing that moves focus here. */
|
|
506
|
+
effect((onCleanup) => {
|
|
507
|
+
const section = this.layer().nativeElement;
|
|
508
|
+
const doc = section.ownerDocument;
|
|
509
|
+
const hotkey = this.resolvedHotkey();
|
|
510
|
+
if (!this.browser)
|
|
511
|
+
return;
|
|
512
|
+
const onKeyDown = (event) => {
|
|
513
|
+
const parts = hotkey.toLowerCase().split('+');
|
|
514
|
+
const key = parts.at(-1) ?? '';
|
|
515
|
+
const wants = (name) => parts.includes(name);
|
|
516
|
+
if (event.key.toLowerCase() !== key ||
|
|
517
|
+
event.altKey !== wants('alt') ||
|
|
518
|
+
event.ctrlKey !== wants('ctrl') ||
|
|
519
|
+
event.shiftKey !== wants('shift') ||
|
|
520
|
+
event.metaKey !== wants('meta')) {
|
|
521
|
+
return;
|
|
522
|
+
}
|
|
523
|
+
const first = section.querySelector('[data-part="item"]');
|
|
524
|
+
if (!first)
|
|
525
|
+
return;
|
|
526
|
+
event.preventDefault();
|
|
527
|
+
const active = doc.activeElement;
|
|
528
|
+
this.cameFrom = active instanceof HTMLElement && !section.contains(active) ? active : null;
|
|
529
|
+
first.focus();
|
|
530
|
+
};
|
|
531
|
+
doc.addEventListener('keydown', onKeyDown);
|
|
532
|
+
onCleanup(() => doc.removeEventListener('keydown', onKeyDown));
|
|
533
|
+
});
|
|
534
|
+
/**
|
|
535
|
+
* Measured, and only for the pile. A column of messages that are not all
|
|
536
|
+
* the same height cannot be opened from arithmetic alone.
|
|
537
|
+
*
|
|
538
|
+
* After render rather than as an `effect`: a component's effect runs
|
|
539
|
+
* before its view is refreshed, so the messages that just arrived were not
|
|
540
|
+
* in the list yet and the pile was never measured.
|
|
541
|
+
*/
|
|
542
|
+
afterRenderEffect((onCleanup) => {
|
|
543
|
+
const section = this.layer().nativeElement;
|
|
544
|
+
if (this.resolvedStacking() !== 'stack')
|
|
545
|
+
return;
|
|
546
|
+
void this.visible();
|
|
547
|
+
const list = section.querySelector('[data-part="list"]');
|
|
548
|
+
const view = section.ownerDocument.defaultView;
|
|
549
|
+
if (!list || !view || typeof view.ResizeObserver !== 'function')
|
|
550
|
+
return;
|
|
551
|
+
const measure = () => {
|
|
552
|
+
const items = [...list.querySelectorAll('[data-part="item"]')];
|
|
553
|
+
const gap = Number.parseFloat(view.getComputedStyle(list).rowGap) || 0;
|
|
554
|
+
let offset = 0;
|
|
555
|
+
items.forEach((item, index) => {
|
|
556
|
+
const height = naturalHeight(item);
|
|
557
|
+
item.style.setProperty('--slotted-toast-height', `${height}px`);
|
|
558
|
+
item.style.setProperty('--slotted-toast-stack-offset', `${offset}px`);
|
|
559
|
+
if (index === 0)
|
|
560
|
+
section.style.setProperty('--slotted-toast-front-height', `${height}px`);
|
|
561
|
+
offset += height + gap;
|
|
562
|
+
});
|
|
563
|
+
/* The open pile's whole height, so its gaps are the region's. */
|
|
564
|
+
section.style.setProperty('--slotted-toast-stack-height', `${Math.max(0, offset - gap)}px`);
|
|
565
|
+
};
|
|
566
|
+
const observer = new view.ResizeObserver(measure);
|
|
567
|
+
for (const item of list.querySelectorAll('[data-part="item"]'))
|
|
568
|
+
observer.observe(item);
|
|
569
|
+
measure();
|
|
570
|
+
onCleanup(() => observer.disconnect());
|
|
571
|
+
});
|
|
572
|
+
inject(DestroyRef).onDestroy(() => {
|
|
573
|
+
stop();
|
|
574
|
+
this.ownStore?.destroy();
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
/** Sends the keyboard to the newest message. The family never does it alone. */
|
|
578
|
+
focus() {
|
|
579
|
+
this.layer().nativeElement.querySelector('[data-part="item"]')?.focus();
|
|
580
|
+
}
|
|
581
|
+
onPointer(inside) {
|
|
582
|
+
this.interacting.pointer = inside;
|
|
583
|
+
this.report();
|
|
584
|
+
}
|
|
585
|
+
onFocus(inside) {
|
|
586
|
+
this.interacting.focus = inside;
|
|
587
|
+
this.report();
|
|
588
|
+
}
|
|
589
|
+
onFocusOut(event) {
|
|
590
|
+
const next = event.relatedTarget;
|
|
591
|
+
if (next instanceof Node && this.layer().nativeElement.contains(next))
|
|
592
|
+
return;
|
|
593
|
+
this.interacting.focus = false;
|
|
594
|
+
this.report();
|
|
595
|
+
}
|
|
596
|
+
report() {
|
|
597
|
+
this.store.setInteracting(this.interacting.pointer || this.interacting.focus);
|
|
598
|
+
}
|
|
599
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastRegion, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
600
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlToastRegion, isStandalone: true, selector: "sl-toast-region", inputs: { placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, attach: { classPropertyName: "attach", publicName: "attach", isSignal: true, isRequired: false, transformFunction: null }, stacking: { classPropertyName: "stacking", publicName: "stacking", isSignal: true, isRequired: false, transformFunction: null }, swipe: { classPropertyName: "swipe", publicName: "swipe", isSignal: true, isRequired: false, transformFunction: null }, limit: { classPropertyName: "limit", publicName: "limit", isSignal: true, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: true, isRequired: false, transformFunction: null }, pauseOnHover: { classPropertyName: "pauseOnHover", publicName: "pauseOnHover", isSignal: true, isRequired: false, transformFunction: null }, pauseWhenHidden: { classPropertyName: "pauseWhenHidden", publicName: "pauseWhenHidden", isSignal: true, isRequired: false, transformFunction: null }, hotkey: { classPropertyName: "hotkey", publicName: "hotkey", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, container: { classPropertyName: "container", publicName: "container", isSignal: true, isRequired: false, transformFunction: null }, toasts: { classPropertyName: "toasts", publicName: "toasts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toastsChange: "toastsChange" }, host: { styleAttribute: "display: contents" }, viewQueries: [{ propertyName: "layer", first: true, predicate: ["layer"], descendants: true, isSignal: true }], exportAs: ["slToastRegion"], ngImport: i0, template: `<section
|
|
601
|
+
#layer
|
|
602
|
+
data-part="root"
|
|
603
|
+
data-ui="toast"
|
|
604
|
+
role="region"
|
|
605
|
+
tabindex="-1"
|
|
606
|
+
[attr.aria-label]="t('label')"
|
|
607
|
+
[attr.data-attach]="resolvedAttach()"
|
|
608
|
+
[attr.data-expanded]="paused() ? '' : null"
|
|
609
|
+
[attr.data-placement]="resolvedPlacement()"
|
|
610
|
+
[attr.data-stacking]="resolvedStacking()"
|
|
611
|
+
[attr.data-swipe]="resolvedSwipe()"
|
|
612
|
+
[style.--slotted-toast-count]="visible().length"
|
|
613
|
+
[style.--slotted-toast-play-state]="paused() ? 'paused' : 'running'"
|
|
614
|
+
(focusin)="onFocus(true)"
|
|
615
|
+
(focusout)="onFocusOut($event)"
|
|
616
|
+
(pointerenter)="onPointer(true)"
|
|
617
|
+
(pointerleave)="onPointer(false)"
|
|
618
|
+
>
|
|
619
|
+
<ol data-part="list">
|
|
620
|
+
@for (message of visible(); track message.id; let index = $index) {
|
|
621
|
+
<li [slToastItem]="message" [slToastItemIndex]="index" #item="slToastItem">
|
|
622
|
+
@if (message.data.body; as body) {
|
|
623
|
+
<ng-container
|
|
624
|
+
[ngTemplateOutlet]="body"
|
|
625
|
+
[ngTemplateOutletContext]="{ $implicit: message }"
|
|
626
|
+
[ngTemplateOutletInjector]="item.injector"
|
|
627
|
+
/>
|
|
628
|
+
} @else {
|
|
629
|
+
@if (!message.data.hideIcon && (message.loading || item.mark())) {
|
|
630
|
+
<span aria-hidden="true" data-part="icon">
|
|
631
|
+
@if (message.loading) {
|
|
632
|
+
<div
|
|
633
|
+
slLoader
|
|
634
|
+
contained
|
|
635
|
+
decorative
|
|
636
|
+
[delay]="0"
|
|
637
|
+
[minDuration]="0"
|
|
638
|
+
[tone]="item.tone()"
|
|
639
|
+
></div>
|
|
640
|
+
} @else if (item.mark(); as glyph) {
|
|
641
|
+
<span slIcon><svg slGlyph [name]="glyph" solid></svg></span>
|
|
642
|
+
}
|
|
643
|
+
</span>
|
|
644
|
+
}
|
|
645
|
+
<div data-part="content">
|
|
646
|
+
@if (message.data.title) {
|
|
647
|
+
<div data-part="title">{{ message.data.title }}</div>
|
|
648
|
+
}
|
|
649
|
+
@if (message.data.description) {
|
|
650
|
+
<p data-part="description">{{ message.data.description }}</p>
|
|
651
|
+
}
|
|
652
|
+
</div>
|
|
653
|
+
@if (message.data.dismissible ?? defaults.dismissible) {
|
|
654
|
+
<button
|
|
655
|
+
type="button"
|
|
656
|
+
data-part="close"
|
|
657
|
+
[attr.aria-label]="t('close')"
|
|
658
|
+
(click)="store.dismiss(message.id, 'dismiss')"
|
|
659
|
+
>
|
|
660
|
+
<span slIcon><svg slGlyph name="x"></svg></span>
|
|
661
|
+
</button>
|
|
662
|
+
}
|
|
663
|
+
@if (message.data.actions; as actions) {
|
|
664
|
+
<div data-part="actions">
|
|
665
|
+
<ng-container
|
|
666
|
+
[ngTemplateOutlet]="actions"
|
|
667
|
+
[ngTemplateOutletContext]="{ $implicit: message }"
|
|
668
|
+
/>
|
|
669
|
+
</div>
|
|
670
|
+
}
|
|
671
|
+
@if ((message.data.progress ?? defaults.progress) && message.duration > 0) {
|
|
672
|
+
<div aria-hidden="true" data-part="progress"></div>
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
</li>
|
|
676
|
+
}
|
|
677
|
+
</ol>
|
|
678
|
+
</section>`, isInline: true, styles: ["@layer slotted.components{[data-ui=toast][data-part=root]{--_offset: var(--slotted-toast-offset, var(--slotted-space-6, 1rem));--_measure: var(--slotted-toast-measure, 24rem);--_gap: var(--slotted-toast-gap, var(--slotted-space-5, .75rem));--_stack-step: var(--slotted-toast-stack-step, var(--slotted-space-3, .375rem));--_stack-fade: var(--slotted-toast-stack-fade, .15);--_enter-shift: var(--slotted-space-7, 1.25rem);box-sizing:border-box;container-name:slotted-toast;container-type:inline-size;inline-size:min(var(--_measure),calc(100% - 2 * var(--_offset)));position:fixed;z-index:var(--slotted-z-index-toast, 1200);pointer-events:none}[data-ui=toast][data-part=root][data-attach=inline]{position:absolute}[data-ui=toast][data-part=root][data-placement^=top]{inset-block-start:var(--_offset)}[data-ui=toast][data-part=root][data-placement^=bottom]{inset-block-end:var(--_offset)}[data-ui=toast][data-part=root][data-placement$=-start]{inset-inline-start:var(--_offset)}[data-ui=toast][data-part=root][data-placement$=-end]{inset-inline-end:var(--_offset)}[data-ui=toast][data-part=root][data-placement=top],[data-ui=toast][data-part=root][data-placement=bottom]{inset-inline:var(--_offset);margin-inline:auto}[data-ui=toast]>[data-part=list]{display:flex;flex-direction:column;gap:var(--_gap);list-style:none;margin:0;padding:0;pointer-events:none}[data-ui=toast][data-placement^=bottom]>[data-part=list]{flex-direction:column-reverse}[data-ui=toast][data-expanded]>[data-part=list]{pointer-events:auto}[data-ui=toast]>[data-part=list]>[data-part=item]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_tone-surface: var(--slotted-tone-accent-surface);--_tone-border: var(--slotted-tone-accent-border);--_tone-text: var(--slotted-tone-accent-text);--_ground: var(--slotted-toast-surface, var(--slotted-surface-raised, #ffffff));--_edge: var(--slotted-toast-border-color, var(--slotted-border-subtle, #e2e8f0));--_ink: var(--slotted-toast-text, var(--slotted-text, #0f172a));--_ink-muted: var(--slotted-toast-text-muted, var(--slotted-text-muted, #5b6b7f));--_mark: var(--_tone-text);--_state-hover: color-mix( in oklab, currentcolor var(--slotted-toast-state-layer-hover, 10%), transparent );--_state-active: color-mix( in oklab, currentcolor var(--slotted-toast-state-layer-active, 16%), transparent );--_font-size: var(--slotted-control-font-size-md, 13px);--_glyph-size: var(--slotted-control-icon-size-md, 16px);--_inner-size: var(--slotted-control-inner-size-md, 24px);--_mark-size: round(nearest, 1.2em, 2px);--_line-height: var(--slotted-line-height-md, 1.5);--_inset-block: var(--slotted-toast-padding-block, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-toast-padding-inline, var(--slotted-space-6, 1rem));--_column-gap: var(--slotted-toast-column-gap, var(--slotted-space-4, .5rem));--_row-gap: var(--slotted-toast-row-gap, var(--slotted-space-5, .75rem));--_text-gap: var(--slotted-toast-text-gap, var(--slotted-space-2, .25rem));--_radius: var(--slotted-toast-radius, var(--slotted-radius-lg, 8px));--_border-width: var(--slotted-toast-border-width, var(--slotted-border-width-thin, 1px));--_close-size: var( --slotted-toast-close-size, max( var(--slotted-target-min, 24px), min(calc(var(--_glyph-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) ) );--_progress-size: var(--slotted-toast-progress-size, var(--slotted-space-1, .125rem));background-color:var(--_ground);border:var(--_border-width) solid var(--_edge);border-radius:var(--_radius);box-shadow:var(--slotted-toast-shadow, var(--slotted-shadow-md));box-sizing:border-box;color:var(--_ink);column-gap:0;display:grid;font-family:var(--slotted-toast-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_font-size);grid-template-columns:auto minmax(0,1fr) auto;line-height:round(nearest,calc(var(--_line-height) * 1em),2px);pointer-events:auto;position:relative;overflow:hidden;padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);row-gap:var(--_row-gap);opacity:0;translate:0 var(--_enter-shift);transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=toast][data-placement^=top]>[data-part=list]>[data-part=item]{translate:0 calc(-1 * var(--_enter-shift))}[data-ui=toast]>[data-part=list]>[data-part=item][data-open]{opacity:1;translate:0;transition:opacity var(--slotted-duration-medium) var(--slotted-easing-enter),translate var(--slotted-duration-medium) var(--slotted-easing-enter)}[data-ui=toast]>[data-part=list]>[data-part=item][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_tone-surface: var(--slotted-tone-accent-surface);--_tone-border: var(--slotted-tone-accent-border);--_tone-text: var(--slotted-tone-accent-text)}[data-ui=toast]>[data-part=list]>[data-part=item][data-tone=secondary]{--_solid: var(--slotted-tone-secondary-solid);--_on-solid: var(--slotted-tone-secondary-on-solid);--_tone-surface: var(--slotted-tone-secondary-surface);--_tone-border: var(--slotted-tone-secondary-border);--_tone-text: var(--slotted-tone-secondary-text)}[data-ui=toast]>[data-part=list]>[data-part=item][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_on-solid: var(--slotted-tone-success-on-solid);--_tone-surface: var(--slotted-tone-success-surface);--_tone-border: var(--slotted-tone-success-border);--_tone-text: var(--slotted-tone-success-text)}[data-ui=toast]>[data-part=list]>[data-part=item][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_on-solid: var(--slotted-tone-warning-on-solid);--_tone-surface: var(--slotted-tone-warning-surface);--_tone-border: var(--slotted-tone-warning-border);--_tone-text: var(--slotted-tone-warning-text)}[data-ui=toast]>[data-part=list]>[data-part=item][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_on-solid: var(--slotted-tone-danger-on-solid);--_tone-surface: var(--slotted-tone-danger-surface);--_tone-border: var(--slotted-tone-danger-border);--_tone-text: var(--slotted-tone-danger-text)}[data-ui=toast]>[data-part=list]>[data-part=item][data-variant=soft]{--_ground: var(--_tone-surface);--_edge: var(--_tone-border);--_ink: var(--_tone-text);--_ink-muted: var(--_tone-text)}[data-ui=toast]>[data-part=list]>[data-part=item][data-variant=solid]{--_ground: var(--_solid);--_edge: var(--_solid);--_ink: var(--_on-solid);--_ink-muted: var(--_on-solid);--_mark: var(--_on-solid)}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=icon]{--slotted-icon-size: calc(var(--_mark-size) * 12 / 11);--slotted-progress-indicator-size: var(--_mark-size);--slotted-progress-indicator-indicator-color: var(--_mark);--slotted-progress-indicator-track-color: color-mix(in oklab, var(--_mark) 24%, var(--_ground));align-items:center;align-self:baseline;block-size:var(--_mark-size);color:var(--_mark);contain:layout;display:flex;grid-column:1;grid-row:1;inline-size:var(--_mark-size);inset-block-start:round(nearest,(var(--_mark-size) - 1cap) / 2,1px);justify-content:center;margin-block-start:calc(-1 * var(--_mark-size));margin-inline-end:var(--_column-gap);position:relative}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=content]{align-self:baseline;display:grid;grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr);min-inline-size:0;row-gap:var(--_text-gap)}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=content]>[data-part=title]{font-family:var( --slotted-toast-title-font-family, var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) ) );font-weight:var(--slotted-toast-title-font-weight, var(--slotted-font-weight-semibold, 600));margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=content]>[data-part=description]{color:var(--_ink-muted);margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=actions]{align-items:center;display:flex;flex-wrap:wrap;gap:var(--slotted-toast-actions-gap, var(--slotted-space-3, .375rem));grid-column:2;grid-row:2;min-inline-size:0}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]{--slotted-icon-size: var(--_glyph-size);align-items:center;align-self:start;appearance:none;background-color:transparent;block-size:var(--_close-size);border:0;border-radius:var(--slotted-toast-close-radius, var(--slotted-control-radius, 4px));color:inherit;cursor:pointer;display:inline-flex;flex:none;font:inherit;grid-column:3;grid-row:1;inline-size:var(--_close-size);justify-content:center;margin-block-end:calc((1lh - var(--_close-size)) / 2);margin-block-start:calc((1lh - var(--_close-size)) / 2);margin-inline-end:calc((1lh - var(--_close-size)) / 2);margin-inline-start:var(--_column-gap);padding:0;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]:enabled:hover{background-color:var(--_state-hover)}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]:enabled:active{background-color:var(--_state-active)}@media(pointer:coarse){[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]{position:relative}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]:focus-visible,[data-ui=toast]>[data-part=list]>[data-part=item]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight)}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]:focus-visible{outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui=toast]>[data-part=list]>[data-part=item]:focus-visible{outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui=toast]>[data-part=list]>[data-part=item][data-variant=solid]>[data-part=close]:focus-visible{box-shadow:inset 0 0 0 calc(2 * var(--slotted-focus-ring-width, 2px)) var(--_on-solid)}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=progress]{animation-duration:var(--slotted-toast-duration, var(--slotted-duration-long));animation-fill-mode:forwards;animation-name:slotted-toast-countdown;animation-play-state:var(--slotted-toast-play-state, running);animation-timing-function:linear;background-color:var(--_solid);block-size:var(--_progress-size);inset-block-end:0;inset-inline-start:0;position:absolute}[data-ui=toast]>[data-part=list]>[data-part=item][data-variant=solid]>[data-part=progress]{background-color:var(--_on-solid);opacity:.7}@keyframes slotted-toast-countdown{0%{inline-size:100%}to{inline-size:0%}}[data-ui=toast][data-stacking=stack]>[data-part=list]{display:block;position:relative}[data-ui=toast][data-stacking=stack]>[data-part=list]>[data-part=item]{block-size:var(--slotted-toast-front-height, auto);inset-inline:0;position:absolute;z-index:calc(var(--slotted-toast-count, 1) - var(--slotted-toast-index, 0));transition:block-size var(--slotted-duration-medium) var(--slotted-easing-standard),opacity var(--slotted-duration-medium) var(--slotted-easing-standard),translate var(--slotted-duration-medium) var(--slotted-easing-standard)}[data-ui=toast][data-stacking=stack]>[data-part=list]>[data-part=item][data-open]{opacity:calc(1 - min(var(--slotted-toast-index, 0),2) * var(--_stack-fade))}[data-ui=toast][data-stacking=stack][data-placement^=bottom]>[data-part=list]>[data-part=item]{inset-block-end:0;translate:0 calc(-1 * var(--slotted-toast-index, 0) * var(--_stack-step))}[data-ui=toast][data-stacking=stack][data-placement^=top]>[data-part=list]>[data-part=item]{inset-block-start:0;translate:0 calc(var(--slotted-toast-index, 0) * var(--_stack-step))}[data-ui=toast][data-stacking=stack][data-expanded]>[data-part=list]>[data-part=item]{block-size:var(--slotted-toast-height, auto)}[data-ui=toast][data-stacking=stack][data-expanded]>[data-part=list]{block-size:var(--slotted-toast-stack-height, auto)}[data-ui=toast][data-stacking=stack][data-expanded]>[data-part=list]>[data-part=item][data-open]{opacity:1}[data-ui=toast][data-stacking=stack][data-expanded][data-placement^=bottom]>[data-part=list]>[data-part=item]{translate:0 calc(-1 * var(--slotted-toast-stack-offset, 0px))}[data-ui=toast][data-stacking=stack][data-expanded][data-placement^=top]>[data-part=list]>[data-part=item]{translate:0 var(--slotted-toast-stack-offset, 0px)}[data-ui=toast][data-stacking=stack]>[data-part=list]>[data-part=item]>*{transition:opacity var(--slotted-duration-medium) var(--slotted-easing-standard)}[data-ui=toast][data-stacking=stack]:not([data-expanded]) [data-part=item]>*{opacity:calc(1 - min(1,var(--slotted-toast-index, 0)))}[data-ui=toast]>[data-part=list]>[data-part=item][data-dragging]{cursor:grabbing;transition:none;translate:var(--slotted-toast-swipe-x, 0px) var(--slotted-toast-swipe-y, 0px);touch-action:none;-webkit-user-select:none;user-select:none}[data-ui=toast][data-swipe=true]>[data-part=list]>[data-part=item]{touch-action:none}@container slotted-toast (max-width: 20rem){[data-ui=toast]>[data-part=list]>[data-part=item]{--_inset-block: var(--slotted-toast-padding-block, var(--slotted-space-4, .5rem));--_inset-inline: var(--slotted-toast-padding-inline, var(--slotted-space-5, .75rem))}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=actions]{align-items:flex-start;flex-direction:column}}@media(forced-colors:active){[data-ui=toast]>[data-part=list]>[data-part=item]{border-color:CanvasText}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=icon]{color:CanvasText}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]{color:CanvasText}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]:enabled:hover,[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]:enabled:active{background-color:Highlight;color:HighlightText}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=progress]{background-color:CanvasText;opacity:1}}@media(prefers-reduced-motion:reduce){[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=progress]{animation-name:none;inline-size:100%}}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }, { kind: "component", type: SlLoader, selector: "[slLoader]", inputs: ["contained"], exportAs: ["slLoader"] }, { kind: "directive", type: SlToastItem, selector: "li[slToastItem]", inputs: ["slToastItem", "slToastItemIndex"], exportAs: ["slToastItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
679
|
+
}
|
|
680
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastRegion, decorators: [{
|
|
681
|
+
type: Component,
|
|
682
|
+
args: [{ selector: 'sl-toast-region', standalone: true, exportAs: 'slToastRegion', imports: [NgTemplateOutlet, SlGlyph, SlIcon, SlLoader, SlToastItem], template: `<section
|
|
683
|
+
#layer
|
|
684
|
+
data-part="root"
|
|
685
|
+
data-ui="toast"
|
|
686
|
+
role="region"
|
|
687
|
+
tabindex="-1"
|
|
688
|
+
[attr.aria-label]="t('label')"
|
|
689
|
+
[attr.data-attach]="resolvedAttach()"
|
|
690
|
+
[attr.data-expanded]="paused() ? '' : null"
|
|
691
|
+
[attr.data-placement]="resolvedPlacement()"
|
|
692
|
+
[attr.data-stacking]="resolvedStacking()"
|
|
693
|
+
[attr.data-swipe]="resolvedSwipe()"
|
|
694
|
+
[style.--slotted-toast-count]="visible().length"
|
|
695
|
+
[style.--slotted-toast-play-state]="paused() ? 'paused' : 'running'"
|
|
696
|
+
(focusin)="onFocus(true)"
|
|
697
|
+
(focusout)="onFocusOut($event)"
|
|
698
|
+
(pointerenter)="onPointer(true)"
|
|
699
|
+
(pointerleave)="onPointer(false)"
|
|
700
|
+
>
|
|
701
|
+
<ol data-part="list">
|
|
702
|
+
@for (message of visible(); track message.id; let index = $index) {
|
|
703
|
+
<li [slToastItem]="message" [slToastItemIndex]="index" #item="slToastItem">
|
|
704
|
+
@if (message.data.body; as body) {
|
|
705
|
+
<ng-container
|
|
706
|
+
[ngTemplateOutlet]="body"
|
|
707
|
+
[ngTemplateOutletContext]="{ $implicit: message }"
|
|
708
|
+
[ngTemplateOutletInjector]="item.injector"
|
|
709
|
+
/>
|
|
710
|
+
} @else {
|
|
711
|
+
@if (!message.data.hideIcon && (message.loading || item.mark())) {
|
|
712
|
+
<span aria-hidden="true" data-part="icon">
|
|
713
|
+
@if (message.loading) {
|
|
714
|
+
<div
|
|
715
|
+
slLoader
|
|
716
|
+
contained
|
|
717
|
+
decorative
|
|
718
|
+
[delay]="0"
|
|
719
|
+
[minDuration]="0"
|
|
720
|
+
[tone]="item.tone()"
|
|
721
|
+
></div>
|
|
722
|
+
} @else if (item.mark(); as glyph) {
|
|
723
|
+
<span slIcon><svg slGlyph [name]="glyph" solid></svg></span>
|
|
724
|
+
}
|
|
725
|
+
</span>
|
|
726
|
+
}
|
|
727
|
+
<div data-part="content">
|
|
728
|
+
@if (message.data.title) {
|
|
729
|
+
<div data-part="title">{{ message.data.title }}</div>
|
|
730
|
+
}
|
|
731
|
+
@if (message.data.description) {
|
|
732
|
+
<p data-part="description">{{ message.data.description }}</p>
|
|
733
|
+
}
|
|
734
|
+
</div>
|
|
735
|
+
@if (message.data.dismissible ?? defaults.dismissible) {
|
|
736
|
+
<button
|
|
737
|
+
type="button"
|
|
738
|
+
data-part="close"
|
|
739
|
+
[attr.aria-label]="t('close')"
|
|
740
|
+
(click)="store.dismiss(message.id, 'dismiss')"
|
|
741
|
+
>
|
|
742
|
+
<span slIcon><svg slGlyph name="x"></svg></span>
|
|
743
|
+
</button>
|
|
744
|
+
}
|
|
745
|
+
@if (message.data.actions; as actions) {
|
|
746
|
+
<div data-part="actions">
|
|
747
|
+
<ng-container
|
|
748
|
+
[ngTemplateOutlet]="actions"
|
|
749
|
+
[ngTemplateOutletContext]="{ $implicit: message }"
|
|
750
|
+
/>
|
|
751
|
+
</div>
|
|
752
|
+
}
|
|
753
|
+
@if ((message.data.progress ?? defaults.progress) && message.duration > 0) {
|
|
754
|
+
<div aria-hidden="true" data-part="progress"></div>
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
</li>
|
|
758
|
+
}
|
|
759
|
+
</ol>
|
|
760
|
+
</section>`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { style: 'display: contents' }, styles: ["@layer slotted.components{[data-ui=toast][data-part=root]{--_offset: var(--slotted-toast-offset, var(--slotted-space-6, 1rem));--_measure: var(--slotted-toast-measure, 24rem);--_gap: var(--slotted-toast-gap, var(--slotted-space-5, .75rem));--_stack-step: var(--slotted-toast-stack-step, var(--slotted-space-3, .375rem));--_stack-fade: var(--slotted-toast-stack-fade, .15);--_enter-shift: var(--slotted-space-7, 1.25rem);box-sizing:border-box;container-name:slotted-toast;container-type:inline-size;inline-size:min(var(--_measure),calc(100% - 2 * var(--_offset)));position:fixed;z-index:var(--slotted-z-index-toast, 1200);pointer-events:none}[data-ui=toast][data-part=root][data-attach=inline]{position:absolute}[data-ui=toast][data-part=root][data-placement^=top]{inset-block-start:var(--_offset)}[data-ui=toast][data-part=root][data-placement^=bottom]{inset-block-end:var(--_offset)}[data-ui=toast][data-part=root][data-placement$=-start]{inset-inline-start:var(--_offset)}[data-ui=toast][data-part=root][data-placement$=-end]{inset-inline-end:var(--_offset)}[data-ui=toast][data-part=root][data-placement=top],[data-ui=toast][data-part=root][data-placement=bottom]{inset-inline:var(--_offset);margin-inline:auto}[data-ui=toast]>[data-part=list]{display:flex;flex-direction:column;gap:var(--_gap);list-style:none;margin:0;padding:0;pointer-events:none}[data-ui=toast][data-placement^=bottom]>[data-part=list]{flex-direction:column-reverse}[data-ui=toast][data-expanded]>[data-part=list]{pointer-events:auto}[data-ui=toast]>[data-part=list]>[data-part=item]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_tone-surface: var(--slotted-tone-accent-surface);--_tone-border: var(--slotted-tone-accent-border);--_tone-text: var(--slotted-tone-accent-text);--_ground: var(--slotted-toast-surface, var(--slotted-surface-raised, #ffffff));--_edge: var(--slotted-toast-border-color, var(--slotted-border-subtle, #e2e8f0));--_ink: var(--slotted-toast-text, var(--slotted-text, #0f172a));--_ink-muted: var(--slotted-toast-text-muted, var(--slotted-text-muted, #5b6b7f));--_mark: var(--_tone-text);--_state-hover: color-mix( in oklab, currentcolor var(--slotted-toast-state-layer-hover, 10%), transparent );--_state-active: color-mix( in oklab, currentcolor var(--slotted-toast-state-layer-active, 16%), transparent );--_font-size: var(--slotted-control-font-size-md, 13px);--_glyph-size: var(--slotted-control-icon-size-md, 16px);--_inner-size: var(--slotted-control-inner-size-md, 24px);--_mark-size: round(nearest, 1.2em, 2px);--_line-height: var(--slotted-line-height-md, 1.5);--_inset-block: var(--slotted-toast-padding-block, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-toast-padding-inline, var(--slotted-space-6, 1rem));--_column-gap: var(--slotted-toast-column-gap, var(--slotted-space-4, .5rem));--_row-gap: var(--slotted-toast-row-gap, var(--slotted-space-5, .75rem));--_text-gap: var(--slotted-toast-text-gap, var(--slotted-space-2, .25rem));--_radius: var(--slotted-toast-radius, var(--slotted-radius-lg, 8px));--_border-width: var(--slotted-toast-border-width, var(--slotted-border-width-thin, 1px));--_close-size: var( --slotted-toast-close-size, max( var(--slotted-target-min, 24px), min(calc(var(--_glyph-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) ) );--_progress-size: var(--slotted-toast-progress-size, var(--slotted-space-1, .125rem));background-color:var(--_ground);border:var(--_border-width) solid var(--_edge);border-radius:var(--_radius);box-shadow:var(--slotted-toast-shadow, var(--slotted-shadow-md));box-sizing:border-box;color:var(--_ink);column-gap:0;display:grid;font-family:var(--slotted-toast-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_font-size);grid-template-columns:auto minmax(0,1fr) auto;line-height:round(nearest,calc(var(--_line-height) * 1em),2px);pointer-events:auto;position:relative;overflow:hidden;padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);row-gap:var(--_row-gap);opacity:0;translate:0 var(--_enter-shift);transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=toast][data-placement^=top]>[data-part=list]>[data-part=item]{translate:0 calc(-1 * var(--_enter-shift))}[data-ui=toast]>[data-part=list]>[data-part=item][data-open]{opacity:1;translate:0;transition:opacity var(--slotted-duration-medium) var(--slotted-easing-enter),translate var(--slotted-duration-medium) var(--slotted-easing-enter)}[data-ui=toast]>[data-part=list]>[data-part=item][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_tone-surface: var(--slotted-tone-accent-surface);--_tone-border: var(--slotted-tone-accent-border);--_tone-text: var(--slotted-tone-accent-text)}[data-ui=toast]>[data-part=list]>[data-part=item][data-tone=secondary]{--_solid: var(--slotted-tone-secondary-solid);--_on-solid: var(--slotted-tone-secondary-on-solid);--_tone-surface: var(--slotted-tone-secondary-surface);--_tone-border: var(--slotted-tone-secondary-border);--_tone-text: var(--slotted-tone-secondary-text)}[data-ui=toast]>[data-part=list]>[data-part=item][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_on-solid: var(--slotted-tone-success-on-solid);--_tone-surface: var(--slotted-tone-success-surface);--_tone-border: var(--slotted-tone-success-border);--_tone-text: var(--slotted-tone-success-text)}[data-ui=toast]>[data-part=list]>[data-part=item][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_on-solid: var(--slotted-tone-warning-on-solid);--_tone-surface: var(--slotted-tone-warning-surface);--_tone-border: var(--slotted-tone-warning-border);--_tone-text: var(--slotted-tone-warning-text)}[data-ui=toast]>[data-part=list]>[data-part=item][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_on-solid: var(--slotted-tone-danger-on-solid);--_tone-surface: var(--slotted-tone-danger-surface);--_tone-border: var(--slotted-tone-danger-border);--_tone-text: var(--slotted-tone-danger-text)}[data-ui=toast]>[data-part=list]>[data-part=item][data-variant=soft]{--_ground: var(--_tone-surface);--_edge: var(--_tone-border);--_ink: var(--_tone-text);--_ink-muted: var(--_tone-text)}[data-ui=toast]>[data-part=list]>[data-part=item][data-variant=solid]{--_ground: var(--_solid);--_edge: var(--_solid);--_ink: var(--_on-solid);--_ink-muted: var(--_on-solid);--_mark: var(--_on-solid)}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=icon]{--slotted-icon-size: calc(var(--_mark-size) * 12 / 11);--slotted-progress-indicator-size: var(--_mark-size);--slotted-progress-indicator-indicator-color: var(--_mark);--slotted-progress-indicator-track-color: color-mix(in oklab, var(--_mark) 24%, var(--_ground));align-items:center;align-self:baseline;block-size:var(--_mark-size);color:var(--_mark);contain:layout;display:flex;grid-column:1;grid-row:1;inline-size:var(--_mark-size);inset-block-start:round(nearest,(var(--_mark-size) - 1cap) / 2,1px);justify-content:center;margin-block-start:calc(-1 * var(--_mark-size));margin-inline-end:var(--_column-gap);position:relative}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=content]{align-self:baseline;display:grid;grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr);min-inline-size:0;row-gap:var(--_text-gap)}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=content]>[data-part=title]{font-family:var( --slotted-toast-title-font-family, var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) ) );font-weight:var(--slotted-toast-title-font-weight, var(--slotted-font-weight-semibold, 600));margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=content]>[data-part=description]{color:var(--_ink-muted);margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=actions]{align-items:center;display:flex;flex-wrap:wrap;gap:var(--slotted-toast-actions-gap, var(--slotted-space-3, .375rem));grid-column:2;grid-row:2;min-inline-size:0}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]{--slotted-icon-size: var(--_glyph-size);align-items:center;align-self:start;appearance:none;background-color:transparent;block-size:var(--_close-size);border:0;border-radius:var(--slotted-toast-close-radius, var(--slotted-control-radius, 4px));color:inherit;cursor:pointer;display:inline-flex;flex:none;font:inherit;grid-column:3;grid-row:1;inline-size:var(--_close-size);justify-content:center;margin-block-end:calc((1lh - var(--_close-size)) / 2);margin-block-start:calc((1lh - var(--_close-size)) / 2);margin-inline-end:calc((1lh - var(--_close-size)) / 2);margin-inline-start:var(--_column-gap);padding:0;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]:enabled:hover{background-color:var(--_state-hover)}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]:enabled:active{background-color:var(--_state-active)}@media(pointer:coarse){[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]{position:relative}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]:focus-visible,[data-ui=toast]>[data-part=list]>[data-part=item]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight)}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]:focus-visible{outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui=toast]>[data-part=list]>[data-part=item]:focus-visible{outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui=toast]>[data-part=list]>[data-part=item][data-variant=solid]>[data-part=close]:focus-visible{box-shadow:inset 0 0 0 calc(2 * var(--slotted-focus-ring-width, 2px)) var(--_on-solid)}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=progress]{animation-duration:var(--slotted-toast-duration, var(--slotted-duration-long));animation-fill-mode:forwards;animation-name:slotted-toast-countdown;animation-play-state:var(--slotted-toast-play-state, running);animation-timing-function:linear;background-color:var(--_solid);block-size:var(--_progress-size);inset-block-end:0;inset-inline-start:0;position:absolute}[data-ui=toast]>[data-part=list]>[data-part=item][data-variant=solid]>[data-part=progress]{background-color:var(--_on-solid);opacity:.7}@keyframes slotted-toast-countdown{0%{inline-size:100%}to{inline-size:0%}}[data-ui=toast][data-stacking=stack]>[data-part=list]{display:block;position:relative}[data-ui=toast][data-stacking=stack]>[data-part=list]>[data-part=item]{block-size:var(--slotted-toast-front-height, auto);inset-inline:0;position:absolute;z-index:calc(var(--slotted-toast-count, 1) - var(--slotted-toast-index, 0));transition:block-size var(--slotted-duration-medium) var(--slotted-easing-standard),opacity var(--slotted-duration-medium) var(--slotted-easing-standard),translate var(--slotted-duration-medium) var(--slotted-easing-standard)}[data-ui=toast][data-stacking=stack]>[data-part=list]>[data-part=item][data-open]{opacity:calc(1 - min(var(--slotted-toast-index, 0),2) * var(--_stack-fade))}[data-ui=toast][data-stacking=stack][data-placement^=bottom]>[data-part=list]>[data-part=item]{inset-block-end:0;translate:0 calc(-1 * var(--slotted-toast-index, 0) * var(--_stack-step))}[data-ui=toast][data-stacking=stack][data-placement^=top]>[data-part=list]>[data-part=item]{inset-block-start:0;translate:0 calc(var(--slotted-toast-index, 0) * var(--_stack-step))}[data-ui=toast][data-stacking=stack][data-expanded]>[data-part=list]>[data-part=item]{block-size:var(--slotted-toast-height, auto)}[data-ui=toast][data-stacking=stack][data-expanded]>[data-part=list]{block-size:var(--slotted-toast-stack-height, auto)}[data-ui=toast][data-stacking=stack][data-expanded]>[data-part=list]>[data-part=item][data-open]{opacity:1}[data-ui=toast][data-stacking=stack][data-expanded][data-placement^=bottom]>[data-part=list]>[data-part=item]{translate:0 calc(-1 * var(--slotted-toast-stack-offset, 0px))}[data-ui=toast][data-stacking=stack][data-expanded][data-placement^=top]>[data-part=list]>[data-part=item]{translate:0 var(--slotted-toast-stack-offset, 0px)}[data-ui=toast][data-stacking=stack]>[data-part=list]>[data-part=item]>*{transition:opacity var(--slotted-duration-medium) var(--slotted-easing-standard)}[data-ui=toast][data-stacking=stack]:not([data-expanded]) [data-part=item]>*{opacity:calc(1 - min(1,var(--slotted-toast-index, 0)))}[data-ui=toast]>[data-part=list]>[data-part=item][data-dragging]{cursor:grabbing;transition:none;translate:var(--slotted-toast-swipe-x, 0px) var(--slotted-toast-swipe-y, 0px);touch-action:none;-webkit-user-select:none;user-select:none}[data-ui=toast][data-swipe=true]>[data-part=list]>[data-part=item]{touch-action:none}@container slotted-toast (max-width: 20rem){[data-ui=toast]>[data-part=list]>[data-part=item]{--_inset-block: var(--slotted-toast-padding-block, var(--slotted-space-4, .5rem));--_inset-inline: var(--slotted-toast-padding-inline, var(--slotted-space-5, .75rem))}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=actions]{align-items:flex-start;flex-direction:column}}@media(forced-colors:active){[data-ui=toast]>[data-part=list]>[data-part=item]{border-color:CanvasText}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=icon]{color:CanvasText}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]{color:CanvasText}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]:enabled:hover,[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=close]:enabled:active{background-color:Highlight;color:HighlightText}[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=progress]{background-color:CanvasText;opacity:1}}@media(prefers-reduced-motion:reduce){[data-ui=toast]>[data-part=list]>[data-part=item]>[data-part=progress]{animation-name:none;inline-size:100%}}}\n"] }]
|
|
761
|
+
}], ctorParameters: () => [], propDecorators: { placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], attach: [{ type: i0.Input, args: [{ isSignal: true, alias: "attach", required: false }] }], stacking: [{ type: i0.Input, args: [{ isSignal: true, alias: "stacking", required: false }] }], swipe: [{ type: i0.Input, args: [{ isSignal: true, alias: "swipe", required: false }] }], limit: [{ type: i0.Input, args: [{ isSignal: true, alias: "limit", required: false }] }], duration: [{ type: i0.Input, args: [{ isSignal: true, alias: "duration", required: false }] }], pauseOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "pauseOnHover", required: false }] }], pauseWhenHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "pauseWhenHidden", required: false }] }], hotkey: [{ type: i0.Input, args: [{ isSignal: true, alias: "hotkey", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], container: [{ type: i0.Input, args: [{ isSignal: true, alias: "container", required: false }] }], toasts: [{ type: i0.Input, args: [{ isSignal: true, alias: "toasts", required: false }] }], toastsChange: [{ type: i0.Output, args: ["toastsChange"] }], layer: [{ type: i0.ViewChild, args: ['layer', { isSignal: true }] }] } });
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* The parts, for a page that writes its own message body inside
|
|
765
|
+
* `<ng-template slToastBody>` rather than taking the family's.
|
|
766
|
+
*
|
|
767
|
+
* They carry the part name and nothing else: the geometry, the tone and the
|
|
768
|
+
* states are the item's and the region's, and a directive that repeated any of
|
|
769
|
+
* them would be a second place to change them. The two that draw a glyph read
|
|
770
|
+
* it from the item they sit in.
|
|
771
|
+
*/
|
|
772
|
+
/**
|
|
773
|
+
* The tone's mark, or the page's own. Content the page writes replaces it;
|
|
774
|
+
* with none, the item's glyph is drawn, `progress-indicator`'s contained
|
|
775
|
+
* loader while the message waits, and nothing for `secondary`.
|
|
776
|
+
*/
|
|
777
|
+
class SlToastIcon {
|
|
778
|
+
item = inject(SlToastItem, { optional: true });
|
|
779
|
+
/* Outside an item there is no tone, and the default tone's glyph stands. */
|
|
780
|
+
mark = computed(() => (this.item === null ? 'circle-info' : this.item.mark()), /* @ts-ignore */
|
|
781
|
+
...(ngDevMode ? [{ debugName: "mark" }] : /* istanbul ignore next */ []));
|
|
782
|
+
loading = computed(() => this.item?.message().loading ?? false, /* @ts-ignore */
|
|
783
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
784
|
+
tone = computed(() => this.item?.tone() ?? 'accent', /* @ts-ignore */
|
|
785
|
+
...(ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []));
|
|
786
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastIcon, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
787
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlToastIcon, isStandalone: true, selector: "[slToastIcon]", host: { attributes: { "data-part": "icon", "aria-hidden": "true" } }, exportAs: ["slToastIcon"], ngImport: i0, template: `<ng-content>
|
|
788
|
+
@if (loading()) {
|
|
789
|
+
<div slLoader contained decorative [delay]="0" [minDuration]="0" [tone]="tone()"></div>
|
|
790
|
+
} @else if (mark(); as glyph) {
|
|
791
|
+
<span slIcon><svg slGlyph [name]="glyph" solid></svg></span>
|
|
792
|
+
}
|
|
793
|
+
</ng-content>`, 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"] }, { kind: "component", type: SlLoader, selector: "[slLoader]", inputs: ["contained"], exportAs: ["slLoader"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
794
|
+
}
|
|
795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastIcon, decorators: [{
|
|
796
|
+
type: Component,
|
|
797
|
+
args: [{
|
|
798
|
+
selector: '[slToastIcon]',
|
|
799
|
+
standalone: true,
|
|
800
|
+
exportAs: 'slToastIcon',
|
|
801
|
+
imports: [SlGlyph, SlIcon, SlLoader],
|
|
802
|
+
template: `<ng-content>
|
|
803
|
+
@if (loading()) {
|
|
804
|
+
<div slLoader contained decorative [delay]="0" [minDuration]="0" [tone]="tone()"></div>
|
|
805
|
+
} @else if (mark(); as glyph) {
|
|
806
|
+
<span slIcon><svg slGlyph [name]="glyph" solid></svg></span>
|
|
807
|
+
}
|
|
808
|
+
</ng-content>`,
|
|
809
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
810
|
+
host: { 'data-part': 'icon', 'aria-hidden': 'true' },
|
|
811
|
+
}]
|
|
812
|
+
}] });
|
|
813
|
+
/** The words, and the one column that is allowed to shrink. */
|
|
814
|
+
class SlToastContent {
|
|
815
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
816
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlToastContent, isStandalone: true, selector: "[slToastContent]", host: { attributes: { "data-part": "content" } }, exportAs: ["slToastContent"], ngImport: i0 });
|
|
817
|
+
}
|
|
818
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastContent, decorators: [{
|
|
819
|
+
type: Directive,
|
|
820
|
+
args: [{
|
|
821
|
+
selector: '[slToastContent]',
|
|
822
|
+
standalone: true,
|
|
823
|
+
exportAs: 'slToastContent',
|
|
824
|
+
host: { 'data-part': 'content' },
|
|
825
|
+
}]
|
|
826
|
+
}] });
|
|
827
|
+
/**
|
|
828
|
+
* The message's name. Written on the page's own element, and not a heading: a
|
|
829
|
+
* message that is gone in five seconds is not a section of the document.
|
|
830
|
+
*/
|
|
831
|
+
class SlToastTitle {
|
|
832
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
833
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlToastTitle, isStandalone: true, selector: "[slToastTitle]", host: { attributes: { "data-part": "title" } }, exportAs: ["slToastTitle"], ngImport: i0 });
|
|
834
|
+
}
|
|
835
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastTitle, decorators: [{
|
|
836
|
+
type: Directive,
|
|
837
|
+
args: [{
|
|
838
|
+
selector: '[slToastTitle]',
|
|
839
|
+
standalone: true,
|
|
840
|
+
exportAs: 'slToastTitle',
|
|
841
|
+
host: { 'data-part': 'title' },
|
|
842
|
+
}]
|
|
843
|
+
}] });
|
|
844
|
+
/** The message. Written on a `p`, which is what a sentence of prose is. */
|
|
845
|
+
class SlToastDescription {
|
|
846
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
847
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlToastDescription, isStandalone: true, selector: "[slToastDescription]", host: { attributes: { "data-part": "description" } }, exportAs: ["slToastDescription"], ngImport: i0 });
|
|
848
|
+
}
|
|
849
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastDescription, decorators: [{
|
|
850
|
+
type: Directive,
|
|
851
|
+
args: [{
|
|
852
|
+
selector: '[slToastDescription]',
|
|
853
|
+
standalone: true,
|
|
854
|
+
exportAs: 'slToastDescription',
|
|
855
|
+
host: { 'data-part': 'description' },
|
|
856
|
+
}]
|
|
857
|
+
}] });
|
|
858
|
+
/**
|
|
859
|
+
* The controls that act on the message. What goes in is the page's own
|
|
860
|
+
* buttons: `button` already owns what a button is.
|
|
861
|
+
*/
|
|
862
|
+
class SlToastActions {
|
|
863
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
864
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlToastActions, isStandalone: true, selector: "[slToastActions]", host: { attributes: { "data-part": "actions" } }, exportAs: ["slToastActions"], ngImport: i0 });
|
|
865
|
+
}
|
|
866
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastActions, decorators: [{
|
|
867
|
+
type: Directive,
|
|
868
|
+
args: [{
|
|
869
|
+
selector: '[slToastActions]',
|
|
870
|
+
standalone: true,
|
|
871
|
+
exportAs: 'slToastActions',
|
|
872
|
+
host: { 'data-part': 'actions' },
|
|
873
|
+
}]
|
|
874
|
+
}] });
|
|
875
|
+
/** The control that puts the message away. A real button with a real name. */
|
|
876
|
+
class SlToastClose {
|
|
877
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastClose, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
878
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: SlToastClose, isStandalone: true, selector: "button[slToastClose]", host: { attributes: { "data-part": "close", "type": "button" } }, exportAs: ["slToastClose"], ngImport: i0, template: `<ng-content
|
|
879
|
+
><span slIcon><svg slGlyph name="x"></svg></span
|
|
880
|
+
></ng-content>`, 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 });
|
|
881
|
+
}
|
|
882
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastClose, decorators: [{
|
|
883
|
+
type: Component,
|
|
884
|
+
args: [{
|
|
885
|
+
selector: 'button[slToastClose]',
|
|
886
|
+
standalone: true,
|
|
887
|
+
exportAs: 'slToastClose',
|
|
888
|
+
imports: [SlGlyph, SlIcon],
|
|
889
|
+
/* The cross is drawn unless the consumer wrote content of their own. */
|
|
890
|
+
template: `<ng-content
|
|
891
|
+
><span slIcon><svg slGlyph name="x"></svg></span
|
|
892
|
+
></ng-content>`,
|
|
893
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
894
|
+
host: { 'data-part': 'close', type: 'button' },
|
|
895
|
+
}]
|
|
896
|
+
}] });
|
|
897
|
+
/** How much of the duration is left, drawn from the number the timer reads. */
|
|
898
|
+
class SlToastProgress {
|
|
899
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastProgress, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
900
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlToastProgress, isStandalone: true, selector: "[slToastProgress]", host: { attributes: { "data-part": "progress", "aria-hidden": "true" } }, exportAs: ["slToastProgress"], ngImport: i0 });
|
|
901
|
+
}
|
|
902
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlToastProgress, decorators: [{
|
|
903
|
+
type: Directive,
|
|
904
|
+
args: [{
|
|
905
|
+
selector: '[slToastProgress]',
|
|
906
|
+
standalone: true,
|
|
907
|
+
exportAs: 'slToastProgress',
|
|
908
|
+
host: { 'data-part': 'progress', 'aria-hidden': 'true' },
|
|
909
|
+
}]
|
|
910
|
+
}] });
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* Generated bundle index. Do not edit.
|
|
914
|
+
*/
|
|
915
|
+
|
|
916
|
+
export { SlToastActions, SlToastClose, SlToastContent, SlToastDescription, SlToastIcon, SlToastItem, SlToastProgress, SlToastRegion, SlToastService, SlToastTitle, TOAST_DEFAULTS, TOAST_HOTKEY, injectToastDefaults, provideToastDefaults };
|
|
917
|
+
//# sourceMappingURL=slotted-angular-toast.mjs.map
|