@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,1939 @@
|
|
|
1
|
+
import { createFilter, moveIndex } from '@slotted/core/collection';
|
|
2
|
+
import { pressOrigin, createDismissableLayer } from '@slotted/core/dismissable-layer';
|
|
3
|
+
import { createArrowNavigation, createRemovalFocus } from '@slotted/core/focus';
|
|
4
|
+
import { multiSelectMessages } from '@slotted/core/i18n';
|
|
5
|
+
import { getLiveAnnouncer } from '@slotted/core/live-announcer';
|
|
6
|
+
import { createWidthGate } from '@slotted/core/measure';
|
|
7
|
+
import { createCollapse } from '@slotted/core/overflow';
|
|
8
|
+
import { createPortalRoot } from '@slotted/core/portal';
|
|
9
|
+
import { createPositioner } from '@slotted/core/positioner';
|
|
10
|
+
import { createPresence } from '@slotted/core/presence';
|
|
11
|
+
import { createControllable } from '@slotted/core/state';
|
|
12
|
+
import * as i0 from '@angular/core';
|
|
13
|
+
import { InjectionToken, inject, booleanAttribute, numberAttribute, model, output, input, computed, ViewContainerRef, ElementRef, Injector, viewChild, signal, HostAttributeToken, DestroyRef, effect, untracked, afterNextRender, afterRenderEffect, forwardRef, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
14
|
+
import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
|
|
15
|
+
import { injectMessages, injectLocale } from '@slotted/angular/i18n';
|
|
16
|
+
import { SlGlyph, SlIcon } from '@slotted/angular/icon';
|
|
17
|
+
import { SlField } from '@slotted/angular/field';
|
|
18
|
+
import { matchRanges } from '@slotted/core/highlight';
|
|
19
|
+
import { SlHighlight } from '@slotted/angular/highlight';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The numbers, and why they are these numbers. The React binding's
|
|
23
|
+
* `MULTI_SELECT_FALLBACK` states the reasoning; the values are the same, and
|
|
24
|
+
* they have to be — an application that renders both bindings would otherwise
|
|
25
|
+
* ship two controls that behave differently under the same name.
|
|
26
|
+
*/
|
|
27
|
+
const MULTI_SELECT_FALLBACK = {
|
|
28
|
+
addOnPaste: true,
|
|
29
|
+
align: 'start',
|
|
30
|
+
alignOffset: 0,
|
|
31
|
+
allowDuplicates: false,
|
|
32
|
+
chosenOptions: 'show',
|
|
33
|
+
clearable: true,
|
|
34
|
+
closeOnEscape: true,
|
|
35
|
+
closeOnOutsidePress: true,
|
|
36
|
+
closeOnSelect: false,
|
|
37
|
+
collisionPadding: 8,
|
|
38
|
+
commitOnBlur: true,
|
|
39
|
+
creatable: false,
|
|
40
|
+
delimiters: [','],
|
|
41
|
+
disabled: false,
|
|
42
|
+
editable: false,
|
|
43
|
+
flip: true,
|
|
44
|
+
fullWidth: true,
|
|
45
|
+
hideWhenDetached: true,
|
|
46
|
+
highlightMatch: true,
|
|
47
|
+
invalid: false,
|
|
48
|
+
loading: false,
|
|
49
|
+
loop: false,
|
|
50
|
+
max: null,
|
|
51
|
+
mount: 'active',
|
|
52
|
+
openOn: 'input',
|
|
53
|
+
overflow: 'wrap',
|
|
54
|
+
portal: true,
|
|
55
|
+
readOnly: false,
|
|
56
|
+
reorderable: false,
|
|
57
|
+
required: false,
|
|
58
|
+
shift: true,
|
|
59
|
+
side: 'bottom',
|
|
60
|
+
sideOffset: 4,
|
|
61
|
+
size: 'md',
|
|
62
|
+
strategy: 'absolute',
|
|
63
|
+
variant: 'outline',
|
|
64
|
+
width: 'content',
|
|
65
|
+
};
|
|
66
|
+
const MULTI_SELECT_DEFAULTS = new InjectionToken('MULTI_SELECT_DEFAULTS', { providedIn: 'root', factory: () => MULTI_SELECT_FALLBACK });
|
|
67
|
+
/**
|
|
68
|
+
* The decisions an application takes once. Its words come from the language in
|
|
69
|
+
* force (`provideSlotted`).
|
|
70
|
+
*/
|
|
71
|
+
function provideMultiSelectDefaults(defaults) {
|
|
72
|
+
return { provide: MULTI_SELECT_DEFAULTS, useValue: { ...MULTI_SELECT_FALLBACK, ...defaults } };
|
|
73
|
+
}
|
|
74
|
+
function injectMultiSelectDefaults() {
|
|
75
|
+
return inject(MULTI_SELECT_DEFAULTS);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* A filtered-out option stays in the DOM and is hidden, so that the element a
|
|
80
|
+
* reader's pointer is over survives a keystroke. It is therefore not part of
|
|
81
|
+
* the result set, and every count and every move has to skip it.
|
|
82
|
+
*/
|
|
83
|
+
const OPTION_SELECTOR = "[data-part='item']:not([hidden])";
|
|
84
|
+
/**
|
|
85
|
+
* Brings an option into view without moving the page: the nearest scrolling
|
|
86
|
+
* box between the option and the popup surface is scrolled, by the least
|
|
87
|
+
* distance that shows the whole row, and nothing past it. `scrollIntoView`
|
|
88
|
+
* would scroll every ancestor too, and on the first open it runs before the
|
|
89
|
+
* popup is positioned — a control far down a page sent the page to its top.
|
|
90
|
+
*/
|
|
91
|
+
function revealWithin(option, surface) {
|
|
92
|
+
let box = surface;
|
|
93
|
+
for (let node = option.parentElement; node !== null && node !== surface; node = node.parentElement) {
|
|
94
|
+
const overflow = getComputedStyle(node).overflowY;
|
|
95
|
+
if (overflow === 'auto' || overflow === 'scroll') {
|
|
96
|
+
box = node;
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const row = option.getBoundingClientRect();
|
|
101
|
+
const top = box.getBoundingClientRect().top + box.clientTop;
|
|
102
|
+
const bottom = top + box.clientHeight;
|
|
103
|
+
if (row.top < top)
|
|
104
|
+
box.scrollTop -= top - row.top;
|
|
105
|
+
else if (row.bottom > bottom)
|
|
106
|
+
box.scrollTop += Math.min(row.bottom - bottom, row.top - top);
|
|
107
|
+
}
|
|
108
|
+
/** The chips in the row, which are every cell but the one holding the caret. */
|
|
109
|
+
const CHIP_SELECTOR = "[data-part='chips'] > [role='gridcell']:not([data-part='field'])";
|
|
110
|
+
const isGroup = (entry) => 'options' in entry;
|
|
111
|
+
const flatten = (items) => items === undefined ? [] : items.flatMap((entry) => (isGroup(entry) ? entry.options : [entry]));
|
|
112
|
+
const same = (a, b) => a.length === b.length && a.every((value, index) => value === b[index]);
|
|
113
|
+
/**
|
|
114
|
+
* A frame of chosen values, with a field that adds more.
|
|
115
|
+
*
|
|
116
|
+
* **The host element is the frame**, as `sl-combobox`'s is: it carries
|
|
117
|
+
* `data-ui`, and the grid, the chips, the field, the counter and the two
|
|
118
|
+
* buttons are its template. The popup is an `ng-template` built into the portal
|
|
119
|
+
* when it opens.
|
|
120
|
+
*
|
|
121
|
+
* **The set is ordered, and the order is the reader's.** It is an array and not
|
|
122
|
+
* a set, because reorder is meaningless against a value the family is free to
|
|
123
|
+
* re-sort.
|
|
124
|
+
*
|
|
125
|
+
* **What is refused is reported, not dropped.** `valueRefuse` carries the
|
|
126
|
+
* values that did not get in and the cause — a duplicate, the limit, or the
|
|
127
|
+
* consumer's own predicate.
|
|
128
|
+
*/
|
|
129
|
+
class SlMultiSelect {
|
|
130
|
+
static flag = (given) => given === undefined ? undefined : booleanAttribute(given);
|
|
131
|
+
static count = (given) => given === undefined ? undefined : numberAttribute(given);
|
|
132
|
+
/** The chosen values, in the order the reader chose them. */
|
|
133
|
+
value = model([], /* @ts-ignore */
|
|
134
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
135
|
+
valueChangeRequest = output();
|
|
136
|
+
/** What an unbound `value` starts from, read once. */
|
|
137
|
+
defaultValue = input(undefined, /* @ts-ignore */
|
|
138
|
+
...(ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []));
|
|
139
|
+
/** The characters in the field, which are not the chosen values. */
|
|
140
|
+
inputValue = model('', /* @ts-ignore */
|
|
141
|
+
...(ngDevMode ? [{ debugName: "inputValue" }] : /* istanbul ignore next */ []));
|
|
142
|
+
inputValueChangeRequest = output();
|
|
143
|
+
open = model(false, /* @ts-ignore */
|
|
144
|
+
...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
145
|
+
openChangeRequest = output();
|
|
146
|
+
highlightedValue = model(null, /* @ts-ignore */
|
|
147
|
+
...(ngDevMode ? [{ debugName: "highlightedValue" }] : /* istanbul ignore next */ []));
|
|
148
|
+
highlightedValueChangeRequest = output();
|
|
149
|
+
/** What the family refused, and why. It holds no state and cancels nothing. */
|
|
150
|
+
valueRefuse = output();
|
|
151
|
+
/** The last option came into view; the consumer fetches the next page. */
|
|
152
|
+
loadMore = output();
|
|
153
|
+
ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
|
|
154
|
+
placeholder = input('', /* @ts-ignore */
|
|
155
|
+
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
156
|
+
name = input(undefined, /* @ts-ignore */
|
|
157
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
158
|
+
form = input(undefined, /* @ts-ignore */
|
|
159
|
+
...(ngDevMode ? [{ debugName: "form" }] : /* istanbul ignore next */ []));
|
|
160
|
+
items = input(undefined, /* @ts-ignore */
|
|
161
|
+
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
162
|
+
total = input(undefined, { ...(ngDevMode ? { debugName: "total" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.count });
|
|
163
|
+
/**
|
|
164
|
+
* BCP 47, for the comparison the default filter and the duplicate rule make.
|
|
165
|
+
* The language in force when absent.
|
|
166
|
+
*/
|
|
167
|
+
locale = input(undefined, /* @ts-ignore */
|
|
168
|
+
...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
169
|
+
filter = input(undefined, /* @ts-ignore */
|
|
170
|
+
...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
|
|
171
|
+
validateValue = input(undefined, /* @ts-ignore */
|
|
172
|
+
...(ngDevMode ? [{ debugName: "validateValue" }] : /* istanbul ignore next */ []));
|
|
173
|
+
delimiters = input(undefined, /* @ts-ignore */
|
|
174
|
+
...(ngDevMode ? [{ debugName: "delimiters" }] : /* istanbul ignore next */ []));
|
|
175
|
+
max = input(undefined, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.count });
|
|
176
|
+
size = input(undefined, /* @ts-ignore */
|
|
177
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
178
|
+
variant = input(undefined, /* @ts-ignore */
|
|
179
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
180
|
+
side = input(undefined, /* @ts-ignore */
|
|
181
|
+
...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
|
|
182
|
+
align = input(undefined, /* @ts-ignore */
|
|
183
|
+
...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
184
|
+
width = input(undefined, /* @ts-ignore */
|
|
185
|
+
...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
|
|
186
|
+
mount = input(undefined, /* @ts-ignore */
|
|
187
|
+
...(ngDevMode ? [{ debugName: "mount" }] : /* istanbul ignore next */ []));
|
|
188
|
+
strategy = input(undefined, /* @ts-ignore */
|
|
189
|
+
...(ngDevMode ? [{ debugName: "strategy" }] : /* istanbul ignore next */ []));
|
|
190
|
+
openOn = input(undefined, /* @ts-ignore */
|
|
191
|
+
...(ngDevMode ? [{ debugName: "openOn" }] : /* istanbul ignore next */ []));
|
|
192
|
+
overflow = input(undefined, /* @ts-ignore */
|
|
193
|
+
...(ngDevMode ? [{ debugName: "overflow" }] : /* istanbul ignore next */ []));
|
|
194
|
+
chosenOptions = input(undefined, /* @ts-ignore */
|
|
195
|
+
...(ngDevMode ? [{ debugName: "chosenOptions" }] : /* istanbul ignore next */ []));
|
|
196
|
+
/**
|
|
197
|
+
* Words laid over the catalog of the language in force, key by key: the
|
|
198
|
+
* buttons, the chips, the counter, the offer to add, and the sentences.
|
|
199
|
+
*/
|
|
200
|
+
messages = input(undefined, /* @ts-ignore */
|
|
201
|
+
...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
|
|
202
|
+
sideOffset = input(undefined, { ...(ngDevMode ? { debugName: "sideOffset" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.count });
|
|
203
|
+
alignOffset = input(undefined, { ...(ngDevMode ? { debugName: "alignOffset" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.count });
|
|
204
|
+
collisionPadding = input(undefined, { ...(ngDevMode ? { debugName: "collisionPadding" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.count });
|
|
205
|
+
addOnPaste = input(undefined, { ...(ngDevMode ? { debugName: "addOnPaste" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
206
|
+
allowDuplicates = input(undefined, { ...(ngDevMode ? { debugName: "allowDuplicates" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
207
|
+
commitOnBlur = input(undefined, { ...(ngDevMode ? { debugName: "commitOnBlur" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
208
|
+
creatable = input(undefined, { ...(ngDevMode ? { debugName: "creatable" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
209
|
+
editable = input(undefined, { ...(ngDevMode ? { debugName: "editable" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
210
|
+
reorderable = input(undefined, { ...(ngDevMode ? { debugName: "reorderable" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
211
|
+
highlightMatch = input(undefined, { ...(ngDevMode ? { debugName: "highlightMatch" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
212
|
+
clearable = input(undefined, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
213
|
+
loop = input(undefined, { ...(ngDevMode ? { debugName: "loop" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
214
|
+
closeOnSelect = input(undefined, { ...(ngDevMode ? { debugName: "closeOnSelect" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
215
|
+
closeOnEscape = input(undefined, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
216
|
+
closeOnOutsidePress = input(undefined, { ...(ngDevMode ? { debugName: "closeOnOutsidePress" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
217
|
+
flip = input(undefined, { ...(ngDevMode ? { debugName: "flip" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
218
|
+
shift = input(undefined, { ...(ngDevMode ? { debugName: "shift" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
219
|
+
hideWhenDetached = input(undefined, { ...(ngDevMode ? { debugName: "hideWhenDetached" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
220
|
+
portal = input(undefined, { ...(ngDevMode ? { debugName: "portal" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
221
|
+
fullWidth = input(undefined, { ...(ngDevMode ? { debugName: "fullWidth" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
222
|
+
disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
223
|
+
readOnly = input(undefined, { ...(ngDevMode ? { debugName: "readOnly" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
224
|
+
required = input(undefined, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
225
|
+
invalid = input(undefined, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: SlMultiSelect.flag });
|
|
226
|
+
loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
227
|
+
defaults = injectMultiSelectDefaults();
|
|
228
|
+
/** The family's words in the language in force, with this control's `messages` laid over them. */
|
|
229
|
+
t = injectMessages(multiSelectMessages, this.messages);
|
|
230
|
+
inForceLocale = injectLocale();
|
|
231
|
+
/** The locale the filter and the duplicate rule compare in: the `locale` input, or the language in force. */
|
|
232
|
+
resolvedLocale = computed(() => this.locale() ?? this.inForceLocale(), /* @ts-ignore */
|
|
233
|
+
...(ngDevMode ? [{ debugName: "resolvedLocale" }] : /* istanbul ignore next */ []));
|
|
234
|
+
viewContainer = inject(ViewContainerRef);
|
|
235
|
+
host = inject(ElementRef);
|
|
236
|
+
injector = inject(Injector);
|
|
237
|
+
template = viewChild.required('layer', /* @ts-ignore */
|
|
238
|
+
...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
|
|
239
|
+
controlRef = viewChild.required('control', /* @ts-ignore */
|
|
240
|
+
...(ngDevMode ? [{ debugName: "controlRef" }] : /* istanbul ignore next */ []));
|
|
241
|
+
rowRef = viewChild.required('row', /* @ts-ignore */
|
|
242
|
+
...(ngDevMode ? [{ debugName: "rowRef" }] : /* istanbul ignore next */ []));
|
|
243
|
+
countRef = viewChild('count', /* @ts-ignore */
|
|
244
|
+
...(ngDevMode ? [{ debugName: "countRef" }] : /* istanbul ignore next */ []));
|
|
245
|
+
field = inject(SlField, { optional: true });
|
|
246
|
+
identifier = Math.random().toString(36).slice(2, 8);
|
|
247
|
+
contentId = `sl-multi-select-${this.identifier}`;
|
|
248
|
+
ownId = `sl-multi-select-input-${this.identifier}`;
|
|
249
|
+
registry = signal(new Map(), /* @ts-ignore */
|
|
250
|
+
...(ngDevMode ? [{ debugName: "registry" }] : /* istanbul ignore next */ []));
|
|
251
|
+
optionCount = signal(0, /* @ts-ignore */
|
|
252
|
+
...(ngDevMode ? [{ debugName: "optionCount" }] : /* istanbul ignore next */ []));
|
|
253
|
+
hiddenCount = signal(0, /* @ts-ignore */
|
|
254
|
+
...(ngDevMode ? [{ debugName: "hiddenCount" }] : /* istanbul ignore next */ []));
|
|
255
|
+
narrow = signal(false, /* @ts-ignore */
|
|
256
|
+
...(ngDevMode ? [{ debugName: "narrow" }] : /* istanbul ignore next */ []));
|
|
257
|
+
editingValue = signal(null, /* @ts-ignore */
|
|
258
|
+
...(ngDevMode ? [{ debugName: "editingValue" }] : /* istanbul ignore next */ []));
|
|
259
|
+
editingText = signal('', /* @ts-ignore */
|
|
260
|
+
...(ngDevMode ? [{ debugName: "editingText" }] : /* istanbul ignore next */ []));
|
|
261
|
+
entry = 'none';
|
|
262
|
+
view = null;
|
|
263
|
+
layerNode = null;
|
|
264
|
+
surfaceNode = null;
|
|
265
|
+
portalRoot = null;
|
|
266
|
+
positioner = null;
|
|
267
|
+
layer = null;
|
|
268
|
+
presence = null;
|
|
269
|
+
observer = null;
|
|
270
|
+
ring = null;
|
|
271
|
+
removal = null;
|
|
272
|
+
collapse = null;
|
|
273
|
+
gate = null;
|
|
274
|
+
disabledByForm = signal(undefined, /* @ts-ignore */
|
|
275
|
+
...(ngDevMode ? [{ debugName: "disabledByForm" }] : /* istanbul ignore next */ []));
|
|
276
|
+
hostId = inject(new HostAttributeToken('id'), { optional: true });
|
|
277
|
+
onChange = () => undefined;
|
|
278
|
+
onTouched = () => undefined;
|
|
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
|
+
resolvedAlign = computed(() => this.align() ?? this.defaults.align, /* @ts-ignore */
|
|
284
|
+
...(ngDevMode ? [{ debugName: "resolvedAlign" }] : /* istanbul ignore next */ []));
|
|
285
|
+
resolvedSide = computed(() => this.side() ?? this.defaults.side, /* @ts-ignore */
|
|
286
|
+
...(ngDevMode ? [{ debugName: "resolvedSide" }] : /* istanbul ignore next */ []));
|
|
287
|
+
resolvedWidth = computed(() => this.width() ?? this.defaults.width, /* @ts-ignore */
|
|
288
|
+
...(ngDevMode ? [{ debugName: "resolvedWidth" }] : /* istanbul ignore next */ []));
|
|
289
|
+
resolvedMount = computed(() => this.mount() ?? this.defaults.mount, /* @ts-ignore */
|
|
290
|
+
...(ngDevMode ? [{ debugName: "resolvedMount" }] : /* istanbul ignore next */ []));
|
|
291
|
+
resolvedOpenOn = computed(() => this.openOn() ?? this.defaults.openOn, /* @ts-ignore */
|
|
292
|
+
...(ngDevMode ? [{ debugName: "resolvedOpenOn" }] : /* istanbul ignore next */ []));
|
|
293
|
+
resolvedOverflow = computed(() => this.overflow() ?? this.defaults.overflow, /* @ts-ignore */
|
|
294
|
+
...(ngDevMode ? [{ debugName: "resolvedOverflow" }] : /* istanbul ignore next */ []));
|
|
295
|
+
resolvedChosenOptions = computed(() => this.chosenOptions() ?? this.defaults.chosenOptions, /* @ts-ignore */
|
|
296
|
+
...(ngDevMode ? [{ debugName: "resolvedChosenOptions" }] : /* istanbul ignore next */ []));
|
|
297
|
+
resolvedLoop = computed(() => this.loop() ?? this.defaults.loop, /* @ts-ignore */
|
|
298
|
+
...(ngDevMode ? [{ debugName: "resolvedLoop" }] : /* istanbul ignore next */ []));
|
|
299
|
+
resolvedClearable = computed(() => this.clearable() ?? this.defaults.clearable, /* @ts-ignore */
|
|
300
|
+
...(ngDevMode ? [{ debugName: "resolvedClearable" }] : /* istanbul ignore next */ []));
|
|
301
|
+
resolvedFullWidth = computed(() => this.fullWidth() ?? this.defaults.fullWidth, /* @ts-ignore */
|
|
302
|
+
...(ngDevMode ? [{ debugName: "resolvedFullWidth" }] : /* istanbul ignore next */ []));
|
|
303
|
+
resolvedCreatable = computed(() => this.creatable() ?? this.defaults.creatable, /* @ts-ignore */
|
|
304
|
+
...(ngDevMode ? [{ debugName: "resolvedCreatable" }] : /* istanbul ignore next */ []));
|
|
305
|
+
resolvedEditable = computed(() => this.editable() ?? this.defaults.editable, /* @ts-ignore */
|
|
306
|
+
...(ngDevMode ? [{ debugName: "resolvedEditable" }] : /* istanbul ignore next */ []));
|
|
307
|
+
resolvedReorderable = computed(() => this.reorderable() ?? this.defaults.reorderable, /* @ts-ignore */
|
|
308
|
+
...(ngDevMode ? [{ debugName: "resolvedReorderable" }] : /* istanbul ignore next */ []));
|
|
309
|
+
resolvedAddOnPaste = computed(() => this.addOnPaste() ?? this.defaults.addOnPaste, /* @ts-ignore */
|
|
310
|
+
...(ngDevMode ? [{ debugName: "resolvedAddOnPaste" }] : /* istanbul ignore next */ []));
|
|
311
|
+
resolvedCommitOnBlur = computed(() => this.commitOnBlur() ?? this.defaults.commitOnBlur, /* @ts-ignore */
|
|
312
|
+
...(ngDevMode ? [{ debugName: "resolvedCommitOnBlur" }] : /* istanbul ignore next */ []));
|
|
313
|
+
resolvedAllowDuplicates = computed(() => this.allowDuplicates() ?? this.defaults.allowDuplicates, /* @ts-ignore */
|
|
314
|
+
...(ngDevMode ? [{ debugName: "resolvedAllowDuplicates" }] : /* istanbul ignore next */ []));
|
|
315
|
+
resolvedDelimiters = computed(() => this.delimiters() ?? this.defaults.delimiters, /* @ts-ignore */
|
|
316
|
+
...(ngDevMode ? [{ debugName: "resolvedDelimiters" }] : /* istanbul ignore next */ []));
|
|
317
|
+
resolvedMax = computed(() => this.max() ?? this.defaults.max, /* @ts-ignore */
|
|
318
|
+
...(ngDevMode ? [{ debugName: "resolvedMax" }] : /* istanbul ignore next */ []));
|
|
319
|
+
resolvedCloseOnSelect = computed(() => this.closeOnSelect() ?? this.defaults.closeOnSelect, /* @ts-ignore */
|
|
320
|
+
...(ngDevMode ? [{ debugName: "resolvedCloseOnSelect" }] : /* istanbul ignore next */ []));
|
|
321
|
+
resolvedHighlightMatch = computed(() => this.highlightMatch() ?? this.defaults.highlightMatch, /* @ts-ignore */
|
|
322
|
+
...(ngDevMode ? [{ debugName: "resolvedHighlightMatch" }] : /* istanbul ignore next */ []));
|
|
323
|
+
resolvedDisabled = computed(() => this.disabled() ?? this.disabledByForm() ?? this.field?.disabled() ?? this.defaults.disabled, /* @ts-ignore */
|
|
324
|
+
...(ngDevMode ? [{ debugName: "resolvedDisabled" }] : /* istanbul ignore next */ []));
|
|
325
|
+
resolvedReadOnly = computed(() => this.readOnly() ?? this.field?.readOnly() ?? this.defaults.readOnly, /* @ts-ignore */
|
|
326
|
+
...(ngDevMode ? [{ debugName: "resolvedReadOnly" }] : /* istanbul ignore next */ []));
|
|
327
|
+
resolvedRequired = computed(() => this.required() ?? this.field?.required() ?? this.defaults.required, /* @ts-ignore */
|
|
328
|
+
...(ngDevMode ? [{ debugName: "resolvedRequired" }] : /* istanbul ignore next */ []));
|
|
329
|
+
resolvedInvalid = computed(() => this.invalid() ?? this.field?.invalid() ?? this.defaults.invalid, /* @ts-ignore */
|
|
330
|
+
...(ngDevMode ? [{ debugName: "resolvedInvalid" }] : /* istanbul ignore next */ []));
|
|
331
|
+
isOpen = computed(() => this.open() && !this.resolvedDisabled(), /* @ts-ignore */
|
|
332
|
+
...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
|
|
333
|
+
controlId = computed(() => this.hostId ?? this.field?.ids().control ?? this.ownId, /* @ts-ignore */
|
|
334
|
+
...(ngDevMode ? [{ debugName: "controlId" }] : /* istanbul ignore next */ []));
|
|
335
|
+
describedBy = computed(() => this.field?.describedBy() ?? null, /* @ts-ignore */
|
|
336
|
+
...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
|
|
337
|
+
/** The set has reached `max` and takes nothing more. */
|
|
338
|
+
full = computed(() => {
|
|
339
|
+
const limit = this.resolvedMax();
|
|
340
|
+
return limit !== null && this.value().length >= limit;
|
|
341
|
+
}, /* @ts-ignore */
|
|
342
|
+
...(ngDevMode ? [{ debugName: "full" }] : /* istanbul ignore next */ []));
|
|
343
|
+
frozen = computed(() => this.resolvedReadOnly() || this.resolvedDisabled(), /* @ts-ignore */
|
|
344
|
+
...(ngDevMode ? [{ debugName: "frozen" }] : /* istanbul ignore next */ []));
|
|
345
|
+
declared = computed(() => {
|
|
346
|
+
const table = new Map();
|
|
347
|
+
for (const option of flatten(this.items()))
|
|
348
|
+
table.set(option.value, option.label);
|
|
349
|
+
return table;
|
|
350
|
+
}, /* @ts-ignore */
|
|
351
|
+
...(ngDevMode ? [{ debugName: "declared" }] : /* istanbul ignore next */ []));
|
|
352
|
+
/** The query is the typed text: unlike a combobox's, committing empties it. */
|
|
353
|
+
query = computed(() => this.inputValue(), /* @ts-ignore */
|
|
354
|
+
...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
|
|
355
|
+
collator = computed(() => createFilter({ locale: this.resolvedLocale() }), /* @ts-ignore */
|
|
356
|
+
...(ngDevMode ? [{ debugName: "collator" }] : /* istanbul ignore next */ []));
|
|
357
|
+
showClear = computed(() => this.resolvedClearable() &&
|
|
358
|
+
(this.value().length > 0 || this.inputValue() !== '') &&
|
|
359
|
+
!this.resolvedDisabled() &&
|
|
360
|
+
!this.resolvedReadOnly(), /* @ts-ignore */
|
|
361
|
+
...(ngDevMode ? [{ debugName: "showClear" }] : /* istanbul ignore next */ []));
|
|
362
|
+
gridLabel = computed(() => this.t('chosen', { count: this.value().length }), /* @ts-ignore */
|
|
363
|
+
...(ngDevMode ? [{ debugName: "gridLabel" }] : /* istanbul ignore next */ []));
|
|
364
|
+
counterText = computed(() => {
|
|
365
|
+
const limit = this.resolvedMax();
|
|
366
|
+
if (limit !== null) {
|
|
367
|
+
return this.t('counter', { count: this.value().length, max: limit });
|
|
368
|
+
}
|
|
369
|
+
if (this.narrow() && this.value().length > 0)
|
|
370
|
+
return this.gridLabel();
|
|
371
|
+
return null;
|
|
372
|
+
}, /* @ts-ignore */
|
|
373
|
+
...(ngDevMode ? [{ debugName: "counterText" }] : /* istanbul ignore next */ []));
|
|
374
|
+
activeDescendant = computed(() => {
|
|
375
|
+
const held = this.highlightedValue();
|
|
376
|
+
return this.isOpen() && held !== null ? this.optionId(held) : null;
|
|
377
|
+
}, /* @ts-ignore */
|
|
378
|
+
...(ngDevMode ? [{ debugName: "activeDescendant" }] : /* istanbul ignore next */ []));
|
|
379
|
+
/**
|
|
380
|
+
* The offer to add what was typed: while the consumer allows one, the reader
|
|
381
|
+
* typed something, nothing matched, and there is room to take it. A full
|
|
382
|
+
* control refuses every value, so an offer there is one the next press turns
|
|
383
|
+
* down.
|
|
384
|
+
*/
|
|
385
|
+
offering = computed(() => this.resolvedCreatable() &&
|
|
386
|
+
!this.full() &&
|
|
387
|
+
this.query().trim() !== '' &&
|
|
388
|
+
this.optionCount() === 0
|
|
389
|
+
? this.query()
|
|
390
|
+
: null, /* @ts-ignore */
|
|
391
|
+
...(ngDevMode ? [{ debugName: "offering" }] : /* istanbul ignore next */ []));
|
|
392
|
+
statusMessage = computed(() => {
|
|
393
|
+
if (this.loading())
|
|
394
|
+
return this.t('loading');
|
|
395
|
+
const count = this.optionCount();
|
|
396
|
+
return count === 0 ? '' : this.t('count', { count });
|
|
397
|
+
}, /* @ts-ignore */
|
|
398
|
+
...(ngDevMode ? [{ debugName: "statusMessage" }] : /* istanbul ignore next */ []));
|
|
399
|
+
constructor() {
|
|
400
|
+
const destroyRef = inject(DestroyRef);
|
|
401
|
+
effect(() => {
|
|
402
|
+
const open = this.isOpen();
|
|
403
|
+
untracked(() => (open ? this.show() : this.hide()));
|
|
404
|
+
});
|
|
405
|
+
afterNextRender(() => {
|
|
406
|
+
this.bindRow();
|
|
407
|
+
if (this.resolvedMount() === 'eager' && !this.isOpen())
|
|
408
|
+
this.build();
|
|
409
|
+
});
|
|
410
|
+
/* A value arriving or leaving changes what there is to fit, and which cells
|
|
411
|
+
the ring walks. */
|
|
412
|
+
afterRenderEffect(() => {
|
|
413
|
+
this.value();
|
|
414
|
+
this.resolvedOverflow();
|
|
415
|
+
untracked(() => {
|
|
416
|
+
this.ring?.refresh();
|
|
417
|
+
this.collapse?.refresh();
|
|
418
|
+
});
|
|
419
|
+
});
|
|
420
|
+
destroyRef.onDestroy(() => {
|
|
421
|
+
this.teardown();
|
|
422
|
+
this.ring?.destroy();
|
|
423
|
+
this.removal?.destroy();
|
|
424
|
+
this.collapse?.destroy();
|
|
425
|
+
this.gate?.destroy();
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
ngOnInit() {
|
|
429
|
+
const seed = this.defaultValue();
|
|
430
|
+
if (seed === undefined || this.value().length > 0)
|
|
431
|
+
return;
|
|
432
|
+
this.value.set([...seed]);
|
|
433
|
+
}
|
|
434
|
+
optionId(value) {
|
|
435
|
+
return `${this.contentId}-option-${encodeURIComponent(value)}`;
|
|
436
|
+
}
|
|
437
|
+
labelFor(value) {
|
|
438
|
+
return this.declared().get(value) ?? this.registry().get(value);
|
|
439
|
+
}
|
|
440
|
+
registerLabel(value, label) {
|
|
441
|
+
if (this.registry().get(value) === label)
|
|
442
|
+
return;
|
|
443
|
+
const next = new Map(this.registry());
|
|
444
|
+
next.set(value, label);
|
|
445
|
+
this.registry.set(next);
|
|
446
|
+
}
|
|
447
|
+
removeLabelFor(value) {
|
|
448
|
+
return this.t('remove', { label: this.labelFor(value) ?? value });
|
|
449
|
+
}
|
|
450
|
+
chipLabel(value, index) {
|
|
451
|
+
if (!this.resolvedReorderable())
|
|
452
|
+
return null;
|
|
453
|
+
return this.t('reorder', {
|
|
454
|
+
label: this.labelFor(value) ?? value,
|
|
455
|
+
position: index + 1,
|
|
456
|
+
count: this.value().length,
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
matches(label) {
|
|
460
|
+
const query = this.query();
|
|
461
|
+
const given = this.filter();
|
|
462
|
+
if (query === '' || given === null)
|
|
463
|
+
return true;
|
|
464
|
+
if (given !== undefined)
|
|
465
|
+
return given(label, query);
|
|
466
|
+
return this.collator().contains(label, query);
|
|
467
|
+
}
|
|
468
|
+
/** Whether an option may be taken: a full control refuses what it does not hold. */
|
|
469
|
+
refuses(value) {
|
|
470
|
+
return this.full() && !this.value().includes(value);
|
|
471
|
+
}
|
|
472
|
+
recount() {
|
|
473
|
+
this.optionCount.set(this.options().filter((option) => option.dataset['create'] === undefined).length);
|
|
474
|
+
this.dropStaleHighlight();
|
|
475
|
+
}
|
|
476
|
+
options() {
|
|
477
|
+
return [...(this.surfaceNode?.querySelectorAll(OPTION_SELECTOR) ?? [])];
|
|
478
|
+
}
|
|
479
|
+
focus() {
|
|
480
|
+
this.controlRef().nativeElement.focus({ preventScroll: true });
|
|
481
|
+
}
|
|
482
|
+
scrollToKey(value) {
|
|
483
|
+
const option = this.options().find((candidate) => candidate.dataset['value'] === value);
|
|
484
|
+
if (option !== undefined && this.surfaceNode !== null)
|
|
485
|
+
revealWithin(option, this.surfaceNode);
|
|
486
|
+
}
|
|
487
|
+
announce(message) {
|
|
488
|
+
if (message === '')
|
|
489
|
+
return;
|
|
490
|
+
getLiveAnnouncer(this.host.nativeElement.ownerDocument).announce(message, { repeat: true });
|
|
491
|
+
}
|
|
492
|
+
setOpen(next, reason, source) {
|
|
493
|
+
if (next === this.isOpen())
|
|
494
|
+
return;
|
|
495
|
+
const state = createControllable({
|
|
496
|
+
initial: this.isOpen(),
|
|
497
|
+
onRequest: (request) => this.openChangeRequest.emit(request),
|
|
498
|
+
});
|
|
499
|
+
if (!state.request(next, reason, source))
|
|
500
|
+
return;
|
|
501
|
+
this.open.set(next);
|
|
502
|
+
if (!next) {
|
|
503
|
+
this.highlightedValue.set(null);
|
|
504
|
+
this.entry = 'none';
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
setHighlighted(next, reason, source) {
|
|
508
|
+
if (next === this.highlightedValue())
|
|
509
|
+
return;
|
|
510
|
+
const state = createControllable({
|
|
511
|
+
initial: this.highlightedValue(),
|
|
512
|
+
onRequest: (request) => this.highlightedValueChangeRequest.emit(request),
|
|
513
|
+
});
|
|
514
|
+
if (state.request(next, reason, source)) {
|
|
515
|
+
this.highlightedValue.set(next);
|
|
516
|
+
if (next !== null)
|
|
517
|
+
this.scrollToKey(next);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
setInputValue(next, reason, source) {
|
|
521
|
+
if (next === this.inputValue())
|
|
522
|
+
return;
|
|
523
|
+
const state = createControllable({
|
|
524
|
+
initial: this.inputValue(),
|
|
525
|
+
onRequest: (request) => this.inputValueChangeRequest.emit(request),
|
|
526
|
+
});
|
|
527
|
+
if (!state.request(next, reason, source))
|
|
528
|
+
return;
|
|
529
|
+
this.inputValue.set(next);
|
|
530
|
+
/* The binding writes the input at the next render, and a key that arrives
|
|
531
|
+
before it types into what the browser still holds: a commit left its
|
|
532
|
+
text in the input, and the next character joined it. */
|
|
533
|
+
const element = this.host.nativeElement.querySelector("[data-part='input']");
|
|
534
|
+
if (element !== null && element.value !== next)
|
|
535
|
+
element.value = next;
|
|
536
|
+
}
|
|
537
|
+
/** One request for one transition, whatever moved the set. */
|
|
538
|
+
commit(next, reason, source) {
|
|
539
|
+
if (same(next, this.value()))
|
|
540
|
+
return false;
|
|
541
|
+
const state = createControllable({
|
|
542
|
+
initial: this.value(),
|
|
543
|
+
onRequest: (request) => this.valueChangeRequest.emit(request),
|
|
544
|
+
});
|
|
545
|
+
if (!state.request(next, reason, source))
|
|
546
|
+
return false;
|
|
547
|
+
this.value.set(next);
|
|
548
|
+
this.onChange(next);
|
|
549
|
+
this.onTouched();
|
|
550
|
+
return true;
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* Every candidate judged against the set it would join, in order. It returns
|
|
554
|
+
* the set that survived rather than committing one, so a value arriving and a
|
|
555
|
+
* value edited in place apply one rule and cannot drift apart.
|
|
556
|
+
*/
|
|
557
|
+
judge(candidates, held) {
|
|
558
|
+
const next = [...held];
|
|
559
|
+
const refused = {
|
|
560
|
+
duplicate: [],
|
|
561
|
+
limit: [],
|
|
562
|
+
invalid: [],
|
|
563
|
+
};
|
|
564
|
+
let existing = null;
|
|
565
|
+
const validate = this.validateValue();
|
|
566
|
+
const collator = this.collator();
|
|
567
|
+
const limit = this.resolvedMax();
|
|
568
|
+
for (const candidate of candidates) {
|
|
569
|
+
const text = candidate.trim();
|
|
570
|
+
if (text === '')
|
|
571
|
+
continue;
|
|
572
|
+
if (validate !== undefined && !validate(text, next)) {
|
|
573
|
+
refused.invalid.push(text);
|
|
574
|
+
continue;
|
|
575
|
+
}
|
|
576
|
+
if (!this.resolvedAllowDuplicates()) {
|
|
577
|
+
const twin = next.find((value) => value === text ||
|
|
578
|
+
collator.equals(value, text) ||
|
|
579
|
+
collator.equals(this.labelFor(value) ?? value, text));
|
|
580
|
+
if (twin !== undefined) {
|
|
581
|
+
refused.duplicate.push(text);
|
|
582
|
+
existing ??= twin;
|
|
583
|
+
continue;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
if (limit !== null && next.length >= limit) {
|
|
587
|
+
refused.limit.push(text);
|
|
588
|
+
continue;
|
|
589
|
+
}
|
|
590
|
+
next.push(text);
|
|
591
|
+
}
|
|
592
|
+
return { existing, next, refused };
|
|
593
|
+
}
|
|
594
|
+
report(refused, existing) {
|
|
595
|
+
for (const cause of ['duplicate', 'limit', 'invalid']) {
|
|
596
|
+
if (refused[cause].length === 0)
|
|
597
|
+
continue;
|
|
598
|
+
this.valueRefuse.emit({ values: refused[cause], cause });
|
|
599
|
+
}
|
|
600
|
+
/* A duplicate is answered by the chip that already holds it taking focus;
|
|
601
|
+
the other two have nothing to point at, so they are said. */
|
|
602
|
+
if (existing !== null)
|
|
603
|
+
this.focusChip(existing);
|
|
604
|
+
const limit = this.resolvedMax();
|
|
605
|
+
if (refused.limit.length > 0 && limit !== null)
|
|
606
|
+
this.announce(this.t('counter', { count: limit, max: limit }));
|
|
607
|
+
}
|
|
608
|
+
/** The one door into the set. */
|
|
609
|
+
admit(candidates, reason, source) {
|
|
610
|
+
const held = this.value();
|
|
611
|
+
const { existing, next, refused } = this.judge(candidates, held);
|
|
612
|
+
if (next.length > held.length)
|
|
613
|
+
this.commit(next, reason, source);
|
|
614
|
+
this.report(refused, existing);
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* One value edited in place, which is one transition and not a removal
|
|
618
|
+
* followed by an addition — and judged against the set *without* it, or every
|
|
619
|
+
* edit is a duplicate of itself.
|
|
620
|
+
*/
|
|
621
|
+
replace(target, text, source) {
|
|
622
|
+
const held = this.value();
|
|
623
|
+
const index = held.indexOf(target);
|
|
624
|
+
if (index === -1)
|
|
625
|
+
return;
|
|
626
|
+
if (text.trim() === '' || text === target)
|
|
627
|
+
return;
|
|
628
|
+
const without = held.filter((value) => value !== target);
|
|
629
|
+
const { existing, next, refused } = this.judge([text], without);
|
|
630
|
+
if (next.length > without.length) {
|
|
631
|
+
const taken = next[next.length - 1];
|
|
632
|
+
const ordered = [...without];
|
|
633
|
+
ordered.splice(index, 0, taken);
|
|
634
|
+
this.commit(ordered, 'submit', source);
|
|
635
|
+
}
|
|
636
|
+
this.report(refused, existing);
|
|
637
|
+
}
|
|
638
|
+
remove(target, source) {
|
|
639
|
+
const held = this.value();
|
|
640
|
+
const next = held.filter((value) => value !== target);
|
|
641
|
+
if (next.length === held.length)
|
|
642
|
+
return;
|
|
643
|
+
if (this.commit(next, 'remove', source)) {
|
|
644
|
+
this.announce(`${this.labelFor(target) ?? target}, ${next.length}`);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
toggle(target, reason, source) {
|
|
648
|
+
if (this.value().includes(target)) {
|
|
649
|
+
this.remove(target, source);
|
|
650
|
+
return;
|
|
651
|
+
}
|
|
652
|
+
this.admit([target], reason, source);
|
|
653
|
+
}
|
|
654
|
+
clear(source) {
|
|
655
|
+
this.commit([], 'clear', source);
|
|
656
|
+
this.setInputValue('', 'clear', source);
|
|
657
|
+
}
|
|
658
|
+
/** Reorder, and the only shape it has: one value moving to one index. */
|
|
659
|
+
move(from, to, source) {
|
|
660
|
+
const held = this.value();
|
|
661
|
+
if (from < 0 || from >= held.length)
|
|
662
|
+
return;
|
|
663
|
+
const target = Math.min(Math.max(to, 0), held.length - 1);
|
|
664
|
+
if (target === from)
|
|
665
|
+
return;
|
|
666
|
+
const next = [...held];
|
|
667
|
+
const [moved] = next.splice(from, 1);
|
|
668
|
+
next.splice(target, 0, moved);
|
|
669
|
+
if (!this.commit(next, 'keyboard', source))
|
|
670
|
+
return;
|
|
671
|
+
this.announce(`${this.labelFor(moved) ?? moved}, ${target + 1}, ${next.length}`);
|
|
672
|
+
/* The chip travelled with the reader's focus; the ring has to be told the
|
|
673
|
+
cells moved under it. After the render rather than after a microtask:
|
|
674
|
+
a browser runs microtasks first, and the chip has not moved yet. */
|
|
675
|
+
this.afterRender(() => {
|
|
676
|
+
this.ring?.refresh();
|
|
677
|
+
this.focusChip(moved);
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
chips() {
|
|
681
|
+
return [...this.host.nativeElement.querySelectorAll(CHIP_SELECTOR)];
|
|
682
|
+
}
|
|
683
|
+
/** Runs once the change in hand has reached the DOM. */
|
|
684
|
+
afterRender(callback) {
|
|
685
|
+
afterNextRender(callback, { injector: this.injector });
|
|
686
|
+
}
|
|
687
|
+
focusChip(value) {
|
|
688
|
+
const chip = this.chips().find((candidate) => candidate.dataset['value'] === value);
|
|
689
|
+
chip?.focus({ preventScroll: true });
|
|
690
|
+
}
|
|
691
|
+
splitText(text) {
|
|
692
|
+
const delimiters = this.resolvedDelimiters();
|
|
693
|
+
if (delimiters.length === 0)
|
|
694
|
+
return [text];
|
|
695
|
+
const pattern = new RegExp(`[${delimiters.map((mark) => mark.replace(/[.*+?^${}()|[\]\\-]/g, '\\$&')).join('')}]`);
|
|
696
|
+
return text.split(pattern);
|
|
697
|
+
}
|
|
698
|
+
/** The typed text, committed as one or several values. */
|
|
699
|
+
commitQuery(source) {
|
|
700
|
+
if (!this.resolvedCreatable())
|
|
701
|
+
return false;
|
|
702
|
+
const text = this.inputValue();
|
|
703
|
+
if (text.trim() === '')
|
|
704
|
+
return false;
|
|
705
|
+
this.admit(this.splitText(text), 'submit', source);
|
|
706
|
+
this.setInputValue('', 'submit', source);
|
|
707
|
+
return true;
|
|
708
|
+
}
|
|
709
|
+
onInput(event) {
|
|
710
|
+
const next = event.target.value;
|
|
711
|
+
this.setInputValue(next, 'keyboard', event);
|
|
712
|
+
if (this.resolvedOpenOn() !== 'manual' &&
|
|
713
|
+
!this.isOpen() &&
|
|
714
|
+
!this.resolvedReadOnly() &&
|
|
715
|
+
next !== '') {
|
|
716
|
+
this.entry = 'none';
|
|
717
|
+
this.setOpen(true, 'keyboard', event);
|
|
718
|
+
}
|
|
719
|
+
else {
|
|
720
|
+
this.recount();
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
onFocus() {
|
|
724
|
+
if (this.resolvedOpenOn() !== 'focus' || this.isOpen())
|
|
725
|
+
return;
|
|
726
|
+
if (this.resolvedDisabled() || this.resolvedReadOnly())
|
|
727
|
+
return;
|
|
728
|
+
this.entry = 'none';
|
|
729
|
+
this.setOpen(true, 'keyboard');
|
|
730
|
+
}
|
|
731
|
+
/* A press on the input opens a closed popup and never closes an open one,
|
|
732
|
+
because the same press places the caret. Under `focus` the press has
|
|
733
|
+
already opened it through focus, so this finds it open. */
|
|
734
|
+
onClick(event) {
|
|
735
|
+
if (event.defaultPrevented || this.resolvedOpenOn() === 'manual' || this.isOpen())
|
|
736
|
+
return;
|
|
737
|
+
if (this.resolvedDisabled() || this.resolvedReadOnly())
|
|
738
|
+
return;
|
|
739
|
+
this.entry = 'none';
|
|
740
|
+
this.setOpen(true, 'pointer', event);
|
|
741
|
+
}
|
|
742
|
+
onEditInput(event) {
|
|
743
|
+
this.editingText.set(event.target.value);
|
|
744
|
+
}
|
|
745
|
+
onEditKeyDown(value, event) {
|
|
746
|
+
if (event.key === 'Enter') {
|
|
747
|
+
event.preventDefault();
|
|
748
|
+
this.commitEdit(value, event);
|
|
749
|
+
return;
|
|
750
|
+
}
|
|
751
|
+
if (event.key === 'Escape') {
|
|
752
|
+
event.preventDefault();
|
|
753
|
+
this.editingValue.set(null);
|
|
754
|
+
this.afterRender(() => this.focusChip(value));
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
commitEdit(value, event) {
|
|
758
|
+
if (this.editingValue() !== value)
|
|
759
|
+
return;
|
|
760
|
+
const text = this.editingText();
|
|
761
|
+
this.editingValue.set(null);
|
|
762
|
+
this.replace(value, text, event);
|
|
763
|
+
this.afterRender(() => this.focusChip(text.trim() === '' ? value : text.trim()));
|
|
764
|
+
}
|
|
765
|
+
onPaste(event) {
|
|
766
|
+
if (!this.resolvedAddOnPaste() || !this.resolvedCreatable() || this.resolvedReadOnly())
|
|
767
|
+
return;
|
|
768
|
+
const text = event.clipboardData?.getData('text') ?? '';
|
|
769
|
+
const parts = this.splitText(text).filter((part) => part.trim() !== '');
|
|
770
|
+
if (parts.length < 2)
|
|
771
|
+
return;
|
|
772
|
+
event.preventDefault();
|
|
773
|
+
this.admit(parts, 'submit', event);
|
|
774
|
+
this.setInputValue('', 'submit', event);
|
|
775
|
+
}
|
|
776
|
+
onBlur(event) {
|
|
777
|
+
this.onTouched();
|
|
778
|
+
const next = event.relatedTarget;
|
|
779
|
+
if (next instanceof Node && this.surfaceNode?.contains(next) === true)
|
|
780
|
+
return;
|
|
781
|
+
if (next instanceof Node && this.host.nativeElement.contains(next))
|
|
782
|
+
return;
|
|
783
|
+
const began = pressOrigin(this.controlRef().nativeElement.ownerDocument);
|
|
784
|
+
if (began instanceof Node && this.surfaceNode?.contains(began) === true)
|
|
785
|
+
return;
|
|
786
|
+
if (this.resolvedCommitOnBlur())
|
|
787
|
+
this.commitQuery(event);
|
|
788
|
+
if (this.isOpen())
|
|
789
|
+
this.setOpen(false, 'blur', event);
|
|
790
|
+
}
|
|
791
|
+
onClear(event) {
|
|
792
|
+
this.clear(event);
|
|
793
|
+
this.focus();
|
|
794
|
+
}
|
|
795
|
+
onRemoveClick(value, event) {
|
|
796
|
+
event.stopPropagation();
|
|
797
|
+
this.remove(value, event);
|
|
798
|
+
}
|
|
799
|
+
onCountClick(event) {
|
|
800
|
+
this.setOpen(true, 'pointer', event);
|
|
801
|
+
}
|
|
802
|
+
onToggle(event) {
|
|
803
|
+
if (this.resolvedDisabled() || this.resolvedReadOnly())
|
|
804
|
+
return;
|
|
805
|
+
this.entry = 'none';
|
|
806
|
+
this.setOpen(!this.isOpen(), 'pointer', event);
|
|
807
|
+
this.focus();
|
|
808
|
+
}
|
|
809
|
+
onKeyDown(event) {
|
|
810
|
+
if (this.resolvedDisabled())
|
|
811
|
+
return;
|
|
812
|
+
const alt = event.altKey;
|
|
813
|
+
if (this.resolvedDelimiters().includes(event.key) && !alt) {
|
|
814
|
+
event.preventDefault();
|
|
815
|
+
this.commitQuery(event);
|
|
816
|
+
return;
|
|
817
|
+
}
|
|
818
|
+
switch (event.key) {
|
|
819
|
+
case 'ArrowDown':
|
|
820
|
+
if (this.resolvedReadOnly())
|
|
821
|
+
return;
|
|
822
|
+
event.preventDefault();
|
|
823
|
+
if (!this.isOpen())
|
|
824
|
+
this.openWith(alt ? 'none' : 'first', event);
|
|
825
|
+
else if (!alt)
|
|
826
|
+
this.moveHighlight('next', event);
|
|
827
|
+
return;
|
|
828
|
+
case 'ArrowUp':
|
|
829
|
+
if (this.resolvedReadOnly())
|
|
830
|
+
return;
|
|
831
|
+
event.preventDefault();
|
|
832
|
+
if (alt)
|
|
833
|
+
this.setOpen(false, 'keyboard', event);
|
|
834
|
+
else if (!this.isOpen())
|
|
835
|
+
this.openWith('last', event);
|
|
836
|
+
else
|
|
837
|
+
this.moveHighlight('previous', event);
|
|
838
|
+
return;
|
|
839
|
+
case 'PageDown':
|
|
840
|
+
if (!this.isOpen())
|
|
841
|
+
return;
|
|
842
|
+
event.preventDefault();
|
|
843
|
+
this.moveHighlight('pageDown', event);
|
|
844
|
+
return;
|
|
845
|
+
case 'PageUp':
|
|
846
|
+
if (!this.isOpen())
|
|
847
|
+
return;
|
|
848
|
+
event.preventDefault();
|
|
849
|
+
this.moveHighlight('pageUp', event);
|
|
850
|
+
return;
|
|
851
|
+
case 'Enter': {
|
|
852
|
+
const held = this.highlightedValue();
|
|
853
|
+
if (held !== null) {
|
|
854
|
+
event.preventDefault();
|
|
855
|
+
if (held === this.offering())
|
|
856
|
+
this.commitQuery(event);
|
|
857
|
+
else {
|
|
858
|
+
this.toggle(held, 'select', event);
|
|
859
|
+
this.setInputValue('', 'select', event);
|
|
860
|
+
if (this.resolvedCloseOnSelect())
|
|
861
|
+
this.setOpen(false, 'select', event);
|
|
862
|
+
}
|
|
863
|
+
return;
|
|
864
|
+
}
|
|
865
|
+
if (this.commitQuery(event))
|
|
866
|
+
event.preventDefault();
|
|
867
|
+
return;
|
|
868
|
+
}
|
|
869
|
+
case 'Escape':
|
|
870
|
+
if (this.isOpen()) {
|
|
871
|
+
event.preventDefault();
|
|
872
|
+
this.setOpen(false, 'escape', event);
|
|
873
|
+
return;
|
|
874
|
+
}
|
|
875
|
+
if (this.inputValue() === '')
|
|
876
|
+
return;
|
|
877
|
+
event.preventDefault();
|
|
878
|
+
this.setInputValue('', 'clear', event);
|
|
879
|
+
return;
|
|
880
|
+
case 'Backspace': {
|
|
881
|
+
/* §6's rule: from an empty field the first press moves focus to the
|
|
882
|
+
last chip and removes nothing, and the second — which lands on the
|
|
883
|
+
chip — removes it. */
|
|
884
|
+
if (this.inputValue() !== '')
|
|
885
|
+
return;
|
|
886
|
+
const element = event.target;
|
|
887
|
+
if (element.selectionStart !== 0)
|
|
888
|
+
return;
|
|
889
|
+
if (this.resolvedReadOnly() || this.value().length === 0)
|
|
890
|
+
return;
|
|
891
|
+
const last = this.chips().at(-1);
|
|
892
|
+
if (last === undefined)
|
|
893
|
+
return;
|
|
894
|
+
event.preventDefault();
|
|
895
|
+
last.focus({ preventScroll: true });
|
|
896
|
+
return;
|
|
897
|
+
}
|
|
898
|
+
case 'Tab':
|
|
899
|
+
if (this.isOpen())
|
|
900
|
+
this.setOpen(false, 'dismiss', event);
|
|
901
|
+
return;
|
|
902
|
+
default:
|
|
903
|
+
/* Every other key is the browser's, which the pattern asks for by name. */
|
|
904
|
+
break;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
onChipKeyDown(value, index, event) {
|
|
908
|
+
if (event.defaultPrevented)
|
|
909
|
+
return;
|
|
910
|
+
switch (event.key) {
|
|
911
|
+
case 'Delete':
|
|
912
|
+
case 'Backspace':
|
|
913
|
+
if (this.frozen())
|
|
914
|
+
return;
|
|
915
|
+
event.preventDefault();
|
|
916
|
+
this.remove(value, event);
|
|
917
|
+
return;
|
|
918
|
+
case 'Enter':
|
|
919
|
+
if (this.frozen() || !this.resolvedEditable())
|
|
920
|
+
return;
|
|
921
|
+
event.preventDefault();
|
|
922
|
+
this.editingText.set(this.labelFor(value) ?? value);
|
|
923
|
+
this.editingValue.set(value);
|
|
924
|
+
this.afterRender(() => {
|
|
925
|
+
const field = this.host.nativeElement.querySelector(`[data-value="${CSS.escape(value)}"] input`);
|
|
926
|
+
field?.focus({ preventScroll: true });
|
|
927
|
+
});
|
|
928
|
+
return;
|
|
929
|
+
case 'Escape':
|
|
930
|
+
event.preventDefault();
|
|
931
|
+
this.focus();
|
|
932
|
+
return;
|
|
933
|
+
default:
|
|
934
|
+
break;
|
|
935
|
+
}
|
|
936
|
+
/* Reorder. `Alt` and an arrow, following the writing direction. */
|
|
937
|
+
if (this.resolvedReorderable() && event.altKey && !this.frozen()) {
|
|
938
|
+
const rtl = this.host.nativeElement.ownerDocument.defaultView?.getComputedStyle(this.host.nativeElement)
|
|
939
|
+
.direction === 'rtl';
|
|
940
|
+
const forward = rtl ? 'ArrowLeft' : 'ArrowRight';
|
|
941
|
+
const back = rtl ? 'ArrowRight' : 'ArrowLeft';
|
|
942
|
+
if (event.key === forward) {
|
|
943
|
+
event.preventDefault();
|
|
944
|
+
this.move(index, index + 1, event);
|
|
945
|
+
return;
|
|
946
|
+
}
|
|
947
|
+
if (event.key === back) {
|
|
948
|
+
event.preventDefault();
|
|
949
|
+
this.move(index, index - 1, event);
|
|
950
|
+
return;
|
|
951
|
+
}
|
|
952
|
+
if (event.key === 'Home') {
|
|
953
|
+
event.preventDefault();
|
|
954
|
+
this.move(index, 0, event);
|
|
955
|
+
return;
|
|
956
|
+
}
|
|
957
|
+
if (event.key === 'End') {
|
|
958
|
+
event.preventDefault();
|
|
959
|
+
this.move(index, this.value().length - 1, event);
|
|
960
|
+
return;
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
/* The grid pattern's alphanumeric branch: a printable character on a cell
|
|
964
|
+
holding editable content takes focus into its field and types there. */
|
|
965
|
+
if (event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey) {
|
|
966
|
+
this.focus();
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
onOptionPointerDown(event) {
|
|
970
|
+
if (event.defaultPrevented)
|
|
971
|
+
return;
|
|
972
|
+
event.preventDefault();
|
|
973
|
+
}
|
|
974
|
+
onCreateClick(query, event) {
|
|
975
|
+
this.admit(this.splitText(query), 'submit', event);
|
|
976
|
+
this.setInputValue('', 'submit', event);
|
|
977
|
+
this.focus();
|
|
978
|
+
}
|
|
979
|
+
openWith(entry, event) {
|
|
980
|
+
this.entry = entry;
|
|
981
|
+
this.setOpen(true, 'keyboard', event);
|
|
982
|
+
}
|
|
983
|
+
moveHighlight(intent, event) {
|
|
984
|
+
const list = this.options();
|
|
985
|
+
if (list.length === 0)
|
|
986
|
+
return;
|
|
987
|
+
const held = this.highlightedValue();
|
|
988
|
+
const index = moveIndex({
|
|
989
|
+
enabled: list.map((option) => option.dataset['disabled'] === undefined &&
|
|
990
|
+
option.getAttribute('aria-disabled') !== 'true'),
|
|
991
|
+
from: held === null ? -1 : list.findIndex((option) => option.dataset['value'] === held),
|
|
992
|
+
intent,
|
|
993
|
+
loop: this.resolvedLoop(),
|
|
994
|
+
});
|
|
995
|
+
if (index !== -1)
|
|
996
|
+
this.setHighlighted(list[index]?.dataset['value'] ?? null, 'keyboard', event);
|
|
997
|
+
}
|
|
998
|
+
dropStaleHighlight() {
|
|
999
|
+
const held = this.highlightedValue();
|
|
1000
|
+
if (held === null || held === this.offering())
|
|
1001
|
+
return;
|
|
1002
|
+
const kept = this.options().some((option) => option.dataset['value'] === held);
|
|
1003
|
+
if (!kept)
|
|
1004
|
+
this.setHighlighted(null, 'keyboard');
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* The ring over the cells, the removal rule, the collapse and the width gate.
|
|
1008
|
+
* All four belong to the row rather than to the layer, so they are bound once
|
|
1009
|
+
* and outlive every open.
|
|
1010
|
+
*/
|
|
1011
|
+
bindRow() {
|
|
1012
|
+
const row = this.rowRef().nativeElement;
|
|
1013
|
+
this.ring = createArrowNavigation(row, {
|
|
1014
|
+
itemSelector: `${CHIP_SELECTOR}, [data-part='field'] > [data-part='input']`,
|
|
1015
|
+
loop: false,
|
|
1016
|
+
/* The field keeps the caret keys while there is anything to move the
|
|
1017
|
+
caret through, and gives them up when the query is empty. */
|
|
1018
|
+
ownedKeys: (item) => item instanceof HTMLInputElement && item.value !== ''
|
|
1019
|
+
? ['ArrowLeft', 'ArrowRight', 'Home', 'End']
|
|
1020
|
+
: [],
|
|
1021
|
+
});
|
|
1022
|
+
this.removal = createRemovalFocus(row, {
|
|
1023
|
+
fallback: () => this.controlRef().nativeElement,
|
|
1024
|
+
itemSelector: CHIP_SELECTOR,
|
|
1025
|
+
});
|
|
1026
|
+
this.gate = createWidthGate(this.host.nativeElement, {
|
|
1027
|
+
at: 120,
|
|
1028
|
+
onChange: (narrow) => this.narrow.set(narrow),
|
|
1029
|
+
});
|
|
1030
|
+
this.collapse = createCollapse(row, {
|
|
1031
|
+
collapsible: () => this.resolvedOverflow() === 'collapse',
|
|
1032
|
+
onChange: (units) => this.hiddenCount.set(Math.max(units.length, 1)),
|
|
1033
|
+
trigger: () => this.countRef()?.nativeElement ?? null,
|
|
1034
|
+
/* The counting chip is the trigger, never a unit: measured as one, it
|
|
1035
|
+
counted itself and stood one too high, and was collapsed into itself. */
|
|
1036
|
+
units: () => [...row.querySelectorAll(CHIP_SELECTOR)].filter((unit) => !unit.hasAttribute('data-count')),
|
|
1037
|
+
});
|
|
1038
|
+
}
|
|
1039
|
+
show() {
|
|
1040
|
+
this.build();
|
|
1041
|
+
this.position();
|
|
1042
|
+
this.bind();
|
|
1043
|
+
this.enter();
|
|
1044
|
+
}
|
|
1045
|
+
build() {
|
|
1046
|
+
if (this.view !== null) {
|
|
1047
|
+
this.presence?.sync(this.isOpen());
|
|
1048
|
+
this.view.detectChanges();
|
|
1049
|
+
return;
|
|
1050
|
+
}
|
|
1051
|
+
this.portalRoot = createPortalRoot({
|
|
1052
|
+
origin: this.host.nativeElement,
|
|
1053
|
+
disabled: this.portal() === false,
|
|
1054
|
+
});
|
|
1055
|
+
this.view = this.viewContainer.createEmbeddedView(this.template());
|
|
1056
|
+
this.view.detectChanges();
|
|
1057
|
+
this.layerNode = this.view.rootNodes.find((node) => node instanceof HTMLElement);
|
|
1058
|
+
this.surfaceNode = this.layerNode?.querySelector("[data-part='content']") ?? null;
|
|
1059
|
+
if (this.layerNode === null)
|
|
1060
|
+
return;
|
|
1061
|
+
this.portalRoot.container?.append(this.layerNode);
|
|
1062
|
+
this.presence = createPresence({ present: this.isOpen() });
|
|
1063
|
+
this.presence.setNode(this.layerNode);
|
|
1064
|
+
}
|
|
1065
|
+
position() {
|
|
1066
|
+
if (this.layerNode === null)
|
|
1067
|
+
return;
|
|
1068
|
+
this.positioner?.destroy();
|
|
1069
|
+
this.positioner = createPositioner(this.host.nativeElement, this.layerNode, {
|
|
1070
|
+
align: this.resolvedAlign(),
|
|
1071
|
+
alignOffset: this.alignOffset() ?? this.defaults.alignOffset,
|
|
1072
|
+
boundaryPadding: this.collisionPadding() ?? this.defaults.collisionPadding,
|
|
1073
|
+
flip: this.flip() ?? this.defaults.flip,
|
|
1074
|
+
hideWhenDetached: this.hideWhenDetached() ?? this.defaults.hideWhenDetached,
|
|
1075
|
+
matchWidth: this.resolvedWidth() === 'anchor',
|
|
1076
|
+
shift: this.shift() ?? this.defaults.shift,
|
|
1077
|
+
side: this.resolvedSide(),
|
|
1078
|
+
sideOffset: this.sideOffset() ?? this.defaults.sideOffset,
|
|
1079
|
+
strategy: this.strategy() ?? this.defaults.strategy,
|
|
1080
|
+
});
|
|
1081
|
+
/* The height that bounds the list arrives with the position, after the
|
|
1082
|
+
highlight has landed, so the highlighted row is revealed again. */
|
|
1083
|
+
void this.positioner.update().then(() => {
|
|
1084
|
+
const held = this.highlightedValue();
|
|
1085
|
+
if (held !== null)
|
|
1086
|
+
this.scrollToKey(held);
|
|
1087
|
+
});
|
|
1088
|
+
}
|
|
1089
|
+
bind() {
|
|
1090
|
+
if (this.layerNode === null)
|
|
1091
|
+
return;
|
|
1092
|
+
this.layer = createDismissableLayer(this.layerNode, {
|
|
1093
|
+
branches: [this.host.nativeElement],
|
|
1094
|
+
escape: this.closeOnEscape() ?? this.defaults.closeOnEscape,
|
|
1095
|
+
focusOutside: false,
|
|
1096
|
+
modal: false,
|
|
1097
|
+
outsidePress: this.closeOnOutsidePress() ?? this.defaults.closeOnOutsidePress,
|
|
1098
|
+
scrollLock: false,
|
|
1099
|
+
onDismiss: (request) => {
|
|
1100
|
+
this.setOpen(false, request.reason === 'escape' ? 'escape' : 'outsidePress', request.source);
|
|
1101
|
+
},
|
|
1102
|
+
});
|
|
1103
|
+
this.observeEnd();
|
|
1104
|
+
}
|
|
1105
|
+
observeEnd() {
|
|
1106
|
+
this.observer?.disconnect();
|
|
1107
|
+
this.observer = null;
|
|
1108
|
+
const root = this.surfaceNode;
|
|
1109
|
+
if (root === null || typeof IntersectionObserver !== 'function')
|
|
1110
|
+
return;
|
|
1111
|
+
const last = this.options().at(-1);
|
|
1112
|
+
if (last === undefined)
|
|
1113
|
+
return;
|
|
1114
|
+
this.observer = new IntersectionObserver((entries) => {
|
|
1115
|
+
if (entries.some((entry) => entry.isIntersecting))
|
|
1116
|
+
this.loadMore.emit();
|
|
1117
|
+
}, { root });
|
|
1118
|
+
this.observer.observe(last);
|
|
1119
|
+
}
|
|
1120
|
+
enter() {
|
|
1121
|
+
this.recount();
|
|
1122
|
+
if (this.entry === 'none')
|
|
1123
|
+
return;
|
|
1124
|
+
this.moveHighlight(this.entry);
|
|
1125
|
+
this.entry = 'none';
|
|
1126
|
+
}
|
|
1127
|
+
hide() {
|
|
1128
|
+
this.unbind();
|
|
1129
|
+
if (this.resolvedMount() === 'active')
|
|
1130
|
+
this.teardown();
|
|
1131
|
+
}
|
|
1132
|
+
unbind() {
|
|
1133
|
+
this.layer?.destroy();
|
|
1134
|
+
this.positioner?.destroy();
|
|
1135
|
+
this.observer?.disconnect();
|
|
1136
|
+
this.layer = null;
|
|
1137
|
+
this.positioner = null;
|
|
1138
|
+
this.observer = null;
|
|
1139
|
+
}
|
|
1140
|
+
teardown() {
|
|
1141
|
+
this.unbind();
|
|
1142
|
+
this.presence?.destroy();
|
|
1143
|
+
this.portalRoot?.release();
|
|
1144
|
+
this.layerNode?.remove();
|
|
1145
|
+
this.view?.destroy();
|
|
1146
|
+
this.presence = null;
|
|
1147
|
+
this.portalRoot = null;
|
|
1148
|
+
this.layerNode = null;
|
|
1149
|
+
this.surfaceNode = null;
|
|
1150
|
+
this.view = null;
|
|
1151
|
+
}
|
|
1152
|
+
writeValue(value) {
|
|
1153
|
+
this.value.set(value === null ? [] : [...value]);
|
|
1154
|
+
}
|
|
1155
|
+
registerOnChange(fn) {
|
|
1156
|
+
this.onChange = fn;
|
|
1157
|
+
}
|
|
1158
|
+
registerOnTouched(fn) {
|
|
1159
|
+
this.onTouched = fn;
|
|
1160
|
+
}
|
|
1161
|
+
setDisabledState(isDisabled) {
|
|
1162
|
+
this.disabledByForm.set(isDisabled);
|
|
1163
|
+
}
|
|
1164
|
+
/**
|
|
1165
|
+
* Three validities the family owns, and none of them is one a native input
|
|
1166
|
+
* can describe: a required control holding nothing, a set over its limit, and
|
|
1167
|
+
* a set holding a value twice where duplicates are refused. The second is the
|
|
1168
|
+
* one Zag has the mechanism for and no validator to report it with.
|
|
1169
|
+
*/
|
|
1170
|
+
validate() {
|
|
1171
|
+
const held = this.value();
|
|
1172
|
+
if (this.resolvedRequired() && held.length === 0)
|
|
1173
|
+
return { required: true };
|
|
1174
|
+
const limit = this.resolvedMax();
|
|
1175
|
+
if (limit !== null && held.length > limit) {
|
|
1176
|
+
return { tooMany: { max: limit, actual: held.length } };
|
|
1177
|
+
}
|
|
1178
|
+
if (!this.resolvedAllowDuplicates() && new Set(held).size !== held.length) {
|
|
1179
|
+
return { duplicate: true };
|
|
1180
|
+
}
|
|
1181
|
+
return null;
|
|
1182
|
+
}
|
|
1183
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMultiSelect, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1184
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlMultiSelect, isStandalone: true, selector: "sl-multi-select", inputs: { 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 }, 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 }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, validateValue: { classPropertyName: "validateValue", publicName: "validateValue", isSignal: true, isRequired: false, transformFunction: null }, delimiters: { classPropertyName: "delimiters", publicName: "delimiters", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", 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 }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, mount: { classPropertyName: "mount", publicName: "mount", isSignal: true, isRequired: false, transformFunction: null }, strategy: { classPropertyName: "strategy", publicName: "strategy", isSignal: true, isRequired: false, transformFunction: null }, openOn: { classPropertyName: "openOn", publicName: "openOn", isSignal: true, isRequired: false, transformFunction: null }, overflow: { classPropertyName: "overflow", publicName: "overflow", isSignal: true, isRequired: false, transformFunction: null }, chosenOptions: { classPropertyName: "chosenOptions", publicName: "chosenOptions", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, sideOffset: { classPropertyName: "sideOffset", publicName: "sideOffset", isSignal: true, isRequired: false, transformFunction: null }, alignOffset: { classPropertyName: "alignOffset", publicName: "alignOffset", isSignal: true, isRequired: false, transformFunction: null }, collisionPadding: { classPropertyName: "collisionPadding", publicName: "collisionPadding", isSignal: true, isRequired: false, transformFunction: null }, addOnPaste: { classPropertyName: "addOnPaste", publicName: "addOnPaste", isSignal: true, isRequired: false, transformFunction: null }, allowDuplicates: { classPropertyName: "allowDuplicates", publicName: "allowDuplicates", isSignal: true, isRequired: false, transformFunction: null }, commitOnBlur: { classPropertyName: "commitOnBlur", publicName: "commitOnBlur", isSignal: true, isRequired: false, transformFunction: null }, creatable: { classPropertyName: "creatable", publicName: "creatable", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, reorderable: { classPropertyName: "reorderable", publicName: "reorderable", isSignal: true, isRequired: false, transformFunction: null }, highlightMatch: { classPropertyName: "highlightMatch", publicName: "highlightMatch", 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 }, closeOnSelect: { classPropertyName: "closeOnSelect", publicName: "closeOnSelect", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, closeOnOutsidePress: { classPropertyName: "closeOnOutsidePress", publicName: "closeOnOutsidePress", isSignal: true, isRequired: false, transformFunction: null }, flip: { classPropertyName: "flip", publicName: "flip", isSignal: true, isRequired: false, transformFunction: null }, shift: { classPropertyName: "shift", publicName: "shift", isSignal: true, isRequired: false, transformFunction: null }, hideWhenDetached: { classPropertyName: "hideWhenDetached", publicName: "hideWhenDetached", 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 }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueChangeRequest: "valueChangeRequest", inputValue: "inputValueChange", inputValueChangeRequest: "inputValueChangeRequest", open: "openChange", openChangeRequest: "openChangeRequest", highlightedValue: "highlightedValueChange", highlightedValueChangeRequest: "highlightedValueChangeRequest", valueRefuse: "valueRefuse", loadMore: "loadMore" }, host: { attributes: { "data-ui": "multi-select", "data-part": "root" }, properties: { "attr.aria-label": "null", "attr.data-size": "resolvedSize()", "attr.data-variant": "resolvedVariant()", "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": "loading() ? '' : null", "attr.data-complete": "full() ? '' : null", "attr.data-narrow": "narrow() ? '' : null" } }, providers: [
|
|
1185
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlMultiSelect), multi: true },
|
|
1186
|
+
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => SlMultiSelect), multi: true },
|
|
1187
|
+
], viewQueries: [{ propertyName: "template", first: true, predicate: ["layer"], descendants: true, isSignal: true }, { propertyName: "controlRef", first: true, predicate: ["control"], descendants: true, isSignal: true }, { propertyName: "rowRef", first: true, predicate: ["row"], descendants: true, isSignal: true }, { propertyName: "countRef", first: true, predicate: ["count"], descendants: true, isSignal: true }], exportAs: ["slMultiSelect"], ngImport: i0, template: `
|
|
1188
|
+
<div data-part="control" role="grid" [attr.aria-label]="gridLabel()">
|
|
1189
|
+
<div data-part="chips" role="row" #row>
|
|
1190
|
+
@for (chip of value(); track chip; let index = $index) {
|
|
1191
|
+
@if (editingValue() === chip) {
|
|
1192
|
+
<span
|
|
1193
|
+
role="gridcell"
|
|
1194
|
+
data-ui="tag"
|
|
1195
|
+
data-part="root"
|
|
1196
|
+
data-size="sm"
|
|
1197
|
+
data-variant="soft"
|
|
1198
|
+
[attr.data-value]="chip"
|
|
1199
|
+
>
|
|
1200
|
+
<span data-part="body">
|
|
1201
|
+
<input
|
|
1202
|
+
type="text"
|
|
1203
|
+
[attr.aria-label]="labelFor(chip) ?? chip"
|
|
1204
|
+
[value]="editingText()"
|
|
1205
|
+
(input)="onEditInput($event)"
|
|
1206
|
+
(blur)="commitEdit(chip, $event)"
|
|
1207
|
+
(keydown)="onEditKeyDown(chip, $event)"
|
|
1208
|
+
/>
|
|
1209
|
+
</span>
|
|
1210
|
+
</span>
|
|
1211
|
+
} @else {
|
|
1212
|
+
<span
|
|
1213
|
+
role="gridcell"
|
|
1214
|
+
tabindex="-1"
|
|
1215
|
+
data-ui="tag"
|
|
1216
|
+
data-part="root"
|
|
1217
|
+
data-size="sm"
|
|
1218
|
+
data-variant="soft"
|
|
1219
|
+
[attr.data-value]="chip"
|
|
1220
|
+
[attr.data-disabled]="frozen() ? '' : null"
|
|
1221
|
+
[attr.aria-label]="chipLabel(chip, index)"
|
|
1222
|
+
(keydown)="onChipKeyDown(chip, index, $event)"
|
|
1223
|
+
>
|
|
1224
|
+
<span data-part="body">
|
|
1225
|
+
<span data-part="label">{{ labelFor(chip) ?? chip }}</span>
|
|
1226
|
+
</span>
|
|
1227
|
+
@if (!frozen()) {
|
|
1228
|
+
<button
|
|
1229
|
+
type="button"
|
|
1230
|
+
tabindex="-1"
|
|
1231
|
+
data-part="remove"
|
|
1232
|
+
[attr.aria-label]="removeLabelFor(chip)"
|
|
1233
|
+
(click)="onRemoveClick(chip, $event)"
|
|
1234
|
+
>
|
|
1235
|
+
<span slIcon><svg slGlyph name="x"></svg></span>
|
|
1236
|
+
</button>
|
|
1237
|
+
}
|
|
1238
|
+
</span>
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
@if (resolvedOverflow() === 'collapse') {
|
|
1242
|
+
<span
|
|
1243
|
+
#count
|
|
1244
|
+
hidden
|
|
1245
|
+
role="gridcell"
|
|
1246
|
+
tabindex="-1"
|
|
1247
|
+
data-count
|
|
1248
|
+
data-ui="tag"
|
|
1249
|
+
data-part="root"
|
|
1250
|
+
data-size="sm"
|
|
1251
|
+
data-variant="outline"
|
|
1252
|
+
(click)="onCountClick($event)"
|
|
1253
|
+
>
|
|
1254
|
+
<span data-part="body">
|
|
1255
|
+
<span data-part="label">+{{ hiddenCount() }}</span>
|
|
1256
|
+
</span>
|
|
1257
|
+
</span>
|
|
1258
|
+
}
|
|
1259
|
+
<span data-part="field" role="gridcell">
|
|
1260
|
+
<input
|
|
1261
|
+
#control
|
|
1262
|
+
type="text"
|
|
1263
|
+
role="combobox"
|
|
1264
|
+
data-part="input"
|
|
1265
|
+
aria-autocomplete="list"
|
|
1266
|
+
[id]="controlId()"
|
|
1267
|
+
[value]="inputValue()"
|
|
1268
|
+
[disabled]="resolvedDisabled()"
|
|
1269
|
+
[readOnly]="resolvedReadOnly()"
|
|
1270
|
+
[required]="resolvedRequired() && value().length === 0"
|
|
1271
|
+
[placeholder]="value().length === 0 ? placeholder() : ''"
|
|
1272
|
+
[attr.aria-expanded]="isOpen()"
|
|
1273
|
+
[attr.aria-controls]="isOpen() ? contentId : null"
|
|
1274
|
+
[attr.aria-activedescendant]="activeDescendant()"
|
|
1275
|
+
[attr.aria-label]="ariaLabel() ?? null"
|
|
1276
|
+
[attr.aria-describedby]="describedBy()"
|
|
1277
|
+
[attr.aria-readonly]="resolvedReadOnly() ? true : null"
|
|
1278
|
+
[attr.aria-invalid]="resolvedInvalid() ? true : null"
|
|
1279
|
+
(input)="onInput($event)"
|
|
1280
|
+
(focus)="onFocus()"
|
|
1281
|
+
(click)="onClick($event)"
|
|
1282
|
+
(keydown)="onKeyDown($event)"
|
|
1283
|
+
(paste)="onPaste($event)"
|
|
1284
|
+
(blur)="onBlur($event)"
|
|
1285
|
+
/>
|
|
1286
|
+
</span>
|
|
1287
|
+
</div>
|
|
1288
|
+
</div>
|
|
1289
|
+
|
|
1290
|
+
@if (counterText(); as counter) {
|
|
1291
|
+
<span data-part="counter" aria-hidden="true">{{ counter }}</span>
|
|
1292
|
+
}
|
|
1293
|
+
@if (showClear()) {
|
|
1294
|
+
<button
|
|
1295
|
+
type="button"
|
|
1296
|
+
data-part="clear"
|
|
1297
|
+
[attr.aria-label]="t('clear')"
|
|
1298
|
+
(click)="onClear($event)"
|
|
1299
|
+
>
|
|
1300
|
+
<span slIcon><svg slGlyph name="x"></svg></span>
|
|
1301
|
+
</button>
|
|
1302
|
+
}
|
|
1303
|
+
@if (loading()) {
|
|
1304
|
+
<span data-part="busy" data-ui="spinner" aria-hidden="true"></span>
|
|
1305
|
+
} @else {
|
|
1306
|
+
<button
|
|
1307
|
+
type="button"
|
|
1308
|
+
tabindex="-1"
|
|
1309
|
+
data-part="trigger"
|
|
1310
|
+
[disabled]="resolvedDisabled()"
|
|
1311
|
+
[attr.aria-label]="t('trigger')"
|
|
1312
|
+
(click)="onToggle($event)"
|
|
1313
|
+
>
|
|
1314
|
+
<span data-part="arrow"
|
|
1315
|
+
><span slIcon><svg slGlyph name="chevron-down"></svg></span
|
|
1316
|
+
></span>
|
|
1317
|
+
</button>
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
<!--
|
|
1321
|
+
One hidden input per value, all under the same name: that is how a plain
|
|
1322
|
+
FormData receives several values under one key and how a native reset()
|
|
1323
|
+
restores them.
|
|
1324
|
+
-->
|
|
1325
|
+
@if (name(); as submissionName) {
|
|
1326
|
+
@for (held of value(); track held) {
|
|
1327
|
+
<input
|
|
1328
|
+
type="text"
|
|
1329
|
+
aria-hidden="true"
|
|
1330
|
+
tabindex="-1"
|
|
1331
|
+
readonly
|
|
1332
|
+
[name]="submissionName"
|
|
1333
|
+
[attr.form]="form() ?? null"
|
|
1334
|
+
[value]="held"
|
|
1335
|
+
style="
|
|
1336
|
+
position: absolute;
|
|
1337
|
+
inline-size: 1px;
|
|
1338
|
+
block-size: 1px;
|
|
1339
|
+
padding: 0;
|
|
1340
|
+
border: 0;
|
|
1341
|
+
overflow: hidden;
|
|
1342
|
+
clip-path: inset(50%);
|
|
1343
|
+
white-space: nowrap;
|
|
1344
|
+
"
|
|
1345
|
+
/>
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
<ng-template #layer>
|
|
1350
|
+
<div
|
|
1351
|
+
data-ui="multi-select"
|
|
1352
|
+
data-part="positioner"
|
|
1353
|
+
[attr.data-align]="resolvedAlign()"
|
|
1354
|
+
[attr.data-size]="resolvedSize()"
|
|
1355
|
+
[attr.data-width]="resolvedWidth()"
|
|
1356
|
+
[attr.data-open]="isOpen() ? '' : null"
|
|
1357
|
+
[attr.inert]="isOpen() ? null : ''"
|
|
1358
|
+
>
|
|
1359
|
+
<div
|
|
1360
|
+
data-part="content"
|
|
1361
|
+
role="listbox"
|
|
1362
|
+
aria-multiselectable="true"
|
|
1363
|
+
[id]="contentId"
|
|
1364
|
+
[attr.aria-label]="ariaLabel() ?? null"
|
|
1365
|
+
[attr.aria-busy]="loading() ? true : null"
|
|
1366
|
+
[attr.data-loading]="loading() ? '' : null"
|
|
1367
|
+
>
|
|
1368
|
+
@if (value().length > 0) {
|
|
1369
|
+
<!--
|
|
1370
|
+
Every chosen value, whatever the row in the control did with them.
|
|
1371
|
+
Its chips carry no remove control: focus never enters this layer,
|
|
1372
|
+
so one would be reachable by pointer and by nothing else.
|
|
1373
|
+
-->
|
|
1374
|
+
<div data-part="chosen">
|
|
1375
|
+
@for (held of value(); track held) {
|
|
1376
|
+
<span data-ui="tag" data-part="root" data-size="sm" data-variant="soft">
|
|
1377
|
+
<span data-part="body">
|
|
1378
|
+
<span data-part="label">{{ labelFor(held) ?? held }}</span>
|
|
1379
|
+
</span>
|
|
1380
|
+
</span>
|
|
1381
|
+
}
|
|
1382
|
+
</div>
|
|
1383
|
+
}
|
|
1384
|
+
<ng-content />
|
|
1385
|
+
@if (!loading() && offering(); as query) {
|
|
1386
|
+
<div
|
|
1387
|
+
role="option"
|
|
1388
|
+
data-part="item"
|
|
1389
|
+
data-create
|
|
1390
|
+
aria-selected="false"
|
|
1391
|
+
[attr.data-value]="query"
|
|
1392
|
+
[id]="optionId(query)"
|
|
1393
|
+
[attr.data-current]="highlightedValue() === query ? '' : null"
|
|
1394
|
+
(click)="onCreateClick(query, $event)"
|
|
1395
|
+
(pointerdown)="onOptionPointerDown($event)"
|
|
1396
|
+
(pointerenter)="setHighlighted(query, 'pointer', $event)"
|
|
1397
|
+
>
|
|
1398
|
+
<span data-part="icon"></span>
|
|
1399
|
+
<span data-part="label">{{ t('create', { query: query }) }}</span>
|
|
1400
|
+
<span data-part="indicator"
|
|
1401
|
+
><span slIcon><svg slGlyph name="plus"></svg></span
|
|
1402
|
+
></span>
|
|
1403
|
+
</div>
|
|
1404
|
+
} @else if (!loading() && optionCount() === 0) {
|
|
1405
|
+
<div data-part="empty">{{ t('empty') }}</div>
|
|
1406
|
+
}
|
|
1407
|
+
@if (loading()) {
|
|
1408
|
+
<div data-part="placeholder" aria-hidden="true">
|
|
1409
|
+
@for (row of [0, 1, 2]; track row) {
|
|
1410
|
+
<div>
|
|
1411
|
+
<span data-ui="skeleton" data-part="root" data-shape="text" data-loading></span>
|
|
1412
|
+
</div>
|
|
1413
|
+
}
|
|
1414
|
+
</div>
|
|
1415
|
+
}
|
|
1416
|
+
<div
|
|
1417
|
+
data-part="status"
|
|
1418
|
+
role="status"
|
|
1419
|
+
aria-live="polite"
|
|
1420
|
+
[attr.data-loading]="loading() ? '' : null"
|
|
1421
|
+
>
|
|
1422
|
+
{{ statusMessage() }}
|
|
1423
|
+
</div>
|
|
1424
|
+
</div>
|
|
1425
|
+
</div>
|
|
1426
|
+
</ng-template>
|
|
1427
|
+
`, isInline: true, styles: ["@layer slotted.components{[data-ui=multi-select][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);--_gap: var(--slotted-control-gap-md, 8px);--_icon-floor: var(--slotted-multi-select-icon-size-min, 14px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-md, 16px));--_action-size: var( --slotted-multi-select-action-size, min(calc(var(--_icon-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) );--_row-air: var(--slotted-space-1, .125rem);--_inner-size: var(--slotted-control-inner-size-md, 24px);--_row-size: var(--_inner-size);--_row-gap: var(--slotted-space-2, .25rem);align-items:center;background-color:var(--slotted-multi-select-background, var(--slotted-control-surface, Field));border:var(--slotted-control-border-width, 1px) solid var(--slotted-multi-select-border-color, var(--slotted-control-border-color, ButtonBorder));border-radius:var(--slotted-multi-select-radius, var(--slotted-control-radius, 4px));box-shadow:var(--slotted-multi-select-shadow, var(--slotted-control-shadow, none));box-sizing:border-box;color:var(--slotted-multi-select-color, var(--slotted-text, CanvasText));display:flex;font-family:var(--slotted-control-font-family, system-ui, sans-serif);font-size:var(--_font-size);gap:var(--slotted-space-1, .125rem);inline-size:100%;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=multi-select][data-part=root]:not([data-full-width]){inline-size:auto}[data-ui=multi-select]>[data-part=control]{display:flex;flex:1 1 auto;min-inline-size:0;align-self:stretch}[data-ui=multi-select]>[data-part=control]+*{margin-inline-start:var(--_row-gap)}[data-ui=multi-select] [data-part=chips]{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;min-inline-size:0;padding-block:var(--_row-air);padding-inline:var(--_row-air);margin-inline:calc(-1 * var(--_row-air));row-gap:var(--_row-gap);max-block-size:calc(3 * var(--_row-size) + 2 * var(--_row-gap) + 2 * var(--_row-air));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}[data-ui=multi-select] [data-part=chips]::-webkit-scrollbar{display:none}[data-ui=multi-select][data-overflow=collapse] [data-part=chips]{flex-wrap:nowrap;max-block-size:none;overflow:hidden}[data-ui=multi-select] [data-part=chips] input:not([data-part=input]){background-color:transparent;border:0;color:inherit;font:inherit;min-inline-size:0;outline:none;padding:0}[data-ui=multi-select] [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=multi-select] [data-part=chips]{--slotted-control-inner-size: var(--_inner-size)}[data-ui=multi-select] [data-part=field]{align-items:center;display:flex;flex:1 1 var(--slotted-multi-select-field-basis, 4rem);min-block-size:var(--_row-size);min-inline-size:var(--slotted-multi-select-field-min, 2.5rem)}[data-ui=multi-select] [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=multi-select] [data-part=input]::placeholder{color:var(--slotted-multi-select-placeholder-color, var(--slotted-text-muted, GrayText));text-overflow:ellipsis}[data-ui=multi-select] [data-part=input]:autofill{box-shadow:inset 0 0 0 100px var(--slotted-multi-select-autofill-background, var(--slotted-tone-accent-surface));-webkit-text-fill-color:var(--slotted-multi-select-color, var(--slotted-text, CanvasText))}[data-ui=multi-select] [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=multi-select] [data-part=chips]>[data-count]{flex:none}[data-ui=multi-select]>[data-part=counter]{text-box:auto;align-self:center;color:var(--slotted-multi-select-counter-color, var(--slotted-text-muted, GrayText));flex:0 1 auto;font-size:var(--slotted-font-size-xs, .75rem);min-inline-size:0;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums;line-height:var(--slotted-line-height-sm, 1.45);padding-inline:var(--slotted-space-1, .125rem);unicode-bidi:plaintext;white-space:nowrap}[data-ui=multi-select][data-complete]>[data-part=counter]{color:var(--slotted-multi-select-counter-complete-color, var(--slotted-tone-accent-text));font-weight:var(--slotted-font-weight-medium, 500)}[data-ui=multi-select][data-narrow] [data-part=chips]>:not([data-part=field]){display:none}[data-ui=multi-select][data-narrow]>[data-part=control]{flex-basis:0}[data-ui=multi-select]>:is([data-part=clear],[data-part=trigger]){align-items:center;align-self:center;appearance:none;background-color:transparent;block-size:var(--_action-size);border:0;border-radius:var(--slotted-multi-select-radius, var(--slotted-control-radius, 4px));color:var(--slotted-multi-select-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=multi-select]>: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=multi-select]>:is([data-part=clear],[data-part=trigger]):after{inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2))}[data-ui=multi-select]>[data-part=clear]:has(+[data-part=trigger]:not([hidden])):after{inset-inline-end:0}[data-ui=multi-select]>[data-part=clear]:not([hidden])+[data-part=trigger]:after{inset-inline-start:0}}[data-ui=multi-select]>:is([data-part=clear],[data-part=trigger]){--slotted-icon-size: var(--_icon-size)}[data-ui=multi-select] [data-part=arrow]{align-items:center;block-size:var(--_icon-size);display:flex;inline-size:var(--_icon-size);justify-content:center}[data-ui=multi-select] [data-part=arrow]>[data-ui=icon]{transition:rotate var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=multi-select][data-open] [data-part=arrow]>[data-ui=icon]{rotate:180deg}[data-ui=multi-select] [data-part=busy]{--slotted-spinner-size: var(--_icon-size);align-self:center;color:var(--slotted-multi-select-arrow-color, var(--slotted-text-muted, GrayText));flex:none}[data-ui=multi-select][data-part=root][data-size=sm]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_height: var(--slotted-control-height-sm, 30px);--_inner-size: var(--slotted-control-inner-size-sm, 22px);--_padding-inline: var(--slotted-control-padding-inline-sm, 10px);--_gap: var(--slotted-control-gap-sm, 6px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-sm, 14px))}[data-ui=multi-select][data-part=root][data-size=md]{--_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);--_gap: var(--slotted-control-gap-md, 8px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-md, 16px));--_inner-size: var(--slotted-control-inner-size-md, 24px)}[data-ui=multi-select][data-part=root][data-size=lg]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_height: var(--slotted-control-height-lg, 38px);--_inner-size: var(--slotted-control-inner-size-lg, 28px);--_padding-inline: var(--slotted-control-padding-inline-lg, 16px);--_gap: var(--slotted-control-gap-lg, 8px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-lg, 18px))}[data-ui=multi-select][data-part=root][data-variant=subtle]{background-color:var( --slotted-multi-select-subtle-background, var(--slotted-surface-sunken, Canvas) );border-color:var( --slotted-multi-select-subtle-border-color, var(--slotted-border-subtle, ButtonBorder) )}[data-ui=multi-select][data-part=root][data-variant=plain]{background-color:transparent;border-color:transparent;border-radius:var(--slotted-radius-none, 0px);box-shadow:none}@media(forced-colors:active){[data-ui=multi-select][data-part=root][data-variant=plain]{border-color:ButtonBorder}}[data-ui=multi-select][data-part=root]:hover:not([data-disabled]):not([data-readonly]):not([data-invalid]){border-color:var(--slotted-multi-select-hover-border-color, var(--slotted-tone-accent-border))}[data-ui=multi-select][data-part=root][data-variant=subtle]:hover:not([data-disabled]):not([data-readonly]):not([data-invalid]){background-color:var( --slotted-multi-select-subtle-hover-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=multi-select][data-part=root][data-variant=plain]:hover:not([data-disabled]):not([data-readonly]):not([data-invalid]){background-color:var( --slotted-multi-select-plain-hover-background, var(--slotted-tone-secondary-subtle-hover) );border-color:transparent}[data-ui=multi-select][data-part=root]:has([data-part=input]:focus-visible),[data-ui=multi-select][data-part=root]:has([data-part=chips]>:not([data-part=field]):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=multi-select][data-part=root][data-variant=plain]:has([data-part=input]:focus-visible),[data-ui=multi-select][data-part=root][data-variant=plain]:has([data-part=chips]>:not([data-part=field]):focus-visible){box-shadow:none;outline-offset:calc(var(--slotted-focus-ring-offset, 2px) * -1)}[data-ui=multi-select][data-part=root]:has([data-part=chips]>:not([data-part=field]):focus-visible){outline:none}[data-ui=multi-select][data-part=root][data-open]:not([data-disabled]){border-color:var(--slotted-multi-select-open-border-color, var(--slotted-tone-accent-border))}[data-ui=multi-select][data-part=root][data-invalid]{--slotted-focus-ring-color: var( --slotted-multi-select-invalid-focus-ring-color, var(--slotted-focus-ring-color-invalid, Highlight) );--_invalid-edge-width: var( --slotted-multi-select-invalid-edge-width, var(--slotted-control-invalid-edge-width, 1px) );--_invalid-edge-color: var( --slotted-multi-select-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-multi-select-invalid-border-color, var(--slotted-tone-danger-border) );box-shadow:var(--_invalid-edge)}[data-ui=multi-select][data-part=root][data-invalid]:has([data-part=input]:focus-visible),[data-ui=multi-select][data-part=root][data-invalid]:has([data-part=chips]>:not([data-part=field]):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=multi-select][data-part=root][data-variant=plain][data-invalid]:has([data-part=input]:focus-visible),[data-ui=multi-select][data-part=root][data-variant=plain][data-invalid]:has([data-part=chips]>:not([data-part=field]):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=multi-select][data-part=root][data-invalid]{outline:var(--_invalid-edge-width) solid CanvasText;outline-offset:calc(-1 * (var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width)))}[data-ui=multi-select][data-part=root][data-invalid]: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=multi-select][data-part=root][data-variant=plain][data-invalid]: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=multi-select][data-part=root][data-invalid]:has([data-part=chips]>:not([data-part=field]):focus-visible),[data-ui=multi-select][data-part=root][data-variant=plain][data-invalid]:has([data-part=chips]>:not([data-part=field]):focus-visible){outline:var(--_invalid-edge-width) solid CanvasText;outline-offset:calc(-1 * (var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width)))}}[data-ui=multi-select][data-part=root][data-readonly]{background-color:var( --slotted-multi-select-readonly-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=multi-select][data-part=root][data-readonly] [data-part=arrow]{opacity:.5}[data-ui=multi-select][data-part=root][data-disabled],[data-ui=multi-select][data-part=root]:has([data-part=input]:disabled){background-color:var( --slotted-multi-select-disabled-background, var(--slotted-disabled-background) );border-color:var(--slotted-multi-select-disabled-border-color, var(--slotted-disabled-border));box-shadow:none;color:var(--slotted-multi-select-disabled-color, var(--slotted-disabled-foreground));cursor:not-allowed}[data-ui=multi-select]>:is([data-part=clear],[data-part=trigger]):hover:not(:disabled):not([data-disabled]){background-color:var( --slotted-multi-select-action-hover-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=multi-select]>:is([data-part=clear],[data-part=trigger]):active:not(:disabled):not([data-disabled]){background-color:var( --slotted-multi-select-action-active-background, var(--slotted-tone-secondary-subtle-active) )}[data-ui=multi-select]>: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=multi-select][data-part=positioner]{--_surface: var(--slotted-multi-select-surface, var(--slotted-surface-raised, #ffffff));--_text: var(--slotted-multi-select-content-text, var(--slotted-text, #0f172a));--_muted: var(--slotted-multi-select-content-text-muted, var(--slotted-text-muted, #5b6b7f));--_border-color: var( --slotted-multi-select-content-border-color, var(--slotted-border-subtle, #e2e8f0) );--_border-width: var(--slotted-border-width-thin, 1px);--_radius: var(--slotted-multi-select-content-radius, var(--slotted-radius-lg, 8px));--_shadow: var(--slotted-multi-select-content-shadow, var(--slotted-shadow-md));--_highlight: var( --slotted-multi-select-highlight, var(--slotted-tone-secondary-subtle-active) );--_highlight-active: var( --slotted-multi-select-highlight-active, var(--slotted-tone-accent-surface) );--_selected-color: var(--slotted-multi-select-selected-color, var(--slotted-tone-accent-text));--_inset-block: var( --slotted-multi-select-content-padding-block, var(--slotted-space-2, .25rem) );--_inset-inline: var( --slotted-multi-select-content-padding-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-multi-select-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);--_measure: var(--slotted-multi-select-measure, 24rem);position:absolute;inset-block-start:0;z-index:calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0));isolation:isolate;box-sizing:border-box;pointer-events:none;opacity:0;--_enter-distance: var(--slotted-space-2, .25rem);translate:0 calc(-1 * var(--_enter-distance));transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=multi-select][data-part=positioner][data-side=top]{translate:0 var(--_enter-distance)}[data-ui=multi-select][data-part=positioner]:is([data-side=left],[data-side=right]){translate:0 0}[data-ui=multi-select][data-part=positioner][data-open]{opacity:1;translate:0 0;transition:none}[data-ui=multi-select][data-part=positioner][data-open][data-positioned]{animation:slotted-multi-select-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter)}[data-ui=multi-select][data-part=positioner][data-open][data-positioned][data-side=top]{animation-name:slotted-multi-select-enter-up}[data-ui=multi-select][data-part=positioner][data-open][data-positioned]:is([data-side=left],[data-side=right]){animation-name:slotted-multi-select-fade}@keyframes slotted-multi-select-enter-down{0%{opacity:0;translate:0 calc(-1 * var(--_enter-distance))}}@keyframes slotted-multi-select-enter-up{0%{opacity:0;translate:0 var(--_enter-distance)}}@keyframes slotted-multi-select-fade{0%{opacity:0}}@media(prefers-reduced-motion:reduce){[data-ui=multi-select][data-part=positioner],[data-ui=multi-select][data-part=positioner][data-side=top],[data-ui=multi-select][data-part=positioner][data-side=left],[data-ui=multi-select][data-part=positioner][data-side=right]{translate:0 0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=multi-select][data-part=positioner][data-open][data-positioned],[data-ui=multi-select][data-part=positioner][data-open][data-positioned][data-side=top],[data-ui=multi-select][data-part=positioner][data-open][data-positioned][data-side=left],[data-ui=multi-select][data-part=positioner][data-open][data-positioned][data-side=right]{animation-name:slotted-multi-select-fade}}[data-ui=multi-select][data-part=positioner][data-detached]{visibility:hidden}[data-ui=multi-select][data-part=positioner][data-width=anchor]{inline-size:var(--slotted-positioner-anchor-width, auto)}[data-ui=multi-select][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=multi-select][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)}[data-ui=multi-select][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)}[data-ui=multi-select]>[data-part=content]{background:var(--_surface);border:var(--_border-width) solid var(--_border-color);border-radius:var(--_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-template-columns:auto minmax(0,1fr) 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=multi-select]>[data-part=content]:focus-visible{outline:none}[data-ui=multi-select] [data-part=chosen]{background:var(--_surface);border-block-end:var(--_border-width) solid var(--_border-color);box-sizing:border-box;display:flex;flex-wrap:wrap;gap:var(--slotted-space-2, .25rem);grid-column:1 / -1;inset-block-start:calc(-1 * var(--_inset-block));margin-block:calc(-1 * var(--_inset-block)) var(--_inset-block);margin-inline:calc(-1 * var(--_inset-inline));max-block-size:calc(2 * var(--slotted-target-min, 24px) + var(--slotted-space-2, .25rem) + var(--_inset-block));min-inline-size:0;overflow-y:auto;overscroll-behavior:contain;padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);position:sticky;z-index:1}[data-ui=multi-select] [data-part=group]{display:grid;grid-column:1 / -1;grid-template-columns:subgrid}[data-ui=multi-select] [data-part=item][hidden],[data-ui=multi-select] [data-part=group][hidden]{display:none}[data-ui=multi-select] [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-2, .25rem);padding-inline:var(--_item-inset)}[data-ui=multi-select] [data-part=item]{align-content:center;border-radius:var(--_item-radius);box-sizing:border-box;cursor:pointer;display:grid;grid-column:1 / -1;grid-template-columns:subgrid;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:var(--slotted-space-1, .125rem);-webkit-user-select:none;user-select:none;transition:background-color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard)),color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard))}[data-ui=multi-select] [data-part=item][data-current]{background-color:var(--_highlight);box-shadow:inset 0 0 0 var(--slotted-border-width-thin, 1px) var(--slotted-multi-select-highlight-ring, var(--slotted-tone-accent-border))}[data-ui=multi-select] [data-part=item]:not([data-disabled]):active{background-color:var(--_highlight-active)}[data-ui=multi-select] [data-part=item][data-selected]{color:var(--_selected-color)}[data-ui=multi-select] [data-part=item][data-selected]+[data-part=item][data-selected]{border-start-end-radius:0;border-start-start-radius:0}[data-ui=multi-select] [data-part=item][data-selected]:has(+[data-part=item][data-selected]){border-end-end-radius:0;border-end-start-radius:0}[data-ui=multi-select] [data-part=item][data-selected]>[data-part=label]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui=multi-select] [data-part=item][data-disabled]{color:var(--slotted-disabled-foreground, #64748b);cursor:not-allowed}[data-ui=multi-select] [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=multi-select] [data-part=item]>:is([data-part=indicator],[data-part=icon]){block-size:1lh}[data-ui=multi-select] [data-part=item]>[data-part=icon]{--slotted-icon-size: var(--_content-icon-size);align-items:center;display:flex;grid-column:1;grid-row:1;inline-size:var(--_content-icon-size);justify-content:center;justify-self:center;margin-inline-end:var(--_column-gap)}[data-ui=multi-select] [data-part=item]>[data-part=label]{grid-column:2;grid-row:1;min-inline-size:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}[data-ui=multi-select] [data-part=item]>[data-part=description]{color:var(--_muted);font-size:var(--_secondary-font-size);grid-column:2;grid-row:2;line-height:var(--slotted-line-height-sm, 1.45);min-inline-size:0;overflow-wrap:anywhere}[data-ui=multi-select] [data-part=item][data-disabled]>[data-part=description]{color:inherit}[data-ui=multi-select] [data-part=item]>[data-part=indicator]{--slotted-icon-size: var(--_content-icon-size);align-items:center;display:flex;grid-column:3;grid-row:1;inline-size:var(--_content-icon-size);justify-content:center;justify-self:end;margin-inline-start:var(--_column-gap);opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui=multi-select] [data-part=item][data-selected]>[data-part=indicator]{opacity:1}[data-ui=multi-select] [data-part=item][data-create]>[data-part=indicator]{opacity:1}[data-ui=multi-select] [data-part=item][data-create]>[data-part=label]{unicode-bidi:plaintext}[data-ui=multi-select] [data-part=separator]{background-color:var(--slotted-multi-select-separator-color, var(--_border-color));block-size:var(--_border-width);border:0;grid-column:1 / -1;margin-block:var(--slotted-space-2, .25rem);margin-inline:0}[data-ui=multi-select] :is([data-part=empty],[data-part=status]){color:var(--_muted);unicode-bidi:plaintext;grid-column:1 / -1;box-sizing:border-box;min-inline-size:12rem;max-inline-size:100%;padding-block:var(--slotted-space-5, .75rem);padding-inline:var(--_item-inset);text-align:center}[data-ui=multi-select] [data-part=status]:empty{display:none}[data-ui=multi-select] [data-part=placeholder]{display:grid;grid-column:1 / -1;padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_item-inset)}[data-ui=multi-select] [data-part=placeholder]>*{align-items:center;display:flex;min-block-size:var(--_item-height)}[data-ui=multi-select] [data-part=placeholder]>[data-ui=skeleton]{align-self:center}[data-ui=multi-select] [data-part=placeholder]>:nth-child(2) [data-ui=skeleton]{inline-size:78%}[data-ui=multi-select] [data-part=placeholder]>:nth-child(3) [data-ui=skeleton]{inline-size:56%}[data-ui=multi-select]>[data-part=content][data-loading]{cursor:progress}@media(forced-colors:active){[data-ui=multi-select] [data-part=item][data-current]{background-color:Highlight;color:HighlightText;forced-color-adjust:none}[data-ui=multi-select] [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: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1428
|
+
}
|
|
1429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMultiSelect, decorators: [{
|
|
1430
|
+
type: Component,
|
|
1431
|
+
args: [{ selector: 'sl-multi-select', standalone: true, exportAs: 'slMultiSelect', imports: [SlGlyph, SlIcon], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
|
1432
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlMultiSelect), multi: true },
|
|
1433
|
+
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => SlMultiSelect), multi: true },
|
|
1434
|
+
], host: {
|
|
1435
|
+
'data-ui': 'multi-select',
|
|
1436
|
+
'data-part': 'root',
|
|
1437
|
+
/* The name is the input's and the listbox's; on the host it would name a
|
|
1438
|
+
generic element, which is a role that prohibits one. */
|
|
1439
|
+
'[attr.aria-label]': 'null',
|
|
1440
|
+
'[attr.data-size]': 'resolvedSize()',
|
|
1441
|
+
'[attr.data-variant]': 'resolvedVariant()',
|
|
1442
|
+
'[attr.data-overflow]': 'resolvedOverflow()',
|
|
1443
|
+
'[attr.data-full-width]': "resolvedFullWidth() ? '' : null",
|
|
1444
|
+
'[attr.data-open]': "isOpen() ? '' : null",
|
|
1445
|
+
'[attr.data-disabled]': "resolvedDisabled() ? '' : null",
|
|
1446
|
+
'[attr.data-readonly]': "resolvedReadOnly() ? '' : null",
|
|
1447
|
+
'[attr.data-invalid]': "resolvedInvalid() ? '' : null",
|
|
1448
|
+
'[attr.data-required]': "resolvedRequired() ? '' : null",
|
|
1449
|
+
'[attr.data-loading]': "loading() ? '' : null",
|
|
1450
|
+
'[attr.data-complete]': "full() ? '' : null",
|
|
1451
|
+
'[attr.data-narrow]': "narrow() ? '' : null",
|
|
1452
|
+
}, template: `
|
|
1453
|
+
<div data-part="control" role="grid" [attr.aria-label]="gridLabel()">
|
|
1454
|
+
<div data-part="chips" role="row" #row>
|
|
1455
|
+
@for (chip of value(); track chip; let index = $index) {
|
|
1456
|
+
@if (editingValue() === chip) {
|
|
1457
|
+
<span
|
|
1458
|
+
role="gridcell"
|
|
1459
|
+
data-ui="tag"
|
|
1460
|
+
data-part="root"
|
|
1461
|
+
data-size="sm"
|
|
1462
|
+
data-variant="soft"
|
|
1463
|
+
[attr.data-value]="chip"
|
|
1464
|
+
>
|
|
1465
|
+
<span data-part="body">
|
|
1466
|
+
<input
|
|
1467
|
+
type="text"
|
|
1468
|
+
[attr.aria-label]="labelFor(chip) ?? chip"
|
|
1469
|
+
[value]="editingText()"
|
|
1470
|
+
(input)="onEditInput($event)"
|
|
1471
|
+
(blur)="commitEdit(chip, $event)"
|
|
1472
|
+
(keydown)="onEditKeyDown(chip, $event)"
|
|
1473
|
+
/>
|
|
1474
|
+
</span>
|
|
1475
|
+
</span>
|
|
1476
|
+
} @else {
|
|
1477
|
+
<span
|
|
1478
|
+
role="gridcell"
|
|
1479
|
+
tabindex="-1"
|
|
1480
|
+
data-ui="tag"
|
|
1481
|
+
data-part="root"
|
|
1482
|
+
data-size="sm"
|
|
1483
|
+
data-variant="soft"
|
|
1484
|
+
[attr.data-value]="chip"
|
|
1485
|
+
[attr.data-disabled]="frozen() ? '' : null"
|
|
1486
|
+
[attr.aria-label]="chipLabel(chip, index)"
|
|
1487
|
+
(keydown)="onChipKeyDown(chip, index, $event)"
|
|
1488
|
+
>
|
|
1489
|
+
<span data-part="body">
|
|
1490
|
+
<span data-part="label">{{ labelFor(chip) ?? chip }}</span>
|
|
1491
|
+
</span>
|
|
1492
|
+
@if (!frozen()) {
|
|
1493
|
+
<button
|
|
1494
|
+
type="button"
|
|
1495
|
+
tabindex="-1"
|
|
1496
|
+
data-part="remove"
|
|
1497
|
+
[attr.aria-label]="removeLabelFor(chip)"
|
|
1498
|
+
(click)="onRemoveClick(chip, $event)"
|
|
1499
|
+
>
|
|
1500
|
+
<span slIcon><svg slGlyph name="x"></svg></span>
|
|
1501
|
+
</button>
|
|
1502
|
+
}
|
|
1503
|
+
</span>
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
@if (resolvedOverflow() === 'collapse') {
|
|
1507
|
+
<span
|
|
1508
|
+
#count
|
|
1509
|
+
hidden
|
|
1510
|
+
role="gridcell"
|
|
1511
|
+
tabindex="-1"
|
|
1512
|
+
data-count
|
|
1513
|
+
data-ui="tag"
|
|
1514
|
+
data-part="root"
|
|
1515
|
+
data-size="sm"
|
|
1516
|
+
data-variant="outline"
|
|
1517
|
+
(click)="onCountClick($event)"
|
|
1518
|
+
>
|
|
1519
|
+
<span data-part="body">
|
|
1520
|
+
<span data-part="label">+{{ hiddenCount() }}</span>
|
|
1521
|
+
</span>
|
|
1522
|
+
</span>
|
|
1523
|
+
}
|
|
1524
|
+
<span data-part="field" role="gridcell">
|
|
1525
|
+
<input
|
|
1526
|
+
#control
|
|
1527
|
+
type="text"
|
|
1528
|
+
role="combobox"
|
|
1529
|
+
data-part="input"
|
|
1530
|
+
aria-autocomplete="list"
|
|
1531
|
+
[id]="controlId()"
|
|
1532
|
+
[value]="inputValue()"
|
|
1533
|
+
[disabled]="resolvedDisabled()"
|
|
1534
|
+
[readOnly]="resolvedReadOnly()"
|
|
1535
|
+
[required]="resolvedRequired() && value().length === 0"
|
|
1536
|
+
[placeholder]="value().length === 0 ? placeholder() : ''"
|
|
1537
|
+
[attr.aria-expanded]="isOpen()"
|
|
1538
|
+
[attr.aria-controls]="isOpen() ? contentId : null"
|
|
1539
|
+
[attr.aria-activedescendant]="activeDescendant()"
|
|
1540
|
+
[attr.aria-label]="ariaLabel() ?? null"
|
|
1541
|
+
[attr.aria-describedby]="describedBy()"
|
|
1542
|
+
[attr.aria-readonly]="resolvedReadOnly() ? true : null"
|
|
1543
|
+
[attr.aria-invalid]="resolvedInvalid() ? true : null"
|
|
1544
|
+
(input)="onInput($event)"
|
|
1545
|
+
(focus)="onFocus()"
|
|
1546
|
+
(click)="onClick($event)"
|
|
1547
|
+
(keydown)="onKeyDown($event)"
|
|
1548
|
+
(paste)="onPaste($event)"
|
|
1549
|
+
(blur)="onBlur($event)"
|
|
1550
|
+
/>
|
|
1551
|
+
</span>
|
|
1552
|
+
</div>
|
|
1553
|
+
</div>
|
|
1554
|
+
|
|
1555
|
+
@if (counterText(); as counter) {
|
|
1556
|
+
<span data-part="counter" aria-hidden="true">{{ counter }}</span>
|
|
1557
|
+
}
|
|
1558
|
+
@if (showClear()) {
|
|
1559
|
+
<button
|
|
1560
|
+
type="button"
|
|
1561
|
+
data-part="clear"
|
|
1562
|
+
[attr.aria-label]="t('clear')"
|
|
1563
|
+
(click)="onClear($event)"
|
|
1564
|
+
>
|
|
1565
|
+
<span slIcon><svg slGlyph name="x"></svg></span>
|
|
1566
|
+
</button>
|
|
1567
|
+
}
|
|
1568
|
+
@if (loading()) {
|
|
1569
|
+
<span data-part="busy" data-ui="spinner" aria-hidden="true"></span>
|
|
1570
|
+
} @else {
|
|
1571
|
+
<button
|
|
1572
|
+
type="button"
|
|
1573
|
+
tabindex="-1"
|
|
1574
|
+
data-part="trigger"
|
|
1575
|
+
[disabled]="resolvedDisabled()"
|
|
1576
|
+
[attr.aria-label]="t('trigger')"
|
|
1577
|
+
(click)="onToggle($event)"
|
|
1578
|
+
>
|
|
1579
|
+
<span data-part="arrow"
|
|
1580
|
+
><span slIcon><svg slGlyph name="chevron-down"></svg></span
|
|
1581
|
+
></span>
|
|
1582
|
+
</button>
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
<!--
|
|
1586
|
+
One hidden input per value, all under the same name: that is how a plain
|
|
1587
|
+
FormData receives several values under one key and how a native reset()
|
|
1588
|
+
restores them.
|
|
1589
|
+
-->
|
|
1590
|
+
@if (name(); as submissionName) {
|
|
1591
|
+
@for (held of value(); track held) {
|
|
1592
|
+
<input
|
|
1593
|
+
type="text"
|
|
1594
|
+
aria-hidden="true"
|
|
1595
|
+
tabindex="-1"
|
|
1596
|
+
readonly
|
|
1597
|
+
[name]="submissionName"
|
|
1598
|
+
[attr.form]="form() ?? null"
|
|
1599
|
+
[value]="held"
|
|
1600
|
+
style="
|
|
1601
|
+
position: absolute;
|
|
1602
|
+
inline-size: 1px;
|
|
1603
|
+
block-size: 1px;
|
|
1604
|
+
padding: 0;
|
|
1605
|
+
border: 0;
|
|
1606
|
+
overflow: hidden;
|
|
1607
|
+
clip-path: inset(50%);
|
|
1608
|
+
white-space: nowrap;
|
|
1609
|
+
"
|
|
1610
|
+
/>
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
<ng-template #layer>
|
|
1615
|
+
<div
|
|
1616
|
+
data-ui="multi-select"
|
|
1617
|
+
data-part="positioner"
|
|
1618
|
+
[attr.data-align]="resolvedAlign()"
|
|
1619
|
+
[attr.data-size]="resolvedSize()"
|
|
1620
|
+
[attr.data-width]="resolvedWidth()"
|
|
1621
|
+
[attr.data-open]="isOpen() ? '' : null"
|
|
1622
|
+
[attr.inert]="isOpen() ? null : ''"
|
|
1623
|
+
>
|
|
1624
|
+
<div
|
|
1625
|
+
data-part="content"
|
|
1626
|
+
role="listbox"
|
|
1627
|
+
aria-multiselectable="true"
|
|
1628
|
+
[id]="contentId"
|
|
1629
|
+
[attr.aria-label]="ariaLabel() ?? null"
|
|
1630
|
+
[attr.aria-busy]="loading() ? true : null"
|
|
1631
|
+
[attr.data-loading]="loading() ? '' : null"
|
|
1632
|
+
>
|
|
1633
|
+
@if (value().length > 0) {
|
|
1634
|
+
<!--
|
|
1635
|
+
Every chosen value, whatever the row in the control did with them.
|
|
1636
|
+
Its chips carry no remove control: focus never enters this layer,
|
|
1637
|
+
so one would be reachable by pointer and by nothing else.
|
|
1638
|
+
-->
|
|
1639
|
+
<div data-part="chosen">
|
|
1640
|
+
@for (held of value(); track held) {
|
|
1641
|
+
<span data-ui="tag" data-part="root" data-size="sm" data-variant="soft">
|
|
1642
|
+
<span data-part="body">
|
|
1643
|
+
<span data-part="label">{{ labelFor(held) ?? held }}</span>
|
|
1644
|
+
</span>
|
|
1645
|
+
</span>
|
|
1646
|
+
}
|
|
1647
|
+
</div>
|
|
1648
|
+
}
|
|
1649
|
+
<ng-content />
|
|
1650
|
+
@if (!loading() && offering(); as query) {
|
|
1651
|
+
<div
|
|
1652
|
+
role="option"
|
|
1653
|
+
data-part="item"
|
|
1654
|
+
data-create
|
|
1655
|
+
aria-selected="false"
|
|
1656
|
+
[attr.data-value]="query"
|
|
1657
|
+
[id]="optionId(query)"
|
|
1658
|
+
[attr.data-current]="highlightedValue() === query ? '' : null"
|
|
1659
|
+
(click)="onCreateClick(query, $event)"
|
|
1660
|
+
(pointerdown)="onOptionPointerDown($event)"
|
|
1661
|
+
(pointerenter)="setHighlighted(query, 'pointer', $event)"
|
|
1662
|
+
>
|
|
1663
|
+
<span data-part="icon"></span>
|
|
1664
|
+
<span data-part="label">{{ t('create', { query: query }) }}</span>
|
|
1665
|
+
<span data-part="indicator"
|
|
1666
|
+
><span slIcon><svg slGlyph name="plus"></svg></span
|
|
1667
|
+
></span>
|
|
1668
|
+
</div>
|
|
1669
|
+
} @else if (!loading() && optionCount() === 0) {
|
|
1670
|
+
<div data-part="empty">{{ t('empty') }}</div>
|
|
1671
|
+
}
|
|
1672
|
+
@if (loading()) {
|
|
1673
|
+
<div data-part="placeholder" aria-hidden="true">
|
|
1674
|
+
@for (row of [0, 1, 2]; track row) {
|
|
1675
|
+
<div>
|
|
1676
|
+
<span data-ui="skeleton" data-part="root" data-shape="text" data-loading></span>
|
|
1677
|
+
</div>
|
|
1678
|
+
}
|
|
1679
|
+
</div>
|
|
1680
|
+
}
|
|
1681
|
+
<div
|
|
1682
|
+
data-part="status"
|
|
1683
|
+
role="status"
|
|
1684
|
+
aria-live="polite"
|
|
1685
|
+
[attr.data-loading]="loading() ? '' : null"
|
|
1686
|
+
>
|
|
1687
|
+
{{ statusMessage() }}
|
|
1688
|
+
</div>
|
|
1689
|
+
</div>
|
|
1690
|
+
</div>
|
|
1691
|
+
</ng-template>
|
|
1692
|
+
`, styles: ["@layer slotted.components{[data-ui=multi-select][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);--_gap: var(--slotted-control-gap-md, 8px);--_icon-floor: var(--slotted-multi-select-icon-size-min, 14px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-md, 16px));--_action-size: var( --slotted-multi-select-action-size, min(calc(var(--_icon-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) );--_row-air: var(--slotted-space-1, .125rem);--_inner-size: var(--slotted-control-inner-size-md, 24px);--_row-size: var(--_inner-size);--_row-gap: var(--slotted-space-2, .25rem);align-items:center;background-color:var(--slotted-multi-select-background, var(--slotted-control-surface, Field));border:var(--slotted-control-border-width, 1px) solid var(--slotted-multi-select-border-color, var(--slotted-control-border-color, ButtonBorder));border-radius:var(--slotted-multi-select-radius, var(--slotted-control-radius, 4px));box-shadow:var(--slotted-multi-select-shadow, var(--slotted-control-shadow, none));box-sizing:border-box;color:var(--slotted-multi-select-color, var(--slotted-text, CanvasText));display:flex;font-family:var(--slotted-control-font-family, system-ui, sans-serif);font-size:var(--_font-size);gap:var(--slotted-space-1, .125rem);inline-size:100%;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=multi-select][data-part=root]:not([data-full-width]){inline-size:auto}[data-ui=multi-select]>[data-part=control]{display:flex;flex:1 1 auto;min-inline-size:0;align-self:stretch}[data-ui=multi-select]>[data-part=control]+*{margin-inline-start:var(--_row-gap)}[data-ui=multi-select] [data-part=chips]{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;min-inline-size:0;padding-block:var(--_row-air);padding-inline:var(--_row-air);margin-inline:calc(-1 * var(--_row-air));row-gap:var(--_row-gap);max-block-size:calc(3 * var(--_row-size) + 2 * var(--_row-gap) + 2 * var(--_row-air));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}[data-ui=multi-select] [data-part=chips]::-webkit-scrollbar{display:none}[data-ui=multi-select][data-overflow=collapse] [data-part=chips]{flex-wrap:nowrap;max-block-size:none;overflow:hidden}[data-ui=multi-select] [data-part=chips] input:not([data-part=input]){background-color:transparent;border:0;color:inherit;font:inherit;min-inline-size:0;outline:none;padding:0}[data-ui=multi-select] [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=multi-select] [data-part=chips]{--slotted-control-inner-size: var(--_inner-size)}[data-ui=multi-select] [data-part=field]{align-items:center;display:flex;flex:1 1 var(--slotted-multi-select-field-basis, 4rem);min-block-size:var(--_row-size);min-inline-size:var(--slotted-multi-select-field-min, 2.5rem)}[data-ui=multi-select] [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=multi-select] [data-part=input]::placeholder{color:var(--slotted-multi-select-placeholder-color, var(--slotted-text-muted, GrayText));text-overflow:ellipsis}[data-ui=multi-select] [data-part=input]:autofill{box-shadow:inset 0 0 0 100px var(--slotted-multi-select-autofill-background, var(--slotted-tone-accent-surface));-webkit-text-fill-color:var(--slotted-multi-select-color, var(--slotted-text, CanvasText))}[data-ui=multi-select] [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=multi-select] [data-part=chips]>[data-count]{flex:none}[data-ui=multi-select]>[data-part=counter]{text-box:auto;align-self:center;color:var(--slotted-multi-select-counter-color, var(--slotted-text-muted, GrayText));flex:0 1 auto;font-size:var(--slotted-font-size-xs, .75rem);min-inline-size:0;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums;line-height:var(--slotted-line-height-sm, 1.45);padding-inline:var(--slotted-space-1, .125rem);unicode-bidi:plaintext;white-space:nowrap}[data-ui=multi-select][data-complete]>[data-part=counter]{color:var(--slotted-multi-select-counter-complete-color, var(--slotted-tone-accent-text));font-weight:var(--slotted-font-weight-medium, 500)}[data-ui=multi-select][data-narrow] [data-part=chips]>:not([data-part=field]){display:none}[data-ui=multi-select][data-narrow]>[data-part=control]{flex-basis:0}[data-ui=multi-select]>:is([data-part=clear],[data-part=trigger]){align-items:center;align-self:center;appearance:none;background-color:transparent;block-size:var(--_action-size);border:0;border-radius:var(--slotted-multi-select-radius, var(--slotted-control-radius, 4px));color:var(--slotted-multi-select-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=multi-select]>: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=multi-select]>:is([data-part=clear],[data-part=trigger]):after{inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2))}[data-ui=multi-select]>[data-part=clear]:has(+[data-part=trigger]:not([hidden])):after{inset-inline-end:0}[data-ui=multi-select]>[data-part=clear]:not([hidden])+[data-part=trigger]:after{inset-inline-start:0}}[data-ui=multi-select]>:is([data-part=clear],[data-part=trigger]){--slotted-icon-size: var(--_icon-size)}[data-ui=multi-select] [data-part=arrow]{align-items:center;block-size:var(--_icon-size);display:flex;inline-size:var(--_icon-size);justify-content:center}[data-ui=multi-select] [data-part=arrow]>[data-ui=icon]{transition:rotate var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=multi-select][data-open] [data-part=arrow]>[data-ui=icon]{rotate:180deg}[data-ui=multi-select] [data-part=busy]{--slotted-spinner-size: var(--_icon-size);align-self:center;color:var(--slotted-multi-select-arrow-color, var(--slotted-text-muted, GrayText));flex:none}[data-ui=multi-select][data-part=root][data-size=sm]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_height: var(--slotted-control-height-sm, 30px);--_inner-size: var(--slotted-control-inner-size-sm, 22px);--_padding-inline: var(--slotted-control-padding-inline-sm, 10px);--_gap: var(--slotted-control-gap-sm, 6px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-sm, 14px))}[data-ui=multi-select][data-part=root][data-size=md]{--_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);--_gap: var(--slotted-control-gap-md, 8px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-md, 16px));--_inner-size: var(--slotted-control-inner-size-md, 24px)}[data-ui=multi-select][data-part=root][data-size=lg]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_height: var(--slotted-control-height-lg, 38px);--_inner-size: var(--slotted-control-inner-size-lg, 28px);--_padding-inline: var(--slotted-control-padding-inline-lg, 16px);--_gap: var(--slotted-control-gap-lg, 8px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-lg, 18px))}[data-ui=multi-select][data-part=root][data-variant=subtle]{background-color:var( --slotted-multi-select-subtle-background, var(--slotted-surface-sunken, Canvas) );border-color:var( --slotted-multi-select-subtle-border-color, var(--slotted-border-subtle, ButtonBorder) )}[data-ui=multi-select][data-part=root][data-variant=plain]{background-color:transparent;border-color:transparent;border-radius:var(--slotted-radius-none, 0px);box-shadow:none}@media(forced-colors:active){[data-ui=multi-select][data-part=root][data-variant=plain]{border-color:ButtonBorder}}[data-ui=multi-select][data-part=root]:hover:not([data-disabled]):not([data-readonly]):not([data-invalid]){border-color:var(--slotted-multi-select-hover-border-color, var(--slotted-tone-accent-border))}[data-ui=multi-select][data-part=root][data-variant=subtle]:hover:not([data-disabled]):not([data-readonly]):not([data-invalid]){background-color:var( --slotted-multi-select-subtle-hover-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=multi-select][data-part=root][data-variant=plain]:hover:not([data-disabled]):not([data-readonly]):not([data-invalid]){background-color:var( --slotted-multi-select-plain-hover-background, var(--slotted-tone-secondary-subtle-hover) );border-color:transparent}[data-ui=multi-select][data-part=root]:has([data-part=input]:focus-visible),[data-ui=multi-select][data-part=root]:has([data-part=chips]>:not([data-part=field]):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=multi-select][data-part=root][data-variant=plain]:has([data-part=input]:focus-visible),[data-ui=multi-select][data-part=root][data-variant=plain]:has([data-part=chips]>:not([data-part=field]):focus-visible){box-shadow:none;outline-offset:calc(var(--slotted-focus-ring-offset, 2px) * -1)}[data-ui=multi-select][data-part=root]:has([data-part=chips]>:not([data-part=field]):focus-visible){outline:none}[data-ui=multi-select][data-part=root][data-open]:not([data-disabled]){border-color:var(--slotted-multi-select-open-border-color, var(--slotted-tone-accent-border))}[data-ui=multi-select][data-part=root][data-invalid]{--slotted-focus-ring-color: var( --slotted-multi-select-invalid-focus-ring-color, var(--slotted-focus-ring-color-invalid, Highlight) );--_invalid-edge-width: var( --slotted-multi-select-invalid-edge-width, var(--slotted-control-invalid-edge-width, 1px) );--_invalid-edge-color: var( --slotted-multi-select-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-multi-select-invalid-border-color, var(--slotted-tone-danger-border) );box-shadow:var(--_invalid-edge)}[data-ui=multi-select][data-part=root][data-invalid]:has([data-part=input]:focus-visible),[data-ui=multi-select][data-part=root][data-invalid]:has([data-part=chips]>:not([data-part=field]):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=multi-select][data-part=root][data-variant=plain][data-invalid]:has([data-part=input]:focus-visible),[data-ui=multi-select][data-part=root][data-variant=plain][data-invalid]:has([data-part=chips]>:not([data-part=field]):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=multi-select][data-part=root][data-invalid]{outline:var(--_invalid-edge-width) solid CanvasText;outline-offset:calc(-1 * (var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width)))}[data-ui=multi-select][data-part=root][data-invalid]: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=multi-select][data-part=root][data-variant=plain][data-invalid]: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=multi-select][data-part=root][data-invalid]:has([data-part=chips]>:not([data-part=field]):focus-visible),[data-ui=multi-select][data-part=root][data-variant=plain][data-invalid]:has([data-part=chips]>:not([data-part=field]):focus-visible){outline:var(--_invalid-edge-width) solid CanvasText;outline-offset:calc(-1 * (var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width)))}}[data-ui=multi-select][data-part=root][data-readonly]{background-color:var( --slotted-multi-select-readonly-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=multi-select][data-part=root][data-readonly] [data-part=arrow]{opacity:.5}[data-ui=multi-select][data-part=root][data-disabled],[data-ui=multi-select][data-part=root]:has([data-part=input]:disabled){background-color:var( --slotted-multi-select-disabled-background, var(--slotted-disabled-background) );border-color:var(--slotted-multi-select-disabled-border-color, var(--slotted-disabled-border));box-shadow:none;color:var(--slotted-multi-select-disabled-color, var(--slotted-disabled-foreground));cursor:not-allowed}[data-ui=multi-select]>:is([data-part=clear],[data-part=trigger]):hover:not(:disabled):not([data-disabled]){background-color:var( --slotted-multi-select-action-hover-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=multi-select]>:is([data-part=clear],[data-part=trigger]):active:not(:disabled):not([data-disabled]){background-color:var( --slotted-multi-select-action-active-background, var(--slotted-tone-secondary-subtle-active) )}[data-ui=multi-select]>: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=multi-select][data-part=positioner]{--_surface: var(--slotted-multi-select-surface, var(--slotted-surface-raised, #ffffff));--_text: var(--slotted-multi-select-content-text, var(--slotted-text, #0f172a));--_muted: var(--slotted-multi-select-content-text-muted, var(--slotted-text-muted, #5b6b7f));--_border-color: var( --slotted-multi-select-content-border-color, var(--slotted-border-subtle, #e2e8f0) );--_border-width: var(--slotted-border-width-thin, 1px);--_radius: var(--slotted-multi-select-content-radius, var(--slotted-radius-lg, 8px));--_shadow: var(--slotted-multi-select-content-shadow, var(--slotted-shadow-md));--_highlight: var( --slotted-multi-select-highlight, var(--slotted-tone-secondary-subtle-active) );--_highlight-active: var( --slotted-multi-select-highlight-active, var(--slotted-tone-accent-surface) );--_selected-color: var(--slotted-multi-select-selected-color, var(--slotted-tone-accent-text));--_inset-block: var( --slotted-multi-select-content-padding-block, var(--slotted-space-2, .25rem) );--_inset-inline: var( --slotted-multi-select-content-padding-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-multi-select-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);--_measure: var(--slotted-multi-select-measure, 24rem);position:absolute;inset-block-start:0;z-index:calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0));isolation:isolate;box-sizing:border-box;pointer-events:none;opacity:0;--_enter-distance: var(--slotted-space-2, .25rem);translate:0 calc(-1 * var(--_enter-distance));transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=multi-select][data-part=positioner][data-side=top]{translate:0 var(--_enter-distance)}[data-ui=multi-select][data-part=positioner]:is([data-side=left],[data-side=right]){translate:0 0}[data-ui=multi-select][data-part=positioner][data-open]{opacity:1;translate:0 0;transition:none}[data-ui=multi-select][data-part=positioner][data-open][data-positioned]{animation:slotted-multi-select-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter)}[data-ui=multi-select][data-part=positioner][data-open][data-positioned][data-side=top]{animation-name:slotted-multi-select-enter-up}[data-ui=multi-select][data-part=positioner][data-open][data-positioned]:is([data-side=left],[data-side=right]){animation-name:slotted-multi-select-fade}@keyframes slotted-multi-select-enter-down{0%{opacity:0;translate:0 calc(-1 * var(--_enter-distance))}}@keyframes slotted-multi-select-enter-up{0%{opacity:0;translate:0 var(--_enter-distance)}}@keyframes slotted-multi-select-fade{0%{opacity:0}}@media(prefers-reduced-motion:reduce){[data-ui=multi-select][data-part=positioner],[data-ui=multi-select][data-part=positioner][data-side=top],[data-ui=multi-select][data-part=positioner][data-side=left],[data-ui=multi-select][data-part=positioner][data-side=right]{translate:0 0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=multi-select][data-part=positioner][data-open][data-positioned],[data-ui=multi-select][data-part=positioner][data-open][data-positioned][data-side=top],[data-ui=multi-select][data-part=positioner][data-open][data-positioned][data-side=left],[data-ui=multi-select][data-part=positioner][data-open][data-positioned][data-side=right]{animation-name:slotted-multi-select-fade}}[data-ui=multi-select][data-part=positioner][data-detached]{visibility:hidden}[data-ui=multi-select][data-part=positioner][data-width=anchor]{inline-size:var(--slotted-positioner-anchor-width, auto)}[data-ui=multi-select][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=multi-select][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)}[data-ui=multi-select][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)}[data-ui=multi-select]>[data-part=content]{background:var(--_surface);border:var(--_border-width) solid var(--_border-color);border-radius:var(--_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-template-columns:auto minmax(0,1fr) 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=multi-select]>[data-part=content]:focus-visible{outline:none}[data-ui=multi-select] [data-part=chosen]{background:var(--_surface);border-block-end:var(--_border-width) solid var(--_border-color);box-sizing:border-box;display:flex;flex-wrap:wrap;gap:var(--slotted-space-2, .25rem);grid-column:1 / -1;inset-block-start:calc(-1 * var(--_inset-block));margin-block:calc(-1 * var(--_inset-block)) var(--_inset-block);margin-inline:calc(-1 * var(--_inset-inline));max-block-size:calc(2 * var(--slotted-target-min, 24px) + var(--slotted-space-2, .25rem) + var(--_inset-block));min-inline-size:0;overflow-y:auto;overscroll-behavior:contain;padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);position:sticky;z-index:1}[data-ui=multi-select] [data-part=group]{display:grid;grid-column:1 / -1;grid-template-columns:subgrid}[data-ui=multi-select] [data-part=item][hidden],[data-ui=multi-select] [data-part=group][hidden]{display:none}[data-ui=multi-select] [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-2, .25rem);padding-inline:var(--_item-inset)}[data-ui=multi-select] [data-part=item]{align-content:center;border-radius:var(--_item-radius);box-sizing:border-box;cursor:pointer;display:grid;grid-column:1 / -1;grid-template-columns:subgrid;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:var(--slotted-space-1, .125rem);-webkit-user-select:none;user-select:none;transition:background-color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard)),color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard))}[data-ui=multi-select] [data-part=item][data-current]{background-color:var(--_highlight);box-shadow:inset 0 0 0 var(--slotted-border-width-thin, 1px) var(--slotted-multi-select-highlight-ring, var(--slotted-tone-accent-border))}[data-ui=multi-select] [data-part=item]:not([data-disabled]):active{background-color:var(--_highlight-active)}[data-ui=multi-select] [data-part=item][data-selected]{color:var(--_selected-color)}[data-ui=multi-select] [data-part=item][data-selected]+[data-part=item][data-selected]{border-start-end-radius:0;border-start-start-radius:0}[data-ui=multi-select] [data-part=item][data-selected]:has(+[data-part=item][data-selected]){border-end-end-radius:0;border-end-start-radius:0}[data-ui=multi-select] [data-part=item][data-selected]>[data-part=label]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui=multi-select] [data-part=item][data-disabled]{color:var(--slotted-disabled-foreground, #64748b);cursor:not-allowed}[data-ui=multi-select] [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=multi-select] [data-part=item]>:is([data-part=indicator],[data-part=icon]){block-size:1lh}[data-ui=multi-select] [data-part=item]>[data-part=icon]{--slotted-icon-size: var(--_content-icon-size);align-items:center;display:flex;grid-column:1;grid-row:1;inline-size:var(--_content-icon-size);justify-content:center;justify-self:center;margin-inline-end:var(--_column-gap)}[data-ui=multi-select] [data-part=item]>[data-part=label]{grid-column:2;grid-row:1;min-inline-size:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}[data-ui=multi-select] [data-part=item]>[data-part=description]{color:var(--_muted);font-size:var(--_secondary-font-size);grid-column:2;grid-row:2;line-height:var(--slotted-line-height-sm, 1.45);min-inline-size:0;overflow-wrap:anywhere}[data-ui=multi-select] [data-part=item][data-disabled]>[data-part=description]{color:inherit}[data-ui=multi-select] [data-part=item]>[data-part=indicator]{--slotted-icon-size: var(--_content-icon-size);align-items:center;display:flex;grid-column:3;grid-row:1;inline-size:var(--_content-icon-size);justify-content:center;justify-self:end;margin-inline-start:var(--_column-gap);opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui=multi-select] [data-part=item][data-selected]>[data-part=indicator]{opacity:1}[data-ui=multi-select] [data-part=item][data-create]>[data-part=indicator]{opacity:1}[data-ui=multi-select] [data-part=item][data-create]>[data-part=label]{unicode-bidi:plaintext}[data-ui=multi-select] [data-part=separator]{background-color:var(--slotted-multi-select-separator-color, var(--_border-color));block-size:var(--_border-width);border:0;grid-column:1 / -1;margin-block:var(--slotted-space-2, .25rem);margin-inline:0}[data-ui=multi-select] :is([data-part=empty],[data-part=status]){color:var(--_muted);unicode-bidi:plaintext;grid-column:1 / -1;box-sizing:border-box;min-inline-size:12rem;max-inline-size:100%;padding-block:var(--slotted-space-5, .75rem);padding-inline:var(--_item-inset);text-align:center}[data-ui=multi-select] [data-part=status]:empty{display:none}[data-ui=multi-select] [data-part=placeholder]{display:grid;grid-column:1 / -1;padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_item-inset)}[data-ui=multi-select] [data-part=placeholder]>*{align-items:center;display:flex;min-block-size:var(--_item-height)}[data-ui=multi-select] [data-part=placeholder]>[data-ui=skeleton]{align-self:center}[data-ui=multi-select] [data-part=placeholder]>:nth-child(2) [data-ui=skeleton]{inline-size:78%}[data-ui=multi-select] [data-part=placeholder]>:nth-child(3) [data-ui=skeleton]{inline-size:56%}[data-ui=multi-select]>[data-part=content][data-loading]{cursor:progress}@media(forced-colors:active){[data-ui=multi-select] [data-part=item][data-current]{background-color:Highlight;color:HighlightText;forced-color-adjust:none}[data-ui=multi-select] [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"] }]
|
|
1693
|
+
}], ctorParameters: () => [], propDecorators: { 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"] }], valueRefuse: [{ type: i0.Output, args: ["valueRefuse"] }], loadMore: [{ type: i0.Output, args: ["loadMore"] }], 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 }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], total: [{ type: i0.Input, args: [{ isSignal: true, alias: "total", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], validateValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "validateValue", required: false }] }], delimiters: [{ type: i0.Input, args: [{ isSignal: true, alias: "delimiters", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], mount: [{ type: i0.Input, args: [{ isSignal: true, alias: "mount", required: false }] }], strategy: [{ type: i0.Input, args: [{ isSignal: true, alias: "strategy", required: false }] }], openOn: [{ type: i0.Input, args: [{ isSignal: true, alias: "openOn", required: false }] }], overflow: [{ type: i0.Input, args: [{ isSignal: true, alias: "overflow", required: false }] }], chosenOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "chosenOptions", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], sideOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideOffset", required: false }] }], alignOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignOffset", required: false }] }], collisionPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "collisionPadding", required: false }] }], addOnPaste: [{ type: i0.Input, args: [{ isSignal: true, alias: "addOnPaste", required: false }] }], allowDuplicates: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowDuplicates", required: false }] }], commitOnBlur: [{ type: i0.Input, args: [{ isSignal: true, alias: "commitOnBlur", required: false }] }], creatable: [{ type: i0.Input, args: [{ isSignal: true, alias: "creatable", required: false }] }], editable: [{ type: i0.Input, args: [{ isSignal: true, alias: "editable", required: false }] }], reorderable: [{ type: i0.Input, args: [{ isSignal: true, alias: "reorderable", required: false }] }], highlightMatch: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightMatch", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], loop: [{ type: i0.Input, args: [{ isSignal: true, alias: "loop", required: false }] }], closeOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnSelect", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closeOnOutsidePress: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnOutsidePress", required: false }] }], flip: [{ type: i0.Input, args: [{ isSignal: true, alias: "flip", required: false }] }], shift: [{ type: i0.Input, args: [{ isSignal: true, alias: "shift", required: false }] }], hideWhenDetached: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideWhenDetached", 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 }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], template: [{ type: i0.ViewChild, args: ['layer', { isSignal: true }] }], controlRef: [{ type: i0.ViewChild, args: ['control', { isSignal: true }] }], rowRef: [{ type: i0.ViewChild, args: ['row', { isSignal: true }] }], countRef: [{ type: i0.ViewChild, args: ['count', { isSignal: true }] }] } });
|
|
1694
|
+
|
|
1695
|
+
/**
|
|
1696
|
+
* One option, and the one that decides whether it belongs in the results.
|
|
1697
|
+
*
|
|
1698
|
+
* **Each option filters itself**, as `sl-combobox-item` does: the family holds
|
|
1699
|
+
* the query and the comparison, the option holds its own label, and the popup's
|
|
1700
|
+
* DOM is therefore the result set.
|
|
1701
|
+
*
|
|
1702
|
+
* **An option the set already holds is still an option.** It carries
|
|
1703
|
+
* `aria-selected="true"` and the check, and pressing it takes the value back
|
|
1704
|
+
* out; `chosenOptions="hide"` is the other answer, for a list long enough that
|
|
1705
|
+
* a reader would rather see only what is left.
|
|
1706
|
+
*
|
|
1707
|
+
* `label` is an input rather than projected content, which is the one place
|
|
1708
|
+
* this binding differs from its React counterpart: a comparison and a split
|
|
1709
|
+
* both need the text before the view exists.
|
|
1710
|
+
*/
|
|
1711
|
+
class SlMultiSelectItem {
|
|
1712
|
+
value = input.required(/* @ts-ignore */
|
|
1713
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1714
|
+
/** What the reader sees, what the filter compares, and what the mark splits. */
|
|
1715
|
+
label = input.required(/* @ts-ignore */
|
|
1716
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
1717
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1718
|
+
description = input(undefined, /* @ts-ignore */
|
|
1719
|
+
...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
|
|
1720
|
+
/** The glyph drawn in the first column, as a `Glyph` inside an `Icon` box. */
|
|
1721
|
+
icon = input(undefined, /* @ts-ignore */
|
|
1722
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
1723
|
+
position = input(undefined, { ...(ngDevMode ? { debugName: "position" } : /* istanbul ignore next */ {}), transform: (given) => given === undefined ? undefined : numberAttribute(given) });
|
|
1724
|
+
multiSelect = inject(SlMultiSelect);
|
|
1725
|
+
optionId = computed(() => this.multiSelect.optionId(this.value()), /* @ts-ignore */
|
|
1726
|
+
...(ngDevMode ? [{ debugName: "optionId" }] : /* istanbul ignore next */ []));
|
|
1727
|
+
selected = computed(() => this.multiSelect.value().includes(this.value()), /* @ts-ignore */
|
|
1728
|
+
...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
1729
|
+
current = computed(() => this.multiSelect.highlightedValue() === this.value(), /* @ts-ignore */
|
|
1730
|
+
...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
|
|
1731
|
+
/**
|
|
1732
|
+
* A full control refuses every value it does not already hold, and says so
|
|
1733
|
+
* where a reader can hear it. A control that silently ignores a press is a
|
|
1734
|
+
* control the reader presses again.
|
|
1735
|
+
*/
|
|
1736
|
+
inert = computed(() => this.disabled() || this.multiSelect.refuses(this.value()), /* @ts-ignore */
|
|
1737
|
+
...(ngDevMode ? [{ debugName: "inert" }] : /* istanbul ignore next */ []));
|
|
1738
|
+
visible = computed(() => this.multiSelect.matches(this.label()) &&
|
|
1739
|
+
!(this.selected() && this.multiSelect.resolvedChosenOptions() === 'hide'), /* @ts-ignore */
|
|
1740
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
1741
|
+
/**
|
|
1742
|
+
* The spans the query matched, from the same collator the filter used, drawn
|
|
1743
|
+
* by the `highlight` family inside this family's label. An `indexOf` beside
|
|
1744
|
+
* a locale-sensitive filter marks nothing on the row it has just matched.
|
|
1745
|
+
*/
|
|
1746
|
+
ranges = computed(() => {
|
|
1747
|
+
const query = this.multiSelect.query();
|
|
1748
|
+
if (!this.multiSelect.resolvedHighlightMatch() || query === '')
|
|
1749
|
+
return [];
|
|
1750
|
+
return matchRanges(this.label(), query, { locale: this.multiSelect.resolvedLocale() });
|
|
1751
|
+
}, /* @ts-ignore */
|
|
1752
|
+
...(ngDevMode ? [{ debugName: "ranges" }] : /* istanbul ignore next */ []));
|
|
1753
|
+
constructor() {
|
|
1754
|
+
/**
|
|
1755
|
+
* A hidden option is out of the result set, so the count and the label
|
|
1756
|
+
* registry both have to see the change. `hidden` rather than an `@if`,
|
|
1757
|
+
* because an option destroyed and rebuilt on every keystroke loses its
|
|
1758
|
+
* element identity — and with it whatever the reader's pointer was on.
|
|
1759
|
+
*/
|
|
1760
|
+
afterRenderEffect(() => {
|
|
1761
|
+
this.visible();
|
|
1762
|
+
this.multiSelect.registerLabel(this.value(), this.label());
|
|
1763
|
+
this.multiSelect.recount();
|
|
1764
|
+
});
|
|
1765
|
+
inject(DestroyRef).onDestroy(() => this.multiSelect.recount());
|
|
1766
|
+
}
|
|
1767
|
+
onPointerEnter(event) {
|
|
1768
|
+
if (this.inert())
|
|
1769
|
+
return;
|
|
1770
|
+
this.multiSelect.setHighlighted(this.value(), 'pointer', event);
|
|
1771
|
+
}
|
|
1772
|
+
/**
|
|
1773
|
+
* Only to stop the browser moving focus off the field: an option cannot hold
|
|
1774
|
+
* focus, so a press on it would take focus to the body and the blur path
|
|
1775
|
+
* would run in the middle of a choice.
|
|
1776
|
+
*/
|
|
1777
|
+
onPointerDown(event) {
|
|
1778
|
+
if (event.defaultPrevented)
|
|
1779
|
+
return;
|
|
1780
|
+
event.preventDefault();
|
|
1781
|
+
}
|
|
1782
|
+
onClick(event) {
|
|
1783
|
+
if (this.inert())
|
|
1784
|
+
return;
|
|
1785
|
+
this.multiSelect.toggle(this.value(), 'select', event);
|
|
1786
|
+
this.multiSelect.setInputValue('', 'select', event);
|
|
1787
|
+
if (this.multiSelect.resolvedCloseOnSelect())
|
|
1788
|
+
this.multiSelect.setOpen(false, 'select', event);
|
|
1789
|
+
this.multiSelect.focus();
|
|
1790
|
+
}
|
|
1791
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMultiSelectItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1792
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlMultiSelectItem, isStandalone: true, selector: "sl-multi-select-item", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-part": "item", "role": "option" }, listeners: { "click": "onClick($event)", "pointerdown": "onPointerDown($event)", "pointerenter": "onPointerEnter($event)" }, properties: { "id": "optionId()", "hidden": "!visible()", "attr.data-value": "value()", "attr.data-text-value": "label()", "attr.aria-selected": "selected()", "attr.aria-disabled": "inert() ? true : null", "attr.aria-posinset": "position() ?? null", "attr.aria-setsize": "position() === undefined ? null : (multiSelect.total() ?? null)", "attr.data-disabled": "disabled() ? '' : null", "attr.data-selected": "selected() ? '' : null", "attr.data-current": "current() ? '' : null" } }, exportAs: ["slMultiSelectItem"], ngImport: i0, template: `
|
|
1793
|
+
@if (icon(); as glyph) {
|
|
1794
|
+
<span data-part="icon"
|
|
1795
|
+
><span slIcon><svg slGlyph [name]="glyph"></svg></span
|
|
1796
|
+
></span>
|
|
1797
|
+
}
|
|
1798
|
+
<span data-part="label">
|
|
1799
|
+
@if (ranges().length > 0) {
|
|
1800
|
+
<span slHighlight [text]="label()" [ranges]="ranges()"></span>
|
|
1801
|
+
} @else {
|
|
1802
|
+
{{ label() }}
|
|
1803
|
+
}
|
|
1804
|
+
</span>
|
|
1805
|
+
@if (description()) {
|
|
1806
|
+
<span data-part="description">{{ description() }}</span>
|
|
1807
|
+
}
|
|
1808
|
+
<span data-part="indicator"
|
|
1809
|
+
><span slIcon><svg slGlyph name="check"></svg></span
|
|
1810
|
+
></span>
|
|
1811
|
+
`, isInline: true, dependencies: [{ 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1812
|
+
}
|
|
1813
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMultiSelectItem, decorators: [{
|
|
1814
|
+
type: Component,
|
|
1815
|
+
args: [{
|
|
1816
|
+
selector: 'sl-multi-select-item',
|
|
1817
|
+
standalone: true,
|
|
1818
|
+
exportAs: 'slMultiSelectItem',
|
|
1819
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1820
|
+
encapsulation: ViewEncapsulation.None,
|
|
1821
|
+
imports: [SlGlyph, SlHighlight, SlIcon],
|
|
1822
|
+
host: {
|
|
1823
|
+
'data-part': 'item',
|
|
1824
|
+
role: 'option',
|
|
1825
|
+
'[id]': 'optionId()',
|
|
1826
|
+
'[hidden]': '!visible()',
|
|
1827
|
+
'[attr.data-value]': 'value()',
|
|
1828
|
+
'[attr.data-text-value]': 'label()',
|
|
1829
|
+
'[attr.aria-selected]': 'selected()',
|
|
1830
|
+
'[attr.aria-disabled]': 'inert() ? true : null',
|
|
1831
|
+
'[attr.aria-posinset]': 'position() ?? null',
|
|
1832
|
+
'[attr.aria-setsize]': 'position() === undefined ? null : (multiSelect.total() ?? null)',
|
|
1833
|
+
'[attr.data-disabled]': "disabled() ? '' : null",
|
|
1834
|
+
'[attr.data-selected]': "selected() ? '' : null",
|
|
1835
|
+
'[attr.data-current]': "current() ? '' : null",
|
|
1836
|
+
'(click)': 'onClick($event)',
|
|
1837
|
+
'(pointerdown)': 'onPointerDown($event)',
|
|
1838
|
+
'(pointerenter)': 'onPointerEnter($event)',
|
|
1839
|
+
},
|
|
1840
|
+
template: `
|
|
1841
|
+
@if (icon(); as glyph) {
|
|
1842
|
+
<span data-part="icon"
|
|
1843
|
+
><span slIcon><svg slGlyph [name]="glyph"></svg></span
|
|
1844
|
+
></span>
|
|
1845
|
+
}
|
|
1846
|
+
<span data-part="label">
|
|
1847
|
+
@if (ranges().length > 0) {
|
|
1848
|
+
<span slHighlight [text]="label()" [ranges]="ranges()"></span>
|
|
1849
|
+
} @else {
|
|
1850
|
+
{{ label() }}
|
|
1851
|
+
}
|
|
1852
|
+
</span>
|
|
1853
|
+
@if (description()) {
|
|
1854
|
+
<span data-part="description">{{ description() }}</span>
|
|
1855
|
+
}
|
|
1856
|
+
<span data-part="indicator"
|
|
1857
|
+
><span slIcon><svg slGlyph name="check"></svg></span
|
|
1858
|
+
></span>
|
|
1859
|
+
`,
|
|
1860
|
+
}]
|
|
1861
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }] } });
|
|
1862
|
+
/**
|
|
1863
|
+
* A set of options under a heading, named by `aria-labelledby` pointing at its
|
|
1864
|
+
* own label. A group whose every option was filtered away is hidden: a heading
|
|
1865
|
+
* with no options under it says a category matched when none did.
|
|
1866
|
+
*/
|
|
1867
|
+
class SlMultiSelectGroup {
|
|
1868
|
+
label = input.required(/* @ts-ignore */
|
|
1869
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
1870
|
+
labelId = `sl-multi-select-group-${Math.random().toString(36).slice(2, 8)}`;
|
|
1871
|
+
host = inject((ElementRef));
|
|
1872
|
+
multiSelect = inject(SlMultiSelect);
|
|
1873
|
+
empty = signal(false, /* @ts-ignore */
|
|
1874
|
+
...(ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []));
|
|
1875
|
+
constructor() {
|
|
1876
|
+
/**
|
|
1877
|
+
* Measured after render rather than computed from the query: whether a
|
|
1878
|
+
* group still holds an option is a fact about the DOM its own children
|
|
1879
|
+
* produced, and a computed that read the DOM would be right once and stale
|
|
1880
|
+
* from then on. The set is read as well, because hiding a chosen option can
|
|
1881
|
+
* empty a group without the query moving at all.
|
|
1882
|
+
*/
|
|
1883
|
+
afterRenderEffect(() => {
|
|
1884
|
+
this.multiSelect.query();
|
|
1885
|
+
this.multiSelect.value();
|
|
1886
|
+
const element = this.host.nativeElement;
|
|
1887
|
+
this.empty.set(element.querySelector("[data-part='item']:not([hidden])") === null);
|
|
1888
|
+
});
|
|
1889
|
+
}
|
|
1890
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMultiSelectGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1891
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlMultiSelectGroup, isStandalone: true, selector: "sl-multi-select-group", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "data-part": "group", "role": "group" }, properties: { "attr.aria-labelledby": "labelId", "hidden": "empty()" } }, exportAs: ["slMultiSelectGroup"], ngImport: i0, template: `
|
|
1892
|
+
<div data-part="group-label" [id]="labelId">{{ label() }}</div>
|
|
1893
|
+
<ng-content />
|
|
1894
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1895
|
+
}
|
|
1896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMultiSelectGroup, decorators: [{
|
|
1897
|
+
type: Component,
|
|
1898
|
+
args: [{
|
|
1899
|
+
selector: 'sl-multi-select-group',
|
|
1900
|
+
standalone: true,
|
|
1901
|
+
exportAs: 'slMultiSelectGroup',
|
|
1902
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1903
|
+
encapsulation: ViewEncapsulation.None,
|
|
1904
|
+
host: {
|
|
1905
|
+
'data-part': 'group',
|
|
1906
|
+
role: 'group',
|
|
1907
|
+
'[attr.aria-labelledby]': 'labelId',
|
|
1908
|
+
'[hidden]': 'empty()',
|
|
1909
|
+
},
|
|
1910
|
+
template: `
|
|
1911
|
+
<div data-part="group-label" [id]="labelId">{{ label() }}</div>
|
|
1912
|
+
<ng-content />
|
|
1913
|
+
`,
|
|
1914
|
+
}]
|
|
1915
|
+
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }] } });
|
|
1916
|
+
/** A line between two sets of options. */
|
|
1917
|
+
class SlMultiSelectSeparator {
|
|
1918
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMultiSelectSeparator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1919
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: SlMultiSelectSeparator, isStandalone: true, selector: "sl-multi-select-separator", host: { attributes: { "data-part": "separator", "role": "separator" } }, exportAs: ["slMultiSelectSeparator"], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1920
|
+
}
|
|
1921
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMultiSelectSeparator, decorators: [{
|
|
1922
|
+
type: Component,
|
|
1923
|
+
args: [{
|
|
1924
|
+
selector: 'sl-multi-select-separator',
|
|
1925
|
+
standalone: true,
|
|
1926
|
+
exportAs: 'slMultiSelectSeparator',
|
|
1927
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1928
|
+
encapsulation: ViewEncapsulation.None,
|
|
1929
|
+
host: { 'data-part': 'separator', role: 'separator' },
|
|
1930
|
+
template: '',
|
|
1931
|
+
}]
|
|
1932
|
+
}] });
|
|
1933
|
+
|
|
1934
|
+
/**
|
|
1935
|
+
* Generated bundle index. Do not edit.
|
|
1936
|
+
*/
|
|
1937
|
+
|
|
1938
|
+
export { MULTI_SELECT_DEFAULTS, MULTI_SELECT_FALLBACK, SlMultiSelect, SlMultiSelectGroup, SlMultiSelectItem, SlMultiSelectSeparator, injectMultiSelectDefaults, provideMultiSelectDefaults };
|
|
1939
|
+
//# sourceMappingURL=slotted-angular-multi-select.mjs.map
|