@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,1406 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InjectionToken, inject, Injectable, Directive, input, ElementRef, afterNextRender, model, booleanAttribute, numberAttribute, output, DestroyRef, HostAttributeToken, contentChild, TemplateRef, viewChildren, computed, signal, afterEveryRender, forwardRef, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
+
import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
|
|
5
|
+
import { injectMessages } from '@slotted/angular/i18n';
|
|
6
|
+
import { SlGlyph, SlIcon } from '@slotted/angular/icon';
|
|
7
|
+
import { SlButton, SlButtonEnd, SlButtonStart } from '@slotted/angular/button';
|
|
8
|
+
import { SlCheckbox } from '@slotted/angular/checkbox';
|
|
9
|
+
import { SlListbox, SlListboxDescription, SlListboxEmpty, SlListboxIndicator, SlListboxLabel, SlListboxLoader, SlListboxOptionContent } from '@slotted/angular/listbox';
|
|
10
|
+
import { SlSegment, SlSegmentedControl } from '@slotted/angular/segmented-control';
|
|
11
|
+
import { SlTextField, SlTextFieldInput, SlTextFieldStart } from '@slotted/angular/text-field';
|
|
12
|
+
import { createFilter } from '@slotted/core/collection';
|
|
13
|
+
import { createDragController } from '@slotted/core/drag';
|
|
14
|
+
import { transferMessages, dragMessages } from '@slotted/core/i18n';
|
|
15
|
+
import { getLiveAnnouncer } from '@slotted/core/live-announcer';
|
|
16
|
+
import { partitionKeys, keysToMove, moveKeys, reorderKeys, toggleVisibleSelection, reorderKeysTo } from '@slotted/core/transfer';
|
|
17
|
+
|
|
18
|
+
const FALLBACK = {
|
|
19
|
+
size: 'md',
|
|
20
|
+
layout: 'auto',
|
|
21
|
+
searchable: true,
|
|
22
|
+
selectAll: true,
|
|
23
|
+
reorderable: false,
|
|
24
|
+
rows: 8,
|
|
25
|
+
};
|
|
26
|
+
const TRANSFER_DEFAULTS = new InjectionToken('slotted transfer defaults', {
|
|
27
|
+
providedIn: 'root',
|
|
28
|
+
factory: () => FALLBACK,
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* An application decides once how its transfers look. A transfer that states
|
|
32
|
+
* any of it itself still wins. The words come from the language in force
|
|
33
|
+
* (`provideSlotted`).
|
|
34
|
+
*/
|
|
35
|
+
function provideTransferDefaults(defaults) {
|
|
36
|
+
return {
|
|
37
|
+
provide: TRANSFER_DEFAULTS,
|
|
38
|
+
useFactory: () => ({ ...FALLBACK, ...defaults }),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function injectTransferDefaults() {
|
|
42
|
+
return inject(TRANSFER_DEFAULTS);
|
|
43
|
+
}
|
|
44
|
+
class SlTransferIdFactory {
|
|
45
|
+
count = 0;
|
|
46
|
+
next() {
|
|
47
|
+
this.count += 1;
|
|
48
|
+
return `slotted-transfer-${this.count}`;
|
|
49
|
+
}
|
|
50
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTransferIdFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
51
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTransferIdFactory, providedIn: 'root' });
|
|
52
|
+
}
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTransferIdFactory, decorators: [{
|
|
54
|
+
type: Injectable,
|
|
55
|
+
args: [{ providedIn: 'root' }]
|
|
56
|
+
}] });
|
|
57
|
+
|
|
58
|
+
const SIDES = ['source', 'target'];
|
|
59
|
+
const EMPTY = [];
|
|
60
|
+
/** The step one below the family's, for the search field and the buttons. */
|
|
61
|
+
const INNER_SIZE = { sm: 'sm', md: 'sm', lg: 'md' };
|
|
62
|
+
/** A click with no coordinates is a key. */
|
|
63
|
+
function pressReason(event) {
|
|
64
|
+
return event.detail === 0 ? 'keyboard' : 'pointer';
|
|
65
|
+
}
|
|
66
|
+
function escapeValue(value) {
|
|
67
|
+
return typeof CSS !== 'undefined' && typeof CSS.escape === 'function'
|
|
68
|
+
? CSS.escape(value)
|
|
69
|
+
: value.replace(/["\\]/g, '\\$&');
|
|
70
|
+
}
|
|
71
|
+
const sameKeys = (a, b) => a.length === b.length && a.every((key, index) => key === b[index]);
|
|
72
|
+
/** A request whose `cancel()` the family reads back after emitting it. */
|
|
73
|
+
function makeRequest(value, previous, reason, source, extra) {
|
|
74
|
+
let cancelled = false;
|
|
75
|
+
return {
|
|
76
|
+
value,
|
|
77
|
+
previous,
|
|
78
|
+
reason,
|
|
79
|
+
source,
|
|
80
|
+
...extra,
|
|
81
|
+
get cancelled() {
|
|
82
|
+
return cancelled;
|
|
83
|
+
},
|
|
84
|
+
cancel() {
|
|
85
|
+
cancelled = true;
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
const NO_DRAG = { items: EMPTY, over: null, index: null, from: null };
|
|
90
|
+
/**
|
|
91
|
+
* The consumer's `<ng-template slTransferItem let-item let-side="side">`: what
|
|
92
|
+
* one option holds besides its check. The listbox family's label, description
|
|
93
|
+
* and meta directives are the parts to write it with.
|
|
94
|
+
*/
|
|
95
|
+
class SlTransferItem {
|
|
96
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTransferItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
97
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlTransferItem, isStandalone: true, selector: "ng-template[slTransferItem]", ngImport: i0 });
|
|
98
|
+
}
|
|
99
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTransferItem, decorators: [{
|
|
100
|
+
type: Directive,
|
|
101
|
+
args: [{ selector: 'ng-template[slTransferItem]', standalone: true }]
|
|
102
|
+
}] });
|
|
103
|
+
/** `<ng-template slTransferFooter let-side>`: content under a pane's list. */
|
|
104
|
+
class SlTransferFooter {
|
|
105
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTransferFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
106
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlTransferFooter, isStandalone: true, selector: "ng-template[slTransferFooter]", ngImport: i0 });
|
|
107
|
+
}
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTransferFooter, decorators: [{
|
|
109
|
+
type: Directive,
|
|
110
|
+
args: [{ selector: 'ng-template[slTransferFooter]', standalone: true }]
|
|
111
|
+
}] });
|
|
112
|
+
/**
|
|
113
|
+
* Writes this family's part name on a button. `slButton` writes
|
|
114
|
+
* `data-part="root"` as a static host attribute, which erases the part the
|
|
115
|
+
* template wrote, so it is written back after the first render.
|
|
116
|
+
*/
|
|
117
|
+
class SlTransferPart {
|
|
118
|
+
part = input.required({ ...(ngDevMode ? { debugName: "part" } : /* istanbul ignore next */ {}), alias: 'slTransferPart' });
|
|
119
|
+
host = inject(ElementRef);
|
|
120
|
+
constructor() {
|
|
121
|
+
afterNextRender(() => this.host.nativeElement.setAttribute('data-part', this.part()));
|
|
122
|
+
}
|
|
123
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTransferPart, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
124
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: SlTransferPart, isStandalone: true, selector: "[slTransferPart]", inputs: { part: { classPropertyName: "part", publicName: "slTransferPart", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
125
|
+
}
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTransferPart, decorators: [{
|
|
127
|
+
type: Directive,
|
|
128
|
+
args: [{ selector: '[slTransferPart]', standalone: true }]
|
|
129
|
+
}], ctorParameters: () => [], propDecorators: { part: [{ type: i0.Input, args: [{ isSignal: true, alias: "slTransferPart", required: true }] }] } });
|
|
130
|
+
/**
|
|
131
|
+
* Two lists and the moves between them: available on one side, chosen on the
|
|
132
|
+
* other, each a listbox with a search, a count and a select-all box, and the
|
|
133
|
+
* move buttons between them.
|
|
134
|
+
*
|
|
135
|
+
* The host is the root. Its value is `targetKeys`, the keys in the chosen
|
|
136
|
+
* list; a form reads the same array through `ControlValueAccessor`, and a
|
|
137
|
+
* `required` transfer reports `{ required: true }` while the list is empty.
|
|
138
|
+
*/
|
|
139
|
+
class SlTransfer {
|
|
140
|
+
/* ── Inputs ───────────────────────────────────────────────────────── */
|
|
141
|
+
/** The whole collection, both sides. */
|
|
142
|
+
items = input.required(/* @ts-ignore */
|
|
143
|
+
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
144
|
+
getKey = input((item) => item.key, /* @ts-ignore */
|
|
145
|
+
...(ngDevMode ? [{ debugName: "getKey" }] : /* istanbul ignore next */ []));
|
|
146
|
+
getLabel = input((item) => item.label, /* @ts-ignore */
|
|
147
|
+
...(ngDevMode ? [{ debugName: "getLabel" }] : /* istanbul ignore next */ []));
|
|
148
|
+
getDescription = input((item) => item.description, /* @ts-ignore */
|
|
149
|
+
...(ngDevMode ? [{ debugName: "getDescription" }] : /* istanbul ignore next */ []));
|
|
150
|
+
isItemDisabled = input((item) => item.disabled === true, /* @ts-ignore */
|
|
151
|
+
...(ngDevMode ? [{ debugName: "isItemDisabled" }] : /* istanbul ignore next */ []));
|
|
152
|
+
/** Whether an item answers a query. Defaults to a locale-aware contains. */
|
|
153
|
+
filter = input(undefined, /* @ts-ignore */
|
|
154
|
+
...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
|
|
155
|
+
/** The keys in the target; two-way, so a template may bind it directly. */
|
|
156
|
+
targetKeys = model(undefined, /* @ts-ignore */
|
|
157
|
+
...(ngDevMode ? [{ debugName: "targetKeys" }] : /* istanbul ignore next */ []));
|
|
158
|
+
defaultTargetKeys = input(undefined, /* @ts-ignore */
|
|
159
|
+
...(ngDevMode ? [{ debugName: "defaultTargetKeys" }] : /* istanbul ignore next */ []));
|
|
160
|
+
selectedKeys = model(undefined, /* @ts-ignore */
|
|
161
|
+
...(ngDevMode ? [{ debugName: "selectedKeys" }] : /* istanbul ignore next */ []));
|
|
162
|
+
defaultSelectedKeys = input(undefined, /* @ts-ignore */
|
|
163
|
+
...(ngDevMode ? [{ debugName: "defaultSelectedKeys" }] : /* istanbul ignore next */ []));
|
|
164
|
+
sourceQuery = model(undefined, /* @ts-ignore */
|
|
165
|
+
...(ngDevMode ? [{ debugName: "sourceQuery" }] : /* istanbul ignore next */ []));
|
|
166
|
+
defaultSourceQuery = input(undefined, /* @ts-ignore */
|
|
167
|
+
...(ngDevMode ? [{ debugName: "defaultSourceQuery" }] : /* istanbul ignore next */ []));
|
|
168
|
+
targetQuery = model(undefined, /* @ts-ignore */
|
|
169
|
+
...(ngDevMode ? [{ debugName: "targetQuery" }] : /* istanbul ignore next */ []));
|
|
170
|
+
defaultTargetQuery = input(undefined, /* @ts-ignore */
|
|
171
|
+
...(ngDevMode ? [{ debugName: "defaultTargetQuery" }] : /* istanbul ignore next */ []));
|
|
172
|
+
/** The pane shown in steps. */
|
|
173
|
+
pane = model(undefined, /* @ts-ignore */
|
|
174
|
+
...(ngDevMode ? [{ debugName: "pane" }] : /* istanbul ignore next */ []));
|
|
175
|
+
defaultPane = input(undefined, /* @ts-ignore */
|
|
176
|
+
...(ngDevMode ? [{ debugName: "defaultPane" }] : /* istanbul ignore next */ []));
|
|
177
|
+
size = input(undefined, /* @ts-ignore */
|
|
178
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
179
|
+
layout = input(undefined, /* @ts-ignore */
|
|
180
|
+
...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
181
|
+
searchable = input(undefined, { ...(ngDevMode ? { debugName: "searchable" } : /* istanbul ignore next */ {}), transform: (value) => (value === undefined ? undefined : booleanAttribute(value)) });
|
|
182
|
+
selectAll = input(undefined, { ...(ngDevMode ? { debugName: "selectAll" } : /* istanbul ignore next */ {}), transform: (value) => (value === undefined ? undefined : booleanAttribute(value)) });
|
|
183
|
+
reorderable = input(undefined, { ...(ngDevMode ? { debugName: "reorderable" } : /* istanbul ignore next */ {}), transform: (value) => (value === undefined ? undefined : booleanAttribute(value)) });
|
|
184
|
+
rows = input(undefined, { ...(ngDevMode ? { debugName: "rows" } : /* istanbul ignore next */ {}), transform: (value) => (value === undefined ? undefined : numberAttribute(value)) });
|
|
185
|
+
virtual = input(false, { ...(ngDevMode ? { debugName: "virtual" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
186
|
+
itemSize = input(undefined, { ...(ngDevMode ? { debugName: "itemSize" } : /* istanbul ignore next */ {}), transform: (value) => (value === undefined ? undefined : numberAttribute(value)) });
|
|
187
|
+
/** Options rendered either side of a windowed viewport. */
|
|
188
|
+
overscan = input(undefined, { ...(ngDevMode ? { debugName: "overscan" } : /* istanbul ignore next */ {}), transform: (value) => (value === undefined ? undefined : numberAttribute(value)) });
|
|
189
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
190
|
+
readOnly = input(false, { ...(ngDevMode ? { debugName: "readOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
191
|
+
required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
192
|
+
invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
193
|
+
loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
194
|
+
hasMore = input(false, { ...(ngDevMode ? { debugName: "hasMore" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
195
|
+
/** Submits one hidden input per target key. */
|
|
196
|
+
name = input(undefined, /* @ts-ignore */
|
|
197
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
198
|
+
/**
|
|
199
|
+
* Words laid over the catalog of the language in force, key by key: the
|
|
200
|
+
* panes' names, the controls, the counts and the announcements.
|
|
201
|
+
*/
|
|
202
|
+
messages = input(undefined, /* @ts-ignore */
|
|
203
|
+
...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
|
|
204
|
+
/* ── Outputs ──────────────────────────────────────────────────────── */
|
|
205
|
+
/** Before the target moves, with the direction, the keys and the reason. */
|
|
206
|
+
targetKeysChangeRequest = output();
|
|
207
|
+
selectedKeysChangeRequest = output();
|
|
208
|
+
sourceQueryChangeRequest = output();
|
|
209
|
+
targetQueryChangeRequest = output();
|
|
210
|
+
paneChangeRequest = output();
|
|
211
|
+
/** Asked when the source list reaches the end of what has been loaded. */
|
|
212
|
+
loadMore = output();
|
|
213
|
+
/* ── State ────────────────────────────────────────────────────────── */
|
|
214
|
+
defaults = injectTransferDefaults();
|
|
215
|
+
base = inject(SlTransferIdFactory).next();
|
|
216
|
+
host = inject(ElementRef);
|
|
217
|
+
destroyRef = inject(DestroyRef);
|
|
218
|
+
/** A role the consumer wrote is never replaced by the family's. */
|
|
219
|
+
writtenRole = inject(new HostAttributeToken('role'), { optional: true });
|
|
220
|
+
itemTemplate = contentChild(SlTransferItem, { ...(ngDevMode ? { debugName: "itemTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef });
|
|
221
|
+
footerTemplate = contentChild(SlTransferFooter, { ...(ngDevMode ? { debugName: "footerTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef });
|
|
222
|
+
listboxes = viewChildren(SlListbox, /* @ts-ignore */
|
|
223
|
+
...(ngDevMode ? [{ debugName: "listboxes" }] : /* istanbul ignore next */ []));
|
|
224
|
+
sides = SIDES;
|
|
225
|
+
pressReason = pressReason;
|
|
226
|
+
/** The family's words in the language in force, with this transfer's `messages` laid over them. */
|
|
227
|
+
t = injectMessages(transferMessages, this.messages);
|
|
228
|
+
/** What a keyboard drag between the panes says, in the language in force. */
|
|
229
|
+
dragT = injectMessages(dragMessages);
|
|
230
|
+
resolvedSize = computed(() => this.size() ?? this.defaults.size, /* @ts-ignore */
|
|
231
|
+
...(ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []));
|
|
232
|
+
innerSize = computed(() => INNER_SIZE[this.resolvedSize()], /* @ts-ignore */
|
|
233
|
+
...(ngDevMode ? [{ debugName: "innerSize" }] : /* istanbul ignore next */ []));
|
|
234
|
+
resolvedLayout = computed(() => this.layout() ?? this.defaults.layout, /* @ts-ignore */
|
|
235
|
+
...(ngDevMode ? [{ debugName: "resolvedLayout" }] : /* istanbul ignore next */ []));
|
|
236
|
+
resolvedSearchable = computed(() => this.searchable() ?? this.defaults.searchable, /* @ts-ignore */
|
|
237
|
+
...(ngDevMode ? [{ debugName: "resolvedSearchable" }] : /* istanbul ignore next */ []));
|
|
238
|
+
resolvedSelectAll = computed(() => this.selectAll() ?? this.defaults.selectAll, /* @ts-ignore */
|
|
239
|
+
...(ngDevMode ? [{ debugName: "resolvedSelectAll" }] : /* istanbul ignore next */ []));
|
|
240
|
+
resolvedReorderable = computed(() => this.reorderable() ?? this.defaults.reorderable, /* @ts-ignore */
|
|
241
|
+
...(ngDevMode ? [{ debugName: "resolvedReorderable" }] : /* istanbul ignore next */ []));
|
|
242
|
+
resolvedRows = computed(() => this.rows() ?? this.defaults.rows, /* @ts-ignore */
|
|
243
|
+
...(ngDevMode ? [{ debugName: "resolvedRows" }] : /* istanbul ignore next */ []));
|
|
244
|
+
formDisabled = signal(false, /* @ts-ignore */
|
|
245
|
+
...(ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []));
|
|
246
|
+
isDisabled = computed(() => this.disabled() || this.formDisabled(), /* @ts-ignore */
|
|
247
|
+
...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
248
|
+
isInvalid = computed(() => this.invalid(), /* @ts-ignore */
|
|
249
|
+
...(ngDevMode ? [{ debugName: "isInvalid" }] : /* istanbul ignore next */ []));
|
|
250
|
+
frozen = computed(() => this.isDisabled() || this.readOnly(), /* @ts-ignore */
|
|
251
|
+
...(ngDevMode ? [{ debugName: "frozen" }] : /* istanbul ignore next */ []));
|
|
252
|
+
/** The committed values: the bound one, or the default. */
|
|
253
|
+
currentTargetKeys = computed(() => this.targetKeys() ?? this.defaultTargetKeys() ?? EMPTY, /* @ts-ignore */
|
|
254
|
+
...(ngDevMode ? [{ debugName: "currentTargetKeys" }] : /* istanbul ignore next */ []));
|
|
255
|
+
currentSelectedKeys = computed(() => this.selectedKeys() ?? this.defaultSelectedKeys() ?? EMPTY, /* @ts-ignore */
|
|
256
|
+
...(ngDevMode ? [{ debugName: "currentSelectedKeys" }] : /* istanbul ignore next */ []));
|
|
257
|
+
currentSourceQuery = computed(() => this.sourceQuery() ?? this.defaultSourceQuery() ?? '', /* @ts-ignore */
|
|
258
|
+
...(ngDevMode ? [{ debugName: "currentSourceQuery" }] : /* istanbul ignore next */ []));
|
|
259
|
+
currentTargetQuery = computed(() => this.targetQuery() ?? this.defaultTargetQuery() ?? '', /* @ts-ignore */
|
|
260
|
+
...(ngDevMode ? [{ debugName: "currentTargetQuery" }] : /* istanbul ignore next */ []));
|
|
261
|
+
currentPane = computed(() => this.pane() ?? this.defaultPane() ?? 'source', /* @ts-ignore */
|
|
262
|
+
...(ngDevMode ? [{ debugName: "currentPane" }] : /* istanbul ignore next */ []));
|
|
263
|
+
byKey = computed(() => new Map(this.items().map((item) => [this.getKey()(item), item])), /* @ts-ignore */
|
|
264
|
+
...(ngDevMode ? [{ debugName: "byKey" }] : /* istanbul ignore next */ []));
|
|
265
|
+
allKeys = computed(() => this.items().map(this.getKey()), /* @ts-ignore */
|
|
266
|
+
...(ngDevMode ? [{ debugName: "allKeys" }] : /* istanbul ignore next */ []));
|
|
267
|
+
disabledKeys = computed(() => {
|
|
268
|
+
const disabled = this.isItemDisabled();
|
|
269
|
+
const key = this.getKey();
|
|
270
|
+
return new Set(this.items()
|
|
271
|
+
.filter((item) => disabled(item))
|
|
272
|
+
.map(key));
|
|
273
|
+
}, /* @ts-ignore */
|
|
274
|
+
...(ngDevMode ? [{ debugName: "disabledKeys" }] : /* istanbul ignore next */ []));
|
|
275
|
+
partition = computed(() => partitionKeys(this.allKeys(), this.currentTargetKeys(), this.resolvedReorderable()), /* @ts-ignore */
|
|
276
|
+
...(ngDevMode ? [{ debugName: "partition" }] : /* istanbul ignore next */ []));
|
|
277
|
+
matcher = createFilter();
|
|
278
|
+
visible = computed(() => {
|
|
279
|
+
const partition = this.partition();
|
|
280
|
+
const byKey = this.byKey();
|
|
281
|
+
const filter = this.filter();
|
|
282
|
+
const getLabel = this.getLabel();
|
|
283
|
+
const getDescription = this.getDescription();
|
|
284
|
+
const pick = (side, typed) => {
|
|
285
|
+
const query = typed.trim();
|
|
286
|
+
if (query === '')
|
|
287
|
+
return partition[side];
|
|
288
|
+
return partition[side].filter((key) => {
|
|
289
|
+
const item = byKey.get(key);
|
|
290
|
+
if (item === undefined)
|
|
291
|
+
return this.matcher.contains(key, query);
|
|
292
|
+
if (filter)
|
|
293
|
+
return filter(item, query, side);
|
|
294
|
+
return (this.matcher.contains(getLabel(item), query) ||
|
|
295
|
+
this.matcher.contains(getDescription(item) ?? '', query));
|
|
296
|
+
});
|
|
297
|
+
};
|
|
298
|
+
return {
|
|
299
|
+
source: pick('source', this.currentSourceQuery()),
|
|
300
|
+
target: pick('target', this.currentTargetQuery()),
|
|
301
|
+
};
|
|
302
|
+
}, /* @ts-ignore */
|
|
303
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
304
|
+
entries = computed(() => {
|
|
305
|
+
const byKey = this.byKey();
|
|
306
|
+
const visible = this.visible();
|
|
307
|
+
const build = (side) => visible[side].map((key) => ({ key, item: byKey.get(key) }));
|
|
308
|
+
return { source: build('source'), target: build('target') };
|
|
309
|
+
}, /* @ts-ignore */
|
|
310
|
+
...(ngDevMode ? [{ debugName: "entries" }] : /* istanbul ignore next */ []));
|
|
311
|
+
entriesOf(side) {
|
|
312
|
+
return this.entries()[side];
|
|
313
|
+
}
|
|
314
|
+
isEmpty(side) {
|
|
315
|
+
return this.visible()[side].length === 0;
|
|
316
|
+
}
|
|
317
|
+
entryKey = (entry) => entry.key;
|
|
318
|
+
entryLabel = (entry) => this.labelOf(entry.key);
|
|
319
|
+
entryDisabled = (entry) => entry.item !== undefined && this.isItemDisabled()(entry.item);
|
|
320
|
+
canReorder = computed(() => this.resolvedReorderable() && this.currentTargetQuery().trim() === '', /* @ts-ignore */
|
|
321
|
+
...(ngDevMode ? [{ debugName: "canReorder" }] : /* istanbul ignore next */ []));
|
|
322
|
+
drag = signal(NO_DRAG, /* @ts-ignore */
|
|
323
|
+
...(ngDevMode ? [{ debugName: "drag" }] : /* istanbul ignore next */ []));
|
|
324
|
+
dragging = computed(() => new Set(this.drag().items), /* @ts-ignore */
|
|
325
|
+
...(ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []));
|
|
326
|
+
dropOffset = signal(null, /* @ts-ignore */
|
|
327
|
+
...(ngDevMode ? [{ debugName: "dropOffset" }] : /* istanbul ignore next */ []));
|
|
328
|
+
constructor() {
|
|
329
|
+
/* The APG keys a dual list adds, taken before the listbox's own. */
|
|
330
|
+
const onKeyDown = (event) => this.onListKeyDown(event);
|
|
331
|
+
afterNextRender(() => {
|
|
332
|
+
this.host.nativeElement.addEventListener('keydown', onKeyDown, true);
|
|
333
|
+
this.createController();
|
|
334
|
+
});
|
|
335
|
+
this.destroyRef.onDestroy(() => {
|
|
336
|
+
this.host.nativeElement.removeEventListener('keydown', onKeyDown, true);
|
|
337
|
+
this.teardown?.();
|
|
338
|
+
});
|
|
339
|
+
afterEveryRender(() => {
|
|
340
|
+
this.nameSelectAll();
|
|
341
|
+
this.syncDraggables();
|
|
342
|
+
const side = this.pendingFocus;
|
|
343
|
+
if (side !== null) {
|
|
344
|
+
this.pendingFocus = null;
|
|
345
|
+
this.listboxOf(side)?.focus();
|
|
346
|
+
}
|
|
347
|
+
this.measureDropLine();
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
/* ── Reading ──────────────────────────────────────────────────────── */
|
|
351
|
+
title(side) {
|
|
352
|
+
return side === 'target' ? this.t('target') : this.t('source');
|
|
353
|
+
}
|
|
354
|
+
titleId(side) {
|
|
355
|
+
return `${this.base}-${side}-title`;
|
|
356
|
+
}
|
|
357
|
+
labelOf(key) {
|
|
358
|
+
const item = this.byKey().get(key);
|
|
359
|
+
return item === undefined ? key : this.getLabel()(item);
|
|
360
|
+
}
|
|
361
|
+
descriptionOf(item) {
|
|
362
|
+
return this.getDescription()(item);
|
|
363
|
+
}
|
|
364
|
+
queryOf(side) {
|
|
365
|
+
return side === 'source' ? this.currentSourceQuery() : this.currentTargetQuery();
|
|
366
|
+
}
|
|
367
|
+
typed(side) {
|
|
368
|
+
return this.queryOf(side).trim() !== '';
|
|
369
|
+
}
|
|
370
|
+
enabledVisible(side) {
|
|
371
|
+
const disabled = this.disabledKeys();
|
|
372
|
+
return this.visible()[side].filter((key) => !disabled.has(key));
|
|
373
|
+
}
|
|
374
|
+
selectionFor(side) {
|
|
375
|
+
const selected = new Set(this.currentSelectedKeys());
|
|
376
|
+
return this.visible()[side].filter((key) => selected.has(key));
|
|
377
|
+
}
|
|
378
|
+
selectedToMove(side) {
|
|
379
|
+
return keysToMove({
|
|
380
|
+
visible: this.visible()[side],
|
|
381
|
+
selected: this.currentSelectedKeys(),
|
|
382
|
+
disabled: this.disabledKeys(),
|
|
383
|
+
active: null,
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
selectAllState(side) {
|
|
387
|
+
const reach = this.enabledVisible(side);
|
|
388
|
+
const selected = new Set(this.currentSelectedKeys());
|
|
389
|
+
const chosen = reach.filter((key) => selected.has(key)).length;
|
|
390
|
+
if (chosen === 0)
|
|
391
|
+
return 'none';
|
|
392
|
+
return chosen === reach.length ? 'all' : 'some';
|
|
393
|
+
}
|
|
394
|
+
countText(side) {
|
|
395
|
+
const keys = this.partition()[side];
|
|
396
|
+
if (this.typed(side)) {
|
|
397
|
+
return this.t('countFiltered', { shown: this.visible()[side].length, total: keys.length });
|
|
398
|
+
}
|
|
399
|
+
const selected = new Set(this.currentSelectedKeys());
|
|
400
|
+
const chosen = keys.filter((key) => selected.has(key)).length;
|
|
401
|
+
return chosen > 0
|
|
402
|
+
? this.t('countSelected', { selected: chosen, total: keys.length })
|
|
403
|
+
: this.t('count', { total: keys.length });
|
|
404
|
+
}
|
|
405
|
+
paneCount(side) {
|
|
406
|
+
return this.t('paneCount', {
|
|
407
|
+
pane: this.title(side),
|
|
408
|
+
total: this.partition()[side].length,
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
dropTarget(side) {
|
|
412
|
+
const drag = this.drag();
|
|
413
|
+
return drag.over === side && (drag.from !== side || side === 'target');
|
|
414
|
+
}
|
|
415
|
+
listboxOf(side) {
|
|
416
|
+
return this.listboxes()[side === 'source' ? 0 : 1];
|
|
417
|
+
}
|
|
418
|
+
listOf(side) {
|
|
419
|
+
return this.host.nativeElement.querySelector(`[data-part="pane"][data-side="${side}"] > [data-part="list"]`);
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* The option the keyboard is on: the option holding focus under the roving
|
|
423
|
+
* model, where Tab lands on the tab stop without the listbox calling it
|
|
424
|
+
* active, and the listbox's active option under `aria-activedescendant`,
|
|
425
|
+
* where focus is on the listbox itself.
|
|
426
|
+
*/
|
|
427
|
+
activeIn(side) {
|
|
428
|
+
const list = this.listOf(side);
|
|
429
|
+
const focused = list?.ownerDocument.activeElement;
|
|
430
|
+
if (list && focused instanceof HTMLElement && list.contains(focused)) {
|
|
431
|
+
const key = focused.closest('[data-part="option"]')?.dataset['key'];
|
|
432
|
+
if (key !== undefined)
|
|
433
|
+
return key;
|
|
434
|
+
}
|
|
435
|
+
return this.listboxOf(side)?.getActiveKey() ?? null;
|
|
436
|
+
}
|
|
437
|
+
announce(message) {
|
|
438
|
+
if (message !== '')
|
|
439
|
+
getLiveAnnouncer(this.host.nativeElement.ownerDocument).announce(message);
|
|
440
|
+
}
|
|
441
|
+
/* ── Requests ─────────────────────────────────────────────────────── */
|
|
442
|
+
pendingFocus = null;
|
|
443
|
+
/**
|
|
444
|
+
* Which option the keyboard is on in each list. The family holds it rather
|
|
445
|
+
* than each listbox, because a move has to say where the keyboard goes next:
|
|
446
|
+
* the APG example sends it to the first option after the moved ones that is
|
|
447
|
+
* still in the list, and the listbox cannot know which of its options left
|
|
448
|
+
* on purpose.
|
|
449
|
+
*/
|
|
450
|
+
actives = signal({
|
|
451
|
+
source: null,
|
|
452
|
+
target: null,
|
|
453
|
+
}, /* @ts-ignore */
|
|
454
|
+
...(ngDevMode ? [{ debugName: "actives" }] : /* istanbul ignore next */ []));
|
|
455
|
+
/* A key that left the list is no tab stop: the list would be unreachable by Tab. */
|
|
456
|
+
activeOf(side) {
|
|
457
|
+
const key = this.actives()[side];
|
|
458
|
+
return key !== null && this.visible()[side].includes(key) ? key : null;
|
|
459
|
+
}
|
|
460
|
+
setActive(side, key) {
|
|
461
|
+
if (this.actives()[side] === key)
|
|
462
|
+
return;
|
|
463
|
+
this.actives.update((current) => ({ ...current, [side]: key }));
|
|
464
|
+
}
|
|
465
|
+
/* Tab lands on the option holding the tab stop, and the keyboard is on it from then on. */
|
|
466
|
+
onListFocus(side, event) {
|
|
467
|
+
const key = event.target?.closest('[data-part="option"]')
|
|
468
|
+
?.dataset['key'];
|
|
469
|
+
if (key !== undefined)
|
|
470
|
+
this.setActive(side, key);
|
|
471
|
+
}
|
|
472
|
+
requestTarget(next, reason, source, extra) {
|
|
473
|
+
const previous = this.currentTargetKeys();
|
|
474
|
+
if (sameKeys(previous, next))
|
|
475
|
+
return false;
|
|
476
|
+
const request = makeRequest(next, previous, reason, source, extra);
|
|
477
|
+
this.targetKeysChangeRequest.emit(request);
|
|
478
|
+
if (request.cancelled)
|
|
479
|
+
return false;
|
|
480
|
+
this.targetKeys.set(next);
|
|
481
|
+
this.onChangeFn(next);
|
|
482
|
+
this.onTouchedFn();
|
|
483
|
+
return true;
|
|
484
|
+
}
|
|
485
|
+
requestSelected(next, reason, source) {
|
|
486
|
+
const previous = this.currentSelectedKeys();
|
|
487
|
+
if (sameKeys(previous, next))
|
|
488
|
+
return;
|
|
489
|
+
const request = makeRequest(next, previous, reason, source, {});
|
|
490
|
+
this.selectedKeysChangeRequest.emit(request);
|
|
491
|
+
if (!request.cancelled)
|
|
492
|
+
this.selectedKeys.set(next);
|
|
493
|
+
}
|
|
494
|
+
move(keys, to, reason, source, index) {
|
|
495
|
+
if (this.frozen() || keys.length === 0)
|
|
496
|
+
return;
|
|
497
|
+
const from = to === 'target' ? 'source' : 'target';
|
|
498
|
+
const next = moveKeys({
|
|
499
|
+
allKeys: this.allKeys(),
|
|
500
|
+
targetKeys: this.currentTargetKeys(),
|
|
501
|
+
keys,
|
|
502
|
+
to,
|
|
503
|
+
reorderable: this.resolvedReorderable(),
|
|
504
|
+
index,
|
|
505
|
+
});
|
|
506
|
+
const visibleBefore = this.visible()[from];
|
|
507
|
+
if (!this.requestTarget(next, reason, source, { direction: to, keys }))
|
|
508
|
+
return;
|
|
509
|
+
const moving = new Set(keys);
|
|
510
|
+
this.requestSelected(this.currentSelectedKeys().filter((key) => !moving.has(key)), reason, source);
|
|
511
|
+
const pane = this.title(to);
|
|
512
|
+
this.announce(keys.length === 1
|
|
513
|
+
? this.t('movedOne', { item: this.labelOf(keys[0]), pane })
|
|
514
|
+
: this.t('moved', { count: keys.length, pane }));
|
|
515
|
+
const list = this.listOf(from);
|
|
516
|
+
if (!list?.contains(list.ownerDocument.activeElement))
|
|
517
|
+
return;
|
|
518
|
+
/* The keyboard stays in the list it moved from, on the first option after
|
|
519
|
+
the moved ones that is still there, then on the last one before them;
|
|
520
|
+
a list left empty hands it to the other. */
|
|
521
|
+
const first = visibleBefore.findIndex((key) => moving.has(key));
|
|
522
|
+
const after = first === -1 ? [] : visibleBefore.slice(first);
|
|
523
|
+
const before = first === -1 ? visibleBefore : visibleBefore.slice(0, first);
|
|
524
|
+
const disabled = this.disabledKeys();
|
|
525
|
+
const stays = (key) => !moving.has(key) && !disabled.has(key);
|
|
526
|
+
const neighbour = after.find(stays) ?? [...before].reverse().find(stays) ?? null;
|
|
527
|
+
if (neighbour === null) {
|
|
528
|
+
this.pendingFocus = to;
|
|
529
|
+
return;
|
|
530
|
+
}
|
|
531
|
+
this.setActive(from, neighbour);
|
|
532
|
+
this.pendingFocus = from;
|
|
533
|
+
}
|
|
534
|
+
reorder(keys, next, reason, source) {
|
|
535
|
+
if (this.frozen() || keys.length === 0 || sameKeys(next, this.partition().target))
|
|
536
|
+
return;
|
|
537
|
+
if (!this.requestTarget(next, reason, source, { direction: 'reorder', keys }))
|
|
538
|
+
return;
|
|
539
|
+
this.announce(this.t('reordered', {
|
|
540
|
+
item: this.labelOf(keys[0]),
|
|
541
|
+
position: next.indexOf(keys[0]) + 1,
|
|
542
|
+
}));
|
|
543
|
+
const list = this.listOf('target');
|
|
544
|
+
if (!list?.contains(list.ownerDocument.activeElement))
|
|
545
|
+
return;
|
|
546
|
+
const held = this.activeIn('target');
|
|
547
|
+
if (held !== null)
|
|
548
|
+
this.setActive('target', held);
|
|
549
|
+
this.pendingFocus = 'target';
|
|
550
|
+
}
|
|
551
|
+
shift(delta, reason, source, withActive) {
|
|
552
|
+
if (!this.canReorder())
|
|
553
|
+
return;
|
|
554
|
+
const keys = keysToMove({
|
|
555
|
+
visible: this.visible().target,
|
|
556
|
+
selected: this.currentSelectedKeys(),
|
|
557
|
+
disabled: this.disabledKeys(),
|
|
558
|
+
active: withActive ? this.activeIn('target') : null,
|
|
559
|
+
});
|
|
560
|
+
this.reorder(keys, reorderKeys(this.partition().target, keys, delta), reason, source);
|
|
561
|
+
}
|
|
562
|
+
onPaneSelection(side, request) {
|
|
563
|
+
const value = request.value;
|
|
564
|
+
const chosen = Array.isArray(value) ? value : value === null ? [] : [value];
|
|
565
|
+
const shown = new Set(this.visible()[side]);
|
|
566
|
+
const next = [...this.currentSelectedKeys().filter((key) => !shown.has(key)), ...chosen];
|
|
567
|
+
const reason = request.reason;
|
|
568
|
+
const mapped = reason === 'pointer' || reason === 'keyboard' || reason === 'programmatic'
|
|
569
|
+
? reason
|
|
570
|
+
: 'select';
|
|
571
|
+
this.requestSelected(next, mapped, request.source);
|
|
572
|
+
}
|
|
573
|
+
onSelectAll(side, request) {
|
|
574
|
+
this.requestSelected(toggleVisibleSelection(this.currentSelectedKeys(), this.visible()[side], this.disabledKeys(), request.value), 'select', request.source);
|
|
575
|
+
}
|
|
576
|
+
onQuery(side, change) {
|
|
577
|
+
const reason = change.reason === 'clear' ? 'clear' : 'keyboard';
|
|
578
|
+
const previous = this.queryOf(side);
|
|
579
|
+
if (previous === change.value)
|
|
580
|
+
return;
|
|
581
|
+
const request = makeRequest(change.value, previous, reason, change.source, {});
|
|
582
|
+
if (side === 'source')
|
|
583
|
+
this.sourceQueryChangeRequest.emit(request);
|
|
584
|
+
else
|
|
585
|
+
this.targetQueryChangeRequest.emit(request);
|
|
586
|
+
if (request.cancelled)
|
|
587
|
+
return;
|
|
588
|
+
if (side === 'source')
|
|
589
|
+
this.sourceQuery.set(change.value);
|
|
590
|
+
else
|
|
591
|
+
this.targetQuery.set(change.value);
|
|
592
|
+
}
|
|
593
|
+
onSwitch(change) {
|
|
594
|
+
const next = change.value;
|
|
595
|
+
if (next === undefined || next === this.currentPane())
|
|
596
|
+
return;
|
|
597
|
+
const reason = change.reason === 'keyboard' ? 'keyboard' : 'pointer';
|
|
598
|
+
const request = makeRequest(next, this.currentPane(), reason, change.source, {});
|
|
599
|
+
this.paneChangeRequest.emit(request);
|
|
600
|
+
if (!request.cancelled)
|
|
601
|
+
this.pane.set(next);
|
|
602
|
+
}
|
|
603
|
+
onListKeyDown(event) {
|
|
604
|
+
if (event.defaultPrevented || this.frozen())
|
|
605
|
+
return;
|
|
606
|
+
const target = event.target;
|
|
607
|
+
const list = target?.closest('[data-part="list"][data-side]');
|
|
608
|
+
if (!list || !this.host.nativeElement.contains(list))
|
|
609
|
+
return;
|
|
610
|
+
const side = list.dataset['side'];
|
|
611
|
+
const other = side === 'source' ? 'target' : 'source';
|
|
612
|
+
const pick = () => keysToMove({
|
|
613
|
+
visible: this.visible()[side],
|
|
614
|
+
selected: this.currentSelectedKeys(),
|
|
615
|
+
disabled: this.disabledKeys(),
|
|
616
|
+
active: this.activeIn(side),
|
|
617
|
+
});
|
|
618
|
+
const modifier = event.ctrlKey || event.metaKey;
|
|
619
|
+
const element = this.host.nativeElement;
|
|
620
|
+
const rtl = element.ownerDocument.defaultView?.getComputedStyle(element).direction === 'rtl';
|
|
621
|
+
const end = rtl ? 'ArrowLeft' : 'ArrowRight';
|
|
622
|
+
const start = rtl ? 'ArrowRight' : 'ArrowLeft';
|
|
623
|
+
if (event.key === 'Enter' && !modifier && !event.altKey && !event.shiftKey) {
|
|
624
|
+
event.preventDefault();
|
|
625
|
+
this.move(pick(), other, 'keyboard', event);
|
|
626
|
+
}
|
|
627
|
+
else if (side === 'target' && (event.key === 'Delete' || event.key === 'Backspace')) {
|
|
628
|
+
event.preventDefault();
|
|
629
|
+
this.move(pick(), 'source', 'keyboard', event);
|
|
630
|
+
}
|
|
631
|
+
else if (modifier && !event.altKey && (event.key === end || event.key === start)) {
|
|
632
|
+
const to = event.key === end ? 'target' : 'source';
|
|
633
|
+
event.preventDefault();
|
|
634
|
+
if (to !== side)
|
|
635
|
+
this.move(pick(), to, 'keyboard', event);
|
|
636
|
+
}
|
|
637
|
+
else if (side === 'target' &&
|
|
638
|
+
event.altKey &&
|
|
639
|
+
(event.key === 'ArrowUp' || event.key === 'ArrowDown')) {
|
|
640
|
+
event.preventDefault();
|
|
641
|
+
this.shift(event.key === 'ArrowUp' ? -1 : 1, 'keyboard', event, true);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* The select-all box is named on its input. The checkbox family takes its
|
|
646
|
+
* name from its label and has no input for one, and a label holding a
|
|
647
|
+
* visually hidden sentence would take the box's width and halo with it; the
|
|
648
|
+
* empty label is the case that family already draws.
|
|
649
|
+
*/
|
|
650
|
+
nameSelectAll() {
|
|
651
|
+
for (const side of SIDES) {
|
|
652
|
+
const control = this.host.nativeElement.querySelector(`[data-part="pane"][data-side="${side}"] [data-part="select-all"] input`);
|
|
653
|
+
const name = this.t('selectAll', { pane: this.title(side) });
|
|
654
|
+
if (control && control.getAttribute('aria-label') !== name) {
|
|
655
|
+
control.setAttribute('aria-label', name);
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
/* ── The handle ───────────────────────────────────────────────────── */
|
|
660
|
+
/** Moves focus into a pane's list; the source's when no side is named. */
|
|
661
|
+
focus(side = 'source') {
|
|
662
|
+
this.listboxOf(side)?.focus();
|
|
663
|
+
}
|
|
664
|
+
/** Reveals an item in whichever pane holds it. */
|
|
665
|
+
scrollToKey(key) {
|
|
666
|
+
const side = this.partition().target.includes(key) ? 'target' : 'source';
|
|
667
|
+
this.listboxOf(side)?.scrollToKey(key);
|
|
668
|
+
}
|
|
669
|
+
/* ── The drag ─────────────────────────────────────────────────────── */
|
|
670
|
+
controller = null;
|
|
671
|
+
teardown = null;
|
|
672
|
+
draggables = new Map();
|
|
673
|
+
createController() {
|
|
674
|
+
const root = this.host.nativeElement;
|
|
675
|
+
const listboxIn = (side) => root.querySelector(`[data-part="pane"][data-side="${side}"] [data-ui="listbox"]`);
|
|
676
|
+
const created = createDragController({
|
|
677
|
+
document: root.ownerDocument,
|
|
678
|
+
preview: false,
|
|
679
|
+
restoreFocus: false,
|
|
680
|
+
autoScroll: { axis: 'y' },
|
|
681
|
+
t: this.dragT,
|
|
682
|
+
/* The move says what happened once, in the family's own words. */
|
|
683
|
+
silent: ['moved', 'dropped'],
|
|
684
|
+
onDrop: ({ items: carried, source, target, reason, event }) => {
|
|
685
|
+
const from = source.container;
|
|
686
|
+
const to = target.container;
|
|
687
|
+
const why = reason === 'keyboard' ? 'keyboard' : 'pointer';
|
|
688
|
+
const shown = this.visible().target;
|
|
689
|
+
const full = this.partition().target;
|
|
690
|
+
const indexInTarget = () => {
|
|
691
|
+
if (target.kind !== 'between')
|
|
692
|
+
return full.length;
|
|
693
|
+
const anchor = shown[target.index];
|
|
694
|
+
if (anchor !== undefined)
|
|
695
|
+
return full.indexOf(anchor);
|
|
696
|
+
const last = shown[shown.length - 1];
|
|
697
|
+
return last === undefined ? full.length : full.indexOf(last) + 1;
|
|
698
|
+
};
|
|
699
|
+
if (from !== to) {
|
|
700
|
+
this.move(carried, to, why, event, to === 'target' ? indexInTarget() : undefined);
|
|
701
|
+
}
|
|
702
|
+
else if (to === 'target') {
|
|
703
|
+
this.reorder(carried, reorderKeysTo(full, carried, indexInTarget()), why, event);
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
});
|
|
707
|
+
const unregister = SIDES.map((side) => created.registerContainer({
|
|
708
|
+
key: side,
|
|
709
|
+
items: () => this.visible()[side],
|
|
710
|
+
orientation: 'vertical',
|
|
711
|
+
element: () => listboxIn(side),
|
|
712
|
+
itemElement: (key) => listboxIn(side)?.querySelector(`[data-part="option"][data-key="${escapeValue(key)}"]`) ??
|
|
713
|
+
null,
|
|
714
|
+
accepts: (state, target) => {
|
|
715
|
+
if (state.source?.container !== target.container)
|
|
716
|
+
return true;
|
|
717
|
+
return target.container === 'target' && this.canReorder();
|
|
718
|
+
},
|
|
719
|
+
disabled: () => this.frozen(),
|
|
720
|
+
label: () => this.title(side),
|
|
721
|
+
itemLabel: (key) => this.labelOf(key),
|
|
722
|
+
}));
|
|
723
|
+
/* The click the browser fires after a pointer drag is the drag's, not a
|
|
724
|
+
press on the option: with the pointer captured it lands on the option
|
|
725
|
+
that was carried and would toggle its selection. */
|
|
726
|
+
let swallow = false;
|
|
727
|
+
let wasDragging = null;
|
|
728
|
+
const onClick = (event) => {
|
|
729
|
+
if (!swallow)
|
|
730
|
+
return;
|
|
731
|
+
swallow = false;
|
|
732
|
+
event.preventDefault();
|
|
733
|
+
event.stopPropagation();
|
|
734
|
+
};
|
|
735
|
+
root.addEventListener('click', onClick, true);
|
|
736
|
+
const unsubscribe = created.subscribe((next) => {
|
|
737
|
+
if (next.status !== 'dragging') {
|
|
738
|
+
if (wasDragging === 'pointer') {
|
|
739
|
+
swallow = true;
|
|
740
|
+
window.setTimeout(() => {
|
|
741
|
+
swallow = false;
|
|
742
|
+
}, 0);
|
|
743
|
+
}
|
|
744
|
+
wasDragging = null;
|
|
745
|
+
this.drag.set(NO_DRAG);
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
wasDragging = next.reason === 'pointer' ? 'pointer' : 'other';
|
|
749
|
+
const target = next.target;
|
|
750
|
+
this.drag.set({
|
|
751
|
+
items: next.items,
|
|
752
|
+
from: next.source?.container ?? null,
|
|
753
|
+
over: target && next.valid ? target.container : null,
|
|
754
|
+
index: target && target.kind === 'between' && next.valid ? target.index : null,
|
|
755
|
+
});
|
|
756
|
+
});
|
|
757
|
+
this.controller = created;
|
|
758
|
+
this.teardown = () => {
|
|
759
|
+
root.removeEventListener('click', onClick, true);
|
|
760
|
+
unsubscribe();
|
|
761
|
+
for (const off of unregister)
|
|
762
|
+
off();
|
|
763
|
+
created.destroy();
|
|
764
|
+
this.controller = null;
|
|
765
|
+
for (const detach of this.draggables.values())
|
|
766
|
+
detach();
|
|
767
|
+
this.draggables.clear();
|
|
768
|
+
};
|
|
769
|
+
this.syncDraggables();
|
|
770
|
+
}
|
|
771
|
+
/* Every option is a draggable, and carries its pane's selection when it is in it. */
|
|
772
|
+
syncDraggables() {
|
|
773
|
+
const created = this.controller;
|
|
774
|
+
if (!created)
|
|
775
|
+
return;
|
|
776
|
+
const root = this.host.nativeElement;
|
|
777
|
+
const seen = new Set();
|
|
778
|
+
for (const side of SIDES) {
|
|
779
|
+
const nodes = root.querySelectorAll(`[data-part="pane"][data-side="${side}"] [data-part="option"][data-key]`);
|
|
780
|
+
for (const node of nodes) {
|
|
781
|
+
seen.add(node);
|
|
782
|
+
if (this.draggables.has(node))
|
|
783
|
+
continue;
|
|
784
|
+
const key = node.dataset['key'];
|
|
785
|
+
const detach = created.attachDraggable(node, {
|
|
786
|
+
container: side,
|
|
787
|
+
key,
|
|
788
|
+
items: () => {
|
|
789
|
+
const carried = this.selectedToMove(side);
|
|
790
|
+
return carried.includes(key) ? carried : [key];
|
|
791
|
+
},
|
|
792
|
+
disabled: () => this.frozen() || this.disabledKeys().has(key),
|
|
793
|
+
distance: 4,
|
|
794
|
+
});
|
|
795
|
+
this.draggables.set(node, detach);
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
for (const [node, detach] of this.draggables) {
|
|
799
|
+
if (seen.has(node))
|
|
800
|
+
continue;
|
|
801
|
+
detach();
|
|
802
|
+
this.draggables.delete(node);
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
/* The drop line stands between two options, where script alone can measure. */
|
|
806
|
+
measureDropLine() {
|
|
807
|
+
const drag = this.drag();
|
|
808
|
+
const shows = drag.over === 'target' && drag.index !== null && this.resolvedReorderable();
|
|
809
|
+
if (!shows || drag.index === null) {
|
|
810
|
+
if (this.dropOffset() !== null)
|
|
811
|
+
this.dropOffset.set(null);
|
|
812
|
+
return;
|
|
813
|
+
}
|
|
814
|
+
const list = this.listOf('target');
|
|
815
|
+
const listbox = list?.querySelector('[data-ui="listbox"]');
|
|
816
|
+
if (!list || !listbox)
|
|
817
|
+
return;
|
|
818
|
+
const options = listbox.querySelectorAll('[data-part="option"]');
|
|
819
|
+
const frame = list.getBoundingClientRect().top;
|
|
820
|
+
const at = options[drag.index];
|
|
821
|
+
const last = options[options.length - 1];
|
|
822
|
+
const edge = at
|
|
823
|
+
? at.getBoundingClientRect().top
|
|
824
|
+
: last
|
|
825
|
+
? last.getBoundingClientRect().bottom
|
|
826
|
+
: listbox.getBoundingClientRect().top;
|
|
827
|
+
const offset = Math.round(edge - frame);
|
|
828
|
+
if (this.dropOffset() !== offset)
|
|
829
|
+
this.dropOffset.set(offset);
|
|
830
|
+
}
|
|
831
|
+
/* ── Forms ────────────────────────────────────────────────────────── */
|
|
832
|
+
onChangeFn = () => { };
|
|
833
|
+
onTouchedFn = () => { };
|
|
834
|
+
writeValue(value) {
|
|
835
|
+
this.targetKeys.set(value ?? EMPTY);
|
|
836
|
+
}
|
|
837
|
+
registerOnChange(fn) {
|
|
838
|
+
this.onChangeFn = fn;
|
|
839
|
+
}
|
|
840
|
+
registerOnTouched(fn) {
|
|
841
|
+
this.onTouchedFn = fn;
|
|
842
|
+
}
|
|
843
|
+
setDisabledState(disabled) {
|
|
844
|
+
this.formDisabled.set(disabled);
|
|
845
|
+
}
|
|
846
|
+
validate(control) {
|
|
847
|
+
if (!this.required())
|
|
848
|
+
return null;
|
|
849
|
+
const value = control.value;
|
|
850
|
+
return (value ?? EMPTY).length === 0 ? { required: true } : null;
|
|
851
|
+
}
|
|
852
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTransfer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
853
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlTransfer, isStandalone: true, selector: "[slTransfer]", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, getKey: { classPropertyName: "getKey", publicName: "getKey", isSignal: true, isRequired: false, transformFunction: null }, getLabel: { classPropertyName: "getLabel", publicName: "getLabel", isSignal: true, isRequired: false, transformFunction: null }, getDescription: { classPropertyName: "getDescription", publicName: "getDescription", isSignal: true, isRequired: false, transformFunction: null }, isItemDisabled: { classPropertyName: "isItemDisabled", publicName: "isItemDisabled", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, targetKeys: { classPropertyName: "targetKeys", publicName: "targetKeys", isSignal: true, isRequired: false, transformFunction: null }, defaultTargetKeys: { classPropertyName: "defaultTargetKeys", publicName: "defaultTargetKeys", isSignal: true, isRequired: false, transformFunction: null }, selectedKeys: { classPropertyName: "selectedKeys", publicName: "selectedKeys", isSignal: true, isRequired: false, transformFunction: null }, defaultSelectedKeys: { classPropertyName: "defaultSelectedKeys", publicName: "defaultSelectedKeys", isSignal: true, isRequired: false, transformFunction: null }, sourceQuery: { classPropertyName: "sourceQuery", publicName: "sourceQuery", isSignal: true, isRequired: false, transformFunction: null }, defaultSourceQuery: { classPropertyName: "defaultSourceQuery", publicName: "defaultSourceQuery", isSignal: true, isRequired: false, transformFunction: null }, targetQuery: { classPropertyName: "targetQuery", publicName: "targetQuery", isSignal: true, isRequired: false, transformFunction: null }, defaultTargetQuery: { classPropertyName: "defaultTargetQuery", publicName: "defaultTargetQuery", isSignal: true, isRequired: false, transformFunction: null }, pane: { classPropertyName: "pane", publicName: "pane", isSignal: true, isRequired: false, transformFunction: null }, defaultPane: { classPropertyName: "defaultPane", publicName: "defaultPane", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, selectAll: { classPropertyName: "selectAll", publicName: "selectAll", isSignal: true, isRequired: false, transformFunction: null }, reorderable: { classPropertyName: "reorderable", publicName: "reorderable", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, virtual: { classPropertyName: "virtual", publicName: "virtual", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, overscan: { classPropertyName: "overscan", publicName: "overscan", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, hasMore: { classPropertyName: "hasMore", publicName: "hasMore", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { targetKeys: "targetKeysChange", selectedKeys: "selectedKeysChange", sourceQuery: "sourceQueryChange", targetQuery: "targetQueryChange", pane: "paneChange", targetKeysChangeRequest: "targetKeysChangeRequest", selectedKeysChangeRequest: "selectedKeysChangeRequest", sourceQueryChangeRequest: "sourceQueryChangeRequest", targetQueryChangeRequest: "targetQueryChangeRequest", paneChangeRequest: "paneChangeRequest", loadMore: "loadMore" }, host: { attributes: { "data-ui": "transfer", "data-part": "root" }, properties: { "attr.role": "writtenRole ?? \"group\"", "attr.data-layout": "resolvedLayout()", "attr.data-size": "resolvedSize()", "attr.data-pane": "currentPane()", "attr.data-disabled": "isDisabled() ? \"\" : null", "attr.aria-disabled": "isDisabled() ? \"true\" : null", "attr.data-readonly": "readOnly() ? \"\" : null", "attr.data-invalid": "isInvalid() ? \"\" : null", "attr.data-required": "required() ? \"\" : null", "attr.data-loading": "loading() ? \"\" : null", "style.--slotted-transfer-rows": "resolvedRows()" } }, providers: [
|
|
854
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlTransfer), multi: true },
|
|
855
|
+
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => SlTransfer), multi: true },
|
|
856
|
+
], queries: [{ propertyName: "itemTemplate", first: true, predicate: SlTransferItem, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: SlTransferFooter, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "listboxes", predicate: SlListbox, descendants: true, isSignal: true }], exportAs: ["slTransfer"], ngImport: i0, template: `
|
|
857
|
+
<div data-part="switch">
|
|
858
|
+
<div
|
|
859
|
+
slSegmentedControl
|
|
860
|
+
[attr.aria-label]="t('panes')"
|
|
861
|
+
[disabled]="isDisabled()"
|
|
862
|
+
[fullWidth]="true"
|
|
863
|
+
[size]="resolvedSize()"
|
|
864
|
+
[value]="currentPane()"
|
|
865
|
+
(valueChange)="onSwitch($event)"
|
|
866
|
+
>
|
|
867
|
+
@for (side of sides; track side) {
|
|
868
|
+
<label slSegment [value]="side">{{ paneCount(side) }}</label>
|
|
869
|
+
}
|
|
870
|
+
</div>
|
|
871
|
+
</div>
|
|
872
|
+
<div data-part="body">
|
|
873
|
+
<ng-container
|
|
874
|
+
[ngTemplateOutlet]="paneTemplate"
|
|
875
|
+
[ngTemplateOutletContext]="{ $implicit: 'source' }"
|
|
876
|
+
/>
|
|
877
|
+
<div data-part="actions" role="group" [attr.aria-label]="t('actions')">
|
|
878
|
+
<button
|
|
879
|
+
slButton
|
|
880
|
+
slTransferPart="move-to-target"
|
|
881
|
+
tone="secondary"
|
|
882
|
+
variant="outline"
|
|
883
|
+
aria-keyshortcuts="Enter"
|
|
884
|
+
[size]="innerSize()"
|
|
885
|
+
[disabled]="frozen() || selectedToMove('source').length === 0"
|
|
886
|
+
[focusableWhenDisabled]="!isDisabled()"
|
|
887
|
+
(click)="move(selectedToMove('source'), 'target', pressReason($event), $event)"
|
|
888
|
+
>
|
|
889
|
+
{{ t('moveToTarget')
|
|
890
|
+
}}<span slButtonEnd aria-hidden="true"
|
|
891
|
+
><span slIcon><svg slGlyph name="chevron-right"></svg></span
|
|
892
|
+
></span>
|
|
893
|
+
</button>
|
|
894
|
+
<button
|
|
895
|
+
slButton
|
|
896
|
+
slTransferPart="move-all-to-target"
|
|
897
|
+
tone="secondary"
|
|
898
|
+
variant="outline"
|
|
899
|
+
[size]="innerSize()"
|
|
900
|
+
[disabled]="frozen() || enabledVisible('source').length === 0"
|
|
901
|
+
[focusableWhenDisabled]="!isDisabled()"
|
|
902
|
+
(click)="move(enabledVisible('source'), 'target', pressReason($event), $event)"
|
|
903
|
+
>
|
|
904
|
+
{{ t('moveAllToTarget')
|
|
905
|
+
}}<span slButtonEnd aria-hidden="true"
|
|
906
|
+
><span slIcon><svg slGlyph name="chevrons-right"></svg></span
|
|
907
|
+
></span>
|
|
908
|
+
</button>
|
|
909
|
+
<button
|
|
910
|
+
slButton
|
|
911
|
+
slTransferPart="move-to-source"
|
|
912
|
+
tone="secondary"
|
|
913
|
+
variant="outline"
|
|
914
|
+
aria-keyshortcuts="Delete"
|
|
915
|
+
[size]="innerSize()"
|
|
916
|
+
[disabled]="frozen() || selectedToMove('target').length === 0"
|
|
917
|
+
[focusableWhenDisabled]="!isDisabled()"
|
|
918
|
+
(click)="move(selectedToMove('target'), 'source', pressReason($event), $event)"
|
|
919
|
+
>
|
|
920
|
+
<span slButtonStart aria-hidden="true"
|
|
921
|
+
><span slIcon><svg slGlyph name="chevron-right"></svg></span></span
|
|
922
|
+
>{{ t('moveToSource') }}
|
|
923
|
+
</button>
|
|
924
|
+
<button
|
|
925
|
+
slButton
|
|
926
|
+
slTransferPart="move-all-to-source"
|
|
927
|
+
tone="secondary"
|
|
928
|
+
variant="outline"
|
|
929
|
+
[size]="innerSize()"
|
|
930
|
+
[disabled]="frozen() || enabledVisible('target').length === 0"
|
|
931
|
+
[focusableWhenDisabled]="!isDisabled()"
|
|
932
|
+
(click)="move(enabledVisible('target'), 'source', pressReason($event), $event)"
|
|
933
|
+
>
|
|
934
|
+
<span slButtonStart aria-hidden="true"
|
|
935
|
+
><span slIcon><svg slGlyph name="chevrons-right"></svg></span></span
|
|
936
|
+
>{{ t('moveAllToSource') }}
|
|
937
|
+
</button>
|
|
938
|
+
@if (resolvedReorderable()) {
|
|
939
|
+
<div data-part="reorder" role="group" [attr.aria-label]="t('reorder')">
|
|
940
|
+
<button
|
|
941
|
+
slButton
|
|
942
|
+
slTransferPart="move-up"
|
|
943
|
+
tone="secondary"
|
|
944
|
+
variant="ghost"
|
|
945
|
+
aria-keyshortcuts="Alt+ArrowUp"
|
|
946
|
+
[size]="innerSize()"
|
|
947
|
+
[disabled]="frozen() || !canReorder() || selectedToMove('target').length === 0"
|
|
948
|
+
[focusableWhenDisabled]="!isDisabled()"
|
|
949
|
+
(click)="shift(-1, pressReason($event), $event, false)"
|
|
950
|
+
>
|
|
951
|
+
<span slButtonStart aria-hidden="true"
|
|
952
|
+
><span slIcon><svg slGlyph name="chevron-down"></svg></span></span
|
|
953
|
+
>{{ t('moveUp') }}
|
|
954
|
+
</button>
|
|
955
|
+
<button
|
|
956
|
+
slButton
|
|
957
|
+
slTransferPart="move-down"
|
|
958
|
+
tone="secondary"
|
|
959
|
+
variant="ghost"
|
|
960
|
+
aria-keyshortcuts="Alt+ArrowDown"
|
|
961
|
+
[size]="innerSize()"
|
|
962
|
+
[disabled]="frozen() || !canReorder() || selectedToMove('target').length === 0"
|
|
963
|
+
[focusableWhenDisabled]="!isDisabled()"
|
|
964
|
+
(click)="shift(1, pressReason($event), $event, false)"
|
|
965
|
+
>
|
|
966
|
+
<span slButtonStart aria-hidden="true"
|
|
967
|
+
><span slIcon><svg slGlyph name="chevron-down"></svg></span></span
|
|
968
|
+
>{{ t('moveDown') }}
|
|
969
|
+
</button>
|
|
970
|
+
</div>
|
|
971
|
+
}
|
|
972
|
+
</div>
|
|
973
|
+
<ng-container
|
|
974
|
+
[ngTemplateOutlet]="paneTemplate"
|
|
975
|
+
[ngTemplateOutletContext]="{ $implicit: 'target' }"
|
|
976
|
+
/>
|
|
977
|
+
</div>
|
|
978
|
+
@if (name(); as field) {
|
|
979
|
+
@for (key of partition().target; track key) {
|
|
980
|
+
<input type="hidden" [attr.name]="field" [value]="key" />
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
<ng-template #paneTemplate let-side>
|
|
985
|
+
<div
|
|
986
|
+
data-part="pane"
|
|
987
|
+
role="group"
|
|
988
|
+
[attr.data-side]="side"
|
|
989
|
+
[attr.aria-labelledby]="titleId(side)"
|
|
990
|
+
[attr.data-current]="currentPane() === side ? '' : null"
|
|
991
|
+
[attr.data-drop-target]="dropTarget(side) ? '' : null"
|
|
992
|
+
>
|
|
993
|
+
<div data-part="pane-header">
|
|
994
|
+
@if (resolvedSelectAll()) {
|
|
995
|
+
<span data-part="select-all">
|
|
996
|
+
<div
|
|
997
|
+
slCheckbox
|
|
998
|
+
[size]="resolvedSize()"
|
|
999
|
+
[checked]="selectAllState(side) === 'all'"
|
|
1000
|
+
[indeterminate]="selectAllState(side) === 'some'"
|
|
1001
|
+
[disabled]="isDisabled() || enabledVisible(side).length === 0"
|
|
1002
|
+
(checkedChange)="onSelectAll(side, $event)"
|
|
1003
|
+
></div>
|
|
1004
|
+
</span>
|
|
1005
|
+
}
|
|
1006
|
+
<span data-part="title" [attr.id]="titleId(side)">{{ title(side) }}</span>
|
|
1007
|
+
<span data-part="count">{{ countText(side) }}</span>
|
|
1008
|
+
</div>
|
|
1009
|
+
@if (resolvedSearchable()) {
|
|
1010
|
+
<div data-part="search">
|
|
1011
|
+
<div slTextField [clearable]="true" [size]="innerSize()">
|
|
1012
|
+
<span slTextFieldStart aria-hidden="true"
|
|
1013
|
+
><span data-part="search-icon"
|
|
1014
|
+
><span slIcon><svg slGlyph name="search"></svg></span></span
|
|
1015
|
+
></span>
|
|
1016
|
+
<input
|
|
1017
|
+
slTextFieldInput
|
|
1018
|
+
type="search"
|
|
1019
|
+
[disabled]="isDisabled()"
|
|
1020
|
+
[value]="queryOf(side)"
|
|
1021
|
+
[attr.aria-label]="t('search', { pane: title(side) })"
|
|
1022
|
+
[attr.placeholder]="t('search', { pane: title(side) })"
|
|
1023
|
+
(valueChange)="onQuery(side, $event)"
|
|
1024
|
+
/>
|
|
1025
|
+
</div>
|
|
1026
|
+
</div>
|
|
1027
|
+
}
|
|
1028
|
+
<div data-part="list" [attr.data-side]="side" (focusin)="onListFocus(side, $event)">
|
|
1029
|
+
<div
|
|
1030
|
+
slListbox
|
|
1031
|
+
variant="plain"
|
|
1032
|
+
selectionMode="multiple"
|
|
1033
|
+
[attr.aria-labelledby]="titleId(side)"
|
|
1034
|
+
[size]="resolvedSize()"
|
|
1035
|
+
[rows]="resolvedRows()"
|
|
1036
|
+
[items]="entriesOf(side)"
|
|
1037
|
+
[getKey]="entryKey"
|
|
1038
|
+
[getLabel]="entryLabel"
|
|
1039
|
+
[isItemDisabled]="entryDisabled"
|
|
1040
|
+
[activeKey]="activeOf(side)"
|
|
1041
|
+
[value]="selectionFor(side)"
|
|
1042
|
+
[disabled]="isDisabled()"
|
|
1043
|
+
[invalid]="isInvalid()"
|
|
1044
|
+
[required]="required()"
|
|
1045
|
+
[virtual]="virtual() && itemSize() !== undefined"
|
|
1046
|
+
[itemSize]="itemSize()"
|
|
1047
|
+
[overscan]="overscan()"
|
|
1048
|
+
[loading]="side === 'source' && loading()"
|
|
1049
|
+
[hasMore]="side === 'source' && hasMore()"
|
|
1050
|
+
(loadMore)="loadMore.emit()"
|
|
1051
|
+
(activeKeyChange)="setActive(side, $event.value)"
|
|
1052
|
+
(valueChange)="onPaneSelection(side, $event)"
|
|
1053
|
+
>
|
|
1054
|
+
<ng-template slListboxOptionContent let-entry>
|
|
1055
|
+
<span
|
|
1056
|
+
slListboxIndicator
|
|
1057
|
+
[attr.data-dragging]="dragging().has(entry.key) ? '' : null"
|
|
1058
|
+
[attr.data-unresolved]="entry.item === undefined ? '' : null"
|
|
1059
|
+
></span>
|
|
1060
|
+
@if (entry.item === undefined) {
|
|
1061
|
+
<span slListboxLabel>{{ entry.key }}</span>
|
|
1062
|
+
} @else if (itemTemplate(); as template) {
|
|
1063
|
+
<ng-container
|
|
1064
|
+
[ngTemplateOutlet]="template"
|
|
1065
|
+
[ngTemplateOutletContext]="{ $implicit: entry.item, side: side }"
|
|
1066
|
+
/>
|
|
1067
|
+
} @else {
|
|
1068
|
+
<span slListboxLabel>{{ labelOf(entry.key) }}</span>
|
|
1069
|
+
@if (descriptionOf(entry.item); as description) {
|
|
1070
|
+
<span slListboxDescription>{{ description }}</span>
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
</ng-template>
|
|
1074
|
+
@if (isEmpty(side)) {
|
|
1075
|
+
<div slListboxEmpty>
|
|
1076
|
+
<div data-part="empty" [attr.data-query]="typed(side) ? '' : null">
|
|
1077
|
+
<span slIcon
|
|
1078
|
+
><svg slGlyph [name]="typed(side) ? 'search-x' : 'inbox'"></svg
|
|
1079
|
+
></span>
|
|
1080
|
+
{{ typed(side) ? t('noResults') : t('empty') }}
|
|
1081
|
+
</div>
|
|
1082
|
+
</div>
|
|
1083
|
+
}
|
|
1084
|
+
@if (side === 'source' && hasMore()) {
|
|
1085
|
+
<div slListboxLoader>{{ t('loading') }}</div>
|
|
1086
|
+
}
|
|
1087
|
+
</div>
|
|
1088
|
+
@if (side === 'target' && dropOffset() !== null) {
|
|
1089
|
+
<div
|
|
1090
|
+
data-part="drop-indicator"
|
|
1091
|
+
aria-hidden="true"
|
|
1092
|
+
[style.--_drop-offset]="dropOffset() + 'px'"
|
|
1093
|
+
></div>
|
|
1094
|
+
}
|
|
1095
|
+
</div>
|
|
1096
|
+
@if (footerTemplate(); as footer) {
|
|
1097
|
+
<div data-part="pane-footer">
|
|
1098
|
+
<ng-container
|
|
1099
|
+
[ngTemplateOutlet]="footer"
|
|
1100
|
+
[ngTemplateOutletContext]="{ $implicit: side }"
|
|
1101
|
+
/>
|
|
1102
|
+
</div>
|
|
1103
|
+
}
|
|
1104
|
+
</div>
|
|
1105
|
+
</ng-template>
|
|
1106
|
+
`, isInline: true, styles: ["@layer slotted.components{[data-ui=transfer]{--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_rule: var(--slotted-border-subtle, ButtonBorder);--_edge: var(--slotted-control-border-color, ButtonBorder);--_surface: var(--slotted-control-surface, Field);--_shadow: var(--slotted-control-shadow, none);--_radius: var(--slotted-radius-md, 6px);--_pane-min: var(--slotted-transfer-pane-min-inline-size, 13rem);--_gap: var(--slotted-space-5, .75rem);--_rows: var(--slotted-transfer-rows, 8);--_duration: var(--slotted-control-transition-duration);--_easing: var(--slotted-control-transition-easing);--_option-height: var(--slotted-control-height-md, 34px);--_option-inset: var(--slotted-control-padding-inline-md, 13px);--_mark: var(--slotted-control-icon-size-md, 16px);--_box: var(--slotted-selection-size-md, 16px);--_font-size: var(--slotted-control-font-size-md, 13px);--_list-inset: var(--slotted-listbox-padding-block, var(--slotted-space-2, .25rem));box-sizing:border-box;color:var(--_text);display:grid;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);font-size:var(--_font-size);line-height:var(--slotted-line-height-md, 1.5);min-inline-size:0;row-gap:var(--_gap);text-align:start;container-name:transfer;container-type:inline-size}[data-ui=transfer][data-size=sm]{--_option-height: var(--slotted-control-height-sm, 30px);--_option-inset: var(--slotted-control-padding-inline-sm, 10px);--_mark: var(--slotted-control-icon-size-sm, 14px);--_box: var(--slotted-selection-size-sm, 14px);--_font-size: var(--slotted-control-font-size-sm, 12px)}[data-ui=transfer][data-size=lg]{--_option-height: var(--slotted-control-height-lg, 38px);--_option-inset: var(--slotted-control-padding-inline-lg, 16px);--_mark: var(--slotted-control-icon-size-lg, 18px);--_box: var(--slotted-selection-size-lg, 18px);--_font-size: var(--slotted-control-font-size-lg, 14px)}[data-ui=transfer]>[data-part=switch]{display:none}[data-ui=transfer]>[data-part=switch]>[data-ui=segmented-control]{inline-size:100%}[data-ui=transfer]>[data-part=body]{align-items:center;column-gap:var(--_gap);display:grid;grid-template-columns:minmax(var(--_pane-min),1fr) max-content minmax(var(--_pane-min),1fr);min-inline-size:0}[data-ui=transfer]>[data-part=body]>[data-part=pane]{align-self:stretch;background:var(--_surface);border:var(--slotted-border-width-thin, 1px) solid var(--_edge);border-radius:var(--_radius);box-shadow:var(--_shadow);box-sizing:border-box;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;min-inline-size:0;overflow:clip;transition:border-color var(--_duration) var(--_easing),box-shadow var(--_duration) var(--_easing)}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=pane-header]{align-items:center;column-gap:var(--slotted-space-4, .5rem);display:flex;min-block-size:var(--_option-height);padding-block:var(--slotted-space-3, .375rem);padding-inline-end:calc(var(--_list-inset) + var(--_option-inset));padding-inline-start:calc(var(--_list-inset) + var(--_option-inset) - (var(--_box) - var(--_mark)) / 2)}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=pane-header]>[data-part=select-all]{display:inline-flex;flex:none}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=pane-header]>[data-part=select-all]>[data-ui=checkbox]{column-gap:0}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=pane-header]>[data-part=title]{color:var(--_text);font-weight:var(--slotted-font-weight-semibold, 600);min-inline-size:0;overflow-wrap:anywhere}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=pane-header]>[data-part=count]{color:var(--_muted);flex:none;font-size:var(--slotted-font-size-xs, .75rem);font-variant-numeric:tabular-nums;line-height:var(--slotted-line-height-xs, 1.4);margin-inline-start:auto;white-space:nowrap}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=search]{padding-block-end:var(--slotted-space-4, .5rem);padding-inline:var(--slotted-space-4, .5rem)}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=search]>[data-ui=text-field]{inline-size:100%}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=search] [data-part=search-icon]{display:inline-flex;flex:none}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]{block-size:calc(var(--_rows) * var(--_option-height) + 2 * var(--_list-inset));border-block-start:var(--slotted-border-width-thin, 1px) solid var(--_rule);box-sizing:content-box;min-block-size:0;position:relative}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]>[data-ui=listbox]{--slotted-listbox-measure: none;block-size:100%;max-block-size:100%}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]>[data-ui=listbox]:has(>[data-part=empty]){align-content:center}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]>[data-ui=listbox]>[data-part=empty]>[data-part=empty]{--slotted-icon-size: var(--_mark);display:grid;justify-items:center;row-gap:var(--slotted-space-3, .375rem)}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]>[data-ui=listbox] [data-part=option]:has(>[data-part=indicator][data-unresolved]){color:var(--_muted);font-family:var(--slotted-font-family-mono, ui-monospace, monospace)}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]>[data-part=drop-indicator]{block-size:0;inset-block-start:var(--_drop-offset, 0);inset-inline:calc(var(--_list-inset) + var(--slotted-space-2, .25rem));pointer-events:none;position:absolute}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]>[data-part=drop-indicator]:before{background-color:var(--slotted-tone-accent-solid);block-size:var(--slotted-border-width-thick, 2px);border-radius:var(--slotted-radius-full, 9999px);content:\"\";inset-block-start:calc(var(--slotted-border-width-thick, 2px) / -2);inset-inline:0;position:absolute}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]>[data-ui=listbox] [data-part=option]:has(>[data-part=indicator][data-dragging]){opacity:.5}[data-ui=transfer]>[data-part=body]>[data-part=pane][data-drop-target]{border-color:var(--slotted-tone-accent-border, Highlight);box-shadow:0 0 0 var(--slotted-border-width-thin, 1px) var(--slotted-tone-accent-border, Highlight)}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=pane-footer]{border-block-start:var(--slotted-border-width-thin, 1px) solid var(--_rule);color:var(--_muted);font-size:var(--slotted-font-size-xs, .75rem);line-height:var(--slotted-line-height-xs, 1.4);padding-block:var(--slotted-space-4, .5rem);padding-inline:calc(var(--_list-inset) + var(--_option-inset))}[data-ui=transfer][data-invalid]>[data-part=body]>[data-part=pane]{--_edge: var(--slotted-tone-danger-border, Mark);--_invalid-edge-width: var(--slotted-control-invalid-edge-width, 1px);--_shadow: inset 0 0 0 var(--_invalid-edge-width) var(--_edge)}[data-ui=transfer][data-disabled]{--_surface: var(--slotted-disabled-background, Canvas);--_edge: var(--slotted-disabled-border, GrayText);--_text: var(--slotted-disabled-foreground, GrayText);--_muted: var(--slotted-disabled-foreground, GrayText);--_shadow: none}[data-ui=transfer]>[data-part=body]>[data-part=actions]{display:grid;gap:var(--slotted-space-3, .375rem);grid-auto-rows:auto;min-inline-size:0}[data-ui=transfer]>[data-part=body]>[data-part=actions]>[data-part=move-to-source],[data-ui=transfer]>[data-part=body]>[data-part=actions]>[data-part=reorder]{margin-block-start:var(--slotted-space-4, .5rem)}[data-ui=transfer]>[data-part=body]>[data-part=actions]>[data-ui=button]{inline-size:100%}[data-ui=transfer]>[data-part=body]>[data-part=actions]>[data-part=reorder]{display:grid;gap:var(--slotted-space-3, .375rem)}[data-ui=transfer]>[data-part=body]>[data-part=actions]>[data-part=reorder]>[data-ui=button]{inline-size:100%}[data-ui=transfer]>[data-part=body]>[data-part=actions]>:is([data-part=move-to-source],[data-part=move-all-to-source])>[data-part=start]>[data-ui=icon],[data-ui=transfer]:dir(rtl)>[data-part=body]>[data-part=actions]>:is([data-part=move-to-target],[data-part=move-all-to-target])>[data-part=end]>[data-ui=icon]{scale:-1 1}[data-ui=transfer]:dir(rtl)>[data-part=body]>[data-part=actions]>:is([data-part=move-to-source],[data-part=move-all-to-source])>[data-part=start]>[data-ui=icon]{scale:1 1}[data-ui=transfer]>[data-part=body]>[data-part=actions]>[data-part=reorder]>[data-part=move-up]>[data-part=start]>[data-ui=icon]{scale:1 -1}[data-ui=transfer][data-layout=steps]>[data-part=switch]{display:block}[data-ui=transfer][data-layout=steps]>[data-part=body]{grid-template-columns:minmax(0,1fr);row-gap:var(--slotted-space-4, .5rem)}[data-ui=transfer][data-layout=steps]>[data-part=body]>[data-part=pane]:not([data-current]){display:none}[data-ui=transfer][data-layout=steps]>[data-part=body]>[data-part=actions]{grid-template-columns:repeat(2,minmax(0,1fr))}[data-ui=transfer][data-layout=steps]>[data-part=body]>[data-part=actions]>:is([data-part=move-to-source],[data-part=reorder]){margin-block-start:0}[data-ui=transfer][data-layout=steps][data-pane=source]>[data-part=body]>[data-part=actions]>:is([data-part=move-to-source],[data-part=move-all-to-source],[data-part=reorder]),[data-ui=transfer][data-layout=steps][data-pane=target]>[data-part=body]>[data-part=actions]>:is([data-part=move-to-target],[data-part=move-all-to-target]){display:none}[data-ui=transfer][data-layout=steps]>[data-part=body]>[data-part=actions]>[data-part=reorder]{grid-column:1 / -1;grid-template-columns:repeat(2,minmax(0,1fr))}@container transfer (inline-size < 36rem){[data-ui=transfer][data-layout=auto]>[data-part=switch]{display:block}[data-ui=transfer][data-layout=auto]>[data-part=body]{grid-template-columns:minmax(0,1fr);row-gap:var(--slotted-space-4, .5rem)}[data-ui=transfer][data-layout=auto]>[data-part=body]>[data-part=pane]:not([data-current]){display:none}[data-ui=transfer][data-layout=auto]>[data-part=body]>[data-part=actions]{grid-template-columns:repeat(2,minmax(0,1fr))}[data-ui=transfer][data-layout=auto]>[data-part=body]>[data-part=actions]>:is([data-part=move-to-source],[data-part=reorder]){margin-block-start:0}[data-ui=transfer][data-layout=auto][data-pane=source]>[data-part=body]>[data-part=actions]>:is([data-part=move-to-source],[data-part=move-all-to-source],[data-part=reorder]),[data-ui=transfer][data-layout=auto][data-pane=target]>[data-part=body]>[data-part=actions]>:is([data-part=move-to-target],[data-part=move-all-to-target]){display:none}[data-ui=transfer][data-layout=auto]>[data-part=body]>[data-part=actions]>[data-part=reorder]{grid-column:1 / -1;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(forced-colors:active){[data-ui=transfer][data-invalid]>[data-part=body]>[data-part=pane]{outline:var(--_invalid-edge-width) solid CanvasText;outline-offset:calc(-1 * (var(--slotted-border-width-thin, 1px) + var(--_invalid-edge-width)))}}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SlButton, selector: "button[slButton]", inputs: ["disabled", "focusableWhenDisabled", "fullWidth", "loading", "loadingDelay", "messages", "size", "tone", "type", "variant"], exportAs: ["slButton"] }, { kind: "component", type: SlButtonEnd, selector: "[slButtonEnd]", exportAs: ["slButtonEnd"] }, { kind: "component", type: SlButtonStart, selector: "[slButtonStart]", exportAs: ["slButtonStart"] }, { kind: "component", type: SlCheckbox, selector: "[slCheckbox]", inputs: ["checked", "defaultChecked", "indeterminate", "parent", "value", "name", "size", "labelPlacement", "variant", "disabled", "readOnly", "invalid"], outputs: ["checkedChange"], exportAs: ["slCheckbox"] }, { kind: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }, { kind: "component", type: SlListbox, selector: "[slListbox]", inputs: ["value", "defaultValue", "activeKey", "defaultActiveKey", "selectionMode", "selectionBehavior", "size", "variant", "orientation", "focusMode", "indicator", "loop", "typeahead", "selectOnFocus", "navigateDisabled", "disallowEmptySelection", "disallowSelectAll", "rows", "columns", "pageSize", "typeaheadTimeout", "disabled", "readOnly", "required", "invalid", "loading", "items", "sections", "getKey", "getLabel", "isItemDisabled", "totalCount", "virtual", "itemSize", "sectionSize", "overscan", "hasMore", "loadMoreThreshold"], outputs: ["valueChange", "activeKeyChange", "loadMore"], exportAs: ["slListbox"] }, { kind: "directive", type: SlListboxDescription, selector: "[slListboxDescription]" }, { kind: "directive", type: SlListboxEmpty, selector: "[slListboxEmpty]" }, { kind: "component", type: SlListboxIndicator, selector: "[slListboxIndicator]" }, { kind: "directive", type: SlListboxLabel, selector: "[slListboxLabel]" }, { kind: "directive", type: SlListboxLoader, selector: "[slListboxLoader]" }, { kind: "directive", type: SlListboxOptionContent, selector: "[slListboxOptionContent]" }, { kind: "component", type: SlSegment, selector: "[slSegment]", inputs: ["value", "disabled"], exportAs: ["slSegment"] }, { kind: "component", type: SlSegmentedControl, selector: "[slSegmentedControl]", inputs: ["value", "defaultValue", "name", "size", "orientation", "condense", "fullWidth", "disabled", "readOnly", "invalid", "required"], outputs: ["valueChange"], exportAs: ["slSegmentedControl"] }, { kind: "component", type: SlTextField, selector: "[slTextField]", inputs: ["size", "variant", "mono", "clearable", "revealable", "copyable", "messages", "loading"], outputs: ["valueCopy"], exportAs: ["slTextField"] }, { kind: "directive", type: SlTextFieldInput, selector: "input[slTextFieldInput]", inputs: ["value", "defaultValue", "disabled", "readOnly", "invalid", "showCount", "countMax", "revealed", "defaultRevealed", "type"], outputs: ["valueChange", "revealedChange"], exportAs: ["slTextFieldInput"] }, { kind: "directive", type: SlTextFieldStart, selector: "[slTextFieldStart]", exportAs: ["slTextFieldStart"] }, { kind: "directive", type: SlTransferPart, selector: "[slTransferPart]", inputs: ["slTransferPart"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1107
|
+
}
|
|
1108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTransfer, decorators: [{
|
|
1109
|
+
type: Component,
|
|
1110
|
+
args: [{ selector: '[slTransfer]', standalone: true, exportAs: 'slTransfer', imports: [
|
|
1111
|
+
NgTemplateOutlet,
|
|
1112
|
+
SlButton,
|
|
1113
|
+
SlButtonEnd,
|
|
1114
|
+
SlButtonStart,
|
|
1115
|
+
SlCheckbox,
|
|
1116
|
+
SlGlyph,
|
|
1117
|
+
SlIcon,
|
|
1118
|
+
SlListbox,
|
|
1119
|
+
SlListboxDescription,
|
|
1120
|
+
SlListboxEmpty,
|
|
1121
|
+
SlListboxIndicator,
|
|
1122
|
+
SlListboxLabel,
|
|
1123
|
+
SlListboxLoader,
|
|
1124
|
+
SlListboxOptionContent,
|
|
1125
|
+
SlSegment,
|
|
1126
|
+
SlSegmentedControl,
|
|
1127
|
+
SlTextField,
|
|
1128
|
+
SlTextFieldInput,
|
|
1129
|
+
SlTextFieldStart,
|
|
1130
|
+
SlTransferPart,
|
|
1131
|
+
], template: `
|
|
1132
|
+
<div data-part="switch">
|
|
1133
|
+
<div
|
|
1134
|
+
slSegmentedControl
|
|
1135
|
+
[attr.aria-label]="t('panes')"
|
|
1136
|
+
[disabled]="isDisabled()"
|
|
1137
|
+
[fullWidth]="true"
|
|
1138
|
+
[size]="resolvedSize()"
|
|
1139
|
+
[value]="currentPane()"
|
|
1140
|
+
(valueChange)="onSwitch($event)"
|
|
1141
|
+
>
|
|
1142
|
+
@for (side of sides; track side) {
|
|
1143
|
+
<label slSegment [value]="side">{{ paneCount(side) }}</label>
|
|
1144
|
+
}
|
|
1145
|
+
</div>
|
|
1146
|
+
</div>
|
|
1147
|
+
<div data-part="body">
|
|
1148
|
+
<ng-container
|
|
1149
|
+
[ngTemplateOutlet]="paneTemplate"
|
|
1150
|
+
[ngTemplateOutletContext]="{ $implicit: 'source' }"
|
|
1151
|
+
/>
|
|
1152
|
+
<div data-part="actions" role="group" [attr.aria-label]="t('actions')">
|
|
1153
|
+
<button
|
|
1154
|
+
slButton
|
|
1155
|
+
slTransferPart="move-to-target"
|
|
1156
|
+
tone="secondary"
|
|
1157
|
+
variant="outline"
|
|
1158
|
+
aria-keyshortcuts="Enter"
|
|
1159
|
+
[size]="innerSize()"
|
|
1160
|
+
[disabled]="frozen() || selectedToMove('source').length === 0"
|
|
1161
|
+
[focusableWhenDisabled]="!isDisabled()"
|
|
1162
|
+
(click)="move(selectedToMove('source'), 'target', pressReason($event), $event)"
|
|
1163
|
+
>
|
|
1164
|
+
{{ t('moveToTarget')
|
|
1165
|
+
}}<span slButtonEnd aria-hidden="true"
|
|
1166
|
+
><span slIcon><svg slGlyph name="chevron-right"></svg></span
|
|
1167
|
+
></span>
|
|
1168
|
+
</button>
|
|
1169
|
+
<button
|
|
1170
|
+
slButton
|
|
1171
|
+
slTransferPart="move-all-to-target"
|
|
1172
|
+
tone="secondary"
|
|
1173
|
+
variant="outline"
|
|
1174
|
+
[size]="innerSize()"
|
|
1175
|
+
[disabled]="frozen() || enabledVisible('source').length === 0"
|
|
1176
|
+
[focusableWhenDisabled]="!isDisabled()"
|
|
1177
|
+
(click)="move(enabledVisible('source'), 'target', pressReason($event), $event)"
|
|
1178
|
+
>
|
|
1179
|
+
{{ t('moveAllToTarget')
|
|
1180
|
+
}}<span slButtonEnd aria-hidden="true"
|
|
1181
|
+
><span slIcon><svg slGlyph name="chevrons-right"></svg></span
|
|
1182
|
+
></span>
|
|
1183
|
+
</button>
|
|
1184
|
+
<button
|
|
1185
|
+
slButton
|
|
1186
|
+
slTransferPart="move-to-source"
|
|
1187
|
+
tone="secondary"
|
|
1188
|
+
variant="outline"
|
|
1189
|
+
aria-keyshortcuts="Delete"
|
|
1190
|
+
[size]="innerSize()"
|
|
1191
|
+
[disabled]="frozen() || selectedToMove('target').length === 0"
|
|
1192
|
+
[focusableWhenDisabled]="!isDisabled()"
|
|
1193
|
+
(click)="move(selectedToMove('target'), 'source', pressReason($event), $event)"
|
|
1194
|
+
>
|
|
1195
|
+
<span slButtonStart aria-hidden="true"
|
|
1196
|
+
><span slIcon><svg slGlyph name="chevron-right"></svg></span></span
|
|
1197
|
+
>{{ t('moveToSource') }}
|
|
1198
|
+
</button>
|
|
1199
|
+
<button
|
|
1200
|
+
slButton
|
|
1201
|
+
slTransferPart="move-all-to-source"
|
|
1202
|
+
tone="secondary"
|
|
1203
|
+
variant="outline"
|
|
1204
|
+
[size]="innerSize()"
|
|
1205
|
+
[disabled]="frozen() || enabledVisible('target').length === 0"
|
|
1206
|
+
[focusableWhenDisabled]="!isDisabled()"
|
|
1207
|
+
(click)="move(enabledVisible('target'), 'source', pressReason($event), $event)"
|
|
1208
|
+
>
|
|
1209
|
+
<span slButtonStart aria-hidden="true"
|
|
1210
|
+
><span slIcon><svg slGlyph name="chevrons-right"></svg></span></span
|
|
1211
|
+
>{{ t('moveAllToSource') }}
|
|
1212
|
+
</button>
|
|
1213
|
+
@if (resolvedReorderable()) {
|
|
1214
|
+
<div data-part="reorder" role="group" [attr.aria-label]="t('reorder')">
|
|
1215
|
+
<button
|
|
1216
|
+
slButton
|
|
1217
|
+
slTransferPart="move-up"
|
|
1218
|
+
tone="secondary"
|
|
1219
|
+
variant="ghost"
|
|
1220
|
+
aria-keyshortcuts="Alt+ArrowUp"
|
|
1221
|
+
[size]="innerSize()"
|
|
1222
|
+
[disabled]="frozen() || !canReorder() || selectedToMove('target').length === 0"
|
|
1223
|
+
[focusableWhenDisabled]="!isDisabled()"
|
|
1224
|
+
(click)="shift(-1, pressReason($event), $event, false)"
|
|
1225
|
+
>
|
|
1226
|
+
<span slButtonStart aria-hidden="true"
|
|
1227
|
+
><span slIcon><svg slGlyph name="chevron-down"></svg></span></span
|
|
1228
|
+
>{{ t('moveUp') }}
|
|
1229
|
+
</button>
|
|
1230
|
+
<button
|
|
1231
|
+
slButton
|
|
1232
|
+
slTransferPart="move-down"
|
|
1233
|
+
tone="secondary"
|
|
1234
|
+
variant="ghost"
|
|
1235
|
+
aria-keyshortcuts="Alt+ArrowDown"
|
|
1236
|
+
[size]="innerSize()"
|
|
1237
|
+
[disabled]="frozen() || !canReorder() || selectedToMove('target').length === 0"
|
|
1238
|
+
[focusableWhenDisabled]="!isDisabled()"
|
|
1239
|
+
(click)="shift(1, pressReason($event), $event, false)"
|
|
1240
|
+
>
|
|
1241
|
+
<span slButtonStart aria-hidden="true"
|
|
1242
|
+
><span slIcon><svg slGlyph name="chevron-down"></svg></span></span
|
|
1243
|
+
>{{ t('moveDown') }}
|
|
1244
|
+
</button>
|
|
1245
|
+
</div>
|
|
1246
|
+
}
|
|
1247
|
+
</div>
|
|
1248
|
+
<ng-container
|
|
1249
|
+
[ngTemplateOutlet]="paneTemplate"
|
|
1250
|
+
[ngTemplateOutletContext]="{ $implicit: 'target' }"
|
|
1251
|
+
/>
|
|
1252
|
+
</div>
|
|
1253
|
+
@if (name(); as field) {
|
|
1254
|
+
@for (key of partition().target; track key) {
|
|
1255
|
+
<input type="hidden" [attr.name]="field" [value]="key" />
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
<ng-template #paneTemplate let-side>
|
|
1260
|
+
<div
|
|
1261
|
+
data-part="pane"
|
|
1262
|
+
role="group"
|
|
1263
|
+
[attr.data-side]="side"
|
|
1264
|
+
[attr.aria-labelledby]="titleId(side)"
|
|
1265
|
+
[attr.data-current]="currentPane() === side ? '' : null"
|
|
1266
|
+
[attr.data-drop-target]="dropTarget(side) ? '' : null"
|
|
1267
|
+
>
|
|
1268
|
+
<div data-part="pane-header">
|
|
1269
|
+
@if (resolvedSelectAll()) {
|
|
1270
|
+
<span data-part="select-all">
|
|
1271
|
+
<div
|
|
1272
|
+
slCheckbox
|
|
1273
|
+
[size]="resolvedSize()"
|
|
1274
|
+
[checked]="selectAllState(side) === 'all'"
|
|
1275
|
+
[indeterminate]="selectAllState(side) === 'some'"
|
|
1276
|
+
[disabled]="isDisabled() || enabledVisible(side).length === 0"
|
|
1277
|
+
(checkedChange)="onSelectAll(side, $event)"
|
|
1278
|
+
></div>
|
|
1279
|
+
</span>
|
|
1280
|
+
}
|
|
1281
|
+
<span data-part="title" [attr.id]="titleId(side)">{{ title(side) }}</span>
|
|
1282
|
+
<span data-part="count">{{ countText(side) }}</span>
|
|
1283
|
+
</div>
|
|
1284
|
+
@if (resolvedSearchable()) {
|
|
1285
|
+
<div data-part="search">
|
|
1286
|
+
<div slTextField [clearable]="true" [size]="innerSize()">
|
|
1287
|
+
<span slTextFieldStart aria-hidden="true"
|
|
1288
|
+
><span data-part="search-icon"
|
|
1289
|
+
><span slIcon><svg slGlyph name="search"></svg></span></span
|
|
1290
|
+
></span>
|
|
1291
|
+
<input
|
|
1292
|
+
slTextFieldInput
|
|
1293
|
+
type="search"
|
|
1294
|
+
[disabled]="isDisabled()"
|
|
1295
|
+
[value]="queryOf(side)"
|
|
1296
|
+
[attr.aria-label]="t('search', { pane: title(side) })"
|
|
1297
|
+
[attr.placeholder]="t('search', { pane: title(side) })"
|
|
1298
|
+
(valueChange)="onQuery(side, $event)"
|
|
1299
|
+
/>
|
|
1300
|
+
</div>
|
|
1301
|
+
</div>
|
|
1302
|
+
}
|
|
1303
|
+
<div data-part="list" [attr.data-side]="side" (focusin)="onListFocus(side, $event)">
|
|
1304
|
+
<div
|
|
1305
|
+
slListbox
|
|
1306
|
+
variant="plain"
|
|
1307
|
+
selectionMode="multiple"
|
|
1308
|
+
[attr.aria-labelledby]="titleId(side)"
|
|
1309
|
+
[size]="resolvedSize()"
|
|
1310
|
+
[rows]="resolvedRows()"
|
|
1311
|
+
[items]="entriesOf(side)"
|
|
1312
|
+
[getKey]="entryKey"
|
|
1313
|
+
[getLabel]="entryLabel"
|
|
1314
|
+
[isItemDisabled]="entryDisabled"
|
|
1315
|
+
[activeKey]="activeOf(side)"
|
|
1316
|
+
[value]="selectionFor(side)"
|
|
1317
|
+
[disabled]="isDisabled()"
|
|
1318
|
+
[invalid]="isInvalid()"
|
|
1319
|
+
[required]="required()"
|
|
1320
|
+
[virtual]="virtual() && itemSize() !== undefined"
|
|
1321
|
+
[itemSize]="itemSize()"
|
|
1322
|
+
[overscan]="overscan()"
|
|
1323
|
+
[loading]="side === 'source' && loading()"
|
|
1324
|
+
[hasMore]="side === 'source' && hasMore()"
|
|
1325
|
+
(loadMore)="loadMore.emit()"
|
|
1326
|
+
(activeKeyChange)="setActive(side, $event.value)"
|
|
1327
|
+
(valueChange)="onPaneSelection(side, $event)"
|
|
1328
|
+
>
|
|
1329
|
+
<ng-template slListboxOptionContent let-entry>
|
|
1330
|
+
<span
|
|
1331
|
+
slListboxIndicator
|
|
1332
|
+
[attr.data-dragging]="dragging().has(entry.key) ? '' : null"
|
|
1333
|
+
[attr.data-unresolved]="entry.item === undefined ? '' : null"
|
|
1334
|
+
></span>
|
|
1335
|
+
@if (entry.item === undefined) {
|
|
1336
|
+
<span slListboxLabel>{{ entry.key }}</span>
|
|
1337
|
+
} @else if (itemTemplate(); as template) {
|
|
1338
|
+
<ng-container
|
|
1339
|
+
[ngTemplateOutlet]="template"
|
|
1340
|
+
[ngTemplateOutletContext]="{ $implicit: entry.item, side: side }"
|
|
1341
|
+
/>
|
|
1342
|
+
} @else {
|
|
1343
|
+
<span slListboxLabel>{{ labelOf(entry.key) }}</span>
|
|
1344
|
+
@if (descriptionOf(entry.item); as description) {
|
|
1345
|
+
<span slListboxDescription>{{ description }}</span>
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
</ng-template>
|
|
1349
|
+
@if (isEmpty(side)) {
|
|
1350
|
+
<div slListboxEmpty>
|
|
1351
|
+
<div data-part="empty" [attr.data-query]="typed(side) ? '' : null">
|
|
1352
|
+
<span slIcon
|
|
1353
|
+
><svg slGlyph [name]="typed(side) ? 'search-x' : 'inbox'"></svg
|
|
1354
|
+
></span>
|
|
1355
|
+
{{ typed(side) ? t('noResults') : t('empty') }}
|
|
1356
|
+
</div>
|
|
1357
|
+
</div>
|
|
1358
|
+
}
|
|
1359
|
+
@if (side === 'source' && hasMore()) {
|
|
1360
|
+
<div slListboxLoader>{{ t('loading') }}</div>
|
|
1361
|
+
}
|
|
1362
|
+
</div>
|
|
1363
|
+
@if (side === 'target' && dropOffset() !== null) {
|
|
1364
|
+
<div
|
|
1365
|
+
data-part="drop-indicator"
|
|
1366
|
+
aria-hidden="true"
|
|
1367
|
+
[style.--_drop-offset]="dropOffset() + 'px'"
|
|
1368
|
+
></div>
|
|
1369
|
+
}
|
|
1370
|
+
</div>
|
|
1371
|
+
@if (footerTemplate(); as footer) {
|
|
1372
|
+
<div data-part="pane-footer">
|
|
1373
|
+
<ng-container
|
|
1374
|
+
[ngTemplateOutlet]="footer"
|
|
1375
|
+
[ngTemplateOutletContext]="{ $implicit: side }"
|
|
1376
|
+
/>
|
|
1377
|
+
</div>
|
|
1378
|
+
}
|
|
1379
|
+
</div>
|
|
1380
|
+
</ng-template>
|
|
1381
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
|
1382
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlTransfer), multi: true },
|
|
1383
|
+
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => SlTransfer), multi: true },
|
|
1384
|
+
], host: {
|
|
1385
|
+
'data-ui': 'transfer',
|
|
1386
|
+
'data-part': 'root',
|
|
1387
|
+
'[attr.role]': 'writtenRole ?? "group"',
|
|
1388
|
+
'[attr.data-layout]': 'resolvedLayout()',
|
|
1389
|
+
'[attr.data-size]': 'resolvedSize()',
|
|
1390
|
+
'[attr.data-pane]': 'currentPane()',
|
|
1391
|
+
'[attr.data-disabled]': 'isDisabled() ? "" : null',
|
|
1392
|
+
'[attr.aria-disabled]': 'isDisabled() ? "true" : null',
|
|
1393
|
+
'[attr.data-readonly]': 'readOnly() ? "" : null',
|
|
1394
|
+
'[attr.data-invalid]': 'isInvalid() ? "" : null',
|
|
1395
|
+
'[attr.data-required]': 'required() ? "" : null',
|
|
1396
|
+
'[attr.data-loading]': 'loading() ? "" : null',
|
|
1397
|
+
'[style.--slotted-transfer-rows]': 'resolvedRows()',
|
|
1398
|
+
}, styles: ["@layer slotted.components{[data-ui=transfer]{--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_rule: var(--slotted-border-subtle, ButtonBorder);--_edge: var(--slotted-control-border-color, ButtonBorder);--_surface: var(--slotted-control-surface, Field);--_shadow: var(--slotted-control-shadow, none);--_radius: var(--slotted-radius-md, 6px);--_pane-min: var(--slotted-transfer-pane-min-inline-size, 13rem);--_gap: var(--slotted-space-5, .75rem);--_rows: var(--slotted-transfer-rows, 8);--_duration: var(--slotted-control-transition-duration);--_easing: var(--slotted-control-transition-easing);--_option-height: var(--slotted-control-height-md, 34px);--_option-inset: var(--slotted-control-padding-inline-md, 13px);--_mark: var(--slotted-control-icon-size-md, 16px);--_box: var(--slotted-selection-size-md, 16px);--_font-size: var(--slotted-control-font-size-md, 13px);--_list-inset: var(--slotted-listbox-padding-block, var(--slotted-space-2, .25rem));box-sizing:border-box;color:var(--_text);display:grid;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);font-size:var(--_font-size);line-height:var(--slotted-line-height-md, 1.5);min-inline-size:0;row-gap:var(--_gap);text-align:start;container-name:transfer;container-type:inline-size}[data-ui=transfer][data-size=sm]{--_option-height: var(--slotted-control-height-sm, 30px);--_option-inset: var(--slotted-control-padding-inline-sm, 10px);--_mark: var(--slotted-control-icon-size-sm, 14px);--_box: var(--slotted-selection-size-sm, 14px);--_font-size: var(--slotted-control-font-size-sm, 12px)}[data-ui=transfer][data-size=lg]{--_option-height: var(--slotted-control-height-lg, 38px);--_option-inset: var(--slotted-control-padding-inline-lg, 16px);--_mark: var(--slotted-control-icon-size-lg, 18px);--_box: var(--slotted-selection-size-lg, 18px);--_font-size: var(--slotted-control-font-size-lg, 14px)}[data-ui=transfer]>[data-part=switch]{display:none}[data-ui=transfer]>[data-part=switch]>[data-ui=segmented-control]{inline-size:100%}[data-ui=transfer]>[data-part=body]{align-items:center;column-gap:var(--_gap);display:grid;grid-template-columns:minmax(var(--_pane-min),1fr) max-content minmax(var(--_pane-min),1fr);min-inline-size:0}[data-ui=transfer]>[data-part=body]>[data-part=pane]{align-self:stretch;background:var(--_surface);border:var(--slotted-border-width-thin, 1px) solid var(--_edge);border-radius:var(--_radius);box-shadow:var(--_shadow);box-sizing:border-box;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;min-inline-size:0;overflow:clip;transition:border-color var(--_duration) var(--_easing),box-shadow var(--_duration) var(--_easing)}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=pane-header]{align-items:center;column-gap:var(--slotted-space-4, .5rem);display:flex;min-block-size:var(--_option-height);padding-block:var(--slotted-space-3, .375rem);padding-inline-end:calc(var(--_list-inset) + var(--_option-inset));padding-inline-start:calc(var(--_list-inset) + var(--_option-inset) - (var(--_box) - var(--_mark)) / 2)}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=pane-header]>[data-part=select-all]{display:inline-flex;flex:none}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=pane-header]>[data-part=select-all]>[data-ui=checkbox]{column-gap:0}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=pane-header]>[data-part=title]{color:var(--_text);font-weight:var(--slotted-font-weight-semibold, 600);min-inline-size:0;overflow-wrap:anywhere}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=pane-header]>[data-part=count]{color:var(--_muted);flex:none;font-size:var(--slotted-font-size-xs, .75rem);font-variant-numeric:tabular-nums;line-height:var(--slotted-line-height-xs, 1.4);margin-inline-start:auto;white-space:nowrap}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=search]{padding-block-end:var(--slotted-space-4, .5rem);padding-inline:var(--slotted-space-4, .5rem)}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=search]>[data-ui=text-field]{inline-size:100%}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=search] [data-part=search-icon]{display:inline-flex;flex:none}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]{block-size:calc(var(--_rows) * var(--_option-height) + 2 * var(--_list-inset));border-block-start:var(--slotted-border-width-thin, 1px) solid var(--_rule);box-sizing:content-box;min-block-size:0;position:relative}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]>[data-ui=listbox]{--slotted-listbox-measure: none;block-size:100%;max-block-size:100%}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]>[data-ui=listbox]:has(>[data-part=empty]){align-content:center}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]>[data-ui=listbox]>[data-part=empty]>[data-part=empty]{--slotted-icon-size: var(--_mark);display:grid;justify-items:center;row-gap:var(--slotted-space-3, .375rem)}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]>[data-ui=listbox] [data-part=option]:has(>[data-part=indicator][data-unresolved]){color:var(--_muted);font-family:var(--slotted-font-family-mono, ui-monospace, monospace)}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]>[data-part=drop-indicator]{block-size:0;inset-block-start:var(--_drop-offset, 0);inset-inline:calc(var(--_list-inset) + var(--slotted-space-2, .25rem));pointer-events:none;position:absolute}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]>[data-part=drop-indicator]:before{background-color:var(--slotted-tone-accent-solid);block-size:var(--slotted-border-width-thick, 2px);border-radius:var(--slotted-radius-full, 9999px);content:\"\";inset-block-start:calc(var(--slotted-border-width-thick, 2px) / -2);inset-inline:0;position:absolute}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=list]>[data-ui=listbox] [data-part=option]:has(>[data-part=indicator][data-dragging]){opacity:.5}[data-ui=transfer]>[data-part=body]>[data-part=pane][data-drop-target]{border-color:var(--slotted-tone-accent-border, Highlight);box-shadow:0 0 0 var(--slotted-border-width-thin, 1px) var(--slotted-tone-accent-border, Highlight)}[data-ui=transfer]>[data-part=body]>[data-part=pane]>[data-part=pane-footer]{border-block-start:var(--slotted-border-width-thin, 1px) solid var(--_rule);color:var(--_muted);font-size:var(--slotted-font-size-xs, .75rem);line-height:var(--slotted-line-height-xs, 1.4);padding-block:var(--slotted-space-4, .5rem);padding-inline:calc(var(--_list-inset) + var(--_option-inset))}[data-ui=transfer][data-invalid]>[data-part=body]>[data-part=pane]{--_edge: var(--slotted-tone-danger-border, Mark);--_invalid-edge-width: var(--slotted-control-invalid-edge-width, 1px);--_shadow: inset 0 0 0 var(--_invalid-edge-width) var(--_edge)}[data-ui=transfer][data-disabled]{--_surface: var(--slotted-disabled-background, Canvas);--_edge: var(--slotted-disabled-border, GrayText);--_text: var(--slotted-disabled-foreground, GrayText);--_muted: var(--slotted-disabled-foreground, GrayText);--_shadow: none}[data-ui=transfer]>[data-part=body]>[data-part=actions]{display:grid;gap:var(--slotted-space-3, .375rem);grid-auto-rows:auto;min-inline-size:0}[data-ui=transfer]>[data-part=body]>[data-part=actions]>[data-part=move-to-source],[data-ui=transfer]>[data-part=body]>[data-part=actions]>[data-part=reorder]{margin-block-start:var(--slotted-space-4, .5rem)}[data-ui=transfer]>[data-part=body]>[data-part=actions]>[data-ui=button]{inline-size:100%}[data-ui=transfer]>[data-part=body]>[data-part=actions]>[data-part=reorder]{display:grid;gap:var(--slotted-space-3, .375rem)}[data-ui=transfer]>[data-part=body]>[data-part=actions]>[data-part=reorder]>[data-ui=button]{inline-size:100%}[data-ui=transfer]>[data-part=body]>[data-part=actions]>:is([data-part=move-to-source],[data-part=move-all-to-source])>[data-part=start]>[data-ui=icon],[data-ui=transfer]:dir(rtl)>[data-part=body]>[data-part=actions]>:is([data-part=move-to-target],[data-part=move-all-to-target])>[data-part=end]>[data-ui=icon]{scale:-1 1}[data-ui=transfer]:dir(rtl)>[data-part=body]>[data-part=actions]>:is([data-part=move-to-source],[data-part=move-all-to-source])>[data-part=start]>[data-ui=icon]{scale:1 1}[data-ui=transfer]>[data-part=body]>[data-part=actions]>[data-part=reorder]>[data-part=move-up]>[data-part=start]>[data-ui=icon]{scale:1 -1}[data-ui=transfer][data-layout=steps]>[data-part=switch]{display:block}[data-ui=transfer][data-layout=steps]>[data-part=body]{grid-template-columns:minmax(0,1fr);row-gap:var(--slotted-space-4, .5rem)}[data-ui=transfer][data-layout=steps]>[data-part=body]>[data-part=pane]:not([data-current]){display:none}[data-ui=transfer][data-layout=steps]>[data-part=body]>[data-part=actions]{grid-template-columns:repeat(2,minmax(0,1fr))}[data-ui=transfer][data-layout=steps]>[data-part=body]>[data-part=actions]>:is([data-part=move-to-source],[data-part=reorder]){margin-block-start:0}[data-ui=transfer][data-layout=steps][data-pane=source]>[data-part=body]>[data-part=actions]>:is([data-part=move-to-source],[data-part=move-all-to-source],[data-part=reorder]),[data-ui=transfer][data-layout=steps][data-pane=target]>[data-part=body]>[data-part=actions]>:is([data-part=move-to-target],[data-part=move-all-to-target]){display:none}[data-ui=transfer][data-layout=steps]>[data-part=body]>[data-part=actions]>[data-part=reorder]{grid-column:1 / -1;grid-template-columns:repeat(2,minmax(0,1fr))}@container transfer (inline-size < 36rem){[data-ui=transfer][data-layout=auto]>[data-part=switch]{display:block}[data-ui=transfer][data-layout=auto]>[data-part=body]{grid-template-columns:minmax(0,1fr);row-gap:var(--slotted-space-4, .5rem)}[data-ui=transfer][data-layout=auto]>[data-part=body]>[data-part=pane]:not([data-current]){display:none}[data-ui=transfer][data-layout=auto]>[data-part=body]>[data-part=actions]{grid-template-columns:repeat(2,minmax(0,1fr))}[data-ui=transfer][data-layout=auto]>[data-part=body]>[data-part=actions]>:is([data-part=move-to-source],[data-part=reorder]){margin-block-start:0}[data-ui=transfer][data-layout=auto][data-pane=source]>[data-part=body]>[data-part=actions]>:is([data-part=move-to-source],[data-part=move-all-to-source],[data-part=reorder]),[data-ui=transfer][data-layout=auto][data-pane=target]>[data-part=body]>[data-part=actions]>:is([data-part=move-to-target],[data-part=move-all-to-target]){display:none}[data-ui=transfer][data-layout=auto]>[data-part=body]>[data-part=actions]>[data-part=reorder]{grid-column:1 / -1;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(forced-colors:active){[data-ui=transfer][data-invalid]>[data-part=body]>[data-part=pane]{outline:var(--_invalid-edge-width) solid CanvasText;outline-offset:calc(-1 * (var(--slotted-border-width-thin, 1px) + var(--_invalid-edge-width)))}}}\n"] }]
|
|
1399
|
+
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], getKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "getKey", required: false }] }], getLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "getLabel", required: false }] }], getDescription: [{ type: i0.Input, args: [{ isSignal: true, alias: "getDescription", required: false }] }], isItemDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "isItemDisabled", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], targetKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetKeys", required: false }] }, { type: i0.Output, args: ["targetKeysChange"] }], defaultTargetKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultTargetKeys", required: false }] }], selectedKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedKeys", required: false }] }, { type: i0.Output, args: ["selectedKeysChange"] }], defaultSelectedKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultSelectedKeys", required: false }] }], sourceQuery: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceQuery", required: false }] }, { type: i0.Output, args: ["sourceQueryChange"] }], defaultSourceQuery: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultSourceQuery", required: false }] }], targetQuery: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetQuery", required: false }] }, { type: i0.Output, args: ["targetQueryChange"] }], defaultTargetQuery: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultTargetQuery", required: false }] }], pane: [{ type: i0.Input, args: [{ isSignal: true, alias: "pane", required: false }] }, { type: i0.Output, args: ["paneChange"] }], defaultPane: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultPane", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], selectAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAll", required: false }] }], reorderable: [{ type: i0.Input, args: [{ isSignal: true, alias: "reorderable", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], virtual: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtual", required: false }] }], itemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSize", required: false }] }], overscan: [{ type: i0.Input, args: [{ isSignal: true, alias: "overscan", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], hasMore: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasMore", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], targetKeysChangeRequest: [{ type: i0.Output, args: ["targetKeysChangeRequest"] }], selectedKeysChangeRequest: [{ type: i0.Output, args: ["selectedKeysChangeRequest"] }], sourceQueryChangeRequest: [{ type: i0.Output, args: ["sourceQueryChangeRequest"] }], targetQueryChangeRequest: [{ type: i0.Output, args: ["targetQueryChangeRequest"] }], paneChangeRequest: [{ type: i0.Output, args: ["paneChangeRequest"] }], loadMore: [{ type: i0.Output, args: ["loadMore"] }], itemTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlTransferItem), { ...{ read: TemplateRef }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlTransferFooter), { ...{ read: TemplateRef }, isSignal: true }] }], listboxes: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => SlListbox), { isSignal: true }] }] } });
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Generated bundle index. Do not edit.
|
|
1403
|
+
*/
|
|
1404
|
+
|
|
1405
|
+
export { SlTransfer, SlTransferFooter, SlTransferIdFactory, SlTransferItem, SlTransferPart, TRANSFER_DEFAULTS, injectTransferDefaults, provideTransferDefaults };
|
|
1406
|
+
//# sourceMappingURL=slotted-angular-transfer.mjs.map
|