@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,1330 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InjectionToken, inject, Injectable, input, TemplateRef, Directive, HostAttributeToken, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, ElementRef, afterNextRender, booleanAttribute, numberAttribute, model, output, contentChild, contentChildren, viewChild, ViewContainerRef, Injector, signal, DestroyRef, effect, untracked, forwardRef } from '@angular/core';
|
|
4
|
+
import { SlButton } from '@slotted/angular/button';
|
|
5
|
+
import { injectMessages } from '@slotted/angular/i18n';
|
|
6
|
+
import { createDismissableLayer } from '@slotted/core/dismissable-layer';
|
|
7
|
+
import { createFocusScope, tabbables } from '@slotted/core/focus';
|
|
8
|
+
import { getLiveAnnouncer } from '@slotted/core/live-announcer';
|
|
9
|
+
import { createPortalRoot } from '@slotted/core/portal';
|
|
10
|
+
import { createPositioner } from '@slotted/core/positioner';
|
|
11
|
+
import { createPresence } from '@slotted/core/presence';
|
|
12
|
+
import { tourMessages } from '@slotted/core/i18n';
|
|
13
|
+
import { createControllable } from '@slotted/core/state';
|
|
14
|
+
import { compactSide, tourProgress, createTourController, stageStep, cardFits, writeTargetRect, watchTarget, isCompactViewport, keepOverTarget, isTextEntry, tourKey } from '@slotted/core/tour';
|
|
15
|
+
import { SlGlyph, SlIcon } from '@slotted/angular/icon';
|
|
16
|
+
|
|
17
|
+
const SL_TOUR = new InjectionToken('slotted tour');
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* `closeOnOutsidePress` is off: a press on the scrim is the easiest press on
|
|
21
|
+
* the page to make by accident, and it would throw away where the reader was.
|
|
22
|
+
* `targetTimeout` is zero: a wait shows nothing new, so a consumer whose
|
|
23
|
+
* target renders late says how late.
|
|
24
|
+
*/
|
|
25
|
+
const TOUR_FALLBACK = {
|
|
26
|
+
align: 'center',
|
|
27
|
+
alignOffset: 0,
|
|
28
|
+
arrow: true,
|
|
29
|
+
arrowPadding: 12,
|
|
30
|
+
autoFocus: true,
|
|
31
|
+
closeOnEscape: true,
|
|
32
|
+
closeOnOutsidePress: false,
|
|
33
|
+
collisionPadding: 8,
|
|
34
|
+
keyboardNavigation: true,
|
|
35
|
+
layout: 'auto',
|
|
36
|
+
missing: 'center',
|
|
37
|
+
modal: true,
|
|
38
|
+
scrollIntoView: true,
|
|
39
|
+
side: 'bottom',
|
|
40
|
+
sideOffset: 0,
|
|
41
|
+
size: 'md',
|
|
42
|
+
spotlight: true,
|
|
43
|
+
targetTimeout: 0,
|
|
44
|
+
};
|
|
45
|
+
const TOUR_DEFAULTS = new InjectionToken('slotted tour defaults', {
|
|
46
|
+
providedIn: 'root',
|
|
47
|
+
factory: () => TOUR_FALLBACK,
|
|
48
|
+
});
|
|
49
|
+
/**
|
|
50
|
+
* An application decides once how its tours behave. A tour that states any of
|
|
51
|
+
* it itself still wins, and so does a step. Its words come from the language
|
|
52
|
+
* in force (`provideSlotted`).
|
|
53
|
+
*/
|
|
54
|
+
function provideTourDefaults(defaults) {
|
|
55
|
+
return {
|
|
56
|
+
provide: TOUR_DEFAULTS,
|
|
57
|
+
useFactory: () => ({ ...TOUR_FALLBACK, ...defaults }),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/** What a tour renders as here, before it states anything of its own. */
|
|
61
|
+
function injectTourDefaults() {
|
|
62
|
+
return inject(TOUR_DEFAULTS);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Application-scoped rather than module-scoped, for the reason `field` records:
|
|
66
|
+
* two applications rendering in one server process must not share a sequence.
|
|
67
|
+
*/
|
|
68
|
+
class SlTourIdFactory {
|
|
69
|
+
count = 0;
|
|
70
|
+
next() {
|
|
71
|
+
this.count += 1;
|
|
72
|
+
return `slotted-tour-${this.count}`;
|
|
73
|
+
}
|
|
74
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourIdFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
75
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourIdFactory, providedIn: 'root' });
|
|
76
|
+
}
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourIdFactory, decorators: [{
|
|
78
|
+
type: Injectable,
|
|
79
|
+
args: [{ providedIn: 'root' }]
|
|
80
|
+
}] });
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* `<ng-template slTourStep="share">`: the body of the step with that id,
|
|
84
|
+
* rendered only while the step is shown. `slTourStepSlot="media"` writes the
|
|
85
|
+
* picture above the header instead.
|
|
86
|
+
*/
|
|
87
|
+
class SlTourStep {
|
|
88
|
+
id = input.required({ ...(ngDevMode ? { debugName: "id" } : /* istanbul ignore next */ {}), alias: 'slTourStep' });
|
|
89
|
+
slot = input('body', { ...(ngDevMode ? { debugName: "slot" } : /* istanbul ignore next */ {}), alias: 'slTourStepSlot' });
|
|
90
|
+
template = inject((TemplateRef));
|
|
91
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourStep, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
92
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: SlTourStep, isStandalone: true, selector: "ng-template[slTourStep]", inputs: { id: { classPropertyName: "id", publicName: "slTourStep", isSignal: true, isRequired: true, transformFunction: null }, slot: { classPropertyName: "slot", publicName: "slTourStepSlot", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
93
|
+
}
|
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourStep, decorators: [{
|
|
95
|
+
type: Directive,
|
|
96
|
+
args: [{ selector: 'ng-template[slTourStep]', standalone: true }]
|
|
97
|
+
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "slTourStep", required: true }] }], slot: [{ type: i0.Input, args: [{ isSignal: true, alias: "slTourStepSlot", required: false }] }] } });
|
|
98
|
+
/**
|
|
99
|
+
* `<ng-template slTourCard>`: the consumer's own arrangement of the card,
|
|
100
|
+
* rendered inside the positioned layer in place of the whole anatomy.
|
|
101
|
+
*/
|
|
102
|
+
class SlTourCard {
|
|
103
|
+
template = inject((TemplateRef));
|
|
104
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourCard, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
105
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlTourCard, isStandalone: true, selector: "ng-template[slTourCard]", ngImport: i0 });
|
|
106
|
+
}
|
|
107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourCard, decorators: [{
|
|
108
|
+
type: Directive,
|
|
109
|
+
args: [{ selector: 'ng-template[slTourCard]', standalone: true }]
|
|
110
|
+
}] });
|
|
111
|
+
/**
|
|
112
|
+
* The card. `role="dialog"`, named by the title part and described by the
|
|
113
|
+
* description part when the step has one; `aria-modal` only on a modal step,
|
|
114
|
+
* the only state in which the page behind is actually inert. The arrow keys
|
|
115
|
+
* are read here. A role or an `aria-label` the consumer wrote survives.
|
|
116
|
+
*/
|
|
117
|
+
class SlTourContent {
|
|
118
|
+
tour = inject(SL_TOUR);
|
|
119
|
+
role = inject(new HostAttributeToken('role'), { optional: true });
|
|
120
|
+
label = inject(new HostAttributeToken('aria-label'), { optional: true });
|
|
121
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
122
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlTourContent, isStandalone: true, selector: "[slTourContent]", host: { attributes: { "data-part": "content", "tabindex": "-1" }, listeners: { "keydown": "tour.onKeyDown($event)" }, properties: { "attr.role": "role ?? \"dialog\"", "attr.aria-labelledby": "label === null ? tour.titleId : null", "attr.aria-describedby": "tour.hasDescription() ? tour.descriptionId : null", "attr.aria-modal": "tour.modal() ? \"true\" : null" } }, ngImport: i0 });
|
|
123
|
+
}
|
|
124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourContent, decorators: [{
|
|
125
|
+
type: Directive,
|
|
126
|
+
args: [{
|
|
127
|
+
selector: '[slTourContent]',
|
|
128
|
+
standalone: true,
|
|
129
|
+
host: {
|
|
130
|
+
'data-part': 'content',
|
|
131
|
+
tabindex: '-1',
|
|
132
|
+
'[attr.role]': 'role ?? "dialog"',
|
|
133
|
+
'[attr.aria-labelledby]': 'label === null ? tour.titleId : null',
|
|
134
|
+
'[attr.aria-describedby]': 'tour.hasDescription() ? tour.descriptionId : null',
|
|
135
|
+
'[attr.aria-modal]': 'tour.modal() ? "true" : null',
|
|
136
|
+
'(keydown)': 'tour.onKeyDown($event)',
|
|
137
|
+
},
|
|
138
|
+
}]
|
|
139
|
+
}] });
|
|
140
|
+
/** The step's picture, full bleed above the header; hidden when it has none. */
|
|
141
|
+
class SlTourMedia {
|
|
142
|
+
tour = inject(SL_TOUR);
|
|
143
|
+
url = computed(() => {
|
|
144
|
+
const media = this.tour.current()?.media;
|
|
145
|
+
return typeof media === 'string' ? media : null;
|
|
146
|
+
}, /* @ts-ignore */
|
|
147
|
+
...(ngDevMode ? [{ debugName: "url" }] : /* istanbul ignore next */ []));
|
|
148
|
+
shown = computed(() => this.tour.mediaTemplate() !== null || this.url() !== null, /* @ts-ignore */
|
|
149
|
+
...(ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []));
|
|
150
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourMedia, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
151
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlTourMedia, isStandalone: true, selector: "[slTourMedia]", host: { attributes: { "data-part": "media" }, properties: { "attr.hidden": "shown() ? null : \"\"" } }, ngImport: i0, template: `@if (tour.mediaTemplate(); as media) {
|
|
152
|
+
<ng-container [ngTemplateOutlet]="media" />
|
|
153
|
+
} @else if (url(); as src) {
|
|
154
|
+
<img alt="" [src]="src" />
|
|
155
|
+
}`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
156
|
+
}
|
|
157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourMedia, decorators: [{
|
|
158
|
+
type: Component,
|
|
159
|
+
args: [{
|
|
160
|
+
selector: '[slTourMedia]',
|
|
161
|
+
standalone: true,
|
|
162
|
+
imports: [NgTemplateOutlet],
|
|
163
|
+
template: `@if (tour.mediaTemplate(); as media) {
|
|
164
|
+
<ng-container [ngTemplateOutlet]="media" />
|
|
165
|
+
} @else if (url(); as src) {
|
|
166
|
+
<img alt="" [src]="src" />
|
|
167
|
+
}`,
|
|
168
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
169
|
+
encapsulation: ViewEncapsulation.None,
|
|
170
|
+
host: {
|
|
171
|
+
'data-part': 'media',
|
|
172
|
+
'[attr.hidden]': 'shown() ? null : ""',
|
|
173
|
+
},
|
|
174
|
+
}]
|
|
175
|
+
}] });
|
|
176
|
+
class SlTourHeader {
|
|
177
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
178
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlTourHeader, isStandalone: true, selector: "[slTourHeader]", host: { attributes: { "data-part": "header" } }, ngImport: i0 });
|
|
179
|
+
}
|
|
180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourHeader, decorators: [{
|
|
181
|
+
type: Directive,
|
|
182
|
+
args: [{ selector: '[slTourHeader]', standalone: true, host: { 'data-part': 'header' } }]
|
|
183
|
+
}] });
|
|
184
|
+
/** “2 of 5”, counting the steps available now; hidden in a tour of one step. */
|
|
185
|
+
class SlTourProgress {
|
|
186
|
+
tour = inject(SL_TOUR);
|
|
187
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourProgress, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
188
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: SlTourProgress, isStandalone: true, selector: "[slTourProgress]", host: { attributes: { "data-part": "progress" }, properties: { "attr.hidden": "tour.total() > 1 ? null : \"\"" } }, ngImport: i0, template: `{{ tour.t('progress', { position: tour.position(), total: tour.total() }) }}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
189
|
+
}
|
|
190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourProgress, decorators: [{
|
|
191
|
+
type: Component,
|
|
192
|
+
args: [{
|
|
193
|
+
selector: '[slTourProgress]',
|
|
194
|
+
standalone: true,
|
|
195
|
+
template: `{{ tour.t('progress', { position: tour.position(), total: tour.total() }) }}`,
|
|
196
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
197
|
+
encapsulation: ViewEncapsulation.None,
|
|
198
|
+
host: {
|
|
199
|
+
'data-part': 'progress',
|
|
200
|
+
'[attr.hidden]': 'tour.total() > 1 ? null : ""',
|
|
201
|
+
},
|
|
202
|
+
}]
|
|
203
|
+
}] });
|
|
204
|
+
/** Closes with the outcome `close` and the reason `dismiss`. The cross is drawn unless the consumer wrote content of their own. */
|
|
205
|
+
class SlTourClose {
|
|
206
|
+
tour = inject(SL_TOUR);
|
|
207
|
+
label = inject(new HostAttributeToken('aria-label'), { optional: true });
|
|
208
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourClose, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
209
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: SlTourClose, isStandalone: true, selector: "button[slTourClose]", host: { attributes: { "data-part": "close", "type": "button" }, listeners: { "click": "tour.close(\"close\", $event, true)" }, properties: { "attr.aria-label": "label ?? tour.t('close')", "attr.hidden": "tour.showClose() ? null : \"\"" } }, ngImport: i0, template: `<ng-content
|
|
210
|
+
><span slIcon size="sm"><svg slGlyph name="x"></svg></span
|
|
211
|
+
></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, encapsulation: i0.ViewEncapsulation.None });
|
|
212
|
+
}
|
|
213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourClose, decorators: [{
|
|
214
|
+
type: Component,
|
|
215
|
+
args: [{
|
|
216
|
+
selector: 'button[slTourClose]',
|
|
217
|
+
standalone: true,
|
|
218
|
+
imports: [SlGlyph, SlIcon],
|
|
219
|
+
template: `<ng-content
|
|
220
|
+
><span slIcon size="sm"><svg slGlyph name="x"></svg></span
|
|
221
|
+
></ng-content>`,
|
|
222
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
223
|
+
encapsulation: ViewEncapsulation.None,
|
|
224
|
+
host: {
|
|
225
|
+
'data-part': 'close',
|
|
226
|
+
type: 'button',
|
|
227
|
+
'[attr.aria-label]': "label ?? tour.t('close')",
|
|
228
|
+
'[attr.hidden]': 'tour.showClose() ? null : ""',
|
|
229
|
+
'(click)': 'tour.close("close", $event, true)',
|
|
230
|
+
},
|
|
231
|
+
}]
|
|
232
|
+
}] });
|
|
233
|
+
/** The step's title and the card's accessible name. Text written inside replaces it. */
|
|
234
|
+
class SlTourTitle {
|
|
235
|
+
tour = inject(SL_TOUR);
|
|
236
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourTitle, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
237
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: SlTourTitle, isStandalone: true, selector: "[slTourTitle]", host: { attributes: { "data-part": "title" }, properties: { "id": "tour.titleId" } }, ngImport: i0, template: `<ng-content>{{ tour.current()?.title }}</ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
238
|
+
}
|
|
239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourTitle, decorators: [{
|
|
240
|
+
type: Component,
|
|
241
|
+
args: [{
|
|
242
|
+
selector: '[slTourTitle]',
|
|
243
|
+
standalone: true,
|
|
244
|
+
template: `<ng-content>{{ tour.current()?.title }}</ng-content>`,
|
|
245
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
246
|
+
encapsulation: ViewEncapsulation.None,
|
|
247
|
+
host: { 'data-part': 'title', '[id]': 'tour.titleId' },
|
|
248
|
+
}]
|
|
249
|
+
}] });
|
|
250
|
+
/** The step's description, and the card's accessible description; hidden when it has none. */
|
|
251
|
+
class SlTourDescription {
|
|
252
|
+
tour = inject(SL_TOUR);
|
|
253
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourDescription, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
254
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: SlTourDescription, isStandalone: true, selector: "[slTourDescription]", host: { attributes: { "data-part": "description" }, properties: { "id": "tour.descriptionId", "attr.hidden": "tour.hasDescription() ? null : \"\"" } }, ngImport: i0, template: `{{ tour.current()?.description }}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
255
|
+
}
|
|
256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourDescription, decorators: [{
|
|
257
|
+
type: Component,
|
|
258
|
+
args: [{
|
|
259
|
+
selector: '[slTourDescription]',
|
|
260
|
+
standalone: true,
|
|
261
|
+
template: `{{ tour.current()?.description }}`,
|
|
262
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
263
|
+
encapsulation: ViewEncapsulation.None,
|
|
264
|
+
host: {
|
|
265
|
+
'data-part': 'description',
|
|
266
|
+
'[id]': 'tour.descriptionId',
|
|
267
|
+
'[attr.hidden]': 'tour.hasDescription() ? null : ""',
|
|
268
|
+
},
|
|
269
|
+
}]
|
|
270
|
+
}] });
|
|
271
|
+
/** The step's content — a template or text — and the only part that scrolls. */
|
|
272
|
+
class SlTourBody {
|
|
273
|
+
tour = inject(SL_TOUR);
|
|
274
|
+
text = computed(() => {
|
|
275
|
+
const content = this.tour.current()?.content;
|
|
276
|
+
return typeof content === 'string' ? content : '';
|
|
277
|
+
}, /* @ts-ignore */
|
|
278
|
+
...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
279
|
+
shown = computed(() => this.tour.bodyTemplate() !== null || this.text() !== '', /* @ts-ignore */
|
|
280
|
+
...(ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []));
|
|
281
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourBody, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
282
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlTourBody, isStandalone: true, selector: "[slTourBody]", host: { attributes: { "data-part": "body" }, properties: { "attr.hidden": "shown() ? null : \"\"" } }, ngImport: i0, template: `@if (tour.bodyTemplate(); as body) {
|
|
283
|
+
<ng-container [ngTemplateOutlet]="body" />
|
|
284
|
+
} @else {
|
|
285
|
+
{{ text() }}
|
|
286
|
+
}`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
287
|
+
}
|
|
288
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourBody, decorators: [{
|
|
289
|
+
type: Component,
|
|
290
|
+
args: [{
|
|
291
|
+
selector: '[slTourBody]',
|
|
292
|
+
standalone: true,
|
|
293
|
+
imports: [NgTemplateOutlet],
|
|
294
|
+
template: `@if (tour.bodyTemplate(); as body) {
|
|
295
|
+
<ng-container [ngTemplateOutlet]="body" />
|
|
296
|
+
} @else {
|
|
297
|
+
{{ text() }}
|
|
298
|
+
}`,
|
|
299
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
300
|
+
encapsulation: ViewEncapsulation.None,
|
|
301
|
+
host: {
|
|
302
|
+
'data-part': 'body',
|
|
303
|
+
'[attr.hidden]': 'shown() ? null : ""',
|
|
304
|
+
},
|
|
305
|
+
}]
|
|
306
|
+
}] });
|
|
307
|
+
class SlTourFooter {
|
|
308
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
309
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlTourFooter, isStandalone: true, selector: "[slTourFooter]", host: { attributes: { "data-part": "footer" } }, ngImport: i0 });
|
|
310
|
+
}
|
|
311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourFooter, decorators: [{
|
|
312
|
+
type: Directive,
|
|
313
|
+
args: [{ selector: '[slTourFooter]', standalone: true, host: { 'data-part': 'footer' } }]
|
|
314
|
+
}] });
|
|
315
|
+
/**
|
|
316
|
+
* The three actions go on the consumer's own `button slButton`. `slButton`
|
|
317
|
+
* writes `data-part="root"` as a static host attribute, which erases the part
|
|
318
|
+
* the template wrote, so each of these writes its part back after the first
|
|
319
|
+
* render, as `slTransferPart` does.
|
|
320
|
+
*/
|
|
321
|
+
class TourAction {
|
|
322
|
+
tour = inject(SL_TOUR);
|
|
323
|
+
constructor(part) {
|
|
324
|
+
const host = inject(ElementRef).nativeElement;
|
|
325
|
+
afterNextRender(() => host.setAttribute('data-part', part));
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
/** Closes with the outcome `skip`. Hidden on the last step and in a tour of one. */
|
|
329
|
+
class SlTourSkip extends TourAction {
|
|
330
|
+
constructor() {
|
|
331
|
+
super('skip');
|
|
332
|
+
}
|
|
333
|
+
onClick(event) {
|
|
334
|
+
if (!event.defaultPrevented)
|
|
335
|
+
this.tour.close('skip', event);
|
|
336
|
+
}
|
|
337
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourSkip, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
338
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlTourSkip, isStandalone: true, selector: "button[slTourSkip]", host: { listeners: { "click": "onClick($event)" }, properties: { "attr.hidden": "tour.showSkip() ? null : \"\"" } }, usesInheritance: true, ngImport: i0 });
|
|
339
|
+
}
|
|
340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourSkip, decorators: [{
|
|
341
|
+
type: Directive,
|
|
342
|
+
args: [{
|
|
343
|
+
selector: 'button[slTourSkip]',
|
|
344
|
+
standalone: true,
|
|
345
|
+
host: {
|
|
346
|
+
'[attr.hidden]': 'tour.showSkip() ? null : ""',
|
|
347
|
+
'(click)': 'onClick($event)',
|
|
348
|
+
},
|
|
349
|
+
}]
|
|
350
|
+
}], ctorParameters: () => [] });
|
|
351
|
+
/** The previous available step. Hidden on the first. */
|
|
352
|
+
class SlTourPrev extends TourAction {
|
|
353
|
+
constructor() {
|
|
354
|
+
super('prev');
|
|
355
|
+
}
|
|
356
|
+
onClick(event) {
|
|
357
|
+
if (!event.defaultPrevented)
|
|
358
|
+
this.tour.prev(event);
|
|
359
|
+
}
|
|
360
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourPrev, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
361
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlTourPrev, isStandalone: true, selector: "button[slTourPrev]", host: { listeners: { "click": "onClick($event)" }, properties: { "attr.hidden": "tour.showPrev() ? null : \"\"" } }, usesInheritance: true, ngImport: i0 });
|
|
362
|
+
}
|
|
363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourPrev, decorators: [{
|
|
364
|
+
type: Directive,
|
|
365
|
+
args: [{
|
|
366
|
+
selector: 'button[slTourPrev]',
|
|
367
|
+
standalone: true,
|
|
368
|
+
host: {
|
|
369
|
+
'[attr.hidden]': 'tour.showPrev() ? null : ""',
|
|
370
|
+
'(click)': 'onClick($event)',
|
|
371
|
+
},
|
|
372
|
+
}]
|
|
373
|
+
}], ctorParameters: () => [] });
|
|
374
|
+
/**
|
|
375
|
+
* The next available step, or Done on the last (`data-last`), which closes
|
|
376
|
+
* with the outcome `complete`. Hidden on a step that advances on the reader's
|
|
377
|
+
* own action at the target, unless the step asks for it.
|
|
378
|
+
*/
|
|
379
|
+
class SlTourNext extends TourAction {
|
|
380
|
+
constructor() {
|
|
381
|
+
super('next');
|
|
382
|
+
}
|
|
383
|
+
onClick(event) {
|
|
384
|
+
if (event.defaultPrevented || this.tour.pending())
|
|
385
|
+
return;
|
|
386
|
+
this.tour.next(event);
|
|
387
|
+
}
|
|
388
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourNext, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
389
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlTourNext, isStandalone: true, selector: "button[slTourNext]", host: { listeners: { "click": "onClick($event)" }, properties: { "attr.hidden": "tour.showNext() ? null : \"\"", "attr.data-last": "tour.last() ? \"\" : null" } }, usesInheritance: true, ngImport: i0 });
|
|
390
|
+
}
|
|
391
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourNext, decorators: [{
|
|
392
|
+
type: Directive,
|
|
393
|
+
args: [{
|
|
394
|
+
selector: 'button[slTourNext]',
|
|
395
|
+
standalone: true,
|
|
396
|
+
host: {
|
|
397
|
+
'[attr.hidden]': 'tour.showNext() ? null : ""',
|
|
398
|
+
'[attr.data-last]': 'tour.last() ? "" : null',
|
|
399
|
+
'(click)': 'onClick($event)',
|
|
400
|
+
},
|
|
401
|
+
}]
|
|
402
|
+
}], ctorParameters: () => [] });
|
|
403
|
+
|
|
404
|
+
const optionalBoolean = (state) => state === undefined ? undefined : booleanAttribute(state);
|
|
405
|
+
const optionalNumber = (value) => value === undefined ? undefined : numberAttribute(value);
|
|
406
|
+
const DISMISS_REASONS = {
|
|
407
|
+
back: 'back',
|
|
408
|
+
blur: 'programmatic',
|
|
409
|
+
escape: 'escape',
|
|
410
|
+
outsidePress: 'outsidePress',
|
|
411
|
+
programmatic: 'programmatic',
|
|
412
|
+
};
|
|
413
|
+
function eventReason(event) {
|
|
414
|
+
if (event === undefined)
|
|
415
|
+
return 'programmatic';
|
|
416
|
+
if (event instanceof KeyboardEvent)
|
|
417
|
+
return 'keyboard';
|
|
418
|
+
if (event instanceof MouseEvent)
|
|
419
|
+
return event.detail === 0 ? 'keyboard' : 'pointer';
|
|
420
|
+
return 'programmatic';
|
|
421
|
+
}
|
|
422
|
+
function directionOf(node) {
|
|
423
|
+
const declared = node.closest('[dir]')?.getAttribute('dir');
|
|
424
|
+
if (declared === 'rtl' || declared === 'ltr')
|
|
425
|
+
return declared;
|
|
426
|
+
return node.ownerDocument.defaultView?.getComputedStyle(node).direction === 'rtl' ? 'rtl' : 'ltr';
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* The frame the tour draws over the page: scrim, spotlight and the card's
|
|
430
|
+
* layer. A component of its own, created inside `sl-tour` and moved to the
|
|
431
|
+
* portal, because a component's view is redrawn by the signals it reads.
|
|
432
|
+
* The same template as an embedded view created by hand was drawn once and
|
|
433
|
+
* never again outside a harness that checks the whole tree: the tour opened
|
|
434
|
+
* with no scrim, its card never appeared, and a step change removed
|
|
435
|
+
* `data-open` from a frame that no longer followed its state.
|
|
436
|
+
*/
|
|
437
|
+
class SlTourFrame {
|
|
438
|
+
tour = inject(SL_TOUR);
|
|
439
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourFrame, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
440
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlTourFrame, isStandalone: true, selector: "sl-tour-frame", host: { styleAttribute: "display: contents" }, ngImport: i0, template: `<div
|
|
441
|
+
data-ui="tour"
|
|
442
|
+
data-part="root"
|
|
443
|
+
[attr.data-open]="tour.visible() && tour.arrived() ? '' : null"
|
|
444
|
+
[attr.data-modal]="tour.modal() ? '' : null"
|
|
445
|
+
[attr.data-spot]="tour.spot().move"
|
|
446
|
+
[attr.data-spotlight]="tour.spotlightOn() ? '' : null"
|
|
447
|
+
[attr.data-compact]="tour.compact() ? '' : null"
|
|
448
|
+
[attr.data-missing]="tour.drawn()?.missing ? '' : null"
|
|
449
|
+
[attr.data-placement]="tour.anchored() ? 'anchored' : 'centered'"
|
|
450
|
+
[attr.data-size]="tour.resolvedSize()"
|
|
451
|
+
[attr.data-align]="tour.anchored() ? tour.resolvedAlign() : null"
|
|
452
|
+
>
|
|
453
|
+
@if (tour.modal() || tour.spotlightOn()) {
|
|
454
|
+
<div data-part="backdrop" aria-hidden="true">
|
|
455
|
+
@if (tour.spotlightOn()) {
|
|
456
|
+
<div data-part="spotlight"></div>
|
|
457
|
+
}
|
|
458
|
+
</div>
|
|
459
|
+
}
|
|
460
|
+
<div
|
|
461
|
+
data-part="surface"
|
|
462
|
+
[attr.data-placement]="tour.anchored() ? 'anchored' : 'centered'"
|
|
463
|
+
[attr.data-ready]="tour.ready() ? '' : null"
|
|
464
|
+
[attr.data-leaving]="tour.leaving() ? '' : null"
|
|
465
|
+
>
|
|
466
|
+
@if (!tour.modal()) {
|
|
467
|
+
<span
|
|
468
|
+
data-part="focus-guard"
|
|
469
|
+
tabindex="0"
|
|
470
|
+
aria-hidden="true"
|
|
471
|
+
(focus)="tour.onGuardFocus()"
|
|
472
|
+
></span>
|
|
473
|
+
}
|
|
474
|
+
@if (tour.anchored() && tour.resolvedArrow()) {
|
|
475
|
+
<div data-part="arrow"></div>
|
|
476
|
+
}
|
|
477
|
+
@if (tour.card(); as custom) {
|
|
478
|
+
<ng-container [ngTemplateOutlet]="custom.template" />
|
|
479
|
+
} @else {
|
|
480
|
+
<div slTourContent>
|
|
481
|
+
<div slTourMedia></div>
|
|
482
|
+
<div slTourHeader>
|
|
483
|
+
<p slTourProgress></p>
|
|
484
|
+
<button slTourClose></button>
|
|
485
|
+
</div>
|
|
486
|
+
<h2 slTourTitle></h2>
|
|
487
|
+
<p slTourDescription></p>
|
|
488
|
+
<div slTourBody></div>
|
|
489
|
+
<div slTourFooter>
|
|
490
|
+
<button slButton slTourSkip size="sm" tone="secondary" variant="ghost">
|
|
491
|
+
{{ tour.t('skip') }}
|
|
492
|
+
</button>
|
|
493
|
+
<button slButton slTourPrev size="sm" tone="secondary" variant="outline">
|
|
494
|
+
{{ tour.t('prev') }}
|
|
495
|
+
</button>
|
|
496
|
+
<button
|
|
497
|
+
slButton
|
|
498
|
+
slTourNext
|
|
499
|
+
size="sm"
|
|
500
|
+
tone="accent"
|
|
501
|
+
variant="solid"
|
|
502
|
+
[loading]="tour.pending()"
|
|
503
|
+
[messages]="{ loading: tour.t('preparing') }"
|
|
504
|
+
>
|
|
505
|
+
{{ tour.t(tour.last() ? 'done' : 'next') }}
|
|
506
|
+
</button>
|
|
507
|
+
</div>
|
|
508
|
+
</div>
|
|
509
|
+
}
|
|
510
|
+
@if (!tour.modal()) {
|
|
511
|
+
<span
|
|
512
|
+
data-part="focus-guard"
|
|
513
|
+
tabindex="0"
|
|
514
|
+
aria-hidden="true"
|
|
515
|
+
(focus)="tour.onGuardFocus()"
|
|
516
|
+
></span>
|
|
517
|
+
}
|
|
518
|
+
</div>
|
|
519
|
+
</div>`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SlButton, selector: "button[slButton]", inputs: ["disabled", "focusableWhenDisabled", "fullWidth", "loading", "loadingDelay", "messages", "size", "tone", "type", "variant"], exportAs: ["slButton"] }, { kind: "component", type: SlTourBody, selector: "[slTourBody]" }, { kind: "component", type: SlTourClose, selector: "button[slTourClose]" }, { kind: "directive", type: SlTourContent, selector: "[slTourContent]" }, { kind: "component", type: SlTourDescription, selector: "[slTourDescription]" }, { kind: "directive", type: SlTourFooter, selector: "[slTourFooter]" }, { kind: "directive", type: SlTourHeader, selector: "[slTourHeader]" }, { kind: "component", type: SlTourMedia, selector: "[slTourMedia]" }, { kind: "directive", type: SlTourNext, selector: "button[slTourNext]" }, { kind: "directive", type: SlTourPrev, selector: "button[slTourPrev]" }, { kind: "component", type: SlTourProgress, selector: "[slTourProgress]" }, { kind: "directive", type: SlTourSkip, selector: "button[slTourSkip]" }, { kind: "component", type: SlTourTitle, selector: "[slTourTitle]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
520
|
+
}
|
|
521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTourFrame, decorators: [{
|
|
522
|
+
type: Component,
|
|
523
|
+
args: [{
|
|
524
|
+
selector: 'sl-tour-frame',
|
|
525
|
+
standalone: true,
|
|
526
|
+
imports: [
|
|
527
|
+
NgTemplateOutlet,
|
|
528
|
+
SlButton,
|
|
529
|
+
SlTourBody,
|
|
530
|
+
SlTourClose,
|
|
531
|
+
SlTourContent,
|
|
532
|
+
SlTourDescription,
|
|
533
|
+
SlTourFooter,
|
|
534
|
+
SlTourHeader,
|
|
535
|
+
SlTourMedia,
|
|
536
|
+
SlTourNext,
|
|
537
|
+
SlTourPrev,
|
|
538
|
+
SlTourProgress,
|
|
539
|
+
SlTourSkip,
|
|
540
|
+
SlTourTitle,
|
|
541
|
+
],
|
|
542
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
543
|
+
encapsulation: ViewEncapsulation.None,
|
|
544
|
+
host: { style: 'display: contents' },
|
|
545
|
+
template: `<div
|
|
546
|
+
data-ui="tour"
|
|
547
|
+
data-part="root"
|
|
548
|
+
[attr.data-open]="tour.visible() && tour.arrived() ? '' : null"
|
|
549
|
+
[attr.data-modal]="tour.modal() ? '' : null"
|
|
550
|
+
[attr.data-spot]="tour.spot().move"
|
|
551
|
+
[attr.data-spotlight]="tour.spotlightOn() ? '' : null"
|
|
552
|
+
[attr.data-compact]="tour.compact() ? '' : null"
|
|
553
|
+
[attr.data-missing]="tour.drawn()?.missing ? '' : null"
|
|
554
|
+
[attr.data-placement]="tour.anchored() ? 'anchored' : 'centered'"
|
|
555
|
+
[attr.data-size]="tour.resolvedSize()"
|
|
556
|
+
[attr.data-align]="tour.anchored() ? tour.resolvedAlign() : null"
|
|
557
|
+
>
|
|
558
|
+
@if (tour.modal() || tour.spotlightOn()) {
|
|
559
|
+
<div data-part="backdrop" aria-hidden="true">
|
|
560
|
+
@if (tour.spotlightOn()) {
|
|
561
|
+
<div data-part="spotlight"></div>
|
|
562
|
+
}
|
|
563
|
+
</div>
|
|
564
|
+
}
|
|
565
|
+
<div
|
|
566
|
+
data-part="surface"
|
|
567
|
+
[attr.data-placement]="tour.anchored() ? 'anchored' : 'centered'"
|
|
568
|
+
[attr.data-ready]="tour.ready() ? '' : null"
|
|
569
|
+
[attr.data-leaving]="tour.leaving() ? '' : null"
|
|
570
|
+
>
|
|
571
|
+
@if (!tour.modal()) {
|
|
572
|
+
<span
|
|
573
|
+
data-part="focus-guard"
|
|
574
|
+
tabindex="0"
|
|
575
|
+
aria-hidden="true"
|
|
576
|
+
(focus)="tour.onGuardFocus()"
|
|
577
|
+
></span>
|
|
578
|
+
}
|
|
579
|
+
@if (tour.anchored() && tour.resolvedArrow()) {
|
|
580
|
+
<div data-part="arrow"></div>
|
|
581
|
+
}
|
|
582
|
+
@if (tour.card(); as custom) {
|
|
583
|
+
<ng-container [ngTemplateOutlet]="custom.template" />
|
|
584
|
+
} @else {
|
|
585
|
+
<div slTourContent>
|
|
586
|
+
<div slTourMedia></div>
|
|
587
|
+
<div slTourHeader>
|
|
588
|
+
<p slTourProgress></p>
|
|
589
|
+
<button slTourClose></button>
|
|
590
|
+
</div>
|
|
591
|
+
<h2 slTourTitle></h2>
|
|
592
|
+
<p slTourDescription></p>
|
|
593
|
+
<div slTourBody></div>
|
|
594
|
+
<div slTourFooter>
|
|
595
|
+
<button slButton slTourSkip size="sm" tone="secondary" variant="ghost">
|
|
596
|
+
{{ tour.t('skip') }}
|
|
597
|
+
</button>
|
|
598
|
+
<button slButton slTourPrev size="sm" tone="secondary" variant="outline">
|
|
599
|
+
{{ tour.t('prev') }}
|
|
600
|
+
</button>
|
|
601
|
+
<button
|
|
602
|
+
slButton
|
|
603
|
+
slTourNext
|
|
604
|
+
size="sm"
|
|
605
|
+
tone="accent"
|
|
606
|
+
variant="solid"
|
|
607
|
+
[loading]="tour.pending()"
|
|
608
|
+
[messages]="{ loading: tour.t('preparing') }"
|
|
609
|
+
>
|
|
610
|
+
{{ tour.t(tour.last() ? 'done' : 'next') }}
|
|
611
|
+
</button>
|
|
612
|
+
</div>
|
|
613
|
+
</div>
|
|
614
|
+
}
|
|
615
|
+
@if (!tour.modal()) {
|
|
616
|
+
<span
|
|
617
|
+
data-part="focus-guard"
|
|
618
|
+
tabindex="0"
|
|
619
|
+
aria-hidden="true"
|
|
620
|
+
(focus)="tour.onGuardFocus()"
|
|
621
|
+
></span>
|
|
622
|
+
}
|
|
623
|
+
</div>
|
|
624
|
+
</div>`,
|
|
625
|
+
}]
|
|
626
|
+
}] });
|
|
627
|
+
/**
|
|
628
|
+
* A guided walk through an interface, one step at a time.
|
|
629
|
+
*
|
|
630
|
+
* `open` and `step` are two-way; `@slotted/core/tour` owns everything between
|
|
631
|
+
* a press and a card — conditions, preparation, a target that arrives late or
|
|
632
|
+
* never. The frame is built from a template and portalled to the end of the
|
|
633
|
+
* document, as `slPopoverLayer`'s is. A modal step makes the page `inert` and
|
|
634
|
+
* keeps focus in the card; an interactive step leaves the page reachable so
|
|
635
|
+
* the reader can operate the target.
|
|
636
|
+
*
|
|
637
|
+
* With no `ng-template slTourCard` inside, it renders the whole card.
|
|
638
|
+
*/
|
|
639
|
+
class SlTour {
|
|
640
|
+
steps = input.required(/* @ts-ignore */
|
|
641
|
+
...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
|
|
642
|
+
/** Whether the tour is showing. Two-way. */
|
|
643
|
+
open = model(false, /* @ts-ignore */
|
|
644
|
+
...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
645
|
+
/** The current step's id. Two-way; `null` is the first available step. */
|
|
646
|
+
step = model(null, /* @ts-ignore */
|
|
647
|
+
...(ngDevMode ? [{ debugName: "step" }] : /* istanbul ignore next */ []));
|
|
648
|
+
size = input(undefined, /* @ts-ignore */
|
|
649
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
650
|
+
/** `compact` or `regular` decide the phone composition; `auto` takes it below 600 pixels of viewport. */
|
|
651
|
+
layout = input(undefined, /* @ts-ignore */
|
|
652
|
+
...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
653
|
+
side = input(undefined, /* @ts-ignore */
|
|
654
|
+
...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
|
|
655
|
+
align = input(undefined, /* @ts-ignore */
|
|
656
|
+
...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
657
|
+
missing = input(undefined, /* @ts-ignore */
|
|
658
|
+
...(ngDevMode ? [{ debugName: "missing" }] : /* istanbul ignore next */ []));
|
|
659
|
+
/** Words laid over the catalog of the language in force, key by key. */
|
|
660
|
+
messages = input(undefined, /* @ts-ignore */
|
|
661
|
+
...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
|
|
662
|
+
finalFocus = input(undefined, /* @ts-ignore */
|
|
663
|
+
...(ngDevMode ? [{ debugName: "finalFocus" }] : /* istanbul ignore next */ []));
|
|
664
|
+
arrow = input(undefined, { ...(ngDevMode ? { debugName: "arrow" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
|
|
665
|
+
modalInput = input(undefined, { ...(ngDevMode ? { debugName: "modalInput" } : /* istanbul ignore next */ {}), alias: 'modal',
|
|
666
|
+
transform: optionalBoolean });
|
|
667
|
+
spotlight = input(undefined, { ...(ngDevMode ? { debugName: "spotlight" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
|
|
668
|
+
autoFocus = input(undefined, { ...(ngDevMode ? { debugName: "autoFocus" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
|
|
669
|
+
closeOnEscape = input(undefined, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
|
|
670
|
+
closeOnOutsidePress = input(undefined, { ...(ngDevMode ? { debugName: "closeOnOutsidePress" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
|
|
671
|
+
scrollIntoView = input(undefined, { ...(ngDevMode ? { debugName: "scrollIntoView" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
|
|
672
|
+
keyboardNavigation = input(undefined, { ...(ngDevMode ? { debugName: "keyboardNavigation" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
|
|
673
|
+
targetTimeout = input(undefined, { ...(ngDevMode ? { debugName: "targetTimeout" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
674
|
+
sideOffset = input(undefined, { ...(ngDevMode ? { debugName: "sideOffset" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
675
|
+
alignOffset = input(undefined, { ...(ngDevMode ? { debugName: "alignOffset" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
676
|
+
collisionPadding = input(undefined, { ...(ngDevMode ? { debugName: "collisionPadding" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
677
|
+
arrowPadding = input(undefined, { ...(ngDevMode ? { debugName: "arrowPadding" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
678
|
+
/** One output per transition, carrying the reason, the event and — on a close — the outcome. */
|
|
679
|
+
openChangeRequest = output();
|
|
680
|
+
stepChangeRequest = output();
|
|
681
|
+
card = contentChild(SlTourCard, /* @ts-ignore */
|
|
682
|
+
...(ngDevMode ? [{ debugName: "card" }] : /* istanbul ignore next */ []));
|
|
683
|
+
stepTemplates = contentChildren(SlTourStep, /* @ts-ignore */
|
|
684
|
+
...(ngDevMode ? [{ debugName: "stepTemplates" }] : /* istanbul ignore next */ []));
|
|
685
|
+
/**
|
|
686
|
+
* Where the frame's view is inserted: inside this component's own view, so
|
|
687
|
+
* the signals its template reads mark this component for check. Inserted
|
|
688
|
+
* into the host's container instead — the parent's view — the frame was
|
|
689
|
+
* never redrawn after the first time outside a test harness that checks the
|
|
690
|
+
* whole tree: the tour opened with no scrim and its card never appeared.
|
|
691
|
+
* The frame's nodes are then moved to the portal, as before.
|
|
692
|
+
*/
|
|
693
|
+
outlet = viewChild.required('outlet', { ...(ngDevMode ? { debugName: "outlet" } : /* istanbul ignore next */ {}), read: ViewContainerRef });
|
|
694
|
+
defaults = injectTourDefaults();
|
|
695
|
+
base = inject(SlTourIdFactory).next();
|
|
696
|
+
viewContainer = inject(ViewContainerRef);
|
|
697
|
+
injector = inject(Injector);
|
|
698
|
+
document = inject(ViewContainerRef).element.nativeElement
|
|
699
|
+
.ownerDocument;
|
|
700
|
+
titleId = `${this.base}-title`;
|
|
701
|
+
descriptionId = `${this.base}-description`;
|
|
702
|
+
/* ── Resolution ─────────────────────────────────────────────────────── */
|
|
703
|
+
shown = signal(null, /* @ts-ignore */
|
|
704
|
+
...(ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []));
|
|
705
|
+
/** The cutout's target and the movement that brings it there. */
|
|
706
|
+
spot = signal({
|
|
707
|
+
target: null,
|
|
708
|
+
move: 'rest',
|
|
709
|
+
}, /* @ts-ignore */
|
|
710
|
+
...(ngDevMode ? [{ debugName: "spot" }] : /* istanbul ignore next */ []));
|
|
711
|
+
leaving = signal(false, /* @ts-ignore */
|
|
712
|
+
...(ngDevMode ? [{ debugName: "leaving" }] : /* istanbul ignore next */ []));
|
|
713
|
+
/** The card of the drawn step has been placed, and may be shown. */
|
|
714
|
+
ready = signal(false, /* @ts-ignore */
|
|
715
|
+
...(ngDevMode ? [{ debugName: "ready" }] : /* istanbul ignore next */ []));
|
|
716
|
+
staging = null;
|
|
717
|
+
pending = signal(false, /* @ts-ignore */
|
|
718
|
+
...(ngDevMode ? [{ debugName: "pending" }] : /* istanbul ignore next */ []));
|
|
719
|
+
/** The last step drawn, kept through the exit so the card leaves as it was. */
|
|
720
|
+
drawn = signal(null, /* @ts-ignore */
|
|
721
|
+
...(ngDevMode ? [{ debugName: "drawn" }] : /* istanbul ignore next */ []));
|
|
722
|
+
current = computed(() => this.drawn()?.step ?? null, /* @ts-ignore */
|
|
723
|
+
...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
|
|
724
|
+
/** The tour's own words and the drawn step's, laid over the catalog in that order. */
|
|
725
|
+
override = computed(() => {
|
|
726
|
+
const step = this.current()?.messages;
|
|
727
|
+
return step === undefined ? this.messages() : { ...this.messages(), ...step };
|
|
728
|
+
}, /* @ts-ignore */
|
|
729
|
+
...(ngDevMode ? [{ debugName: "override" }] : /* istanbul ignore next */ []));
|
|
730
|
+
/** The family's words in the language in force, with the tour's and the step's `messages` laid over them. */
|
|
731
|
+
t = injectMessages(tourMessages, this.override);
|
|
732
|
+
resolvedSize = computed(() => this.size() ?? this.defaults.size, /* @ts-ignore */
|
|
733
|
+
...(ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []));
|
|
734
|
+
/** The viewport is in the compact size class: a lateral side turns vertical, the card takes the width. */
|
|
735
|
+
narrow = signal(false, /* @ts-ignore */
|
|
736
|
+
...(ngDevMode ? [{ debugName: "narrow" }] : /* istanbul ignore next */ []));
|
|
737
|
+
compact = computed(() => {
|
|
738
|
+
const layout = this.layout() ?? this.defaults.layout;
|
|
739
|
+
return layout === 'compact' || (layout === 'auto' && this.narrow());
|
|
740
|
+
}, /* @ts-ignore */
|
|
741
|
+
...(ngDevMode ? [{ debugName: "compact" }] : /* istanbul ignore next */ []));
|
|
742
|
+
/** The target leaves a card room on some side; when it does not, the card is centred over it. */
|
|
743
|
+
fits = signal(true, /* @ts-ignore */
|
|
744
|
+
...(ngDevMode ? [{ debugName: "fits" }] : /* istanbul ignore next */ []));
|
|
745
|
+
resolvedSide = computed(() => compactSide(this.current()?.side ?? this.side() ?? this.defaults.side, this.compact()), /* @ts-ignore */
|
|
746
|
+
...(ngDevMode ? [{ debugName: "resolvedSide" }] : /* istanbul ignore next */ []));
|
|
747
|
+
resolvedAlign = computed(() => this.current()?.align ?? this.align() ?? this.defaults.align, /* @ts-ignore */
|
|
748
|
+
...(ngDevMode ? [{ debugName: "resolvedAlign" }] : /* istanbul ignore next */ []));
|
|
749
|
+
resolvedArrow = computed(() => this.arrow() ?? this.defaults.arrow, /* @ts-ignore */
|
|
750
|
+
...(ngDevMode ? [{ debugName: "resolvedArrow" }] : /* istanbul ignore next */ []));
|
|
751
|
+
modal = computed(() => (this.modalInput() ?? this.defaults.modal) && this.current()?.interactive !== true, /* @ts-ignore */
|
|
752
|
+
...(ngDevMode ? [{ debugName: "modal" }] : /* istanbul ignore next */ []));
|
|
753
|
+
resolvedSpotlight = computed(() => this.current()?.spotlight ?? this.spotlight() ?? this.defaults.spotlight, /* @ts-ignore */
|
|
754
|
+
...(ngDevMode ? [{ debugName: "resolvedSpotlight" }] : /* istanbul ignore next */ []));
|
|
755
|
+
hasTarget = computed(() => (this.drawn()?.target ?? null) !== null, /* @ts-ignore */
|
|
756
|
+
...(ngDevMode ? [{ debugName: "hasTarget" }] : /* istanbul ignore next */ []));
|
|
757
|
+
anchored = computed(() => this.hasTarget() && this.fits(), /* @ts-ignore */
|
|
758
|
+
...(ngDevMode ? [{ debugName: "anchored" }] : /* istanbul ignore next */ []));
|
|
759
|
+
spotlightOn = computed(() => this.resolvedSpotlight() && this.spot().target !== null, /* @ts-ignore */
|
|
760
|
+
...(ngDevMode ? [{ debugName: "spotlightOn" }] : /* istanbul ignore next */ []));
|
|
761
|
+
progress = computed(() => tourProgress(this.steps(), this.current()?.id ?? null), /* @ts-ignore */
|
|
762
|
+
...(ngDevMode ? [{ debugName: "progress" }] : /* istanbul ignore next */ []));
|
|
763
|
+
position = computed(() => this.progress().position, /* @ts-ignore */
|
|
764
|
+
...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
765
|
+
total = computed(() => this.progress().total, /* @ts-ignore */
|
|
766
|
+
...(ngDevMode ? [{ debugName: "total" }] : /* istanbul ignore next */ []));
|
|
767
|
+
first = computed(() => this.progress().first, /* @ts-ignore */
|
|
768
|
+
...(ngDevMode ? [{ debugName: "first" }] : /* istanbul ignore next */ []));
|
|
769
|
+
last = computed(() => this.progress().last, /* @ts-ignore */
|
|
770
|
+
...(ngDevMode ? [{ debugName: "last" }] : /* istanbul ignore next */ []));
|
|
771
|
+
hasDescription = computed(() => (this.current()?.description ?? '') !== '', /* @ts-ignore */
|
|
772
|
+
...(ngDevMode ? [{ debugName: "hasDescription" }] : /* istanbul ignore next */ []));
|
|
773
|
+
showPrev = computed(() => this.current()?.actions?.prev ?? !this.first(), /* @ts-ignore */
|
|
774
|
+
...(ngDevMode ? [{ debugName: "showPrev" }] : /* istanbul ignore next */ []));
|
|
775
|
+
showSkip = computed(() => this.current()?.actions?.skip ?? (!this.last() && this.total() > 1), /* @ts-ignore */
|
|
776
|
+
...(ngDevMode ? [{ debugName: "showSkip" }] : /* istanbul ignore next */ []));
|
|
777
|
+
showClose = computed(() => this.current()?.actions?.close ?? true, /* @ts-ignore */
|
|
778
|
+
...(ngDevMode ? [{ debugName: "showClose" }] : /* istanbul ignore next */ []));
|
|
779
|
+
showNext = computed(() => this.current()?.actions?.next ?? this.current()?.advanceOn === undefined, /* @ts-ignore */
|
|
780
|
+
...(ngDevMode ? [{ debugName: "showNext" }] : /* istanbul ignore next */ []));
|
|
781
|
+
namedTemplate = (slot) => this.stepTemplates().find((entry) => entry.id() === this.current()?.id && entry.slot() === slot)
|
|
782
|
+
?.template ?? null;
|
|
783
|
+
bodyTemplate = computed(() => {
|
|
784
|
+
const content = this.current()?.content;
|
|
785
|
+
return typeof content === 'object' && content !== null ? content : this.namedTemplate('body');
|
|
786
|
+
}, /* @ts-ignore */
|
|
787
|
+
...(ngDevMode ? [{ debugName: "bodyTemplate" }] : /* istanbul ignore next */ []));
|
|
788
|
+
mediaTemplate = computed(() => {
|
|
789
|
+
const media = this.current()?.media;
|
|
790
|
+
return typeof media === 'object' && media !== null ? media : this.namedTemplate('media');
|
|
791
|
+
}, /* @ts-ignore */
|
|
792
|
+
...(ngDevMode ? [{ debugName: "mediaTemplate" }] : /* istanbul ignore next */ []));
|
|
793
|
+
controller = createTourController({
|
|
794
|
+
steps: () => this.steps(),
|
|
795
|
+
settings: () => ({
|
|
796
|
+
missing: this.missing() ?? this.defaults.missing,
|
|
797
|
+
targetTimeout: this.targetTimeout() ?? this.defaults.targetTimeout,
|
|
798
|
+
}),
|
|
799
|
+
onShow: (resolved) => this.shown.set(resolved),
|
|
800
|
+
onPending: (value) => {
|
|
801
|
+
if (value) {
|
|
802
|
+
const card = this.document.activeElement?.closest('[data-ui="tour"] [data-part="content"]');
|
|
803
|
+
this.leftFromCard = card !== null && card !== undefined;
|
|
804
|
+
}
|
|
805
|
+
this.pending.set(value);
|
|
806
|
+
},
|
|
807
|
+
requestStep: (id, reason, source) => this.requestStep(id, reason, source),
|
|
808
|
+
requestClose: (outcome, reason, source) => this.requestOpen(false, reason, outcome, source),
|
|
809
|
+
});
|
|
810
|
+
/* ── Frame, presence and layer ──────────────────────────────────────── */
|
|
811
|
+
status = signal('unmounted', /* @ts-ignore */
|
|
812
|
+
...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
813
|
+
presence = createPresence({
|
|
814
|
+
present: false,
|
|
815
|
+
onStatusChange: (next) => this.status.set(next),
|
|
816
|
+
});
|
|
817
|
+
visible = computed(() => this.open() && this.drawn() !== null, /* @ts-ignore */
|
|
818
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
819
|
+
/**
|
|
820
|
+
* `data-open` is written a frame after the frame exists, so the scrim and
|
|
821
|
+
* the card have a closed style to arrive from.
|
|
822
|
+
*/
|
|
823
|
+
arrived = signal(false, /* @ts-ignore */
|
|
824
|
+
...(ngDevMode ? [{ debugName: "arrived" }] : /* istanbul ignore next */ []));
|
|
825
|
+
mounted = computed(() => this.drawn() !== null && (this.visible() || this.status() !== 'unmounted'), /* @ts-ignore */
|
|
826
|
+
...(ngDevMode ? [{ debugName: "mounted" }] : /* istanbul ignore next */ []));
|
|
827
|
+
rootNode = signal(null, /* @ts-ignore */
|
|
828
|
+
...(ngDevMode ? [{ debugName: "rootNode" }] : /* istanbul ignore next */ []));
|
|
829
|
+
frameRef = null;
|
|
830
|
+
portal = null;
|
|
831
|
+
closing = undefined;
|
|
832
|
+
opener = null;
|
|
833
|
+
focusedStep = null;
|
|
834
|
+
/** Whether focus was in the card when the reader asked to move; a dialog a step opens may take it meanwhile. */
|
|
835
|
+
leftFromCard = false;
|
|
836
|
+
layerHandle = null;
|
|
837
|
+
layer = signal(null, /* @ts-ignore */
|
|
838
|
+
...(ngDevMode ? [{ debugName: "layer" }] : /* istanbul ignore next */ []));
|
|
839
|
+
/** The target of an interactive step, which a press on is not a press outside. */
|
|
840
|
+
interactiveTarget = computed(() => this.current()?.interactive === true ? (this.drawn()?.target ?? null) : null, /* @ts-ignore */
|
|
841
|
+
...(ngDevMode ? [{ debugName: "interactiveTarget" }] : /* istanbul ignore next */ []));
|
|
842
|
+
reposition_ = () => { };
|
|
843
|
+
constructor() {
|
|
844
|
+
const destroyRef = inject(DestroyRef);
|
|
845
|
+
effect(() => {
|
|
846
|
+
const open = this.open();
|
|
847
|
+
const id = this.step();
|
|
848
|
+
untracked(() => {
|
|
849
|
+
if (open) {
|
|
850
|
+
if (this.opener === null) {
|
|
851
|
+
const active = this.document.activeElement;
|
|
852
|
+
this.opener =
|
|
853
|
+
active instanceof HTMLElement && active !== this.document.body ? active : null;
|
|
854
|
+
}
|
|
855
|
+
this.controller.sync(id);
|
|
856
|
+
return;
|
|
857
|
+
}
|
|
858
|
+
this.controller.reset();
|
|
859
|
+
this.shown.set(null);
|
|
860
|
+
this.pending.set(false);
|
|
861
|
+
this.restoreFocus();
|
|
862
|
+
const outcome = this.closing;
|
|
863
|
+
this.closing = undefined;
|
|
864
|
+
if (outcome !== undefined && outcome !== 'close')
|
|
865
|
+
this.step.set(null);
|
|
866
|
+
});
|
|
867
|
+
});
|
|
868
|
+
/* The steps changed under an open tour: the shown one may have gone. */
|
|
869
|
+
effect(() => {
|
|
870
|
+
const steps = this.steps();
|
|
871
|
+
const shown = untracked(() => this.shown());
|
|
872
|
+
if (shown !== null && !steps.some((candidate) => candidate.id === shown.step.id)) {
|
|
873
|
+
untracked(() => this.controller.sync(null));
|
|
874
|
+
}
|
|
875
|
+
});
|
|
876
|
+
effect(() => this.presence.sync(this.visible()));
|
|
877
|
+
effect((onCleanup) => {
|
|
878
|
+
const root = this.rootNode();
|
|
879
|
+
if (root === null || !this.visible()) {
|
|
880
|
+
untracked(() => this.arrived.set(false));
|
|
881
|
+
return;
|
|
882
|
+
}
|
|
883
|
+
const frame = requestAnimationFrame(() => this.arrived.set(true));
|
|
884
|
+
onCleanup(() => cancelAnimationFrame(frame));
|
|
885
|
+
});
|
|
886
|
+
effect(() => (this.mounted() ? this.build() : this.teardown()));
|
|
887
|
+
/**
|
|
888
|
+
* Every step the controller shows is staged: the old card leaves while the
|
|
889
|
+
* cutout moves and the page scrolls, and the new card arrives once the
|
|
890
|
+
* cutout has landed (`@slotted/core/tour`'s `stageStep`). `drawn` is the
|
|
891
|
+
* step whose card is on screen, and it trails `shown` by that sequence.
|
|
892
|
+
*/
|
|
893
|
+
effect(() => {
|
|
894
|
+
const shown = this.shown();
|
|
895
|
+
untracked(() => {
|
|
896
|
+
this.staging?.abort();
|
|
897
|
+
this.staging = null;
|
|
898
|
+
if (shown === null)
|
|
899
|
+
return;
|
|
900
|
+
const run = new AbortController();
|
|
901
|
+
this.staging = run;
|
|
902
|
+
const opening = this.drawn() === null;
|
|
903
|
+
void stageStep({
|
|
904
|
+
/* Before the tour has an element of its own, the target — or the
|
|
905
|
+
tour's own host — stands in the theme's region and carries the
|
|
906
|
+
same duration tokens. */
|
|
907
|
+
root: this.rootNode() ?? shown.target ?? this.viewContainer.element.nativeElement,
|
|
908
|
+
from: opening ? undefined : this.spot().target,
|
|
909
|
+
to: shown.target,
|
|
910
|
+
scroll: this.scrollIntoView() ?? this.defaults.scrollIntoView,
|
|
911
|
+
signal: run.signal,
|
|
912
|
+
spot: (target, move) => {
|
|
913
|
+
/* Written on the element at once, before the rectangle it moves to
|
|
914
|
+
is: a transition needs its property in place before the value
|
|
915
|
+
changes, and the frame's bindings are drawn a tick later. */
|
|
916
|
+
this.rootNode()?.setAttribute('data-spot', move);
|
|
917
|
+
this.spot.set({ target, move });
|
|
918
|
+
},
|
|
919
|
+
card: (phase) => {
|
|
920
|
+
if (phase === 'leave') {
|
|
921
|
+
this.leaving.set(true);
|
|
922
|
+
return;
|
|
923
|
+
}
|
|
924
|
+
this.ready.set(false);
|
|
925
|
+
/* Whether the arriving card fits beside its target is its own
|
|
926
|
+
target's answer, taken as it arrives. */
|
|
927
|
+
const rect = shown.target?.getBoundingClientRect();
|
|
928
|
+
const view = this.document.defaultView;
|
|
929
|
+
this.fits.set(rect === undefined ||
|
|
930
|
+
view === null ||
|
|
931
|
+
cardFits({ x: rect.left, y: rect.top, width: rect.width, height: rect.height }, { width: view.innerWidth, height: view.innerHeight }));
|
|
932
|
+
this.drawn.set(shown);
|
|
933
|
+
this.leaving.set(false);
|
|
934
|
+
},
|
|
935
|
+
});
|
|
936
|
+
});
|
|
937
|
+
});
|
|
938
|
+
effect((onCleanup) => {
|
|
939
|
+
const root = this.rootNode();
|
|
940
|
+
const target = this.spot().target;
|
|
941
|
+
if (root === null)
|
|
942
|
+
return;
|
|
943
|
+
if (target === null) {
|
|
944
|
+
writeTargetRect(root, null);
|
|
945
|
+
return;
|
|
946
|
+
}
|
|
947
|
+
onCleanup(watchTarget(target, {
|
|
948
|
+
onRect: (rect) => {
|
|
949
|
+
writeTargetRect(root, rect);
|
|
950
|
+
const view = this.document.defaultView;
|
|
951
|
+
/* Only the card's own target answers whether the card fits beside it. */
|
|
952
|
+
if (view !== null && target === untracked(() => this.drawn()?.target)) {
|
|
953
|
+
this.fits.set(cardFits(rect, { width: view.innerWidth, height: view.innerHeight }));
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
onRemoved: () => this.controller.markMissing(),
|
|
957
|
+
}));
|
|
958
|
+
});
|
|
959
|
+
effect((onCleanup) => {
|
|
960
|
+
const view = this.document.defaultView;
|
|
961
|
+
if (!this.mounted() || view === null)
|
|
962
|
+
return;
|
|
963
|
+
const update = () => this.narrow.set(isCompactViewport(view));
|
|
964
|
+
update();
|
|
965
|
+
view.addEventListener('resize', update, { passive: true });
|
|
966
|
+
onCleanup(() => view.removeEventListener('resize', update));
|
|
967
|
+
});
|
|
968
|
+
effect((onCleanup) => this.place(onCleanup));
|
|
969
|
+
effect((onCleanup) => this.stack(onCleanup));
|
|
970
|
+
effect((onCleanup) => {
|
|
971
|
+
const layer = this.layer();
|
|
972
|
+
const branch = this.interactiveTarget();
|
|
973
|
+
if (layer === null || branch === null)
|
|
974
|
+
return;
|
|
975
|
+
onCleanup(layer.addBranch(branch));
|
|
976
|
+
});
|
|
977
|
+
effect((onCleanup) => {
|
|
978
|
+
const root = this.rootNode();
|
|
979
|
+
if (root === null || !this.visible() || !this.modal())
|
|
980
|
+
return;
|
|
981
|
+
const scope = createFocusScope(root, { contain: true, initial: false, restore: false });
|
|
982
|
+
onCleanup(() => scope.destroy());
|
|
983
|
+
});
|
|
984
|
+
effect(() => {
|
|
985
|
+
const drawn = this.drawn();
|
|
986
|
+
const root = this.rootNode();
|
|
987
|
+
/* A frame still hidden until the frame it arrives in cannot take focus. */
|
|
988
|
+
if (!this.visible() || !this.arrived() || drawn === null || root === null)
|
|
989
|
+
return;
|
|
990
|
+
afterNextRender(() => this.focusStep(drawn, root), { injector: this.injector });
|
|
991
|
+
});
|
|
992
|
+
/**
|
|
993
|
+
* A step whose target lives in a layer opened after the tour — a dialog its
|
|
994
|
+
* `prepare` opened — would stand under that layer, inert and unreachable.
|
|
995
|
+
* The tour is raised back over it, in the document and in the stack.
|
|
996
|
+
*/
|
|
997
|
+
effect((onCleanup) => {
|
|
998
|
+
const root = this.rootNode();
|
|
999
|
+
const target = this.spot().target;
|
|
1000
|
+
/* The portal's own element, which stands beside the other layers; the
|
|
1001
|
+
root's parent is the frame component's host. */
|
|
1002
|
+
const layerNode = root === null ? null : (this.portal?.container ?? null);
|
|
1003
|
+
if (!this.visible() || target === null || layerNode === null)
|
|
1004
|
+
return;
|
|
1005
|
+
onCleanup(keepOverTarget(layerNode, target, () => {
|
|
1006
|
+
this.portal?.raise();
|
|
1007
|
+
this.layerHandle?.raise();
|
|
1008
|
+
}));
|
|
1009
|
+
});
|
|
1010
|
+
effect((onCleanup) => {
|
|
1011
|
+
const target = this.drawn()?.target ?? null;
|
|
1012
|
+
const event = this.current()?.advanceOn;
|
|
1013
|
+
if (!this.visible() || target === null || event === undefined)
|
|
1014
|
+
return;
|
|
1015
|
+
const listener = (source) => this.controller.next(eventReason(source), source);
|
|
1016
|
+
target.addEventListener(event, listener);
|
|
1017
|
+
onCleanup(() => target.removeEventListener(event, listener));
|
|
1018
|
+
});
|
|
1019
|
+
destroyRef.onDestroy(() => {
|
|
1020
|
+
this.controller.destroy();
|
|
1021
|
+
this.presence.destroy();
|
|
1022
|
+
this.teardown();
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
/* ── The two values ─────────────────────────────────────────────────── */
|
|
1026
|
+
requestOpen(next, reason, outcome, source) {
|
|
1027
|
+
if (next === this.open())
|
|
1028
|
+
return;
|
|
1029
|
+
let cancelled = false;
|
|
1030
|
+
const state = createControllable({
|
|
1031
|
+
initial: this.open(),
|
|
1032
|
+
onRequest: (raw) => {
|
|
1033
|
+
this.openChangeRequest.emit({
|
|
1034
|
+
get cancelled() {
|
|
1035
|
+
return raw.cancelled;
|
|
1036
|
+
},
|
|
1037
|
+
cancel: () => raw.cancel(),
|
|
1038
|
+
outcome,
|
|
1039
|
+
previous: raw.previous,
|
|
1040
|
+
reason,
|
|
1041
|
+
source: raw.source,
|
|
1042
|
+
value: raw.value,
|
|
1043
|
+
});
|
|
1044
|
+
cancelled = raw.cancelled;
|
|
1045
|
+
},
|
|
1046
|
+
});
|
|
1047
|
+
const moved = state.request(next, reason, source);
|
|
1048
|
+
if (cancelled || !moved)
|
|
1049
|
+
return;
|
|
1050
|
+
if (!next)
|
|
1051
|
+
this.closing = outcome;
|
|
1052
|
+
this.open.set(next);
|
|
1053
|
+
}
|
|
1054
|
+
requestStep(id, reason, source) {
|
|
1055
|
+
if (id === this.step()) {
|
|
1056
|
+
this.controller.sync(id);
|
|
1057
|
+
return;
|
|
1058
|
+
}
|
|
1059
|
+
let cancelled = false;
|
|
1060
|
+
const state = createControllable({
|
|
1061
|
+
initial: this.step(),
|
|
1062
|
+
onRequest: (raw) => {
|
|
1063
|
+
this.stepChangeRequest.emit({
|
|
1064
|
+
get cancelled() {
|
|
1065
|
+
return raw.cancelled;
|
|
1066
|
+
},
|
|
1067
|
+
cancel: () => raw.cancel(),
|
|
1068
|
+
previous: raw.previous,
|
|
1069
|
+
reason,
|
|
1070
|
+
source: raw.source,
|
|
1071
|
+
value: raw.value,
|
|
1072
|
+
});
|
|
1073
|
+
cancelled = raw.cancelled;
|
|
1074
|
+
},
|
|
1075
|
+
});
|
|
1076
|
+
const moved = state.request(id, reason, source);
|
|
1077
|
+
if (!cancelled && moved)
|
|
1078
|
+
this.step.set(id);
|
|
1079
|
+
}
|
|
1080
|
+
/* ── The handle a template reaches through exportAs ─────────────────── */
|
|
1081
|
+
/** Opens the tour at a step, or at the first available one. */
|
|
1082
|
+
start(id) {
|
|
1083
|
+
if (id !== undefined)
|
|
1084
|
+
this.requestStep(id, 'programmatic', undefined);
|
|
1085
|
+
this.requestOpen(true, 'programmatic', undefined, undefined);
|
|
1086
|
+
}
|
|
1087
|
+
next(source) {
|
|
1088
|
+
this.controller.next(eventReason(source), source);
|
|
1089
|
+
}
|
|
1090
|
+
prev(source) {
|
|
1091
|
+
this.controller.prev(eventReason(source), source);
|
|
1092
|
+
}
|
|
1093
|
+
goTo(id) {
|
|
1094
|
+
this.controller.goTo(id, 'programmatic');
|
|
1095
|
+
}
|
|
1096
|
+
close(outcome = 'close', source, dismiss = false) {
|
|
1097
|
+
this.requestOpen(false, dismiss ? 'dismiss' : eventReason(source), outcome, source);
|
|
1098
|
+
}
|
|
1099
|
+
/** Measures the target and the card again, after the page moved without scrolling. */
|
|
1100
|
+
reposition() {
|
|
1101
|
+
this.reposition_();
|
|
1102
|
+
}
|
|
1103
|
+
onKeyDown(event) {
|
|
1104
|
+
if (!(this.keyboardNavigation() ?? this.defaults.keyboardNavigation))
|
|
1105
|
+
return;
|
|
1106
|
+
if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey)
|
|
1107
|
+
return;
|
|
1108
|
+
const origin = event.target instanceof Element ? event.target : null;
|
|
1109
|
+
if (isTextEntry(origin))
|
|
1110
|
+
return;
|
|
1111
|
+
const action = tourKey(event.key, origin === null ? 'ltr' : directionOf(origin));
|
|
1112
|
+
if (action === null)
|
|
1113
|
+
return;
|
|
1114
|
+
event.preventDefault();
|
|
1115
|
+
if (action === 'next')
|
|
1116
|
+
this.controller.next('keyboard', event);
|
|
1117
|
+
else
|
|
1118
|
+
this.controller.prev('keyboard', event);
|
|
1119
|
+
}
|
|
1120
|
+
onGuardFocus() {
|
|
1121
|
+
const target = this.drawn()?.target;
|
|
1122
|
+
let destination = null;
|
|
1123
|
+
if (target instanceof HTMLElement) {
|
|
1124
|
+
destination = tabbables(target)[0] ?? (target.tabIndex >= 0 ? target : null);
|
|
1125
|
+
}
|
|
1126
|
+
(destination ?? this.contentNode())?.focus();
|
|
1127
|
+
}
|
|
1128
|
+
/* ── The frame ──────────────────────────────────────────────────────── */
|
|
1129
|
+
contentNode() {
|
|
1130
|
+
return this.rootNode()?.querySelector('[data-part="content"]') ?? null;
|
|
1131
|
+
}
|
|
1132
|
+
build() {
|
|
1133
|
+
if (untracked(() => this.rootNode()) !== null)
|
|
1134
|
+
return;
|
|
1135
|
+
const frame = untracked(() => this.outlet()).createComponent(SlTourFrame);
|
|
1136
|
+
frame.changeDetectorRef.detectChanges();
|
|
1137
|
+
const element = frame.location.nativeElement;
|
|
1138
|
+
const root = element.querySelector('[data-ui="tour"]');
|
|
1139
|
+
if (root === null)
|
|
1140
|
+
return;
|
|
1141
|
+
/**
|
|
1142
|
+
* The layer inherits its theme, scheme, density and direction from its
|
|
1143
|
+
* origin. The tour's own element stands where the consumer wrote it, in
|
|
1144
|
+
* the region whose theme the layer belongs to, which a centred first step
|
|
1145
|
+
* with no target could not otherwise say.
|
|
1146
|
+
*/
|
|
1147
|
+
const host = this.viewContainer.element.nativeElement;
|
|
1148
|
+
const portal = createPortalRoot({ origin: untracked(() => this.drawn()?.target ?? host) });
|
|
1149
|
+
(portal.container ?? this.document.body).appendChild(element);
|
|
1150
|
+
this.frameRef = frame;
|
|
1151
|
+
this.portal = portal;
|
|
1152
|
+
this.presence.setNode(root);
|
|
1153
|
+
this.rootNode.set(root);
|
|
1154
|
+
}
|
|
1155
|
+
teardown() {
|
|
1156
|
+
const root = untracked(() => this.rootNode());
|
|
1157
|
+
if (root === null && this.frameRef === null)
|
|
1158
|
+
return;
|
|
1159
|
+
this.presence.setNode(null);
|
|
1160
|
+
this.frameRef?.location.nativeElement.remove();
|
|
1161
|
+
this.rootNode.set(null);
|
|
1162
|
+
this.frameRef?.destroy();
|
|
1163
|
+
this.frameRef = null;
|
|
1164
|
+
this.portal?.release();
|
|
1165
|
+
this.portal = null;
|
|
1166
|
+
untracked(() => {
|
|
1167
|
+
this.drawn.set(null);
|
|
1168
|
+
this.spot.set({ target: null, move: 'rest' });
|
|
1169
|
+
this.leaving.set(false);
|
|
1170
|
+
this.ready.set(false);
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1173
|
+
place(onCleanup) {
|
|
1174
|
+
const root = this.rootNode();
|
|
1175
|
+
const target = this.anchored() ? (this.drawn()?.target ?? null) : null;
|
|
1176
|
+
const stepId = this.current()?.id;
|
|
1177
|
+
const options = {
|
|
1178
|
+
align: this.resolvedAlign(),
|
|
1179
|
+
alignOffset: this.alignOffset() ?? this.defaults.alignOffset,
|
|
1180
|
+
boundaryPadding: this.collisionPadding() ?? this.defaults.collisionPadding,
|
|
1181
|
+
side: this.resolvedSide(),
|
|
1182
|
+
sideOffset: this.sideOffset() ?? this.defaults.sideOffset,
|
|
1183
|
+
strategy: 'absolute',
|
|
1184
|
+
};
|
|
1185
|
+
const arrowPadding = this.arrowPadding() ?? this.defaults.arrowPadding;
|
|
1186
|
+
const withArrow = this.resolvedArrow();
|
|
1187
|
+
if (root === null || stepId === undefined)
|
|
1188
|
+
return;
|
|
1189
|
+
let destroy = () => { };
|
|
1190
|
+
let live = true;
|
|
1191
|
+
afterNextRender(() => {
|
|
1192
|
+
if (!live)
|
|
1193
|
+
return;
|
|
1194
|
+
const surface = root.querySelector('[data-part="surface"]');
|
|
1195
|
+
if (surface === null)
|
|
1196
|
+
return;
|
|
1197
|
+
if (target === null) {
|
|
1198
|
+
surface.style.removeProperty('left');
|
|
1199
|
+
surface.style.removeProperty('top');
|
|
1200
|
+
surface.removeAttribute('data-side');
|
|
1201
|
+
surface.removeAttribute('data-positioned');
|
|
1202
|
+
/* A centred card is placed by the stylesheet; it is ready on the
|
|
1203
|
+
next frame, so its arrival starts from nothing. */
|
|
1204
|
+
requestAnimationFrame(() => live && this.ready.set(true));
|
|
1205
|
+
return;
|
|
1206
|
+
}
|
|
1207
|
+
const arrow = withArrow ? root.querySelector('[data-part="arrow"]') : null;
|
|
1208
|
+
const handle = createPositioner(target, surface, {
|
|
1209
|
+
...options,
|
|
1210
|
+
...(arrow ? { arrow, arrowPadding } : {}),
|
|
1211
|
+
});
|
|
1212
|
+
this.reposition_ = () => void handle.update();
|
|
1213
|
+
void handle.update().then(() => {
|
|
1214
|
+
if (live)
|
|
1215
|
+
requestAnimationFrame(() => live && this.ready.set(true));
|
|
1216
|
+
});
|
|
1217
|
+
destroy = () => {
|
|
1218
|
+
handle.destroy();
|
|
1219
|
+
surface.removeAttribute('data-positioned');
|
|
1220
|
+
this.reposition_ = () => { };
|
|
1221
|
+
};
|
|
1222
|
+
}, { injector: this.injector });
|
|
1223
|
+
onCleanup(() => {
|
|
1224
|
+
live = false;
|
|
1225
|
+
destroy();
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
/**
|
|
1229
|
+
* One layer in the single stack. A modal step makes everything outside it
|
|
1230
|
+
* `inert` and holds a history entry for the way back; the target of an
|
|
1231
|
+
* interactive step is a branch, so pressing it is not a press outside.
|
|
1232
|
+
*/
|
|
1233
|
+
/**
|
|
1234
|
+
* The layer is made again only when something that defines it changes —
|
|
1235
|
+
* whether it is modal, and the two dismissals. A modal layer holds a history
|
|
1236
|
+
* entry for the way back, and one made again on every step gave its entry
|
|
1237
|
+
* back and took a new one on every Next: the browser's own `popstate` for
|
|
1238
|
+
* the entry given back arrived as the way back, and the tour closed itself.
|
|
1239
|
+
* The target of an interactive step joins the layer as a branch instead.
|
|
1240
|
+
*/
|
|
1241
|
+
stack(onCleanup) {
|
|
1242
|
+
const root = this.rootNode();
|
|
1243
|
+
const visible = this.visible();
|
|
1244
|
+
const modal = this.modal();
|
|
1245
|
+
const escape = this.closeOnEscape() ?? this.defaults.closeOnEscape;
|
|
1246
|
+
const outside = this.closeOnOutsidePress() ?? this.defaults.closeOnOutsidePress;
|
|
1247
|
+
if (root === null || !visible)
|
|
1248
|
+
return;
|
|
1249
|
+
const surface = root.querySelector('[data-part="surface"]') ?? root;
|
|
1250
|
+
const layer = createDismissableLayer(root, {
|
|
1251
|
+
back: modal,
|
|
1252
|
+
content: surface,
|
|
1253
|
+
escape,
|
|
1254
|
+
modal,
|
|
1255
|
+
outsidePress: outside,
|
|
1256
|
+
scrollLock: false,
|
|
1257
|
+
onDismiss: (request) => this.requestOpen(false, DISMISS_REASONS[request.reason], 'close', request.source),
|
|
1258
|
+
});
|
|
1259
|
+
this.layerHandle = layer;
|
|
1260
|
+
this.layer.set(layer);
|
|
1261
|
+
onCleanup(() => {
|
|
1262
|
+
this.layerHandle = null;
|
|
1263
|
+
this.layer.set(null);
|
|
1264
|
+
layer.destroy();
|
|
1265
|
+
});
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
* Focus follows the reader rather than the tour: the card takes it when the
|
|
1269
|
+
* tour opens, and on a step change only when it was already in the card. A
|
|
1270
|
+
* reader elsewhere keeps their place and hears the new step instead.
|
|
1271
|
+
*/
|
|
1272
|
+
focusStep(shown, root) {
|
|
1273
|
+
const id = shown.step.id;
|
|
1274
|
+
if (this.focusedStep === id)
|
|
1275
|
+
return;
|
|
1276
|
+
const first = this.focusedStep === null;
|
|
1277
|
+
this.focusedStep = id;
|
|
1278
|
+
const content = root.querySelector('[data-part="content"]');
|
|
1279
|
+
const active = this.document.activeElement;
|
|
1280
|
+
const inCard = active === null || active === this.document.body || root.contains(active);
|
|
1281
|
+
/* The mark is the navigation's that led here; the opening has none, and
|
|
1282
|
+
a first card focused late must not take the mark of the next move. */
|
|
1283
|
+
const fromCard = !first && this.leftFromCard;
|
|
1284
|
+
if (!first)
|
|
1285
|
+
this.leftFromCard = false;
|
|
1286
|
+
if (first ? (this.autoFocus() ?? this.defaults.autoFocus) : inCard || fromCard) {
|
|
1287
|
+
content?.focus({ preventScroll: true });
|
|
1288
|
+
return;
|
|
1289
|
+
}
|
|
1290
|
+
if (!first) {
|
|
1291
|
+
const text = shown.step.announcement ?? shown.step.title;
|
|
1292
|
+
if (text !== '')
|
|
1293
|
+
getLiveAnnouncer(this.document).announce(text);
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
restoreFocus() {
|
|
1297
|
+
const wasOpen = this.focusedStep !== null;
|
|
1298
|
+
this.focusedStep = null;
|
|
1299
|
+
const origin = this.opener;
|
|
1300
|
+
this.opener = null;
|
|
1301
|
+
if (!wasOpen)
|
|
1302
|
+
return;
|
|
1303
|
+
const root = this.rootNode();
|
|
1304
|
+
const active = this.document.activeElement;
|
|
1305
|
+
const inside = active === null || active === this.document.body || (root?.contains(active) ?? false);
|
|
1306
|
+
if (!inside)
|
|
1307
|
+
return;
|
|
1308
|
+
const named = this.finalFocus();
|
|
1309
|
+
const destination = named === undefined
|
|
1310
|
+
? origin
|
|
1311
|
+
: typeof named === 'string'
|
|
1312
|
+
? this.document.querySelector(named)
|
|
1313
|
+
: named;
|
|
1314
|
+
if (destination?.isConnected)
|
|
1315
|
+
destination.focus();
|
|
1316
|
+
}
|
|
1317
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTour, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1318
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", type: SlTour, isStandalone: true, selector: "sl-tour", inputs: { steps: { classPropertyName: "steps", publicName: "steps", isSignal: true, isRequired: true, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, missing: { classPropertyName: "missing", publicName: "missing", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, finalFocus: { classPropertyName: "finalFocus", publicName: "finalFocus", isSignal: true, isRequired: false, transformFunction: null }, arrow: { classPropertyName: "arrow", publicName: "arrow", isSignal: true, isRequired: false, transformFunction: null }, modalInput: { classPropertyName: "modalInput", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, spotlight: { classPropertyName: "spotlight", publicName: "spotlight", isSignal: true, isRequired: false, transformFunction: null }, autoFocus: { classPropertyName: "autoFocus", publicName: "autoFocus", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, closeOnOutsidePress: { classPropertyName: "closeOnOutsidePress", publicName: "closeOnOutsidePress", isSignal: true, isRequired: false, transformFunction: null }, scrollIntoView: { classPropertyName: "scrollIntoView", publicName: "scrollIntoView", isSignal: true, isRequired: false, transformFunction: null }, keyboardNavigation: { classPropertyName: "keyboardNavigation", publicName: "keyboardNavigation", isSignal: true, isRequired: false, transformFunction: null }, targetTimeout: { classPropertyName: "targetTimeout", publicName: "targetTimeout", isSignal: true, isRequired: false, transformFunction: null }, sideOffset: { classPropertyName: "sideOffset", publicName: "sideOffset", isSignal: true, isRequired: false, transformFunction: null }, alignOffset: { classPropertyName: "alignOffset", publicName: "alignOffset", isSignal: true, isRequired: false, transformFunction: null }, collisionPadding: { classPropertyName: "collisionPadding", publicName: "collisionPadding", isSignal: true, isRequired: false, transformFunction: null }, arrowPadding: { classPropertyName: "arrowPadding", publicName: "arrowPadding", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", step: "stepChange", openChangeRequest: "openChangeRequest", stepChangeRequest: "stepChangeRequest" }, providers: [{ provide: SL_TOUR, useExisting: forwardRef(() => SlTour) }], queries: [{ propertyName: "card", first: true, predicate: SlTourCard, descendants: true, isSignal: true }, { propertyName: "stepTemplates", predicate: SlTourStep, isSignal: true }], viewQueries: [{ propertyName: "outlet", first: true, predicate: ["outlet"], descendants: true, read: ViewContainerRef, isSignal: true }], exportAs: ["slTour"], ngImport: i0, template: `<ng-container #outlet></ng-container>`, isInline: true, styles: ["@layer slotted.components{[data-ui=tour]{--_scrim: var(--slotted-tour-scrim, var(--slotted-scrim, Canvas));--_spotlight-padding: var(--slotted-tour-spotlight-padding, var(--slotted-space-3, .375rem));--_spotlight-radius: var(--slotted-tour-spotlight-radius, var(--slotted-radius-md, 6px));--_gap: var( --slotted-tour-gap, calc(var(--_spotlight-padding) + var(--slotted-space-4, .5rem)) );--_surface: var(--slotted-tour-surface, var(--slotted-surface-raised, #ffffff));--_text: var(--slotted-tour-text, var(--slotted-text, #0f172a));--_border-color: var(--slotted-tour-border-color, var(--slotted-border-subtle, #e2e8f0));--_border-width: var(--slotted-border-width-thin, 1px);--_radius: var(--slotted-tour-radius, var(--slotted-radius-lg, 8px));--_shadow: var(--slotted-tour-shadow, var(--slotted-shadow-lg));--_arrow-size: var(--slotted-tour-arrow-size, .625rem);--_arrow-tip-radius: var(--slotted-tour-arrow-tip-radius, var(--slotted-radius-xs, 2px));--_inset-block: var(--slotted-tour-padding-block, var(--slotted-space-6, 1rem));--_inset-inline: var(--slotted-tour-padding-inline, var(--slotted-space-6, 1rem));--_row-gap: var(--slotted-control-gap-md, .5rem);--_title-font-size: var(--slotted-font-size-lg, 1rem);--_font-size: var(--slotted-font-size-md, .875rem);--_measure: var(--slotted-tour-measure, 20rem);position:fixed;inset:0;z-index:calc(var(--slotted-z-index-overlay, 1000) + var(--slotted-layer-depth, 0));isolation:isolate;overflow:clip;pointer-events:none;visibility:hidden;transition:visibility var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=tour][data-open]{visibility:visible;transition:none}[data-ui=tour][data-size=sm]{--_inset-block: var(--slotted-tour-padding-block-sm, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-tour-padding-inline-sm, var(--slotted-space-5, .75rem));--_title-font-size: var(--slotted-font-size-md, .875rem);--_font-size: var(--slotted-font-size-sm, .8125rem);--_measure: var(--slotted-tour-measure-sm, 16rem)}[data-ui=tour][data-size=lg]{--_inset-block: var(--slotted-tour-padding-block-lg, var(--slotted-space-7, 1.25rem));--_inset-inline: var(--slotted-tour-padding-inline-lg, var(--slotted-space-7, 1.25rem));--_title-font-size: var(--slotted-font-size-xl, 1.125rem);--_measure: var(--slotted-tour-measure-lg, 24rem)}[data-ui=tour]>[data-part=backdrop]{position:absolute;inset:0;overflow:clip;background:var(--_scrim);opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=tour][data-open]>[data-part=backdrop]{opacity:1;transition:opacity var(--slotted-duration-long) var(--slotted-easing-standard)}[data-ui=tour][data-spotlight]>[data-part=backdrop]{background:transparent}[data-ui=tour][data-modal]>[data-part=backdrop]{pointer-events:auto}[data-ui=tour]>[data-part=backdrop]>[data-part=spotlight]{position:absolute;left:calc(var(--slotted-tour-target-x, 0px) - var(--_spotlight-padding));top:calc(var(--slotted-tour-target-y, 0px) - var(--_spotlight-padding));width:calc(var(--slotted-tour-target-width, 0px) + 2 * var(--_spotlight-padding));height:calc(var(--slotted-tour-target-height, 0px) + 2 * var(--_spotlight-padding));border-radius:var(--_spotlight-radius);box-shadow:0 0 0 200vmax var(--_scrim);background-color:transparent}[data-ui=tour][data-spot=travel]>[data-part=backdrop]>[data-part=spotlight]{transition-property:left,top,width,height;transition-duration:var(--slotted-duration-long);transition-timing-function:var(--slotted-easing-standard)}[data-ui=tour][data-spot=light]>[data-part=backdrop]>[data-part=spotlight]{animation:slotted-tour-light var(--slotted-duration-long) var(--slotted-easing-standard)}[data-ui=tour][data-spot=close]>[data-part=backdrop]>[data-part=spotlight]{background-color:var(--_scrim);transition:background-color var(--slotted-duration-long) var(--slotted-easing-standard)}@keyframes slotted-tour-light{0%{background-color:var(--_scrim)}}[data-ui=tour]>[data-part=surface]{position:absolute;inset-block-start:0;box-sizing:border-box;padding:var(--_gap);inline-size:max-content;max-inline-size:min(var(--_measure),var(--slotted-positioner-available-width, 100vw));pointer-events:none;opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=tour][data-open]>[data-part=surface][data-ready]:not([data-leaving]){opacity:1;transition:opacity var(--slotted-duration-long) var(--slotted-easing-standard)}[data-ui=tour]>[data-part=surface][data-detached]{visibility:hidden}[data-ui=tour]>[data-part=surface][data-placement=centered]{inset:0;margin:auto;block-size:max-content;max-inline-size:min(var(--_measure),100%);max-block-size:100%}@supports (inset: env(safe-area-inset-top)){[data-ui=tour]>[data-part=surface][data-placement=centered]{inset:env(safe-area-inset-top,0) env(safe-area-inset-right,0) env(safe-area-inset-bottom,0) env(safe-area-inset-left,0)}}[data-ui=tour][data-compact]>[data-part=surface][data-placement=anchored]{--_compact-measure: var(--slotted-tour-measure-compact, 32rem);inline-size:min(var(--slotted-positioner-available-width, 100vw),var(--_compact-measure));max-inline-size:min(var(--slotted-positioner-available-width, 100vw),var(--_compact-measure))}[data-ui=tour]>[data-part=surface][data-placement=centered]>[data-part=arrow]{display:none}[data-ui=tour]>[data-part=surface]>[data-part=focus-guard]{position:absolute;inline-size:1px;block-size:1px;padding:0;overflow:hidden;opacity:0;outline:none;pointer-events:none}[data-ui=tour]>[data-part=surface]>[data-part=content]{box-sizing:border-box;display:flex;flex-direction:column;max-inline-size:100%;max-block-size:calc(var(--slotted-positioner-available-height, 100vh) - 2 * var(--_gap));border:var(--_border-width) solid var(--_border-color);border-radius:var(--_radius);background:var(--_surface);color:var(--_text);box-shadow:var(--_shadow);overflow:clip;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);font-size:var(--_font-size);line-height:var(--slotted-line-height-md, 1.5);text-align:start;pointer-events:auto;outline:none}[data-ui=tour]>[data-part=surface][data-placement=centered]>[data-part=content]{max-block-size:calc(100vh - 2 * var(--_gap))}[data-ui=tour]>[data-part=surface]>[data-part=content]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, currentColor);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui=tour] [data-part=content]>[data-part=media]{display:block;flex:none;inline-size:100%;max-inline-size:100%;block-size:auto;object-fit:cover;border-block-end:var(--_border-width) solid var(--_border-color)}[data-ui=tour] [data-part=content]>[data-part=media]>:is(img,video,svg){display:block;inline-size:100%;block-size:auto}[data-ui=tour] [data-part=content]>[data-part=header]{display:flex;flex:none;align-items:flex-start;gap:var(--_row-gap);min-block-size:var(--slotted-control-height-sm, 30px);padding-block-start:calc(var(--_inset-block) - var(--slotted-space-3, .375rem));padding-inline:var(--_inset-inline) calc(var(--_inset-inline) - var(--slotted-space-3, .375rem))}[data-ui=tour] [data-part=content]>[data-part=header]>[data-part=progress]{flex:1 1 auto;min-inline-size:0;margin:0;font-size:var(--slotted-font-size-xs, .75rem);font-weight:var(--slotted-font-weight-medium, 500);line-height:var(--slotted-line-height-xs, 1.4);color:var(--slotted-text-muted, #5b6b7f);font-variant-numeric:tabular-nums;padding-block:calc((var(--slotted-control-height-sm, 30px) - 1lh) / 2);unicode-bidi:plaintext}[data-ui=tour] [data-part=content]>[data-part=header]>[data-part=close]{flex:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;inline-size:var(--slotted-control-height-sm, 30px);block-size:var(--slotted-control-height-sm, 30px);margin-inline-start:auto;padding:0;border:0;border-radius:var(--slotted-control-radius, var(--slotted-radius-sm, 4px));background:transparent;color:var(--slotted-text-muted, #5b6b7f);cursor:pointer;transition:background-color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard)),color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard))}[data-ui=tour] [data-part=content]>[data-part=header]>[data-part=close]:enabled:hover{background:var(--slotted-tone-secondary-subtle-hover, rgb(15 23 42 / .06));color:var(--_text)}[data-ui=tour] [data-part=content]>[data-part=header]>[data-part=close]:enabled:active{background:var(--slotted-tone-secondary-subtle-active, rgb(15 23 42 / .1))}[data-ui=tour] [data-part=content]>[data-part=header]>[data-part=close]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, currentColor);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui=tour] [data-part=content]>[data-part=title]{flex:none;margin:0;padding-inline:var(--_inset-inline);padding-block-start:var(--slotted-space-2, .25rem);font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--_title-font-size);font-weight:var(--slotted-font-weight-semibold, 600);line-height:var(--slotted-line-height-lg, 1.5);color:var(--_text);overflow-wrap:anywhere;unicode-bidi:plaintext}[data-ui=tour] [data-part=content]>[data-part=title]:first-child,[data-ui=tour] [data-part=content]>[data-part=media]+[data-part=title]{padding-block-start:var(--_inset-block)}[data-ui=tour] [data-part=content]>[data-part=description]{flex:none;margin:0;padding-inline:var(--_inset-inline);padding-block-start:var(--slotted-space-2, .25rem);color:var(--slotted-text-muted, #5b6b7f);overflow-wrap:anywhere;unicode-bidi:plaintext}[data-ui=tour] [data-part=content]>[data-part=body]{flex:1 1 auto;min-block-size:0;overflow-x:hidden;overflow-y:auto;overflow-inline:hidden;overflow-block:auto;overscroll-behavior:contain;overflow-wrap:anywhere;unicode-bidi:plaintext;margin-block-start:var(--_row-gap);padding-inline:var(--_inset-inline);background:linear-gradient(var(--_surface) 30%,transparent) center top / 100% var(--slotted-space-4, .5rem) no-repeat local,linear-gradient(transparent,var(--_surface) 70%) center bottom / 100% var(--slotted-space-4, .5rem) no-repeat local,radial-gradient(farthest-side at 50% 0,color-mix(in oklab,var(--_text) 12%,transparent),transparent) center top / 100% var(--slotted-space-3, .375rem) no-repeat scroll,radial-gradient(farthest-side at 50% 100%,color-mix(in oklab,var(--_text) 12%,transparent),transparent) center bottom / 100% var(--slotted-space-3, .375rem) no-repeat scroll}[data-ui=tour] [data-part=content]>[data-part=footer]{display:flex;flex:none;flex-direction:row-reverse;flex-wrap:wrap-reverse;align-items:center;justify-content:flex-start;gap:var(--_row-gap);padding-block:var(--_inset-block);padding-inline:var(--_inset-inline)}[data-ui=tour] [data-part=content]>[data-part=footer]>[data-part=next]{order:1}[data-ui=tour] [data-part=content]>[data-part=footer]>[data-part=prev]{order:2}[data-ui=tour] [data-part=content]>[data-part=footer]>[data-part=skip]{order:3;margin-inline-end:auto;margin-inline-start:calc(-1 * var(--slotted-control-padding-inline-sm, 10px))}[data-ui=tour]>[data-part=surface]>[data-part=arrow]{--_arrow-min: calc(var(--_gap) + var(--_radius));--_arrow-max-x: calc(100% - var(--_gap) - var(--_radius) - var(--_arrow-size));--_arrow-x: clamp( var(--_arrow-min), var(--slotted-positioner-arrow-x, 0px), var(--_arrow-max-x) );--_arrow-y: clamp( var(--_arrow-min), var(--slotted-positioner-arrow-y, 0px), calc(100% - var(--_gap) - var(--_radius) - var(--_arrow-size)) );position:absolute;z-index:1;inline-size:var(--_arrow-size);block-size:var(--_arrow-size);rotate:45deg;background:var(--_surface);border:0 solid var(--_border-color)}[data-ui=tour]>[data-part=surface][data-side=top]>[data-part=arrow]{left:var(--_arrow-x);top:auto;bottom:calc(var(--_gap) - var(--_arrow-size) / 2);border-right-width:var(--_border-width);border-bottom-width:var(--_border-width);border-bottom-right-radius:var(--_arrow-tip-radius)}[data-ui=tour]>[data-part=surface][data-side=bottom]>[data-part=arrow]{left:var(--_arrow-x);top:calc(var(--_gap) - var(--_arrow-size) / 2);bottom:auto;border-top-width:var(--_border-width);border-left-width:var(--_border-width);border-top-left-radius:var(--_arrow-tip-radius)}[data-ui=tour]>[data-part=surface][data-side=left]>[data-part=arrow]{top:var(--_arrow-y);left:auto;right:calc(var(--_gap) - var(--_arrow-size) / 2);border-top-width:var(--_border-width);border-right-width:var(--_border-width);border-top-right-radius:var(--_arrow-tip-radius)}[data-ui=tour]>[data-part=surface][data-side=right]>[data-part=arrow]{top:var(--_arrow-y);left:calc(var(--_gap) - var(--_arrow-size) / 2);right:auto;border-bottom-width:var(--_border-width);border-left-width:var(--_border-width);border-bottom-left-radius:var(--_arrow-tip-radius)}[data-ui=tour]>[data-part=surface]:has(>[data-part=content]:focus-visible)>[data-part=arrow]{--_border-width: var(--slotted-focus-ring-width, 2px);border-color:var(--slotted-focus-ring-color, currentColor)}[data-ui=tour] [data-part=content] [data-part][hidden]{display:none}@media(forced-colors:active){[data-ui=tour]>[data-part=backdrop]>[data-part=spotlight]{outline:var(--slotted-focus-ring-width, 2px) solid Highlight}[data-ui=tour][data-spotlight]>[data-part=backdrop]{background:transparent}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1319
|
+
}
|
|
1320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTour, decorators: [{
|
|
1321
|
+
type: Component,
|
|
1322
|
+
args: [{ selector: 'sl-tour', standalone: true, exportAs: 'slTour', imports: [SlTourFrame], providers: [{ provide: SL_TOUR, useExisting: forwardRef(() => SlTour) }], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: `<ng-container #outlet></ng-container>`, styles: ["@layer slotted.components{[data-ui=tour]{--_scrim: var(--slotted-tour-scrim, var(--slotted-scrim, Canvas));--_spotlight-padding: var(--slotted-tour-spotlight-padding, var(--slotted-space-3, .375rem));--_spotlight-radius: var(--slotted-tour-spotlight-radius, var(--slotted-radius-md, 6px));--_gap: var( --slotted-tour-gap, calc(var(--_spotlight-padding) + var(--slotted-space-4, .5rem)) );--_surface: var(--slotted-tour-surface, var(--slotted-surface-raised, #ffffff));--_text: var(--slotted-tour-text, var(--slotted-text, #0f172a));--_border-color: var(--slotted-tour-border-color, var(--slotted-border-subtle, #e2e8f0));--_border-width: var(--slotted-border-width-thin, 1px);--_radius: var(--slotted-tour-radius, var(--slotted-radius-lg, 8px));--_shadow: var(--slotted-tour-shadow, var(--slotted-shadow-lg));--_arrow-size: var(--slotted-tour-arrow-size, .625rem);--_arrow-tip-radius: var(--slotted-tour-arrow-tip-radius, var(--slotted-radius-xs, 2px));--_inset-block: var(--slotted-tour-padding-block, var(--slotted-space-6, 1rem));--_inset-inline: var(--slotted-tour-padding-inline, var(--slotted-space-6, 1rem));--_row-gap: var(--slotted-control-gap-md, .5rem);--_title-font-size: var(--slotted-font-size-lg, 1rem);--_font-size: var(--slotted-font-size-md, .875rem);--_measure: var(--slotted-tour-measure, 20rem);position:fixed;inset:0;z-index:calc(var(--slotted-z-index-overlay, 1000) + var(--slotted-layer-depth, 0));isolation:isolate;overflow:clip;pointer-events:none;visibility:hidden;transition:visibility var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=tour][data-open]{visibility:visible;transition:none}[data-ui=tour][data-size=sm]{--_inset-block: var(--slotted-tour-padding-block-sm, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-tour-padding-inline-sm, var(--slotted-space-5, .75rem));--_title-font-size: var(--slotted-font-size-md, .875rem);--_font-size: var(--slotted-font-size-sm, .8125rem);--_measure: var(--slotted-tour-measure-sm, 16rem)}[data-ui=tour][data-size=lg]{--_inset-block: var(--slotted-tour-padding-block-lg, var(--slotted-space-7, 1.25rem));--_inset-inline: var(--slotted-tour-padding-inline-lg, var(--slotted-space-7, 1.25rem));--_title-font-size: var(--slotted-font-size-xl, 1.125rem);--_measure: var(--slotted-tour-measure-lg, 24rem)}[data-ui=tour]>[data-part=backdrop]{position:absolute;inset:0;overflow:clip;background:var(--_scrim);opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=tour][data-open]>[data-part=backdrop]{opacity:1;transition:opacity var(--slotted-duration-long) var(--slotted-easing-standard)}[data-ui=tour][data-spotlight]>[data-part=backdrop]{background:transparent}[data-ui=tour][data-modal]>[data-part=backdrop]{pointer-events:auto}[data-ui=tour]>[data-part=backdrop]>[data-part=spotlight]{position:absolute;left:calc(var(--slotted-tour-target-x, 0px) - var(--_spotlight-padding));top:calc(var(--slotted-tour-target-y, 0px) - var(--_spotlight-padding));width:calc(var(--slotted-tour-target-width, 0px) + 2 * var(--_spotlight-padding));height:calc(var(--slotted-tour-target-height, 0px) + 2 * var(--_spotlight-padding));border-radius:var(--_spotlight-radius);box-shadow:0 0 0 200vmax var(--_scrim);background-color:transparent}[data-ui=tour][data-spot=travel]>[data-part=backdrop]>[data-part=spotlight]{transition-property:left,top,width,height;transition-duration:var(--slotted-duration-long);transition-timing-function:var(--slotted-easing-standard)}[data-ui=tour][data-spot=light]>[data-part=backdrop]>[data-part=spotlight]{animation:slotted-tour-light var(--slotted-duration-long) var(--slotted-easing-standard)}[data-ui=tour][data-spot=close]>[data-part=backdrop]>[data-part=spotlight]{background-color:var(--_scrim);transition:background-color var(--slotted-duration-long) var(--slotted-easing-standard)}@keyframes slotted-tour-light{0%{background-color:var(--_scrim)}}[data-ui=tour]>[data-part=surface]{position:absolute;inset-block-start:0;box-sizing:border-box;padding:var(--_gap);inline-size:max-content;max-inline-size:min(var(--_measure),var(--slotted-positioner-available-width, 100vw));pointer-events:none;opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=tour][data-open]>[data-part=surface][data-ready]:not([data-leaving]){opacity:1;transition:opacity var(--slotted-duration-long) var(--slotted-easing-standard)}[data-ui=tour]>[data-part=surface][data-detached]{visibility:hidden}[data-ui=tour]>[data-part=surface][data-placement=centered]{inset:0;margin:auto;block-size:max-content;max-inline-size:min(var(--_measure),100%);max-block-size:100%}@supports (inset: env(safe-area-inset-top)){[data-ui=tour]>[data-part=surface][data-placement=centered]{inset:env(safe-area-inset-top,0) env(safe-area-inset-right,0) env(safe-area-inset-bottom,0) env(safe-area-inset-left,0)}}[data-ui=tour][data-compact]>[data-part=surface][data-placement=anchored]{--_compact-measure: var(--slotted-tour-measure-compact, 32rem);inline-size:min(var(--slotted-positioner-available-width, 100vw),var(--_compact-measure));max-inline-size:min(var(--slotted-positioner-available-width, 100vw),var(--_compact-measure))}[data-ui=tour]>[data-part=surface][data-placement=centered]>[data-part=arrow]{display:none}[data-ui=tour]>[data-part=surface]>[data-part=focus-guard]{position:absolute;inline-size:1px;block-size:1px;padding:0;overflow:hidden;opacity:0;outline:none;pointer-events:none}[data-ui=tour]>[data-part=surface]>[data-part=content]{box-sizing:border-box;display:flex;flex-direction:column;max-inline-size:100%;max-block-size:calc(var(--slotted-positioner-available-height, 100vh) - 2 * var(--_gap));border:var(--_border-width) solid var(--_border-color);border-radius:var(--_radius);background:var(--_surface);color:var(--_text);box-shadow:var(--_shadow);overflow:clip;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);font-size:var(--_font-size);line-height:var(--slotted-line-height-md, 1.5);text-align:start;pointer-events:auto;outline:none}[data-ui=tour]>[data-part=surface][data-placement=centered]>[data-part=content]{max-block-size:calc(100vh - 2 * var(--_gap))}[data-ui=tour]>[data-part=surface]>[data-part=content]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, currentColor);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui=tour] [data-part=content]>[data-part=media]{display:block;flex:none;inline-size:100%;max-inline-size:100%;block-size:auto;object-fit:cover;border-block-end:var(--_border-width) solid var(--_border-color)}[data-ui=tour] [data-part=content]>[data-part=media]>:is(img,video,svg){display:block;inline-size:100%;block-size:auto}[data-ui=tour] [data-part=content]>[data-part=header]{display:flex;flex:none;align-items:flex-start;gap:var(--_row-gap);min-block-size:var(--slotted-control-height-sm, 30px);padding-block-start:calc(var(--_inset-block) - var(--slotted-space-3, .375rem));padding-inline:var(--_inset-inline) calc(var(--_inset-inline) - var(--slotted-space-3, .375rem))}[data-ui=tour] [data-part=content]>[data-part=header]>[data-part=progress]{flex:1 1 auto;min-inline-size:0;margin:0;font-size:var(--slotted-font-size-xs, .75rem);font-weight:var(--slotted-font-weight-medium, 500);line-height:var(--slotted-line-height-xs, 1.4);color:var(--slotted-text-muted, #5b6b7f);font-variant-numeric:tabular-nums;padding-block:calc((var(--slotted-control-height-sm, 30px) - 1lh) / 2);unicode-bidi:plaintext}[data-ui=tour] [data-part=content]>[data-part=header]>[data-part=close]{flex:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;inline-size:var(--slotted-control-height-sm, 30px);block-size:var(--slotted-control-height-sm, 30px);margin-inline-start:auto;padding:0;border:0;border-radius:var(--slotted-control-radius, var(--slotted-radius-sm, 4px));background:transparent;color:var(--slotted-text-muted, #5b6b7f);cursor:pointer;transition:background-color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard)),color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard))}[data-ui=tour] [data-part=content]>[data-part=header]>[data-part=close]:enabled:hover{background:var(--slotted-tone-secondary-subtle-hover, rgb(15 23 42 / .06));color:var(--_text)}[data-ui=tour] [data-part=content]>[data-part=header]>[data-part=close]:enabled:active{background:var(--slotted-tone-secondary-subtle-active, rgb(15 23 42 / .1))}[data-ui=tour] [data-part=content]>[data-part=header]>[data-part=close]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, currentColor);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui=tour] [data-part=content]>[data-part=title]{flex:none;margin:0;padding-inline:var(--_inset-inline);padding-block-start:var(--slotted-space-2, .25rem);font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--_title-font-size);font-weight:var(--slotted-font-weight-semibold, 600);line-height:var(--slotted-line-height-lg, 1.5);color:var(--_text);overflow-wrap:anywhere;unicode-bidi:plaintext}[data-ui=tour] [data-part=content]>[data-part=title]:first-child,[data-ui=tour] [data-part=content]>[data-part=media]+[data-part=title]{padding-block-start:var(--_inset-block)}[data-ui=tour] [data-part=content]>[data-part=description]{flex:none;margin:0;padding-inline:var(--_inset-inline);padding-block-start:var(--slotted-space-2, .25rem);color:var(--slotted-text-muted, #5b6b7f);overflow-wrap:anywhere;unicode-bidi:plaintext}[data-ui=tour] [data-part=content]>[data-part=body]{flex:1 1 auto;min-block-size:0;overflow-x:hidden;overflow-y:auto;overflow-inline:hidden;overflow-block:auto;overscroll-behavior:contain;overflow-wrap:anywhere;unicode-bidi:plaintext;margin-block-start:var(--_row-gap);padding-inline:var(--_inset-inline);background:linear-gradient(var(--_surface) 30%,transparent) center top / 100% var(--slotted-space-4, .5rem) no-repeat local,linear-gradient(transparent,var(--_surface) 70%) center bottom / 100% var(--slotted-space-4, .5rem) no-repeat local,radial-gradient(farthest-side at 50% 0,color-mix(in oklab,var(--_text) 12%,transparent),transparent) center top / 100% var(--slotted-space-3, .375rem) no-repeat scroll,radial-gradient(farthest-side at 50% 100%,color-mix(in oklab,var(--_text) 12%,transparent),transparent) center bottom / 100% var(--slotted-space-3, .375rem) no-repeat scroll}[data-ui=tour] [data-part=content]>[data-part=footer]{display:flex;flex:none;flex-direction:row-reverse;flex-wrap:wrap-reverse;align-items:center;justify-content:flex-start;gap:var(--_row-gap);padding-block:var(--_inset-block);padding-inline:var(--_inset-inline)}[data-ui=tour] [data-part=content]>[data-part=footer]>[data-part=next]{order:1}[data-ui=tour] [data-part=content]>[data-part=footer]>[data-part=prev]{order:2}[data-ui=tour] [data-part=content]>[data-part=footer]>[data-part=skip]{order:3;margin-inline-end:auto;margin-inline-start:calc(-1 * var(--slotted-control-padding-inline-sm, 10px))}[data-ui=tour]>[data-part=surface]>[data-part=arrow]{--_arrow-min: calc(var(--_gap) + var(--_radius));--_arrow-max-x: calc(100% - var(--_gap) - var(--_radius) - var(--_arrow-size));--_arrow-x: clamp( var(--_arrow-min), var(--slotted-positioner-arrow-x, 0px), var(--_arrow-max-x) );--_arrow-y: clamp( var(--_arrow-min), var(--slotted-positioner-arrow-y, 0px), calc(100% - var(--_gap) - var(--_radius) - var(--_arrow-size)) );position:absolute;z-index:1;inline-size:var(--_arrow-size);block-size:var(--_arrow-size);rotate:45deg;background:var(--_surface);border:0 solid var(--_border-color)}[data-ui=tour]>[data-part=surface][data-side=top]>[data-part=arrow]{left:var(--_arrow-x);top:auto;bottom:calc(var(--_gap) - var(--_arrow-size) / 2);border-right-width:var(--_border-width);border-bottom-width:var(--_border-width);border-bottom-right-radius:var(--_arrow-tip-radius)}[data-ui=tour]>[data-part=surface][data-side=bottom]>[data-part=arrow]{left:var(--_arrow-x);top:calc(var(--_gap) - var(--_arrow-size) / 2);bottom:auto;border-top-width:var(--_border-width);border-left-width:var(--_border-width);border-top-left-radius:var(--_arrow-tip-radius)}[data-ui=tour]>[data-part=surface][data-side=left]>[data-part=arrow]{top:var(--_arrow-y);left:auto;right:calc(var(--_gap) - var(--_arrow-size) / 2);border-top-width:var(--_border-width);border-right-width:var(--_border-width);border-top-right-radius:var(--_arrow-tip-radius)}[data-ui=tour]>[data-part=surface][data-side=right]>[data-part=arrow]{top:var(--_arrow-y);left:calc(var(--_gap) - var(--_arrow-size) / 2);right:auto;border-bottom-width:var(--_border-width);border-left-width:var(--_border-width);border-bottom-left-radius:var(--_arrow-tip-radius)}[data-ui=tour]>[data-part=surface]:has(>[data-part=content]:focus-visible)>[data-part=arrow]{--_border-width: var(--slotted-focus-ring-width, 2px);border-color:var(--slotted-focus-ring-color, currentColor)}[data-ui=tour] [data-part=content] [data-part][hidden]{display:none}@media(forced-colors:active){[data-ui=tour]>[data-part=backdrop]>[data-part=spotlight]{outline:var(--slotted-focus-ring-width, 2px) solid Highlight}[data-ui=tour][data-spotlight]>[data-part=backdrop]{background:transparent}}}\n"] }]
|
|
1323
|
+
}], ctorParameters: () => [], propDecorators: { steps: [{ type: i0.Input, args: [{ isSignal: true, alias: "steps", required: true }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }, { type: i0.Output, args: ["stepChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], missing: [{ type: i0.Input, args: [{ isSignal: true, alias: "missing", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], finalFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "finalFocus", required: false }] }], arrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "arrow", required: false }] }], modalInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], spotlight: [{ type: i0.Input, args: [{ isSignal: true, alias: "spotlight", required: false }] }], autoFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFocus", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closeOnOutsidePress: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnOutsidePress", required: false }] }], scrollIntoView: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollIntoView", required: false }] }], keyboardNavigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyboardNavigation", required: false }] }], targetTimeout: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetTimeout", required: false }] }], sideOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideOffset", required: false }] }], alignOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignOffset", required: false }] }], collisionPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "collisionPadding", required: false }] }], arrowPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "arrowPadding", required: false }] }], openChangeRequest: [{ type: i0.Output, args: ["openChangeRequest"] }], stepChangeRequest: [{ type: i0.Output, args: ["stepChangeRequest"] }], card: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlTourCard), { isSignal: true }] }], stepTemplates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SlTourStep), { isSignal: true }] }], outlet: [{ type: i0.ViewChild, args: ['outlet', { ...{ read: ViewContainerRef }, isSignal: true }] }] } });
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* Generated bundle index. Do not edit.
|
|
1327
|
+
*/
|
|
1328
|
+
|
|
1329
|
+
export { SL_TOUR, SlTour, SlTourBody, SlTourCard, SlTourClose, SlTourContent, SlTourDescription, SlTourFooter, SlTourHeader, SlTourIdFactory, SlTourMedia, SlTourNext, SlTourPrev, SlTourProgress, SlTourSkip, SlTourStep, SlTourTitle, TOUR_DEFAULTS, TOUR_FALLBACK, injectTourDefaults, provideTourDefaults };
|
|
1330
|
+
//# sourceMappingURL=slotted-angular-tour.mjs.map
|