@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,1987 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InjectionToken, inject, TemplateRef, Directive, booleanAttribute, numberAttribute, input, model, output, contentChild, ElementRef, ViewContainerRef, HostAttributeToken, viewChild, signal, computed, DestroyRef, effect, untracked, afterRenderEffect, afterNextRender, forwardRef, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
+
import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
|
|
5
|
+
import { injectMessages, injectLocale } from '@slotted/angular/i18n';
|
|
6
|
+
import { SlGlyph, SlIcon } from '@slotted/angular/icon';
|
|
7
|
+
import { SlAvatar } from '@slotted/angular/avatar';
|
|
8
|
+
import { SlField } from '@slotted/angular/field';
|
|
9
|
+
import { SlHighlight } from '@slotted/angular/highlight';
|
|
10
|
+
import { SlSelect, SlSelectItem } from '@slotted/angular/select';
|
|
11
|
+
import { moveIndex } from '@slotted/core/collection';
|
|
12
|
+
import { pressOrigin, createDismissableLayer } from '@slotted/core/dismissable-layer';
|
|
13
|
+
import { CREATE_OPTION, RETRY_OPTION, createEntityCache, localEntitySource, entitySections, offersCreation, entityOptions, createEntitySearch, createEntityResolver, entityInitials, entityName, entityPickerKey } from '@slotted/core/entity-picker';
|
|
14
|
+
export { localEntitySource, rememberRecent } from '@slotted/core/entity-picker';
|
|
15
|
+
import { createArrowNavigation, createRemovalFocus } from '@slotted/core/focus';
|
|
16
|
+
import { entityPickerMessages } from '@slotted/core/i18n';
|
|
17
|
+
import { getLiveAnnouncer } from '@slotted/core/live-announcer';
|
|
18
|
+
import { createCollapse } from '@slotted/core/overflow';
|
|
19
|
+
import { createPortalRoot } from '@slotted/core/portal';
|
|
20
|
+
import { createPositioner } from '@slotted/core/positioner';
|
|
21
|
+
import { createPresence } from '@slotted/core/presence';
|
|
22
|
+
import { createControllable } from '@slotted/core/state';
|
|
23
|
+
|
|
24
|
+
/** The contract's defaults, `specs/components/entity-picker/contract.json`. */
|
|
25
|
+
const ENTITY_PICKER_FALLBACK = {
|
|
26
|
+
clearable: true,
|
|
27
|
+
disabled: false,
|
|
28
|
+
fullWidth: true,
|
|
29
|
+
highlightMatch: true,
|
|
30
|
+
invalid: false,
|
|
31
|
+
loop: false,
|
|
32
|
+
media: 'avatar',
|
|
33
|
+
minQueryLength: 0,
|
|
34
|
+
openOn: 'input',
|
|
35
|
+
overflow: 'collapse',
|
|
36
|
+
portal: true,
|
|
37
|
+
readOnly: false,
|
|
38
|
+
required: false,
|
|
39
|
+
searchDelay: 250,
|
|
40
|
+
side: 'bottom',
|
|
41
|
+
size: 'md',
|
|
42
|
+
strategy: 'absolute',
|
|
43
|
+
variant: 'outline',
|
|
44
|
+
width: 'content',
|
|
45
|
+
};
|
|
46
|
+
const ENTITY_PICKER_DEFAULTS = new InjectionToken('slotted entity picker defaults', { providedIn: 'root', factory: () => ENTITY_PICKER_FALLBACK });
|
|
47
|
+
/**
|
|
48
|
+
* An application decides once how its pickers look and how long they wait. A
|
|
49
|
+
* picker that states any of it itself still wins, and a nested provider
|
|
50
|
+
* overrides only what it names. Its words come from the language in force
|
|
51
|
+
* (`provideSlotted`).
|
|
52
|
+
*/
|
|
53
|
+
function provideEntityPickerDefaults(defaults) {
|
|
54
|
+
return {
|
|
55
|
+
provide: ENTITY_PICKER_DEFAULTS,
|
|
56
|
+
useFactory: () => {
|
|
57
|
+
const inherited = inject(ENTITY_PICKER_DEFAULTS, { skipSelf: true, optional: true });
|
|
58
|
+
const merged = { ...(inherited ?? ENTITY_PICKER_FALLBACK) };
|
|
59
|
+
for (const [key, value] of Object.entries(defaults)) {
|
|
60
|
+
if (value !== undefined)
|
|
61
|
+
merged[key] = value;
|
|
62
|
+
}
|
|
63
|
+
return merged;
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function injectEntityPickerDefaults() {
|
|
68
|
+
return inject(ENTITY_PICKER_DEFAULTS);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** Replaces the content of an option; the face, the check and the row stay the family's. */
|
|
72
|
+
class SlEntityPickerOption {
|
|
73
|
+
template = inject(TemplateRef);
|
|
74
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
75
|
+
return context !== null;
|
|
76
|
+
}
|
|
77
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlEntityPickerOption, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
78
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlEntityPickerOption, isStandalone: true, selector: "ng-template[slEntityPickerOption]", ngImport: i0 });
|
|
79
|
+
}
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlEntityPickerOption, decorators: [{
|
|
81
|
+
type: Directive,
|
|
82
|
+
args: [{ selector: 'ng-template[slEntityPickerOption]', standalone: true }]
|
|
83
|
+
}] });
|
|
84
|
+
/** Replaces the words of a chip; the face and the remove button stay the family's. */
|
|
85
|
+
class SlEntityPickerChip {
|
|
86
|
+
template = inject(TemplateRef);
|
|
87
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
88
|
+
return context !== null;
|
|
89
|
+
}
|
|
90
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlEntityPickerChip, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
91
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlEntityPickerChip, isStandalone: true, selector: "ng-template[slEntityPickerChip]", ngImport: i0 });
|
|
92
|
+
}
|
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlEntityPickerChip, decorators: [{
|
|
94
|
+
type: Directive,
|
|
95
|
+
args: [{ selector: 'ng-template[slEntityPickerChip]', standalone: true }]
|
|
96
|
+
}] });
|
|
97
|
+
const CHIP_SELECTOR = "[data-part='chips'] > [data-ui='tag']:not([data-count])";
|
|
98
|
+
const EMPTY = [];
|
|
99
|
+
function idsOf(value) {
|
|
100
|
+
if (Array.isArray(value))
|
|
101
|
+
return value;
|
|
102
|
+
return typeof value === 'string' ? [value] : [];
|
|
103
|
+
}
|
|
104
|
+
function sameIds(a, b) {
|
|
105
|
+
return a.length === b.length && a.every((id, index) => id === b[index]);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* A field that chooses records from a remote collection.
|
|
109
|
+
*
|
|
110
|
+
* The value is an id — or, with `selectionMode="multiple"`, an array of ids —
|
|
111
|
+
* and every request to change it carries the records the family knows for
|
|
112
|
+
* the new value. The search, the next page and the resolution of an id
|
|
113
|
+
* nobody showed the family are `source`'s; the delay, the abort and the cache
|
|
114
|
+
* are the family's, in `@slotted/core/entity-picker`, shared with React.
|
|
115
|
+
*
|
|
116
|
+
* The field is one line in a form: a chosen set collapses into a "+N" chip
|
|
117
|
+
* whose records the popup lists first, and a scope stands in front of the
|
|
118
|
+
* field, not above it.
|
|
119
|
+
*/
|
|
120
|
+
class SlEntityPicker {
|
|
121
|
+
CREATE = CREATE_OPTION;
|
|
122
|
+
RETRY = RETRY_OPTION;
|
|
123
|
+
static flag = (given) => given === undefined ? undefined : booleanAttribute(given);
|
|
124
|
+
static count = (given) => given === undefined ? undefined : numberAttribute(given);
|
|
125
|
+
// ── Inputs and models ──────────────────────────────────────────────────
|
|
126
|
+
selectionMode = input('single', /* @ts-ignore */
|
|
127
|
+
...(ngDevMode ? [{ debugName: "selectionMode" }] : /* istanbul ignore next */ []));
|
|
128
|
+
value = model(null, /* @ts-ignore */
|
|
129
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
130
|
+
valueChangeRequest = output();
|
|
131
|
+
defaultValue = input(undefined, /* @ts-ignore */
|
|
132
|
+
...(ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []));
|
|
133
|
+
inputValue = model('', /* @ts-ignore */
|
|
134
|
+
...(ngDevMode ? [{ debugName: "inputValue" }] : /* istanbul ignore next */ []));
|
|
135
|
+
inputValueChangeRequest = output();
|
|
136
|
+
open = model(false, /* @ts-ignore */
|
|
137
|
+
...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
138
|
+
openChangeRequest = output();
|
|
139
|
+
highlightedValue = model(null, /* @ts-ignore */
|
|
140
|
+
...(ngDevMode ? [{ debugName: "highlightedValue" }] : /* istanbul ignore next */ []));
|
|
141
|
+
highlightedValueChangeRequest = output();
|
|
142
|
+
scope = model(null, /* @ts-ignore */
|
|
143
|
+
...(ngDevMode ? [{ debugName: "scope" }] : /* istanbul ignore next */ []));
|
|
144
|
+
scopeChangeRequest = output();
|
|
145
|
+
/** The reader asked to create what they typed. */
|
|
146
|
+
create = output();
|
|
147
|
+
source = input(undefined, /* @ts-ignore */
|
|
148
|
+
...(ngDevMode ? [{ debugName: "source" }] : /* istanbul ignore next */ []));
|
|
149
|
+
items = input(undefined, /* @ts-ignore */
|
|
150
|
+
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
151
|
+
entities = input(EMPTY, /* @ts-ignore */
|
|
152
|
+
...(ngDevMode ? [{ debugName: "entities" }] : /* istanbul ignore next */ []));
|
|
153
|
+
favorites = input(EMPTY, /* @ts-ignore */
|
|
154
|
+
...(ngDevMode ? [{ debugName: "favorites" }] : /* istanbul ignore next */ []));
|
|
155
|
+
recent = input(EMPTY, /* @ts-ignore */
|
|
156
|
+
...(ngDevMode ? [{ debugName: "recent" }] : /* istanbul ignore next */ []));
|
|
157
|
+
scopes = input([], /* @ts-ignore */
|
|
158
|
+
...(ngDevMode ? [{ debugName: "scopes" }] : /* istanbul ignore next */ []));
|
|
159
|
+
/**
|
|
160
|
+
* Makes a record for what the reader typed. A record returned is chosen,
|
|
161
|
+
* with reason `submit`; the `create` output fires either way.
|
|
162
|
+
*/
|
|
163
|
+
createEntity = input(undefined, /* @ts-ignore */
|
|
164
|
+
...(ngDevMode ? [{ debugName: "createEntity" }] : /* istanbul ignore next */ []));
|
|
165
|
+
ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
|
|
166
|
+
placeholder = input('', /* @ts-ignore */
|
|
167
|
+
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
168
|
+
name = input(undefined, /* @ts-ignore */
|
|
169
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
170
|
+
form = input(undefined, /* @ts-ignore */
|
|
171
|
+
...(ngDevMode ? [{ debugName: "form" }] : /* istanbul ignore next */ []));
|
|
172
|
+
/** BCP 47, for the local filter and the mark. The language in force when absent. */
|
|
173
|
+
locale = input(undefined, /* @ts-ignore */
|
|
174
|
+
...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
175
|
+
max = input(undefined, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: SlEntityPicker.count });
|
|
176
|
+
/**
|
|
177
|
+
* Words laid over the catalog of the language in force, key by key: the
|
|
178
|
+
* buttons, the sections, the chips, and the sentences the popup and the
|
|
179
|
+
* announcer say.
|
|
180
|
+
*/
|
|
181
|
+
messages = input(undefined, /* @ts-ignore */
|
|
182
|
+
...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
|
|
183
|
+
size = input(undefined, /* @ts-ignore */
|
|
184
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
185
|
+
variant = input(undefined, /* @ts-ignore */
|
|
186
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
187
|
+
media = input(undefined, /* @ts-ignore */
|
|
188
|
+
...(ngDevMode ? [{ debugName: "media" }] : /* istanbul ignore next */ []));
|
|
189
|
+
overflow = input(undefined, /* @ts-ignore */
|
|
190
|
+
...(ngDevMode ? [{ debugName: "overflow" }] : /* istanbul ignore next */ []));
|
|
191
|
+
/**
|
|
192
|
+
* What opens the popup besides the trigger and the arrows. `input` (default): typing or a
|
|
193
|
+
* press on the input; `focus`: every focus as well; `manual`: typing filters without opening.
|
|
194
|
+
*/
|
|
195
|
+
openOn = input(undefined, /* @ts-ignore */
|
|
196
|
+
...(ngDevMode ? [{ debugName: "openOn" }] : /* istanbul ignore next */ []));
|
|
197
|
+
side = input(undefined, /* @ts-ignore */
|
|
198
|
+
...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
|
|
199
|
+
width = input(undefined, /* @ts-ignore */
|
|
200
|
+
...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
|
|
201
|
+
strategy = input(undefined, /* @ts-ignore */
|
|
202
|
+
...(ngDevMode ? [{ debugName: "strategy" }] : /* istanbul ignore next */ []));
|
|
203
|
+
searchDelay = input(undefined, { ...(ngDevMode ? { debugName: "searchDelay" } : /* istanbul ignore next */ {}), transform: SlEntityPicker.count });
|
|
204
|
+
minQueryLength = input(undefined, { ...(ngDevMode ? { debugName: "minQueryLength" } : /* istanbul ignore next */ {}), transform: SlEntityPicker.count });
|
|
205
|
+
clearable = input(undefined, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: SlEntityPicker.flag });
|
|
206
|
+
loop = input(undefined, { ...(ngDevMode ? { debugName: "loop" } : /* istanbul ignore next */ {}), transform: SlEntityPicker.flag });
|
|
207
|
+
highlightMatch = input(undefined, { ...(ngDevMode ? { debugName: "highlightMatch" } : /* istanbul ignore next */ {}), transform: SlEntityPicker.flag });
|
|
208
|
+
portal = input(undefined, { ...(ngDevMode ? { debugName: "portal" } : /* istanbul ignore next */ {}), transform: SlEntityPicker.flag });
|
|
209
|
+
fullWidth = input(undefined, { ...(ngDevMode ? { debugName: "fullWidth" } : /* istanbul ignore next */ {}), transform: SlEntityPicker.flag });
|
|
210
|
+
disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: SlEntityPicker.flag });
|
|
211
|
+
readOnly = input(undefined, { ...(ngDevMode ? { debugName: "readOnly" } : /* istanbul ignore next */ {}), transform: SlEntityPicker.flag });
|
|
212
|
+
required = input(undefined, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: SlEntityPicker.flag });
|
|
213
|
+
invalid = input(undefined, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: SlEntityPicker.flag });
|
|
214
|
+
optionTemplate = contentChild(SlEntityPickerOption, /* @ts-ignore */
|
|
215
|
+
...(ngDevMode ? [{ debugName: "optionTemplate" }] : /* istanbul ignore next */ []));
|
|
216
|
+
chipTemplate = contentChild(SlEntityPickerChip, /* @ts-ignore */
|
|
217
|
+
...(ngDevMode ? [{ debugName: "chipTemplate" }] : /* istanbul ignore next */ []));
|
|
218
|
+
// ── Wiring ─────────────────────────────────────────────────────────────
|
|
219
|
+
defaults = injectEntityPickerDefaults();
|
|
220
|
+
field = inject(SlField, { optional: true });
|
|
221
|
+
host = inject(ElementRef);
|
|
222
|
+
viewContainer = inject(ViewContainerRef);
|
|
223
|
+
hostId = inject(new HostAttributeToken('id'), { optional: true });
|
|
224
|
+
layerTemplate = viewChild.required('layer', /* @ts-ignore */
|
|
225
|
+
...(ngDevMode ? [{ debugName: "layerTemplate" }] : /* istanbul ignore next */ []));
|
|
226
|
+
controlRef = viewChild.required('control', /* @ts-ignore */
|
|
227
|
+
...(ngDevMode ? [{ debugName: "controlRef" }] : /* istanbul ignore next */ []));
|
|
228
|
+
inputRef = viewChild('input', /* @ts-ignore */
|
|
229
|
+
...(ngDevMode ? [{ debugName: "inputRef" }] : /* istanbul ignore next */ []));
|
|
230
|
+
chipsRef = viewChild('chips', /* @ts-ignore */
|
|
231
|
+
...(ngDevMode ? [{ debugName: "chipsRef" }] : /* istanbul ignore next */ []));
|
|
232
|
+
countRef = viewChild('count', /* @ts-ignore */
|
|
233
|
+
...(ngDevMode ? [{ debugName: "countRef" }] : /* istanbul ignore next */ []));
|
|
234
|
+
identifier = Math.random().toString(36).slice(2, 8);
|
|
235
|
+
contentId = `sl-entity-picker-${this.identifier}`;
|
|
236
|
+
ownId = `sl-entity-picker-input-${this.identifier}`;
|
|
237
|
+
cache = createEntityCache();
|
|
238
|
+
version = signal(0, /* @ts-ignore */
|
|
239
|
+
...(ngDevMode ? [{ debugName: "version" }] : /* istanbul ignore next */ []));
|
|
240
|
+
searchState = signal(null, /* @ts-ignore */
|
|
241
|
+
...(ngDevMode ? [{ debugName: "searchState" }] : /* istanbul ignore next */ []));
|
|
242
|
+
typed = signal(false, /* @ts-ignore */
|
|
243
|
+
...(ngDevMode ? [{ debugName: "typed" }] : /* istanbul ignore next */ []));
|
|
244
|
+
positioned = signal(false, /* @ts-ignore */
|
|
245
|
+
...(ngDevMode ? [{ debugName: "positioned" }] : /* istanbul ignore next */ []));
|
|
246
|
+
creating = signal(false, /* @ts-ignore */
|
|
247
|
+
...(ngDevMode ? [{ debugName: "creating" }] : /* istanbul ignore next */ []));
|
|
248
|
+
collapsedCount = signal(0, /* @ts-ignore */
|
|
249
|
+
...(ngDevMode ? [{ debugName: "collapsedCount" }] : /* istanbul ignore next */ []));
|
|
250
|
+
disabledByForm = signal(undefined, /* @ts-ignore */
|
|
251
|
+
...(ngDevMode ? [{ debugName: "disabledByForm" }] : /* istanbul ignore next */ []));
|
|
252
|
+
entry = 'keep';
|
|
253
|
+
sessionConfig = { delay: 250, minQueryLength: 0 };
|
|
254
|
+
seeded = false;
|
|
255
|
+
session;
|
|
256
|
+
resolver;
|
|
257
|
+
view = null;
|
|
258
|
+
layerNode = null;
|
|
259
|
+
surfaceNode = null;
|
|
260
|
+
portalRoot = null;
|
|
261
|
+
positionerHandle = null;
|
|
262
|
+
layer = null;
|
|
263
|
+
presence = null;
|
|
264
|
+
observer = null;
|
|
265
|
+
navigation = null;
|
|
266
|
+
removal = null;
|
|
267
|
+
collapse = null;
|
|
268
|
+
onChange = () => undefined;
|
|
269
|
+
onTouched = () => undefined;
|
|
270
|
+
// ── Resolution ─────────────────────────────────────────────────────────
|
|
271
|
+
/** The family's words in the language in force, with this picker's `messages` laid over them. */
|
|
272
|
+
t = injectMessages(entityPickerMessages, this.messages);
|
|
273
|
+
inForceLocale = injectLocale();
|
|
274
|
+
/** The locale the local filter and the mark compare in: the `locale` input, or the language in force. */
|
|
275
|
+
resolvedLocale = computed(() => this.locale() ?? this.inForceLocale(), /* @ts-ignore */
|
|
276
|
+
...(ngDevMode ? [{ debugName: "resolvedLocale" }] : /* istanbul ignore next */ []));
|
|
277
|
+
multiple = computed(() => this.selectionMode() === 'multiple', /* @ts-ignore */
|
|
278
|
+
...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
|
|
279
|
+
resolvedSize = computed(() => this.size() ?? this.field?.size() ?? this.defaults.size, /* @ts-ignore */
|
|
280
|
+
...(ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []));
|
|
281
|
+
resolvedVariant = computed(() => this.variant() ?? this.defaults.variant, /* @ts-ignore */
|
|
282
|
+
...(ngDevMode ? [{ debugName: "resolvedVariant" }] : /* istanbul ignore next */ []));
|
|
283
|
+
resolvedMedia = computed(() => this.media() ?? this.defaults.media, /* @ts-ignore */
|
|
284
|
+
...(ngDevMode ? [{ debugName: "resolvedMedia" }] : /* istanbul ignore next */ []));
|
|
285
|
+
resolvedOverflow = computed(() => this.overflow() ?? this.defaults.overflow, /* @ts-ignore */
|
|
286
|
+
...(ngDevMode ? [{ debugName: "resolvedOverflow" }] : /* istanbul ignore next */ []));
|
|
287
|
+
resolvedOpenOn = computed(() => this.openOn() ?? this.defaults.openOn, /* @ts-ignore */
|
|
288
|
+
...(ngDevMode ? [{ debugName: "resolvedOpenOn" }] : /* istanbul ignore next */ []));
|
|
289
|
+
resolvedWidth = computed(() => this.width() ?? this.defaults.width, /* @ts-ignore */
|
|
290
|
+
...(ngDevMode ? [{ debugName: "resolvedWidth" }] : /* istanbul ignore next */ []));
|
|
291
|
+
resolvedFullWidth = computed(() => this.fullWidth() ?? this.defaults.fullWidth, /* @ts-ignore */
|
|
292
|
+
...(ngDevMode ? [{ debugName: "resolvedFullWidth" }] : /* istanbul ignore next */ []));
|
|
293
|
+
resolvedHighlightMatch = computed(() => this.highlightMatch() ?? this.defaults.highlightMatch, /* @ts-ignore */
|
|
294
|
+
...(ngDevMode ? [{ debugName: "resolvedHighlightMatch" }] : /* istanbul ignore next */ []));
|
|
295
|
+
resolvedDisabled = computed(() => this.disabled() ?? this.disabledByForm() ?? this.field?.disabled() ?? this.defaults.disabled, /* @ts-ignore */
|
|
296
|
+
...(ngDevMode ? [{ debugName: "resolvedDisabled" }] : /* istanbul ignore next */ []));
|
|
297
|
+
resolvedReadOnly = computed(() => this.readOnly() ?? this.field?.readOnly() ?? this.defaults.readOnly, /* @ts-ignore */
|
|
298
|
+
...(ngDevMode ? [{ debugName: "resolvedReadOnly" }] : /* istanbul ignore next */ []));
|
|
299
|
+
resolvedRequired = computed(() => this.required() ?? this.field?.required() ?? this.defaults.required, /* @ts-ignore */
|
|
300
|
+
...(ngDevMode ? [{ debugName: "resolvedRequired" }] : /* istanbul ignore next */ []));
|
|
301
|
+
resolvedInvalid = computed(() => this.invalid() ?? this.field?.invalid() ?? this.defaults.invalid, /* @ts-ignore */
|
|
302
|
+
...(ngDevMode ? [{ debugName: "resolvedInvalid" }] : /* istanbul ignore next */ []));
|
|
303
|
+
resolvedMinQuery = computed(() => this.minQueryLength() ?? this.defaults.minQueryLength, /* @ts-ignore */
|
|
304
|
+
...(ngDevMode ? [{ debugName: "resolvedMinQuery" }] : /* istanbul ignore next */ []));
|
|
305
|
+
resolvedSource = computed(() => this.source() ?? localEntitySource(this.items() ?? EMPTY, { locale: this.resolvedLocale() }), /* @ts-ignore */
|
|
306
|
+
...(ngDevMode ? [{ debugName: "resolvedSource" }] : /* istanbul ignore next */ []));
|
|
307
|
+
hasScopes = computed(() => this.scopes().length > 0, /* @ts-ignore */
|
|
308
|
+
...(ngDevMode ? [{ debugName: "hasScopes" }] : /* istanbul ignore next */ []));
|
|
309
|
+
/** The labels the select shows before its options are built. */
|
|
310
|
+
scopeItems = computed(() => this.scopes().map((item) => ({ value: item.id, label: item.label })), /* @ts-ignore */
|
|
311
|
+
...(ngDevMode ? [{ debugName: "scopeItems" }] : /* istanbul ignore next */ []));
|
|
312
|
+
isOpen = computed(() => this.open() && !this.resolvedDisabled(), /* @ts-ignore */
|
|
313
|
+
...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
|
|
314
|
+
controlId = computed(() => this.hostId ?? this.field?.ids().control ?? this.ownId, /* @ts-ignore */
|
|
315
|
+
...(ngDevMode ? [{ debugName: "controlId" }] : /* istanbul ignore next */ []));
|
|
316
|
+
chosen = computed(() => idsOf(this.value()), /* @ts-ignore */
|
|
317
|
+
...(ngDevMode ? [{ debugName: "chosen" }] : /* istanbul ignore next */ []));
|
|
318
|
+
collapsing = computed(() => this.multiple() && this.resolvedOverflow() === 'collapse', /* @ts-ignore */
|
|
319
|
+
...(ngDevMode ? [{ debugName: "collapsing" }] : /* istanbul ignore next */ []));
|
|
320
|
+
maxResolved = computed(() => (this.multiple() ? (this.max() ?? null) : null), /* @ts-ignore */
|
|
321
|
+
...(ngDevMode ? [{ debugName: "maxResolved" }] : /* istanbul ignore next */ []));
|
|
322
|
+
complete = computed(() => {
|
|
323
|
+
const max = this.maxResolved();
|
|
324
|
+
return max !== null && this.chosen().length >= max;
|
|
325
|
+
}, /* @ts-ignore */
|
|
326
|
+
...(ngDevMode ? [{ debugName: "complete" }] : /* istanbul ignore next */ []));
|
|
327
|
+
query = computed(() => this.multiple() ? this.inputValue() : this.typed() ? this.inputValue() : '', /* @ts-ignore */
|
|
328
|
+
...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
|
|
329
|
+
search = computed(() => this.searchState() ?? this.session.state, /* @ts-ignore */
|
|
330
|
+
...(ngDevMode ? [{ debugName: "search" }] : /* istanbul ignore next */ []));
|
|
331
|
+
sections = computed(() => {
|
|
332
|
+
this.version();
|
|
333
|
+
const search = this.search();
|
|
334
|
+
const results = search.answered || search.status === 'loading' ? search.items : EMPTY;
|
|
335
|
+
return entitySections({
|
|
336
|
+
query: this.query(),
|
|
337
|
+
scope: this.scope(),
|
|
338
|
+
chosen: this.multiple() ? this.cache.pick(this.chosen()) : EMPTY,
|
|
339
|
+
favorites: this.favorites(),
|
|
340
|
+
recent: this.recent(),
|
|
341
|
+
results: search.status === 'error' || search.status === 'short' ? search.items : results,
|
|
342
|
+
searchedEmpty: this.resolvedMinQuery() === 0,
|
|
343
|
+
labels: {
|
|
344
|
+
chosen: this.t('chosen'),
|
|
345
|
+
favorites: this.t('favorites'),
|
|
346
|
+
recent: this.t('recent'),
|
|
347
|
+
results: this.t('results'),
|
|
348
|
+
},
|
|
349
|
+
});
|
|
350
|
+
}, /* @ts-ignore */
|
|
351
|
+
...(ngDevMode ? [{ debugName: "sections" }] : /* istanbul ignore next */ []));
|
|
352
|
+
offerCreate = computed(() => !this.creating() &&
|
|
353
|
+
offersCreation({
|
|
354
|
+
enabled: this.createEntity() !== undefined,
|
|
355
|
+
query: this.query(),
|
|
356
|
+
answered: this.search().status === 'ready',
|
|
357
|
+
results: this.search().items,
|
|
358
|
+
locale: this.resolvedLocale(),
|
|
359
|
+
}), /* @ts-ignore */
|
|
360
|
+
...(ngDevMode ? [{ debugName: "offerCreate" }] : /* istanbul ignore next */ []));
|
|
361
|
+
failed = computed(() => this.search().status === 'error', /* @ts-ignore */
|
|
362
|
+
...(ngDevMode ? [{ debugName: "failed" }] : /* istanbul ignore next */ []));
|
|
363
|
+
firstPage = computed(() => this.search().status === 'loading' && this.search().items.length === 0, /* @ts-ignore */
|
|
364
|
+
...(ngDevMode ? [{ debugName: "firstPage" }] : /* istanbul ignore next */ []));
|
|
365
|
+
refreshing = computed(() => this.search().status === 'loading' &&
|
|
366
|
+
this.search().items.length > 0 &&
|
|
367
|
+
this.search().indicator, /* @ts-ignore */
|
|
368
|
+
...(ngDevMode ? [{ debugName: "refreshing" }] : /* istanbul ignore next */ []));
|
|
369
|
+
blocked = computed(() => {
|
|
370
|
+
if (!this.complete())
|
|
371
|
+
return undefined;
|
|
372
|
+
const chosen = new Set(this.chosen());
|
|
373
|
+
return new Set(this.sections()
|
|
374
|
+
.sections.flatMap((section) => section.entities)
|
|
375
|
+
.map((entity) => entity.id)
|
|
376
|
+
.filter((id) => !chosen.has(id)));
|
|
377
|
+
}, /* @ts-ignore */
|
|
378
|
+
...(ngDevMode ? [{ debugName: "blocked" }] : /* istanbul ignore next */ []));
|
|
379
|
+
options = computed(() => {
|
|
380
|
+
const blocked = this.blocked();
|
|
381
|
+
const records = entityOptions({
|
|
382
|
+
sections: this.sections().sections,
|
|
383
|
+
create: this.offerCreate(),
|
|
384
|
+
...(blocked === undefined ? {} : { blocked }),
|
|
385
|
+
});
|
|
386
|
+
return this.failed()
|
|
387
|
+
? [
|
|
388
|
+
...records.filter((option) => option.key !== CREATE_OPTION),
|
|
389
|
+
{ key: RETRY_OPTION, disabled: false },
|
|
390
|
+
]
|
|
391
|
+
: records;
|
|
392
|
+
}, /* @ts-ignore */
|
|
393
|
+
...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
394
|
+
showEmpty = computed(() => {
|
|
395
|
+
const records = this.options().filter((option) => option.key !== CREATE_OPTION && option.key !== RETRY_OPTION).length;
|
|
396
|
+
const status = this.search().status;
|
|
397
|
+
return (records === 0 &&
|
|
398
|
+
!this.offerCreate() &&
|
|
399
|
+
!this.failed() &&
|
|
400
|
+
!this.firstPage() &&
|
|
401
|
+
status !== 'waiting' &&
|
|
402
|
+
status !== 'short');
|
|
403
|
+
}, /* @ts-ignore */
|
|
404
|
+
...(ngDevMode ? [{ debugName: "showEmpty" }] : /* istanbul ignore next */ []));
|
|
405
|
+
statusMessage = computed(() => {
|
|
406
|
+
const search = this.search();
|
|
407
|
+
if (search.status === 'short') {
|
|
408
|
+
return this.t('minQuery', { count: this.resolvedMinQuery() });
|
|
409
|
+
}
|
|
410
|
+
if (search.status === 'error')
|
|
411
|
+
return '';
|
|
412
|
+
if (search.indicator && (this.firstPage() || search.loadingMore))
|
|
413
|
+
return this.t('loading');
|
|
414
|
+
if (search.status === 'ready' && this.query() !== '') {
|
|
415
|
+
return this.t('count', { count: search.total ?? search.items.length });
|
|
416
|
+
}
|
|
417
|
+
return '';
|
|
418
|
+
}, /* @ts-ignore */
|
|
419
|
+
...(ngDevMode ? [{ debugName: "statusMessage" }] : /* istanbul ignore next */ []));
|
|
420
|
+
activeDescendant = computed(() => {
|
|
421
|
+
const held = this.highlightedValue();
|
|
422
|
+
return this.isOpen() && held !== null ? this.optionId(held) : null;
|
|
423
|
+
}, /* @ts-ignore */
|
|
424
|
+
...(ngDevMode ? [{ debugName: "activeDescendant" }] : /* istanbul ignore next */ []));
|
|
425
|
+
pendingSingle = computed(() => {
|
|
426
|
+
this.version();
|
|
427
|
+
const first = this.chosen()[0];
|
|
428
|
+
return !this.multiple() && first !== undefined && this.resolver.status(first) === 'pending';
|
|
429
|
+
}, /* @ts-ignore */
|
|
430
|
+
...(ngDevMode ? [{ debugName: "pendingSingle" }] : /* istanbul ignore next */ []));
|
|
431
|
+
busy = computed(() => this.search().indicator || this.pendingSingle(), /* @ts-ignore */
|
|
432
|
+
...(ngDevMode ? [{ debugName: "busy" }] : /* istanbul ignore next */ []));
|
|
433
|
+
showClear = computed(() => (this.clearable() ?? this.defaults.clearable) &&
|
|
434
|
+
!this.resolvedDisabled() &&
|
|
435
|
+
!this.resolvedReadOnly() &&
|
|
436
|
+
(this.chosen().length > 0 || this.inputValue() !== ''), /* @ts-ignore */
|
|
437
|
+
...(ngDevMode ? [{ debugName: "showClear" }] : /* istanbul ignore next */ []));
|
|
438
|
+
showSelection = computed(() => {
|
|
439
|
+
this.version();
|
|
440
|
+
if (this.multiple() || this.resolvedMedia() !== 'avatar')
|
|
441
|
+
return null;
|
|
442
|
+
const first = this.chosen()[0];
|
|
443
|
+
const entity = first === undefined ? undefined : this.cache.get(first);
|
|
444
|
+
if (entity === undefined || entity.avatar === null)
|
|
445
|
+
return null;
|
|
446
|
+
return this.inputValue() === entity.label ? entity : null;
|
|
447
|
+
}, /* @ts-ignore */
|
|
448
|
+
...(ngDevMode ? [{ debugName: "showSelection" }] : /* istanbul ignore next */ []));
|
|
449
|
+
chipsLabel = computed(() => this.t('chips', {
|
|
450
|
+
label: this.ariaLabel() ?? '',
|
|
451
|
+
count: this.chosen().length,
|
|
452
|
+
}).replace(/^, /, ''), /* @ts-ignore */
|
|
453
|
+
...(ngDevMode ? [{ debugName: "chipsLabel" }] : /* istanbul ignore next */ []));
|
|
454
|
+
moreText = computed(() => this.t('more', { count: Math.max(this.collapsedCount(), 1) }), /* @ts-ignore */
|
|
455
|
+
...(ngDevMode ? [{ debugName: "moreText" }] : /* istanbul ignore next */ []));
|
|
456
|
+
moreLabel = computed(() => this.t('moreLabel', { count: Math.max(this.collapsedCount(), 1) }), /* @ts-ignore */
|
|
457
|
+
...(ngDevMode ? [{ debugName: "moreLabel" }] : /* istanbul ignore next */ []));
|
|
458
|
+
createText = computed(() => this.t('create', { query: this.query().trim() }), /* @ts-ignore */
|
|
459
|
+
...(ngDevMode ? [{ debugName: "createText" }] : /* istanbul ignore next */ []));
|
|
460
|
+
constructor() {
|
|
461
|
+
const destroyRef = inject(DestroyRef);
|
|
462
|
+
/* The session is made before the inputs exist; it reads these two numbers
|
|
463
|
+
at the time of each search, and `runSearch` writes them first. */
|
|
464
|
+
const config = this.sessionConfig;
|
|
465
|
+
this.session = createEntitySearch({
|
|
466
|
+
source: {
|
|
467
|
+
search: (request, options) => this.resolvedSource().search(request, options),
|
|
468
|
+
},
|
|
469
|
+
get delay() {
|
|
470
|
+
return config.delay;
|
|
471
|
+
},
|
|
472
|
+
get minQueryLength() {
|
|
473
|
+
return config.minQueryLength;
|
|
474
|
+
},
|
|
475
|
+
onChange: (state) => this.searchState.set(state),
|
|
476
|
+
onResults: (found) => this.cache.remember(found),
|
|
477
|
+
});
|
|
478
|
+
this.resolver = createEntityResolver({
|
|
479
|
+
source: {
|
|
480
|
+
search: (request, options) => this.resolvedSource().search(request, options),
|
|
481
|
+
resolve: (ids, options) => {
|
|
482
|
+
const source = this.resolvedSource();
|
|
483
|
+
return source.resolve === undefined
|
|
484
|
+
? Promise.reject(new Error('no resolve'))
|
|
485
|
+
: source.resolve(ids, options);
|
|
486
|
+
},
|
|
487
|
+
},
|
|
488
|
+
cache: this.cache,
|
|
489
|
+
onChange: () => this.version.update((count) => count + 1),
|
|
490
|
+
});
|
|
491
|
+
/* What the application hands over is known before anything is asked. */
|
|
492
|
+
effect(() => {
|
|
493
|
+
this.cache.remember(this.entities());
|
|
494
|
+
this.cache.remember(this.favorites());
|
|
495
|
+
this.cache.remember(this.recent());
|
|
496
|
+
untracked(() => this.version.update((count) => count + 1));
|
|
497
|
+
});
|
|
498
|
+
/* An id nobody showed the family is asked for once. */
|
|
499
|
+
effect(() => {
|
|
500
|
+
const ids = this.chosen();
|
|
501
|
+
this.version();
|
|
502
|
+
untracked(() => this.resolver.require(ids));
|
|
503
|
+
});
|
|
504
|
+
/* In single, the field reads the chosen name whenever the reader is not typing. */
|
|
505
|
+
effect(() => {
|
|
506
|
+
this.version();
|
|
507
|
+
if (this.multiple() || this.typed())
|
|
508
|
+
return;
|
|
509
|
+
const first = this.chosen()[0];
|
|
510
|
+
const name = first === undefined ? '' : (this.cache.get(first)?.label ?? '');
|
|
511
|
+
untracked(() => {
|
|
512
|
+
if (this.inputValue() !== name)
|
|
513
|
+
this.inputValue.set(name);
|
|
514
|
+
});
|
|
515
|
+
});
|
|
516
|
+
/* The search follows the open popup, the query and the scope. */
|
|
517
|
+
effect(() => {
|
|
518
|
+
if (!this.isOpen())
|
|
519
|
+
return;
|
|
520
|
+
const query = this.query();
|
|
521
|
+
const scope = this.scope();
|
|
522
|
+
untracked(() => this.runSearch(query, scope));
|
|
523
|
+
});
|
|
524
|
+
effect(() => {
|
|
525
|
+
const open = this.isOpen();
|
|
526
|
+
untracked(() => (open ? this.show() : this.hide()));
|
|
527
|
+
});
|
|
528
|
+
/* Where the highlight lands as the list changes. */
|
|
529
|
+
effect(() => {
|
|
530
|
+
const options = this.options();
|
|
531
|
+
if (!this.isOpen())
|
|
532
|
+
return;
|
|
533
|
+
untracked(() => this.placeHighlight(options));
|
|
534
|
+
});
|
|
535
|
+
/* The failure is said once, by the announcer. */
|
|
536
|
+
effect(() => {
|
|
537
|
+
if (!this.failed() || !this.isOpen())
|
|
538
|
+
return;
|
|
539
|
+
untracked(() => this.announce(this.t('error')));
|
|
540
|
+
});
|
|
541
|
+
afterRenderEffect(() => {
|
|
542
|
+
this.chosen();
|
|
543
|
+
this.version();
|
|
544
|
+
this.collapse?.refresh();
|
|
545
|
+
this.observeEnd();
|
|
546
|
+
});
|
|
547
|
+
afterNextRender(() => this.wireChips());
|
|
548
|
+
destroyRef.onDestroy(() => {
|
|
549
|
+
this.session.dispose();
|
|
550
|
+
this.resolver.dispose();
|
|
551
|
+
this.navigation?.destroy();
|
|
552
|
+
this.removal?.destroy();
|
|
553
|
+
this.collapse?.destroy();
|
|
554
|
+
this.teardown();
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
ngOnInit() {
|
|
558
|
+
const seed = this.defaultValue();
|
|
559
|
+
if (seed !== undefined && !this.seeded && this.chosen().length === 0) {
|
|
560
|
+
this.seeded = true;
|
|
561
|
+
this.value.set(this.multiple() ? idsOf(seed) : (idsOf(seed)[0] ?? null));
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
// ── Reading ────────────────────────────────────────────────────────────
|
|
565
|
+
optionId(key) {
|
|
566
|
+
return `${this.contentId}-option-${encodeURIComponent(key)}`;
|
|
567
|
+
}
|
|
568
|
+
record(id) {
|
|
569
|
+
this.version();
|
|
570
|
+
return this.cache.get(id);
|
|
571
|
+
}
|
|
572
|
+
resolution(id) {
|
|
573
|
+
this.version();
|
|
574
|
+
return this.resolver.status(id);
|
|
575
|
+
}
|
|
576
|
+
initials(entity) {
|
|
577
|
+
return entityInitials(entity);
|
|
578
|
+
}
|
|
579
|
+
chipName(id) {
|
|
580
|
+
const entity = this.record(id);
|
|
581
|
+
if (entity !== undefined)
|
|
582
|
+
return entityName(entity);
|
|
583
|
+
return this.resolution(id) === 'missing'
|
|
584
|
+
? this.t('unresolvedChip', { id })
|
|
585
|
+
: this.t('loadingChip', { id });
|
|
586
|
+
}
|
|
587
|
+
removeLabel(id) {
|
|
588
|
+
return this.t('remove', {
|
|
589
|
+
label: this.record(id)?.label ?? this.t('unresolved'),
|
|
590
|
+
});
|
|
591
|
+
}
|
|
592
|
+
isChosen(id) {
|
|
593
|
+
return this.chosen().includes(id);
|
|
594
|
+
}
|
|
595
|
+
isDisabled(entity) {
|
|
596
|
+
return entity.disabled === true || this.blocked()?.has(entity.id) === true;
|
|
597
|
+
}
|
|
598
|
+
// ── Imperative ─────────────────────────────────────────────────────────
|
|
599
|
+
focus() {
|
|
600
|
+
this.inputRef()?.nativeElement.focus({ preventScroll: true });
|
|
601
|
+
}
|
|
602
|
+
/** Asks the source again for the current query. */
|
|
603
|
+
refresh() {
|
|
604
|
+
this.session.refresh();
|
|
605
|
+
}
|
|
606
|
+
// ── Requests ───────────────────────────────────────────────────────────
|
|
607
|
+
setOpen(next, reason, source) {
|
|
608
|
+
if (next === this.isOpen())
|
|
609
|
+
return;
|
|
610
|
+
const state = createControllable({
|
|
611
|
+
initial: this.isOpen(),
|
|
612
|
+
onRequest: (request) => this.openChangeRequest.emit(request),
|
|
613
|
+
});
|
|
614
|
+
if (!state.request(next, reason, source))
|
|
615
|
+
return;
|
|
616
|
+
this.open.set(next);
|
|
617
|
+
if (!next) {
|
|
618
|
+
this.highlightedValue.set(null);
|
|
619
|
+
this.entry = 'keep';
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
setHighlighted(next, reason, source) {
|
|
623
|
+
if (next === this.highlightedValue())
|
|
624
|
+
return;
|
|
625
|
+
const state = createControllable({
|
|
626
|
+
initial: this.highlightedValue(),
|
|
627
|
+
onRequest: (request) => this.highlightedValueChangeRequest.emit(request),
|
|
628
|
+
});
|
|
629
|
+
if (!state.request(next, reason, source))
|
|
630
|
+
return;
|
|
631
|
+
this.highlightedValue.set(next);
|
|
632
|
+
if (next !== null) {
|
|
633
|
+
const option = this.surfaceNode?.ownerDocument.getElementById(this.optionId(next));
|
|
634
|
+
if (typeof option?.scrollIntoView === 'function')
|
|
635
|
+
option.scrollIntoView({ block: 'nearest' });
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
setInput(next, reason, source) {
|
|
639
|
+
if (next === this.inputValue())
|
|
640
|
+
return;
|
|
641
|
+
const state = createControllable({
|
|
642
|
+
initial: this.inputValue(),
|
|
643
|
+
onRequest: (request) => this.inputValueChangeRequest.emit(request),
|
|
644
|
+
});
|
|
645
|
+
if (state.request(next, reason, source))
|
|
646
|
+
this.inputValue.set(next);
|
|
647
|
+
}
|
|
648
|
+
requestIds(next, reason, source) {
|
|
649
|
+
const before = this.chosen();
|
|
650
|
+
if (sameIds(before, next))
|
|
651
|
+
return false;
|
|
652
|
+
const toValue = (ids) => this.multiple() ? ids : (ids[0] ?? null);
|
|
653
|
+
const state = createControllable({
|
|
654
|
+
initial: toValue(before),
|
|
655
|
+
equals: (a, b) => sameIds(idsOf(a), idsOf(b)),
|
|
656
|
+
onRequest: (request) => this.valueChangeRequest.emit(Object.assign(request, { entities: this.cache.pick(next) })),
|
|
657
|
+
});
|
|
658
|
+
if (!state.request(toValue(next), reason, source))
|
|
659
|
+
return false;
|
|
660
|
+
this.value.set(toValue(next));
|
|
661
|
+
this.onChange(toValue(next));
|
|
662
|
+
this.onTouched();
|
|
663
|
+
return true;
|
|
664
|
+
}
|
|
665
|
+
setScope(next, reason, source) {
|
|
666
|
+
if (next === this.scope())
|
|
667
|
+
return;
|
|
668
|
+
const state = createControllable({
|
|
669
|
+
initial: this.scope(),
|
|
670
|
+
onRequest: (request) => this.scopeChangeRequest.emit(request),
|
|
671
|
+
});
|
|
672
|
+
if (state.request(next, reason, source))
|
|
673
|
+
this.scope.set(next);
|
|
674
|
+
}
|
|
675
|
+
announce(message) {
|
|
676
|
+
getLiveAnnouncer(this.host.nativeElement.ownerDocument).announce(message, { repeat: true });
|
|
677
|
+
}
|
|
678
|
+
labelOf(id) {
|
|
679
|
+
return id === undefined ? '' : (this.cache.get(id)?.label ?? '');
|
|
680
|
+
}
|
|
681
|
+
runSearch(query, scope) {
|
|
682
|
+
this.sessionConfig.delay = this.searchDelay() ?? this.defaults.searchDelay;
|
|
683
|
+
this.sessionConfig.minQueryLength = this.resolvedMinQuery();
|
|
684
|
+
this.session.search({ query, scope, selected: this.chosen() });
|
|
685
|
+
}
|
|
686
|
+
activate(key, reason, source) {
|
|
687
|
+
if (key === RETRY_OPTION) {
|
|
688
|
+
this.session.retry();
|
|
689
|
+
this.focus();
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
if (key === CREATE_OPTION) {
|
|
693
|
+
this.makeEntity(reason, source);
|
|
694
|
+
if (!this.multiple())
|
|
695
|
+
this.setOpen(false, 'select', source);
|
|
696
|
+
this.focus();
|
|
697
|
+
return;
|
|
698
|
+
}
|
|
699
|
+
const entity = this.cache.get(key);
|
|
700
|
+
if (entity?.disabled === true || this.blocked()?.has(key) === true)
|
|
701
|
+
return;
|
|
702
|
+
if (this.multiple()) {
|
|
703
|
+
this.toggle(key, reason, source);
|
|
704
|
+
return;
|
|
705
|
+
}
|
|
706
|
+
this.requestIds([key], reason, source);
|
|
707
|
+
this.typed.set(false);
|
|
708
|
+
this.setInput(this.labelOf(key), 'select', source);
|
|
709
|
+
this.setOpen(false, 'select', source);
|
|
710
|
+
}
|
|
711
|
+
toggle(id, reason, source) {
|
|
712
|
+
const chosen = this.chosen();
|
|
713
|
+
if (chosen.includes(id)) {
|
|
714
|
+
const next = chosen.filter((item) => item !== id);
|
|
715
|
+
if (this.requestIds(next, reason, source)) {
|
|
716
|
+
this.announce(this.t('removed', { label: this.labelOf(id), count: next.length }));
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
else {
|
|
720
|
+
const max = this.maxResolved();
|
|
721
|
+
if (max !== null && chosen.length >= max)
|
|
722
|
+
return;
|
|
723
|
+
const next = [...chosen, id];
|
|
724
|
+
if (this.requestIds(next, reason, source)) {
|
|
725
|
+
this.announce(this.t('added', { label: this.labelOf(id), count: next.length }));
|
|
726
|
+
if (max !== null && next.length === max) {
|
|
727
|
+
this.announce(this.t('complete', { max }));
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
this.setInput('', 'select', source);
|
|
732
|
+
}
|
|
733
|
+
remove(id, source) {
|
|
734
|
+
const next = this.chosen().filter((item) => item !== id);
|
|
735
|
+
if (this.requestIds(next, 'remove', source)) {
|
|
736
|
+
this.announce(this.t('removed', {
|
|
737
|
+
label: this.labelOf(id) || this.t('unresolved'),
|
|
738
|
+
count: next.length,
|
|
739
|
+
}));
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
clear(source) {
|
|
743
|
+
this.requestIds([], 'clear', source);
|
|
744
|
+
this.typed.set(false);
|
|
745
|
+
this.setInput('', 'clear', source);
|
|
746
|
+
}
|
|
747
|
+
makeEntity(reason, source) {
|
|
748
|
+
const text = this.inputValue().trim();
|
|
749
|
+
if (text === '')
|
|
750
|
+
return;
|
|
751
|
+
this.create.emit({ query: text, reason });
|
|
752
|
+
const maker = this.createEntity();
|
|
753
|
+
if (maker === undefined)
|
|
754
|
+
return;
|
|
755
|
+
const adopt = (made) => {
|
|
756
|
+
this.creating.set(false);
|
|
757
|
+
if (made === null || made === undefined)
|
|
758
|
+
return;
|
|
759
|
+
this.cache.remember([made]);
|
|
760
|
+
this.version.update((count) => count + 1);
|
|
761
|
+
if (this.multiple()) {
|
|
762
|
+
const chosen = this.chosen();
|
|
763
|
+
if (!chosen.includes(made.id)) {
|
|
764
|
+
this.requestIds([...chosen, made.id], 'submit', source);
|
|
765
|
+
this.announce(this.t('added', { label: made.label, count: chosen.length + 1 }));
|
|
766
|
+
}
|
|
767
|
+
this.setInput('', 'select', source);
|
|
768
|
+
}
|
|
769
|
+
else {
|
|
770
|
+
this.requestIds([made.id], 'submit', source);
|
|
771
|
+
this.typed.set(false);
|
|
772
|
+
this.setInput(made.label, 'select', source);
|
|
773
|
+
}
|
|
774
|
+
};
|
|
775
|
+
const result = maker(text);
|
|
776
|
+
if (result instanceof Promise) {
|
|
777
|
+
this.creating.set(true);
|
|
778
|
+
result.then(adopt, () => this.creating.set(false));
|
|
779
|
+
}
|
|
780
|
+
else {
|
|
781
|
+
adopt(result);
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
// ── Events ─────────────────────────────────────────────────────────────
|
|
785
|
+
onInput(event) {
|
|
786
|
+
const next = event.target.value;
|
|
787
|
+
this.typed.set(true);
|
|
788
|
+
this.setInput(next, 'keyboard', event);
|
|
789
|
+
if (!this.isOpen() && !this.resolvedReadOnly() && this.resolvedOpenOn() !== 'manual') {
|
|
790
|
+
this.entry = 'keep';
|
|
791
|
+
this.setOpen(true, 'keyboard', event);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
onFocus() {
|
|
795
|
+
if (this.resolvedOpenOn() !== 'focus' || this.resolvedReadOnly() || this.isOpen())
|
|
796
|
+
return;
|
|
797
|
+
this.entry = this.multiple() ? 'keep' : 'selected';
|
|
798
|
+
this.setOpen(true, 'keyboard');
|
|
799
|
+
}
|
|
800
|
+
onInputClick(event) {
|
|
801
|
+
if (event.defaultPrevented ||
|
|
802
|
+
this.resolvedOpenOn() === 'manual' ||
|
|
803
|
+
this.resolvedDisabled() ||
|
|
804
|
+
this.resolvedReadOnly() ||
|
|
805
|
+
this.isOpen()) {
|
|
806
|
+
return;
|
|
807
|
+
}
|
|
808
|
+
this.entry = this.multiple() ? 'keep' : 'selected';
|
|
809
|
+
this.setOpen(true, 'pointer', event);
|
|
810
|
+
}
|
|
811
|
+
onBlur(event) {
|
|
812
|
+
this.onTouched();
|
|
813
|
+
const next = event.relatedTarget;
|
|
814
|
+
const control = this.controlRef().nativeElement;
|
|
815
|
+
if (next instanceof Node && (this.surfaceNode?.contains(next) || control.contains(next)))
|
|
816
|
+
return;
|
|
817
|
+
const began = pressOrigin(control.ownerDocument);
|
|
818
|
+
if (began instanceof Node && this.surfaceNode?.contains(began) === true)
|
|
819
|
+
return;
|
|
820
|
+
this.settle(event);
|
|
821
|
+
if (this.isOpen())
|
|
822
|
+
this.setOpen(false, 'blur', event);
|
|
823
|
+
}
|
|
824
|
+
/** Text that is not the chosen name goes back to it; an emptied field clears the choice. */
|
|
825
|
+
settle(source) {
|
|
826
|
+
if (this.multiple() || !this.typed())
|
|
827
|
+
return;
|
|
828
|
+
if (this.inputValue().trim() === '') {
|
|
829
|
+
if (this.chosen().length > 0)
|
|
830
|
+
this.requestIds([], 'clear', source);
|
|
831
|
+
this.typed.set(false);
|
|
832
|
+
return;
|
|
833
|
+
}
|
|
834
|
+
this.typed.set(false);
|
|
835
|
+
this.setInput(this.labelOf(this.chosen()[0]), 'blur', source);
|
|
836
|
+
}
|
|
837
|
+
onKeyDown(event) {
|
|
838
|
+
if (this.resolvedDisabled())
|
|
839
|
+
return;
|
|
840
|
+
const input = event.target;
|
|
841
|
+
const action = entityPickerKey({
|
|
842
|
+
key: event.key,
|
|
843
|
+
altKey: event.altKey,
|
|
844
|
+
ctrlKey: event.ctrlKey,
|
|
845
|
+
metaKey: event.metaKey,
|
|
846
|
+
composing: event.isComposing,
|
|
847
|
+
open: this.isOpen(),
|
|
848
|
+
selectionMode: this.selectionMode(),
|
|
849
|
+
readOnly: this.resolvedReadOnly(),
|
|
850
|
+
highlighted: this.highlightedValue() !== null,
|
|
851
|
+
empty: input.value === '',
|
|
852
|
+
caretAtStart: input.selectionStart === 0 && input.selectionEnd === 0,
|
|
853
|
+
chips: this.chosen().length,
|
|
854
|
+
dir: getComputedStyle(input).direction === 'rtl' ? 'rtl' : 'ltr',
|
|
855
|
+
});
|
|
856
|
+
switch (action.type) {
|
|
857
|
+
case 'none':
|
|
858
|
+
if (event.key === 'Tab' && this.isOpen())
|
|
859
|
+
this.setOpen(false, 'blur', event);
|
|
860
|
+
return;
|
|
861
|
+
case 'open':
|
|
862
|
+
event.preventDefault();
|
|
863
|
+
this.entry = action.highlight;
|
|
864
|
+
this.setOpen(true, 'keyboard', event);
|
|
865
|
+
return;
|
|
866
|
+
case 'close':
|
|
867
|
+
event.preventDefault();
|
|
868
|
+
this.setOpen(false, action.reason, event);
|
|
869
|
+
return;
|
|
870
|
+
case 'move':
|
|
871
|
+
event.preventDefault();
|
|
872
|
+
this.move(action.intent, event);
|
|
873
|
+
return;
|
|
874
|
+
case 'activate': {
|
|
875
|
+
event.preventDefault();
|
|
876
|
+
const held = this.highlightedValue();
|
|
877
|
+
if (held !== null)
|
|
878
|
+
this.activate(held, 'keyboard', event);
|
|
879
|
+
return;
|
|
880
|
+
}
|
|
881
|
+
case 'revert':
|
|
882
|
+
event.preventDefault();
|
|
883
|
+
this.revert(event);
|
|
884
|
+
return;
|
|
885
|
+
case 'clearQuery':
|
|
886
|
+
event.preventDefault();
|
|
887
|
+
this.setInput('', 'clear', event);
|
|
888
|
+
return;
|
|
889
|
+
case 'focusChip': {
|
|
890
|
+
event.preventDefault();
|
|
891
|
+
const chips = [
|
|
892
|
+
...(this.chipsRef()?.nativeElement.querySelectorAll(CHIP_SELECTOR) ?? []),
|
|
893
|
+
].filter((chip) => !chip.hidden);
|
|
894
|
+
chips.at(-1)?.focus({ preventScroll: true });
|
|
895
|
+
return;
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
revert(source) {
|
|
900
|
+
const first = this.chosen()[0];
|
|
901
|
+
if (first === undefined) {
|
|
902
|
+
this.typed.set(false);
|
|
903
|
+
this.setInput('', 'programmatic', source);
|
|
904
|
+
return;
|
|
905
|
+
}
|
|
906
|
+
const name = this.labelOf(first);
|
|
907
|
+
if (this.inputValue() === name) {
|
|
908
|
+
this.clear(source);
|
|
909
|
+
return;
|
|
910
|
+
}
|
|
911
|
+
this.typed.set(false);
|
|
912
|
+
this.setInput(name, 'programmatic', source);
|
|
913
|
+
}
|
|
914
|
+
move(intent, source) {
|
|
915
|
+
const options = this.options();
|
|
916
|
+
const from = options.findIndex((option) => option.key === this.highlightedValue());
|
|
917
|
+
const next = moveIndex({
|
|
918
|
+
enabled: options.map((option) => !option.disabled),
|
|
919
|
+
from,
|
|
920
|
+
intent,
|
|
921
|
+
loop: this.loop() ?? this.defaults.loop,
|
|
922
|
+
});
|
|
923
|
+
if (next >= 0)
|
|
924
|
+
this.setHighlighted(options[next].key, 'keyboard', source);
|
|
925
|
+
}
|
|
926
|
+
placeHighlight(options) {
|
|
927
|
+
if (this.entry !== 'keep') {
|
|
928
|
+
const enabled = options.filter((option) => !option.disabled);
|
|
929
|
+
const chosen = this.chosen();
|
|
930
|
+
const target = this.entry === 'last'
|
|
931
|
+
? enabled.at(-1)
|
|
932
|
+
: this.entry === 'selected'
|
|
933
|
+
? options.find((option) => chosen.includes(option.key))
|
|
934
|
+
: enabled[0];
|
|
935
|
+
if (target !== undefined || this.entry !== 'selected') {
|
|
936
|
+
this.entry = 'keep';
|
|
937
|
+
if (target !== undefined)
|
|
938
|
+
this.setHighlighted(target.key, 'keyboard');
|
|
939
|
+
}
|
|
940
|
+
return;
|
|
941
|
+
}
|
|
942
|
+
const held = this.highlightedValue();
|
|
943
|
+
if (held !== null && !options.some((option) => option.key === held)) {
|
|
944
|
+
this.setHighlighted(null, 'keyboard');
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
onChipKey(id, event) {
|
|
948
|
+
if (event.defaultPrevented)
|
|
949
|
+
return;
|
|
950
|
+
const frozen = this.resolvedReadOnly() || this.resolvedDisabled();
|
|
951
|
+
switch (event.key) {
|
|
952
|
+
case 'Delete':
|
|
953
|
+
case 'Backspace':
|
|
954
|
+
if (frozen)
|
|
955
|
+
return;
|
|
956
|
+
event.preventDefault();
|
|
957
|
+
this.remove(id, event);
|
|
958
|
+
return;
|
|
959
|
+
case 'Escape':
|
|
960
|
+
event.preventDefault();
|
|
961
|
+
this.focus();
|
|
962
|
+
return;
|
|
963
|
+
default:
|
|
964
|
+
if (event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey) {
|
|
965
|
+
this.focus();
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
onRemoveClick(id, event) {
|
|
970
|
+
event.stopPropagation();
|
|
971
|
+
this.remove(id, event);
|
|
972
|
+
this.focus();
|
|
973
|
+
}
|
|
974
|
+
onCountClick(event) {
|
|
975
|
+
this.typed.set(true);
|
|
976
|
+
this.setInput('', 'programmatic', event);
|
|
977
|
+
this.entry = 'keep';
|
|
978
|
+
this.setOpen(true, 'pointer', event);
|
|
979
|
+
this.focus();
|
|
980
|
+
}
|
|
981
|
+
onClear(event) {
|
|
982
|
+
this.clear(event);
|
|
983
|
+
this.focus();
|
|
984
|
+
}
|
|
985
|
+
onToggle(event) {
|
|
986
|
+
if (this.resolvedDisabled() || this.resolvedReadOnly())
|
|
987
|
+
return;
|
|
988
|
+
this.entry = this.multiple() ? 'keep' : 'selected';
|
|
989
|
+
this.setOpen(!this.isOpen(), 'pointer', event);
|
|
990
|
+
this.focus();
|
|
991
|
+
}
|
|
992
|
+
onScopeRequest(request) {
|
|
993
|
+
const next = typeof request.value === 'string' ? request.value : null;
|
|
994
|
+
const reason = request.reason === 'pointer' || request.reason === 'keyboard'
|
|
995
|
+
? request.reason
|
|
996
|
+
: 'programmatic';
|
|
997
|
+
this.setScope(next, reason, request.source);
|
|
998
|
+
}
|
|
999
|
+
onRowEnter(entity, event) {
|
|
1000
|
+
if (this.isDisabled(entity))
|
|
1001
|
+
return;
|
|
1002
|
+
this.setHighlighted(entity.id, 'pointer', event);
|
|
1003
|
+
}
|
|
1004
|
+
onRowClick(entity, event) {
|
|
1005
|
+
if (this.isDisabled(entity))
|
|
1006
|
+
return;
|
|
1007
|
+
this.activate(entity.id, 'pointer', event);
|
|
1008
|
+
this.focus();
|
|
1009
|
+
}
|
|
1010
|
+
keepFocus(event) {
|
|
1011
|
+
if (event.defaultPrevented)
|
|
1012
|
+
return;
|
|
1013
|
+
event.preventDefault();
|
|
1014
|
+
}
|
|
1015
|
+
// ── The chips ──────────────────────────────────────────────────────────
|
|
1016
|
+
wireChips() {
|
|
1017
|
+
const row = this.chipsRef()?.nativeElement;
|
|
1018
|
+
if (row === undefined)
|
|
1019
|
+
return;
|
|
1020
|
+
this.navigation = createArrowNavigation(row, {
|
|
1021
|
+
itemSelector: `${CHIP_SELECTOR}, [data-part='field'] > [data-part='input']`,
|
|
1022
|
+
loop: false,
|
|
1023
|
+
ownedKeys: (item) => item instanceof HTMLInputElement && item.value !== ''
|
|
1024
|
+
? ['ArrowLeft', 'ArrowRight', 'Home', 'End']
|
|
1025
|
+
: [],
|
|
1026
|
+
});
|
|
1027
|
+
this.removal = createRemovalFocus(row, {
|
|
1028
|
+
itemSelector: CHIP_SELECTOR,
|
|
1029
|
+
fallback: () => this.inputRef()?.nativeElement ?? null,
|
|
1030
|
+
});
|
|
1031
|
+
if (!this.collapsing())
|
|
1032
|
+
return;
|
|
1033
|
+
this.collapse = createCollapse(row, {
|
|
1034
|
+
collapsible: (unit) => unit.dataset['part'] !== 'field',
|
|
1035
|
+
fixedSize: (unit) => unit.dataset['part'] === 'field'
|
|
1036
|
+
? Number.parseFloat(getComputedStyle(unit).minInlineSize) || 0
|
|
1037
|
+
: undefined,
|
|
1038
|
+
onChange: (units) => this.collapsedCount.set(units.length),
|
|
1039
|
+
trigger: () => this.countRef()?.nativeElement ?? null,
|
|
1040
|
+
units: () => [...row.children].filter((unit) => unit instanceof HTMLElement && !unit.hasAttribute('data-count')),
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
// ── The layer ──────────────────────────────────────────────────────────
|
|
1044
|
+
show() {
|
|
1045
|
+
this.build();
|
|
1046
|
+
this.position();
|
|
1047
|
+
this.bind();
|
|
1048
|
+
}
|
|
1049
|
+
build() {
|
|
1050
|
+
if (this.view !== null) {
|
|
1051
|
+
this.presence?.sync(true);
|
|
1052
|
+
this.view.detectChanges();
|
|
1053
|
+
return;
|
|
1054
|
+
}
|
|
1055
|
+
const origin = this.inputRef()?.nativeElement ?? this.host.nativeElement;
|
|
1056
|
+
this.portalRoot = createPortalRoot({ origin, disabled: this.portal() === false });
|
|
1057
|
+
this.view = this.viewContainer.createEmbeddedView(this.layerTemplate());
|
|
1058
|
+
this.view.detectChanges();
|
|
1059
|
+
this.layerNode = this.view.rootNodes.find((node) => node instanceof HTMLElement);
|
|
1060
|
+
this.surfaceNode = this.layerNode?.querySelector("[data-part='content']") ?? null;
|
|
1061
|
+
if (this.layerNode === null)
|
|
1062
|
+
return;
|
|
1063
|
+
this.portalRoot.container?.append(this.layerNode);
|
|
1064
|
+
this.presence = createPresence({ present: true });
|
|
1065
|
+
this.presence.setNode(this.layerNode);
|
|
1066
|
+
}
|
|
1067
|
+
position() {
|
|
1068
|
+
if (this.layerNode === null)
|
|
1069
|
+
return;
|
|
1070
|
+
this.positionerHandle?.destroy();
|
|
1071
|
+
this.positionerHandle = createPositioner(this.controlRef().nativeElement, this.layerNode, {
|
|
1072
|
+
align: 'start',
|
|
1073
|
+
alignOffset: 0,
|
|
1074
|
+
boundaryPadding: 8,
|
|
1075
|
+
flip: true,
|
|
1076
|
+
hideWhenDetached: true,
|
|
1077
|
+
matchWidth: this.resolvedWidth() === 'anchor',
|
|
1078
|
+
shift: true,
|
|
1079
|
+
side: this.side() ?? this.defaults.side,
|
|
1080
|
+
sideOffset: 4,
|
|
1081
|
+
strategy: this.strategy() ?? this.defaults.strategy,
|
|
1082
|
+
});
|
|
1083
|
+
void this.positionerHandle.update().then(() => this.positioned.set(true));
|
|
1084
|
+
}
|
|
1085
|
+
bind() {
|
|
1086
|
+
if (this.layerNode === null)
|
|
1087
|
+
return;
|
|
1088
|
+
this.layer = createDismissableLayer(this.layerNode, {
|
|
1089
|
+
branches: [this.controlRef().nativeElement],
|
|
1090
|
+
escape: true,
|
|
1091
|
+
focusOutside: false,
|
|
1092
|
+
modal: false,
|
|
1093
|
+
outsidePress: true,
|
|
1094
|
+
scrollLock: false,
|
|
1095
|
+
onDismiss: (request) => {
|
|
1096
|
+
this.setOpen(false, request.reason === 'escape' ? 'escape' : 'outsidePress', request.source);
|
|
1097
|
+
},
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
observeEnd() {
|
|
1101
|
+
this.observer?.disconnect();
|
|
1102
|
+
this.observer = null;
|
|
1103
|
+
const root = this.surfaceNode;
|
|
1104
|
+
if (root === null || !this.search().hasMore || typeof IntersectionObserver !== 'function')
|
|
1105
|
+
return;
|
|
1106
|
+
const sentinel = root.querySelector('[data-sentinel]');
|
|
1107
|
+
if (sentinel === null)
|
|
1108
|
+
return;
|
|
1109
|
+
this.observer = new IntersectionObserver((entries) => {
|
|
1110
|
+
if (entries.some((entry) => entry.isIntersecting))
|
|
1111
|
+
this.session.more();
|
|
1112
|
+
}, { root });
|
|
1113
|
+
this.observer.observe(sentinel);
|
|
1114
|
+
}
|
|
1115
|
+
hide() {
|
|
1116
|
+
this.layer?.destroy();
|
|
1117
|
+
this.positionerHandle?.destroy();
|
|
1118
|
+
this.observer?.disconnect();
|
|
1119
|
+
this.layer = null;
|
|
1120
|
+
this.positionerHandle = null;
|
|
1121
|
+
this.observer = null;
|
|
1122
|
+
this.positioned.set(false);
|
|
1123
|
+
this.teardown();
|
|
1124
|
+
}
|
|
1125
|
+
teardown() {
|
|
1126
|
+
this.layer?.destroy();
|
|
1127
|
+
this.positionerHandle?.destroy();
|
|
1128
|
+
this.presence?.destroy();
|
|
1129
|
+
this.portalRoot?.release();
|
|
1130
|
+
this.layerNode?.remove();
|
|
1131
|
+
this.view?.destroy();
|
|
1132
|
+
this.layer = null;
|
|
1133
|
+
this.positionerHandle = null;
|
|
1134
|
+
this.presence = null;
|
|
1135
|
+
this.portalRoot = null;
|
|
1136
|
+
this.layerNode = null;
|
|
1137
|
+
this.surfaceNode = null;
|
|
1138
|
+
this.view = null;
|
|
1139
|
+
}
|
|
1140
|
+
// ── Forms ──────────────────────────────────────────────────────────────
|
|
1141
|
+
writeValue(value) {
|
|
1142
|
+
this.value.set(this.multiple() ? idsOf(value ?? []) : (idsOf(value)[0] ?? null));
|
|
1143
|
+
this.typed.set(false);
|
|
1144
|
+
}
|
|
1145
|
+
registerOnChange(fn) {
|
|
1146
|
+
this.onChange = fn;
|
|
1147
|
+
}
|
|
1148
|
+
registerOnTouched(fn) {
|
|
1149
|
+
this.onTouched = fn;
|
|
1150
|
+
}
|
|
1151
|
+
setDisabledState(isDisabled) {
|
|
1152
|
+
this.disabledByForm.set(isDisabled);
|
|
1153
|
+
}
|
|
1154
|
+
validate() {
|
|
1155
|
+
this.version();
|
|
1156
|
+
const chosen = this.chosen();
|
|
1157
|
+
if (this.resolvedRequired() && chosen.length === 0)
|
|
1158
|
+
return { required: true };
|
|
1159
|
+
const missing = chosen.filter((id) => this.resolver.status(id) === 'missing');
|
|
1160
|
+
return missing.length > 0 ? { unresolved: { ids: missing } } : null;
|
|
1161
|
+
}
|
|
1162
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlEntityPicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1163
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlEntityPicker, isStandalone: true, selector: "sl-entity-picker", inputs: { selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: true, isRequired: false, transformFunction: null }, inputValue: { classPropertyName: "inputValue", publicName: "inputValue", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, highlightedValue: { classPropertyName: "highlightedValue", publicName: "highlightedValue", isSignal: true, isRequired: false, transformFunction: null }, scope: { classPropertyName: "scope", publicName: "scope", isSignal: true, isRequired: false, transformFunction: null }, source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, entities: { classPropertyName: "entities", publicName: "entities", isSignal: true, isRequired: false, transformFunction: null }, favorites: { classPropertyName: "favorites", publicName: "favorites", isSignal: true, isRequired: false, transformFunction: null }, recent: { classPropertyName: "recent", publicName: "recent", isSignal: true, isRequired: false, transformFunction: null }, scopes: { classPropertyName: "scopes", publicName: "scopes", isSignal: true, isRequired: false, transformFunction: null }, createEntity: { classPropertyName: "createEntity", publicName: "createEntity", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, media: { classPropertyName: "media", publicName: "media", isSignal: true, isRequired: false, transformFunction: null }, overflow: { classPropertyName: "overflow", publicName: "overflow", isSignal: true, isRequired: false, transformFunction: null }, openOn: { classPropertyName: "openOn", publicName: "openOn", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, strategy: { classPropertyName: "strategy", publicName: "strategy", isSignal: true, isRequired: false, transformFunction: null }, searchDelay: { classPropertyName: "searchDelay", publicName: "searchDelay", isSignal: true, isRequired: false, transformFunction: null }, minQueryLength: { classPropertyName: "minQueryLength", publicName: "minQueryLength", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null }, highlightMatch: { classPropertyName: "highlightMatch", publicName: "highlightMatch", isSignal: true, isRequired: false, transformFunction: null }, portal: { classPropertyName: "portal", publicName: "portal", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", 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 } }, outputs: { value: "valueChange", valueChangeRequest: "valueChangeRequest", inputValue: "inputValueChange", inputValueChangeRequest: "inputValueChangeRequest", open: "openChange", openChangeRequest: "openChangeRequest", highlightedValue: "highlightedValueChange", highlightedValueChangeRequest: "highlightedValueChangeRequest", scope: "scopeChange", scopeChangeRequest: "scopeChangeRequest", create: "create" }, host: { attributes: { "data-ui": "entity-picker", "data-part": "root" }, properties: { "attr.data-size": "resolvedSize()", "attr.data-variant": "resolvedVariant()", "attr.data-selection-mode": "selectionMode()", "attr.data-overflow": "resolvedOverflow()", "attr.data-full-width": "resolvedFullWidth() ? '' : null", "attr.data-open": "isOpen() ? '' : null", "attr.data-disabled": "resolvedDisabled() ? '' : null", "attr.data-readonly": "resolvedReadOnly() ? '' : null", "attr.data-invalid": "resolvedInvalid() ? '' : null", "attr.data-required": "resolvedRequired() ? '' : null", "attr.data-loading": "busy() ? '' : null", "attr.data-complete": "complete() ? '' : null", "attr.role": "hasScopes() ? 'group' : null", "attr.aria-labelledby": "hasScopes() ? (field?.ids()?.label ?? null) : null", "attr.aria-label": "hasScopes() && !field ? (ariaLabel() ?? null) : null" } }, providers: [
|
|
1164
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlEntityPicker), multi: true },
|
|
1165
|
+
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => SlEntityPicker), multi: true },
|
|
1166
|
+
], queries: [{ propertyName: "optionTemplate", first: true, predicate: SlEntityPickerOption, descendants: true, isSignal: true }, { propertyName: "chipTemplate", first: true, predicate: SlEntityPickerChip, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "layerTemplate", first: true, predicate: ["layer"], descendants: true, isSignal: true }, { propertyName: "controlRef", first: true, predicate: ["control"], descendants: true, isSignal: true }, { propertyName: "inputRef", first: true, predicate: ["input"], descendants: true, isSignal: true }, { propertyName: "chipsRef", first: true, predicate: ["chips"], descendants: true, isSignal: true }, { propertyName: "countRef", first: true, predicate: ["count"], descendants: true, isSignal: true }], exportAs: ["slEntityPicker"], ngImport: i0, template: `
|
|
1167
|
+
@if (hasScopes()) {
|
|
1168
|
+
<div data-part="scope">
|
|
1169
|
+
<sl-select
|
|
1170
|
+
[value]="scope()"
|
|
1171
|
+
[items]="scopeItems()"
|
|
1172
|
+
[size]="resolvedSize()"
|
|
1173
|
+
[variant]="resolvedVariant()"
|
|
1174
|
+
[disabled]="resolvedDisabled() || resolvedReadOnly()"
|
|
1175
|
+
[aria-label]="t('scope')"
|
|
1176
|
+
(valueChangeRequest)="onScopeRequest($event)"
|
|
1177
|
+
>
|
|
1178
|
+
@for (item of scopes(); track item.id) {
|
|
1179
|
+
<sl-select-item [value]="item.id" [label]="item.label" />
|
|
1180
|
+
}
|
|
1181
|
+
</sl-select>
|
|
1182
|
+
</div>
|
|
1183
|
+
}
|
|
1184
|
+
<div data-part="control" #control>
|
|
1185
|
+
@if (showSelection(); as chosen) {
|
|
1186
|
+
<span data-part="selection" aria-hidden="true">
|
|
1187
|
+
<span
|
|
1188
|
+
slAvatar
|
|
1189
|
+
decorative
|
|
1190
|
+
size="xs"
|
|
1191
|
+
[name]="chosen.avatar?.name ?? chosen.label"
|
|
1192
|
+
[initials]="initials(chosen)"
|
|
1193
|
+
[src]="chosen.avatar?.src"
|
|
1194
|
+
[shape]="chosen.avatar?.shape ?? 'circle'"
|
|
1195
|
+
[locale]="resolvedLocale()"
|
|
1196
|
+
></span>
|
|
1197
|
+
</span>
|
|
1198
|
+
}
|
|
1199
|
+
@if (multiple()) {
|
|
1200
|
+
<div data-part="values" role="grid" [attr.aria-label]="chipsLabel()">
|
|
1201
|
+
<div data-part="chips" role="row" #chips>
|
|
1202
|
+
@for (id of chosen(); track id) {
|
|
1203
|
+
<span
|
|
1204
|
+
data-ui="tag"
|
|
1205
|
+
data-part="root"
|
|
1206
|
+
data-size="sm"
|
|
1207
|
+
data-tone="secondary"
|
|
1208
|
+
role="gridcell"
|
|
1209
|
+
tabindex="-1"
|
|
1210
|
+
[attr.data-value]="id"
|
|
1211
|
+
[attr.data-variant]="record(id) ? 'soft' : 'outline'"
|
|
1212
|
+
[attr.data-loading]="resolution(id) === 'pending' ? '' : null"
|
|
1213
|
+
[attr.data-unresolved]="resolution(id) === 'missing' ? '' : null"
|
|
1214
|
+
[attr.data-disabled]="resolvedDisabled() ? '' : null"
|
|
1215
|
+
[attr.aria-busy]="resolution(id) === 'pending' ? true : null"
|
|
1216
|
+
[attr.aria-label]="chipName(id)"
|
|
1217
|
+
(keydown)="onChipKey(id, $event)"
|
|
1218
|
+
>
|
|
1219
|
+
<span data-part="body">
|
|
1220
|
+
@if (resolvedMedia() === 'avatar' && record(id)?.avatar !== null) {
|
|
1221
|
+
<span data-part="start">
|
|
1222
|
+
@if (record(id); as entity) {
|
|
1223
|
+
<span
|
|
1224
|
+
slAvatar
|
|
1225
|
+
decorative
|
|
1226
|
+
size="xs"
|
|
1227
|
+
[name]="entity.avatar?.name ?? entity.label"
|
|
1228
|
+
[initials]="initials(entity)"
|
|
1229
|
+
[src]="entity.avatar?.src"
|
|
1230
|
+
[shape]="entity.avatar?.shape ?? 'circle'"
|
|
1231
|
+
[locale]="resolvedLocale()"
|
|
1232
|
+
></span>
|
|
1233
|
+
} @else if (resolution(id) === 'pending') {
|
|
1234
|
+
<span
|
|
1235
|
+
data-ui="skeleton"
|
|
1236
|
+
data-part="root"
|
|
1237
|
+
data-shape="circle"
|
|
1238
|
+
data-size="xs"
|
|
1239
|
+
data-loading
|
|
1240
|
+
aria-hidden="true"
|
|
1241
|
+
></span>
|
|
1242
|
+
} @else if (resolution(id) === 'missing') {
|
|
1243
|
+
<span slIcon><svg slGlyph name="circle-alert"></svg></span>
|
|
1244
|
+
}
|
|
1245
|
+
</span>
|
|
1246
|
+
}
|
|
1247
|
+
<span data-part="label">
|
|
1248
|
+
@if (resolution(id) === 'pending' && !record(id)) {
|
|
1249
|
+
<span
|
|
1250
|
+
data-ui="skeleton"
|
|
1251
|
+
data-part="root"
|
|
1252
|
+
data-shape="text"
|
|
1253
|
+
data-loading
|
|
1254
|
+
aria-hidden="true"
|
|
1255
|
+
></span>
|
|
1256
|
+
} @else if (record(id) && chipTemplate(); as chip) {
|
|
1257
|
+
<ng-container
|
|
1258
|
+
[ngTemplateOutlet]="chip.template"
|
|
1259
|
+
[ngTemplateOutletContext]="{ $implicit: record(id)! }"
|
|
1260
|
+
/>
|
|
1261
|
+
} @else {
|
|
1262
|
+
{{ record(id)?.label ?? t('unresolved') }}
|
|
1263
|
+
}
|
|
1264
|
+
</span>
|
|
1265
|
+
</span>
|
|
1266
|
+
@if (!resolvedReadOnly() && !resolvedDisabled()) {
|
|
1267
|
+
<button
|
|
1268
|
+
type="button"
|
|
1269
|
+
data-part="remove"
|
|
1270
|
+
tabindex="-1"
|
|
1271
|
+
[attr.aria-label]="removeLabel(id)"
|
|
1272
|
+
(click)="onRemoveClick(id, $event)"
|
|
1273
|
+
>
|
|
1274
|
+
<span slIcon><svg slGlyph name="x"></svg></span>
|
|
1275
|
+
</button>
|
|
1276
|
+
}
|
|
1277
|
+
</span>
|
|
1278
|
+
}
|
|
1279
|
+
@if (collapsing()) {
|
|
1280
|
+
<span
|
|
1281
|
+
#count
|
|
1282
|
+
data-ui="tag"
|
|
1283
|
+
data-part="root"
|
|
1284
|
+
data-size="sm"
|
|
1285
|
+
data-tone="secondary"
|
|
1286
|
+
data-variant="outline"
|
|
1287
|
+
data-count
|
|
1288
|
+
role="gridcell"
|
|
1289
|
+
tabindex="-1"
|
|
1290
|
+
hidden
|
|
1291
|
+
[attr.aria-label]="moreLabel()"
|
|
1292
|
+
(click)="onCountClick($event)"
|
|
1293
|
+
>
|
|
1294
|
+
<span data-part="body">
|
|
1295
|
+
<span data-part="label">{{ moreText() }}</span>
|
|
1296
|
+
</span>
|
|
1297
|
+
</span>
|
|
1298
|
+
}
|
|
1299
|
+
<span data-part="field" role="gridcell">
|
|
1300
|
+
<ng-container [ngTemplateOutlet]="field_" />
|
|
1301
|
+
</span>
|
|
1302
|
+
</div>
|
|
1303
|
+
</div>
|
|
1304
|
+
} @else {
|
|
1305
|
+
<ng-container [ngTemplateOutlet]="field_" />
|
|
1306
|
+
}
|
|
1307
|
+
@if (showClear()) {
|
|
1308
|
+
<button
|
|
1309
|
+
type="button"
|
|
1310
|
+
data-part="clear"
|
|
1311
|
+
[attr.aria-label]="t('clear')"
|
|
1312
|
+
(click)="onClear($event)"
|
|
1313
|
+
>
|
|
1314
|
+
<span slIcon><svg slGlyph name="x"></svg></span>
|
|
1315
|
+
</button>
|
|
1316
|
+
}
|
|
1317
|
+
<button
|
|
1318
|
+
type="button"
|
|
1319
|
+
tabindex="-1"
|
|
1320
|
+
data-part="trigger"
|
|
1321
|
+
[disabled]="resolvedDisabled()"
|
|
1322
|
+
[attr.aria-label]="t('trigger')"
|
|
1323
|
+
(click)="onToggle($event)"
|
|
1324
|
+
>
|
|
1325
|
+
@if (busy()) {
|
|
1326
|
+
<span data-part="busy" data-ui="spinner" aria-hidden="true"></span>
|
|
1327
|
+
} @else {
|
|
1328
|
+
<span data-part="arrow"
|
|
1329
|
+
><span slIcon><svg slGlyph name="chevron-down"></svg></span
|
|
1330
|
+
></span>
|
|
1331
|
+
}
|
|
1332
|
+
</button>
|
|
1333
|
+
</div>
|
|
1334
|
+
|
|
1335
|
+
<ng-template #field_>
|
|
1336
|
+
<input
|
|
1337
|
+
#input
|
|
1338
|
+
type="text"
|
|
1339
|
+
role="combobox"
|
|
1340
|
+
data-part="input"
|
|
1341
|
+
autocomplete="off"
|
|
1342
|
+
aria-autocomplete="list"
|
|
1343
|
+
[id]="controlId()"
|
|
1344
|
+
[value]="inputValue()"
|
|
1345
|
+
[disabled]="resolvedDisabled()"
|
|
1346
|
+
[readOnly]="resolvedReadOnly()"
|
|
1347
|
+
[required]="resolvedRequired() && chosen().length === 0"
|
|
1348
|
+
[placeholder]="placeholder()"
|
|
1349
|
+
[attr.aria-expanded]="isOpen()"
|
|
1350
|
+
[attr.aria-controls]="isOpen() ? contentId : null"
|
|
1351
|
+
[attr.aria-activedescendant]="activeDescendant()"
|
|
1352
|
+
[attr.aria-label]="ariaLabel() ?? null"
|
|
1353
|
+
[attr.aria-describedby]="field?.describedBy() ?? null"
|
|
1354
|
+
[attr.aria-readonly]="resolvedReadOnly() ? true : null"
|
|
1355
|
+
[attr.aria-invalid]="resolvedInvalid() ? true : null"
|
|
1356
|
+
[attr.aria-busy]="pendingSingle() ? true : null"
|
|
1357
|
+
(input)="onInput($event)"
|
|
1358
|
+
(click)="onInputClick($event)"
|
|
1359
|
+
(keydown)="onKeyDown($event)"
|
|
1360
|
+
(focus)="onFocus()"
|
|
1361
|
+
(blur)="onBlur($event)"
|
|
1362
|
+
/>
|
|
1363
|
+
</ng-template>
|
|
1364
|
+
|
|
1365
|
+
<ng-template #layer>
|
|
1366
|
+
<div
|
|
1367
|
+
data-ui="entity-picker"
|
|
1368
|
+
data-part="positioner"
|
|
1369
|
+
data-align="start"
|
|
1370
|
+
[attr.data-size]="resolvedSize()"
|
|
1371
|
+
[attr.data-width]="resolvedWidth()"
|
|
1372
|
+
[attr.data-open]="isOpen() && positioned() ? '' : null"
|
|
1373
|
+
[attr.inert]="isOpen() ? null : ''"
|
|
1374
|
+
>
|
|
1375
|
+
<div
|
|
1376
|
+
data-part="content"
|
|
1377
|
+
role="listbox"
|
|
1378
|
+
[id]="contentId"
|
|
1379
|
+
[attr.aria-label]="ariaLabel() ?? null"
|
|
1380
|
+
[attr.aria-multiselectable]="multiple() ? true : null"
|
|
1381
|
+
[attr.aria-busy]="search().status === 'loading' ? true : null"
|
|
1382
|
+
[attr.data-loading]="refreshing() ? '' : null"
|
|
1383
|
+
>
|
|
1384
|
+
@if (!(failed() && search().items.length === 0)) {
|
|
1385
|
+
@for (section of sections().sections; track section.key) {
|
|
1386
|
+
@if (sections().headings) {
|
|
1387
|
+
<div
|
|
1388
|
+
data-part="group"
|
|
1389
|
+
role="group"
|
|
1390
|
+
[attr.aria-labelledby]="contentId + '-' + section.key"
|
|
1391
|
+
>
|
|
1392
|
+
<div data-part="group-label" [id]="contentId + '-' + section.key">
|
|
1393
|
+
{{ section.label }}
|
|
1394
|
+
</div>
|
|
1395
|
+
@for (entity of section.entities; track entity.id) {
|
|
1396
|
+
<ng-container
|
|
1397
|
+
[ngTemplateOutlet]="row"
|
|
1398
|
+
[ngTemplateOutletContext]="{ $implicit: entity }"
|
|
1399
|
+
/>
|
|
1400
|
+
}
|
|
1401
|
+
</div>
|
|
1402
|
+
} @else {
|
|
1403
|
+
@for (entity of section.entities; track entity.id) {
|
|
1404
|
+
<ng-container
|
|
1405
|
+
[ngTemplateOutlet]="row"
|
|
1406
|
+
[ngTemplateOutletContext]="{ $implicit: entity }"
|
|
1407
|
+
/>
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
@if (firstPage() && search().indicator) {
|
|
1413
|
+
<div data-part="placeholder" aria-hidden="true">
|
|
1414
|
+
@for (row of [0, 1, 2]; track row) {
|
|
1415
|
+
<div>
|
|
1416
|
+
<span
|
|
1417
|
+
data-ui="skeleton"
|
|
1418
|
+
data-part="root"
|
|
1419
|
+
data-shape="circle"
|
|
1420
|
+
data-size="xs"
|
|
1421
|
+
data-loading
|
|
1422
|
+
></span>
|
|
1423
|
+
<span data-ui="skeleton" data-part="root" data-shape="text" data-loading></span>
|
|
1424
|
+
<span data-ui="skeleton" data-part="root" data-shape="text" data-loading></span>
|
|
1425
|
+
</div>
|
|
1426
|
+
}
|
|
1427
|
+
</div>
|
|
1428
|
+
}
|
|
1429
|
+
@if (search().loadingMore && search().indicator) {
|
|
1430
|
+
<div data-part="more" aria-hidden="true">
|
|
1431
|
+
<div>
|
|
1432
|
+
<span
|
|
1433
|
+
data-ui="skeleton"
|
|
1434
|
+
data-part="root"
|
|
1435
|
+
data-shape="circle"
|
|
1436
|
+
data-size="xs"
|
|
1437
|
+
data-loading
|
|
1438
|
+
></span>
|
|
1439
|
+
<span data-ui="skeleton" data-part="root" data-shape="text" data-loading></span>
|
|
1440
|
+
<span data-ui="skeleton" data-part="root" data-shape="text" data-loading></span>
|
|
1441
|
+
</div>
|
|
1442
|
+
</div>
|
|
1443
|
+
}
|
|
1444
|
+
<div data-sentinel></div>
|
|
1445
|
+
@if (offerCreate()) {
|
|
1446
|
+
<div
|
|
1447
|
+
role="option"
|
|
1448
|
+
data-part="item"
|
|
1449
|
+
data-create
|
|
1450
|
+
aria-selected="false"
|
|
1451
|
+
[attr.data-value]="CREATE"
|
|
1452
|
+
[id]="optionId(CREATE)"
|
|
1453
|
+
[attr.data-current]="highlightedValue() === CREATE ? '' : null"
|
|
1454
|
+
[attr.data-loading]="creating() ? '' : null"
|
|
1455
|
+
(pointerdown)="keepFocus($event)"
|
|
1456
|
+
(pointerenter)="setHighlighted(CREATE, 'pointer', $event)"
|
|
1457
|
+
(click)="activate(CREATE, 'pointer', $event)"
|
|
1458
|
+
>
|
|
1459
|
+
<span data-part="media" aria-hidden="true"
|
|
1460
|
+
><span slIcon><svg slGlyph name="plus"></svg></span
|
|
1461
|
+
></span>
|
|
1462
|
+
<span data-part="label">{{ createText() }}</span>
|
|
1463
|
+
</div>
|
|
1464
|
+
}
|
|
1465
|
+
@if (failed()) {
|
|
1466
|
+
<div data-part="error">
|
|
1467
|
+
<span slIcon><svg slGlyph name="circle-alert"></svg></span>{{ t('error') }}
|
|
1468
|
+
</div>
|
|
1469
|
+
<div
|
|
1470
|
+
role="option"
|
|
1471
|
+
data-part="item"
|
|
1472
|
+
data-retry
|
|
1473
|
+
aria-selected="false"
|
|
1474
|
+
[attr.data-value]="RETRY"
|
|
1475
|
+
[id]="optionId(RETRY)"
|
|
1476
|
+
[attr.data-current]="highlightedValue() === RETRY ? '' : null"
|
|
1477
|
+
(pointerdown)="keepFocus($event)"
|
|
1478
|
+
(pointerenter)="setHighlighted(RETRY, 'pointer', $event)"
|
|
1479
|
+
(click)="activate(RETRY, 'pointer', $event)"
|
|
1480
|
+
>
|
|
1481
|
+
<span data-part="media" aria-hidden="true"
|
|
1482
|
+
><span slIcon><svg slGlyph name="rotate-ccw"></svg></span
|
|
1483
|
+
></span>
|
|
1484
|
+
<span data-part="label">{{ t('retry') }}</span>
|
|
1485
|
+
</div>
|
|
1486
|
+
}
|
|
1487
|
+
@if (showEmpty()) {
|
|
1488
|
+
<div data-part="empty">{{ t('empty') }}</div>
|
|
1489
|
+
}
|
|
1490
|
+
<div data-part="status" role="status" aria-live="polite">{{ statusMessage() }}</div>
|
|
1491
|
+
</div>
|
|
1492
|
+
</div>
|
|
1493
|
+
</ng-template>
|
|
1494
|
+
|
|
1495
|
+
<ng-template #row let-entity>
|
|
1496
|
+
<div
|
|
1497
|
+
role="option"
|
|
1498
|
+
data-part="item"
|
|
1499
|
+
[attr.data-value]="entity.id"
|
|
1500
|
+
[id]="optionId(entity.id)"
|
|
1501
|
+
[attr.aria-selected]="isChosen(entity.id)"
|
|
1502
|
+
[attr.aria-disabled]="isDisabled(entity) ? true : null"
|
|
1503
|
+
[attr.data-selected]="isChosen(entity.id) ? '' : null"
|
|
1504
|
+
[attr.data-current]="highlightedValue() === entity.id ? '' : null"
|
|
1505
|
+
[attr.data-disabled]="isDisabled(entity) ? '' : null"
|
|
1506
|
+
(pointerdown)="keepFocus($event)"
|
|
1507
|
+
(pointerenter)="onRowEnter(entity, $event)"
|
|
1508
|
+
(click)="onRowClick(entity, $event)"
|
|
1509
|
+
>
|
|
1510
|
+
@if (resolvedMedia() === 'avatar' && entity.avatar !== null) {
|
|
1511
|
+
<span data-part="media">
|
|
1512
|
+
<span
|
|
1513
|
+
slAvatar
|
|
1514
|
+
decorative
|
|
1515
|
+
size="xs"
|
|
1516
|
+
[name]="entity.avatar?.name ?? entity.label"
|
|
1517
|
+
[initials]="initials(entity)"
|
|
1518
|
+
[src]="entity.avatar?.src"
|
|
1519
|
+
[shape]="entity.avatar?.shape ?? 'circle'"
|
|
1520
|
+
[locale]="resolvedLocale()"
|
|
1521
|
+
></span>
|
|
1522
|
+
</span>
|
|
1523
|
+
}
|
|
1524
|
+
@if (optionTemplate(); as custom) {
|
|
1525
|
+
<ng-container
|
|
1526
|
+
[ngTemplateOutlet]="custom.template"
|
|
1527
|
+
[ngTemplateOutletContext]="{
|
|
1528
|
+
$implicit: entity,
|
|
1529
|
+
query: query(),
|
|
1530
|
+
selected: isChosen(entity.id),
|
|
1531
|
+
current: highlightedValue() === entity.id,
|
|
1532
|
+
disabled: isDisabled(entity),
|
|
1533
|
+
}"
|
|
1534
|
+
/>
|
|
1535
|
+
} @else {
|
|
1536
|
+
<span data-part="label">
|
|
1537
|
+
@if (resolvedHighlightMatch() && query() !== '') {
|
|
1538
|
+
<span
|
|
1539
|
+
slHighlight
|
|
1540
|
+
[text]="entity.label"
|
|
1541
|
+
[query]="query()"
|
|
1542
|
+
[locale]="resolvedLocale()"
|
|
1543
|
+
></span>
|
|
1544
|
+
} @else {
|
|
1545
|
+
{{ entity.label }}
|
|
1546
|
+
}
|
|
1547
|
+
</span>
|
|
1548
|
+
@if (entity.description) {
|
|
1549
|
+
<span data-part="description">{{ entity.description }}</span>
|
|
1550
|
+
}
|
|
1551
|
+
@if (entity.meta) {
|
|
1552
|
+
<span data-part="meta">{{ entity.meta }}</span>
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
<span data-part="indicator"
|
|
1556
|
+
><span slIcon><svg slGlyph name="check"></svg></span
|
|
1557
|
+
></span>
|
|
1558
|
+
</div>
|
|
1559
|
+
</ng-template>
|
|
1560
|
+
`, isInline: true, styles: ["@layer slotted.components{[data-ui=entity-picker][data-part=root]{--_font-size: var(--slotted-control-font-size-md, 13px);--_height: var(--slotted-control-height-md, 34px);--_padding-inline: var(--slotted-control-padding-inline-md, 13px);--_icon-floor: var(--slotted-entity-picker-icon-size-min, 14px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-md, 16px));--_inner-size: var(--slotted-control-inner-size-md, 24px);--_action-size: var( --slotted-entity-picker-action-size, min(calc(var(--_icon-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) );--_row-air: var(--slotted-space-1, .125rem);--_row-size: var(--_inner-size);--_row-gap: var(--slotted-space-2, .25rem);--_chip-media: calc(var(--_inner-size) - 2 * var(--slotted-space-1, .125rem));--_radius: var(--slotted-entity-picker-radius, var(--slotted-control-radius, 4px));display:flex;font-family:var(--slotted-control-font-family, system-ui, sans-serif);inline-size:100%;min-inline-size:0}[data-ui=entity-picker][data-part=root]:not([data-full-width]){display:inline-flex;inline-size:auto}[data-ui=entity-picker][data-part=root][data-size=sm]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_height: var(--slotted-control-height-sm, 30px);--_padding-inline: var(--slotted-control-padding-inline-sm, 10px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-sm, 14px));--_inner-size: var(--slotted-control-inner-size-sm, 22px)}[data-ui=entity-picker][data-part=root][data-size=lg]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_height: var(--slotted-control-height-lg, 38px);--_padding-inline: var(--slotted-control-padding-inline-lg, 16px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-lg, 18px));--_inner-size: var(--slotted-control-inner-size-lg, 28px)}[data-ui=entity-picker]>[data-part=scope]{display:flex;flex:0 0 var(--slotted-entity-picker-scope-inline-size, min(11rem, 45%));min-inline-size:0}[data-ui=entity-picker]>[data-part=scope]>[data-ui=select][data-part=root]{inline-size:100%}[data-ui=entity-picker]>[data-part=scope]>[data-ui=select][data-part=root]{border-end-end-radius:0;border-start-end-radius:0}[data-ui=entity-picker]>[data-part=scope]+[data-part=control]{border-end-start-radius:0;border-start-start-radius:0;margin-inline-start:calc(-1 * var(--slotted-control-border-width, 1px))}[data-ui=entity-picker]:not([data-disabled])>[data-part=scope]:is(:hover,:focus-within),[data-ui=entity-picker]:not([data-disabled])>[data-part=control]:is(:hover,:focus-within),[data-ui=entity-picker]:is([data-open],[data-invalid])>[data-part=control]{position:relative;z-index:1}[data-ui=entity-picker]>[data-part=control]{align-items:center;background-color:var( --slotted-entity-picker-background, var(--slotted-control-surface, Field) );border:var(--slotted-control-border-width, 1px) solid var(--slotted-entity-picker-border-color, var(--slotted-control-border-color, ButtonBorder));border-radius:var(--_radius);box-shadow:var(--slotted-entity-picker-shadow, var(--slotted-control-shadow, none));box-sizing:border-box;color:var(--slotted-entity-picker-color, var(--slotted-text, CanvasText));display:flex;flex:1 1 12rem;font-size:var(--_font-size);gap:var(--slotted-space-1, .125rem);min-block-size:var(--_height);min-inline-size:0;padding-inline-start:var(--_padding-inline);padding-inline-end:max(0px,calc(var(--_padding-inline) - (var(--_action-size) - var(--_icon-size)) / 2));transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),border-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),box-shadow var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=entity-picker]>[data-part=control]>[data-part=selection]{--slotted-avatar-size-xs: var(--_chip-media);display:inline-flex;flex:none;margin-inline-end:var(--slotted-space-3, .375rem)}[data-ui=entity-picker]>[data-part=control] [data-part=input]{background-color:transparent;border:0;color:inherit;flex:1 1 auto;font:inherit;outline:none;padding:0;min-inline-size:0;text-overflow:ellipsis}[data-ui=entity-picker]>[data-part=control]>[data-part=input]{align-self:stretch;margin-block:calc(var(--slotted-control-border-width, 1px) * -1)}[data-ui=entity-picker]>[data-part=control] [data-part=input]::placeholder{color:var(--slotted-entity-picker-placeholder-color, var(--slotted-text-muted, GrayText));text-overflow:ellipsis}[data-ui=entity-picker]>[data-part=control] [data-part=input]:autofill{box-shadow:inset 0 0 0 100px var(--slotted-entity-picker-autofill-background, var(--slotted-tone-accent-surface));-webkit-text-fill-color:var(--slotted-entity-picker-color, var(--slotted-text, CanvasText))}[data-ui=entity-picker]>[data-part=control]>[data-part=values]{align-self:stretch;display:flex;flex:1 1 auto;min-inline-size:0}[data-ui=entity-picker]>[data-part=control]>[data-part=values]+*{margin-inline-start:var(--_row-gap)}[data-ui=entity-picker]>[data-part=control] [data-part=chips]{--slotted-control-inner-size: var(--_inner-size);align-content:safe center;align-items:center;box-sizing:border-box;column-gap:var(--_row-gap);display:flex;flex:1 1 auto;flex-wrap:wrap;margin-inline:calc(-1 * var(--_row-air));max-block-size:calc(3 * var(--_row-size) + 2 * var(--_row-gap) + 2 * var(--_row-air));min-inline-size:0;overflow-y:auto;overscroll-behavior:contain;padding-block:var(--_row-air);padding-inline:var(--_row-air);row-gap:var(--_row-gap);scrollbar-width:none}[data-ui=entity-picker]>[data-part=control] [data-part=chips]::-webkit-scrollbar{display:none}[data-ui=entity-picker][data-part=root]:not([data-overflow=wrap])>[data-part=control] [data-part=chips]{flex-wrap:nowrap;max-block-size:none;overflow:hidden}[data-ui=entity-picker][data-part=root]:not([data-overflow=wrap])>[data-part=control] [data-part=chips]>[data-part=field]{flex:1 0 var(--slotted-entity-picker-field-min, 2.5rem)}[data-ui=entity-picker][data-part=root]:not([data-overflow=wrap])>[data-part=control] [data-part=chips]>:not([data-part=field],[hidden]):first-child:not(:has(~[data-ui=tag]:not([hidden],[data-count]))){flex-shrink:1;min-inline-size:calc(var(--_chip-media) + 3ch + var(--_inner-size))}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>[data-count]{cursor:pointer;flex:none}[data-ui=entity-picker]>[data-part=control] [data-part=field]{align-items:center;display:flex;flex:1 1 var(--slotted-entity-picker-field-basis, 4rem);min-block-size:var(--_row-size);min-inline-size:var(--slotted-entity-picker-field-min, 2.5rem)}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>:not([data-part=field]){flex:0 0 auto;max-inline-size:100%;min-block-size:var(--_row-size);min-inline-size:0}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>[data-ui]>[data-part=body]>[data-part=start]{--slotted-avatar-size-xs: var(--_chip-media);block-size:var(--_chip-media);inline-size:var(--_chip-media)}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>[data-ui]>[data-part=body]:has(>[data-part=start]){padding-inline-start:var(--slotted-space-1, .125rem)}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>:not([data-part=field]):focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>[data-ui][data-loading]>[data-part=body] [data-ui=skeleton]{--slotted-skeleton-inline-size: 5em}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>[data-ui][data-unresolved]{color:var(--slotted-text-muted, GrayText)}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>[data-ui][data-unresolved]>[data-part=body]>[data-part=start]>[data-ui=icon]{block-size:var(--_icon-size);inline-size:var(--_icon-size)}[data-ui=entity-picker]>[data-part=control]>:is([data-part=clear],[data-part=trigger]){align-items:center;appearance:none;background-color:transparent;block-size:var(--_action-size);border:0;border-radius:var(--_radius);color:var(--slotted-entity-picker-action-color, var(--slotted-text-muted, GrayText));cursor:pointer;display:inline-flex;flex:0 0 auto;inline-size:var(--_action-size);justify-content:center;padding:0;position:relative;touch-action:manipulation;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);-webkit-tap-highlight-color:transparent}[data-ui=entity-picker]>[data-part=control]>:is([data-part=clear],[data-part=trigger]):after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-min, 24px)) / 2));position:absolute}@media(pointer:coarse){[data-ui=entity-picker]>[data-part=control]>:is([data-part=clear],[data-part=trigger]):after{inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2))}[data-ui=entity-picker]>[data-part=control]>[data-part=clear]:has(+[data-part=trigger]:not([hidden])):after{inset-inline-end:0}[data-ui=entity-picker]>[data-part=control]>[data-part=clear]:not([hidden])+[data-part=trigger]:after{inset-inline-start:0}}[data-ui=entity-picker]>[data-part=control]>:is([data-part=clear],[data-part=trigger]){--slotted-icon-size: var(--_icon-size)}[data-ui=entity-picker]>[data-part=control]>[data-part=trigger]>[data-part=arrow]{align-items:center;block-size:var(--_icon-size);display:flex;inline-size:var(--_icon-size);justify-content:center}[data-ui=entity-picker]>[data-part=control]>[data-part=trigger]>[data-part=arrow]>[data-ui=icon]{transition:rotate var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=entity-picker][data-open]>[data-part=control]>[data-part=trigger]>[data-part=arrow]>[data-ui=icon]{rotate:180deg}[data-ui=entity-picker]>[data-part=control]>[data-part=trigger]>[data-part=busy]{--slotted-spinner-size: var(--_icon-size);color:var(--slotted-entity-picker-action-color, var(--slotted-text-muted, GrayText));flex:none}[data-ui=entity-picker]>[data-part=control]>:is([data-part=clear],[data-part=trigger]):hover:not(:disabled):not([data-disabled]){background-color:var( --slotted-entity-picker-action-hover-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=entity-picker]>[data-part=control]>:is([data-part=clear],[data-part=trigger]):active:not(:disabled):not([data-disabled]){background-color:var( --slotted-entity-picker-action-active-background, var(--slotted-tone-secondary-subtle-active) )}[data-ui=entity-picker]>[data-part=control]>:is([data-part=clear],[data-part=trigger]):focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(var(--slotted-focus-ring-offset, 2px) * -1)}[data-ui=entity-picker][data-part=root][data-variant=subtle]>[data-part=control]{background-color:var( --slotted-entity-picker-subtle-background, var(--slotted-surface-sunken, Canvas) );border-color:var( --slotted-entity-picker-subtle-border-color, var(--slotted-border-subtle, ButtonBorder) )}[data-ui=entity-picker][data-part=root][data-variant=plain]>[data-part=control]{background-color:transparent;border-color:transparent;border-radius:var(--slotted-radius-none, 0px);box-shadow:none}@media(forced-colors:active){[data-ui=entity-picker][data-part=root][data-variant=plain]>[data-part=control]{border-color:ButtonBorder}}[data-ui=entity-picker][data-part=root]:not([data-disabled]):not([data-readonly]):not([data-invalid])>[data-part=control]:hover{border-color:var( --slotted-entity-picker-hover-border-color, var(--slotted-tone-accent-border) )}[data-ui=entity-picker][data-part=root][data-variant=subtle]:not([data-disabled]):not([data-readonly]):not([data-invalid])>[data-part=control]:hover{background-color:var( --slotted-entity-picker-subtle-hover-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=entity-picker][data-part=root][data-variant=plain]:not([data-disabled]):not([data-readonly]):not([data-invalid])>[data-part=control]:hover{background-color:var( --slotted-entity-picker-plain-hover-background, var(--slotted-tone-secondary-subtle-hover) );border-color:transparent}[data-ui=entity-picker]>[data-part=control]:has([data-part=input]:focus-visible){box-shadow:var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px) var(--slotted-focus-ring-color, Highlight);outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui=entity-picker][data-part=root][data-variant=plain]>[data-part=control]:has([data-part=input]:focus-visible){box-shadow:none;outline-offset:calc(var(--slotted-focus-ring-offset, 2px) * -1)}[data-ui=entity-picker][data-part=root][data-open]:not([data-disabled])>[data-part=control]{border-color:var(--slotted-entity-picker-open-border-color, var(--slotted-tone-accent-border))}[data-ui=entity-picker][data-part=root][data-invalid]{--slotted-focus-ring-color: var( --slotted-entity-picker-invalid-focus-ring-color, var(--slotted-focus-ring-color-invalid, Highlight) )}[data-ui=entity-picker][data-part=root][data-invalid]>[data-part=control]{--_invalid-edge-width: var( --slotted-entity-picker-invalid-edge-width, var(--slotted-control-invalid-edge-width, 1px) );--_invalid-edge-color: var( --slotted-entity-picker-invalid-border-color, var(--slotted-tone-danger-border) );--_invalid-edge: inset 0 0 0 var(--_invalid-edge-width) var(--_invalid-edge-color);border-color:var( --slotted-entity-picker-invalid-border-color, var(--slotted-tone-danger-border) );box-shadow:var(--_invalid-edge)}[data-ui=entity-picker][data-invalid]>[data-part=control]:has([data-part=input]:focus-visible){box-shadow:var(--_invalid-edge),var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px) var(--slotted-focus-ring-color, Highlight)}[data-ui=entity-picker][data-part=root][data-variant=plain][data-invalid]>[data-part=control]:has([data-part=input]:focus-visible){box-shadow:inset 0 0 0 calc(var(--slotted-focus-ring-offset, 2px) - var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width)) var(--_invalid-edge-color)}@media(forced-colors:active){[data-ui=entity-picker][data-part=root][data-invalid]>[data-part=control]{outline:var(--_invalid-edge-width) solid CanvasText;outline-offset:calc(-1 * (var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width)))}[data-ui=entity-picker][data-invalid]>[data-part=control]:has([data-part=input]:focus-visible){outline:calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui=entity-picker][data-part=root][data-variant=plain][data-invalid]>[data-part=control]:has([data-part=input]:focus-visible){outline:calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * (var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)))}}[data-ui=entity-picker][data-part=root][data-readonly]>[data-part=control]{background-color:var( --slotted-entity-picker-readonly-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=entity-picker][data-part=root][data-readonly]>[data-part=control]>[data-part=trigger]>[data-part=arrow]{opacity:.5}[data-ui=entity-picker][data-part=root][data-disabled]>[data-part=control],[data-ui=entity-picker]>[data-part=control]:has([data-part=input]:disabled){background-color:var( --slotted-entity-picker-disabled-background, var(--slotted-disabled-background) );border-color:var( --slotted-entity-picker-disabled-border-color, var(--slotted-disabled-border) );box-shadow:none;color:var(--slotted-entity-picker-disabled-color, var(--slotted-disabled-foreground));cursor:not-allowed}[data-ui=entity-picker][data-part=root][data-disabled]>[data-part=control] :is([data-part=selection],[data-part=chips]>[data-ui]>[data-part=body]>[data-part=start]){opacity:.6}[data-ui=entity-picker][data-part=positioner]{--_surface: var(--slotted-entity-picker-surface, var(--slotted-surface-raised, #ffffff));--_text: var(--slotted-entity-picker-content-text, var(--slotted-text, #0f172a));--_muted: var(--slotted-entity-picker-content-text-muted, var(--slotted-text-muted, #5b6b7f));--_border-color: var( --slotted-entity-picker-content-border-color, var(--slotted-border-subtle, #e2e8f0) );--_border-width: var(--slotted-border-width-thin, 1px);--_content-radius: var(--slotted-entity-picker-content-radius, var(--slotted-radius-lg, 8px));--_shadow: var(--slotted-entity-picker-content-shadow, var(--slotted-shadow-md));--_highlight: var( --slotted-entity-picker-highlight, var(--slotted-tone-secondary-subtle-active) );--_highlight-active: var( --slotted-entity-picker-highlight-active, var(--slotted-tone-accent-surface) );--_selected-color: var(--slotted-entity-picker-selected-color, var(--slotted-tone-accent-text));--_inset-block: var(--slotted-space-2, .25rem);--_inset-inline: var(--slotted-space-2, .25rem);--_item-inset: var(--slotted-control-padding-inline-md, .8125rem);--_item-height: var(--slotted-control-height-md, 34px);--_item-radius: var(--slotted-entity-picker-item-radius, var(--slotted-control-radius));--_content-font-size: var(--slotted-control-font-size-md, 13px);--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);--_content-icon-size: var(--slotted-control-icon-size-md, 16px);--_column-gap: var(--slotted-control-gap-md, .5rem);--_media-size: var(--slotted-avatar-size-sm, 28px);--_measure: var(--slotted-entity-picker-measure, 28rem);--_enter-distance: var(--slotted-space-2, .25rem);box-sizing:border-box;inset-block-start:0;isolation:isolate;opacity:0;pointer-events:none;position:absolute;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit);translate:0 calc(-1 * var(--_enter-distance));z-index:calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0))}[data-ui=entity-picker][data-part=positioner][data-side=top]{translate:0 var(--_enter-distance)}[data-ui=entity-picker][data-part=positioner]:is([data-side=left],[data-side=right]){translate:0 0}[data-ui=entity-picker][data-part=positioner][data-open]{opacity:1;transition:none;translate:0 0}[data-ui=entity-picker][data-part=positioner][data-open][data-positioned]{animation:slotted-entity-picker-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter)}[data-ui=entity-picker][data-part=positioner][data-open][data-positioned][data-side=top]{animation-name:slotted-entity-picker-enter-up}[data-ui=entity-picker][data-part=positioner][data-open][data-positioned]:is([data-side=left],[data-side=right]){animation-name:slotted-entity-picker-fade}@keyframes slotted-entity-picker-enter-down{0%{opacity:0;translate:0 calc(-1 * var(--_enter-distance))}}@keyframes slotted-entity-picker-enter-up{0%{opacity:0;translate:0 var(--_enter-distance)}}@keyframes slotted-entity-picker-fade{0%{opacity:0}}@media(prefers-reduced-motion:reduce){[data-ui=entity-picker][data-part=positioner],[data-ui=entity-picker][data-part=positioner][data-side=top],[data-ui=entity-picker][data-part=positioner][data-side=left],[data-ui=entity-picker][data-part=positioner][data-side=right]{transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit);translate:0 0}[data-ui=entity-picker][data-part=positioner][data-open][data-positioned],[data-ui=entity-picker][data-part=positioner][data-open][data-positioned][data-side=top],[data-ui=entity-picker][data-part=positioner][data-open][data-positioned][data-side=left],[data-ui=entity-picker][data-part=positioner][data-open][data-positioned][data-side=right]{animation-name:slotted-entity-picker-fade}}[data-ui=entity-picker][data-part=positioner][data-detached]{visibility:hidden}[data-ui=entity-picker][data-part=positioner][data-width=anchor]{inline-size:var(--slotted-positioner-anchor-width, auto)}[data-ui=entity-picker][data-part=positioner][data-width=content]{inline-size:max-content;max-inline-size:min(var(--_measure),var(--slotted-positioner-available-width, 100vw));min-inline-size:var(--slotted-positioner-anchor-width, auto)}[data-ui=entity-picker][data-part=positioner][data-size=sm]{--_item-inset: var(--slotted-control-padding-inline-sm, .625rem);--_item-height: var(--slotted-control-height-sm, 30px);--_content-font-size: var(--slotted-control-font-size-sm, 12px);--_secondary-font-size: var(--slotted-font-size-xs, .75rem);--_content-icon-size: var(--slotted-control-icon-size-sm, 14px);--_column-gap: var(--slotted-control-gap-sm, .375rem);--_media-size: var(--slotted-avatar-size-xs, 24px)}[data-ui=entity-picker][data-part=positioner][data-size=lg]{--_item-inset: var(--slotted-control-padding-inline-lg, 1rem);--_item-height: var(--slotted-control-height-lg, 38px);--_content-font-size: var(--slotted-control-font-size-lg, 14px);--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);--_content-icon-size: var(--slotted-control-icon-size-lg, 18px);--_column-gap: var(--slotted-control-gap-lg, .5rem);--_media-size: var(--slotted-avatar-size-md, 36px)}[data-ui=entity-picker]>[data-part=content]{background:var(--_surface);border:var(--_border-width) solid var(--_border-color);border-radius:var(--_content-radius);box-shadow:var(--_shadow);box-sizing:border-box;color:var(--_text);display:grid;font-family:var(--slotted-font-family-sans);font-size:var(--_content-font-size);grid-auto-rows:max-content;grid-template-columns:auto minmax(0,1fr) fit-content(25%) auto;max-block-size:calc(var(--slotted-positioner-available-height, 100vh) - var(--slotted-space-5, .75rem));outline:none;overflow-y:auto;overscroll-behavior:contain;padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);pointer-events:auto}[data-ui=entity-picker]>[data-part=content][data-loading]>:is([data-part=group],[data-part=item]){opacity:.55;transition:opacity var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=entity-picker]>[data-part=content][data-loading]{cursor:progress}[data-ui=entity-picker][data-part=positioner] [data-part=group]{display:grid;grid-column:1 / -1;grid-template-columns:subgrid}[data-ui=entity-picker][data-part=positioner] [data-part=group]+[data-part=group]{margin-block-start:var(--slotted-space-2, .25rem)}[data-ui=entity-picker][data-part=positioner] [data-part=group-label]{color:var(--_muted);font-size:var(--_secondary-font-size);font-weight:var(--slotted-font-weight-semibold, 600);grid-column:1 / -1;line-height:var(--slotted-line-height-sm, 1.45);padding-block:var(--slotted-space-3, .375rem) var(--slotted-space-2, .25rem);padding-inline:var(--_item-inset)}[data-ui=entity-picker][data-part=positioner] [data-part=item]{align-content:center;align-items:center;border-radius:var(--_item-radius);box-sizing:border-box;column-gap:0;cursor:pointer;display:grid;grid-column:1 / -1;grid-template-columns:subgrid;grid-template-rows:auto;line-height:var(--slotted-line-height-md, 1.5);min-block-size:var(--_item-height);padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_item-inset);row-gap:0;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);-webkit-user-select:none;user-select:none}[data-ui=entity-picker][data-part=positioner] [data-part=item]:has(>[data-part=description]){grid-template-rows:auto auto}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-current]{background-color:var(--_highlight);box-shadow:inset 0 0 0 var(--slotted-border-width-thin, 1px) var(--slotted-entity-picker-highlight-ring, var(--slotted-tone-accent-border))}[data-ui=entity-picker][data-part=positioner] [data-part=item]:not([data-disabled]):active{background-color:var(--_highlight-active)}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-selected]{color:var(--_selected-color)}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-selected]+[data-part=item][data-selected]{border-start-end-radius:0;border-start-start-radius:0}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-selected]:has(+[data-part=item][data-selected]){border-end-end-radius:0;border-end-start-radius:0}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-selected]>[data-part=label]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-disabled]{color:var(--slotted-disabled-foreground, #64748b);cursor:not-allowed}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-disabled][data-current]{box-shadow:inset 0 0 0 var(--slotted-border-width-thin, 1px) var(--slotted-disabled-border, #cbd5e1);color:var(--slotted-disabled-foreground, #64748b)}[data-ui=entity-picker][data-part=positioner] [data-part=media]{--slotted-avatar-size-xs: var(--_media-size);align-self:center;display:flex;grid-column:1;grid-row:1 / -1;justify-content:center;margin-inline-end:var(--_column-gap)}[data-ui=entity-picker][data-part=positioner] [data-part=media]:empty{block-size:var(--_content-icon-size);inline-size:var(--_media-size)}[data-ui=entity-picker][data-part=positioner] [data-part=label]{-webkit-box-orient:vertical;display:-webkit-box;grid-column:2;grid-row:1;-webkit-line-clamp:2;min-inline-size:0;overflow:hidden;overflow-wrap:anywhere;justify-self:start;max-inline-size:100%;unicode-bidi:plaintext}[data-ui=entity-picker][data-part=positioner] [data-part=description]{color:var(--_muted);font-size:var(--_secondary-font-size);grid-column:2 / 4;grid-row:2;line-height:var(--slotted-line-height-sm, 1.45);min-inline-size:0;overflow:hidden;text-overflow:ellipsis;justify-self:start;max-inline-size:100%;unicode-bidi:plaintext;white-space:nowrap}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-disabled]>[data-part=description]{color:inherit}[data-ui=entity-picker][data-part=positioner] [data-part=meta]{align-self:start;color:var(--_muted);font-size:var(--_secondary-font-size);grid-column:3;grid-row:1;line-height:calc(var(--_content-font-size) * var(--slotted-line-height-md, 1.5));margin-inline-start:var(--_column-gap);max-inline-size:var(--slotted-entity-picker-meta-measure, 8em);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-ui=entity-picker][data-part=positioner] [data-part=indicator]{--slotted-icon-size: var(--_content-icon-size);align-items:center;align-self:start;block-size:calc(var(--_content-font-size) * var(--slotted-line-height-md, 1.5));display:flex;grid-column:4;grid-row:1;inline-size:var(--_content-icon-size);justify-content:center;margin-inline-start:var(--_column-gap);opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-selected]>[data-part=indicator]{opacity:1}[data-ui=entity-picker][data-part=positioner] [data-part=item]:not(:has(>[data-part=meta]))>[data-part=label]{grid-column:2 / 4}[data-ui=entity-picker][data-part=positioner] [data-part=item]:not(:has(>[data-part=description]))>:is([data-part=indicator],[data-part=meta]){align-self:center}[data-ui=entity-picker][data-part=positioner] [data-part=item]:is([data-create],[data-retry]){color:var(--slotted-entity-picker-offer-color, var(--slotted-tone-accent-text))}[data-ui=entity-picker][data-part=positioner] [data-part=item]:is([data-create],[data-retry])>[data-part=media]{--slotted-icon-size: var(--_content-icon-size);align-items:center;align-self:start;block-size:calc(var(--_content-font-size) * var(--slotted-line-height-md, 1.5));grid-row:1;inline-size:var(--_media-size)}[data-ui=entity-picker][data-part=positioner] :is([data-part=empty],[data-part=status],[data-part=error]){color:var(--_muted);grid-column:1 / -1;min-inline-size:min(12rem,100%);padding-block:var(--slotted-space-5, .75rem);padding-inline:var(--_item-inset);text-align:center;unicode-bidi:plaintext}[data-ui=entity-picker][data-part=positioner] [data-part=status]:empty{display:none}[data-ui=entity-picker][data-part=positioner] [data-part=error]{align-items:center;color:var(--_text);display:flex;gap:var(--_column-gap);padding-block:var(--slotted-space-4, .5rem) var(--slotted-space-2, .25rem);text-align:start}[data-ui=entity-picker][data-part=positioner] [data-part=error]>[data-ui=icon]{--slotted-icon-size: var(--_content-icon-size);color:var(--slotted-entity-picker-error-color, var(--slotted-tone-danger-text));margin-inline:calc((var(--_media-size) - var(--_content-icon-size)) / 2)}[data-ui=entity-picker][data-part=positioner] :is([data-part=placeholder],[data-part=more]){display:grid;grid-column:1 / -1;grid-template-columns:subgrid}[data-ui=entity-picker][data-part=positioner] :is([data-part=placeholder],[data-part=more])>*{align-items:center;display:grid;grid-column:1 / -1;grid-template-columns:subgrid;grid-template-rows:auto auto;line-height:var(--slotted-line-height-md, 1.5);min-block-size:var(--_item-height);padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_item-inset)}[data-ui=entity-picker][data-part=positioner] :is([data-part=placeholder],[data-part=more])>*>:first-child{--slotted-skeleton-size: var(--_media-size);grid-column:1;grid-row:1 / -1;margin-inline-end:var(--_column-gap)}[data-ui=entity-picker][data-part=positioner] :is([data-part=placeholder],[data-part=more])>*>:nth-child(2){--slotted-skeleton-inline-size: 62%;grid-column:2;grid-row:1;margin-block:calc((1lh - 1cap)/2)}[data-ui=entity-picker][data-part=positioner] :is([data-part=placeholder],[data-part=more])>*>:nth-child(3){--slotted-skeleton-inline-size: 44%;font-size:var(--_secondary-font-size);grid-column:2;grid-row:2;line-height:var(--slotted-line-height-sm, 1.45);margin-block:calc((1lh - 1cap)/2)}[data-ui=entity-picker][data-part=positioner] [data-part=placeholder]>:nth-child(2)>:nth-child(2){--slotted-skeleton-inline-size: 48%}[data-ui=entity-picker][data-part=positioner] [data-part=placeholder]>:nth-child(2)>:nth-child(3){--slotted-skeleton-inline-size: 58%}[data-ui=entity-picker][data-part=positioner] [data-part=placeholder]>:nth-child(3)>:nth-child(2){--slotted-skeleton-inline-size: 70%}[data-ui=entity-picker][data-part=positioner] [data-part=placeholder]>:nth-child(3)>:nth-child(3){--slotted-skeleton-inline-size: 36%}@media(forced-colors:active){[data-ui=entity-picker][data-part=positioner] [data-part=item][data-current]{background-color:Highlight;color:HighlightText;forced-color-adjust:none}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-disabled][data-current]{background-color:Highlight;color:GrayText}}}\n", "@layer slotted.components{[data-ui=tag][data-part=root]{--_solid: var(--slotted-tone-secondary-solid-hover);--_solid-hover: var(--slotted-tone-secondary-solid-active);--_solid-active: var(--slotted-tone-secondary-solid-active);--_on-solid: var(--slotted-tone-secondary-on-solid);--_surface: var(--slotted-tone-secondary-surface);--_subtle-hover: var(--slotted-tone-secondary-subtle-hover);--_subtle-active: var(--slotted-tone-secondary-subtle-active);--_border: var(--slotted-tag-border-color, var(--slotted-tone-secondary-border));--_text: var(--slotted-tone-secondary-text);--_edge: var(--_solid);--_font-size: var(--slotted-control-font-size-md, 13px);--_icon-size: var(--slotted-control-icon-size-sm, 14px);--_inner-size: var(--slotted-control-inner-size-sm, 22px);--_inset-block: var(--slotted-tag-inset-block, var(--slotted-space-2, .25rem));--_inset-inline: var(--slotted-space-4, .5rem);--_gap: var(--slotted-space-2, .25rem);--_line-height: var(--slotted-line-height-xs, 1.4);--_edge-width: var(--slotted-tag-border-width, var(--slotted-border-width-thin, 1px));--_radius: var(--slotted-radius-full, 9999px);--_inner-radius: max(0px, calc(var(--_radius) - var(--_edge-width)));--_own-size: calc( var(--_font-size) * var(--_line-height) + 2 * var(--_inset-block) + 2 * var(--_edge-width) );--_block-size: var(--slotted-control-inner-size, var(--_own-size));--_line: min( calc(var(--_font-size) * var(--_line-height)), calc(var(--_block-size) - 2 * var(--_edge-width)) );--_inset: max(0px, calc((var(--_block-size) - var(--_line) - 2 * var(--_edge-width)) / 2));align-items:stretch;border:var(--_edge-width) solid transparent;border-radius:var(--_radius);box-sizing:border-box;display:inline-flex;font-family:var(--slotted-tag-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_font-size);font-weight:var(--slotted-tag-font-weight, var(--slotted-font-weight-medium, 500));line-height:var(--_line);max-inline-size:100%;min-block-size:var(--_block-size);vertical-align:middle;white-space:nowrap}[data-ui=tag][data-part=root][hidden]{display:none}[data-ui=tag][data-part=root][data-tone=secondary]{--_edge: var(--_border)}[data-ui=tag][data-part=root][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_solid-hover: var(--slotted-tone-accent-solid-hover);--_solid-active: var(--slotted-tone-accent-solid-active);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_subtle-hover: var(--slotted-tone-accent-subtle-hover);--_subtle-active: var(--slotted-tone-accent-subtle-active);--_border: var(--slotted-tag-border-color, var(--slotted-tone-accent-border));--_text: var(--slotted-tone-accent-text)}[data-ui=tag][data-part=root][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_solid-hover: var(--slotted-tone-success-solid-hover);--_solid-active: var(--slotted-tone-success-solid-active);--_on-solid: var(--slotted-tone-success-on-solid);--_surface: var(--slotted-tone-success-surface);--_subtle-hover: var(--slotted-tone-success-subtle-hover);--_subtle-active: var(--slotted-tone-success-subtle-active);--_border: var(--slotted-tag-border-color, var(--slotted-tone-success-border));--_text: var(--slotted-tone-success-text)}[data-ui=tag][data-part=root][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_solid-hover: var(--slotted-tone-warning-solid-hover);--_solid-active: var(--slotted-tone-warning-solid-active);--_on-solid: var(--slotted-tone-warning-on-solid);--_surface: var(--slotted-tone-warning-surface);--_subtle-hover: var(--slotted-tone-warning-subtle-hover);--_subtle-active: var(--slotted-tone-warning-subtle-active);--_border: var(--slotted-tag-border-color, var(--slotted-tone-warning-border));--_text: var(--slotted-tone-warning-text)}[data-ui=tag][data-part=root][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_solid-hover: var(--slotted-tone-danger-solid-hover);--_solid-active: var(--slotted-tone-danger-solid-active);--_on-solid: var(--slotted-tone-danger-on-solid);--_surface: var(--slotted-tone-danger-surface);--_subtle-hover: var(--slotted-tone-danger-subtle-hover);--_subtle-active: var(--slotted-tone-danger-subtle-active);--_border: var(--slotted-tag-border-color, var(--slotted-tone-danger-border));--_text: var(--slotted-tone-danger-text)}[data-ui=tag][data-part=root][data-variant=solid]{background-color:var(--_solid, ButtonFace);border-color:var(--_edge, ButtonFace);color:var(--_on-solid, ButtonText)}[data-ui=tag][data-part=root][data-variant=soft]{background-color:var(--_surface, ButtonFace);border-color:var(--_border, ButtonBorder);color:var(--_text, ButtonText)}[data-ui=tag][data-part=root][data-variant=outline]{background-color:transparent;border-color:var(--_border, ButtonBorder);color:var(--_text, ButtonText)}[data-ui=tag][data-part=root][data-size=sm]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_inset-block: var(--slotted-tag-inset-block, var(--slotted-space-1, .125rem));--_inset-inline: var(--slotted-space-3, .375rem)}[data-ui=tag][data-part=root][data-size=lg]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_icon-size: var(--slotted-control-icon-size-md, 16px);--_inner-size: var(--slotted-control-inner-size-md, 24px);--_inset-block: var(--slotted-tag-inset-block, var(--slotted-space-3, .375rem));--_inset-inline: var(--slotted-space-5, .75rem);--_gap: var(--slotted-space-3, .375rem)}[data-ui=tag][data-part=root][data-shape=square]{--_radius: var(--slotted-radius-sm, 4px)}[data-ui=tag] [data-part=body]{align-items:center;background-color:transparent;border:0;border-end-start-radius:var(--_inner-radius);border-start-start-radius:var(--_inner-radius);box-sizing:border-box;color:inherit;display:inline-flex;font:inherit;gap:var(--_gap);letter-spacing:inherit;min-inline-size:0;padding-block:var(--_inset);padding-inline:var(--_inset-inline);text-align:start;text-decoration:none;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=tag] [data-part=body]:last-child{border-end-end-radius:var(--_inner-radius);border-start-end-radius:var(--_inner-radius)}[data-ui=tag] [data-part=body]:has(+[data-part=remove]){padding-inline-end:var(--_gap)}[data-ui=tag] [data-part=body]:is(a,button){cursor:pointer}[data-ui=tag] [data-part=label]{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;unicode-bidi:plaintext}@supports (text-box: trim-both cap alphabetic){[data-ui=tag] [data-part=label]{margin-block:-.3em;padding-block:.3em;text-box:trim-both cap alphabetic}}[data-ui=tag] [data-part=start],[data-ui=tag] [data-part=end]{--slotted-icon-size: var(--_icon-size);align-items:center;block-size:var(--_icon-size);box-sizing:border-box;display:inline-flex;flex:none;font-size:var(--_icon-size);inline-size:var(--_icon-size);justify-content:center;line-height:1}[data-ui=tag] [data-part=start]>*,[data-ui=tag] [data-part=end]>*{block-size:100%;display:block;inline-size:100%}[data-ui=tag] [data-part=indicator]{--slotted-icon-size: var(--_icon-size);align-items:center;block-size:var(--_icon-size);display:inline-flex;flex:none;inline-size:0;justify-content:center;margin-inline-end:calc(-1 * var(--_gap));opacity:0;overflow:hidden;transition:inline-size var(--slotted-duration-short) var(--slotted-easing-standard),margin-inline-end var(--slotted-duration-short) var(--slotted-easing-standard),opacity var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui=tag][data-part=root][data-selected] [data-part=indicator]{inline-size:var(--_icon-size);margin-inline-end:0;opacity:1}[data-ui=tag] [data-part=remove]{--slotted-icon-size: var(--_icon-size);align-items:center;appearance:none;background-color:transparent;border:0;border-end-end-radius:var(--_inner-radius);border-start-end-radius:var(--_inner-radius);box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;flex:none;inline-size:max(var(--slotted-target-min, 24px),min(calc(var(--_icon-size) + 2 * var(--slotted-space-2, .25rem)),var(--_inner-size)));justify-content:center;padding:0;position:relative;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=tag] [data-part=remove]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-min, 24px)) / 2));position:absolute}@media(pointer:coarse){[data-ui=tag] [data-part=remove]{inline-size:max(var(--slotted-target-min, 24px),min(calc(var(--_icon-size) + 2 * var(--slotted-space-2, .25rem)),var(--_inner-size)),calc(var(--_block-size) - 2 * var(--_edge-width)))}[data-ui=tag] [data-part=remove]:after{inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2))}}[data-ui=tag] [data-part=remove]:first-child{border-end-start-radius:var(--_inner-radius);border-start-start-radius:var(--_inner-radius)}[data-ui=tag][data-part=root][data-selected]:not([data-disabled]){background-color:var(--_solid, ButtonFace);border-color:var(--_edge, ButtonBorder);color:var(--_on-solid, ButtonText)}[data-ui=tag][data-part=root]{--_state-hover: color-mix( in oklab, currentColor var(--slotted-tag-state-layer-hover, 8%), transparent );--_state-active: color-mix( in oklab, currentColor var(--slotted-tag-state-layer-active, 14%), transparent )}[data-ui=tag][data-part=root][data-variant=soft]:not([data-disabled]):not([data-selected]) :is([data-part=body]:is(a,button),[data-part=remove]):hover:not(:disabled){background-color:var(--_state-hover)}[data-ui=tag][data-part=root][data-variant=soft]:not([data-disabled]):not([data-selected]) :is([data-part=body]:is(a,button),[data-part=remove]):active:not(:disabled){background-color:var(--_state-active)}[data-ui=tag][data-part=root][data-variant=outline]:not([data-disabled]):not([data-selected]) :is([data-part=body]:is(a,button),[data-part=remove]):hover:not(:disabled){background-color:var(--_subtle-hover, ButtonFace)}[data-ui=tag][data-part=root][data-variant=outline]:not([data-disabled]):not([data-selected]) :is([data-part=body]:is(a,button),[data-part=remove]):active:not(:disabled){background-color:var(--_subtle-active, ButtonFace)}[data-ui=tag][data-part=root][data-variant=solid]:not([data-disabled]) :is([data-part=body]:is(a,button),[data-part=remove]):hover:not(:disabled),[data-ui=tag][data-part=root][data-selected]:not([data-disabled]) :is([data-part=body]:is(a,button),[data-part=remove]):hover:not(:disabled){background-color:var(--_solid-hover, Highlight)}[data-ui=tag][data-part=root][data-variant=solid]:not([data-disabled]) :is([data-part=body]:is(a,button),[data-part=remove]):active:not(:disabled),[data-ui=tag][data-part=root][data-selected]:not([data-disabled]) :is([data-part=body]:is(a,button),[data-part=remove]):active:not(:disabled){background-color:var(--_solid-active, Highlight)}[data-ui=tag] [data-part=body]:focus-visible,[data-ui=tag] [data-part=remove]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-2 * var(--slotted-focus-ring-width, 2px))}[data-ui=tag][data-part=group]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui=tag][data-part=root][data-disabled]{color:var(--slotted-disabled-foreground, GrayText)}[data-ui=tag][data-part=root][data-variant=solid][data-disabled],[data-ui=tag][data-part=root][data-variant=soft][data-disabled],[data-ui=tag][data-part=root][data-selected][data-disabled]{background-color:var(--slotted-disabled-background, Canvas);border-color:var(--slotted-disabled-border, GrayText)}[data-ui=tag][data-part=root][data-variant=outline][data-disabled]{background-color:transparent;border-color:var(--slotted-disabled-border, GrayText)}[data-ui=tag][data-part=root][data-disabled] :is([data-part=body],[data-part=remove]),[data-ui=tag] [data-part=body]:disabled,[data-ui=tag] [data-part=remove]:disabled{background-color:transparent;cursor:not-allowed}[data-ui=tag] [data-part=remove]:disabled{color:var(--slotted-disabled-foreground, GrayText)}[data-ui=tag][data-part=group]{align-items:center;display:flex;flex-wrap:wrap;gap:var(--slotted-tag-group-gap, var(--slotted-space-2, .25rem))}[data-ui=tag][data-part=group][data-orientation=vertical]{align-items:start;flex-direction:column;flex-wrap:nowrap;inline-size:fit-content}[data-ui=tag][data-part=group]:empty{display:none}@media(forced-colors:active){[data-ui=tag][data-part=root]{border-color:currentColor}[data-ui=tag][data-part=root][data-selected]:not([data-disabled]){background-color:Highlight;color:HighlightText;forced-color-adjust:none}[data-ui=tag][data-part=root][data-disabled]{border-color:GrayText;color:GrayText}}}\n", "@layer slotted.components{[data-ui=spinner]{--_size: var(--slotted-spinner-size, var(--slotted-control-icon-size-md, 16px));--_ring: calc(var(--_size) * 5 / 6);--_stroke: max(var(--slotted-border-width-medium, 1.5px), calc(var(--_size) / 12));--_radius: calc((var(--_ring) - var(--_stroke)) / 2);--_track: color-mix(in oklab, currentColor 20%, transparent);--_start: calc(var(--_turn) + var(--_tail));--_end: calc(var(--_turn) + var(--_head));--_cap: calc(var(--_stroke) / 2);animation:slotted-spinner-turn var(--slotted-duration-loop-slow) linear infinite,slotted-spinner-head var(--slotted-duration-loop-slow) linear infinite,slotted-spinner-tail var(--slotted-duration-loop-slow) linear infinite;background-image:radial-gradient(circle at calc(50% + var(--_radius) * sin(var(--_end))) calc(50% - var(--_radius) * cos(var(--_end))),currentColor calc(var(--_cap) - .5px),transparent calc(var(--_cap) + .5px)),radial-gradient(circle at calc(50% + var(--_radius) * sin(var(--_start))) calc(50% - var(--_radius) * cos(var(--_start))),currentColor calc(var(--_cap) - .5px),transparent calc(var(--_cap) + .5px)),conic-gradient(from var(--_start),currentColor 0deg,currentColor calc(var(--_head) - var(--_tail)),transparent calc(var(--_head) - var(--_tail))),conic-gradient(var(--_track) 0 100%);background-origin:content-box;background-clip:content-box;block-size:var(--_size);box-sizing:border-box;display:inline-block;flex:none;inline-size:var(--_size);-webkit-mask-image:radial-gradient(circle,transparent calc(var(--_ring) / 2 - var(--_stroke) - .5px),#000 calc(var(--_ring) / 2 - var(--_stroke) + .5px),#000 calc(var(--_ring) / 2 - .5px),transparent calc(var(--_ring) / 2 + .5px));mask-image:radial-gradient(circle,transparent calc(var(--_ring) / 2 - var(--_stroke) - .5px),#000 calc(var(--_ring) / 2 - var(--_stroke) + .5px),#000 calc(var(--_ring) / 2 - .5px),transparent calc(var(--_ring) / 2 + .5px));opacity:1;padding:calc((var(--_size) - var(--_ring)) / 2);scale:1;transition:opacity var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),scale var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);vertical-align:middle}@starting-style{[data-ui=spinner]{opacity:0;scale:.6}}@media(prefers-reduced-motion:reduce){[data-ui=spinner]{--_head: 270deg;animation:none}}@media(forced-colors:active){[data-ui=spinner]{forced-color-adjust:none}}}@property --_turn{inherits: false; initial-value: 0deg; syntax: \"<angle>\";}@property --_head{inherits: false; initial-value: 20deg; syntax: \"<angle>\";}@property --_tail{inherits: false; initial-value: 0deg; syntax: \"<angle>\";}@keyframes slotted-spinner-turn{to{--_turn: 460deg}}@keyframes slotted-spinner-head{0%{--_head: 20deg;animation-timing-function:ease-in-out}50%,to{--_head: 280deg}}@keyframes slotted-spinner-tail{0%,50%{--_tail: 0deg;animation-timing-function:ease-in-out}to{--_tail: 260deg}}\n", "@layer slotted.components{[data-ui=skeleton][data-part=root][data-loading],[data-ui=skeleton][data-part=text][data-loading] [data-part=line]{--_fill: var( --slotted-skeleton-fill, color-mix( in oklab, var(--slotted-disabled-background, ButtonFace) 92%, var(--slotted-text, CanvasText) ) );--_edge: var(--slotted-skeleton-border-color, var(--slotted-border-subtle, ButtonBorder));--_highlight: var( --slotted-skeleton-highlight-color, color-mix(in oklab, var(--_fill) 86%, var(--slotted-text, CanvasText)) );--_trough: var( --slotted-skeleton-trough-color, color-mix(in oklab, var(--_fill) 60%, var(--slotted-surface-sunken, Canvas)) );background-color:var(--_fill);border:var(--slotted-skeleton-border-width, var(--slotted-border-width-thin, 1px)) solid var(--_edge);box-sizing:border-box;-webkit-user-select:none;user-select:none}[data-ui=skeleton][data-part=root]{display:inline-block;min-block-size:var(--slotted-skeleton-border-width, var(--slotted-border-width-thin, 1px))}[data-ui=skeleton][data-part=root][data-shape=text]{--_line: var(--slotted-skeleton-line-size, 1cap);block-size:var(--slotted-skeleton-block-size, var(--_line));border-radius:var(--slotted-radius-full, 9999px);inline-size:var(--slotted-skeleton-inline-size, 100%);vertical-align:calc(.5cap - .5 * var(--_line))}[data-ui=skeleton][data-part=root][data-shape=block]{block-size:var(--slotted-skeleton-block-size, auto);border-radius:var(--slotted-skeleton-radius, var(--slotted-radius-md, 6px));display:block;inline-size:var(--slotted-skeleton-inline-size, 100%);min-block-size:var(--slotted-skeleton-min-block-size, 1lh)}[data-ui=skeleton][data-part=root][data-shape=circle],[data-ui=skeleton][data-part=root][data-shape=square]{--_size: var(--slotted-skeleton-size, var(--slotted-avatar-size-md, 36px));block-size:var(--slotted-skeleton-block-size, var(--_size));inline-size:var(--slotted-skeleton-inline-size, var(--_size))}[data-ui=skeleton][data-part=root][data-shape=circle]{border-radius:var(--slotted-radius-full, 9999px)}[data-ui=skeleton][data-part=root][data-shape=square]{border-radius:var(--slotted-skeleton-radius, calc(var(--_size) / 6))}[data-ui=skeleton][data-part=root][data-shape=circle][data-size=xs],[data-ui=skeleton][data-part=root][data-shape=square][data-size=xs]{--_size: var(--slotted-skeleton-size, var(--slotted-avatar-size-xs, 24px))}[data-ui=skeleton][data-part=root][data-shape=circle][data-size=sm],[data-ui=skeleton][data-part=root][data-shape=square][data-size=sm]{--_size: var(--slotted-skeleton-size, var(--slotted-avatar-size-sm, 28px))}[data-ui=skeleton][data-part=root][data-shape=circle][data-size=md],[data-ui=skeleton][data-part=root][data-shape=square][data-size=md]{--_size: var(--slotted-skeleton-size, var(--slotted-avatar-size-md, 36px))}[data-ui=skeleton][data-part=root][data-shape=circle][data-size=lg],[data-ui=skeleton][data-part=root][data-shape=square][data-size=lg]{--_size: var(--slotted-skeleton-size, var(--slotted-avatar-size-lg, 48px))}[data-ui=skeleton][data-part=root][data-shape=circle][data-size=xl],[data-ui=skeleton][data-part=root][data-shape=square][data-size=xl]{--_size: var(--slotted-skeleton-size, var(--slotted-avatar-size-xl, 64px))}[data-ui=skeleton][data-part=root][data-loading]:not(:empty){block-size:var(--slotted-skeleton-block-size, auto);color:transparent;inline-size:var(--slotted-skeleton-inline-size, auto)}[data-ui=skeleton][data-part=root][data-loading]:not(:empty)>*{visibility:hidden}[data-ui=skeleton][data-part=text]{align-items:center;display:grid;grid-auto-rows:var(--slotted-skeleton-row-size, 1lh);inline-size:var(--slotted-skeleton-inline-size, 100%)}[data-ui=skeleton] [data-part=line]{block-size:var(--slotted-skeleton-line-size, 1cap);border-radius:var(--slotted-radius-full, 9999px);inline-size:100%}[data-ui=skeleton] [data-part=line]:last-child:not(:only-child){inline-size:var(--slotted-skeleton-last-line-size, 62%)}[data-ui=skeleton][data-part=root]:not([data-loading]),[data-ui=skeleton][data-part=text]:not([data-loading]){display:contents}[data-ui=skeleton][data-part=region]{inline-size:var(--slotted-skeleton-inline-size, 100%);min-inline-size:0}[data-ui=skeleton][data-part=root][data-loading]:not([data-animation=none]),[data-ui=skeleton][data-part=text][data-loading]:not([data-animation=none]) [data-part=line]{overflow:clip;position:relative}[data-ui=skeleton][data-part=root][data-animation=pulse][data-loading]:after,[data-ui=skeleton][data-part=root][data-animation=shimmer][data-loading]:after,[data-ui=skeleton][data-animation=pulse][data-loading] [data-part=line]:after,[data-ui=skeleton][data-animation=shimmer][data-loading] [data-part=line]:after{animation-delay:calc(var(--slotted-skeleton-phase, 0) * var(--slotted-duration-loop-slow) * -1);animation-duration:var(--slotted-duration-loop-slow);animation-iteration-count:infinite;content:\"\";inset-block:0;inset-inline:0;pointer-events:none;position:absolute}[data-ui=skeleton][data-part=root][data-animation=pulse][data-loading]:after,[data-ui=skeleton][data-animation=pulse][data-loading] [data-part=line]:after{animation-timing-function:ease-in-out;background-color:var(--_trough);opacity:0}[data-ui=skeleton][data-part=root][data-animation=shimmer][data-loading]:after,[data-ui=skeleton][data-animation=shimmer][data-loading] [data-part=line]:after{animation-timing-function:linear;background-image:linear-gradient(90deg,transparent 14%,var(--_highlight) 50%,transparent 86%)}[data-ui=skeleton][data-part=root][data-animation=shimmer][data-loading]:dir(rtl):after,[data-ui=skeleton][data-animation=shimmer][data-loading]:dir(rtl) [data-part=line]:after{animation-direction:reverse}@media(prefers-reduced-motion:no-preference){[data-ui=skeleton][data-part=root][data-animation=pulse][data-loading]:after,[data-ui=skeleton][data-animation=pulse][data-loading] [data-part=line]:after{animation-name:slotted-skeleton-pulse}[data-ui=skeleton][data-part=root][data-animation=shimmer][data-loading]:after,[data-ui=skeleton][data-animation=shimmer][data-loading] [data-part=line]:after{animation-name:slotted-skeleton-sweep}}@keyframes slotted-skeleton-pulse{50%{opacity:1}}@keyframes slotted-skeleton-sweep{0%{transform:translate(-100%)}to{transform:translate(100%)}}@media(prefers-reduced-motion:reduce){[data-ui=skeleton]:after,[data-ui=skeleton] [data-part=line]:after{animation:none}}@media(forced-colors:active){[data-ui=skeleton][data-part=root][data-loading]:after,[data-ui=skeleton][data-part=text][data-loading] [data-part=line]:after{background-image:none}}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SlAvatar, selector: "[slAvatar]", inputs: ["name", "src", "initials", "idFor", "locale", "size", "shape", "tone", "variant", "disabled", "decorative", "status"], outputs: ["statusChange"], exportAs: ["slAvatar"] }, { kind: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlHighlight, selector: "[slHighlight]", inputs: ["text", "query", "ranges", "matcher", "current", "locale", "sensitivity", "occurrences", "disabled"], exportAs: ["slHighlight"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }, { kind: "component", type: SlSelect, selector: "sl-select", inputs: ["value", "open", "highlightedValue", "searchValue", "aria-label", "placeholder", "name", "form", "items", "total", "size", "variant", "side", "align", "width", "mount", "strategy", "messages", "filter", "locale", "sideOffset", "alignOffset", "collisionPadding", "typeaheadTimeout", "multiple", "clearable", "loop", "search", "highlightMatch", "typeahead", "closeOnSelect", "closeOnEscape", "closeOnOutsidePress", "flip", "shift", "hideWhenDetached", "portal", "fullWidth", "disabled", "readOnly", "required", "invalid", "loading"], outputs: ["valueChange", "valueChangeRequest", "openChange", "openChangeRequest", "highlightedValueChange", "highlightedValueChangeRequest", "searchValueChange", "searchValueChangeRequest"], exportAs: ["slSelect"] }, { kind: "component", type: SlSelectItem, selector: "sl-select-item", inputs: ["value", "disabled", "description", "icon", "textValue", "label", "position"], exportAs: ["slSelectItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1561
|
+
}
|
|
1562
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlEntityPicker, decorators: [{
|
|
1563
|
+
type: Component,
|
|
1564
|
+
args: [{ selector: 'sl-entity-picker', standalone: true, exportAs: 'slEntityPicker', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [NgTemplateOutlet, SlAvatar, SlGlyph, SlHighlight, SlIcon, SlSelect, SlSelectItem], providers: [
|
|
1565
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlEntityPicker), multi: true },
|
|
1566
|
+
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => SlEntityPicker), multi: true },
|
|
1567
|
+
], host: {
|
|
1568
|
+
'data-ui': 'entity-picker',
|
|
1569
|
+
'data-part': 'root',
|
|
1570
|
+
'[attr.data-size]': 'resolvedSize()',
|
|
1571
|
+
'[attr.data-variant]': 'resolvedVariant()',
|
|
1572
|
+
'[attr.data-selection-mode]': 'selectionMode()',
|
|
1573
|
+
'[attr.data-overflow]': 'resolvedOverflow()',
|
|
1574
|
+
'[attr.data-full-width]': "resolvedFullWidth() ? '' : null",
|
|
1575
|
+
'[attr.data-open]': "isOpen() ? '' : null",
|
|
1576
|
+
'[attr.data-disabled]': "resolvedDisabled() ? '' : null",
|
|
1577
|
+
'[attr.data-readonly]': "resolvedReadOnly() ? '' : null",
|
|
1578
|
+
'[attr.data-invalid]': "resolvedInvalid() ? '' : null",
|
|
1579
|
+
'[attr.data-required]': "resolvedRequired() ? '' : null",
|
|
1580
|
+
'[attr.data-loading]': "busy() ? '' : null",
|
|
1581
|
+
'[attr.data-complete]': "complete() ? '' : null",
|
|
1582
|
+
'[attr.role]': "hasScopes() ? 'group' : null",
|
|
1583
|
+
'[attr.aria-labelledby]': 'hasScopes() ? (field?.ids()?.label ?? null) : null',
|
|
1584
|
+
'[attr.aria-label]': 'hasScopes() && !field ? (ariaLabel() ?? null) : null',
|
|
1585
|
+
}, template: `
|
|
1586
|
+
@if (hasScopes()) {
|
|
1587
|
+
<div data-part="scope">
|
|
1588
|
+
<sl-select
|
|
1589
|
+
[value]="scope()"
|
|
1590
|
+
[items]="scopeItems()"
|
|
1591
|
+
[size]="resolvedSize()"
|
|
1592
|
+
[variant]="resolvedVariant()"
|
|
1593
|
+
[disabled]="resolvedDisabled() || resolvedReadOnly()"
|
|
1594
|
+
[aria-label]="t('scope')"
|
|
1595
|
+
(valueChangeRequest)="onScopeRequest($event)"
|
|
1596
|
+
>
|
|
1597
|
+
@for (item of scopes(); track item.id) {
|
|
1598
|
+
<sl-select-item [value]="item.id" [label]="item.label" />
|
|
1599
|
+
}
|
|
1600
|
+
</sl-select>
|
|
1601
|
+
</div>
|
|
1602
|
+
}
|
|
1603
|
+
<div data-part="control" #control>
|
|
1604
|
+
@if (showSelection(); as chosen) {
|
|
1605
|
+
<span data-part="selection" aria-hidden="true">
|
|
1606
|
+
<span
|
|
1607
|
+
slAvatar
|
|
1608
|
+
decorative
|
|
1609
|
+
size="xs"
|
|
1610
|
+
[name]="chosen.avatar?.name ?? chosen.label"
|
|
1611
|
+
[initials]="initials(chosen)"
|
|
1612
|
+
[src]="chosen.avatar?.src"
|
|
1613
|
+
[shape]="chosen.avatar?.shape ?? 'circle'"
|
|
1614
|
+
[locale]="resolvedLocale()"
|
|
1615
|
+
></span>
|
|
1616
|
+
</span>
|
|
1617
|
+
}
|
|
1618
|
+
@if (multiple()) {
|
|
1619
|
+
<div data-part="values" role="grid" [attr.aria-label]="chipsLabel()">
|
|
1620
|
+
<div data-part="chips" role="row" #chips>
|
|
1621
|
+
@for (id of chosen(); track id) {
|
|
1622
|
+
<span
|
|
1623
|
+
data-ui="tag"
|
|
1624
|
+
data-part="root"
|
|
1625
|
+
data-size="sm"
|
|
1626
|
+
data-tone="secondary"
|
|
1627
|
+
role="gridcell"
|
|
1628
|
+
tabindex="-1"
|
|
1629
|
+
[attr.data-value]="id"
|
|
1630
|
+
[attr.data-variant]="record(id) ? 'soft' : 'outline'"
|
|
1631
|
+
[attr.data-loading]="resolution(id) === 'pending' ? '' : null"
|
|
1632
|
+
[attr.data-unresolved]="resolution(id) === 'missing' ? '' : null"
|
|
1633
|
+
[attr.data-disabled]="resolvedDisabled() ? '' : null"
|
|
1634
|
+
[attr.aria-busy]="resolution(id) === 'pending' ? true : null"
|
|
1635
|
+
[attr.aria-label]="chipName(id)"
|
|
1636
|
+
(keydown)="onChipKey(id, $event)"
|
|
1637
|
+
>
|
|
1638
|
+
<span data-part="body">
|
|
1639
|
+
@if (resolvedMedia() === 'avatar' && record(id)?.avatar !== null) {
|
|
1640
|
+
<span data-part="start">
|
|
1641
|
+
@if (record(id); as entity) {
|
|
1642
|
+
<span
|
|
1643
|
+
slAvatar
|
|
1644
|
+
decorative
|
|
1645
|
+
size="xs"
|
|
1646
|
+
[name]="entity.avatar?.name ?? entity.label"
|
|
1647
|
+
[initials]="initials(entity)"
|
|
1648
|
+
[src]="entity.avatar?.src"
|
|
1649
|
+
[shape]="entity.avatar?.shape ?? 'circle'"
|
|
1650
|
+
[locale]="resolvedLocale()"
|
|
1651
|
+
></span>
|
|
1652
|
+
} @else if (resolution(id) === 'pending') {
|
|
1653
|
+
<span
|
|
1654
|
+
data-ui="skeleton"
|
|
1655
|
+
data-part="root"
|
|
1656
|
+
data-shape="circle"
|
|
1657
|
+
data-size="xs"
|
|
1658
|
+
data-loading
|
|
1659
|
+
aria-hidden="true"
|
|
1660
|
+
></span>
|
|
1661
|
+
} @else if (resolution(id) === 'missing') {
|
|
1662
|
+
<span slIcon><svg slGlyph name="circle-alert"></svg></span>
|
|
1663
|
+
}
|
|
1664
|
+
</span>
|
|
1665
|
+
}
|
|
1666
|
+
<span data-part="label">
|
|
1667
|
+
@if (resolution(id) === 'pending' && !record(id)) {
|
|
1668
|
+
<span
|
|
1669
|
+
data-ui="skeleton"
|
|
1670
|
+
data-part="root"
|
|
1671
|
+
data-shape="text"
|
|
1672
|
+
data-loading
|
|
1673
|
+
aria-hidden="true"
|
|
1674
|
+
></span>
|
|
1675
|
+
} @else if (record(id) && chipTemplate(); as chip) {
|
|
1676
|
+
<ng-container
|
|
1677
|
+
[ngTemplateOutlet]="chip.template"
|
|
1678
|
+
[ngTemplateOutletContext]="{ $implicit: record(id)! }"
|
|
1679
|
+
/>
|
|
1680
|
+
} @else {
|
|
1681
|
+
{{ record(id)?.label ?? t('unresolved') }}
|
|
1682
|
+
}
|
|
1683
|
+
</span>
|
|
1684
|
+
</span>
|
|
1685
|
+
@if (!resolvedReadOnly() && !resolvedDisabled()) {
|
|
1686
|
+
<button
|
|
1687
|
+
type="button"
|
|
1688
|
+
data-part="remove"
|
|
1689
|
+
tabindex="-1"
|
|
1690
|
+
[attr.aria-label]="removeLabel(id)"
|
|
1691
|
+
(click)="onRemoveClick(id, $event)"
|
|
1692
|
+
>
|
|
1693
|
+
<span slIcon><svg slGlyph name="x"></svg></span>
|
|
1694
|
+
</button>
|
|
1695
|
+
}
|
|
1696
|
+
</span>
|
|
1697
|
+
}
|
|
1698
|
+
@if (collapsing()) {
|
|
1699
|
+
<span
|
|
1700
|
+
#count
|
|
1701
|
+
data-ui="tag"
|
|
1702
|
+
data-part="root"
|
|
1703
|
+
data-size="sm"
|
|
1704
|
+
data-tone="secondary"
|
|
1705
|
+
data-variant="outline"
|
|
1706
|
+
data-count
|
|
1707
|
+
role="gridcell"
|
|
1708
|
+
tabindex="-1"
|
|
1709
|
+
hidden
|
|
1710
|
+
[attr.aria-label]="moreLabel()"
|
|
1711
|
+
(click)="onCountClick($event)"
|
|
1712
|
+
>
|
|
1713
|
+
<span data-part="body">
|
|
1714
|
+
<span data-part="label">{{ moreText() }}</span>
|
|
1715
|
+
</span>
|
|
1716
|
+
</span>
|
|
1717
|
+
}
|
|
1718
|
+
<span data-part="field" role="gridcell">
|
|
1719
|
+
<ng-container [ngTemplateOutlet]="field_" />
|
|
1720
|
+
</span>
|
|
1721
|
+
</div>
|
|
1722
|
+
</div>
|
|
1723
|
+
} @else {
|
|
1724
|
+
<ng-container [ngTemplateOutlet]="field_" />
|
|
1725
|
+
}
|
|
1726
|
+
@if (showClear()) {
|
|
1727
|
+
<button
|
|
1728
|
+
type="button"
|
|
1729
|
+
data-part="clear"
|
|
1730
|
+
[attr.aria-label]="t('clear')"
|
|
1731
|
+
(click)="onClear($event)"
|
|
1732
|
+
>
|
|
1733
|
+
<span slIcon><svg slGlyph name="x"></svg></span>
|
|
1734
|
+
</button>
|
|
1735
|
+
}
|
|
1736
|
+
<button
|
|
1737
|
+
type="button"
|
|
1738
|
+
tabindex="-1"
|
|
1739
|
+
data-part="trigger"
|
|
1740
|
+
[disabled]="resolvedDisabled()"
|
|
1741
|
+
[attr.aria-label]="t('trigger')"
|
|
1742
|
+
(click)="onToggle($event)"
|
|
1743
|
+
>
|
|
1744
|
+
@if (busy()) {
|
|
1745
|
+
<span data-part="busy" data-ui="spinner" aria-hidden="true"></span>
|
|
1746
|
+
} @else {
|
|
1747
|
+
<span data-part="arrow"
|
|
1748
|
+
><span slIcon><svg slGlyph name="chevron-down"></svg></span
|
|
1749
|
+
></span>
|
|
1750
|
+
}
|
|
1751
|
+
</button>
|
|
1752
|
+
</div>
|
|
1753
|
+
|
|
1754
|
+
<ng-template #field_>
|
|
1755
|
+
<input
|
|
1756
|
+
#input
|
|
1757
|
+
type="text"
|
|
1758
|
+
role="combobox"
|
|
1759
|
+
data-part="input"
|
|
1760
|
+
autocomplete="off"
|
|
1761
|
+
aria-autocomplete="list"
|
|
1762
|
+
[id]="controlId()"
|
|
1763
|
+
[value]="inputValue()"
|
|
1764
|
+
[disabled]="resolvedDisabled()"
|
|
1765
|
+
[readOnly]="resolvedReadOnly()"
|
|
1766
|
+
[required]="resolvedRequired() && chosen().length === 0"
|
|
1767
|
+
[placeholder]="placeholder()"
|
|
1768
|
+
[attr.aria-expanded]="isOpen()"
|
|
1769
|
+
[attr.aria-controls]="isOpen() ? contentId : null"
|
|
1770
|
+
[attr.aria-activedescendant]="activeDescendant()"
|
|
1771
|
+
[attr.aria-label]="ariaLabel() ?? null"
|
|
1772
|
+
[attr.aria-describedby]="field?.describedBy() ?? null"
|
|
1773
|
+
[attr.aria-readonly]="resolvedReadOnly() ? true : null"
|
|
1774
|
+
[attr.aria-invalid]="resolvedInvalid() ? true : null"
|
|
1775
|
+
[attr.aria-busy]="pendingSingle() ? true : null"
|
|
1776
|
+
(input)="onInput($event)"
|
|
1777
|
+
(click)="onInputClick($event)"
|
|
1778
|
+
(keydown)="onKeyDown($event)"
|
|
1779
|
+
(focus)="onFocus()"
|
|
1780
|
+
(blur)="onBlur($event)"
|
|
1781
|
+
/>
|
|
1782
|
+
</ng-template>
|
|
1783
|
+
|
|
1784
|
+
<ng-template #layer>
|
|
1785
|
+
<div
|
|
1786
|
+
data-ui="entity-picker"
|
|
1787
|
+
data-part="positioner"
|
|
1788
|
+
data-align="start"
|
|
1789
|
+
[attr.data-size]="resolvedSize()"
|
|
1790
|
+
[attr.data-width]="resolvedWidth()"
|
|
1791
|
+
[attr.data-open]="isOpen() && positioned() ? '' : null"
|
|
1792
|
+
[attr.inert]="isOpen() ? null : ''"
|
|
1793
|
+
>
|
|
1794
|
+
<div
|
|
1795
|
+
data-part="content"
|
|
1796
|
+
role="listbox"
|
|
1797
|
+
[id]="contentId"
|
|
1798
|
+
[attr.aria-label]="ariaLabel() ?? null"
|
|
1799
|
+
[attr.aria-multiselectable]="multiple() ? true : null"
|
|
1800
|
+
[attr.aria-busy]="search().status === 'loading' ? true : null"
|
|
1801
|
+
[attr.data-loading]="refreshing() ? '' : null"
|
|
1802
|
+
>
|
|
1803
|
+
@if (!(failed() && search().items.length === 0)) {
|
|
1804
|
+
@for (section of sections().sections; track section.key) {
|
|
1805
|
+
@if (sections().headings) {
|
|
1806
|
+
<div
|
|
1807
|
+
data-part="group"
|
|
1808
|
+
role="group"
|
|
1809
|
+
[attr.aria-labelledby]="contentId + '-' + section.key"
|
|
1810
|
+
>
|
|
1811
|
+
<div data-part="group-label" [id]="contentId + '-' + section.key">
|
|
1812
|
+
{{ section.label }}
|
|
1813
|
+
</div>
|
|
1814
|
+
@for (entity of section.entities; track entity.id) {
|
|
1815
|
+
<ng-container
|
|
1816
|
+
[ngTemplateOutlet]="row"
|
|
1817
|
+
[ngTemplateOutletContext]="{ $implicit: entity }"
|
|
1818
|
+
/>
|
|
1819
|
+
}
|
|
1820
|
+
</div>
|
|
1821
|
+
} @else {
|
|
1822
|
+
@for (entity of section.entities; track entity.id) {
|
|
1823
|
+
<ng-container
|
|
1824
|
+
[ngTemplateOutlet]="row"
|
|
1825
|
+
[ngTemplateOutletContext]="{ $implicit: entity }"
|
|
1826
|
+
/>
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
@if (firstPage() && search().indicator) {
|
|
1832
|
+
<div data-part="placeholder" aria-hidden="true">
|
|
1833
|
+
@for (row of [0, 1, 2]; track row) {
|
|
1834
|
+
<div>
|
|
1835
|
+
<span
|
|
1836
|
+
data-ui="skeleton"
|
|
1837
|
+
data-part="root"
|
|
1838
|
+
data-shape="circle"
|
|
1839
|
+
data-size="xs"
|
|
1840
|
+
data-loading
|
|
1841
|
+
></span>
|
|
1842
|
+
<span data-ui="skeleton" data-part="root" data-shape="text" data-loading></span>
|
|
1843
|
+
<span data-ui="skeleton" data-part="root" data-shape="text" data-loading></span>
|
|
1844
|
+
</div>
|
|
1845
|
+
}
|
|
1846
|
+
</div>
|
|
1847
|
+
}
|
|
1848
|
+
@if (search().loadingMore && search().indicator) {
|
|
1849
|
+
<div data-part="more" aria-hidden="true">
|
|
1850
|
+
<div>
|
|
1851
|
+
<span
|
|
1852
|
+
data-ui="skeleton"
|
|
1853
|
+
data-part="root"
|
|
1854
|
+
data-shape="circle"
|
|
1855
|
+
data-size="xs"
|
|
1856
|
+
data-loading
|
|
1857
|
+
></span>
|
|
1858
|
+
<span data-ui="skeleton" data-part="root" data-shape="text" data-loading></span>
|
|
1859
|
+
<span data-ui="skeleton" data-part="root" data-shape="text" data-loading></span>
|
|
1860
|
+
</div>
|
|
1861
|
+
</div>
|
|
1862
|
+
}
|
|
1863
|
+
<div data-sentinel></div>
|
|
1864
|
+
@if (offerCreate()) {
|
|
1865
|
+
<div
|
|
1866
|
+
role="option"
|
|
1867
|
+
data-part="item"
|
|
1868
|
+
data-create
|
|
1869
|
+
aria-selected="false"
|
|
1870
|
+
[attr.data-value]="CREATE"
|
|
1871
|
+
[id]="optionId(CREATE)"
|
|
1872
|
+
[attr.data-current]="highlightedValue() === CREATE ? '' : null"
|
|
1873
|
+
[attr.data-loading]="creating() ? '' : null"
|
|
1874
|
+
(pointerdown)="keepFocus($event)"
|
|
1875
|
+
(pointerenter)="setHighlighted(CREATE, 'pointer', $event)"
|
|
1876
|
+
(click)="activate(CREATE, 'pointer', $event)"
|
|
1877
|
+
>
|
|
1878
|
+
<span data-part="media" aria-hidden="true"
|
|
1879
|
+
><span slIcon><svg slGlyph name="plus"></svg></span
|
|
1880
|
+
></span>
|
|
1881
|
+
<span data-part="label">{{ createText() }}</span>
|
|
1882
|
+
</div>
|
|
1883
|
+
}
|
|
1884
|
+
@if (failed()) {
|
|
1885
|
+
<div data-part="error">
|
|
1886
|
+
<span slIcon><svg slGlyph name="circle-alert"></svg></span>{{ t('error') }}
|
|
1887
|
+
</div>
|
|
1888
|
+
<div
|
|
1889
|
+
role="option"
|
|
1890
|
+
data-part="item"
|
|
1891
|
+
data-retry
|
|
1892
|
+
aria-selected="false"
|
|
1893
|
+
[attr.data-value]="RETRY"
|
|
1894
|
+
[id]="optionId(RETRY)"
|
|
1895
|
+
[attr.data-current]="highlightedValue() === RETRY ? '' : null"
|
|
1896
|
+
(pointerdown)="keepFocus($event)"
|
|
1897
|
+
(pointerenter)="setHighlighted(RETRY, 'pointer', $event)"
|
|
1898
|
+
(click)="activate(RETRY, 'pointer', $event)"
|
|
1899
|
+
>
|
|
1900
|
+
<span data-part="media" aria-hidden="true"
|
|
1901
|
+
><span slIcon><svg slGlyph name="rotate-ccw"></svg></span
|
|
1902
|
+
></span>
|
|
1903
|
+
<span data-part="label">{{ t('retry') }}</span>
|
|
1904
|
+
</div>
|
|
1905
|
+
}
|
|
1906
|
+
@if (showEmpty()) {
|
|
1907
|
+
<div data-part="empty">{{ t('empty') }}</div>
|
|
1908
|
+
}
|
|
1909
|
+
<div data-part="status" role="status" aria-live="polite">{{ statusMessage() }}</div>
|
|
1910
|
+
</div>
|
|
1911
|
+
</div>
|
|
1912
|
+
</ng-template>
|
|
1913
|
+
|
|
1914
|
+
<ng-template #row let-entity>
|
|
1915
|
+
<div
|
|
1916
|
+
role="option"
|
|
1917
|
+
data-part="item"
|
|
1918
|
+
[attr.data-value]="entity.id"
|
|
1919
|
+
[id]="optionId(entity.id)"
|
|
1920
|
+
[attr.aria-selected]="isChosen(entity.id)"
|
|
1921
|
+
[attr.aria-disabled]="isDisabled(entity) ? true : null"
|
|
1922
|
+
[attr.data-selected]="isChosen(entity.id) ? '' : null"
|
|
1923
|
+
[attr.data-current]="highlightedValue() === entity.id ? '' : null"
|
|
1924
|
+
[attr.data-disabled]="isDisabled(entity) ? '' : null"
|
|
1925
|
+
(pointerdown)="keepFocus($event)"
|
|
1926
|
+
(pointerenter)="onRowEnter(entity, $event)"
|
|
1927
|
+
(click)="onRowClick(entity, $event)"
|
|
1928
|
+
>
|
|
1929
|
+
@if (resolvedMedia() === 'avatar' && entity.avatar !== null) {
|
|
1930
|
+
<span data-part="media">
|
|
1931
|
+
<span
|
|
1932
|
+
slAvatar
|
|
1933
|
+
decorative
|
|
1934
|
+
size="xs"
|
|
1935
|
+
[name]="entity.avatar?.name ?? entity.label"
|
|
1936
|
+
[initials]="initials(entity)"
|
|
1937
|
+
[src]="entity.avatar?.src"
|
|
1938
|
+
[shape]="entity.avatar?.shape ?? 'circle'"
|
|
1939
|
+
[locale]="resolvedLocale()"
|
|
1940
|
+
></span>
|
|
1941
|
+
</span>
|
|
1942
|
+
}
|
|
1943
|
+
@if (optionTemplate(); as custom) {
|
|
1944
|
+
<ng-container
|
|
1945
|
+
[ngTemplateOutlet]="custom.template"
|
|
1946
|
+
[ngTemplateOutletContext]="{
|
|
1947
|
+
$implicit: entity,
|
|
1948
|
+
query: query(),
|
|
1949
|
+
selected: isChosen(entity.id),
|
|
1950
|
+
current: highlightedValue() === entity.id,
|
|
1951
|
+
disabled: isDisabled(entity),
|
|
1952
|
+
}"
|
|
1953
|
+
/>
|
|
1954
|
+
} @else {
|
|
1955
|
+
<span data-part="label">
|
|
1956
|
+
@if (resolvedHighlightMatch() && query() !== '') {
|
|
1957
|
+
<span
|
|
1958
|
+
slHighlight
|
|
1959
|
+
[text]="entity.label"
|
|
1960
|
+
[query]="query()"
|
|
1961
|
+
[locale]="resolvedLocale()"
|
|
1962
|
+
></span>
|
|
1963
|
+
} @else {
|
|
1964
|
+
{{ entity.label }}
|
|
1965
|
+
}
|
|
1966
|
+
</span>
|
|
1967
|
+
@if (entity.description) {
|
|
1968
|
+
<span data-part="description">{{ entity.description }}</span>
|
|
1969
|
+
}
|
|
1970
|
+
@if (entity.meta) {
|
|
1971
|
+
<span data-part="meta">{{ entity.meta }}</span>
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
<span data-part="indicator"
|
|
1975
|
+
><span slIcon><svg slGlyph name="check"></svg></span
|
|
1976
|
+
></span>
|
|
1977
|
+
</div>
|
|
1978
|
+
</ng-template>
|
|
1979
|
+
`, styles: ["@layer slotted.components{[data-ui=entity-picker][data-part=root]{--_font-size: var(--slotted-control-font-size-md, 13px);--_height: var(--slotted-control-height-md, 34px);--_padding-inline: var(--slotted-control-padding-inline-md, 13px);--_icon-floor: var(--slotted-entity-picker-icon-size-min, 14px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-md, 16px));--_inner-size: var(--slotted-control-inner-size-md, 24px);--_action-size: var( --slotted-entity-picker-action-size, min(calc(var(--_icon-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) );--_row-air: var(--slotted-space-1, .125rem);--_row-size: var(--_inner-size);--_row-gap: var(--slotted-space-2, .25rem);--_chip-media: calc(var(--_inner-size) - 2 * var(--slotted-space-1, .125rem));--_radius: var(--slotted-entity-picker-radius, var(--slotted-control-radius, 4px));display:flex;font-family:var(--slotted-control-font-family, system-ui, sans-serif);inline-size:100%;min-inline-size:0}[data-ui=entity-picker][data-part=root]:not([data-full-width]){display:inline-flex;inline-size:auto}[data-ui=entity-picker][data-part=root][data-size=sm]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_height: var(--slotted-control-height-sm, 30px);--_padding-inline: var(--slotted-control-padding-inline-sm, 10px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-sm, 14px));--_inner-size: var(--slotted-control-inner-size-sm, 22px)}[data-ui=entity-picker][data-part=root][data-size=lg]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_height: var(--slotted-control-height-lg, 38px);--_padding-inline: var(--slotted-control-padding-inline-lg, 16px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-lg, 18px));--_inner-size: var(--slotted-control-inner-size-lg, 28px)}[data-ui=entity-picker]>[data-part=scope]{display:flex;flex:0 0 var(--slotted-entity-picker-scope-inline-size, min(11rem, 45%));min-inline-size:0}[data-ui=entity-picker]>[data-part=scope]>[data-ui=select][data-part=root]{inline-size:100%}[data-ui=entity-picker]>[data-part=scope]>[data-ui=select][data-part=root]{border-end-end-radius:0;border-start-end-radius:0}[data-ui=entity-picker]>[data-part=scope]+[data-part=control]{border-end-start-radius:0;border-start-start-radius:0;margin-inline-start:calc(-1 * var(--slotted-control-border-width, 1px))}[data-ui=entity-picker]:not([data-disabled])>[data-part=scope]:is(:hover,:focus-within),[data-ui=entity-picker]:not([data-disabled])>[data-part=control]:is(:hover,:focus-within),[data-ui=entity-picker]:is([data-open],[data-invalid])>[data-part=control]{position:relative;z-index:1}[data-ui=entity-picker]>[data-part=control]{align-items:center;background-color:var( --slotted-entity-picker-background, var(--slotted-control-surface, Field) );border:var(--slotted-control-border-width, 1px) solid var(--slotted-entity-picker-border-color, var(--slotted-control-border-color, ButtonBorder));border-radius:var(--_radius);box-shadow:var(--slotted-entity-picker-shadow, var(--slotted-control-shadow, none));box-sizing:border-box;color:var(--slotted-entity-picker-color, var(--slotted-text, CanvasText));display:flex;flex:1 1 12rem;font-size:var(--_font-size);gap:var(--slotted-space-1, .125rem);min-block-size:var(--_height);min-inline-size:0;padding-inline-start:var(--_padding-inline);padding-inline-end:max(0px,calc(var(--_padding-inline) - (var(--_action-size) - var(--_icon-size)) / 2));transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),border-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),box-shadow var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=entity-picker]>[data-part=control]>[data-part=selection]{--slotted-avatar-size-xs: var(--_chip-media);display:inline-flex;flex:none;margin-inline-end:var(--slotted-space-3, .375rem)}[data-ui=entity-picker]>[data-part=control] [data-part=input]{background-color:transparent;border:0;color:inherit;flex:1 1 auto;font:inherit;outline:none;padding:0;min-inline-size:0;text-overflow:ellipsis}[data-ui=entity-picker]>[data-part=control]>[data-part=input]{align-self:stretch;margin-block:calc(var(--slotted-control-border-width, 1px) * -1)}[data-ui=entity-picker]>[data-part=control] [data-part=input]::placeholder{color:var(--slotted-entity-picker-placeholder-color, var(--slotted-text-muted, GrayText));text-overflow:ellipsis}[data-ui=entity-picker]>[data-part=control] [data-part=input]:autofill{box-shadow:inset 0 0 0 100px var(--slotted-entity-picker-autofill-background, var(--slotted-tone-accent-surface));-webkit-text-fill-color:var(--slotted-entity-picker-color, var(--slotted-text, CanvasText))}[data-ui=entity-picker]>[data-part=control]>[data-part=values]{align-self:stretch;display:flex;flex:1 1 auto;min-inline-size:0}[data-ui=entity-picker]>[data-part=control]>[data-part=values]+*{margin-inline-start:var(--_row-gap)}[data-ui=entity-picker]>[data-part=control] [data-part=chips]{--slotted-control-inner-size: var(--_inner-size);align-content:safe center;align-items:center;box-sizing:border-box;column-gap:var(--_row-gap);display:flex;flex:1 1 auto;flex-wrap:wrap;margin-inline:calc(-1 * var(--_row-air));max-block-size:calc(3 * var(--_row-size) + 2 * var(--_row-gap) + 2 * var(--_row-air));min-inline-size:0;overflow-y:auto;overscroll-behavior:contain;padding-block:var(--_row-air);padding-inline:var(--_row-air);row-gap:var(--_row-gap);scrollbar-width:none}[data-ui=entity-picker]>[data-part=control] [data-part=chips]::-webkit-scrollbar{display:none}[data-ui=entity-picker][data-part=root]:not([data-overflow=wrap])>[data-part=control] [data-part=chips]{flex-wrap:nowrap;max-block-size:none;overflow:hidden}[data-ui=entity-picker][data-part=root]:not([data-overflow=wrap])>[data-part=control] [data-part=chips]>[data-part=field]{flex:1 0 var(--slotted-entity-picker-field-min, 2.5rem)}[data-ui=entity-picker][data-part=root]:not([data-overflow=wrap])>[data-part=control] [data-part=chips]>:not([data-part=field],[hidden]):first-child:not(:has(~[data-ui=tag]:not([hidden],[data-count]))){flex-shrink:1;min-inline-size:calc(var(--_chip-media) + 3ch + var(--_inner-size))}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>[data-count]{cursor:pointer;flex:none}[data-ui=entity-picker]>[data-part=control] [data-part=field]{align-items:center;display:flex;flex:1 1 var(--slotted-entity-picker-field-basis, 4rem);min-block-size:var(--_row-size);min-inline-size:var(--slotted-entity-picker-field-min, 2.5rem)}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>:not([data-part=field]){flex:0 0 auto;max-inline-size:100%;min-block-size:var(--_row-size);min-inline-size:0}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>[data-ui]>[data-part=body]>[data-part=start]{--slotted-avatar-size-xs: var(--_chip-media);block-size:var(--_chip-media);inline-size:var(--_chip-media)}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>[data-ui]>[data-part=body]:has(>[data-part=start]){padding-inline-start:var(--slotted-space-1, .125rem)}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>:not([data-part=field]):focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>[data-ui][data-loading]>[data-part=body] [data-ui=skeleton]{--slotted-skeleton-inline-size: 5em}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>[data-ui][data-unresolved]{color:var(--slotted-text-muted, GrayText)}[data-ui=entity-picker]>[data-part=control] [data-part=chips]>[data-ui][data-unresolved]>[data-part=body]>[data-part=start]>[data-ui=icon]{block-size:var(--_icon-size);inline-size:var(--_icon-size)}[data-ui=entity-picker]>[data-part=control]>:is([data-part=clear],[data-part=trigger]){align-items:center;appearance:none;background-color:transparent;block-size:var(--_action-size);border:0;border-radius:var(--_radius);color:var(--slotted-entity-picker-action-color, var(--slotted-text-muted, GrayText));cursor:pointer;display:inline-flex;flex:0 0 auto;inline-size:var(--_action-size);justify-content:center;padding:0;position:relative;touch-action:manipulation;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);-webkit-tap-highlight-color:transparent}[data-ui=entity-picker]>[data-part=control]>:is([data-part=clear],[data-part=trigger]):after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-min, 24px)) / 2));position:absolute}@media(pointer:coarse){[data-ui=entity-picker]>[data-part=control]>:is([data-part=clear],[data-part=trigger]):after{inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2))}[data-ui=entity-picker]>[data-part=control]>[data-part=clear]:has(+[data-part=trigger]:not([hidden])):after{inset-inline-end:0}[data-ui=entity-picker]>[data-part=control]>[data-part=clear]:not([hidden])+[data-part=trigger]:after{inset-inline-start:0}}[data-ui=entity-picker]>[data-part=control]>:is([data-part=clear],[data-part=trigger]){--slotted-icon-size: var(--_icon-size)}[data-ui=entity-picker]>[data-part=control]>[data-part=trigger]>[data-part=arrow]{align-items:center;block-size:var(--_icon-size);display:flex;inline-size:var(--_icon-size);justify-content:center}[data-ui=entity-picker]>[data-part=control]>[data-part=trigger]>[data-part=arrow]>[data-ui=icon]{transition:rotate var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=entity-picker][data-open]>[data-part=control]>[data-part=trigger]>[data-part=arrow]>[data-ui=icon]{rotate:180deg}[data-ui=entity-picker]>[data-part=control]>[data-part=trigger]>[data-part=busy]{--slotted-spinner-size: var(--_icon-size);color:var(--slotted-entity-picker-action-color, var(--slotted-text-muted, GrayText));flex:none}[data-ui=entity-picker]>[data-part=control]>:is([data-part=clear],[data-part=trigger]):hover:not(:disabled):not([data-disabled]){background-color:var( --slotted-entity-picker-action-hover-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=entity-picker]>[data-part=control]>:is([data-part=clear],[data-part=trigger]):active:not(:disabled):not([data-disabled]){background-color:var( --slotted-entity-picker-action-active-background, var(--slotted-tone-secondary-subtle-active) )}[data-ui=entity-picker]>[data-part=control]>:is([data-part=clear],[data-part=trigger]):focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(var(--slotted-focus-ring-offset, 2px) * -1)}[data-ui=entity-picker][data-part=root][data-variant=subtle]>[data-part=control]{background-color:var( --slotted-entity-picker-subtle-background, var(--slotted-surface-sunken, Canvas) );border-color:var( --slotted-entity-picker-subtle-border-color, var(--slotted-border-subtle, ButtonBorder) )}[data-ui=entity-picker][data-part=root][data-variant=plain]>[data-part=control]{background-color:transparent;border-color:transparent;border-radius:var(--slotted-radius-none, 0px);box-shadow:none}@media(forced-colors:active){[data-ui=entity-picker][data-part=root][data-variant=plain]>[data-part=control]{border-color:ButtonBorder}}[data-ui=entity-picker][data-part=root]:not([data-disabled]):not([data-readonly]):not([data-invalid])>[data-part=control]:hover{border-color:var( --slotted-entity-picker-hover-border-color, var(--slotted-tone-accent-border) )}[data-ui=entity-picker][data-part=root][data-variant=subtle]:not([data-disabled]):not([data-readonly]):not([data-invalid])>[data-part=control]:hover{background-color:var( --slotted-entity-picker-subtle-hover-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=entity-picker][data-part=root][data-variant=plain]:not([data-disabled]):not([data-readonly]):not([data-invalid])>[data-part=control]:hover{background-color:var( --slotted-entity-picker-plain-hover-background, var(--slotted-tone-secondary-subtle-hover) );border-color:transparent}[data-ui=entity-picker]>[data-part=control]:has([data-part=input]:focus-visible){box-shadow:var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px) var(--slotted-focus-ring-color, Highlight);outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui=entity-picker][data-part=root][data-variant=plain]>[data-part=control]:has([data-part=input]:focus-visible){box-shadow:none;outline-offset:calc(var(--slotted-focus-ring-offset, 2px) * -1)}[data-ui=entity-picker][data-part=root][data-open]:not([data-disabled])>[data-part=control]{border-color:var(--slotted-entity-picker-open-border-color, var(--slotted-tone-accent-border))}[data-ui=entity-picker][data-part=root][data-invalid]{--slotted-focus-ring-color: var( --slotted-entity-picker-invalid-focus-ring-color, var(--slotted-focus-ring-color-invalid, Highlight) )}[data-ui=entity-picker][data-part=root][data-invalid]>[data-part=control]{--_invalid-edge-width: var( --slotted-entity-picker-invalid-edge-width, var(--slotted-control-invalid-edge-width, 1px) );--_invalid-edge-color: var( --slotted-entity-picker-invalid-border-color, var(--slotted-tone-danger-border) );--_invalid-edge: inset 0 0 0 var(--_invalid-edge-width) var(--_invalid-edge-color);border-color:var( --slotted-entity-picker-invalid-border-color, var(--slotted-tone-danger-border) );box-shadow:var(--_invalid-edge)}[data-ui=entity-picker][data-invalid]>[data-part=control]:has([data-part=input]:focus-visible){box-shadow:var(--_invalid-edge),var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px) var(--slotted-focus-ring-color, Highlight)}[data-ui=entity-picker][data-part=root][data-variant=plain][data-invalid]>[data-part=control]:has([data-part=input]:focus-visible){box-shadow:inset 0 0 0 calc(var(--slotted-focus-ring-offset, 2px) - var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width)) var(--_invalid-edge-color)}@media(forced-colors:active){[data-ui=entity-picker][data-part=root][data-invalid]>[data-part=control]{outline:var(--_invalid-edge-width) solid CanvasText;outline-offset:calc(-1 * (var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width)))}[data-ui=entity-picker][data-invalid]>[data-part=control]:has([data-part=input]:focus-visible){outline:calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui=entity-picker][data-part=root][data-variant=plain][data-invalid]>[data-part=control]:has([data-part=input]:focus-visible){outline:calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * (var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)))}}[data-ui=entity-picker][data-part=root][data-readonly]>[data-part=control]{background-color:var( --slotted-entity-picker-readonly-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=entity-picker][data-part=root][data-readonly]>[data-part=control]>[data-part=trigger]>[data-part=arrow]{opacity:.5}[data-ui=entity-picker][data-part=root][data-disabled]>[data-part=control],[data-ui=entity-picker]>[data-part=control]:has([data-part=input]:disabled){background-color:var( --slotted-entity-picker-disabled-background, var(--slotted-disabled-background) );border-color:var( --slotted-entity-picker-disabled-border-color, var(--slotted-disabled-border) );box-shadow:none;color:var(--slotted-entity-picker-disabled-color, var(--slotted-disabled-foreground));cursor:not-allowed}[data-ui=entity-picker][data-part=root][data-disabled]>[data-part=control] :is([data-part=selection],[data-part=chips]>[data-ui]>[data-part=body]>[data-part=start]){opacity:.6}[data-ui=entity-picker][data-part=positioner]{--_surface: var(--slotted-entity-picker-surface, var(--slotted-surface-raised, #ffffff));--_text: var(--slotted-entity-picker-content-text, var(--slotted-text, #0f172a));--_muted: var(--slotted-entity-picker-content-text-muted, var(--slotted-text-muted, #5b6b7f));--_border-color: var( --slotted-entity-picker-content-border-color, var(--slotted-border-subtle, #e2e8f0) );--_border-width: var(--slotted-border-width-thin, 1px);--_content-radius: var(--slotted-entity-picker-content-radius, var(--slotted-radius-lg, 8px));--_shadow: var(--slotted-entity-picker-content-shadow, var(--slotted-shadow-md));--_highlight: var( --slotted-entity-picker-highlight, var(--slotted-tone-secondary-subtle-active) );--_highlight-active: var( --slotted-entity-picker-highlight-active, var(--slotted-tone-accent-surface) );--_selected-color: var(--slotted-entity-picker-selected-color, var(--slotted-tone-accent-text));--_inset-block: var(--slotted-space-2, .25rem);--_inset-inline: var(--slotted-space-2, .25rem);--_item-inset: var(--slotted-control-padding-inline-md, .8125rem);--_item-height: var(--slotted-control-height-md, 34px);--_item-radius: var(--slotted-entity-picker-item-radius, var(--slotted-control-radius));--_content-font-size: var(--slotted-control-font-size-md, 13px);--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);--_content-icon-size: var(--slotted-control-icon-size-md, 16px);--_column-gap: var(--slotted-control-gap-md, .5rem);--_media-size: var(--slotted-avatar-size-sm, 28px);--_measure: var(--slotted-entity-picker-measure, 28rem);--_enter-distance: var(--slotted-space-2, .25rem);box-sizing:border-box;inset-block-start:0;isolation:isolate;opacity:0;pointer-events:none;position:absolute;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit);translate:0 calc(-1 * var(--_enter-distance));z-index:calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0))}[data-ui=entity-picker][data-part=positioner][data-side=top]{translate:0 var(--_enter-distance)}[data-ui=entity-picker][data-part=positioner]:is([data-side=left],[data-side=right]){translate:0 0}[data-ui=entity-picker][data-part=positioner][data-open]{opacity:1;transition:none;translate:0 0}[data-ui=entity-picker][data-part=positioner][data-open][data-positioned]{animation:slotted-entity-picker-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter)}[data-ui=entity-picker][data-part=positioner][data-open][data-positioned][data-side=top]{animation-name:slotted-entity-picker-enter-up}[data-ui=entity-picker][data-part=positioner][data-open][data-positioned]:is([data-side=left],[data-side=right]){animation-name:slotted-entity-picker-fade}@keyframes slotted-entity-picker-enter-down{0%{opacity:0;translate:0 calc(-1 * var(--_enter-distance))}}@keyframes slotted-entity-picker-enter-up{0%{opacity:0;translate:0 var(--_enter-distance)}}@keyframes slotted-entity-picker-fade{0%{opacity:0}}@media(prefers-reduced-motion:reduce){[data-ui=entity-picker][data-part=positioner],[data-ui=entity-picker][data-part=positioner][data-side=top],[data-ui=entity-picker][data-part=positioner][data-side=left],[data-ui=entity-picker][data-part=positioner][data-side=right]{transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit);translate:0 0}[data-ui=entity-picker][data-part=positioner][data-open][data-positioned],[data-ui=entity-picker][data-part=positioner][data-open][data-positioned][data-side=top],[data-ui=entity-picker][data-part=positioner][data-open][data-positioned][data-side=left],[data-ui=entity-picker][data-part=positioner][data-open][data-positioned][data-side=right]{animation-name:slotted-entity-picker-fade}}[data-ui=entity-picker][data-part=positioner][data-detached]{visibility:hidden}[data-ui=entity-picker][data-part=positioner][data-width=anchor]{inline-size:var(--slotted-positioner-anchor-width, auto)}[data-ui=entity-picker][data-part=positioner][data-width=content]{inline-size:max-content;max-inline-size:min(var(--_measure),var(--slotted-positioner-available-width, 100vw));min-inline-size:var(--slotted-positioner-anchor-width, auto)}[data-ui=entity-picker][data-part=positioner][data-size=sm]{--_item-inset: var(--slotted-control-padding-inline-sm, .625rem);--_item-height: var(--slotted-control-height-sm, 30px);--_content-font-size: var(--slotted-control-font-size-sm, 12px);--_secondary-font-size: var(--slotted-font-size-xs, .75rem);--_content-icon-size: var(--slotted-control-icon-size-sm, 14px);--_column-gap: var(--slotted-control-gap-sm, .375rem);--_media-size: var(--slotted-avatar-size-xs, 24px)}[data-ui=entity-picker][data-part=positioner][data-size=lg]{--_item-inset: var(--slotted-control-padding-inline-lg, 1rem);--_item-height: var(--slotted-control-height-lg, 38px);--_content-font-size: var(--slotted-control-font-size-lg, 14px);--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);--_content-icon-size: var(--slotted-control-icon-size-lg, 18px);--_column-gap: var(--slotted-control-gap-lg, .5rem);--_media-size: var(--slotted-avatar-size-md, 36px)}[data-ui=entity-picker]>[data-part=content]{background:var(--_surface);border:var(--_border-width) solid var(--_border-color);border-radius:var(--_content-radius);box-shadow:var(--_shadow);box-sizing:border-box;color:var(--_text);display:grid;font-family:var(--slotted-font-family-sans);font-size:var(--_content-font-size);grid-auto-rows:max-content;grid-template-columns:auto minmax(0,1fr) fit-content(25%) auto;max-block-size:calc(var(--slotted-positioner-available-height, 100vh) - var(--slotted-space-5, .75rem));outline:none;overflow-y:auto;overscroll-behavior:contain;padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);pointer-events:auto}[data-ui=entity-picker]>[data-part=content][data-loading]>:is([data-part=group],[data-part=item]){opacity:.55;transition:opacity var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=entity-picker]>[data-part=content][data-loading]{cursor:progress}[data-ui=entity-picker][data-part=positioner] [data-part=group]{display:grid;grid-column:1 / -1;grid-template-columns:subgrid}[data-ui=entity-picker][data-part=positioner] [data-part=group]+[data-part=group]{margin-block-start:var(--slotted-space-2, .25rem)}[data-ui=entity-picker][data-part=positioner] [data-part=group-label]{color:var(--_muted);font-size:var(--_secondary-font-size);font-weight:var(--slotted-font-weight-semibold, 600);grid-column:1 / -1;line-height:var(--slotted-line-height-sm, 1.45);padding-block:var(--slotted-space-3, .375rem) var(--slotted-space-2, .25rem);padding-inline:var(--_item-inset)}[data-ui=entity-picker][data-part=positioner] [data-part=item]{align-content:center;align-items:center;border-radius:var(--_item-radius);box-sizing:border-box;column-gap:0;cursor:pointer;display:grid;grid-column:1 / -1;grid-template-columns:subgrid;grid-template-rows:auto;line-height:var(--slotted-line-height-md, 1.5);min-block-size:var(--_item-height);padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_item-inset);row-gap:0;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);-webkit-user-select:none;user-select:none}[data-ui=entity-picker][data-part=positioner] [data-part=item]:has(>[data-part=description]){grid-template-rows:auto auto}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-current]{background-color:var(--_highlight);box-shadow:inset 0 0 0 var(--slotted-border-width-thin, 1px) var(--slotted-entity-picker-highlight-ring, var(--slotted-tone-accent-border))}[data-ui=entity-picker][data-part=positioner] [data-part=item]:not([data-disabled]):active{background-color:var(--_highlight-active)}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-selected]{color:var(--_selected-color)}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-selected]+[data-part=item][data-selected]{border-start-end-radius:0;border-start-start-radius:0}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-selected]:has(+[data-part=item][data-selected]){border-end-end-radius:0;border-end-start-radius:0}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-selected]>[data-part=label]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-disabled]{color:var(--slotted-disabled-foreground, #64748b);cursor:not-allowed}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-disabled][data-current]{box-shadow:inset 0 0 0 var(--slotted-border-width-thin, 1px) var(--slotted-disabled-border, #cbd5e1);color:var(--slotted-disabled-foreground, #64748b)}[data-ui=entity-picker][data-part=positioner] [data-part=media]{--slotted-avatar-size-xs: var(--_media-size);align-self:center;display:flex;grid-column:1;grid-row:1 / -1;justify-content:center;margin-inline-end:var(--_column-gap)}[data-ui=entity-picker][data-part=positioner] [data-part=media]:empty{block-size:var(--_content-icon-size);inline-size:var(--_media-size)}[data-ui=entity-picker][data-part=positioner] [data-part=label]{-webkit-box-orient:vertical;display:-webkit-box;grid-column:2;grid-row:1;-webkit-line-clamp:2;min-inline-size:0;overflow:hidden;overflow-wrap:anywhere;justify-self:start;max-inline-size:100%;unicode-bidi:plaintext}[data-ui=entity-picker][data-part=positioner] [data-part=description]{color:var(--_muted);font-size:var(--_secondary-font-size);grid-column:2 / 4;grid-row:2;line-height:var(--slotted-line-height-sm, 1.45);min-inline-size:0;overflow:hidden;text-overflow:ellipsis;justify-self:start;max-inline-size:100%;unicode-bidi:plaintext;white-space:nowrap}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-disabled]>[data-part=description]{color:inherit}[data-ui=entity-picker][data-part=positioner] [data-part=meta]{align-self:start;color:var(--_muted);font-size:var(--_secondary-font-size);grid-column:3;grid-row:1;line-height:calc(var(--_content-font-size) * var(--slotted-line-height-md, 1.5));margin-inline-start:var(--_column-gap);max-inline-size:var(--slotted-entity-picker-meta-measure, 8em);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-ui=entity-picker][data-part=positioner] [data-part=indicator]{--slotted-icon-size: var(--_content-icon-size);align-items:center;align-self:start;block-size:calc(var(--_content-font-size) * var(--slotted-line-height-md, 1.5));display:flex;grid-column:4;grid-row:1;inline-size:var(--_content-icon-size);justify-content:center;margin-inline-start:var(--_column-gap);opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-selected]>[data-part=indicator]{opacity:1}[data-ui=entity-picker][data-part=positioner] [data-part=item]:not(:has(>[data-part=meta]))>[data-part=label]{grid-column:2 / 4}[data-ui=entity-picker][data-part=positioner] [data-part=item]:not(:has(>[data-part=description]))>:is([data-part=indicator],[data-part=meta]){align-self:center}[data-ui=entity-picker][data-part=positioner] [data-part=item]:is([data-create],[data-retry]){color:var(--slotted-entity-picker-offer-color, var(--slotted-tone-accent-text))}[data-ui=entity-picker][data-part=positioner] [data-part=item]:is([data-create],[data-retry])>[data-part=media]{--slotted-icon-size: var(--_content-icon-size);align-items:center;align-self:start;block-size:calc(var(--_content-font-size) * var(--slotted-line-height-md, 1.5));grid-row:1;inline-size:var(--_media-size)}[data-ui=entity-picker][data-part=positioner] :is([data-part=empty],[data-part=status],[data-part=error]){color:var(--_muted);grid-column:1 / -1;min-inline-size:min(12rem,100%);padding-block:var(--slotted-space-5, .75rem);padding-inline:var(--_item-inset);text-align:center;unicode-bidi:plaintext}[data-ui=entity-picker][data-part=positioner] [data-part=status]:empty{display:none}[data-ui=entity-picker][data-part=positioner] [data-part=error]{align-items:center;color:var(--_text);display:flex;gap:var(--_column-gap);padding-block:var(--slotted-space-4, .5rem) var(--slotted-space-2, .25rem);text-align:start}[data-ui=entity-picker][data-part=positioner] [data-part=error]>[data-ui=icon]{--slotted-icon-size: var(--_content-icon-size);color:var(--slotted-entity-picker-error-color, var(--slotted-tone-danger-text));margin-inline:calc((var(--_media-size) - var(--_content-icon-size)) / 2)}[data-ui=entity-picker][data-part=positioner] :is([data-part=placeholder],[data-part=more]){display:grid;grid-column:1 / -1;grid-template-columns:subgrid}[data-ui=entity-picker][data-part=positioner] :is([data-part=placeholder],[data-part=more])>*{align-items:center;display:grid;grid-column:1 / -1;grid-template-columns:subgrid;grid-template-rows:auto auto;line-height:var(--slotted-line-height-md, 1.5);min-block-size:var(--_item-height);padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_item-inset)}[data-ui=entity-picker][data-part=positioner] :is([data-part=placeholder],[data-part=more])>*>:first-child{--slotted-skeleton-size: var(--_media-size);grid-column:1;grid-row:1 / -1;margin-inline-end:var(--_column-gap)}[data-ui=entity-picker][data-part=positioner] :is([data-part=placeholder],[data-part=more])>*>:nth-child(2){--slotted-skeleton-inline-size: 62%;grid-column:2;grid-row:1;margin-block:calc((1lh - 1cap)/2)}[data-ui=entity-picker][data-part=positioner] :is([data-part=placeholder],[data-part=more])>*>:nth-child(3){--slotted-skeleton-inline-size: 44%;font-size:var(--_secondary-font-size);grid-column:2;grid-row:2;line-height:var(--slotted-line-height-sm, 1.45);margin-block:calc((1lh - 1cap)/2)}[data-ui=entity-picker][data-part=positioner] [data-part=placeholder]>:nth-child(2)>:nth-child(2){--slotted-skeleton-inline-size: 48%}[data-ui=entity-picker][data-part=positioner] [data-part=placeholder]>:nth-child(2)>:nth-child(3){--slotted-skeleton-inline-size: 58%}[data-ui=entity-picker][data-part=positioner] [data-part=placeholder]>:nth-child(3)>:nth-child(2){--slotted-skeleton-inline-size: 70%}[data-ui=entity-picker][data-part=positioner] [data-part=placeholder]>:nth-child(3)>:nth-child(3){--slotted-skeleton-inline-size: 36%}@media(forced-colors:active){[data-ui=entity-picker][data-part=positioner] [data-part=item][data-current]{background-color:Highlight;color:HighlightText;forced-color-adjust:none}[data-ui=entity-picker][data-part=positioner] [data-part=item][data-disabled][data-current]{background-color:Highlight;color:GrayText}}}\n", "@layer slotted.components{[data-ui=tag][data-part=root]{--_solid: var(--slotted-tone-secondary-solid-hover);--_solid-hover: var(--slotted-tone-secondary-solid-active);--_solid-active: var(--slotted-tone-secondary-solid-active);--_on-solid: var(--slotted-tone-secondary-on-solid);--_surface: var(--slotted-tone-secondary-surface);--_subtle-hover: var(--slotted-tone-secondary-subtle-hover);--_subtle-active: var(--slotted-tone-secondary-subtle-active);--_border: var(--slotted-tag-border-color, var(--slotted-tone-secondary-border));--_text: var(--slotted-tone-secondary-text);--_edge: var(--_solid);--_font-size: var(--slotted-control-font-size-md, 13px);--_icon-size: var(--slotted-control-icon-size-sm, 14px);--_inner-size: var(--slotted-control-inner-size-sm, 22px);--_inset-block: var(--slotted-tag-inset-block, var(--slotted-space-2, .25rem));--_inset-inline: var(--slotted-space-4, .5rem);--_gap: var(--slotted-space-2, .25rem);--_line-height: var(--slotted-line-height-xs, 1.4);--_edge-width: var(--slotted-tag-border-width, var(--slotted-border-width-thin, 1px));--_radius: var(--slotted-radius-full, 9999px);--_inner-radius: max(0px, calc(var(--_radius) - var(--_edge-width)));--_own-size: calc( var(--_font-size) * var(--_line-height) + 2 * var(--_inset-block) + 2 * var(--_edge-width) );--_block-size: var(--slotted-control-inner-size, var(--_own-size));--_line: min( calc(var(--_font-size) * var(--_line-height)), calc(var(--_block-size) - 2 * var(--_edge-width)) );--_inset: max(0px, calc((var(--_block-size) - var(--_line) - 2 * var(--_edge-width)) / 2));align-items:stretch;border:var(--_edge-width) solid transparent;border-radius:var(--_radius);box-sizing:border-box;display:inline-flex;font-family:var(--slotted-tag-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_font-size);font-weight:var(--slotted-tag-font-weight, var(--slotted-font-weight-medium, 500));line-height:var(--_line);max-inline-size:100%;min-block-size:var(--_block-size);vertical-align:middle;white-space:nowrap}[data-ui=tag][data-part=root][hidden]{display:none}[data-ui=tag][data-part=root][data-tone=secondary]{--_edge: var(--_border)}[data-ui=tag][data-part=root][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_solid-hover: var(--slotted-tone-accent-solid-hover);--_solid-active: var(--slotted-tone-accent-solid-active);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_subtle-hover: var(--slotted-tone-accent-subtle-hover);--_subtle-active: var(--slotted-tone-accent-subtle-active);--_border: var(--slotted-tag-border-color, var(--slotted-tone-accent-border));--_text: var(--slotted-tone-accent-text)}[data-ui=tag][data-part=root][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_solid-hover: var(--slotted-tone-success-solid-hover);--_solid-active: var(--slotted-tone-success-solid-active);--_on-solid: var(--slotted-tone-success-on-solid);--_surface: var(--slotted-tone-success-surface);--_subtle-hover: var(--slotted-tone-success-subtle-hover);--_subtle-active: var(--slotted-tone-success-subtle-active);--_border: var(--slotted-tag-border-color, var(--slotted-tone-success-border));--_text: var(--slotted-tone-success-text)}[data-ui=tag][data-part=root][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_solid-hover: var(--slotted-tone-warning-solid-hover);--_solid-active: var(--slotted-tone-warning-solid-active);--_on-solid: var(--slotted-tone-warning-on-solid);--_surface: var(--slotted-tone-warning-surface);--_subtle-hover: var(--slotted-tone-warning-subtle-hover);--_subtle-active: var(--slotted-tone-warning-subtle-active);--_border: var(--slotted-tag-border-color, var(--slotted-tone-warning-border));--_text: var(--slotted-tone-warning-text)}[data-ui=tag][data-part=root][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_solid-hover: var(--slotted-tone-danger-solid-hover);--_solid-active: var(--slotted-tone-danger-solid-active);--_on-solid: var(--slotted-tone-danger-on-solid);--_surface: var(--slotted-tone-danger-surface);--_subtle-hover: var(--slotted-tone-danger-subtle-hover);--_subtle-active: var(--slotted-tone-danger-subtle-active);--_border: var(--slotted-tag-border-color, var(--slotted-tone-danger-border));--_text: var(--slotted-tone-danger-text)}[data-ui=tag][data-part=root][data-variant=solid]{background-color:var(--_solid, ButtonFace);border-color:var(--_edge, ButtonFace);color:var(--_on-solid, ButtonText)}[data-ui=tag][data-part=root][data-variant=soft]{background-color:var(--_surface, ButtonFace);border-color:var(--_border, ButtonBorder);color:var(--_text, ButtonText)}[data-ui=tag][data-part=root][data-variant=outline]{background-color:transparent;border-color:var(--_border, ButtonBorder);color:var(--_text, ButtonText)}[data-ui=tag][data-part=root][data-size=sm]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_inset-block: var(--slotted-tag-inset-block, var(--slotted-space-1, .125rem));--_inset-inline: var(--slotted-space-3, .375rem)}[data-ui=tag][data-part=root][data-size=lg]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_icon-size: var(--slotted-control-icon-size-md, 16px);--_inner-size: var(--slotted-control-inner-size-md, 24px);--_inset-block: var(--slotted-tag-inset-block, var(--slotted-space-3, .375rem));--_inset-inline: var(--slotted-space-5, .75rem);--_gap: var(--slotted-space-3, .375rem)}[data-ui=tag][data-part=root][data-shape=square]{--_radius: var(--slotted-radius-sm, 4px)}[data-ui=tag] [data-part=body]{align-items:center;background-color:transparent;border:0;border-end-start-radius:var(--_inner-radius);border-start-start-radius:var(--_inner-radius);box-sizing:border-box;color:inherit;display:inline-flex;font:inherit;gap:var(--_gap);letter-spacing:inherit;min-inline-size:0;padding-block:var(--_inset);padding-inline:var(--_inset-inline);text-align:start;text-decoration:none;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=tag] [data-part=body]:last-child{border-end-end-radius:var(--_inner-radius);border-start-end-radius:var(--_inner-radius)}[data-ui=tag] [data-part=body]:has(+[data-part=remove]){padding-inline-end:var(--_gap)}[data-ui=tag] [data-part=body]:is(a,button){cursor:pointer}[data-ui=tag] [data-part=label]{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;unicode-bidi:plaintext}@supports (text-box: trim-both cap alphabetic){[data-ui=tag] [data-part=label]{margin-block:-.3em;padding-block:.3em;text-box:trim-both cap alphabetic}}[data-ui=tag] [data-part=start],[data-ui=tag] [data-part=end]{--slotted-icon-size: var(--_icon-size);align-items:center;block-size:var(--_icon-size);box-sizing:border-box;display:inline-flex;flex:none;font-size:var(--_icon-size);inline-size:var(--_icon-size);justify-content:center;line-height:1}[data-ui=tag] [data-part=start]>*,[data-ui=tag] [data-part=end]>*{block-size:100%;display:block;inline-size:100%}[data-ui=tag] [data-part=indicator]{--slotted-icon-size: var(--_icon-size);align-items:center;block-size:var(--_icon-size);display:inline-flex;flex:none;inline-size:0;justify-content:center;margin-inline-end:calc(-1 * var(--_gap));opacity:0;overflow:hidden;transition:inline-size var(--slotted-duration-short) var(--slotted-easing-standard),margin-inline-end var(--slotted-duration-short) var(--slotted-easing-standard),opacity var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui=tag][data-part=root][data-selected] [data-part=indicator]{inline-size:var(--_icon-size);margin-inline-end:0;opacity:1}[data-ui=tag] [data-part=remove]{--slotted-icon-size: var(--_icon-size);align-items:center;appearance:none;background-color:transparent;border:0;border-end-end-radius:var(--_inner-radius);border-start-end-radius:var(--_inner-radius);box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;flex:none;inline-size:max(var(--slotted-target-min, 24px),min(calc(var(--_icon-size) + 2 * var(--slotted-space-2, .25rem)),var(--_inner-size)));justify-content:center;padding:0;position:relative;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=tag] [data-part=remove]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-min, 24px)) / 2));position:absolute}@media(pointer:coarse){[data-ui=tag] [data-part=remove]{inline-size:max(var(--slotted-target-min, 24px),min(calc(var(--_icon-size) + 2 * var(--slotted-space-2, .25rem)),var(--_inner-size)),calc(var(--_block-size) - 2 * var(--_edge-width)))}[data-ui=tag] [data-part=remove]:after{inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2))}}[data-ui=tag] [data-part=remove]:first-child{border-end-start-radius:var(--_inner-radius);border-start-start-radius:var(--_inner-radius)}[data-ui=tag][data-part=root][data-selected]:not([data-disabled]){background-color:var(--_solid, ButtonFace);border-color:var(--_edge, ButtonBorder);color:var(--_on-solid, ButtonText)}[data-ui=tag][data-part=root]{--_state-hover: color-mix( in oklab, currentColor var(--slotted-tag-state-layer-hover, 8%), transparent );--_state-active: color-mix( in oklab, currentColor var(--slotted-tag-state-layer-active, 14%), transparent )}[data-ui=tag][data-part=root][data-variant=soft]:not([data-disabled]):not([data-selected]) :is([data-part=body]:is(a,button),[data-part=remove]):hover:not(:disabled){background-color:var(--_state-hover)}[data-ui=tag][data-part=root][data-variant=soft]:not([data-disabled]):not([data-selected]) :is([data-part=body]:is(a,button),[data-part=remove]):active:not(:disabled){background-color:var(--_state-active)}[data-ui=tag][data-part=root][data-variant=outline]:not([data-disabled]):not([data-selected]) :is([data-part=body]:is(a,button),[data-part=remove]):hover:not(:disabled){background-color:var(--_subtle-hover, ButtonFace)}[data-ui=tag][data-part=root][data-variant=outline]:not([data-disabled]):not([data-selected]) :is([data-part=body]:is(a,button),[data-part=remove]):active:not(:disabled){background-color:var(--_subtle-active, ButtonFace)}[data-ui=tag][data-part=root][data-variant=solid]:not([data-disabled]) :is([data-part=body]:is(a,button),[data-part=remove]):hover:not(:disabled),[data-ui=tag][data-part=root][data-selected]:not([data-disabled]) :is([data-part=body]:is(a,button),[data-part=remove]):hover:not(:disabled){background-color:var(--_solid-hover, Highlight)}[data-ui=tag][data-part=root][data-variant=solid]:not([data-disabled]) :is([data-part=body]:is(a,button),[data-part=remove]):active:not(:disabled),[data-ui=tag][data-part=root][data-selected]:not([data-disabled]) :is([data-part=body]:is(a,button),[data-part=remove]):active:not(:disabled){background-color:var(--_solid-active, Highlight)}[data-ui=tag] [data-part=body]:focus-visible,[data-ui=tag] [data-part=remove]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-2 * var(--slotted-focus-ring-width, 2px))}[data-ui=tag][data-part=group]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui=tag][data-part=root][data-disabled]{color:var(--slotted-disabled-foreground, GrayText)}[data-ui=tag][data-part=root][data-variant=solid][data-disabled],[data-ui=tag][data-part=root][data-variant=soft][data-disabled],[data-ui=tag][data-part=root][data-selected][data-disabled]{background-color:var(--slotted-disabled-background, Canvas);border-color:var(--slotted-disabled-border, GrayText)}[data-ui=tag][data-part=root][data-variant=outline][data-disabled]{background-color:transparent;border-color:var(--slotted-disabled-border, GrayText)}[data-ui=tag][data-part=root][data-disabled] :is([data-part=body],[data-part=remove]),[data-ui=tag] [data-part=body]:disabled,[data-ui=tag] [data-part=remove]:disabled{background-color:transparent;cursor:not-allowed}[data-ui=tag] [data-part=remove]:disabled{color:var(--slotted-disabled-foreground, GrayText)}[data-ui=tag][data-part=group]{align-items:center;display:flex;flex-wrap:wrap;gap:var(--slotted-tag-group-gap, var(--slotted-space-2, .25rem))}[data-ui=tag][data-part=group][data-orientation=vertical]{align-items:start;flex-direction:column;flex-wrap:nowrap;inline-size:fit-content}[data-ui=tag][data-part=group]:empty{display:none}@media(forced-colors:active){[data-ui=tag][data-part=root]{border-color:currentColor}[data-ui=tag][data-part=root][data-selected]:not([data-disabled]){background-color:Highlight;color:HighlightText;forced-color-adjust:none}[data-ui=tag][data-part=root][data-disabled]{border-color:GrayText;color:GrayText}}}\n", "@layer slotted.components{[data-ui=spinner]{--_size: var(--slotted-spinner-size, var(--slotted-control-icon-size-md, 16px));--_ring: calc(var(--_size) * 5 / 6);--_stroke: max(var(--slotted-border-width-medium, 1.5px), calc(var(--_size) / 12));--_radius: calc((var(--_ring) - var(--_stroke)) / 2);--_track: color-mix(in oklab, currentColor 20%, transparent);--_start: calc(var(--_turn) + var(--_tail));--_end: calc(var(--_turn) + var(--_head));--_cap: calc(var(--_stroke) / 2);animation:slotted-spinner-turn var(--slotted-duration-loop-slow) linear infinite,slotted-spinner-head var(--slotted-duration-loop-slow) linear infinite,slotted-spinner-tail var(--slotted-duration-loop-slow) linear infinite;background-image:radial-gradient(circle at calc(50% + var(--_radius) * sin(var(--_end))) calc(50% - var(--_radius) * cos(var(--_end))),currentColor calc(var(--_cap) - .5px),transparent calc(var(--_cap) + .5px)),radial-gradient(circle at calc(50% + var(--_radius) * sin(var(--_start))) calc(50% - var(--_radius) * cos(var(--_start))),currentColor calc(var(--_cap) - .5px),transparent calc(var(--_cap) + .5px)),conic-gradient(from var(--_start),currentColor 0deg,currentColor calc(var(--_head) - var(--_tail)),transparent calc(var(--_head) - var(--_tail))),conic-gradient(var(--_track) 0 100%);background-origin:content-box;background-clip:content-box;block-size:var(--_size);box-sizing:border-box;display:inline-block;flex:none;inline-size:var(--_size);-webkit-mask-image:radial-gradient(circle,transparent calc(var(--_ring) / 2 - var(--_stroke) - .5px),#000 calc(var(--_ring) / 2 - var(--_stroke) + .5px),#000 calc(var(--_ring) / 2 - .5px),transparent calc(var(--_ring) / 2 + .5px));mask-image:radial-gradient(circle,transparent calc(var(--_ring) / 2 - var(--_stroke) - .5px),#000 calc(var(--_ring) / 2 - var(--_stroke) + .5px),#000 calc(var(--_ring) / 2 - .5px),transparent calc(var(--_ring) / 2 + .5px));opacity:1;padding:calc((var(--_size) - var(--_ring)) / 2);scale:1;transition:opacity var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),scale var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);vertical-align:middle}@starting-style{[data-ui=spinner]{opacity:0;scale:.6}}@media(prefers-reduced-motion:reduce){[data-ui=spinner]{--_head: 270deg;animation:none}}@media(forced-colors:active){[data-ui=spinner]{forced-color-adjust:none}}}@property --_turn{inherits: false; initial-value: 0deg; syntax: \"<angle>\";}@property --_head{inherits: false; initial-value: 20deg; syntax: \"<angle>\";}@property --_tail{inherits: false; initial-value: 0deg; syntax: \"<angle>\";}@keyframes slotted-spinner-turn{to{--_turn: 460deg}}@keyframes slotted-spinner-head{0%{--_head: 20deg;animation-timing-function:ease-in-out}50%,to{--_head: 280deg}}@keyframes slotted-spinner-tail{0%,50%{--_tail: 0deg;animation-timing-function:ease-in-out}to{--_tail: 260deg}}\n", "@layer slotted.components{[data-ui=skeleton][data-part=root][data-loading],[data-ui=skeleton][data-part=text][data-loading] [data-part=line]{--_fill: var( --slotted-skeleton-fill, color-mix( in oklab, var(--slotted-disabled-background, ButtonFace) 92%, var(--slotted-text, CanvasText) ) );--_edge: var(--slotted-skeleton-border-color, var(--slotted-border-subtle, ButtonBorder));--_highlight: var( --slotted-skeleton-highlight-color, color-mix(in oklab, var(--_fill) 86%, var(--slotted-text, CanvasText)) );--_trough: var( --slotted-skeleton-trough-color, color-mix(in oklab, var(--_fill) 60%, var(--slotted-surface-sunken, Canvas)) );background-color:var(--_fill);border:var(--slotted-skeleton-border-width, var(--slotted-border-width-thin, 1px)) solid var(--_edge);box-sizing:border-box;-webkit-user-select:none;user-select:none}[data-ui=skeleton][data-part=root]{display:inline-block;min-block-size:var(--slotted-skeleton-border-width, var(--slotted-border-width-thin, 1px))}[data-ui=skeleton][data-part=root][data-shape=text]{--_line: var(--slotted-skeleton-line-size, 1cap);block-size:var(--slotted-skeleton-block-size, var(--_line));border-radius:var(--slotted-radius-full, 9999px);inline-size:var(--slotted-skeleton-inline-size, 100%);vertical-align:calc(.5cap - .5 * var(--_line))}[data-ui=skeleton][data-part=root][data-shape=block]{block-size:var(--slotted-skeleton-block-size, auto);border-radius:var(--slotted-skeleton-radius, var(--slotted-radius-md, 6px));display:block;inline-size:var(--slotted-skeleton-inline-size, 100%);min-block-size:var(--slotted-skeleton-min-block-size, 1lh)}[data-ui=skeleton][data-part=root][data-shape=circle],[data-ui=skeleton][data-part=root][data-shape=square]{--_size: var(--slotted-skeleton-size, var(--slotted-avatar-size-md, 36px));block-size:var(--slotted-skeleton-block-size, var(--_size));inline-size:var(--slotted-skeleton-inline-size, var(--_size))}[data-ui=skeleton][data-part=root][data-shape=circle]{border-radius:var(--slotted-radius-full, 9999px)}[data-ui=skeleton][data-part=root][data-shape=square]{border-radius:var(--slotted-skeleton-radius, calc(var(--_size) / 6))}[data-ui=skeleton][data-part=root][data-shape=circle][data-size=xs],[data-ui=skeleton][data-part=root][data-shape=square][data-size=xs]{--_size: var(--slotted-skeleton-size, var(--slotted-avatar-size-xs, 24px))}[data-ui=skeleton][data-part=root][data-shape=circle][data-size=sm],[data-ui=skeleton][data-part=root][data-shape=square][data-size=sm]{--_size: var(--slotted-skeleton-size, var(--slotted-avatar-size-sm, 28px))}[data-ui=skeleton][data-part=root][data-shape=circle][data-size=md],[data-ui=skeleton][data-part=root][data-shape=square][data-size=md]{--_size: var(--slotted-skeleton-size, var(--slotted-avatar-size-md, 36px))}[data-ui=skeleton][data-part=root][data-shape=circle][data-size=lg],[data-ui=skeleton][data-part=root][data-shape=square][data-size=lg]{--_size: var(--slotted-skeleton-size, var(--slotted-avatar-size-lg, 48px))}[data-ui=skeleton][data-part=root][data-shape=circle][data-size=xl],[data-ui=skeleton][data-part=root][data-shape=square][data-size=xl]{--_size: var(--slotted-skeleton-size, var(--slotted-avatar-size-xl, 64px))}[data-ui=skeleton][data-part=root][data-loading]:not(:empty){block-size:var(--slotted-skeleton-block-size, auto);color:transparent;inline-size:var(--slotted-skeleton-inline-size, auto)}[data-ui=skeleton][data-part=root][data-loading]:not(:empty)>*{visibility:hidden}[data-ui=skeleton][data-part=text]{align-items:center;display:grid;grid-auto-rows:var(--slotted-skeleton-row-size, 1lh);inline-size:var(--slotted-skeleton-inline-size, 100%)}[data-ui=skeleton] [data-part=line]{block-size:var(--slotted-skeleton-line-size, 1cap);border-radius:var(--slotted-radius-full, 9999px);inline-size:100%}[data-ui=skeleton] [data-part=line]:last-child:not(:only-child){inline-size:var(--slotted-skeleton-last-line-size, 62%)}[data-ui=skeleton][data-part=root]:not([data-loading]),[data-ui=skeleton][data-part=text]:not([data-loading]){display:contents}[data-ui=skeleton][data-part=region]{inline-size:var(--slotted-skeleton-inline-size, 100%);min-inline-size:0}[data-ui=skeleton][data-part=root][data-loading]:not([data-animation=none]),[data-ui=skeleton][data-part=text][data-loading]:not([data-animation=none]) [data-part=line]{overflow:clip;position:relative}[data-ui=skeleton][data-part=root][data-animation=pulse][data-loading]:after,[data-ui=skeleton][data-part=root][data-animation=shimmer][data-loading]:after,[data-ui=skeleton][data-animation=pulse][data-loading] [data-part=line]:after,[data-ui=skeleton][data-animation=shimmer][data-loading] [data-part=line]:after{animation-delay:calc(var(--slotted-skeleton-phase, 0) * var(--slotted-duration-loop-slow) * -1);animation-duration:var(--slotted-duration-loop-slow);animation-iteration-count:infinite;content:\"\";inset-block:0;inset-inline:0;pointer-events:none;position:absolute}[data-ui=skeleton][data-part=root][data-animation=pulse][data-loading]:after,[data-ui=skeleton][data-animation=pulse][data-loading] [data-part=line]:after{animation-timing-function:ease-in-out;background-color:var(--_trough);opacity:0}[data-ui=skeleton][data-part=root][data-animation=shimmer][data-loading]:after,[data-ui=skeleton][data-animation=shimmer][data-loading] [data-part=line]:after{animation-timing-function:linear;background-image:linear-gradient(90deg,transparent 14%,var(--_highlight) 50%,transparent 86%)}[data-ui=skeleton][data-part=root][data-animation=shimmer][data-loading]:dir(rtl):after,[data-ui=skeleton][data-animation=shimmer][data-loading]:dir(rtl) [data-part=line]:after{animation-direction:reverse}@media(prefers-reduced-motion:no-preference){[data-ui=skeleton][data-part=root][data-animation=pulse][data-loading]:after,[data-ui=skeleton][data-animation=pulse][data-loading] [data-part=line]:after{animation-name:slotted-skeleton-pulse}[data-ui=skeleton][data-part=root][data-animation=shimmer][data-loading]:after,[data-ui=skeleton][data-animation=shimmer][data-loading] [data-part=line]:after{animation-name:slotted-skeleton-sweep}}@keyframes slotted-skeleton-pulse{50%{opacity:1}}@keyframes slotted-skeleton-sweep{0%{transform:translate(-100%)}to{transform:translate(100%)}}@media(prefers-reduced-motion:reduce){[data-ui=skeleton]:after,[data-ui=skeleton] [data-part=line]:after{animation:none}}@media(forced-colors:active){[data-ui=skeleton][data-part=root][data-loading]:after,[data-ui=skeleton][data-part=text][data-loading] [data-part=line]:after{background-image:none}}}\n"] }]
|
|
1980
|
+
}], ctorParameters: () => [], propDecorators: { selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], valueChangeRequest: [{ type: i0.Output, args: ["valueChangeRequest"] }], defaultValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultValue", required: false }] }], inputValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputValue", required: false }] }, { type: i0.Output, args: ["inputValueChange"] }], inputValueChangeRequest: [{ type: i0.Output, args: ["inputValueChangeRequest"] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], openChangeRequest: [{ type: i0.Output, args: ["openChangeRequest"] }], highlightedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightedValue", required: false }] }, { type: i0.Output, args: ["highlightedValueChange"] }], highlightedValueChangeRequest: [{ type: i0.Output, args: ["highlightedValueChangeRequest"] }], scope: [{ type: i0.Input, args: [{ isSignal: true, alias: "scope", required: false }] }, { type: i0.Output, args: ["scopeChange"] }], scopeChangeRequest: [{ type: i0.Output, args: ["scopeChangeRequest"] }], create: [{ type: i0.Output, args: ["create"] }], source: [{ type: i0.Input, args: [{ isSignal: true, alias: "source", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], entities: [{ type: i0.Input, args: [{ isSignal: true, alias: "entities", required: false }] }], favorites: [{ type: i0.Input, args: [{ isSignal: true, alias: "favorites", required: false }] }], recent: [{ type: i0.Input, args: [{ isSignal: true, alias: "recent", required: false }] }], scopes: [{ type: i0.Input, args: [{ isSignal: true, alias: "scopes", required: false }] }], createEntity: [{ type: i0.Input, args: [{ isSignal: true, alias: "createEntity", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], media: [{ type: i0.Input, args: [{ isSignal: true, alias: "media", required: false }] }], overflow: [{ type: i0.Input, args: [{ isSignal: true, alias: "overflow", required: false }] }], openOn: [{ type: i0.Input, args: [{ isSignal: true, alias: "openOn", required: false }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], strategy: [{ type: i0.Input, args: [{ isSignal: true, alias: "strategy", required: false }] }], searchDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchDelay", required: false }] }], minQueryLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minQueryLength", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], loop: [{ type: i0.Input, args: [{ isSignal: true, alias: "loop", required: false }] }], highlightMatch: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightMatch", required: false }] }], portal: [{ type: i0.Input, args: [{ isSignal: true, alias: "portal", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", 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 }] }], optionTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlEntityPickerOption), { isSignal: true }] }], chipTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlEntityPickerChip), { isSignal: true }] }], layerTemplate: [{ type: i0.ViewChild, args: ['layer', { isSignal: true }] }], controlRef: [{ type: i0.ViewChild, args: ['control', { isSignal: true }] }], inputRef: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }], chipsRef: [{ type: i0.ViewChild, args: ['chips', { isSignal: true }] }], countRef: [{ type: i0.ViewChild, args: ['count', { isSignal: true }] }] } });
|
|
1981
|
+
|
|
1982
|
+
/**
|
|
1983
|
+
* Generated bundle index. Do not edit.
|
|
1984
|
+
*/
|
|
1985
|
+
|
|
1986
|
+
export { ENTITY_PICKER_DEFAULTS, ENTITY_PICKER_FALLBACK, SlEntityPicker, SlEntityPickerChip, SlEntityPickerOption, injectEntityPickerDefaults, provideEntityPickerDefaults };
|
|
1987
|
+
//# sourceMappingURL=slotted-angular-entity-picker.mjs.map
|