@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,1042 @@
|
|
|
1
|
+
import { sameOpenValues, nextOpenValues } from '@slotted/core/disclosure';
|
|
2
|
+
import { createWidthGate } from '@slotted/core/measure';
|
|
3
|
+
import { createControllable } from '@slotted/core/state';
|
|
4
|
+
import { SlAppShellNav } from '@slotted/angular/app-shell';
|
|
5
|
+
import { injectMessages } from '@slotted/angular/i18n';
|
|
6
|
+
import { sideNavigationMessages } from '@slotted/core/i18n';
|
|
7
|
+
import * as i0 from '@angular/core';
|
|
8
|
+
import { InjectionToken, inject, Injectable, model, input, booleanAttribute, numberAttribute, output, HostAttributeToken, ElementRef, computed, signal, DestroyRef, afterNextRender, effect, ViewEncapsulation, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
|
|
9
|
+
import { createDismissableLayer } from '@slotted/core/dismissable-layer';
|
|
10
|
+
import { createPortalRoot } from '@slotted/core/portal';
|
|
11
|
+
import { createPositioner } from '@slotted/core/positioner';
|
|
12
|
+
import { createPresence } from '@slotted/core/presence';
|
|
13
|
+
import { truncateMiddle } from '@slotted/core/text';
|
|
14
|
+
import { SlSkeleton } from '@slotted/angular/skeleton';
|
|
15
|
+
import * as i1 from '@slotted/angular/tooltip';
|
|
16
|
+
import { SlTooltip, SlTooltipLayer, SlTooltipContent, provideTooltipDefaults } from '@slotted/angular/tooltip';
|
|
17
|
+
import { SlGlyph, SlIcon } from '@slotted/angular/icon';
|
|
18
|
+
|
|
19
|
+
/** The contract's defaults, and the width the rail is read at. */
|
|
20
|
+
const SIDE_NAVIGATION_FALLBACK = {
|
|
21
|
+
autoExpand: true,
|
|
22
|
+
compactAt: 96,
|
|
23
|
+
guides: true,
|
|
24
|
+
landmark: true,
|
|
25
|
+
mode: 'auto',
|
|
26
|
+
multiple: true,
|
|
27
|
+
size: 'md',
|
|
28
|
+
truncate: 'end',
|
|
29
|
+
};
|
|
30
|
+
const SIDE_NAVIGATION_DEFAULTS = new InjectionToken('slotted side-navigation defaults', { providedIn: 'root', factory: () => SIDE_NAVIGATION_FALLBACK });
|
|
31
|
+
/**
|
|
32
|
+
* An application decides once how its columns read — the rail's width, the
|
|
33
|
+
* cut, whether groups open one at a time — rather than repeating it on every
|
|
34
|
+
* navigation in a product. A column that states any of them itself still wins.
|
|
35
|
+
* Its words come from the language in force (`provideSlotted`).
|
|
36
|
+
*/
|
|
37
|
+
function provideSideNavigationDefaults(defaults) {
|
|
38
|
+
return {
|
|
39
|
+
provide: SIDE_NAVIGATION_DEFAULTS,
|
|
40
|
+
useFactory: () => ({ ...SIDE_NAVIGATION_FALLBACK, ...defaults }),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/** What a column renders as here, before it states anything of its own. */
|
|
44
|
+
function injectSideNavigationDefaults() {
|
|
45
|
+
return inject(SIDE_NAVIGATION_DEFAULTS);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Application-scoped rather than module-scoped, for the reason `field` records:
|
|
49
|
+
* a module-level counter produces colliding sequences when two applications
|
|
50
|
+
* render in one server process, and the server and the client sequences must
|
|
51
|
+
* match for hydration.
|
|
52
|
+
*/
|
|
53
|
+
class SlSideNavigationIdFactory {
|
|
54
|
+
count = 0;
|
|
55
|
+
next() {
|
|
56
|
+
this.count += 1;
|
|
57
|
+
return `slotted-side-navigation-${this.count}`;
|
|
58
|
+
}
|
|
59
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationIdFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
60
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationIdFactory, providedIn: 'root' });
|
|
61
|
+
}
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationIdFactory, decorators: [{
|
|
63
|
+
type: Injectable,
|
|
64
|
+
args: [{ providedIn: 'root' }]
|
|
65
|
+
}] });
|
|
66
|
+
|
|
67
|
+
/** Every row a reader can land on, in the order the DOM holds them. */
|
|
68
|
+
const SIDE_NAVIGATION_ROW_SELECTOR = '[data-part="link"], [data-part="trigger"]';
|
|
69
|
+
/**
|
|
70
|
+
* A row the keyboard may land on: not inside a closed group. Read from the
|
|
71
|
+
* structure rather than from the layout, so the answer is the same before the
|
|
72
|
+
* stylesheet has loaded and in an environment with no layout at all.
|
|
73
|
+
*/
|
|
74
|
+
function visible(element, root) {
|
|
75
|
+
for (let group = element.closest('[data-part="group"]'); group !== null && root.contains(group); group = group.parentElement?.closest('[data-part="group"]') ?? null) {
|
|
76
|
+
if (!group.parentElement?.hasAttribute('data-expanded'))
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* A column of destinations: nested groups, a current destination, and a rail
|
|
83
|
+
* when the room it has is under `compactAt` pixels.
|
|
84
|
+
*
|
|
85
|
+
* The directive goes on the consumer's own element — `<nav slSideNavigation>`
|
|
86
|
+
* standing alone, `<div slSideNavigation>` inside `app-shell`'s nav region,
|
|
87
|
+
* which is already the navigation landmark. `landmark` decides whether the
|
|
88
|
+
* name is written; the element is the consumer's, as it is everywhere in this
|
|
89
|
+
* ecosystem.
|
|
90
|
+
*
|
|
91
|
+
* **Three values, three models.** `value` is the current destination and
|
|
92
|
+
* `expanded` the set of open groups; `flyout` is the one group shown beside the
|
|
93
|
+
* rail, transient by design, and it never writes into `expanded`.
|
|
94
|
+
*
|
|
95
|
+
* **The rail is a width.** The stylesheet decides the picture from the root's
|
|
96
|
+
* own inline size, before any script; the width gate here writes
|
|
97
|
+
* `data-compact` afterwards, and that is what turns on the tooltip and the
|
|
98
|
+
* flyout.
|
|
99
|
+
*/
|
|
100
|
+
class SlSideNavigation {
|
|
101
|
+
/** The current destination's value. Two-way, so a template may bind it directly. */
|
|
102
|
+
value = model(null, /* @ts-ignore */
|
|
103
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
104
|
+
/** The set of open groups. */
|
|
105
|
+
expanded = model([], /* @ts-ignore */
|
|
106
|
+
...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
|
|
107
|
+
/** The one group presented beside the rail, or null. */
|
|
108
|
+
flyout = model(null, /* @ts-ignore */
|
|
109
|
+
...(ngDevMode ? [{ debugName: "flyout" }] : /* istanbul ignore next */ []));
|
|
110
|
+
size = input(undefined, /* @ts-ignore */
|
|
111
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
112
|
+
mode = input(undefined, /* @ts-ignore */
|
|
113
|
+
...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
114
|
+
truncate = input(undefined, /* @ts-ignore */
|
|
115
|
+
...(ngDevMode ? [{ debugName: "truncate" }] : /* istanbul ignore next */ []));
|
|
116
|
+
multiple = input(undefined, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: (state) => (state === undefined ? undefined : booleanAttribute(state)) });
|
|
117
|
+
autoExpand = input(undefined, { ...(ngDevMode ? { debugName: "autoExpand" } : /* istanbul ignore next */ {}), transform: (state) => (state === undefined ? undefined : booleanAttribute(state)) });
|
|
118
|
+
guides = input(undefined, { ...(ngDevMode ? { debugName: "guides" } : /* istanbul ignore next */ {}), transform: (state) => (state === undefined ? undefined : booleanAttribute(state)) });
|
|
119
|
+
/**
|
|
120
|
+
* Whether the root is the navigation landmark. Unstated, it is one on its
|
|
121
|
+
* own and not inside `app-shell`'s nav region, which already is.
|
|
122
|
+
*/
|
|
123
|
+
landmark = input(undefined, { ...(ngDevMode ? { debugName: "landmark" } : /* istanbul ignore next */ {}), transform: (state) => (state === undefined ? undefined : booleanAttribute(state)) });
|
|
124
|
+
/** The width, in CSS pixels, under which `mode="auto"` is compact. */
|
|
125
|
+
compactAt = input(undefined, { ...(ngDevMode ? { debugName: "compactAt" } : /* istanbul ignore next */ {}), transform: (state) => (state === undefined ? undefined : numberAttribute(state)) });
|
|
126
|
+
/**
|
|
127
|
+
* Words laid over the catalog of the language in force: the landmark's name
|
|
128
|
+
* (`navigation`). A static `aria-label` still wins.
|
|
129
|
+
*/
|
|
130
|
+
messages = input(undefined, /* @ts-ignore */
|
|
131
|
+
...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
|
|
132
|
+
/** One output for one transition, carrying the reason and the event. */
|
|
133
|
+
valueChangeRequest = output();
|
|
134
|
+
expandedChangeRequest = output();
|
|
135
|
+
flyoutChangeRequest = output();
|
|
136
|
+
defaults = injectSideNavigationDefaults();
|
|
137
|
+
shell = inject(SlAppShellNav, { optional: true });
|
|
138
|
+
/** The name the consumer wrote, kept over the family's own. */
|
|
139
|
+
writtenLabel = inject(new HostAttributeToken('aria-label'), { optional: true });
|
|
140
|
+
host = inject(ElementRef).nativeElement;
|
|
141
|
+
resolvedSize = computed(() => this.size() ?? this.defaults.size, /* @ts-ignore */
|
|
142
|
+
...(ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []));
|
|
143
|
+
resolvedMode = computed(() => this.mode() ?? this.defaults.mode, /* @ts-ignore */
|
|
144
|
+
...(ngDevMode ? [{ debugName: "resolvedMode" }] : /* istanbul ignore next */ []));
|
|
145
|
+
resolvedTruncate = computed(() => this.truncate() ?? this.defaults.truncate, /* @ts-ignore */
|
|
146
|
+
...(ngDevMode ? [{ debugName: "resolvedTruncate" }] : /* istanbul ignore next */ []));
|
|
147
|
+
resolvedMultiple = computed(() => this.multiple() ?? this.defaults.multiple, /* @ts-ignore */
|
|
148
|
+
...(ngDevMode ? [{ debugName: "resolvedMultiple" }] : /* istanbul ignore next */ []));
|
|
149
|
+
resolvedAutoExpand = computed(() => this.autoExpand() ?? this.defaults.autoExpand, /* @ts-ignore */
|
|
150
|
+
...(ngDevMode ? [{ debugName: "resolvedAutoExpand" }] : /* istanbul ignore next */ []));
|
|
151
|
+
resolvedGuides = computed(() => this.guides() ?? this.defaults.guides, /* @ts-ignore */
|
|
152
|
+
...(ngDevMode ? [{ debugName: "resolvedGuides" }] : /* istanbul ignore next */ []));
|
|
153
|
+
resolvedCompactAt = computed(() => this.compactAt() ?? this.defaults.compactAt, /* @ts-ignore */
|
|
154
|
+
...(ngDevMode ? [{ debugName: "resolvedCompactAt" }] : /* istanbul ignore next */ []));
|
|
155
|
+
resolvedLandmark = computed(() => this.landmark() ?? (this.shell === null ? this.defaults.landmark : false), /* @ts-ignore */
|
|
156
|
+
...(ngDevMode ? [{ debugName: "resolvedLandmark" }] : /* istanbul ignore next */ []));
|
|
157
|
+
/** The family's words in the language in force, with this column's `messages` laid over them. */
|
|
158
|
+
t = injectMessages(sideNavigationMessages, this.messages);
|
|
159
|
+
ariaLabel = computed(() => this.resolvedLandmark() ? (this.writtenLabel ?? this.t('navigation')) : null, /* @ts-ignore */
|
|
160
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
161
|
+
/** Whether the root is under `compactAt`, measured. */
|
|
162
|
+
narrow = signal(false, /* @ts-ignore */
|
|
163
|
+
...(ngDevMode ? [{ debugName: "narrow" }] : /* istanbul ignore next */ []));
|
|
164
|
+
compact = computed(() => this.resolvedMode() === 'compact' || (this.resolvedMode() === 'auto' && this.narrow()), /* @ts-ignore */
|
|
165
|
+
...(ngDevMode ? [{ debugName: "compact" }] : /* istanbul ignore next */ []));
|
|
166
|
+
/** Moves when the root was resized or the fonts arrived, so a label measures again. */
|
|
167
|
+
measureTick = signal(0, /* @ts-ignore */
|
|
168
|
+
...(ngDevMode ? [{ debugName: "measureTick" }] : /* istanbul ignore next */ []));
|
|
169
|
+
/** The layer the flyout is drawn in, so the keyboard can walk into it. */
|
|
170
|
+
flyoutNode = signal(null, /* @ts-ignore */
|
|
171
|
+
...(ngDevMode ? [{ debugName: "flyoutNode" }] : /* istanbul ignore next */ []));
|
|
172
|
+
/** Every item's parent, so the ancestors of a destination can be opened. */
|
|
173
|
+
parents = new Map();
|
|
174
|
+
constructor() {
|
|
175
|
+
const destroyRef = inject(DestroyRef);
|
|
176
|
+
/* After the first render and not in the constructor: a measure there
|
|
177
|
+
forced a style pass before any binding existed — `compactAt` was still
|
|
178
|
+
its default, and inside app-shell the column resolved at rail width and
|
|
179
|
+
then animated open. */
|
|
180
|
+
afterNextRender(() => {
|
|
181
|
+
if (typeof ResizeObserver === 'undefined')
|
|
182
|
+
return;
|
|
183
|
+
const gate = createWidthGate(this.host, {
|
|
184
|
+
at: this.resolvedCompactAt(),
|
|
185
|
+
onChange: (narrow) => this.narrow.set(narrow),
|
|
186
|
+
});
|
|
187
|
+
this.narrow.set(gate.narrow());
|
|
188
|
+
destroyRef.onDestroy(() => gate.destroy());
|
|
189
|
+
const observer = new ResizeObserver(() => this.measureTick.update((tick) => tick + 1));
|
|
190
|
+
observer.observe(this.host);
|
|
191
|
+
destroyRef.onDestroy(() => observer.disconnect());
|
|
192
|
+
void this.host.ownerDocument.fonts?.ready.then(() => this.measureTick.update((tick) => tick + 1));
|
|
193
|
+
});
|
|
194
|
+
/* Compact mode ending takes the flyout with it: there is no rail to stand beside. */
|
|
195
|
+
effect(() => {
|
|
196
|
+
if (!this.compact() && this.flyout() !== null)
|
|
197
|
+
this.setFlyout(null, 'resize');
|
|
198
|
+
});
|
|
199
|
+
/* The ancestors of the current destination open, with the reason select. */
|
|
200
|
+
effect(() => {
|
|
201
|
+
const current = this.value();
|
|
202
|
+
if (!this.resolvedAutoExpand() || current === null)
|
|
203
|
+
return;
|
|
204
|
+
const open = this.expanded();
|
|
205
|
+
const missing = [];
|
|
206
|
+
for (let parent = this.parents.get(current) ?? null; parent !== null; parent = this.parents.get(parent) ?? null) {
|
|
207
|
+
if (!open.includes(parent))
|
|
208
|
+
missing.push(parent);
|
|
209
|
+
}
|
|
210
|
+
if (missing.length === 0)
|
|
211
|
+
return;
|
|
212
|
+
const next = this.resolvedMultiple()
|
|
213
|
+
? [...open, ...missing]
|
|
214
|
+
: [missing[missing.length - 1]];
|
|
215
|
+
this.requestExpanded(next, 'select');
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
isExpanded(value) {
|
|
219
|
+
return this.expanded().includes(value);
|
|
220
|
+
}
|
|
221
|
+
/** An item says where it stands. */
|
|
222
|
+
registerItem(value, parent) {
|
|
223
|
+
this.parents.set(value, parent);
|
|
224
|
+
return () => {
|
|
225
|
+
this.parents.delete(value);
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
requestExpanded(next, reason, source) {
|
|
229
|
+
const state = createControllable({
|
|
230
|
+
equals: sameOpenValues,
|
|
231
|
+
initial: this.expanded(),
|
|
232
|
+
onRequest: (request) => this.expandedChangeRequest.emit(request),
|
|
233
|
+
});
|
|
234
|
+
if (state.request(next, reason, source))
|
|
235
|
+
this.expanded.set(next);
|
|
236
|
+
}
|
|
237
|
+
/** Asks the set of open groups to include or drop one value. */
|
|
238
|
+
toggleExpanded(value, next, reason, source) {
|
|
239
|
+
const current = this.expanded();
|
|
240
|
+
if (current.includes(value) === next)
|
|
241
|
+
return;
|
|
242
|
+
this.requestExpanded(nextOpenValues(current, value, { multiple: this.resolvedMultiple() }), reason, source);
|
|
243
|
+
}
|
|
244
|
+
/** Asks the flyout to show one group, or none. */
|
|
245
|
+
setFlyout(next, reason, source) {
|
|
246
|
+
const state = createControllable({
|
|
247
|
+
initial: this.flyout(),
|
|
248
|
+
onRequest: (request) => this.flyoutChangeRequest.emit(request),
|
|
249
|
+
});
|
|
250
|
+
if (state.request(next, reason, source))
|
|
251
|
+
this.flyout.set(next);
|
|
252
|
+
}
|
|
253
|
+
/** Asks the current destination to move. */
|
|
254
|
+
select(next, reason, source) {
|
|
255
|
+
const state = createControllable({
|
|
256
|
+
initial: this.value(),
|
|
257
|
+
onRequest: (request) => this.valueChangeRequest.emit(request),
|
|
258
|
+
});
|
|
259
|
+
if (state.request(next, reason, source))
|
|
260
|
+
this.value.set(next);
|
|
261
|
+
}
|
|
262
|
+
/** Opens one group, with the reason `programmatic`. */
|
|
263
|
+
expand(value) {
|
|
264
|
+
this.toggleExpanded(value, true, 'programmatic');
|
|
265
|
+
}
|
|
266
|
+
/** Closes one group, with the reason `programmatic`. */
|
|
267
|
+
collapse(value) {
|
|
268
|
+
this.toggleExpanded(value, false, 'programmatic');
|
|
269
|
+
}
|
|
270
|
+
/** Focuses the first link or trigger in the column. */
|
|
271
|
+
focus() {
|
|
272
|
+
this.rows()[0]?.focus();
|
|
273
|
+
}
|
|
274
|
+
/** The rows the arrow keys walk, with the flyout's spliced in after its trigger. */
|
|
275
|
+
rows() {
|
|
276
|
+
const inColumn = [
|
|
277
|
+
...this.host.querySelectorAll(SIDE_NAVIGATION_ROW_SELECTOR),
|
|
278
|
+
].filter((row) => visible(row, this.host));
|
|
279
|
+
const layer = this.flyoutNode();
|
|
280
|
+
const open = this.flyout();
|
|
281
|
+
if (layer === null || open === null)
|
|
282
|
+
return inColumn;
|
|
283
|
+
const inLayer = [...layer.querySelectorAll(SIDE_NAVIGATION_ROW_SELECTOR)];
|
|
284
|
+
const at = inColumn.findIndex((row) => row.closest('[data-part="item"]')?.getAttribute('data-value') === open);
|
|
285
|
+
if (at === -1)
|
|
286
|
+
return [...inColumn, ...inLayer];
|
|
287
|
+
return [...inColumn.slice(0, at + 1), ...inLayer, ...inColumn.slice(at + 1)];
|
|
288
|
+
}
|
|
289
|
+
onKeyDown(event) {
|
|
290
|
+
if (event.defaultPrevented)
|
|
291
|
+
return;
|
|
292
|
+
const target = event.target;
|
|
293
|
+
if (!target.matches(SIDE_NAVIGATION_ROW_SELECTOR))
|
|
294
|
+
return;
|
|
295
|
+
if (event.key === 'Escape') {
|
|
296
|
+
/* Inside the layer, the dismissable layer has already answered. */
|
|
297
|
+
if (this.flyoutNode()?.contains(target))
|
|
298
|
+
return;
|
|
299
|
+
const group = target.closest('[data-part="group"]');
|
|
300
|
+
const item = group?.parentElement;
|
|
301
|
+
const value = item?.getAttribute('data-value');
|
|
302
|
+
if (!group || !item || !value || !item.hasAttribute('data-expanded'))
|
|
303
|
+
return;
|
|
304
|
+
event.preventDefault();
|
|
305
|
+
this.toggleExpanded(value, false, 'escape', event);
|
|
306
|
+
item.querySelector(':scope > [data-part="trigger"]')?.focus();
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
const step = event.key === 'ArrowDown' || event.key === 'ArrowRight'
|
|
310
|
+
? 1
|
|
311
|
+
: event.key === 'ArrowUp' || event.key === 'ArrowLeft'
|
|
312
|
+
? -1
|
|
313
|
+
: 0;
|
|
314
|
+
if (step === 0 && event.key !== 'Home' && event.key !== 'End')
|
|
315
|
+
return;
|
|
316
|
+
const all = this.rows();
|
|
317
|
+
if (all.length === 0)
|
|
318
|
+
return;
|
|
319
|
+
event.preventDefault();
|
|
320
|
+
const index = all.indexOf(target);
|
|
321
|
+
const next = event.key === 'Home'
|
|
322
|
+
? 0
|
|
323
|
+
: event.key === 'End'
|
|
324
|
+
? all.length - 1
|
|
325
|
+
: Math.min(all.length - 1, Math.max(0, index + step));
|
|
326
|
+
all[next]?.focus();
|
|
327
|
+
}
|
|
328
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigation, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
329
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlSideNavigation, isStandalone: true, selector: "[slSideNavigation]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, flyout: { classPropertyName: "flyout", publicName: "flyout", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, truncate: { classPropertyName: "truncate", publicName: "truncate", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, autoExpand: { classPropertyName: "autoExpand", publicName: "autoExpand", isSignal: true, isRequired: false, transformFunction: null }, guides: { classPropertyName: "guides", publicName: "guides", isSignal: true, isRequired: false, transformFunction: null }, landmark: { classPropertyName: "landmark", publicName: "landmark", isSignal: true, isRequired: false, transformFunction: null }, compactAt: { classPropertyName: "compactAt", publicName: "compactAt", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", expanded: "expandedChange", flyout: "flyoutChange", valueChangeRequest: "valueChangeRequest", expandedChangeRequest: "expandedChangeRequest", flyoutChangeRequest: "flyoutChangeRequest" }, host: { attributes: { "data-ui": "side-navigation", "data-part": "root" }, listeners: { "keydown": "onKeyDown($event)" }, properties: { "attr.aria-label": "ariaLabel()", "attr.data-mode": "resolvedMode()", "attr.data-size": "resolvedSize()", "attr.data-truncate": "resolvedTruncate()", "attr.data-guides": "resolvedGuides() ? '' : null", "attr.data-compact": "compact() ? '' : null" } }, exportAs: ["slSideNavigation"], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["@layer slotted.components{[data-ui=side-navigation]{--_row-height: var(--slotted-app-shell-row-height, var(--slotted-control-height-md, 34px));--_mark: var(--slotted-app-shell-row-mark, var(--_row-height));--_inset: var(--slotted-app-shell-row-inset, var(--slotted-space-4, .5rem));--_standoff: min(var(--slotted-space-2, .25rem), var(--_inset));--_gap: var(--slotted-app-shell-row-gap, var(--slotted-control-gap-md, 8px));--_font-size: var(--slotted-app-shell-row-font-size, var(--slotted-font-size-sm, .8125rem));--_line-height: var(--slotted-app-shell-row-line-height, var(--slotted-line-height-sm, 1.45));--_icon-size: var(--slotted-control-icon-size-md, 16px);--_description-font-size: var(--slotted-font-size-xs, .75rem);--_section-font-size: var(--slotted-font-size-xs, .75rem);--_indent: var(--slotted-side-navigation-indent, calc(var(--_mark) + var(--_gap)));--_indent-step: var(--slotted-side-navigation-indent-step, var(--slotted-space-7, 1.25rem));--_radius: var(--slotted-side-navigation-radius, var(--slotted-radius-md, 6px));--_row-gap: var(--slotted-side-navigation-row-gap, var(--slotted-space-1, .125rem));--_section-gap: var(--slotted-side-navigation-section-gap, var(--slotted-space-5, .75rem));--_guide-width: var(--slotted-border-width-thin, 1px);--_dot-size: var(--slotted-side-navigation-dot-size, var(--slotted-space-3, .375rem));--_color: var(--slotted-side-navigation-color, var(--slotted-text-muted, GrayText));--_hover-color: var(--slotted-side-navigation-hover-color, var(--slotted-text, CanvasText));--_hover-background: var( --slotted-side-navigation-hover-background, var(--slotted-tone-secondary-subtle-hover) );--_active-background: var( --slotted-side-navigation-active-background, var(--slotted-tone-secondary-subtle-active) );--_current-color: var(--slotted-side-navigation-current-color, var(--slotted-tone-accent-text));--_current-background: var( --slotted-side-navigation-current-background, var(--slotted-tone-accent-surface) );--_current-edge: var( --slotted-side-navigation-current-edge, var(--slotted-current-edge, transparent) );--_dot-color: var(--slotted-side-navigation-dot-color, var(--slotted-tone-accent-solid));--_section-color: var( --slotted-side-navigation-section-color, var(--slotted-text-muted, GrayText) );--_description-color: var( --slotted-side-navigation-description-color, var(--slotted-text-muted, GrayText) );--_current-description-color: var( --slotted-side-navigation-current-description-color, var(--slotted-text, CanvasText) );--_description-gap: var( --slotted-side-navigation-description-gap, var(--slotted-space-1, .125rem) );--_guide-color: var( --slotted-side-navigation-guide-color, var(--slotted-border-subtle, ButtonBorder) );--_disabled-color: var(--slotted-disabled-foreground, GrayText);--_duration: var(--slotted-control-transition-duration, var(--slotted-duration-short));--_easing: var(--slotted-control-transition-easing, var(--slotted-easing-standard));box-sizing:border-box;color:var(--_color);font-family:var(--slotted-control-font-family, inherit);font-size:var(--_font-size);line-height:var(--_line-height);min-inline-size:0}[data-ui=side-navigation][data-size=sm]{--_row-height: var(--slotted-control-height-sm, 30px);--_mark: var(--_row-height);--_gap: var(--slotted-control-gap-sm, 6px);--_font-size: var(--slotted-font-size-xs, .75rem);--_line-height: var(--slotted-line-height-xs, 1.4);--_icon-size: var(--slotted-control-icon-size-sm, 14px)}[data-ui=side-navigation][data-size=lg]{--_row-height: var(--slotted-control-height-lg, 38px);--_mark: var(--_row-height);--_gap: var(--slotted-control-gap-lg, 8px);--_font-size: var(--slotted-font-size-md, .875rem);--_line-height: var(--slotted-line-height-md, 1.5);--_icon-size: var(--slotted-control-icon-size-lg, 18px);--_description-font-size: var(--slotted-font-size-sm, .8125rem)}[data-ui=side-navigation][data-part=root]{container-name:slotted-side-navigation;container-type:inline-size;display:flex;flex-direction:column;gap:var(--_section-gap);inline-size:100%}[data-ui=side-navigation] [data-part=section]{display:flex;flex-direction:column;min-inline-size:0}[data-ui=side-navigation] [data-part=section-label]{color:var(--_section-color);font-size:var(--_section-font-size);font-weight:var(--slotted-font-weight-semibold, 600);line-height:var(--slotted-line-height-xs, 1.4);margin-block-end:var( --slotted-side-navigation-section-label-gap, var(--slotted-space-2, .25rem) );min-inline-size:0;padding-block:var(--slotted-space-2, .25rem);overflow-wrap:anywhere;padding-inline:calc(var(--_inset) + (var(--_mark) - var(--_icon-size)) / 2)}[data-ui=side-navigation] [data-part=list],[data-ui=side-navigation] [data-part=group]{display:flex;flex-direction:column;gap:var(--_row-gap);list-style:none;margin:0;min-inline-size:0;padding:0}[data-ui=side-navigation] [data-part=item]{align-content:start;display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto 0fr;min-inline-size:0;position:relative;transition:grid-template-rows var(--slotted-duration-medium) var(--_easing)}[data-ui=side-navigation] [data-part=item][data-expanded]{grid-template-rows:auto 1fr}[data-ui=side-navigation] [data-part=item]>[data-part=group]{grid-column:1 / -1;grid-row:2;min-block-size:0;overflow:hidden;opacity:0;padding-block-start:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),padding-block-start var(--slotted-duration-medium) var(--_easing),visibility var(--slotted-duration-medium) step-end;visibility:hidden}[data-ui=side-navigation] [data-part=item][data-expanded]>[data-part=group]{opacity:1;padding-block-start:var(--_row-gap);transition:opacity var(--slotted-duration-short) var(--slotted-easing-enter) var(--slotted-duration-short),padding-block-start var(--slotted-duration-medium) var(--_easing),visibility var(--slotted-duration-medium) step-start;visibility:visible}[data-ui=side-navigation] [data-part=item]>[data-part=group]{padding-inline-start:var(--_indent-step);position:relative}[data-ui=side-navigation] [data-part=item]:has(>:is([data-part=link],[data-part=trigger])>[data-part=icon])>[data-part=group]{padding-inline-start:var(--_indent)}[data-ui=side-navigation][data-guides] [data-part=item]>[data-part=group]:before{background-color:var(--_guide-color);content:\"\";inline-size:var(--_guide-width);inset-block:var(--_row-gap) 0;inset-inline-start:var(--_inset);position:absolute}[data-ui=side-navigation][data-guides] [data-part=item]:has(>:is([data-part=link],[data-part=trigger])>[data-part=icon])>[data-part=group]:before{inset-inline-start:calc(var(--_inset) + var(--_mark) / 2 - var(--_guide-width) / 2)}[data-ui=side-navigation] :is([data-part=link],[data-part=trigger]){align-content:center;align-items:center;appearance:none;background-color:transparent;border:0;border-radius:var(--_radius);box-sizing:border-box;color:inherit;cursor:pointer;display:grid;font:inherit;grid-column:1;grid-row:1;grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-rows:auto auto;margin-block:0;margin-inline:var(--_standoff);min-block-size:var(--_row-height);min-inline-size:0;padding-block:0;padding-inline:calc(var(--_inset) - var(--_standoff));position:relative;text-align:start;text-decoration:none;transition:background-color var(--_duration) var(--_easing),color var(--_duration) var(--_easing)}[data-ui=side-navigation] [data-part=item]:not([data-disabled])>:is([data-part=link],[data-part=trigger]):active{transition-duration:var(--slotted-duration-instant)}[data-ui=side-navigation] [data-part=item]>[data-part=trigger]{grid-column:1 / -1}[data-ui=side-navigation] [data-part=item]:has(>[data-part=link])>[data-part=trigger]{grid-column:2;grid-template-columns:auto;inline-size:var(--_mark);padding-inline:0;place-items:center}[data-ui=side-navigation] [data-part=actions]{align-items:center;align-self:center;column-gap:var(--slotted-space-2, .25rem);display:flex;grid-column:3;grid-row:1;margin-inline-start:var(--slotted-space-2, .25rem);padding-inline-end:var(--slotted-space-2, .25rem)}[data-ui=side-navigation] :is([data-part=link],[data-part=trigger]):focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * var(--slotted-focus-ring-offset, 2px))}[data-ui=side-navigation] [data-part=icon]{--slotted-icon-size: var(--_icon-size);block-size:var(--_mark);color:inherit;display:grid;font-size:var(--_icon-size);grid-column:1;grid-row:1;inline-size:var(--_mark);margin-inline-end:var(--_gap);place-items:center;position:relative}[data-ui=side-navigation] [data-part=icon]>svg{block-size:var(--_icon-size);inline-size:var(--_icon-size)}[data-ui=side-navigation] [data-part=label]{grid-column:2;grid-row:1;min-inline-size:0;overflow-wrap:anywhere;unicode-bidi:isolate}[data-ui=side-navigation]:not([data-truncate=none]) [data-part=label]{overflow:hidden;overflow-wrap:normal;text-overflow:ellipsis;white-space:nowrap}[data-ui=side-navigation][data-truncate=middle] [data-part=label]{text-overflow:clip}[data-ui=side-navigation] [data-part=description]{color:var(--_description-color);font-size:var(--_description-font-size);font-weight:var(--slotted-font-weight-regular, 400);grid-column:2;grid-row:2;line-height:var(--slotted-line-height-xs, 1.4);margin-block-start:var(--_description-gap);min-inline-size:0;overflow-wrap:anywhere;unicode-bidi:isolate}[data-ui=side-navigation]:not([data-truncate=none]) [data-part=description]{overflow:hidden;overflow-wrap:normal;text-overflow:ellipsis;white-space:nowrap}[data-ui=side-navigation] :is([data-part=link],[data-part=trigger]):has(>[data-part=description]){padding-block:var(--slotted-space-2, .25rem)}[data-ui=side-navigation] :is([data-part=link],[data-part=trigger]):has(>[data-part=description])>:is([data-part=icon],[data-part=end],[data-part=count],[data-part=indicator]){grid-row:1 / -1}[data-ui=side-navigation] :is([data-part=link],[data-part=trigger]):has(>[data-part=description])>[data-part=label]{align-self:end;line-height:var(--slotted-line-height-xs, 1.4)}[data-ui=side-navigation] :is([data-part=link],[data-part=trigger]):has(>[data-part=description])>[data-part=description]{align-self:start}[data-ui=side-navigation] [data-part=end]{align-items:center;display:flex;grid-column:3;grid-row:1;margin-inline-start:var(--_gap)}[data-ui=side-navigation] [data-part=count]{color:var(--_description-color);font-size:var(--_description-font-size);font-variant-numeric:tabular-nums;font-weight:var(--slotted-font-weight-medium, 500);grid-column:3;grid-row:1;line-height:1;margin-inline-start:var(--_gap);min-inline-size:2ch;text-align:end}[data-ui=side-navigation] [data-part=link][data-current]>[data-part=description]{color:var(--_current-description-color)}[data-ui=side-navigation] [data-part=link][data-current]>[data-part=count],[data-ui=side-navigation] [data-part=item][data-current]>[data-part=trigger]>[data-part=count]{color:inherit}[data-ui=side-navigation] [data-part=indicator]{--slotted-icon-size: var(--_icon-size);display:flex;grid-column:4;grid-row:1;margin-inline-start:var(--_gap)}[data-ui=side-navigation] [data-part=indicator]>[data-ui=icon]{transition:rotate var(--slotted-duration-medium) var(--_easing)}[data-ui=side-navigation] [data-part=item]:has(>[data-part=link])>[data-part=trigger]>[data-part=indicator]{grid-column:1;margin-inline-start:0}[data-ui=side-navigation] [data-part=item][data-expanded]>[data-part=trigger]>[data-part=indicator]>[data-ui=icon]{rotate:90deg}[data-ui=side-navigation] [data-part=item][data-expanded]>[data-part=trigger]>[data-part=indicator]>[data-ui=icon]:dir(rtl){rotate:-90deg}@supports (text-box: trim-both cap alphabetic){[data-ui=side-navigation] [data-part=label]{padding-block:calc((var(--_line-height) * 1em - .75em) / 2);text-box:trim-both cap alphabetic}[data-ui=side-navigation] [data-part=description],[data-ui=side-navigation] [data-part=section-label]{padding-block:calc((var(--slotted-line-height-xs, 1.4) * 1em - .75em) / 2);text-box:trim-both cap alphabetic}[data-ui=side-navigation] [data-part=count]{line-height:var(--slotted-line-height-xs, 1.4);padding-block:calc((var(--slotted-line-height-xs, 1.4) * 1em - .75em) / 2);text-box:trim-both cap alphabetic}}[data-ui=side-navigation] [data-part=item]:not([data-disabled])>[data-part=link]:not([data-current]):hover,[data-ui=side-navigation] [data-part=item]:not([data-disabled]):not([data-current])>[data-part=trigger]:enabled:hover{background-color:var(--_hover-background);color:var(--_hover-color)}[data-ui=side-navigation] [data-part=item][data-open]:not([data-current])>[data-part=trigger],[data-ui=side-navigation] [data-part=item]:not([data-disabled])>[data-part=link]:not([data-current]):active,[data-ui=side-navigation] [data-part=item]:not([data-disabled]):not([data-current])>[data-part=trigger]:enabled:active{background-color:var(--_active-background)}[data-ui=side-navigation] [data-part=link][data-current],[data-ui=side-navigation] [data-part=item][data-current]>[data-part=trigger]{background-color:var(--_current-background);box-shadow:inset 0 0 0 var(--_guide-width) var(--_current-edge);color:var(--_current-color);font-weight:var(--slotted-font-weight-medium, 500)}[data-ui=side-navigation] [data-part=item][data-disabled]>:is([data-part=link],[data-part=trigger]),[data-ui=side-navigation] [data-part=trigger]:disabled{color:var(--_disabled-color);cursor:not-allowed}[data-ui=side-navigation] [data-part=item][data-disabled]>[data-part=link]>[data-part=description]{color:var(--_disabled-color)}[data-ui=side-navigation] [data-part=divider]{border:0;border-block-start:var(--_guide-width) solid var(--_guide-color);margin-block:var(--slotted-space-2, .25rem);margin-inline:var(--_inset)}[data-ui=side-navigation] [data-part=skeleton]{align-items:center;display:grid;gap:var(--_gap);grid-template-columns:var(--_mark) minmax(0,1fr);min-block-size:var(--_row-height);padding-inline:var(--_inset)}[data-ui=side-navigation] [data-part=skeleton]>[data-part=icon]{margin-inline:0}[data-ui=side-navigation] [data-part=skeleton]>[data-part=icon]>[data-ui=skeleton]{--slotted-skeleton-block-size: var(--_icon-size);--slotted-skeleton-inline-size: var(--_icon-size)}[data-ui=side-navigation] [data-part=skeleton]>[data-part=label]{display:block;min-inline-size:0;overflow:visible}@container slotted-side-navigation (inline-size < 96px){[data-ui=side-navigation][data-mode=auto] [data-part=label],[data-ui=side-navigation][data-mode=auto] [data-part=description],[data-ui=side-navigation][data-mode=auto] [data-part=end],[data-ui=side-navigation][data-mode=auto] [data-part=count]{block-size:1px;clip-path:inset(50%);inline-size:1px;margin:0;overflow:hidden;position:absolute;white-space:nowrap}[data-ui=side-navigation][data-mode=auto] [data-part=indicator],[data-ui=side-navigation][data-mode=auto] [data-part=actions],[data-ui=side-navigation][data-mode=auto] [data-part=item]:has(>[data-part=link])>[data-part=trigger]{display:none}[data-ui=side-navigation][data-mode=auto] :is([data-part=link],[data-part=trigger]){grid-template-columns:auto;inline-size:var(--_mark);justify-content:center;justify-self:center;padding:0}[data-ui=side-navigation][data-mode=auto] [data-part=icon]{margin:0}[data-ui=side-navigation][data-mode=auto] [data-part=item]{grid-template-rows:auto 0fr}[data-ui=side-navigation][data-mode=auto] [data-part=item]>[data-part=group]{visibility:hidden}[data-ui=side-navigation][data-mode=auto] [data-part=section-label]{block-size:0;border-block-start:var(--_guide-width) solid var(--_guide-color);color:transparent;margin-block:var(--slotted-space-2, .25rem);margin-inline:var(--_inset);overflow:hidden;padding:0}[data-ui=side-navigation][data-mode=auto] [data-part=skeleton]{grid-template-columns:var(--_mark);justify-content:center;padding-inline:0}[data-ui=side-navigation][data-mode=auto] [data-part=skeleton]>:not([data-part=icon]){display:none}[data-ui=side-navigation][data-mode=auto] :is([data-part=link],[data-part=trigger]):has(>:is([data-part=end],[data-part=count]))>[data-part=icon]:after{background-color:var(--_dot-color);block-size:var(--_dot-size);border-radius:var(--slotted-radius-full, 9999px);content:\"\";inline-size:var(--_dot-size);inset-block-start:var(--slotted-space-2, .25rem);inset-inline-end:var(--slotted-space-2, .25rem);position:absolute}}[data-ui=side-navigation][data-mode=compact] [data-part=label],[data-ui=side-navigation][data-mode=compact] [data-part=description],[data-ui=side-navigation][data-mode=compact] [data-part=end],[data-ui=side-navigation][data-mode=compact] [data-part=count]{block-size:1px;clip-path:inset(50%);inline-size:1px;margin:0;overflow:hidden;position:absolute;white-space:nowrap}[data-ui=side-navigation][data-mode=compact] [data-part=indicator],[data-ui=side-navigation][data-mode=compact] [data-part=actions],[data-ui=side-navigation][data-mode=compact] [data-part=item]:has(>[data-part=link])>[data-part=trigger]{display:none}[data-ui=side-navigation][data-mode=compact] :is([data-part=link],[data-part=trigger]){grid-template-columns:auto;inline-size:var(--_mark);justify-content:center;justify-self:center;padding:0}[data-ui=side-navigation][data-mode=compact] [data-part=icon]{margin:0}[data-ui=side-navigation][data-mode=compact] [data-part=item]{grid-template-rows:auto 0fr}[data-ui=side-navigation][data-mode=compact] [data-part=item]>[data-part=group]{visibility:hidden}[data-ui=side-navigation][data-mode=compact] [data-part=section-label]{block-size:0;border-block-start:var(--_guide-width) solid var(--_guide-color);color:transparent;margin-block:var(--slotted-space-2, .25rem);margin-inline:var(--_inset);overflow:hidden;padding:0}[data-ui=side-navigation][data-mode=compact] [data-part=skeleton]{grid-template-columns:var(--_mark);justify-content:center;padding-inline:0}[data-ui=side-navigation][data-mode=compact] [data-part=skeleton]>:not([data-part=icon]){display:none}[data-ui=side-navigation][data-mode=compact] :is([data-part=link],[data-part=trigger]):has(>:is([data-part=end],[data-part=count]))>[data-part=icon]:after{background-color:var(--_dot-color);block-size:var(--_dot-size);border-radius:var(--slotted-radius-full, 9999px);content:\"\";inline-size:var(--_dot-size);inset-block-start:var(--slotted-space-2, .25rem);inset-inline-end:var(--slotted-space-2, .25rem);position:absolute}[data-ui=side-navigation][data-part=flyout]{--_surface: var( --slotted-side-navigation-flyout-surface, var(--slotted-surface-raised, Canvas) );--_border-color: var( --slotted-side-navigation-flyout-border-color, var(--slotted-border-subtle, ButtonBorder) );--_shadow: var(--slotted-side-navigation-flyout-shadow, var(--slotted-shadow-md));--_flyout-radius: var(--slotted-side-navigation-flyout-radius, var(--slotted-radius-lg, 8px));--_measure: var(--slotted-side-navigation-flyout-measure, 16rem);box-sizing:border-box;inline-size:max-content;inset-block-start:0;isolation:isolate;max-inline-size:min(var(--_measure),var(--slotted-positioner-available-width, 100vw));min-inline-size:var(--slotted-side-navigation-flyout-min-measure, 12rem);padding-block:0;padding-inline:var(--slotted-space-2, .25rem);pointer-events:none;position:absolute;z-index:calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0));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=side-navigation][data-part=flyout][data-side=top]{translate:0 var(--_enter-distance)}[data-ui=side-navigation][data-part=flyout][data-side=right]{translate:calc(-1 * var(--_enter-distance)) 0}[data-ui=side-navigation][data-part=flyout][data-side=left]{translate:var(--_enter-distance) 0}[data-ui=side-navigation][data-part=flyout][data-open]{opacity:1;translate:0 0;transition:none}[data-ui=side-navigation][data-part=flyout][data-open][data-positioned]{animation:slotted-side-navigation-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter)}[data-ui=side-navigation][data-part=flyout][data-open][data-positioned][data-side=top]{animation-name:slotted-side-navigation-enter-up}[data-ui=side-navigation][data-part=flyout][data-open][data-positioned][data-side=right]{animation-name:slotted-side-navigation-enter-from-start}[data-ui=side-navigation][data-part=flyout][data-open][data-positioned][data-side=left]{animation-name:slotted-side-navigation-enter-from-end}@keyframes slotted-side-navigation-enter-down{0%{opacity:0;translate:0 calc(-1 * var(--_enter-distance))}}@keyframes slotted-side-navigation-enter-up{0%{opacity:0;translate:0 var(--_enter-distance)}}@keyframes slotted-side-navigation-enter-from-start{0%{opacity:0;translate:calc(-1 * var(--_enter-distance)) 0}}@keyframes slotted-side-navigation-enter-from-end{0%{opacity:0;translate:var(--_enter-distance) 0}}@keyframes slotted-side-navigation-fade{0%{opacity:0}}@media(prefers-reduced-motion:reduce){[data-ui=side-navigation][data-part=flyout],[data-ui=side-navigation][data-part=flyout][data-side=top],[data-ui=side-navigation][data-part=flyout][data-side=left],[data-ui=side-navigation][data-part=flyout][data-side=right]{translate:0 0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=side-navigation][data-part=flyout][data-open][data-positioned],[data-ui=side-navigation][data-part=flyout][data-open][data-positioned][data-side=top],[data-ui=side-navigation][data-part=flyout][data-open][data-positioned][data-side=left],[data-ui=side-navigation][data-part=flyout][data-open][data-positioned][data-side=right]{animation-name:slotted-side-navigation-fade}}[data-ui=side-navigation][data-part=flyout][data-detached]{visibility:hidden}[data-ui=side-navigation][data-part=flyout]>[data-part=group]{background-color:var(--_surface);border:var(--_guide-width) solid var(--_border-color);border-radius:var(--_flyout-radius);box-shadow:var(--_shadow);color:var(--_color);padding:var(--slotted-space-2, .25rem);pointer-events:auto}[data-ui=side-navigation][data-part=flyout]>[data-part=group]>[data-part=item]>[data-part=group]{padding-inline-start:var(--_indent)}@media(forced-colors:active){[data-ui=side-navigation] [data-part=link][data-current],[data-ui=side-navigation] [data-part=item][data-current]>[data-part=trigger]{background-color:Highlight;color:HighlightText;forced-color-adjust:none}[data-ui=side-navigation] [data-part=item][data-disabled]>:is([data-part=link],[data-part=trigger]),[data-ui=side-navigation] [data-part=trigger]:disabled{color:GrayText}[data-ui=side-navigation][data-part=flyout]>[data-part=group]{border-color:CanvasText}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
330
|
+
}
|
|
331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigation, decorators: [{
|
|
332
|
+
type: Component,
|
|
333
|
+
args: [{ selector: '[slSideNavigation]', standalone: true, exportAs: 'slSideNavigation', template: '<ng-content />', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
334
|
+
'data-ui': 'side-navigation',
|
|
335
|
+
'data-part': 'root',
|
|
336
|
+
'[attr.aria-label]': 'ariaLabel()',
|
|
337
|
+
'[attr.data-mode]': 'resolvedMode()',
|
|
338
|
+
'[attr.data-size]': 'resolvedSize()',
|
|
339
|
+
'[attr.data-truncate]': 'resolvedTruncate()',
|
|
340
|
+
'[attr.data-guides]': "resolvedGuides() ? '' : null",
|
|
341
|
+
'[attr.data-compact]': "compact() ? '' : null",
|
|
342
|
+
'(keydown)': 'onKeyDown($event)',
|
|
343
|
+
}, styles: ["@layer slotted.components{[data-ui=side-navigation]{--_row-height: var(--slotted-app-shell-row-height, var(--slotted-control-height-md, 34px));--_mark: var(--slotted-app-shell-row-mark, var(--_row-height));--_inset: var(--slotted-app-shell-row-inset, var(--slotted-space-4, .5rem));--_standoff: min(var(--slotted-space-2, .25rem), var(--_inset));--_gap: var(--slotted-app-shell-row-gap, var(--slotted-control-gap-md, 8px));--_font-size: var(--slotted-app-shell-row-font-size, var(--slotted-font-size-sm, .8125rem));--_line-height: var(--slotted-app-shell-row-line-height, var(--slotted-line-height-sm, 1.45));--_icon-size: var(--slotted-control-icon-size-md, 16px);--_description-font-size: var(--slotted-font-size-xs, .75rem);--_section-font-size: var(--slotted-font-size-xs, .75rem);--_indent: var(--slotted-side-navigation-indent, calc(var(--_mark) + var(--_gap)));--_indent-step: var(--slotted-side-navigation-indent-step, var(--slotted-space-7, 1.25rem));--_radius: var(--slotted-side-navigation-radius, var(--slotted-radius-md, 6px));--_row-gap: var(--slotted-side-navigation-row-gap, var(--slotted-space-1, .125rem));--_section-gap: var(--slotted-side-navigation-section-gap, var(--slotted-space-5, .75rem));--_guide-width: var(--slotted-border-width-thin, 1px);--_dot-size: var(--slotted-side-navigation-dot-size, var(--slotted-space-3, .375rem));--_color: var(--slotted-side-navigation-color, var(--slotted-text-muted, GrayText));--_hover-color: var(--slotted-side-navigation-hover-color, var(--slotted-text, CanvasText));--_hover-background: var( --slotted-side-navigation-hover-background, var(--slotted-tone-secondary-subtle-hover) );--_active-background: var( --slotted-side-navigation-active-background, var(--slotted-tone-secondary-subtle-active) );--_current-color: var(--slotted-side-navigation-current-color, var(--slotted-tone-accent-text));--_current-background: var( --slotted-side-navigation-current-background, var(--slotted-tone-accent-surface) );--_current-edge: var( --slotted-side-navigation-current-edge, var(--slotted-current-edge, transparent) );--_dot-color: var(--slotted-side-navigation-dot-color, var(--slotted-tone-accent-solid));--_section-color: var( --slotted-side-navigation-section-color, var(--slotted-text-muted, GrayText) );--_description-color: var( --slotted-side-navigation-description-color, var(--slotted-text-muted, GrayText) );--_current-description-color: var( --slotted-side-navigation-current-description-color, var(--slotted-text, CanvasText) );--_description-gap: var( --slotted-side-navigation-description-gap, var(--slotted-space-1, .125rem) );--_guide-color: var( --slotted-side-navigation-guide-color, var(--slotted-border-subtle, ButtonBorder) );--_disabled-color: var(--slotted-disabled-foreground, GrayText);--_duration: var(--slotted-control-transition-duration, var(--slotted-duration-short));--_easing: var(--slotted-control-transition-easing, var(--slotted-easing-standard));box-sizing:border-box;color:var(--_color);font-family:var(--slotted-control-font-family, inherit);font-size:var(--_font-size);line-height:var(--_line-height);min-inline-size:0}[data-ui=side-navigation][data-size=sm]{--_row-height: var(--slotted-control-height-sm, 30px);--_mark: var(--_row-height);--_gap: var(--slotted-control-gap-sm, 6px);--_font-size: var(--slotted-font-size-xs, .75rem);--_line-height: var(--slotted-line-height-xs, 1.4);--_icon-size: var(--slotted-control-icon-size-sm, 14px)}[data-ui=side-navigation][data-size=lg]{--_row-height: var(--slotted-control-height-lg, 38px);--_mark: var(--_row-height);--_gap: var(--slotted-control-gap-lg, 8px);--_font-size: var(--slotted-font-size-md, .875rem);--_line-height: var(--slotted-line-height-md, 1.5);--_icon-size: var(--slotted-control-icon-size-lg, 18px);--_description-font-size: var(--slotted-font-size-sm, .8125rem)}[data-ui=side-navigation][data-part=root]{container-name:slotted-side-navigation;container-type:inline-size;display:flex;flex-direction:column;gap:var(--_section-gap);inline-size:100%}[data-ui=side-navigation] [data-part=section]{display:flex;flex-direction:column;min-inline-size:0}[data-ui=side-navigation] [data-part=section-label]{color:var(--_section-color);font-size:var(--_section-font-size);font-weight:var(--slotted-font-weight-semibold, 600);line-height:var(--slotted-line-height-xs, 1.4);margin-block-end:var( --slotted-side-navigation-section-label-gap, var(--slotted-space-2, .25rem) );min-inline-size:0;padding-block:var(--slotted-space-2, .25rem);overflow-wrap:anywhere;padding-inline:calc(var(--_inset) + (var(--_mark) - var(--_icon-size)) / 2)}[data-ui=side-navigation] [data-part=list],[data-ui=side-navigation] [data-part=group]{display:flex;flex-direction:column;gap:var(--_row-gap);list-style:none;margin:0;min-inline-size:0;padding:0}[data-ui=side-navigation] [data-part=item]{align-content:start;display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto 0fr;min-inline-size:0;position:relative;transition:grid-template-rows var(--slotted-duration-medium) var(--_easing)}[data-ui=side-navigation] [data-part=item][data-expanded]{grid-template-rows:auto 1fr}[data-ui=side-navigation] [data-part=item]>[data-part=group]{grid-column:1 / -1;grid-row:2;min-block-size:0;overflow:hidden;opacity:0;padding-block-start:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),padding-block-start var(--slotted-duration-medium) var(--_easing),visibility var(--slotted-duration-medium) step-end;visibility:hidden}[data-ui=side-navigation] [data-part=item][data-expanded]>[data-part=group]{opacity:1;padding-block-start:var(--_row-gap);transition:opacity var(--slotted-duration-short) var(--slotted-easing-enter) var(--slotted-duration-short),padding-block-start var(--slotted-duration-medium) var(--_easing),visibility var(--slotted-duration-medium) step-start;visibility:visible}[data-ui=side-navigation] [data-part=item]>[data-part=group]{padding-inline-start:var(--_indent-step);position:relative}[data-ui=side-navigation] [data-part=item]:has(>:is([data-part=link],[data-part=trigger])>[data-part=icon])>[data-part=group]{padding-inline-start:var(--_indent)}[data-ui=side-navigation][data-guides] [data-part=item]>[data-part=group]:before{background-color:var(--_guide-color);content:\"\";inline-size:var(--_guide-width);inset-block:var(--_row-gap) 0;inset-inline-start:var(--_inset);position:absolute}[data-ui=side-navigation][data-guides] [data-part=item]:has(>:is([data-part=link],[data-part=trigger])>[data-part=icon])>[data-part=group]:before{inset-inline-start:calc(var(--_inset) + var(--_mark) / 2 - var(--_guide-width) / 2)}[data-ui=side-navigation] :is([data-part=link],[data-part=trigger]){align-content:center;align-items:center;appearance:none;background-color:transparent;border:0;border-radius:var(--_radius);box-sizing:border-box;color:inherit;cursor:pointer;display:grid;font:inherit;grid-column:1;grid-row:1;grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-rows:auto auto;margin-block:0;margin-inline:var(--_standoff);min-block-size:var(--_row-height);min-inline-size:0;padding-block:0;padding-inline:calc(var(--_inset) - var(--_standoff));position:relative;text-align:start;text-decoration:none;transition:background-color var(--_duration) var(--_easing),color var(--_duration) var(--_easing)}[data-ui=side-navigation] [data-part=item]:not([data-disabled])>:is([data-part=link],[data-part=trigger]):active{transition-duration:var(--slotted-duration-instant)}[data-ui=side-navigation] [data-part=item]>[data-part=trigger]{grid-column:1 / -1}[data-ui=side-navigation] [data-part=item]:has(>[data-part=link])>[data-part=trigger]{grid-column:2;grid-template-columns:auto;inline-size:var(--_mark);padding-inline:0;place-items:center}[data-ui=side-navigation] [data-part=actions]{align-items:center;align-self:center;column-gap:var(--slotted-space-2, .25rem);display:flex;grid-column:3;grid-row:1;margin-inline-start:var(--slotted-space-2, .25rem);padding-inline-end:var(--slotted-space-2, .25rem)}[data-ui=side-navigation] :is([data-part=link],[data-part=trigger]):focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * var(--slotted-focus-ring-offset, 2px))}[data-ui=side-navigation] [data-part=icon]{--slotted-icon-size: var(--_icon-size);block-size:var(--_mark);color:inherit;display:grid;font-size:var(--_icon-size);grid-column:1;grid-row:1;inline-size:var(--_mark);margin-inline-end:var(--_gap);place-items:center;position:relative}[data-ui=side-navigation] [data-part=icon]>svg{block-size:var(--_icon-size);inline-size:var(--_icon-size)}[data-ui=side-navigation] [data-part=label]{grid-column:2;grid-row:1;min-inline-size:0;overflow-wrap:anywhere;unicode-bidi:isolate}[data-ui=side-navigation]:not([data-truncate=none]) [data-part=label]{overflow:hidden;overflow-wrap:normal;text-overflow:ellipsis;white-space:nowrap}[data-ui=side-navigation][data-truncate=middle] [data-part=label]{text-overflow:clip}[data-ui=side-navigation] [data-part=description]{color:var(--_description-color);font-size:var(--_description-font-size);font-weight:var(--slotted-font-weight-regular, 400);grid-column:2;grid-row:2;line-height:var(--slotted-line-height-xs, 1.4);margin-block-start:var(--_description-gap);min-inline-size:0;overflow-wrap:anywhere;unicode-bidi:isolate}[data-ui=side-navigation]:not([data-truncate=none]) [data-part=description]{overflow:hidden;overflow-wrap:normal;text-overflow:ellipsis;white-space:nowrap}[data-ui=side-navigation] :is([data-part=link],[data-part=trigger]):has(>[data-part=description]){padding-block:var(--slotted-space-2, .25rem)}[data-ui=side-navigation] :is([data-part=link],[data-part=trigger]):has(>[data-part=description])>:is([data-part=icon],[data-part=end],[data-part=count],[data-part=indicator]){grid-row:1 / -1}[data-ui=side-navigation] :is([data-part=link],[data-part=trigger]):has(>[data-part=description])>[data-part=label]{align-self:end;line-height:var(--slotted-line-height-xs, 1.4)}[data-ui=side-navigation] :is([data-part=link],[data-part=trigger]):has(>[data-part=description])>[data-part=description]{align-self:start}[data-ui=side-navigation] [data-part=end]{align-items:center;display:flex;grid-column:3;grid-row:1;margin-inline-start:var(--_gap)}[data-ui=side-navigation] [data-part=count]{color:var(--_description-color);font-size:var(--_description-font-size);font-variant-numeric:tabular-nums;font-weight:var(--slotted-font-weight-medium, 500);grid-column:3;grid-row:1;line-height:1;margin-inline-start:var(--_gap);min-inline-size:2ch;text-align:end}[data-ui=side-navigation] [data-part=link][data-current]>[data-part=description]{color:var(--_current-description-color)}[data-ui=side-navigation] [data-part=link][data-current]>[data-part=count],[data-ui=side-navigation] [data-part=item][data-current]>[data-part=trigger]>[data-part=count]{color:inherit}[data-ui=side-navigation] [data-part=indicator]{--slotted-icon-size: var(--_icon-size);display:flex;grid-column:4;grid-row:1;margin-inline-start:var(--_gap)}[data-ui=side-navigation] [data-part=indicator]>[data-ui=icon]{transition:rotate var(--slotted-duration-medium) var(--_easing)}[data-ui=side-navigation] [data-part=item]:has(>[data-part=link])>[data-part=trigger]>[data-part=indicator]{grid-column:1;margin-inline-start:0}[data-ui=side-navigation] [data-part=item][data-expanded]>[data-part=trigger]>[data-part=indicator]>[data-ui=icon]{rotate:90deg}[data-ui=side-navigation] [data-part=item][data-expanded]>[data-part=trigger]>[data-part=indicator]>[data-ui=icon]:dir(rtl){rotate:-90deg}@supports (text-box: trim-both cap alphabetic){[data-ui=side-navigation] [data-part=label]{padding-block:calc((var(--_line-height) * 1em - .75em) / 2);text-box:trim-both cap alphabetic}[data-ui=side-navigation] [data-part=description],[data-ui=side-navigation] [data-part=section-label]{padding-block:calc((var(--slotted-line-height-xs, 1.4) * 1em - .75em) / 2);text-box:trim-both cap alphabetic}[data-ui=side-navigation] [data-part=count]{line-height:var(--slotted-line-height-xs, 1.4);padding-block:calc((var(--slotted-line-height-xs, 1.4) * 1em - .75em) / 2);text-box:trim-both cap alphabetic}}[data-ui=side-navigation] [data-part=item]:not([data-disabled])>[data-part=link]:not([data-current]):hover,[data-ui=side-navigation] [data-part=item]:not([data-disabled]):not([data-current])>[data-part=trigger]:enabled:hover{background-color:var(--_hover-background);color:var(--_hover-color)}[data-ui=side-navigation] [data-part=item][data-open]:not([data-current])>[data-part=trigger],[data-ui=side-navigation] [data-part=item]:not([data-disabled])>[data-part=link]:not([data-current]):active,[data-ui=side-navigation] [data-part=item]:not([data-disabled]):not([data-current])>[data-part=trigger]:enabled:active{background-color:var(--_active-background)}[data-ui=side-navigation] [data-part=link][data-current],[data-ui=side-navigation] [data-part=item][data-current]>[data-part=trigger]{background-color:var(--_current-background);box-shadow:inset 0 0 0 var(--_guide-width) var(--_current-edge);color:var(--_current-color);font-weight:var(--slotted-font-weight-medium, 500)}[data-ui=side-navigation] [data-part=item][data-disabled]>:is([data-part=link],[data-part=trigger]),[data-ui=side-navigation] [data-part=trigger]:disabled{color:var(--_disabled-color);cursor:not-allowed}[data-ui=side-navigation] [data-part=item][data-disabled]>[data-part=link]>[data-part=description]{color:var(--_disabled-color)}[data-ui=side-navigation] [data-part=divider]{border:0;border-block-start:var(--_guide-width) solid var(--_guide-color);margin-block:var(--slotted-space-2, .25rem);margin-inline:var(--_inset)}[data-ui=side-navigation] [data-part=skeleton]{align-items:center;display:grid;gap:var(--_gap);grid-template-columns:var(--_mark) minmax(0,1fr);min-block-size:var(--_row-height);padding-inline:var(--_inset)}[data-ui=side-navigation] [data-part=skeleton]>[data-part=icon]{margin-inline:0}[data-ui=side-navigation] [data-part=skeleton]>[data-part=icon]>[data-ui=skeleton]{--slotted-skeleton-block-size: var(--_icon-size);--slotted-skeleton-inline-size: var(--_icon-size)}[data-ui=side-navigation] [data-part=skeleton]>[data-part=label]{display:block;min-inline-size:0;overflow:visible}@container slotted-side-navigation (inline-size < 96px){[data-ui=side-navigation][data-mode=auto] [data-part=label],[data-ui=side-navigation][data-mode=auto] [data-part=description],[data-ui=side-navigation][data-mode=auto] [data-part=end],[data-ui=side-navigation][data-mode=auto] [data-part=count]{block-size:1px;clip-path:inset(50%);inline-size:1px;margin:0;overflow:hidden;position:absolute;white-space:nowrap}[data-ui=side-navigation][data-mode=auto] [data-part=indicator],[data-ui=side-navigation][data-mode=auto] [data-part=actions],[data-ui=side-navigation][data-mode=auto] [data-part=item]:has(>[data-part=link])>[data-part=trigger]{display:none}[data-ui=side-navigation][data-mode=auto] :is([data-part=link],[data-part=trigger]){grid-template-columns:auto;inline-size:var(--_mark);justify-content:center;justify-self:center;padding:0}[data-ui=side-navigation][data-mode=auto] [data-part=icon]{margin:0}[data-ui=side-navigation][data-mode=auto] [data-part=item]{grid-template-rows:auto 0fr}[data-ui=side-navigation][data-mode=auto] [data-part=item]>[data-part=group]{visibility:hidden}[data-ui=side-navigation][data-mode=auto] [data-part=section-label]{block-size:0;border-block-start:var(--_guide-width) solid var(--_guide-color);color:transparent;margin-block:var(--slotted-space-2, .25rem);margin-inline:var(--_inset);overflow:hidden;padding:0}[data-ui=side-navigation][data-mode=auto] [data-part=skeleton]{grid-template-columns:var(--_mark);justify-content:center;padding-inline:0}[data-ui=side-navigation][data-mode=auto] [data-part=skeleton]>:not([data-part=icon]){display:none}[data-ui=side-navigation][data-mode=auto] :is([data-part=link],[data-part=trigger]):has(>:is([data-part=end],[data-part=count]))>[data-part=icon]:after{background-color:var(--_dot-color);block-size:var(--_dot-size);border-radius:var(--slotted-radius-full, 9999px);content:\"\";inline-size:var(--_dot-size);inset-block-start:var(--slotted-space-2, .25rem);inset-inline-end:var(--slotted-space-2, .25rem);position:absolute}}[data-ui=side-navigation][data-mode=compact] [data-part=label],[data-ui=side-navigation][data-mode=compact] [data-part=description],[data-ui=side-navigation][data-mode=compact] [data-part=end],[data-ui=side-navigation][data-mode=compact] [data-part=count]{block-size:1px;clip-path:inset(50%);inline-size:1px;margin:0;overflow:hidden;position:absolute;white-space:nowrap}[data-ui=side-navigation][data-mode=compact] [data-part=indicator],[data-ui=side-navigation][data-mode=compact] [data-part=actions],[data-ui=side-navigation][data-mode=compact] [data-part=item]:has(>[data-part=link])>[data-part=trigger]{display:none}[data-ui=side-navigation][data-mode=compact] :is([data-part=link],[data-part=trigger]){grid-template-columns:auto;inline-size:var(--_mark);justify-content:center;justify-self:center;padding:0}[data-ui=side-navigation][data-mode=compact] [data-part=icon]{margin:0}[data-ui=side-navigation][data-mode=compact] [data-part=item]{grid-template-rows:auto 0fr}[data-ui=side-navigation][data-mode=compact] [data-part=item]>[data-part=group]{visibility:hidden}[data-ui=side-navigation][data-mode=compact] [data-part=section-label]{block-size:0;border-block-start:var(--_guide-width) solid var(--_guide-color);color:transparent;margin-block:var(--slotted-space-2, .25rem);margin-inline:var(--_inset);overflow:hidden;padding:0}[data-ui=side-navigation][data-mode=compact] [data-part=skeleton]{grid-template-columns:var(--_mark);justify-content:center;padding-inline:0}[data-ui=side-navigation][data-mode=compact] [data-part=skeleton]>:not([data-part=icon]){display:none}[data-ui=side-navigation][data-mode=compact] :is([data-part=link],[data-part=trigger]):has(>:is([data-part=end],[data-part=count]))>[data-part=icon]:after{background-color:var(--_dot-color);block-size:var(--_dot-size);border-radius:var(--slotted-radius-full, 9999px);content:\"\";inline-size:var(--_dot-size);inset-block-start:var(--slotted-space-2, .25rem);inset-inline-end:var(--slotted-space-2, .25rem);position:absolute}[data-ui=side-navigation][data-part=flyout]{--_surface: var( --slotted-side-navigation-flyout-surface, var(--slotted-surface-raised, Canvas) );--_border-color: var( --slotted-side-navigation-flyout-border-color, var(--slotted-border-subtle, ButtonBorder) );--_shadow: var(--slotted-side-navigation-flyout-shadow, var(--slotted-shadow-md));--_flyout-radius: var(--slotted-side-navigation-flyout-radius, var(--slotted-radius-lg, 8px));--_measure: var(--slotted-side-navigation-flyout-measure, 16rem);box-sizing:border-box;inline-size:max-content;inset-block-start:0;isolation:isolate;max-inline-size:min(var(--_measure),var(--slotted-positioner-available-width, 100vw));min-inline-size:var(--slotted-side-navigation-flyout-min-measure, 12rem);padding-block:0;padding-inline:var(--slotted-space-2, .25rem);pointer-events:none;position:absolute;z-index:calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0));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=side-navigation][data-part=flyout][data-side=top]{translate:0 var(--_enter-distance)}[data-ui=side-navigation][data-part=flyout][data-side=right]{translate:calc(-1 * var(--_enter-distance)) 0}[data-ui=side-navigation][data-part=flyout][data-side=left]{translate:var(--_enter-distance) 0}[data-ui=side-navigation][data-part=flyout][data-open]{opacity:1;translate:0 0;transition:none}[data-ui=side-navigation][data-part=flyout][data-open][data-positioned]{animation:slotted-side-navigation-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter)}[data-ui=side-navigation][data-part=flyout][data-open][data-positioned][data-side=top]{animation-name:slotted-side-navigation-enter-up}[data-ui=side-navigation][data-part=flyout][data-open][data-positioned][data-side=right]{animation-name:slotted-side-navigation-enter-from-start}[data-ui=side-navigation][data-part=flyout][data-open][data-positioned][data-side=left]{animation-name:slotted-side-navigation-enter-from-end}@keyframes slotted-side-navigation-enter-down{0%{opacity:0;translate:0 calc(-1 * var(--_enter-distance))}}@keyframes slotted-side-navigation-enter-up{0%{opacity:0;translate:0 var(--_enter-distance)}}@keyframes slotted-side-navigation-enter-from-start{0%{opacity:0;translate:calc(-1 * var(--_enter-distance)) 0}}@keyframes slotted-side-navigation-enter-from-end{0%{opacity:0;translate:var(--_enter-distance) 0}}@keyframes slotted-side-navigation-fade{0%{opacity:0}}@media(prefers-reduced-motion:reduce){[data-ui=side-navigation][data-part=flyout],[data-ui=side-navigation][data-part=flyout][data-side=top],[data-ui=side-navigation][data-part=flyout][data-side=left],[data-ui=side-navigation][data-part=flyout][data-side=right]{translate:0 0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=side-navigation][data-part=flyout][data-open][data-positioned],[data-ui=side-navigation][data-part=flyout][data-open][data-positioned][data-side=top],[data-ui=side-navigation][data-part=flyout][data-open][data-positioned][data-side=left],[data-ui=side-navigation][data-part=flyout][data-open][data-positioned][data-side=right]{animation-name:slotted-side-navigation-fade}}[data-ui=side-navigation][data-part=flyout][data-detached]{visibility:hidden}[data-ui=side-navigation][data-part=flyout]>[data-part=group]{background-color:var(--_surface);border:var(--_guide-width) solid var(--_border-color);border-radius:var(--_flyout-radius);box-shadow:var(--_shadow);color:var(--_color);padding:var(--slotted-space-2, .25rem);pointer-events:auto}[data-ui=side-navigation][data-part=flyout]>[data-part=group]>[data-part=item]>[data-part=group]{padding-inline-start:var(--_indent)}@media(forced-colors:active){[data-ui=side-navigation] [data-part=link][data-current],[data-ui=side-navigation] [data-part=item][data-current]>[data-part=trigger]{background-color:Highlight;color:HighlightText;forced-color-adjust:none}[data-ui=side-navigation] [data-part=item][data-disabled]>:is([data-part=link],[data-part=trigger]),[data-ui=side-navigation] [data-part=trigger]:disabled{color:GrayText}[data-ui=side-navigation][data-part=flyout]>[data-part=group]{border-color:CanvasText}}}\n"] }]
|
|
344
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }, { type: i0.Output, args: ["expandedChange"] }], flyout: [{ type: i0.Input, args: [{ isSignal: true, alias: "flyout", required: false }] }, { type: i0.Output, args: ["flyoutChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], truncate: [{ type: i0.Input, args: [{ isSignal: true, alias: "truncate", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], autoExpand: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoExpand", required: false }] }], guides: [{ type: i0.Input, args: [{ isSignal: true, alias: "guides", required: false }] }], landmark: [{ type: i0.Input, args: [{ isSignal: true, alias: "landmark", required: false }] }], compactAt: [{ type: i0.Input, args: [{ isSignal: true, alias: "compactAt", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], valueChangeRequest: [{ type: i0.Output, args: ["valueChangeRequest"] }], expandedChangeRequest: [{ type: i0.Output, args: ["expandedChangeRequest"] }], flyoutChangeRequest: [{ type: i0.Output, args: ["flyoutChangeRequest"] }] } });
|
|
345
|
+
|
|
346
|
+
/** A click synthesised by the keyboard reports no detail; a real one reports the count. */
|
|
347
|
+
function activationReason(event) {
|
|
348
|
+
return event.detail === 0 ? 'keyboard' : 'pointer';
|
|
349
|
+
}
|
|
350
|
+
/* ── Section, its title, and a list ─────────────────────────────────────── */
|
|
351
|
+
/** A titled run of destinations. Several may stand under one root. */
|
|
352
|
+
class SlSideNavigationSection {
|
|
353
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationSection, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
354
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSideNavigationSection, isStandalone: true, selector: "[slSideNavigationSection]", host: { attributes: { "data-part": "section" } }, ngImport: i0 });
|
|
355
|
+
}
|
|
356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationSection, decorators: [{
|
|
357
|
+
type: Directive,
|
|
358
|
+
args: [{
|
|
359
|
+
selector: '[slSideNavigationSection]',
|
|
360
|
+
standalone: true,
|
|
361
|
+
host: { 'data-part': 'section' },
|
|
362
|
+
}]
|
|
363
|
+
}] });
|
|
364
|
+
/** The section's title. In compact mode it becomes a rule. */
|
|
365
|
+
class SlSideNavigationSectionLabel {
|
|
366
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationSectionLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
367
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSideNavigationSectionLabel, isStandalone: true, selector: "[slSideNavigationSectionLabel]", host: { attributes: { "data-part": "section-label" } }, ngImport: i0 });
|
|
368
|
+
}
|
|
369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationSectionLabel, decorators: [{
|
|
370
|
+
type: Directive,
|
|
371
|
+
args: [{
|
|
372
|
+
selector: '[slSideNavigationSectionLabel]',
|
|
373
|
+
standalone: true,
|
|
374
|
+
host: { 'data-part': 'section-label' },
|
|
375
|
+
}]
|
|
376
|
+
}] });
|
|
377
|
+
/** The items of one level: the top level, or a section's. */
|
|
378
|
+
class SlSideNavigationList {
|
|
379
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
380
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSideNavigationList, isStandalone: true, selector: "ul[slSideNavigationList]", host: { attributes: { "data-part": "list" } }, ngImport: i0 });
|
|
381
|
+
}
|
|
382
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationList, decorators: [{
|
|
383
|
+
type: Directive,
|
|
384
|
+
args: [{
|
|
385
|
+
selector: 'ul[slSideNavigationList]',
|
|
386
|
+
standalone: true,
|
|
387
|
+
host: { 'data-part': 'list' },
|
|
388
|
+
}]
|
|
389
|
+
}] });
|
|
390
|
+
/* ── The item ───────────────────────────────────────────────────────────── */
|
|
391
|
+
/**
|
|
392
|
+
* A row: a link, a trigger, or both, with optional actions and a group.
|
|
393
|
+
*
|
|
394
|
+
* It carries the states the stylesheet reads. `data-current` is on it while
|
|
395
|
+
* its own link is the destination, and while a descendant is and the group is
|
|
396
|
+
* closed or the column is a rail — the reader sees where they are when the
|
|
397
|
+
* destination itself is out of sight.
|
|
398
|
+
*/
|
|
399
|
+
class SlSideNavigationItem {
|
|
400
|
+
/** The item's identity: what `value`, `expanded` and `flyout` name it by. */
|
|
401
|
+
value = input.required(/* @ts-ignore */
|
|
402
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
403
|
+
/** The row and everything in it refuse interaction. */
|
|
404
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
405
|
+
navigation = inject(SlSideNavigation);
|
|
406
|
+
/** The item above, or nothing at the top level. */
|
|
407
|
+
parent = inject(SlSideNavigationItem, { optional: true, skipSelf: true });
|
|
408
|
+
generated = inject(SlSideNavigationIdFactory).next();
|
|
409
|
+
ids = {
|
|
410
|
+
groupId: `${this.generated}-group`,
|
|
411
|
+
labelId: `${this.generated}-label`,
|
|
412
|
+
triggerId: `${this.generated}-trigger`,
|
|
413
|
+
};
|
|
414
|
+
hasLink = signal(false, /* @ts-ignore */
|
|
415
|
+
...(ngDevMode ? [{ debugName: "hasLink" }] : /* istanbul ignore next */ []));
|
|
416
|
+
hasGroup = signal(false, /* @ts-ignore */
|
|
417
|
+
...(ngDevMode ? [{ debugName: "hasGroup" }] : /* istanbul ignore next */ []));
|
|
418
|
+
/** Whether the label was measured as clipped, which is what opens the tooltip. */
|
|
419
|
+
clipped = signal(false, /* @ts-ignore */
|
|
420
|
+
...(ngDevMode ? [{ debugName: "clipped" }] : /* istanbul ignore next */ []));
|
|
421
|
+
/** The label's whole text, for the tooltip and for `aria-label` under a middle cut. */
|
|
422
|
+
labelText = signal('', /* @ts-ignore */
|
|
423
|
+
...(ngDevMode ? [{ debugName: "labelText" }] : /* istanbul ignore next */ []));
|
|
424
|
+
descriptionText = signal('', /* @ts-ignore */
|
|
425
|
+
...(ngDevMode ? [{ debugName: "descriptionText" }] : /* istanbul ignore next */ []));
|
|
426
|
+
triggerNode = signal(null, /* @ts-ignore */
|
|
427
|
+
...(ngDevMode ? [{ debugName: "triggerNode" }] : /* istanbul ignore next */ []));
|
|
428
|
+
descendants = signal([], /* @ts-ignore */
|
|
429
|
+
...(ngDevMode ? [{ debugName: "descendants" }] : /* istanbul ignore next */ []));
|
|
430
|
+
expanded = computed(() => this.navigation.isExpanded(this.value()), /* @ts-ignore */
|
|
431
|
+
...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
|
|
432
|
+
flyoutOpen = computed(() => this.navigation.compact() && this.navigation.flyout() === this.value(), /* @ts-ignore */
|
|
433
|
+
...(ngDevMode ? [{ debugName: "flyoutOpen" }] : /* istanbul ignore next */ []));
|
|
434
|
+
/** Whether the current destination is this item's own link. */
|
|
435
|
+
current = computed(() => this.hasLink() && this.navigation.value() === this.value(), /* @ts-ignore */
|
|
436
|
+
...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
|
|
437
|
+
/** Whether the current destination is somewhere under this item. */
|
|
438
|
+
holdsCurrent = computed(() => this.descendants().length > 0, /* @ts-ignore */
|
|
439
|
+
...(ngDevMode ? [{ debugName: "holdsCurrent" }] : /* istanbul ignore next */ []));
|
|
440
|
+
resolvedDisabled = computed(() => this.disabled() || (this.parent?.resolvedDisabled() ?? false), /* @ts-ignore */
|
|
441
|
+
...(ngDevMode ? [{ debugName: "resolvedDisabled" }] : /* istanbul ignore next */ []));
|
|
442
|
+
marked = computed(() => this.current() || (this.holdsCurrent() && (!this.expanded() || this.navigation.compact())), /* @ts-ignore */
|
|
443
|
+
...(ngDevMode ? [{ debugName: "marked" }] : /* istanbul ignore next */ []));
|
|
444
|
+
constructor() {
|
|
445
|
+
const destroyRef = inject(DestroyRef);
|
|
446
|
+
let release = null;
|
|
447
|
+
effect(() => {
|
|
448
|
+
release?.();
|
|
449
|
+
release = this.navigation.registerItem(this.value(), this.parent?.value() ?? null);
|
|
450
|
+
});
|
|
451
|
+
destroyRef.onDestroy(() => release?.());
|
|
452
|
+
/* Where the reader is, said upward: own link, or anything under it. */
|
|
453
|
+
const parent = this.parent;
|
|
454
|
+
if (parent !== null) {
|
|
455
|
+
effect(() => parent.reportCurrent(this.value(), this.current() || this.holdsCurrent()));
|
|
456
|
+
destroyRef.onDestroy(() => parent.reportCurrent(this.value(), false));
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
/** A descendant says whether it holds the current destination. */
|
|
460
|
+
reportCurrent(descendant, isCurrent) {
|
|
461
|
+
this.descendants.update((known) => {
|
|
462
|
+
const has = known.includes(descendant);
|
|
463
|
+
if (isCurrent === has)
|
|
464
|
+
return known;
|
|
465
|
+
return isCurrent ? [...known, descendant] : known.filter((item) => item !== descendant);
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
469
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: SlSideNavigationItem, isStandalone: true, selector: "li[slSideNavigationItem]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-part": "item" }, properties: { "attr.data-value": "value()", "attr.data-current": "marked() ? '' : null", "attr.data-expanded": "expanded() ? '' : null", "attr.data-open": "flyoutOpen() ? '' : null", "attr.data-disabled": "resolvedDisabled() ? '' : null" } }, exportAs: ["slSideNavigationItem"], ngImport: i0 });
|
|
470
|
+
}
|
|
471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationItem, decorators: [{
|
|
472
|
+
type: Directive,
|
|
473
|
+
args: [{
|
|
474
|
+
selector: 'li[slSideNavigationItem]',
|
|
475
|
+
standalone: true,
|
|
476
|
+
exportAs: 'slSideNavigationItem',
|
|
477
|
+
host: {
|
|
478
|
+
'data-part': 'item',
|
|
479
|
+
'[attr.data-value]': 'value()',
|
|
480
|
+
'[attr.data-current]': "marked() ? '' : null",
|
|
481
|
+
'[attr.data-expanded]': "expanded() ? '' : null",
|
|
482
|
+
'[attr.data-open]': "flyoutOpen() ? '' : null",
|
|
483
|
+
'[attr.data-disabled]': "resolvedDisabled() ? '' : null",
|
|
484
|
+
},
|
|
485
|
+
}]
|
|
486
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
487
|
+
/* ── The row's hint ─────────────────────────────────────────────────────── */
|
|
488
|
+
/**
|
|
489
|
+
* What a link and a trigger share: the tooltip a row opens when it cannot
|
|
490
|
+
* show its own words. `SlTooltip` is a host directive holding the state and
|
|
491
|
+
* the delays; the row dispatches the pointer and the focus to it only while a
|
|
492
|
+
* hint is due, because the family — not the consumer's template — decides
|
|
493
|
+
* when a row is a trigger. The layer is stamped under `@if`, so an idle row
|
|
494
|
+
* mounts nothing.
|
|
495
|
+
*/
|
|
496
|
+
class SideNavigationRow {
|
|
497
|
+
item = inject(SlSideNavigationItem);
|
|
498
|
+
navigation = inject(SlSideNavigation);
|
|
499
|
+
tooltip = inject(SlTooltip);
|
|
500
|
+
native = inject(ElementRef).nativeElement;
|
|
501
|
+
constructor() {
|
|
502
|
+
this.tooltip.triggerNode.set(this.native);
|
|
503
|
+
inject(DestroyRef).onDestroy(() => this.tooltip.triggerNode.set(null));
|
|
504
|
+
}
|
|
505
|
+
describedBy = computed(() => this.hint() && this.tooltip.isOpen() ? this.tooltip.contentId : null, /* @ts-ignore */
|
|
506
|
+
...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
|
|
507
|
+
onPointerEnter(event) {
|
|
508
|
+
if (!this.hint() || event.pointerType === 'touch')
|
|
509
|
+
return;
|
|
510
|
+
this.tooltip.openAfterDelay(event);
|
|
511
|
+
}
|
|
512
|
+
onPointerLeave(event) {
|
|
513
|
+
if (!this.hint())
|
|
514
|
+
return;
|
|
515
|
+
this.tooltip.closeAfterDelay(event);
|
|
516
|
+
}
|
|
517
|
+
onPointerDown(event) {
|
|
518
|
+
if (!this.hint())
|
|
519
|
+
return;
|
|
520
|
+
if (event.pointerType === 'touch')
|
|
521
|
+
this.tooltip.pressAndHold(event);
|
|
522
|
+
else if (this.tooltip.isOpen())
|
|
523
|
+
this.tooltip.toggle(false, 'pointer', event);
|
|
524
|
+
}
|
|
525
|
+
onPointerUp() {
|
|
526
|
+
this.tooltip.cancelPending();
|
|
527
|
+
}
|
|
528
|
+
onFocus(event) {
|
|
529
|
+
if (!this.hint() || !this.native.matches(':focus-visible'))
|
|
530
|
+
return;
|
|
531
|
+
this.tooltip.toggle(true, 'keyboard', event);
|
|
532
|
+
}
|
|
533
|
+
onBlur(event) {
|
|
534
|
+
if (this.tooltip.isOpen())
|
|
535
|
+
this.tooltip.toggle(false, 'blur', event);
|
|
536
|
+
}
|
|
537
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SideNavigationRow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
538
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SideNavigationRow, isStandalone: true, ngImport: i0 });
|
|
539
|
+
}
|
|
540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SideNavigationRow, decorators: [{
|
|
541
|
+
type: Directive
|
|
542
|
+
}], ctorParameters: () => [] });
|
|
543
|
+
const HINT_TEMPLATE = `<ng-content />
|
|
544
|
+
@if (hint()) {
|
|
545
|
+
<ng-template slTooltipLayer>
|
|
546
|
+
<div slTooltipContent>
|
|
547
|
+
{{ item.labelText() }}
|
|
548
|
+
@if (item.descriptionText()) {
|
|
549
|
+
<br />
|
|
550
|
+
{{ item.descriptionText() }}
|
|
551
|
+
}
|
|
552
|
+
</div>
|
|
553
|
+
</ng-template>
|
|
554
|
+
}`;
|
|
555
|
+
const HINT_HOST = {
|
|
556
|
+
'[attr.aria-describedby]': 'describedBy()',
|
|
557
|
+
'(pointerenter)': 'onPointerEnter($event)',
|
|
558
|
+
'(pointerleave)': 'onPointerLeave($event)',
|
|
559
|
+
'(pointerdown)': 'onPointerDown($event)',
|
|
560
|
+
'(pointerup)': 'onPointerUp()',
|
|
561
|
+
'(pointercancel)': 'onPointerUp()',
|
|
562
|
+
'(focus)': 'onFocus($event)',
|
|
563
|
+
'(blur)': 'onBlur($event)',
|
|
564
|
+
};
|
|
565
|
+
/* ── The link ───────────────────────────────────────────────────────────── */
|
|
566
|
+
/**
|
|
567
|
+
* The destination, or a command. On an `a` with an `href` it is a destination
|
|
568
|
+
* and takes `aria-current`; on a `button` it is a command in the column with
|
|
569
|
+
* the same row. `routerLink` and `routerLinkActive` live on the same element,
|
|
570
|
+
* and an `aria-current` the router wrote is read and kept.
|
|
571
|
+
*/
|
|
572
|
+
class SlSideNavigationLink extends SideNavigationRow {
|
|
573
|
+
/**
|
|
574
|
+
* Whether this is the current destination, stated on the row itself. It
|
|
575
|
+
* wins over the root's `value`; unstated, an `aria-current` the router wrote
|
|
576
|
+
* on the element is read instead.
|
|
577
|
+
*/
|
|
578
|
+
current = input(undefined, { ...(ngDevMode ? { debugName: "current" } : /* istanbul ignore next */ {}), transform: (state) => (state === undefined ? undefined : booleanAttribute(state)) });
|
|
579
|
+
isDestination = this.native.tagName === 'A';
|
|
580
|
+
writtenCurrent = inject(new HostAttributeToken('aria-current'), {
|
|
581
|
+
optional: true,
|
|
582
|
+
});
|
|
583
|
+
resolvedCurrent = computed(() => {
|
|
584
|
+
const stated = this.current();
|
|
585
|
+
if (stated !== undefined)
|
|
586
|
+
return stated;
|
|
587
|
+
if (this.writtenCurrent !== null)
|
|
588
|
+
return this.writtenCurrent !== 'false';
|
|
589
|
+
return this.isDestination && this.navigation.value() === this.item.value();
|
|
590
|
+
}, /* @ts-ignore */
|
|
591
|
+
...(ngDevMode ? [{ debugName: "resolvedCurrent" }] : /* istanbul ignore next */ []));
|
|
592
|
+
hint = computed(() => this.navigation.compact() || this.item.clipped(), /* @ts-ignore */
|
|
593
|
+
...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
|
|
594
|
+
ariaLabel = computed(() => this.navigation.resolvedTruncate() === 'middle' && this.item.clipped()
|
|
595
|
+
? this.item.labelText()
|
|
596
|
+
: null, /* @ts-ignore */
|
|
597
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
598
|
+
constructor() {
|
|
599
|
+
super();
|
|
600
|
+
this.item.hasLink.set(true);
|
|
601
|
+
inject(DestroyRef).onDestroy(() => this.item.hasLink.set(false));
|
|
602
|
+
}
|
|
603
|
+
onClick(event) {
|
|
604
|
+
if (this.item.resolvedDisabled()) {
|
|
605
|
+
event.preventDefault();
|
|
606
|
+
return;
|
|
607
|
+
}
|
|
608
|
+
if (event.defaultPrevented)
|
|
609
|
+
return;
|
|
610
|
+
const reason = activationReason(event);
|
|
611
|
+
if (this.isDestination)
|
|
612
|
+
this.navigation.select(this.item.value(), reason, event);
|
|
613
|
+
if (this.navigation.compact() && this.navigation.flyout() !== null) {
|
|
614
|
+
this.navigation.setFlyout(null, 'select', event);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationLink, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
618
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlSideNavigationLink, isStandalone: true, selector: "a[slSideNavigationLink], button[slSideNavigationLink]", inputs: { current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-part": "link" }, listeners: { "pointerenter": "onPointerEnter($event)", "pointerleave": "onPointerLeave($event)", "pointerdown": "onPointerDown($event)", "pointerup": "onPointerUp()", "pointercancel": "onPointerUp()", "focus": "onFocus($event)", "blur": "onBlur($event)", "click": "onClick($event)" }, properties: { "attr.aria-describedby": "describedBy()", "attr.aria-current": "resolvedCurrent() ? 'page' : null", "attr.aria-disabled": "item.resolvedDisabled() ? 'true' : null", "attr.aria-label": "ariaLabel()", "attr.data-current": "resolvedCurrent() ? '' : null" } }, providers: [
|
|
619
|
+
provideTooltipDefaults({ describes: 'description', openOn: 'hover', side: 'inline-end' }),
|
|
620
|
+
], exportAs: ["slSideNavigationLink"], usesInheritance: true, hostDirectives: [{ directive: i1.SlTooltip }], ngImport: i0, template: "<ng-content />\n@if (hint()) {\n <ng-template slTooltipLayer>\n <div slTooltipContent>\n {{ item.labelText() }}\n @if (item.descriptionText()) {\n <br />\n {{ item.descriptionText() }}\n }\n </div>\n </ng-template>\n}", isInline: true, dependencies: [{ kind: "directive", type: SlTooltipLayer, selector: "ng-template[slTooltipLayer]", exportAs: ["slTooltipLayer"] }, { kind: "component", type: SlTooltipContent, selector: "[slTooltipContent]", exportAs: ["slTooltipContent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
621
|
+
}
|
|
622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationLink, decorators: [{
|
|
623
|
+
type: Component,
|
|
624
|
+
args: [{
|
|
625
|
+
selector: 'a[slSideNavigationLink], button[slSideNavigationLink]',
|
|
626
|
+
standalone: true,
|
|
627
|
+
exportAs: 'slSideNavigationLink',
|
|
628
|
+
imports: [SlTooltipLayer, SlTooltipContent],
|
|
629
|
+
template: HINT_TEMPLATE,
|
|
630
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
631
|
+
encapsulation: ViewEncapsulation.None,
|
|
632
|
+
hostDirectives: [SlTooltip],
|
|
633
|
+
providers: [
|
|
634
|
+
provideTooltipDefaults({ describes: 'description', openOn: 'hover', side: 'inline-end' }),
|
|
635
|
+
],
|
|
636
|
+
host: {
|
|
637
|
+
...HINT_HOST,
|
|
638
|
+
'data-part': 'link',
|
|
639
|
+
'[attr.aria-current]': "resolvedCurrent() ? 'page' : null",
|
|
640
|
+
'[attr.aria-disabled]': "item.resolvedDisabled() ? 'true' : null",
|
|
641
|
+
'[attr.aria-label]': 'ariaLabel()',
|
|
642
|
+
'[attr.data-current]': "resolvedCurrent() ? '' : null",
|
|
643
|
+
'(click)': 'onClick($event)',
|
|
644
|
+
},
|
|
645
|
+
}]
|
|
646
|
+
}], ctorParameters: () => [], propDecorators: { current: [{ type: i0.Input, args: [{ isSignal: true, alias: "current", required: false }] }] } });
|
|
647
|
+
/* ── The trigger ────────────────────────────────────────────────────────── */
|
|
648
|
+
/**
|
|
649
|
+
* The disclosure button of the group. Alone, it is the whole row and carries
|
|
650
|
+
* the label; beside a link it is a mark-only button named by the row's label
|
|
651
|
+
* through `aria-labelledby`. In the rail, a trigger without a link opens the
|
|
652
|
+
* flyout instead of the inline group.
|
|
653
|
+
*/
|
|
654
|
+
class SlSideNavigationTrigger extends SideNavigationRow {
|
|
655
|
+
hint = computed(() => !this.item.hasLink() && (this.navigation.compact() || this.item.clipped()), /* @ts-ignore */
|
|
656
|
+
...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
|
|
657
|
+
constructor() {
|
|
658
|
+
super();
|
|
659
|
+
this.item.triggerNode.set(this.native);
|
|
660
|
+
inject(DestroyRef).onDestroy(() => this.item.triggerNode.set(null));
|
|
661
|
+
}
|
|
662
|
+
onClick(event) {
|
|
663
|
+
if (event.defaultPrevented)
|
|
664
|
+
return;
|
|
665
|
+
const reason = activationReason(event);
|
|
666
|
+
if (this.navigation.compact() && !this.item.hasLink()) {
|
|
667
|
+
this.navigation.setFlyout(this.item.flyoutOpen() ? null : this.item.value(), reason, event);
|
|
668
|
+
return;
|
|
669
|
+
}
|
|
670
|
+
this.navigation.toggleExpanded(this.item.value(), !this.item.expanded(), reason, event);
|
|
671
|
+
}
|
|
672
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationTrigger, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
673
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlSideNavigationTrigger, isStandalone: true, selector: "button[slSideNavigationTrigger]", host: { attributes: { "data-part": "trigger", "type": "button" }, listeners: { "pointerenter": "onPointerEnter($event)", "pointerleave": "onPointerLeave($event)", "pointerdown": "onPointerDown($event)", "pointerup": "onPointerUp()", "pointercancel": "onPointerUp()", "focus": "onFocus($event)", "blur": "onBlur($event)", "click": "onClick($event)" }, properties: { "attr.aria-describedby": "describedBy()", "attr.id": "item.ids.triggerId", "attr.aria-controls": "item.ids.groupId", "attr.aria-expanded": "item.flyoutOpen() || item.expanded()", "attr.aria-labelledby": "item.hasLink() ? item.ids.labelId : null", "disabled": "item.resolvedDisabled()" } }, providers: [
|
|
674
|
+
provideTooltipDefaults({ describes: 'description', openOn: 'hover', side: 'inline-end' }),
|
|
675
|
+
], exportAs: ["slSideNavigationTrigger"], usesInheritance: true, hostDirectives: [{ directive: i1.SlTooltip }], ngImport: i0, template: `<ng-content />
|
|
676
|
+
<span data-part="indicator" aria-hidden="true"
|
|
677
|
+
><span slIcon directional><svg slGlyph name="chevron-right"></svg></span
|
|
678
|
+
></span>
|
|
679
|
+
@if (hint()) {
|
|
680
|
+
<ng-template slTooltipLayer>
|
|
681
|
+
<div slTooltipContent>{{ item.labelText() }}</div>
|
|
682
|
+
</ng-template>
|
|
683
|
+
}`, isInline: true, dependencies: [{ kind: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }, { kind: "directive", type: SlTooltipLayer, selector: "ng-template[slTooltipLayer]", exportAs: ["slTooltipLayer"] }, { kind: "component", type: SlTooltipContent, selector: "[slTooltipContent]", exportAs: ["slTooltipContent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
684
|
+
}
|
|
685
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationTrigger, decorators: [{
|
|
686
|
+
type: Component,
|
|
687
|
+
args: [{
|
|
688
|
+
selector: 'button[slSideNavigationTrigger]',
|
|
689
|
+
standalone: true,
|
|
690
|
+
exportAs: 'slSideNavigationTrigger',
|
|
691
|
+
imports: [SlGlyph, SlIcon, SlTooltipLayer, SlTooltipContent],
|
|
692
|
+
template: `<ng-content />
|
|
693
|
+
<span data-part="indicator" aria-hidden="true"
|
|
694
|
+
><span slIcon directional><svg slGlyph name="chevron-right"></svg></span
|
|
695
|
+
></span>
|
|
696
|
+
@if (hint()) {
|
|
697
|
+
<ng-template slTooltipLayer>
|
|
698
|
+
<div slTooltipContent>{{ item.labelText() }}</div>
|
|
699
|
+
</ng-template>
|
|
700
|
+
}`,
|
|
701
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
702
|
+
encapsulation: ViewEncapsulation.None,
|
|
703
|
+
hostDirectives: [SlTooltip],
|
|
704
|
+
providers: [
|
|
705
|
+
provideTooltipDefaults({ describes: 'description', openOn: 'hover', side: 'inline-end' }),
|
|
706
|
+
],
|
|
707
|
+
host: {
|
|
708
|
+
...HINT_HOST,
|
|
709
|
+
'data-part': 'trigger',
|
|
710
|
+
type: 'button',
|
|
711
|
+
'[attr.id]': 'item.ids.triggerId',
|
|
712
|
+
'[attr.aria-controls]': 'item.ids.groupId',
|
|
713
|
+
'[attr.aria-expanded]': 'item.flyoutOpen() || item.expanded()',
|
|
714
|
+
'[attr.aria-labelledby]': 'item.hasLink() ? item.ids.labelId : null',
|
|
715
|
+
'[disabled]': 'item.resolvedDisabled()',
|
|
716
|
+
'(click)': 'onClick($event)',
|
|
717
|
+
},
|
|
718
|
+
}]
|
|
719
|
+
}], ctorParameters: () => [] });
|
|
720
|
+
/* ── The parts of a row ─────────────────────────────────────────────────── */
|
|
721
|
+
/** The box the mark stands in. What is left of a row in the rail. */
|
|
722
|
+
class SlSideNavigationIcon {
|
|
723
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
724
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSideNavigationIcon, isStandalone: true, selector: "[slSideNavigationIcon]", host: { attributes: { "data-part": "icon", "aria-hidden": "true" } }, ngImport: i0 });
|
|
725
|
+
}
|
|
726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationIcon, decorators: [{
|
|
727
|
+
type: Directive,
|
|
728
|
+
args: [{
|
|
729
|
+
selector: '[slSideNavigationIcon]',
|
|
730
|
+
standalone: true,
|
|
731
|
+
host: { 'data-part': 'icon', 'aria-hidden': 'true' },
|
|
732
|
+
}]
|
|
733
|
+
}] });
|
|
734
|
+
/**
|
|
735
|
+
* The row's text. It registers its words with the item, for the tooltip and
|
|
736
|
+
* for the accessible name under a middle cut, and measures itself whenever
|
|
737
|
+
* the column was resized: a label that overflows its box marks the row
|
|
738
|
+
* clipped, which is what opens the tooltip on a row that fits nothing.
|
|
739
|
+
*/
|
|
740
|
+
class SlSideNavigationLabel {
|
|
741
|
+
item = inject(SlSideNavigationItem);
|
|
742
|
+
navigation = inject(SlSideNavigation);
|
|
743
|
+
native = inject(ElementRef).nativeElement;
|
|
744
|
+
/** The words as the consumer wrote them, kept while a middle cut is shown. */
|
|
745
|
+
whole = null;
|
|
746
|
+
constructor() {
|
|
747
|
+
afterNextRender(() => {
|
|
748
|
+
this.whole = this.native.textContent ?? '';
|
|
749
|
+
this.item.labelText.set(this.whole);
|
|
750
|
+
this.measure();
|
|
751
|
+
});
|
|
752
|
+
effect(() => {
|
|
753
|
+
this.navigation.measureTick();
|
|
754
|
+
this.navigation.compact();
|
|
755
|
+
this.navigation.resolvedTruncate();
|
|
756
|
+
if (this.whole !== null)
|
|
757
|
+
this.measure();
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
measure() {
|
|
761
|
+
const whole = this.whole ?? '';
|
|
762
|
+
const truncate = this.navigation.resolvedTruncate();
|
|
763
|
+
if (truncate === 'none' || this.navigation.compact()) {
|
|
764
|
+
if (this.native.textContent !== whole)
|
|
765
|
+
this.native.textContent = whole;
|
|
766
|
+
this.item.clipped.set(this.navigation.compact());
|
|
767
|
+
return;
|
|
768
|
+
}
|
|
769
|
+
if (truncate === 'middle') {
|
|
770
|
+
const style = getComputedStyle(this.native);
|
|
771
|
+
const canvas = this.native.ownerDocument.createElement('canvas').getContext('2d');
|
|
772
|
+
const room = this.native.clientWidth;
|
|
773
|
+
if (canvas === null || room === 0)
|
|
774
|
+
return;
|
|
775
|
+
/* The parts rather than the shorthand: Firefox reports the shorthand empty. */
|
|
776
|
+
canvas.font = `${style.fontStyle} ${style.fontWeight} ${style.fontSize} ${style.fontFamily}`;
|
|
777
|
+
const cut = truncateMiddle(whole, (candidate) => canvas.measureText(candidate).width <= room);
|
|
778
|
+
if (this.native.textContent !== cut)
|
|
779
|
+
this.native.textContent = cut;
|
|
780
|
+
this.item.clipped.set(cut !== whole);
|
|
781
|
+
return;
|
|
782
|
+
}
|
|
783
|
+
if (this.native.textContent !== whole)
|
|
784
|
+
this.native.textContent = whole;
|
|
785
|
+
this.item.clipped.set(this.native.scrollWidth > this.native.clientWidth + 1);
|
|
786
|
+
}
|
|
787
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
788
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSideNavigationLabel, isStandalone: true, selector: "[slSideNavigationLabel]", host: { attributes: { "data-part": "label" }, properties: { "attr.id": "item.ids.labelId" } }, ngImport: i0 });
|
|
789
|
+
}
|
|
790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationLabel, decorators: [{
|
|
791
|
+
type: Directive,
|
|
792
|
+
args: [{
|
|
793
|
+
selector: '[slSideNavigationLabel]',
|
|
794
|
+
standalone: true,
|
|
795
|
+
host: { 'data-part': 'label', '[attr.id]': 'item.ids.labelId' },
|
|
796
|
+
}]
|
|
797
|
+
}], ctorParameters: () => [] });
|
|
798
|
+
/** The second line under the title. */
|
|
799
|
+
class SlSideNavigationDescription {
|
|
800
|
+
item = inject(SlSideNavigationItem);
|
|
801
|
+
native = inject(ElementRef).nativeElement;
|
|
802
|
+
constructor() {
|
|
803
|
+
afterNextRender(() => this.item.descriptionText.set(this.native.textContent ?? ''));
|
|
804
|
+
}
|
|
805
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
806
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSideNavigationDescription, isStandalone: true, selector: "[slSideNavigationDescription]", host: { attributes: { "data-part": "description" } }, ngImport: i0 });
|
|
807
|
+
}
|
|
808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationDescription, decorators: [{
|
|
809
|
+
type: Directive,
|
|
810
|
+
args: [{
|
|
811
|
+
selector: '[slSideNavigationDescription]',
|
|
812
|
+
standalone: true,
|
|
813
|
+
host: { 'data-part': 'description' },
|
|
814
|
+
}]
|
|
815
|
+
}], ctorParameters: () => [] });
|
|
816
|
+
/** A quantity beside a destination, drawn as tabular figures. Never cut. */
|
|
817
|
+
class SlSideNavigationCount {
|
|
818
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationCount, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
819
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSideNavigationCount, isStandalone: true, selector: "[slSideNavigationCount]", host: { attributes: { "data-part": "count" } }, ngImport: i0 });
|
|
820
|
+
}
|
|
821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationCount, decorators: [{
|
|
822
|
+
type: Directive,
|
|
823
|
+
args: [{
|
|
824
|
+
selector: '[slSideNavigationCount]',
|
|
825
|
+
standalone: true,
|
|
826
|
+
host: { 'data-part': 'count' },
|
|
827
|
+
}]
|
|
828
|
+
}] });
|
|
829
|
+
/** The suffix with a tone: a badge, a key. */
|
|
830
|
+
class SlSideNavigationEnd {
|
|
831
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationEnd, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
832
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSideNavigationEnd, isStandalone: true, selector: "[slSideNavigationEnd]", host: { attributes: { "data-part": "end" } }, ngImport: i0 });
|
|
833
|
+
}
|
|
834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationEnd, decorators: [{
|
|
835
|
+
type: Directive,
|
|
836
|
+
args: [{
|
|
837
|
+
selector: '[slSideNavigationEnd]',
|
|
838
|
+
standalone: true,
|
|
839
|
+
host: { 'data-part': 'end' },
|
|
840
|
+
}]
|
|
841
|
+
}] });
|
|
842
|
+
/** Controls beside the row, outside its `a` or `button`. */
|
|
843
|
+
class SlSideNavigationActions {
|
|
844
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
845
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSideNavigationActions, isStandalone: true, selector: "[slSideNavigationActions]", host: { attributes: { "data-part": "actions" } }, ngImport: i0 });
|
|
846
|
+
}
|
|
847
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationActions, decorators: [{
|
|
848
|
+
type: Directive,
|
|
849
|
+
args: [{
|
|
850
|
+
selector: '[slSideNavigationActions]',
|
|
851
|
+
standalone: true,
|
|
852
|
+
host: { 'data-part': 'actions' },
|
|
853
|
+
}]
|
|
854
|
+
}] });
|
|
855
|
+
/** A rule between items that keeps the list a list. */
|
|
856
|
+
class SlSideNavigationDivider {
|
|
857
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationDivider, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
858
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSideNavigationDivider, isStandalone: true, selector: "li[slSideNavigationDivider]", host: { attributes: { "data-part": "divider", "role": "separator" } }, ngImport: i0 });
|
|
859
|
+
}
|
|
860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationDivider, decorators: [{
|
|
861
|
+
type: Directive,
|
|
862
|
+
args: [{
|
|
863
|
+
selector: 'li[slSideNavigationDivider]',
|
|
864
|
+
standalone: true,
|
|
865
|
+
host: { 'data-part': 'divider', role: 'separator' },
|
|
866
|
+
}]
|
|
867
|
+
}] });
|
|
868
|
+
/** A row still arriving: an item's geometry with `skeleton` boxes in it. */
|
|
869
|
+
class SlSideNavigationSkeleton {
|
|
870
|
+
/** How wide the label's bar is drawn, as any CSS length. */
|
|
871
|
+
labelSize = input('60%', /* @ts-ignore */
|
|
872
|
+
...(ngDevMode ? [{ debugName: "labelSize" }] : /* istanbul ignore next */ []));
|
|
873
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationSkeleton, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
874
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlSideNavigationSkeleton, isStandalone: true, selector: "li[slSideNavigationSkeleton]", inputs: { labelSize: { classPropertyName: "labelSize", publicName: "labelSize", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-part": "skeleton", "aria-hidden": "true" } }, ngImport: i0, template: `<span data-part="icon"><span slSkeleton shape="square" size="xs"></span></span>
|
|
875
|
+
<span data-part="label"
|
|
876
|
+
><span slSkeleton shape="text" [inlineSize]="labelSize()"></span
|
|
877
|
+
></span>`, isInline: true, dependencies: [{ kind: "component", type: SlSkeleton, selector: "[slSkeleton]", inputs: ["shape", "size", "animation", "loading", "inlineSize", "blockSize"], exportAs: ["slSkeleton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
878
|
+
}
|
|
879
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationSkeleton, decorators: [{
|
|
880
|
+
type: Component,
|
|
881
|
+
args: [{
|
|
882
|
+
selector: 'li[slSideNavigationSkeleton]',
|
|
883
|
+
standalone: true,
|
|
884
|
+
imports: [SlSkeleton],
|
|
885
|
+
template: `<span data-part="icon"><span slSkeleton shape="square" size="xs"></span></span>
|
|
886
|
+
<span data-part="label"
|
|
887
|
+
><span slSkeleton shape="text" [inlineSize]="labelSize()"></span
|
|
888
|
+
></span>`,
|
|
889
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
890
|
+
encapsulation: ViewEncapsulation.None,
|
|
891
|
+
host: { 'data-part': 'skeleton', 'aria-hidden': 'true' },
|
|
892
|
+
}]
|
|
893
|
+
}], propDecorators: { labelSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelSize", required: false }] }] } });
|
|
894
|
+
/* ── The group, inline or in the flyout ─────────────────────────────────── */
|
|
895
|
+
/**
|
|
896
|
+
* An item's children. Inline, it is the second track of the item's grid and
|
|
897
|
+
* opens with it. In the rail the same `ul` is moved into a layer beside the
|
|
898
|
+
* trigger — composed from `portal`, `positioner`, `presence` and
|
|
899
|
+
* `dismissable-layer`, the four modules every overlay in the library takes —
|
|
900
|
+
* and moved back when the layer has left, which is what the CDK's
|
|
901
|
+
* `DomPortalOutlet` does with a template's nodes.
|
|
902
|
+
*/
|
|
903
|
+
class SlSideNavigationGroup {
|
|
904
|
+
item = inject(SlSideNavigationItem);
|
|
905
|
+
navigation = inject(SlSideNavigation);
|
|
906
|
+
native = inject(ElementRef).nativeElement;
|
|
907
|
+
layer = null;
|
|
908
|
+
home = null;
|
|
909
|
+
portal = null;
|
|
910
|
+
positioner = null;
|
|
911
|
+
dismissable = null;
|
|
912
|
+
status = signal('unmounted', /* @ts-ignore */
|
|
913
|
+
...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
914
|
+
presence = createPresence({
|
|
915
|
+
present: false,
|
|
916
|
+
onStatusChange: (next) => this.status.set(next),
|
|
917
|
+
});
|
|
918
|
+
constructor() {
|
|
919
|
+
this.item.hasGroup.set(true);
|
|
920
|
+
effect(() => this.presence.sync(this.item.flyoutOpen()));
|
|
921
|
+
effect(() => (this.status() === 'unmounted' ? this.teardown() : this.build()));
|
|
922
|
+
effect(() => this.stack());
|
|
923
|
+
inject(DestroyRef).onDestroy(() => {
|
|
924
|
+
this.item.hasGroup.set(false);
|
|
925
|
+
this.presence.destroy();
|
|
926
|
+
this.teardown();
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
build() {
|
|
930
|
+
if (this.layer !== null)
|
|
931
|
+
return;
|
|
932
|
+
const anchor = this.item.triggerNode();
|
|
933
|
+
const document = this.native.ownerDocument;
|
|
934
|
+
const layer = document.createElement('div');
|
|
935
|
+
layer.setAttribute('data-ui', 'side-navigation');
|
|
936
|
+
layer.setAttribute('data-part', 'flyout');
|
|
937
|
+
layer.setAttribute('data-size', this.navigation.resolvedSize());
|
|
938
|
+
layer.setAttribute('data-truncate', this.navigation.resolvedTruncate());
|
|
939
|
+
if (this.navigation.resolvedGuides())
|
|
940
|
+
layer.setAttribute('data-guides', '');
|
|
941
|
+
layer.addEventListener('focusout', this.onFocusOut);
|
|
942
|
+
this.home = { parent: this.native.parentNode, next: this.native.nextSibling };
|
|
943
|
+
layer.appendChild(this.native);
|
|
944
|
+
const portal = createPortalRoot({ origin: anchor });
|
|
945
|
+
(portal.container ?? this.home.parent).appendChild(layer);
|
|
946
|
+
this.portal = portal;
|
|
947
|
+
this.layer = layer;
|
|
948
|
+
this.presence.setNode(layer);
|
|
949
|
+
this.navigation.flyoutNode.set(layer);
|
|
950
|
+
if (anchor !== null) {
|
|
951
|
+
this.positioner = createPositioner(anchor, layer, {
|
|
952
|
+
align: 'start',
|
|
953
|
+
flip: true,
|
|
954
|
+
shift: true,
|
|
955
|
+
side: 'inline-end',
|
|
956
|
+
sideOffset: 0,
|
|
957
|
+
strategy: 'fixed',
|
|
958
|
+
});
|
|
959
|
+
void this.positioner.update().then(() => {
|
|
960
|
+
if (this.layer === layer && this.item.flyoutOpen())
|
|
961
|
+
layer.setAttribute('data-open', '');
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
/** The layer joins the single stack only while it is open; the trigger is a branch. */
|
|
966
|
+
stack() {
|
|
967
|
+
const open = this.item.flyoutOpen();
|
|
968
|
+
const layer = this.layer;
|
|
969
|
+
this.dismissable?.destroy();
|
|
970
|
+
this.dismissable = null;
|
|
971
|
+
if (layer === null || !open) {
|
|
972
|
+
layer?.removeAttribute('data-open');
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
975
|
+
const anchor = this.item.triggerNode();
|
|
976
|
+
this.dismissable = createDismissableLayer(layer, {
|
|
977
|
+
escape: true,
|
|
978
|
+
focusOutside: false,
|
|
979
|
+
modal: false,
|
|
980
|
+
outsidePress: true,
|
|
981
|
+
scrollLock: false,
|
|
982
|
+
...(anchor ? { branches: [anchor] } : {}),
|
|
983
|
+
onDismiss: (request) => {
|
|
984
|
+
const reason = request.reason === 'escape' ? 'escape' : 'outsidePress';
|
|
985
|
+
this.navigation.setFlyout(null, reason, request.source);
|
|
986
|
+
if (reason === 'escape')
|
|
987
|
+
anchor?.focus();
|
|
988
|
+
},
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
onFocusOut = (event) => {
|
|
992
|
+
const next = event.relatedTarget;
|
|
993
|
+
const layer = this.layer;
|
|
994
|
+
if (next === null || layer === null || !this.item.flyoutOpen())
|
|
995
|
+
return;
|
|
996
|
+
if (layer.contains(next) || this.item.triggerNode()?.contains(next))
|
|
997
|
+
return;
|
|
998
|
+
this.navigation.setFlyout(null, 'blur', event);
|
|
999
|
+
};
|
|
1000
|
+
teardown() {
|
|
1001
|
+
const layer = this.layer;
|
|
1002
|
+
if (layer === null)
|
|
1003
|
+
return;
|
|
1004
|
+
this.dismissable?.destroy();
|
|
1005
|
+
this.dismissable = null;
|
|
1006
|
+
this.positioner?.destroy();
|
|
1007
|
+
this.positioner = null;
|
|
1008
|
+
layer.removeEventListener('focusout', this.onFocusOut);
|
|
1009
|
+
if (this.home !== null)
|
|
1010
|
+
this.home.parent.insertBefore(this.native, this.home.next);
|
|
1011
|
+
this.home = null;
|
|
1012
|
+
this.presence.setNode(null);
|
|
1013
|
+
layer.remove();
|
|
1014
|
+
this.portal?.release();
|
|
1015
|
+
this.portal = null;
|
|
1016
|
+
this.layer = null;
|
|
1017
|
+
if (this.navigation.flyoutNode() === layer)
|
|
1018
|
+
this.navigation.flyoutNode.set(null);
|
|
1019
|
+
}
|
|
1020
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1021
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlSideNavigationGroup, isStandalone: true, selector: "ul[slSideNavigationGroup]", host: { attributes: { "data-part": "group" }, properties: { "attr.id": "item.ids.groupId", "attr.aria-labelledby": "item.ids.labelId" } }, exportAs: ["slSideNavigationGroup"], ngImport: i0 });
|
|
1022
|
+
}
|
|
1023
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSideNavigationGroup, decorators: [{
|
|
1024
|
+
type: Directive,
|
|
1025
|
+
args: [{
|
|
1026
|
+
selector: 'ul[slSideNavigationGroup]',
|
|
1027
|
+
standalone: true,
|
|
1028
|
+
exportAs: 'slSideNavigationGroup',
|
|
1029
|
+
host: {
|
|
1030
|
+
'data-part': 'group',
|
|
1031
|
+
'[attr.id]': 'item.ids.groupId',
|
|
1032
|
+
'[attr.aria-labelledby]': 'item.ids.labelId',
|
|
1033
|
+
},
|
|
1034
|
+
}]
|
|
1035
|
+
}], ctorParameters: () => [] });
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Generated bundle index. Do not edit.
|
|
1039
|
+
*/
|
|
1040
|
+
|
|
1041
|
+
export { SIDE_NAVIGATION_DEFAULTS, SIDE_NAVIGATION_FALLBACK, SIDE_NAVIGATION_ROW_SELECTOR, SlSideNavigation, SlSideNavigationActions, SlSideNavigationCount, SlSideNavigationDescription, SlSideNavigationDivider, SlSideNavigationEnd, SlSideNavigationGroup, SlSideNavigationIcon, SlSideNavigationIdFactory, SlSideNavigationItem, SlSideNavigationLabel, SlSideNavigationLink, SlSideNavigationList, SlSideNavigationSection, SlSideNavigationSectionLabel, SlSideNavigationSkeleton, SlSideNavigationTrigger, injectSideNavigationDefaults, provideSideNavigationDefaults };
|
|
1042
|
+
//# sourceMappingURL=slotted-angular-side-navigation.mjs.map
|