@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,749 @@
|
|
|
1
|
+
import { SlDrawer } from '@slotted/angular/drawer';
|
|
2
|
+
import { injectMessages } from '@slotted/angular/i18n';
|
|
3
|
+
import { actionSheetMessages } from '@slotted/core/i18n';
|
|
4
|
+
import { createControllable } from '@slotted/core/state';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { InjectionToken, inject, Injectable, booleanAttribute, model, input, output, HostAttributeToken, viewChild, signal, computed, effect, untracked, ViewEncapsulation, ChangeDetectionStrategy, Component, ElementRef, Directive, DestroyRef, contentChild } from '@angular/core';
|
|
7
|
+
import { createRovingTabindex } from '@slotted/core/focus';
|
|
8
|
+
import { createTypeahead, isPrintable } from '@slotted/core/typeahead';
|
|
9
|
+
|
|
10
|
+
const FALLBACK = {
|
|
11
|
+
back: 'close',
|
|
12
|
+
closeOnSelect: true,
|
|
13
|
+
escape: 'close',
|
|
14
|
+
modal: true,
|
|
15
|
+
mount: 'active',
|
|
16
|
+
outsidePress: 'close',
|
|
17
|
+
};
|
|
18
|
+
const ACTION_SHEET_DEFAULTS = new InjectionToken('slotted action sheet defaults', { providedIn: 'root', factory: () => FALLBACK });
|
|
19
|
+
/**
|
|
20
|
+
* An application decides once how its sheets behave. A sheet that states any of
|
|
21
|
+
* them itself still wins. The cancel's words come from the language in force
|
|
22
|
+
* (`provideSlotted`).
|
|
23
|
+
*/
|
|
24
|
+
function provideActionSheetDefaults(defaults) {
|
|
25
|
+
return {
|
|
26
|
+
provide: ACTION_SHEET_DEFAULTS,
|
|
27
|
+
useFactory: () => ({ ...FALLBACK, ...defaults }),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function injectActionSheetDefaults() {
|
|
31
|
+
return inject(ACTION_SHEET_DEFAULTS);
|
|
32
|
+
}
|
|
33
|
+
/** Ids that are unique across every sheet in the application. */
|
|
34
|
+
class SlActionSheetIdFactory {
|
|
35
|
+
count = 0;
|
|
36
|
+
next() {
|
|
37
|
+
this.count += 1;
|
|
38
|
+
return `slotted-action-sheet-${this.count}`;
|
|
39
|
+
}
|
|
40
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetIdFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
41
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetIdFactory, providedIn: 'root' });
|
|
42
|
+
}
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetIdFactory, decorators: [{
|
|
44
|
+
type: Injectable,
|
|
45
|
+
args: [{ providedIn: 'root' }]
|
|
46
|
+
}] });
|
|
47
|
+
|
|
48
|
+
const optionalBoolean = (given) => given === undefined ? undefined : booleanAttribute(given);
|
|
49
|
+
/**
|
|
50
|
+
* Where focus enters, from the dialog pattern's first note: the first action
|
|
51
|
+
* that can run, unless it is destructive, in which case the least destructive
|
|
52
|
+
* action — the cancel, or the first action that is not `danger`, or the panel.
|
|
53
|
+
*/
|
|
54
|
+
function entryTarget(panel) {
|
|
55
|
+
const items = [...panel.querySelectorAll("[data-part='list'] [data-part='item']")];
|
|
56
|
+
const enabled = items.filter((item) => item.dataset['disabled'] === undefined && item.dataset['loading'] === undefined);
|
|
57
|
+
const first = enabled[0];
|
|
58
|
+
if (first !== undefined && first.dataset['tone'] !== 'danger')
|
|
59
|
+
return first;
|
|
60
|
+
const cancel = panel.querySelector("[data-part='cancel']");
|
|
61
|
+
if (cancel !== null)
|
|
62
|
+
return cancel;
|
|
63
|
+
return enabled.find((item) => item.dataset['tone'] !== 'danger') ?? panel;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* A `scrimFrom` no extent reaches. A sheet that is not modal keeps the page
|
|
67
|
+
* live, and a scrim over a live page would promise an inertness that is not
|
|
68
|
+
* there, so `drawer` is asked to leave it undimmed at every height.
|
|
69
|
+
*/
|
|
70
|
+
const NEVER_DIMMED = 2;
|
|
71
|
+
/** The family's measure, handed to `drawer`'s sheet. */
|
|
72
|
+
const MEASURE = 'var(--slotted-action-sheet-inline-size, 32rem)';
|
|
73
|
+
/**
|
|
74
|
+
* A short list of actions that rises from the bottom edge, and the explicit
|
|
75
|
+
* way out beneath it.
|
|
76
|
+
*
|
|
77
|
+
* The sheet is `<sl-drawer>` — `side="bottom"`, `size="content"` — which owns
|
|
78
|
+
* the layer, the portal, the scrim, the slide, the width, Escape, the press
|
|
79
|
+
* outside, the way back, the drag that closes it and the virtual keyboard.
|
|
80
|
+
* This family owns what is inside and the state, because only it knows that a
|
|
81
|
+
* close was a choice (`select`) and what was chosen.
|
|
82
|
+
*
|
|
83
|
+
* The parts are the consumer's own elements, projected into the drawer's
|
|
84
|
+
* panel, and dependency injection does not reach from them into this
|
|
85
|
+
* component's view, where the drawer lives. So the parts talk to the sheet,
|
|
86
|
+
* and the sheet hands `drawer` what they said — the trigger, whether a title
|
|
87
|
+
* and a message exist — and reads back the ids the panel is named by.
|
|
88
|
+
*
|
|
89
|
+
* `docs/history/designs/2026-09-25-action-sheet-on-drawer-design.md`.
|
|
90
|
+
*/
|
|
91
|
+
class SlActionSheet {
|
|
92
|
+
open = model(false, /* @ts-ignore */
|
|
93
|
+
...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
94
|
+
modal = input(undefined, { ...(ngDevMode ? { debugName: "modal" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
|
|
95
|
+
mount = input(undefined, /* @ts-ignore */
|
|
96
|
+
...(ngDevMode ? [{ debugName: "mount" }] : /* istanbul ignore next */ []));
|
|
97
|
+
escape = input(undefined, /* @ts-ignore */
|
|
98
|
+
...(ngDevMode ? [{ debugName: "escape" }] : /* istanbul ignore next */ []));
|
|
99
|
+
outsidePress = input(undefined, /* @ts-ignore */
|
|
100
|
+
...(ngDevMode ? [{ debugName: "outsidePress" }] : /* istanbul ignore next */ []));
|
|
101
|
+
back = input(undefined, /* @ts-ignore */
|
|
102
|
+
...(ngDevMode ? [{ debugName: "back" }] : /* istanbul ignore next */ []));
|
|
103
|
+
closeOnSelect = input(undefined, { ...(ngDevMode ? { debugName: "closeOnSelect" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
|
|
104
|
+
/** Words laid over the catalog of the language in force, key by key: the cancel's (`cancel`). */
|
|
105
|
+
messages = input(undefined, /* @ts-ignore */
|
|
106
|
+
...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
|
|
107
|
+
container = input(undefined, /* @ts-ignore */
|
|
108
|
+
...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
|
|
109
|
+
initialFocus = input(undefined, /* @ts-ignore */
|
|
110
|
+
...(ngDevMode ? [{ debugName: "initialFocus" }] : /* istanbul ignore next */ []));
|
|
111
|
+
finalFocus = input(undefined, /* @ts-ignore */
|
|
112
|
+
...(ngDevMode ? [{ debugName: "finalFocus" }] : /* istanbul ignore next */ []));
|
|
113
|
+
openChangeRequest = output();
|
|
114
|
+
closed = output();
|
|
115
|
+
defaults = injectActionSheetDefaults();
|
|
116
|
+
/** The family's words in the language in force, with this sheet's `messages` laid over them. */
|
|
117
|
+
t = injectMessages(actionSheetMessages, this.messages);
|
|
118
|
+
/**
|
|
119
|
+
* A consumer's own `aria-label` on `<sl-action-sheet>`, read before the host
|
|
120
|
+
* bindings are written and handed to the panel, which is the element the
|
|
121
|
+
* role is on.
|
|
122
|
+
*/
|
|
123
|
+
writtenLabel = inject(new HostAttributeToken('aria-label'), {
|
|
124
|
+
optional: true,
|
|
125
|
+
});
|
|
126
|
+
drawer = viewChild('drawer', /* @ts-ignore */
|
|
127
|
+
...(ngDevMode ? [{ debugName: "drawer" }] : /* istanbul ignore next */ []));
|
|
128
|
+
neverDimmed = NEVER_DIMMED;
|
|
129
|
+
/** What the parts say exists; the sheet hands it to `drawer`. */
|
|
130
|
+
hasTitle = signal(false, /* @ts-ignore */
|
|
131
|
+
...(ngDevMode ? [{ debugName: "hasTitle" }] : /* istanbul ignore next */ []));
|
|
132
|
+
hasMessage = signal(false, /* @ts-ignore */
|
|
133
|
+
...(ngDevMode ? [{ debugName: "hasMessage" }] : /* istanbul ignore next */ []));
|
|
134
|
+
triggerNode = signal(null, /* @ts-ignore */
|
|
135
|
+
...(ngDevMode ? [{ debugName: "triggerNode" }] : /* istanbul ignore next */ []));
|
|
136
|
+
/** The ids `drawer`'s panel is named and described by, once it exists. */
|
|
137
|
+
titleId = computed(() => this.drawer()?.titleId ?? null, /* @ts-ignore */
|
|
138
|
+
...(ngDevMode ? [{ debugName: "titleId" }] : /* istanbul ignore next */ []));
|
|
139
|
+
messageId = computed(() => this.drawer()?.descriptionId ?? null, /* @ts-ignore */
|
|
140
|
+
...(ngDevMode ? [{ debugName: "messageId" }] : /* istanbul ignore next */ []));
|
|
141
|
+
panelId = computed(() => this.drawer()?.panelId ?? null, /* @ts-ignore */
|
|
142
|
+
...(ngDevMode ? [{ debugName: "panelId" }] : /* istanbul ignore next */ []));
|
|
143
|
+
triggerId = computed(() => this.drawer()?.triggerId ?? null, /* @ts-ignore */
|
|
144
|
+
...(ngDevMode ? [{ debugName: "triggerId" }] : /* istanbul ignore next */ []));
|
|
145
|
+
mounted = computed(() => this.drawer()?.mounted() ?? false, /* @ts-ignore */
|
|
146
|
+
...(ngDevMode ? [{ debugName: "mounted" }] : /* istanbul ignore next */ []));
|
|
147
|
+
result = undefined;
|
|
148
|
+
resolvedModal = computed(() => this.modal() ?? this.defaults.modal, /* @ts-ignore */
|
|
149
|
+
...(ngDevMode ? [{ debugName: "resolvedModal" }] : /* istanbul ignore next */ []));
|
|
150
|
+
resolvedMount = computed(() => this.mount() ?? this.defaults.mount, /* @ts-ignore */
|
|
151
|
+
...(ngDevMode ? [{ debugName: "resolvedMount" }] : /* istanbul ignore next */ []));
|
|
152
|
+
resolvedCloseOnSelect = computed(() => this.closeOnSelect() ?? this.defaults.closeOnSelect, /* @ts-ignore */
|
|
153
|
+
...(ngDevMode ? [{ debugName: "resolvedCloseOnSelect" }] : /* istanbul ignore next */ []));
|
|
154
|
+
resolvedEscape = computed(() => this.escape() ?? this.defaults.escape, /* @ts-ignore */
|
|
155
|
+
...(ngDevMode ? [{ debugName: "resolvedEscape" }] : /* istanbul ignore next */ []));
|
|
156
|
+
resolvedBack = computed(() => this.back() ?? this.defaults.back, /* @ts-ignore */
|
|
157
|
+
...(ngDevMode ? [{ debugName: "resolvedBack" }] : /* istanbul ignore next */ []));
|
|
158
|
+
resolvedOutsidePress = computed(() => this.outsidePress() ?? this.defaults.outsidePress, /* @ts-ignore */
|
|
159
|
+
...(ngDevMode ? [{ debugName: "resolvedOutsidePress" }] : /* istanbul ignore next */ []));
|
|
160
|
+
/**
|
|
161
|
+
* Where focus enters, decided when the sheet has opened and its actions
|
|
162
|
+
* exist: the consumer's element, or the least destructive action.
|
|
163
|
+
*/
|
|
164
|
+
entry = computed(() => {
|
|
165
|
+
const wanted = this.initialFocus();
|
|
166
|
+
if (wanted === false)
|
|
167
|
+
return false;
|
|
168
|
+
return () => {
|
|
169
|
+
if (wanted !== undefined)
|
|
170
|
+
return wanted;
|
|
171
|
+
const panel = this.drawer()?.panel ?? null;
|
|
172
|
+
return panel === null ? null : entryTarget(panel);
|
|
173
|
+
};
|
|
174
|
+
}, /* @ts-ignore */
|
|
175
|
+
...(ngDevMode ? [{ debugName: "entry" }] : /* istanbul ignore next */ []));
|
|
176
|
+
constructor() {
|
|
177
|
+
/* What the parts said, handed to the drawer that renders the panel. */
|
|
178
|
+
effect(() => {
|
|
179
|
+
const drawer = this.drawer();
|
|
180
|
+
if (drawer === undefined)
|
|
181
|
+
return;
|
|
182
|
+
const title = this.hasTitle();
|
|
183
|
+
const message = this.hasMessage();
|
|
184
|
+
const trigger = this.triggerNode();
|
|
185
|
+
untracked(() => {
|
|
186
|
+
drawer.hasTitle.set(title);
|
|
187
|
+
drawer.hasDescription.set(message);
|
|
188
|
+
drawer.triggerNode.set(trigger);
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
/**
|
|
192
|
+
* What only this family knows about the panel: its measure, handed to
|
|
193
|
+
* `drawer`'s sheet token; that it takes focus from script when the pointer
|
|
194
|
+
* leaves an item; and a label the consumer wrote on the host.
|
|
195
|
+
*/
|
|
196
|
+
effect(() => {
|
|
197
|
+
/* `panel` reads the drawer's view query, so this runs again whenever the
|
|
198
|
+
layer — and the panel with it — is built. */
|
|
199
|
+
const panel = this.drawer()?.panel ?? null;
|
|
200
|
+
if (panel === null)
|
|
201
|
+
return;
|
|
202
|
+
panel.style.setProperty('--slotted-drawer-sheet-inline-size', MEASURE);
|
|
203
|
+
panel.tabIndex = -1;
|
|
204
|
+
if (this.writtenLabel !== null)
|
|
205
|
+
panel.setAttribute('aria-label', this.writtenLabel);
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* `drawer`'s own request — the trigger, Escape, the press outside, the way
|
|
210
|
+
* back, the drag — asks this family first, and a refusal here refuses it
|
|
211
|
+
* there, so the consumer's `cancel()` holds whichever family asked.
|
|
212
|
+
*/
|
|
213
|
+
fromDrawer(request) {
|
|
214
|
+
if (!this.request(request.value, request.reason, undefined, request.source)) {
|
|
215
|
+
request.cancel();
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
onClosed() {
|
|
219
|
+
this.closed.emit(this.result);
|
|
220
|
+
this.result = undefined;
|
|
221
|
+
}
|
|
222
|
+
/** Asks to move, and answers whether the move stands. */
|
|
223
|
+
request(next, reason, result, source) {
|
|
224
|
+
if (next === this.open())
|
|
225
|
+
return true;
|
|
226
|
+
let cancelled = false;
|
|
227
|
+
const state = createControllable({
|
|
228
|
+
initial: this.open(),
|
|
229
|
+
onRequest: (raw) => {
|
|
230
|
+
this.openChangeRequest.emit({
|
|
231
|
+
cancel: () => raw.cancel(),
|
|
232
|
+
get cancelled() {
|
|
233
|
+
return raw.cancelled;
|
|
234
|
+
},
|
|
235
|
+
previous: raw.previous,
|
|
236
|
+
reason,
|
|
237
|
+
result,
|
|
238
|
+
source: raw.source,
|
|
239
|
+
value: raw.value,
|
|
240
|
+
});
|
|
241
|
+
cancelled = raw.cancelled;
|
|
242
|
+
},
|
|
243
|
+
});
|
|
244
|
+
if (!state.request(next, reason, source) || cancelled)
|
|
245
|
+
return false;
|
|
246
|
+
if (!next)
|
|
247
|
+
this.result = result;
|
|
248
|
+
this.open.set(next);
|
|
249
|
+
return true;
|
|
250
|
+
}
|
|
251
|
+
show() {
|
|
252
|
+
this.request(true, 'programmatic', undefined, undefined);
|
|
253
|
+
}
|
|
254
|
+
close() {
|
|
255
|
+
this.request(false, 'programmatic', undefined, undefined);
|
|
256
|
+
}
|
|
257
|
+
focus() {
|
|
258
|
+
const panel = this.drawer()?.panel ?? null;
|
|
259
|
+
const stop = panel?.querySelector("[data-part='item'][tabindex='0']");
|
|
260
|
+
(stop ?? panel)?.focus();
|
|
261
|
+
}
|
|
262
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheet, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
263
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", type: SlActionSheet, isStandalone: true, selector: "sl-action-sheet", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, mount: { classPropertyName: "mount", publicName: "mount", isSignal: true, isRequired: false, transformFunction: null }, escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, outsidePress: { classPropertyName: "outsidePress", publicName: "outsidePress", isSignal: true, isRequired: false, transformFunction: null }, back: { classPropertyName: "back", publicName: "back", isSignal: true, isRequired: false, transformFunction: null }, closeOnSelect: { classPropertyName: "closeOnSelect", publicName: "closeOnSelect", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, container: { classPropertyName: "container", publicName: "container", isSignal: true, isRequired: false, transformFunction: null }, initialFocus: { classPropertyName: "initialFocus", publicName: "initialFocus", isSignal: true, isRequired: false, transformFunction: null }, finalFocus: { classPropertyName: "finalFocus", publicName: "finalFocus", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", openChangeRequest: "openChangeRequest", closed: "closed" }, host: { properties: { "style.display": "'contents'" } }, viewQueries: [{ propertyName: "drawer", first: true, predicate: ["drawer"], descendants: true, isSignal: true }], exportAs: ["slActionSheet"], ngImport: i0, template: `
|
|
264
|
+
<sl-drawer
|
|
265
|
+
#drawer
|
|
266
|
+
mode="overlay"
|
|
267
|
+
side="bottom"
|
|
268
|
+
size="content"
|
|
269
|
+
drag="panel"
|
|
270
|
+
[open]="open()"
|
|
271
|
+
[modal]="resolvedModal()"
|
|
272
|
+
[scrimFrom]="resolvedModal() ? 0 : neverDimmed"
|
|
273
|
+
[mount]="resolvedMount()"
|
|
274
|
+
[escape]="resolvedEscape()"
|
|
275
|
+
[outsidePress]="resolvedOutsidePress()"
|
|
276
|
+
[back]="resolvedBack()"
|
|
277
|
+
[container]="container()"
|
|
278
|
+
[initialFocus]="entry()"
|
|
279
|
+
[finalFocus]="finalFocus()"
|
|
280
|
+
(openChangeRequest)="fromDrawer($event)"
|
|
281
|
+
(closed)="onClosed()"
|
|
282
|
+
>
|
|
283
|
+
<div data-ui="action-sheet" data-part="root"><ng-content /></div>
|
|
284
|
+
</sl-drawer>
|
|
285
|
+
`, isInline: true, styles: ["@layer slotted.components{[data-ui=action-sheet]{--_inset: var(--slotted-control-padding-inline-lg, 16px);--_gap: var(--slotted-control-gap-lg, 8px);--_label-size: var(--slotted-font-size-md, .875rem);--_icon-size: calc(var(--_label-size) * 1.125);--_item-height: var(--slotted-control-height-lg, 38px);--_rule-size: var(--slotted-border-width-thin, 1px);--_rule: var(--slotted-action-sheet-rule-color, var(--slotted-border-subtle, ButtonBorder));--_muted: var(--slotted-text-muted, GrayText);--_highlight: var( --slotted-action-sheet-highlight, var(--slotted-tone-secondary-subtle-hover, ButtonFace) );--_highlight-active: var( --slotted-action-sheet-highlight-active, var(--slotted-tone-secondary-subtle-active, ButtonFace) );--_accent: var(--slotted-text, CanvasText);--_list-inset: var(--slotted-space-2, .25rem);grid-row:1 / -1;justify-self:center;inline-size:min(100%,var(--slotted-action-sheet-inline-size, 32rem));box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;min-block-size:0;padding-inline:max(env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));color:var(--slotted-text, CanvasText);font-family:var(--slotted-control-font-family, var(--slotted-font-family-sans))}@media(pointer:coarse){[data-ui=action-sheet]{--_label-size: var(--slotted-font-size-lg, 1rem)}}[data-ui=action-sheet]>[data-part=header]{border-block-end:var(--_rule-size) solid var(--_rule);display:grid;padding-block:var(--slotted-space-6, 1rem) var(--slotted-space-5, .75rem);padding-inline:var(--_inset);row-gap:var(--slotted-space-1, .125rem)}[data-ui=action-sheet] [data-part=title]{color:var(--slotted-text, CanvasText);font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--slotted-font-size-md, .875rem);font-weight:var(--slotted-font-weight-semibold, 600);line-height:var(--slotted-line-height-md, 1.5);margin:0;overflow-wrap:anywhere}[data-ui=action-sheet] [data-part=message]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);line-height:var(--slotted-line-height-sm, 1.45);margin:0;overflow-wrap:anywhere}[data-ui=action-sheet]>[data-part=list]{--_mark: 0px;--_column-gap: 0px;align-content:start;display:grid;grid-auto-rows:max-content;grid-row:2;grid-template-columns:minmax(0,1fr);min-block-size:0;overflow-y:auto;overscroll-behavior:contain;padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_list-inset)}[data-ui=action-sheet]>[data-part=list]:has([data-part=icon]){--_mark: var(--_icon-size);--_column-gap: var(--_gap)}[data-ui=action-sheet]:not(:has(>[data-part=footer]))>[data-part=list]{padding-block-end:calc(var(--slotted-space-2, .25rem) + env(safe-area-inset-bottom,0px))}[data-ui=action-sheet] [data-part=group]{display:grid;grid-auto-rows:max-content;grid-template-columns:minmax(0,1fr)}[data-ui=action-sheet] [data-part=group-label]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);font-weight:var(--slotted-font-weight-semibold, 600);line-height:var(--slotted-line-height-sm, 1.45);padding-block:var(--slotted-space-4, .5rem) var(--slotted-space-2, .25rem);padding-inline:calc(var(--_inset) - var(--_list-inset))}[data-ui=action-sheet] [data-part=separator]{background-color:var(--_rule);block-size:var(--_rule-size);border:0;margin-block:var(--slotted-space-2, .25rem);margin-inline:0}[data-ui=action-sheet] [data-part=item]{align-content:center;appearance:none;background:transparent;border:0;box-sizing:border-box;color:var(--_accent);column-gap:var(--_column-gap);cursor:pointer;display:grid;font:inherit;font-size:var(--_label-size);grid-template-columns:var(--_mark) minmax(0,1fr);line-height:var(--slotted-line-height-md, 1.5);margin:0;min-block-size:var(--_item-height);padding-block:var(--slotted-space-4, .5rem);padding-inline:calc(var(--_inset) - var(--_list-inset));border-radius:var(--slotted-control-radius, 6px);row-gap:var(--slotted-space-1, .125rem);text-align:start;text-decoration:none;-webkit-tap-highlight-color:transparent;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=action-sheet] [data-part=item]:focus{background-color:var(--_highlight);outline:none}@media(hover:hover){[data-ui=action-sheet] [data-part=item]:hover:not([data-disabled]):not([data-loading]){background-color:var(--_highlight)}}[data-ui=action-sheet] [data-part=item]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui=action-sheet] [data-part=item]:active:not([data-disabled]):not([data-loading]){background-color:var(--_highlight-active)}[data-ui=action-sheet] [data-part=item][data-disabled]{color:var(--slotted-disabled-foreground, GrayText);cursor:not-allowed}[data-ui=action-sheet] [data-part=item][data-disabled]:focus{background-color:var(--slotted-disabled-background, ButtonFace)}[data-ui=action-sheet] [data-part=item][data-loading]{cursor:progress}[data-ui=action-sheet] [data-part=icon]{--slotted-icon-size: var(--_icon-size);--slotted-spinner-size: var(--_icon-size);align-items:center;block-size:1lh;display:flex;grid-column:1;grid-row:1;inline-size:var(--_icon-size);justify-content:center}[data-ui=action-sheet] [data-part=icon]>*{flex:none;font-size:var(--_icon-size)}[data-ui=action-sheet] [data-part=label]{grid-column:2;grid-row:1;min-inline-size:0;overflow-wrap:anywhere}[data-ui=action-sheet] [data-part=description]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);grid-column:2;grid-row:2;line-height:var(--slotted-line-height-sm, 1.45);min-inline-size:0;overflow-wrap:anywhere}[data-ui=action-sheet] [data-part=item][data-disabled]>[data-part=description]{color:inherit}[data-ui=action-sheet] [data-part=item][data-tone=accent]{--_accent: var(--slotted-tone-accent-text);--_highlight: var(--slotted-tone-accent-surface);--_highlight-active: var(--slotted-tone-accent-subtle-active)}[data-ui=action-sheet] [data-part=item][data-tone=secondary]{--_accent: var(--slotted-tone-secondary-text);--_highlight: var(--slotted-tone-secondary-surface);--_highlight-active: var(--slotted-tone-secondary-subtle-active)}[data-ui=action-sheet] [data-part=item][data-tone=success]{--_accent: var(--slotted-tone-success-text);--_highlight: var(--slotted-tone-success-surface);--_highlight-active: var(--slotted-tone-success-subtle-active)}[data-ui=action-sheet] [data-part=item][data-tone=warning]{--_accent: var(--slotted-tone-warning-text);--_highlight: var(--slotted-tone-warning-surface);--_highlight-active: var(--slotted-tone-warning-subtle-active)}[data-ui=action-sheet] [data-part=item][data-tone=danger]{--_accent: var(--slotted-tone-danger-text);--_highlight: var(--slotted-tone-danger-surface);--_highlight-active: var(--slotted-tone-danger-subtle-active)}[data-ui=action-sheet]>[data-part=footer]{background:var(--slotted-action-sheet-footer-surface, var(--slotted-surface-sunken, Canvas));border-block-start:var(--_rule-size) solid var(--_rule);display:grid;grid-row:3;padding-block:var(--slotted-space-4, .5rem) calc(var(--slotted-space-4, .5rem) + env(safe-area-inset-bottom,0px));padding-inline:var(--_inset)}[data-ui=action-sheet] [data-part=cancel]{appearance:none;background:var(--slotted-control-surface, ButtonFace);border:var(--slotted-control-border-width, 1px) solid var(--slotted-control-border-color, ButtonBorder);border-radius:var(--slotted-control-radius, 6px);box-shadow:var(--slotted-control-shadow);box-sizing:border-box;color:var(--slotted-text, CanvasText);cursor:pointer;font:inherit;font-size:var(--_label-size);font-weight:var(--slotted-font-weight-semibold, 600);inline-size:100%;line-height:var(--slotted-line-height-md, 1.5);margin:0;min-block-size:var(--_item-height);padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_inset);-webkit-tap-highlight-color:transparent;transition:background-color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard))}@media(hover:hover){[data-ui=action-sheet] [data-part=cancel]:hover:not(:disabled){background:var(--slotted-tone-secondary-subtle-hover, ButtonFace)}}[data-ui=action-sheet] [data-part=cancel]:active:not(:disabled){background:var(--slotted-tone-secondary-subtle-active, ButtonFace);box-shadow:none;translate:0 var(--slotted-border-width-thin, 1px)}[data-ui=action-sheet] [data-part=cancel]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@media(forced-colors:active){[data-ui=action-sheet] [data-part=item]:focus{background-color:Highlight;color:HighlightText;forced-color-adjust:none}[data-ui=action-sheet] [data-part=item][data-disabled]:focus{background-color:Highlight;color:GrayText}}}\n", "@layer slotted.components{[data-ui=spinner]{--_size: var(--slotted-spinner-size, var(--slotted-control-icon-size-md, 16px));--_ring: calc(var(--_size) * 5 / 6);--_stroke: max(var(--slotted-border-width-medium, 1.5px), calc(var(--_size) / 12));--_radius: calc((var(--_ring) - var(--_stroke)) / 2);--_track: color-mix(in oklab, currentColor 20%, transparent);--_start: calc(var(--_turn) + var(--_tail));--_end: calc(var(--_turn) + var(--_head));--_cap: calc(var(--_stroke) / 2);animation:slotted-spinner-turn var(--slotted-duration-loop-slow) linear infinite,slotted-spinner-head var(--slotted-duration-loop-slow) linear infinite,slotted-spinner-tail var(--slotted-duration-loop-slow) linear infinite;background-image:radial-gradient(circle at calc(50% + var(--_radius) * sin(var(--_end))) calc(50% - var(--_radius) * cos(var(--_end))),currentColor calc(var(--_cap) - .5px),transparent calc(var(--_cap) + .5px)),radial-gradient(circle at calc(50% + var(--_radius) * sin(var(--_start))) calc(50% - var(--_radius) * cos(var(--_start))),currentColor calc(var(--_cap) - .5px),transparent calc(var(--_cap) + .5px)),conic-gradient(from var(--_start),currentColor 0deg,currentColor calc(var(--_head) - var(--_tail)),transparent calc(var(--_head) - var(--_tail))),conic-gradient(var(--_track) 0 100%);background-origin:content-box;background-clip:content-box;block-size:var(--_size);box-sizing:border-box;display:inline-block;flex:none;inline-size:var(--_size);-webkit-mask-image:radial-gradient(circle,transparent calc(var(--_ring) / 2 - var(--_stroke) - .5px),#000 calc(var(--_ring) / 2 - var(--_stroke) + .5px),#000 calc(var(--_ring) / 2 - .5px),transparent calc(var(--_ring) / 2 + .5px));mask-image:radial-gradient(circle,transparent calc(var(--_ring) / 2 - var(--_stroke) - .5px),#000 calc(var(--_ring) / 2 - var(--_stroke) + .5px),#000 calc(var(--_ring) / 2 - .5px),transparent calc(var(--_ring) / 2 + .5px));opacity:1;padding:calc((var(--_size) - var(--_ring)) / 2);scale:1;transition:opacity var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),scale var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);vertical-align:middle}@starting-style{[data-ui=spinner]{opacity:0;scale:.6}}@media(prefers-reduced-motion:reduce){[data-ui=spinner]{--_head: 270deg;animation:none}}@media(forced-colors:active){[data-ui=spinner]{forced-color-adjust:none}}}@property --_turn{inherits: false; initial-value: 0deg; syntax: \"<angle>\";}@property --_head{inherits: false; initial-value: 20deg; syntax: \"<angle>\";}@property --_tail{inherits: false; initial-value: 0deg; syntax: \"<angle>\";}@keyframes slotted-spinner-turn{to{--_turn: 460deg}}@keyframes slotted-spinner-head{0%{--_head: 20deg;animation-timing-function:ease-in-out}50%,to{--_head: 280deg}}@keyframes slotted-spinner-tail{0%,50%{--_tail: 0deg;animation-timing-function:ease-in-out}to{--_tail: 260deg}}\n"], dependencies: [{ kind: "component", type: SlDrawer, selector: "sl-drawer", inputs: ["open", "extent", "mode", "side", "size", "mount", "escape", "outsidePress", "back", "modal", "loading", "messages", "drag", "scrimFrom", "minExtent", "maxExtent", "snapPoints", "container", "initialFocus", "finalFocus"], outputs: ["openChange", "extentChange", "openChangeRequest", "extentChangeRequest", "closed"], exportAs: ["slDrawer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
286
|
+
}
|
|
287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheet, decorators: [{
|
|
288
|
+
type: Component,
|
|
289
|
+
args: [{ selector: 'sl-action-sheet', standalone: true, exportAs: 'slActionSheet', imports: [SlDrawer], template: `
|
|
290
|
+
<sl-drawer
|
|
291
|
+
#drawer
|
|
292
|
+
mode="overlay"
|
|
293
|
+
side="bottom"
|
|
294
|
+
size="content"
|
|
295
|
+
drag="panel"
|
|
296
|
+
[open]="open()"
|
|
297
|
+
[modal]="resolvedModal()"
|
|
298
|
+
[scrimFrom]="resolvedModal() ? 0 : neverDimmed"
|
|
299
|
+
[mount]="resolvedMount()"
|
|
300
|
+
[escape]="resolvedEscape()"
|
|
301
|
+
[outsidePress]="resolvedOutsidePress()"
|
|
302
|
+
[back]="resolvedBack()"
|
|
303
|
+
[container]="container()"
|
|
304
|
+
[initialFocus]="entry()"
|
|
305
|
+
[finalFocus]="finalFocus()"
|
|
306
|
+
(openChangeRequest)="fromDrawer($event)"
|
|
307
|
+
(closed)="onClosed()"
|
|
308
|
+
>
|
|
309
|
+
<div data-ui="action-sheet" data-part="root"><ng-content /></div>
|
|
310
|
+
</sl-drawer>
|
|
311
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { '[style.display]': "'contents'" }, styles: ["@layer slotted.components{[data-ui=action-sheet]{--_inset: var(--slotted-control-padding-inline-lg, 16px);--_gap: var(--slotted-control-gap-lg, 8px);--_label-size: var(--slotted-font-size-md, .875rem);--_icon-size: calc(var(--_label-size) * 1.125);--_item-height: var(--slotted-control-height-lg, 38px);--_rule-size: var(--slotted-border-width-thin, 1px);--_rule: var(--slotted-action-sheet-rule-color, var(--slotted-border-subtle, ButtonBorder));--_muted: var(--slotted-text-muted, GrayText);--_highlight: var( --slotted-action-sheet-highlight, var(--slotted-tone-secondary-subtle-hover, ButtonFace) );--_highlight-active: var( --slotted-action-sheet-highlight-active, var(--slotted-tone-secondary-subtle-active, ButtonFace) );--_accent: var(--slotted-text, CanvasText);--_list-inset: var(--slotted-space-2, .25rem);grid-row:1 / -1;justify-self:center;inline-size:min(100%,var(--slotted-action-sheet-inline-size, 32rem));box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;min-block-size:0;padding-inline:max(env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));color:var(--slotted-text, CanvasText);font-family:var(--slotted-control-font-family, var(--slotted-font-family-sans))}@media(pointer:coarse){[data-ui=action-sheet]{--_label-size: var(--slotted-font-size-lg, 1rem)}}[data-ui=action-sheet]>[data-part=header]{border-block-end:var(--_rule-size) solid var(--_rule);display:grid;padding-block:var(--slotted-space-6, 1rem) var(--slotted-space-5, .75rem);padding-inline:var(--_inset);row-gap:var(--slotted-space-1, .125rem)}[data-ui=action-sheet] [data-part=title]{color:var(--slotted-text, CanvasText);font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--slotted-font-size-md, .875rem);font-weight:var(--slotted-font-weight-semibold, 600);line-height:var(--slotted-line-height-md, 1.5);margin:0;overflow-wrap:anywhere}[data-ui=action-sheet] [data-part=message]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);line-height:var(--slotted-line-height-sm, 1.45);margin:0;overflow-wrap:anywhere}[data-ui=action-sheet]>[data-part=list]{--_mark: 0px;--_column-gap: 0px;align-content:start;display:grid;grid-auto-rows:max-content;grid-row:2;grid-template-columns:minmax(0,1fr);min-block-size:0;overflow-y:auto;overscroll-behavior:contain;padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_list-inset)}[data-ui=action-sheet]>[data-part=list]:has([data-part=icon]){--_mark: var(--_icon-size);--_column-gap: var(--_gap)}[data-ui=action-sheet]:not(:has(>[data-part=footer]))>[data-part=list]{padding-block-end:calc(var(--slotted-space-2, .25rem) + env(safe-area-inset-bottom,0px))}[data-ui=action-sheet] [data-part=group]{display:grid;grid-auto-rows:max-content;grid-template-columns:minmax(0,1fr)}[data-ui=action-sheet] [data-part=group-label]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);font-weight:var(--slotted-font-weight-semibold, 600);line-height:var(--slotted-line-height-sm, 1.45);padding-block:var(--slotted-space-4, .5rem) var(--slotted-space-2, .25rem);padding-inline:calc(var(--_inset) - var(--_list-inset))}[data-ui=action-sheet] [data-part=separator]{background-color:var(--_rule);block-size:var(--_rule-size);border:0;margin-block:var(--slotted-space-2, .25rem);margin-inline:0}[data-ui=action-sheet] [data-part=item]{align-content:center;appearance:none;background:transparent;border:0;box-sizing:border-box;color:var(--_accent);column-gap:var(--_column-gap);cursor:pointer;display:grid;font:inherit;font-size:var(--_label-size);grid-template-columns:var(--_mark) minmax(0,1fr);line-height:var(--slotted-line-height-md, 1.5);margin:0;min-block-size:var(--_item-height);padding-block:var(--slotted-space-4, .5rem);padding-inline:calc(var(--_inset) - var(--_list-inset));border-radius:var(--slotted-control-radius, 6px);row-gap:var(--slotted-space-1, .125rem);text-align:start;text-decoration:none;-webkit-tap-highlight-color:transparent;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=action-sheet] [data-part=item]:focus{background-color:var(--_highlight);outline:none}@media(hover:hover){[data-ui=action-sheet] [data-part=item]:hover:not([data-disabled]):not([data-loading]){background-color:var(--_highlight)}}[data-ui=action-sheet] [data-part=item]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui=action-sheet] [data-part=item]:active:not([data-disabled]):not([data-loading]){background-color:var(--_highlight-active)}[data-ui=action-sheet] [data-part=item][data-disabled]{color:var(--slotted-disabled-foreground, GrayText);cursor:not-allowed}[data-ui=action-sheet] [data-part=item][data-disabled]:focus{background-color:var(--slotted-disabled-background, ButtonFace)}[data-ui=action-sheet] [data-part=item][data-loading]{cursor:progress}[data-ui=action-sheet] [data-part=icon]{--slotted-icon-size: var(--_icon-size);--slotted-spinner-size: var(--_icon-size);align-items:center;block-size:1lh;display:flex;grid-column:1;grid-row:1;inline-size:var(--_icon-size);justify-content:center}[data-ui=action-sheet] [data-part=icon]>*{flex:none;font-size:var(--_icon-size)}[data-ui=action-sheet] [data-part=label]{grid-column:2;grid-row:1;min-inline-size:0;overflow-wrap:anywhere}[data-ui=action-sheet] [data-part=description]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);grid-column:2;grid-row:2;line-height:var(--slotted-line-height-sm, 1.45);min-inline-size:0;overflow-wrap:anywhere}[data-ui=action-sheet] [data-part=item][data-disabled]>[data-part=description]{color:inherit}[data-ui=action-sheet] [data-part=item][data-tone=accent]{--_accent: var(--slotted-tone-accent-text);--_highlight: var(--slotted-tone-accent-surface);--_highlight-active: var(--slotted-tone-accent-subtle-active)}[data-ui=action-sheet] [data-part=item][data-tone=secondary]{--_accent: var(--slotted-tone-secondary-text);--_highlight: var(--slotted-tone-secondary-surface);--_highlight-active: var(--slotted-tone-secondary-subtle-active)}[data-ui=action-sheet] [data-part=item][data-tone=success]{--_accent: var(--slotted-tone-success-text);--_highlight: var(--slotted-tone-success-surface);--_highlight-active: var(--slotted-tone-success-subtle-active)}[data-ui=action-sheet] [data-part=item][data-tone=warning]{--_accent: var(--slotted-tone-warning-text);--_highlight: var(--slotted-tone-warning-surface);--_highlight-active: var(--slotted-tone-warning-subtle-active)}[data-ui=action-sheet] [data-part=item][data-tone=danger]{--_accent: var(--slotted-tone-danger-text);--_highlight: var(--slotted-tone-danger-surface);--_highlight-active: var(--slotted-tone-danger-subtle-active)}[data-ui=action-sheet]>[data-part=footer]{background:var(--slotted-action-sheet-footer-surface, var(--slotted-surface-sunken, Canvas));border-block-start:var(--_rule-size) solid var(--_rule);display:grid;grid-row:3;padding-block:var(--slotted-space-4, .5rem) calc(var(--slotted-space-4, .5rem) + env(safe-area-inset-bottom,0px));padding-inline:var(--_inset)}[data-ui=action-sheet] [data-part=cancel]{appearance:none;background:var(--slotted-control-surface, ButtonFace);border:var(--slotted-control-border-width, 1px) solid var(--slotted-control-border-color, ButtonBorder);border-radius:var(--slotted-control-radius, 6px);box-shadow:var(--slotted-control-shadow);box-sizing:border-box;color:var(--slotted-text, CanvasText);cursor:pointer;font:inherit;font-size:var(--_label-size);font-weight:var(--slotted-font-weight-semibold, 600);inline-size:100%;line-height:var(--slotted-line-height-md, 1.5);margin:0;min-block-size:var(--_item-height);padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_inset);-webkit-tap-highlight-color:transparent;transition:background-color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard))}@media(hover:hover){[data-ui=action-sheet] [data-part=cancel]:hover:not(:disabled){background:var(--slotted-tone-secondary-subtle-hover, ButtonFace)}}[data-ui=action-sheet] [data-part=cancel]:active:not(:disabled){background:var(--slotted-tone-secondary-subtle-active, ButtonFace);box-shadow:none;translate:0 var(--slotted-border-width-thin, 1px)}[data-ui=action-sheet] [data-part=cancel]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@media(forced-colors:active){[data-ui=action-sheet] [data-part=item]:focus{background-color:Highlight;color:HighlightText;forced-color-adjust:none}[data-ui=action-sheet] [data-part=item][data-disabled]:focus{background-color:Highlight;color:GrayText}}}\n", "@layer slotted.components{[data-ui=spinner]{--_size: var(--slotted-spinner-size, var(--slotted-control-icon-size-md, 16px));--_ring: calc(var(--_size) * 5 / 6);--_stroke: max(var(--slotted-border-width-medium, 1.5px), calc(var(--_size) / 12));--_radius: calc((var(--_ring) - var(--_stroke)) / 2);--_track: color-mix(in oklab, currentColor 20%, transparent);--_start: calc(var(--_turn) + var(--_tail));--_end: calc(var(--_turn) + var(--_head));--_cap: calc(var(--_stroke) / 2);animation:slotted-spinner-turn var(--slotted-duration-loop-slow) linear infinite,slotted-spinner-head var(--slotted-duration-loop-slow) linear infinite,slotted-spinner-tail var(--slotted-duration-loop-slow) linear infinite;background-image:radial-gradient(circle at calc(50% + var(--_radius) * sin(var(--_end))) calc(50% - var(--_radius) * cos(var(--_end))),currentColor calc(var(--_cap) - .5px),transparent calc(var(--_cap) + .5px)),radial-gradient(circle at calc(50% + var(--_radius) * sin(var(--_start))) calc(50% - var(--_radius) * cos(var(--_start))),currentColor calc(var(--_cap) - .5px),transparent calc(var(--_cap) + .5px)),conic-gradient(from var(--_start),currentColor 0deg,currentColor calc(var(--_head) - var(--_tail)),transparent calc(var(--_head) - var(--_tail))),conic-gradient(var(--_track) 0 100%);background-origin:content-box;background-clip:content-box;block-size:var(--_size);box-sizing:border-box;display:inline-block;flex:none;inline-size:var(--_size);-webkit-mask-image:radial-gradient(circle,transparent calc(var(--_ring) / 2 - var(--_stroke) - .5px),#000 calc(var(--_ring) / 2 - var(--_stroke) + .5px),#000 calc(var(--_ring) / 2 - .5px),transparent calc(var(--_ring) / 2 + .5px));mask-image:radial-gradient(circle,transparent calc(var(--_ring) / 2 - var(--_stroke) - .5px),#000 calc(var(--_ring) / 2 - var(--_stroke) + .5px),#000 calc(var(--_ring) / 2 - .5px),transparent calc(var(--_ring) / 2 + .5px));opacity:1;padding:calc((var(--_size) - var(--_ring)) / 2);scale:1;transition:opacity var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),scale var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);vertical-align:middle}@starting-style{[data-ui=spinner]{opacity:0;scale:.6}}@media(prefers-reduced-motion:reduce){[data-ui=spinner]{--_head: 270deg;animation:none}}@media(forced-colors:active){[data-ui=spinner]{forced-color-adjust:none}}}@property --_turn{inherits: false; initial-value: 0deg; syntax: \"<angle>\";}@property --_head{inherits: false; initial-value: 20deg; syntax: \"<angle>\";}@property --_tail{inherits: false; initial-value: 0deg; syntax: \"<angle>\";}@keyframes slotted-spinner-turn{to{--_turn: 460deg}}@keyframes slotted-spinner-head{0%{--_head: 20deg;animation-timing-function:ease-in-out}50%,to{--_head: 280deg}}@keyframes slotted-spinner-tail{0%,50%{--_tail: 0deg;animation-timing-function:ease-in-out}to{--_tail: 260deg}}\n"] }]
|
|
312
|
+
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], mount: [{ type: i0.Input, args: [{ isSignal: true, alias: "mount", required: false }] }], escape: [{ type: i0.Input, args: [{ isSignal: true, alias: "escape", required: false }] }], outsidePress: [{ type: i0.Input, args: [{ isSignal: true, alias: "outsidePress", required: false }] }], back: [{ type: i0.Input, args: [{ isSignal: true, alias: "back", required: false }] }], closeOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnSelect", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], container: [{ type: i0.Input, args: [{ isSignal: true, alias: "container", required: false }] }], initialFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialFocus", required: false }] }], finalFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "finalFocus", required: false }] }], openChangeRequest: [{ type: i0.Output, args: ["openChangeRequest"] }], closed: [{ type: i0.Output, args: ["closed"] }], drawer: [{ type: i0.ViewChild, args: ['drawer', { isSignal: true }] }] } });
|
|
313
|
+
|
|
314
|
+
const ITEM_SELECTOR = "[data-part='item']";
|
|
315
|
+
/**
|
|
316
|
+
* A click synthesised by the keyboard reports no detail; a real one reports the
|
|
317
|
+
* click count. It tells `Enter` and `Space` from a press without a key listener.
|
|
318
|
+
*/
|
|
319
|
+
function activationReason(event) {
|
|
320
|
+
return event.detail === 0 ? 'keyboard' : 'pointer';
|
|
321
|
+
}
|
|
322
|
+
let nextId = 0;
|
|
323
|
+
const uniqueId = (prefix) => `${prefix}-${(nextId += 1)}`;
|
|
324
|
+
/**
|
|
325
|
+
* The control that opens the sheet: the consumer's own element, which is what
|
|
326
|
+
* this ecosystem composes with. It is also the layer's branch, so a press on
|
|
327
|
+
* it is not read as an outside press.
|
|
328
|
+
*/
|
|
329
|
+
class SlActionSheetTrigger {
|
|
330
|
+
/** The sheet this control opens, reached with a template reference variable. */
|
|
331
|
+
sheet = input.required({ ...(ngDevMode ? { debugName: "sheet" } : /* istanbul ignore next */ {}), alias: 'slActionSheetTrigger' });
|
|
332
|
+
native = inject(ElementRef).nativeElement;
|
|
333
|
+
controls = computed(() => this.sheet().mounted() ? this.sheet().panelId() : null, /* @ts-ignore */
|
|
334
|
+
...(ngDevMode ? [{ debugName: "controls" }] : /* istanbul ignore next */ []));
|
|
335
|
+
ngOnInit() {
|
|
336
|
+
this.sheet().triggerNode.set(this.native);
|
|
337
|
+
}
|
|
338
|
+
ngOnDestroy() {
|
|
339
|
+
if (this.sheet().triggerNode() === this.native)
|
|
340
|
+
this.sheet().triggerNode.set(null);
|
|
341
|
+
}
|
|
342
|
+
press(event) {
|
|
343
|
+
/* The consumer's own handler ran first, and `preventDefault()` refuses. */
|
|
344
|
+
if (event.defaultPrevented)
|
|
345
|
+
return;
|
|
346
|
+
const sheet = this.sheet();
|
|
347
|
+
sheet.request(!sheet.open(), activationReason(event), undefined, event);
|
|
348
|
+
}
|
|
349
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
350
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: SlActionSheetTrigger, isStandalone: true, selector: "[slActionSheetTrigger]", inputs: { sheet: { classPropertyName: "sheet", publicName: "slActionSheetTrigger", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "data-part": "trigger", "type": "button", "aria-haspopup": "dialog" }, listeners: { "click": "press($event)" }, properties: { "attr.aria-expanded": "sheet().open()", "attr.aria-controls": "controls()", "attr.data-open": "sheet().open() ? '' : null", "attr.id": "sheet().triggerId()" } }, exportAs: ["slActionSheetTrigger"], ngImport: i0 });
|
|
351
|
+
}
|
|
352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetTrigger, decorators: [{
|
|
353
|
+
type: Directive,
|
|
354
|
+
args: [{
|
|
355
|
+
selector: '[slActionSheetTrigger]',
|
|
356
|
+
standalone: true,
|
|
357
|
+
exportAs: 'slActionSheetTrigger',
|
|
358
|
+
host: {
|
|
359
|
+
'data-part': 'trigger',
|
|
360
|
+
type: 'button',
|
|
361
|
+
'aria-haspopup': 'dialog',
|
|
362
|
+
'[attr.aria-expanded]': 'sheet().open()',
|
|
363
|
+
'[attr.aria-controls]': 'controls()',
|
|
364
|
+
'[attr.data-open]': "sheet().open() ? '' : null",
|
|
365
|
+
'[attr.id]': 'sheet().triggerId()',
|
|
366
|
+
'(click)': 'press($event)',
|
|
367
|
+
},
|
|
368
|
+
}]
|
|
369
|
+
}], propDecorators: { sheet: [{ type: i0.Input, args: [{ isSignal: true, alias: "slActionSheetTrigger", required: true }] }] } });
|
|
370
|
+
class SlActionSheetHeader {
|
|
371
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
372
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlActionSheetHeader, isStandalone: true, selector: "[slActionSheetHeader]", host: { attributes: { "data-part": "header" } }, ngImport: i0 });
|
|
373
|
+
}
|
|
374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetHeader, decorators: [{
|
|
375
|
+
type: Directive,
|
|
376
|
+
args: [{
|
|
377
|
+
selector: '[slActionSheetHeader]',
|
|
378
|
+
standalone: true,
|
|
379
|
+
host: { 'data-part': 'header' },
|
|
380
|
+
}]
|
|
381
|
+
}] });
|
|
382
|
+
/** The name of the dialog and of the list. */
|
|
383
|
+
class SlActionSheetTitle {
|
|
384
|
+
sheet = inject(SlActionSheet);
|
|
385
|
+
ngOnInit() {
|
|
386
|
+
this.sheet.hasTitle.set(true);
|
|
387
|
+
}
|
|
388
|
+
ngOnDestroy() {
|
|
389
|
+
this.sheet.hasTitle.set(false);
|
|
390
|
+
}
|
|
391
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
392
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlActionSheetTitle, isStandalone: true, selector: "[slActionSheetTitle]", host: { attributes: { "data-part": "title" }, properties: { "attr.id": "sheet.titleId()" } }, ngImport: i0 });
|
|
393
|
+
}
|
|
394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetTitle, decorators: [{
|
|
395
|
+
type: Directive,
|
|
396
|
+
args: [{
|
|
397
|
+
selector: '[slActionSheetTitle]',
|
|
398
|
+
standalone: true,
|
|
399
|
+
host: { 'data-part': 'title', '[attr.id]': 'sheet.titleId()' },
|
|
400
|
+
}]
|
|
401
|
+
}] });
|
|
402
|
+
/** The dialog's description. */
|
|
403
|
+
class SlActionSheetMessage {
|
|
404
|
+
sheet = inject(SlActionSheet);
|
|
405
|
+
ngOnInit() {
|
|
406
|
+
this.sheet.hasMessage.set(true);
|
|
407
|
+
}
|
|
408
|
+
ngOnDestroy() {
|
|
409
|
+
this.sheet.hasMessage.set(false);
|
|
410
|
+
}
|
|
411
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetMessage, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
412
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlActionSheetMessage, isStandalone: true, selector: "[slActionSheetMessage]", host: { attributes: { "data-part": "message" }, properties: { "attr.id": "sheet.messageId()" } }, ngImport: i0 });
|
|
413
|
+
}
|
|
414
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetMessage, decorators: [{
|
|
415
|
+
type: Directive,
|
|
416
|
+
args: [{
|
|
417
|
+
selector: '[slActionSheetMessage]',
|
|
418
|
+
standalone: true,
|
|
419
|
+
host: { 'data-part': 'message', '[attr.id]': 'sheet.messageId()' },
|
|
420
|
+
}]
|
|
421
|
+
}] });
|
|
422
|
+
/**
|
|
423
|
+
* The menu: one tab stop for every action, the arrows, `Home`, `End` and
|
|
424
|
+
* typeahead. Named by the sheet's title unless the consumer names it.
|
|
425
|
+
*/
|
|
426
|
+
class SlActionSheetList {
|
|
427
|
+
sheet = inject(SlActionSheet);
|
|
428
|
+
element = inject(ElementRef).nativeElement;
|
|
429
|
+
roving = null;
|
|
430
|
+
typeahead = createTypeahead();
|
|
431
|
+
labelledBy = computed(() => this.sheet.hasTitle() && !this.element.hasAttribute('aria-label') ? this.sheet.titleId() : null, /* @ts-ignore */
|
|
432
|
+
...(ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []));
|
|
433
|
+
constructor() {
|
|
434
|
+
inject(DestroyRef).onDestroy(() => {
|
|
435
|
+
this.roving?.destroy();
|
|
436
|
+
this.typeahead.destroy();
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
ngOnInit() {
|
|
440
|
+
this.roving = createRovingTabindex(this.element, {
|
|
441
|
+
includeAriaDisabled: true,
|
|
442
|
+
itemSelector: ITEM_SELECTOR,
|
|
443
|
+
orientation: () => 'vertical',
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
/** An item added, removed or disabled moves the stop. */
|
|
447
|
+
ngAfterContentChecked() {
|
|
448
|
+
this.roving?.refresh();
|
|
449
|
+
}
|
|
450
|
+
items() {
|
|
451
|
+
return [...this.element.querySelectorAll(ITEM_SELECTOR)];
|
|
452
|
+
}
|
|
453
|
+
/** Focus that arrived by the pointer or by entry moves the stop with it. */
|
|
454
|
+
onFocusIn(event) {
|
|
455
|
+
const index = this.items().indexOf(event.target);
|
|
456
|
+
if (index !== -1)
|
|
457
|
+
this.roving?.setActive(index);
|
|
458
|
+
}
|
|
459
|
+
onKeyDown(event) {
|
|
460
|
+
if (event.defaultPrevented || event.ctrlKey || event.metaKey || event.altKey)
|
|
461
|
+
return;
|
|
462
|
+
if (!isPrintable(event.key, this.typeahead.query.length > 0))
|
|
463
|
+
return;
|
|
464
|
+
event.preventDefault();
|
|
465
|
+
const all = this.items();
|
|
466
|
+
const labels = all.map((item) => item.dataset['textValue'] ??
|
|
467
|
+
item.querySelector("[data-part='label']")?.textContent?.trim() ??
|
|
468
|
+
'');
|
|
469
|
+
const index = this.typeahead.match(event.key, labels, all.indexOf(event.target));
|
|
470
|
+
all[index]?.focus();
|
|
471
|
+
}
|
|
472
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
473
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlActionSheetList, isStandalone: true, selector: "[slActionSheetList]", host: { attributes: { "data-part": "list", "role": "menu", "aria-orientation": "vertical" }, listeners: { "focusin": "onFocusIn($event)", "keydown": "onKeyDown($event)" }, properties: { "attr.aria-labelledby": "labelledBy()" } }, exportAs: ["slActionSheetList"], ngImport: i0 });
|
|
474
|
+
}
|
|
475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetList, decorators: [{
|
|
476
|
+
type: Directive,
|
|
477
|
+
args: [{
|
|
478
|
+
selector: '[slActionSheetList]',
|
|
479
|
+
standalone: true,
|
|
480
|
+
exportAs: 'slActionSheetList',
|
|
481
|
+
host: {
|
|
482
|
+
'data-part': 'list',
|
|
483
|
+
role: 'menu',
|
|
484
|
+
'aria-orientation': 'vertical',
|
|
485
|
+
'[attr.aria-labelledby]': 'labelledBy()',
|
|
486
|
+
'(focusin)': 'onFocusIn($event)',
|
|
487
|
+
'(keydown)': 'onKeyDown($event)',
|
|
488
|
+
},
|
|
489
|
+
}]
|
|
490
|
+
}], ctorParameters: () => [] });
|
|
491
|
+
class SlActionSheetGroupLabel {
|
|
492
|
+
id = uniqueId('slotted-action-sheet-group-label');
|
|
493
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetGroupLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
494
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlActionSheetGroupLabel, isStandalone: true, selector: "[slActionSheetGroupLabel]", host: { attributes: { "data-part": "group-label" }, properties: { "id": "id" } }, ngImport: i0 });
|
|
495
|
+
}
|
|
496
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetGroupLabel, decorators: [{
|
|
497
|
+
type: Directive,
|
|
498
|
+
args: [{
|
|
499
|
+
selector: '[slActionSheetGroupLabel]',
|
|
500
|
+
standalone: true,
|
|
501
|
+
host: { 'data-part': 'group-label', '[id]': 'id' },
|
|
502
|
+
}]
|
|
503
|
+
}] });
|
|
504
|
+
/** A run of related actions, named by the label it holds. */
|
|
505
|
+
class SlActionSheetGroup {
|
|
506
|
+
label = contentChild(SlActionSheetGroupLabel, /* @ts-ignore */
|
|
507
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
508
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
509
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.1.7", type: SlActionSheetGroup, isStandalone: true, selector: "[slActionSheetGroup]", host: { attributes: { "data-part": "group", "role": "group" }, properties: { "attr.aria-labelledby": "label()?.id ?? null" } }, queries: [{ propertyName: "label", first: true, predicate: SlActionSheetGroupLabel, descendants: true, isSignal: true }], ngImport: i0 });
|
|
510
|
+
}
|
|
511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetGroup, decorators: [{
|
|
512
|
+
type: Directive,
|
|
513
|
+
args: [{
|
|
514
|
+
selector: '[slActionSheetGroup]',
|
|
515
|
+
standalone: true,
|
|
516
|
+
host: {
|
|
517
|
+
'data-part': 'group',
|
|
518
|
+
role: 'group',
|
|
519
|
+
'[attr.aria-labelledby]': 'label()?.id ?? null',
|
|
520
|
+
},
|
|
521
|
+
}]
|
|
522
|
+
}], propDecorators: { label: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlActionSheetGroupLabel), { isSignal: true }] }] } });
|
|
523
|
+
class SlActionSheetSeparator {
|
|
524
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
525
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlActionSheetSeparator, isStandalone: true, selector: "hr[slActionSheetSeparator]", host: { attributes: { "data-part": "separator", "role": "separator" } }, ngImport: i0 });
|
|
526
|
+
}
|
|
527
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetSeparator, decorators: [{
|
|
528
|
+
type: Directive,
|
|
529
|
+
args: [{
|
|
530
|
+
selector: 'hr[slActionSheetSeparator]',
|
|
531
|
+
standalone: true,
|
|
532
|
+
host: { 'data-part': 'separator', role: 'separator' },
|
|
533
|
+
}]
|
|
534
|
+
}] });
|
|
535
|
+
/** The item's visual. Hidden from assistive technology: the label names the action. */
|
|
536
|
+
class SlActionSheetItemIcon {
|
|
537
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetItemIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
538
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlActionSheetItemIcon, isStandalone: true, selector: "[slActionSheetItemIcon]", host: { attributes: { "data-part": "icon", "aria-hidden": "true" } }, ngImport: i0 });
|
|
539
|
+
}
|
|
540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetItemIcon, decorators: [{
|
|
541
|
+
type: Directive,
|
|
542
|
+
args: [{
|
|
543
|
+
selector: '[slActionSheetItemIcon]',
|
|
544
|
+
standalone: true,
|
|
545
|
+
host: { 'data-part': 'icon', 'aria-hidden': 'true' },
|
|
546
|
+
}]
|
|
547
|
+
}] });
|
|
548
|
+
/** The item's second line, which describes the action rather than naming it. */
|
|
549
|
+
class SlActionSheetItemDescription {
|
|
550
|
+
id = uniqueId('slotted-action-sheet-description');
|
|
551
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetItemDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
552
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlActionSheetItemDescription, isStandalone: true, selector: "[slActionSheetItemDescription]", host: { attributes: { "data-part": "description" }, properties: { "id": "id" } }, ngImport: i0 });
|
|
553
|
+
}
|
|
554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetItemDescription, decorators: [{
|
|
555
|
+
type: Directive,
|
|
556
|
+
args: [{
|
|
557
|
+
selector: '[slActionSheetItemDescription]',
|
|
558
|
+
standalone: true,
|
|
559
|
+
host: { 'data-part': 'description', '[id]': 'id' },
|
|
560
|
+
}]
|
|
561
|
+
}] });
|
|
562
|
+
/**
|
|
563
|
+
* One action, on the consumer's own `button` or `a`. The role is `menuitem`,
|
|
564
|
+
* as in `menu`; a disabled or loading item keeps its tab index and takes
|
|
565
|
+
* `aria-disabled`, because the pattern keeps disabled items in the ring.
|
|
566
|
+
*
|
|
567
|
+
* While `loading`, the ring takes the icon box and the projected icon is not
|
|
568
|
+
* shown, so the label never moves.
|
|
569
|
+
*/
|
|
570
|
+
class SlActionSheetItem {
|
|
571
|
+
/** What the close carries as its `result` when this item is chosen. */
|
|
572
|
+
value = input(undefined, /* @ts-ignore */
|
|
573
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
574
|
+
/** What typeahead matches on, when the visible label is not the word. */
|
|
575
|
+
textValue = input(undefined, /* @ts-ignore */
|
|
576
|
+
...(ngDevMode ? [{ debugName: "textValue" }] : /* istanbul ignore next */ []));
|
|
577
|
+
tone = input(undefined, /* @ts-ignore */
|
|
578
|
+
...(ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []));
|
|
579
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
580
|
+
/** The action is running: the item refuses a second press and the sheet stays open. */
|
|
581
|
+
loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
582
|
+
closeOnSelect = input(undefined, { ...(ngDevMode ? { debugName: "closeOnSelect" } : /* istanbul ignore next */ {}), transform: (given) => given === undefined ? undefined : booleanAttribute(given) });
|
|
583
|
+
select = output();
|
|
584
|
+
sheet = inject(SlActionSheet);
|
|
585
|
+
element = inject(ElementRef).nativeElement;
|
|
586
|
+
isLink = this.element.tagName === 'A';
|
|
587
|
+
description = contentChild(SlActionSheetItemDescription, /* @ts-ignore */
|
|
588
|
+
...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
|
|
589
|
+
inert = computed(() => this.disabled() || this.loading(), /* @ts-ignore */
|
|
590
|
+
...(ngDevMode ? [{ debugName: "inert" }] : /* istanbul ignore next */ []));
|
|
591
|
+
onClick(event) {
|
|
592
|
+
if (this.inert()) {
|
|
593
|
+
event.preventDefault();
|
|
594
|
+
return;
|
|
595
|
+
}
|
|
596
|
+
let prevented = false;
|
|
597
|
+
this.select.emit({
|
|
598
|
+
reason: activationReason(event),
|
|
599
|
+
source: event,
|
|
600
|
+
value: this.value(),
|
|
601
|
+
get defaultPrevented() {
|
|
602
|
+
return prevented;
|
|
603
|
+
},
|
|
604
|
+
preventDefault: () => {
|
|
605
|
+
prevented = true;
|
|
606
|
+
},
|
|
607
|
+
});
|
|
608
|
+
if (prevented)
|
|
609
|
+
return;
|
|
610
|
+
if (this.closeOnSelect() ?? this.sheet.resolvedCloseOnSelect()) {
|
|
611
|
+
this.sheet.request(false, 'select', this.value(), event);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* A mouse or a pen over an item focuses it, so exactly one row is lit
|
|
616
|
+
* whichever device is driving. A finger does not: focus moving under a touch
|
|
617
|
+
* that is about to scroll the list would light rows at random.
|
|
618
|
+
*/
|
|
619
|
+
onPointerMove(event) {
|
|
620
|
+
if (event.pointerType === 'touch')
|
|
621
|
+
return;
|
|
622
|
+
if (this.element.ownerDocument.activeElement !== this.element) {
|
|
623
|
+
this.element.focus({ preventScroll: true });
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
onPointerLeave(event) {
|
|
627
|
+
if (event.pointerType === 'touch')
|
|
628
|
+
return;
|
|
629
|
+
if (this.element.ownerDocument.activeElement !== this.element)
|
|
630
|
+
return;
|
|
631
|
+
this.element.closest("[data-part='panel']")?.focus({ preventScroll: true });
|
|
632
|
+
}
|
|
633
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
634
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlActionSheetItem, isStandalone: true, selector: "button[slActionSheetItem], a[slActionSheetItem]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, textValue: { classPropertyName: "textValue", publicName: "textValue", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, closeOnSelect: { classPropertyName: "closeOnSelect", publicName: "closeOnSelect", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { select: "select" }, host: { attributes: { "data-part": "item", "role": "menuitem", "tabindex": "-1" }, listeners: { "click": "onClick($event)", "pointermove": "onPointerMove($event)", "pointerleave": "onPointerLeave($event)" }, properties: { "attr.type": "isLink ? null : \"button\"", "attr.aria-disabled": "inert() ? true : null", "attr.aria-busy": "loading() ? true : null", "attr.aria-describedby": "description()?.id ?? null", "attr.data-disabled": "disabled() ? \"\" : null", "attr.disabled": "null", "attr.data-loading": "loading() ? \"\" : null", "attr.data-text-value": "textValue() ?? null", "attr.data-tone": "tone() ?? null", "attr.data-value": "value() ?? null" } }, queries: [{ propertyName: "description", first: true, predicate: SlActionSheetItemDescription, descendants: true, isSignal: true }], exportAs: ["slActionSheetItem"], ngImport: i0, template: `
|
|
635
|
+
@if (loading()) {
|
|
636
|
+
<span data-part="icon" aria-hidden="true"><span data-ui="spinner"></span></span>
|
|
637
|
+
} @else {
|
|
638
|
+
<ng-content select="[slActionSheetItemIcon]" />
|
|
639
|
+
}
|
|
640
|
+
<span data-part="label"><ng-content /></span>
|
|
641
|
+
<ng-content select="[slActionSheetItemDescription]" />
|
|
642
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
643
|
+
}
|
|
644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetItem, decorators: [{
|
|
645
|
+
type: Component,
|
|
646
|
+
args: [{
|
|
647
|
+
selector: 'button[slActionSheetItem], a[slActionSheetItem]',
|
|
648
|
+
standalone: true,
|
|
649
|
+
exportAs: 'slActionSheetItem',
|
|
650
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
651
|
+
encapsulation: ViewEncapsulation.None,
|
|
652
|
+
host: {
|
|
653
|
+
'data-part': 'item',
|
|
654
|
+
role: 'menuitem',
|
|
655
|
+
tabindex: '-1',
|
|
656
|
+
'[attr.type]': 'isLink ? null : "button"',
|
|
657
|
+
'[attr.aria-disabled]': 'inert() ? true : null',
|
|
658
|
+
'[attr.aria-busy]': 'loading() ? true : null',
|
|
659
|
+
'[attr.aria-describedby]': 'description()?.id ?? null',
|
|
660
|
+
'[attr.data-disabled]': 'disabled() ? "" : null',
|
|
661
|
+
/* A static `disabled` on the host would stay as the native attribute and
|
|
662
|
+
take the item out of the ring the arrows walk; the pattern keeps it in. */
|
|
663
|
+
'[attr.disabled]': 'null',
|
|
664
|
+
'[attr.data-loading]': 'loading() ? "" : null',
|
|
665
|
+
'[attr.data-text-value]': 'textValue() ?? null',
|
|
666
|
+
'[attr.data-tone]': 'tone() ?? null',
|
|
667
|
+
'[attr.data-value]': 'value() ?? null',
|
|
668
|
+
'(click)': 'onClick($event)',
|
|
669
|
+
'(pointermove)': 'onPointerMove($event)',
|
|
670
|
+
'(pointerleave)': 'onPointerLeave($event)',
|
|
671
|
+
},
|
|
672
|
+
template: `
|
|
673
|
+
@if (loading()) {
|
|
674
|
+
<span data-part="icon" aria-hidden="true"><span data-ui="spinner"></span></span>
|
|
675
|
+
} @else {
|
|
676
|
+
<ng-content select="[slActionSheetItemIcon]" />
|
|
677
|
+
}
|
|
678
|
+
<span data-part="label"><ng-content /></span>
|
|
679
|
+
<ng-content select="[slActionSheetItemDescription]" />
|
|
680
|
+
`,
|
|
681
|
+
}]
|
|
682
|
+
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], textValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "textValue", required: false }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], closeOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnSelect", required: false }] }], select: [{ type: i0.Output, args: ["select"] }], description: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlActionSheetItemDescription), { isSignal: true }] }] } });
|
|
683
|
+
/** The band that holds the cancel. */
|
|
684
|
+
class SlActionSheetFooter {
|
|
685
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
686
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlActionSheetFooter, isStandalone: true, selector: "[slActionSheetFooter]", host: { attributes: { "data-part": "footer" } }, ngImport: i0 });
|
|
687
|
+
}
|
|
688
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetFooter, decorators: [{
|
|
689
|
+
type: Directive,
|
|
690
|
+
args: [{
|
|
691
|
+
selector: '[slActionSheetFooter]',
|
|
692
|
+
standalone: true,
|
|
693
|
+
host: { 'data-part': 'footer' },
|
|
694
|
+
}]
|
|
695
|
+
}] });
|
|
696
|
+
/**
|
|
697
|
+
* The explicit way out, on the consumer's own `button`. Never disabled: a sheet
|
|
698
|
+
* that cannot be left is a trap. Given no words, it shows the catalog's `cancel`.
|
|
699
|
+
*/
|
|
700
|
+
class SlActionSheetCancel {
|
|
701
|
+
sheet = inject(SlActionSheet);
|
|
702
|
+
onClick(event) {
|
|
703
|
+
if (event.defaultPrevented)
|
|
704
|
+
return;
|
|
705
|
+
this.sheet.request(false, 'dismiss', undefined, event);
|
|
706
|
+
}
|
|
707
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetCancel, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
708
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: SlActionSheetCancel, isStandalone: true, selector: "button[slActionSheetCancel]", host: { attributes: { "data-part": "cancel", "type": "button" }, listeners: { "click": "onClick($event)" }, properties: { "disabled": "false" } }, ngImport: i0, template: `<ng-content>{{ sheet.t('cancel') }}</ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
709
|
+
}
|
|
710
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlActionSheetCancel, decorators: [{
|
|
711
|
+
type: Component,
|
|
712
|
+
args: [{
|
|
713
|
+
selector: 'button[slActionSheetCancel]',
|
|
714
|
+
standalone: true,
|
|
715
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
716
|
+
encapsulation: ViewEncapsulation.None,
|
|
717
|
+
host: {
|
|
718
|
+
'data-part': 'cancel',
|
|
719
|
+
type: 'button',
|
|
720
|
+
'[disabled]': 'false',
|
|
721
|
+
'(click)': 'onClick($event)',
|
|
722
|
+
},
|
|
723
|
+
template: `<ng-content>{{ sheet.t('cancel') }}</ng-content>`,
|
|
724
|
+
}]
|
|
725
|
+
}] });
|
|
726
|
+
/** Every part, for a standalone component's `imports`. */
|
|
727
|
+
const SL_ACTION_SHEET = [
|
|
728
|
+
SlActionSheet,
|
|
729
|
+
SlActionSheetTrigger,
|
|
730
|
+
SlActionSheetHeader,
|
|
731
|
+
SlActionSheetTitle,
|
|
732
|
+
SlActionSheetMessage,
|
|
733
|
+
SlActionSheetList,
|
|
734
|
+
SlActionSheetGroup,
|
|
735
|
+
SlActionSheetGroupLabel,
|
|
736
|
+
SlActionSheetSeparator,
|
|
737
|
+
SlActionSheetItem,
|
|
738
|
+
SlActionSheetItemIcon,
|
|
739
|
+
SlActionSheetItemDescription,
|
|
740
|
+
SlActionSheetFooter,
|
|
741
|
+
SlActionSheetCancel,
|
|
742
|
+
];
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* Generated bundle index. Do not edit.
|
|
746
|
+
*/
|
|
747
|
+
|
|
748
|
+
export { ACTION_SHEET_DEFAULTS, SL_ACTION_SHEET, SlActionSheet, SlActionSheetCancel, SlActionSheetFooter, SlActionSheetGroup, SlActionSheetGroupLabel, SlActionSheetHeader, SlActionSheetIdFactory, SlActionSheetItem, SlActionSheetItemDescription, SlActionSheetItemIcon, SlActionSheetList, SlActionSheetMessage, SlActionSheetSeparator, SlActionSheetTitle, SlActionSheetTrigger, entryTarget, injectActionSheetDefaults, provideActionSheetDefaults };
|
|
749
|
+
//# sourceMappingURL=slotted-angular-action-sheet.mjs.map
|