@slotted/angular 0.0.0-stage → 0.1.0-beta.0
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,877 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Injectable, input, inject, ElementRef, afterNextRender, Directive, model, booleanAttribute, output, Injector, HostAttributeToken, viewChild, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, effect, untracked } from '@angular/core';
|
|
4
|
+
import { injectMessages } from '@slotted/angular/i18n';
|
|
5
|
+
import { SlButton } from '@slotted/angular/button';
|
|
6
|
+
import { SlField, SlFieldError, SlFieldLabel } from '@slotted/angular/field';
|
|
7
|
+
import { SlGlyph, SlIcon } from '@slotted/angular/icon';
|
|
8
|
+
import { SlMenu, SlMenuItem, SlMenuTrigger } from '@slotted/angular/menu';
|
|
9
|
+
import { SlPopover, SlPopoverContent, SlPopoverLayer, SlPopoverTrigger } from '@slotted/angular/popover';
|
|
10
|
+
import { SlTextField, SlTextFieldInput } from '@slotted/angular/text-field';
|
|
11
|
+
import { emptySavedViews, parseGridView, sameSavedView, BUILT_IN_VIEW_ID, withActiveView, withViewSaved, savedViewText, withDefaultView, isViewNameTaken, withViewCreated, withViewRenamed, withViewDeleted, serializeSavedViews, parseSavedViews } from '@slotted/core/grid';
|
|
12
|
+
import { savedViewsMessages } from '@slotted/core/i18n';
|
|
13
|
+
import { getLiveAnnouncer } from '@slotted/core/live-announcer';
|
|
14
|
+
|
|
15
|
+
class SlSavedViewsIdFactory {
|
|
16
|
+
count = 0;
|
|
17
|
+
next() {
|
|
18
|
+
this.count += 1;
|
|
19
|
+
return `slotted-saved-views-${this.count}`;
|
|
20
|
+
}
|
|
21
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSavedViewsIdFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
22
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSavedViewsIdFactory, providedIn: 'root' });
|
|
23
|
+
}
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSavedViewsIdFactory, decorators: [{
|
|
25
|
+
type: Injectable,
|
|
26
|
+
args: [{ providedIn: 'root' }]
|
|
27
|
+
}] });
|
|
28
|
+
let counter = 0;
|
|
29
|
+
/** `crypto.randomUUID()` where the platform has it, and a counter otherwise. */
|
|
30
|
+
function newSavedViewId() {
|
|
31
|
+
const crypto = globalThis.crypto;
|
|
32
|
+
if (typeof crypto?.randomUUID === 'function')
|
|
33
|
+
return crypto.randomUUID();
|
|
34
|
+
counter += 1;
|
|
35
|
+
return `view-${Date.now().toString(36)}-${counter}`;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* `slMenuTriggerFor` binds `[attr.data-part]` and resolves it to `null` on a
|
|
40
|
+
* trigger that is neither a bar's item nor a submenu's; a host binding of
|
|
41
|
+
* `null` removes the part the template wrote. The part is written back after
|
|
42
|
+
* the first change detection, where the constant binding is not applied again.
|
|
43
|
+
*/
|
|
44
|
+
class SlSavedViewsPart {
|
|
45
|
+
slSavedViewsPart = input.required(/* @ts-ignore */
|
|
46
|
+
...(ngDevMode ? [{ debugName: "slSavedViewsPart" }] : /* istanbul ignore next */ []));
|
|
47
|
+
constructor() {
|
|
48
|
+
const element = inject(ElementRef).nativeElement;
|
|
49
|
+
afterNextRender(() => element.setAttribute('data-part', this.slSavedViewsPart()));
|
|
50
|
+
}
|
|
51
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSavedViewsPart, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
52
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: SlSavedViewsPart, isStandalone: true, selector: "[slSavedViewsPart]", inputs: { slSavedViewsPart: { classPropertyName: "slSavedViewsPart", publicName: "slSavedViewsPart", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
53
|
+
}
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSavedViewsPart, decorators: [{
|
|
55
|
+
type: Directive,
|
|
56
|
+
args: [{ selector: '[slSavedViewsPart]', standalone: true }]
|
|
57
|
+
}], ctorParameters: () => [], propDecorators: { slSavedViewsPart: [{ type: i0.Input, args: [{ isSignal: true, alias: "slSavedViewsPart", required: true }] }] } });
|
|
58
|
+
/**
|
|
59
|
+
* The named views of a grid, and the one in use: a trigger naming it, a mark
|
|
60
|
+
* and a revert while the grid differs from it, and a popover listing every
|
|
61
|
+
* view with its actions. The family applies nothing to a grid — it asks with
|
|
62
|
+
* `stateChangeRequest` and hands the consumer the view to write through
|
|
63
|
+
* `viewApply`.
|
|
64
|
+
*/
|
|
65
|
+
class SlSavedViews {
|
|
66
|
+
/** The view the grid shows now. */
|
|
67
|
+
current = input.required(/* @ts-ignore */
|
|
68
|
+
...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
|
|
69
|
+
/** The built-in view: the application's defaults. */
|
|
70
|
+
builtIn = input.required(/* @ts-ignore */
|
|
71
|
+
...(ngDevMode ? [{ debugName: "builtIn" }] : /* istanbul ignore next */ []));
|
|
72
|
+
/** The model, so a view is serialized and compared against the columns it names. */
|
|
73
|
+
columns = input(undefined, /* @ts-ignore */
|
|
74
|
+
...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
|
|
75
|
+
/** The views. Two-way, so a template may bind it directly; cancel the request to hold it. */
|
|
76
|
+
state = model(undefined, /* @ts-ignore */
|
|
77
|
+
...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
78
|
+
/** The views an unbound instance starts from. */
|
|
79
|
+
defaultState = input(undefined, /* @ts-ignore */
|
|
80
|
+
...(ngDevMode ? [{ debugName: "defaultState" }] : /* istanbul ignore next */ []));
|
|
81
|
+
/** Whether the layer is open. Two-way. */
|
|
82
|
+
open = model(undefined, /* @ts-ignore */
|
|
83
|
+
...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
84
|
+
defaultOpen = input(false, { ...(ngDevMode ? { debugName: "defaultOpen" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
85
|
+
/**
|
|
86
|
+
* Words laid over the catalog of the language in force, key by key: the
|
|
87
|
+
* group's and the panel's name (`label`), the controls, the forms and the
|
|
88
|
+
* announcements. A host `aria-label` names both instead.
|
|
89
|
+
*/
|
|
90
|
+
messages = input(undefined, /* @ts-ignore */
|
|
91
|
+
...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
|
|
92
|
+
/** Every change to the views, carrying the action and the reason; cancellable. */
|
|
93
|
+
stateChangeRequest = output();
|
|
94
|
+
/** One output for one transition of the layer. */
|
|
95
|
+
openChangeRequest = output();
|
|
96
|
+
/** After apply and revert: the view to write into the grid. */
|
|
97
|
+
viewApply = output();
|
|
98
|
+
injector = inject(Injector);
|
|
99
|
+
host = inject(ElementRef).nativeElement;
|
|
100
|
+
role = inject(new HostAttributeToken('role'), { optional: true }) ?? 'group';
|
|
101
|
+
writtenLabel = inject(new HostAttributeToken('aria-label'), {
|
|
102
|
+
optional: true,
|
|
103
|
+
});
|
|
104
|
+
panelId = `${inject(SlSavedViewsIdFactory).next()}-panel`;
|
|
105
|
+
triggerRef = viewChild.required('trigger', /* @ts-ignore */
|
|
106
|
+
...(ngDevMode ? [{ debugName: "triggerRef" }] : /* istanbul ignore next */ []));
|
|
107
|
+
editing = signal(null, /* @ts-ignore */
|
|
108
|
+
...(ngDevMode ? [{ debugName: "editing" }] : /* istanbul ignore next */ []));
|
|
109
|
+
draft = signal('', /* @ts-ignore */
|
|
110
|
+
...(ngDevMode ? [{ debugName: "draft" }] : /* istanbul ignore next */ []));
|
|
111
|
+
error = signal(null, /* @ts-ignore */
|
|
112
|
+
...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
113
|
+
/** The family's words in the language in force, with this control's `messages` laid over them. */
|
|
114
|
+
t = injectMessages(savedViewsMessages, this.messages);
|
|
115
|
+
resolvedLabel = computed(() => this.writtenLabel ?? this.t('label'), /* @ts-ignore */
|
|
116
|
+
...(ngDevMode ? [{ debugName: "resolvedLabel" }] : /* istanbul ignore next */ []));
|
|
117
|
+
resolvedState = computed(() => this.state() ?? this.defaultState() ?? emptySavedViews(), /* @ts-ignore */
|
|
118
|
+
...(ngDevMode ? [{ debugName: "resolvedState" }] : /* istanbul ignore next */ []));
|
|
119
|
+
isOpen = computed(() => this.open() ?? this.defaultOpen(), /* @ts-ignore */
|
|
120
|
+
...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
|
|
121
|
+
active = computed(() => {
|
|
122
|
+
const state = this.resolvedState();
|
|
123
|
+
return state.views.find((view) => view.id === state.activeId) ?? null;
|
|
124
|
+
}, /* @ts-ignore */
|
|
125
|
+
...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
126
|
+
activeView = computed(() => {
|
|
127
|
+
const active = this.active();
|
|
128
|
+
return active ? parseGridView(active.view, this.columns()) : this.builtIn();
|
|
129
|
+
}, /* @ts-ignore */
|
|
130
|
+
...(ngDevMode ? [{ debugName: "activeView" }] : /* istanbul ignore next */ []));
|
|
131
|
+
modified = computed(() => !sameSavedView(this.current(), this.activeView(), this.columns()), /* @ts-ignore */
|
|
132
|
+
...(ngDevMode ? [{ debugName: "modified" }] : /* istanbul ignore next */ []));
|
|
133
|
+
activeName = computed(() => this.active()?.name ?? this.t('builtIn'), /* @ts-ignore */
|
|
134
|
+
...(ngDevMode ? [{ debugName: "activeName" }] : /* istanbul ignore next */ []));
|
|
135
|
+
canSave = computed(() => this.active() !== null && this.modified(), /* @ts-ignore */
|
|
136
|
+
...(ngDevMode ? [{ debugName: "canSave" }] : /* istanbul ignore next */ []));
|
|
137
|
+
rows = computed(() => {
|
|
138
|
+
const state = this.resolvedState();
|
|
139
|
+
return [
|
|
140
|
+
{
|
|
141
|
+
id: null,
|
|
142
|
+
key: BUILT_IN_VIEW_ID,
|
|
143
|
+
name: this.t('builtIn'),
|
|
144
|
+
view: null,
|
|
145
|
+
current: state.activeId === null,
|
|
146
|
+
isDefault: state.defaultId === null,
|
|
147
|
+
},
|
|
148
|
+
...state.views.map((view) => ({
|
|
149
|
+
id: view.id,
|
|
150
|
+
key: view.id,
|
|
151
|
+
name: view.name,
|
|
152
|
+
view,
|
|
153
|
+
current: state.activeId === view.id,
|
|
154
|
+
isDefault: state.defaultId === view.id,
|
|
155
|
+
})),
|
|
156
|
+
];
|
|
157
|
+
}, /* @ts-ignore */
|
|
158
|
+
...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
159
|
+
/** A click the keyboard produced has no pointer detail. */
|
|
160
|
+
pressReason(event) {
|
|
161
|
+
return event.detail === 0 ? 'keyboard' : 'pointer';
|
|
162
|
+
}
|
|
163
|
+
editingKind(row) {
|
|
164
|
+
const editing = this.editing();
|
|
165
|
+
if (editing === null || editing.kind === 'create' || editing.id !== row.id)
|
|
166
|
+
return null;
|
|
167
|
+
return editing.kind;
|
|
168
|
+
}
|
|
169
|
+
/** Opens the layer, carrying `programmatic`. */
|
|
170
|
+
show() {
|
|
171
|
+
this.setOpen(true, 'programmatic');
|
|
172
|
+
}
|
|
173
|
+
/** Closes the layer, carrying `programmatic`. */
|
|
174
|
+
hide() {
|
|
175
|
+
this.setOpen(false, 'programmatic');
|
|
176
|
+
}
|
|
177
|
+
/** Moves focus to the trigger. */
|
|
178
|
+
focus() {
|
|
179
|
+
this.triggerRef().nativeElement.focus();
|
|
180
|
+
}
|
|
181
|
+
/** Applies a view by id — `null` is the built-in view — carrying the reason. */
|
|
182
|
+
apply(id, reason = 'programmatic', source) {
|
|
183
|
+
const state = this.resolvedState();
|
|
184
|
+
const target = id === null ? null : (state.views.find((view) => view.id === id) ?? null);
|
|
185
|
+
if (id !== null && target === null)
|
|
186
|
+
return;
|
|
187
|
+
const request = this.request(withActiveView(state, id), 'apply', reason, source);
|
|
188
|
+
if (request === null)
|
|
189
|
+
return;
|
|
190
|
+
const view = target ? parseGridView(target.view, this.columns()) : this.builtIn();
|
|
191
|
+
this.viewApply.emit({ view, request });
|
|
192
|
+
this.announce(this.t('applied', { name: target?.name ?? this.t('builtIn') }));
|
|
193
|
+
this.setOpen(false, reason === 'keyboard' || reason === 'pointer' ? reason : 'programmatic', source);
|
|
194
|
+
}
|
|
195
|
+
revert(event) {
|
|
196
|
+
const request = this.request(this.resolvedState(), 'revert', this.pressReason(event), event);
|
|
197
|
+
if (request === null)
|
|
198
|
+
return;
|
|
199
|
+
this.viewApply.emit({ view: this.activeView(), request });
|
|
200
|
+
this.announce(this.t('applied', { name: this.activeName() }));
|
|
201
|
+
this.focusAfterRender({ id: null, part: 'trigger' });
|
|
202
|
+
}
|
|
203
|
+
save(event) {
|
|
204
|
+
const active = this.active();
|
|
205
|
+
if (active === null || !this.modified())
|
|
206
|
+
return;
|
|
207
|
+
const reason = this.pressReason(event);
|
|
208
|
+
const next = withViewSaved(this.resolvedState(), active.id, savedViewText(this.current(), this.columns()));
|
|
209
|
+
if (this.request(next, 'save', reason, event) === null)
|
|
210
|
+
return;
|
|
211
|
+
this.announce(this.t('saved', { name: active.name }));
|
|
212
|
+
this.setOpen(false, reason, event);
|
|
213
|
+
}
|
|
214
|
+
setDefault(id, event) {
|
|
215
|
+
const state = this.resolvedState();
|
|
216
|
+
const request = this.request(withDefaultView(state, id), 'default', event.reason, event.source);
|
|
217
|
+
if (request === null)
|
|
218
|
+
return;
|
|
219
|
+
const name = state.views.find((view) => view.id === id)?.name ?? this.t('builtIn');
|
|
220
|
+
this.announce(this.t('defaultChanged', { name }));
|
|
221
|
+
}
|
|
222
|
+
startCreate() {
|
|
223
|
+
this.editing.set({ kind: 'create' });
|
|
224
|
+
this.draft.set('');
|
|
225
|
+
this.error.set(null);
|
|
226
|
+
this.focusAfterRender({ id: null, part: 'input' });
|
|
227
|
+
}
|
|
228
|
+
startRename(view) {
|
|
229
|
+
this.editing.set({ kind: 'rename', id: view.id });
|
|
230
|
+
this.draft.set(view.name);
|
|
231
|
+
this.error.set(null);
|
|
232
|
+
this.focusAfterRender({ id: view.id, part: 'input' });
|
|
233
|
+
}
|
|
234
|
+
startDelete(view) {
|
|
235
|
+
this.editing.set({ kind: 'delete', id: view.id });
|
|
236
|
+
this.error.set(null);
|
|
237
|
+
this.focusAfterRender({ id: view.id, part: 'cancel' });
|
|
238
|
+
}
|
|
239
|
+
/** Cancelling returns focus to the control that opened the form. */
|
|
240
|
+
cancelEditing() {
|
|
241
|
+
const was = this.editing();
|
|
242
|
+
this.closeForms();
|
|
243
|
+
if (was === null)
|
|
244
|
+
return;
|
|
245
|
+
this.focusAfterRender(was.kind === 'create' ? { id: null, part: 'save-as' } : { id: was.id, part: 'actions' });
|
|
246
|
+
}
|
|
247
|
+
onDraft(value) {
|
|
248
|
+
this.draft.set(value ?? '');
|
|
249
|
+
this.error.set(null);
|
|
250
|
+
}
|
|
251
|
+
submit(event) {
|
|
252
|
+
event.preventDefault();
|
|
253
|
+
const editing = this.editing();
|
|
254
|
+
if (editing === null || editing.kind === 'delete')
|
|
255
|
+
return;
|
|
256
|
+
const state = this.resolvedState();
|
|
257
|
+
const name = this.draft().trim();
|
|
258
|
+
const except = editing.kind === 'rename' ? editing.id : null;
|
|
259
|
+
const builtIn = this.t('builtIn').trim().toLocaleLowerCase();
|
|
260
|
+
if (name === '')
|
|
261
|
+
this.error.set('empty');
|
|
262
|
+
else if (isViewNameTaken(state, name, except) || name.toLocaleLowerCase() === builtIn) {
|
|
263
|
+
this.error.set('duplicate');
|
|
264
|
+
}
|
|
265
|
+
if (this.error() !== null) {
|
|
266
|
+
this.focusAfterRender({ id: except, part: 'input' });
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
if (editing.kind === 'create') {
|
|
270
|
+
const id = newSavedViewId();
|
|
271
|
+
const next = withViewCreated(state, name, savedViewText(this.current(), this.columns()), id);
|
|
272
|
+
if (this.request(next, 'create', 'submit', event) === null)
|
|
273
|
+
return;
|
|
274
|
+
this.announce(this.t('saved', { name }));
|
|
275
|
+
this.closeForms();
|
|
276
|
+
this.focusAfterRender({ id, part: 'apply' });
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
if (this.request(withViewRenamed(state, editing.id, name), 'rename', 'submit', event) === null) {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
this.announce(this.t('renamed', { name }));
|
|
283
|
+
this.closeForms();
|
|
284
|
+
this.focusAfterRender({ id: editing.id, part: 'apply' });
|
|
285
|
+
}
|
|
286
|
+
confirmDelete(id, event) {
|
|
287
|
+
const state = this.resolvedState();
|
|
288
|
+
const index = state.views.findIndex((view) => view.id === id);
|
|
289
|
+
const view = state.views[index];
|
|
290
|
+
if (view === undefined)
|
|
291
|
+
return;
|
|
292
|
+
if (this.request(withViewDeleted(state, id), 'delete', 'remove', event) === null)
|
|
293
|
+
return;
|
|
294
|
+
this.announce(this.t('deleted', { name: view.name }));
|
|
295
|
+
this.closeForms();
|
|
296
|
+
this.focusAfterRender({ id: state.views[index - 1]?.id ?? BUILT_IN_VIEW_ID, part: 'apply' });
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* The dismissable layer asks in the capture phase. The popover's own move is
|
|
300
|
+
* always refused here and replayed as this family's request, so the layer
|
|
301
|
+
* follows one open state; a form open inside is cancelled first and the
|
|
302
|
+
* close is refused.
|
|
303
|
+
*/
|
|
304
|
+
onLayerRequest(request) {
|
|
305
|
+
request.cancel();
|
|
306
|
+
if (!request.value && request.reason === 'escape' && this.editing() !== null) {
|
|
307
|
+
this.cancelEditing();
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
this.setOpen(request.value, request.reason, request.source);
|
|
311
|
+
}
|
|
312
|
+
setOpen(next, reason, source) {
|
|
313
|
+
if (next === this.isOpen())
|
|
314
|
+
return;
|
|
315
|
+
let cancelled = false;
|
|
316
|
+
const request = {
|
|
317
|
+
value: next,
|
|
318
|
+
previous: !next,
|
|
319
|
+
reason,
|
|
320
|
+
source,
|
|
321
|
+
get cancelled() {
|
|
322
|
+
return cancelled;
|
|
323
|
+
},
|
|
324
|
+
cancel() {
|
|
325
|
+
cancelled = true;
|
|
326
|
+
},
|
|
327
|
+
};
|
|
328
|
+
this.openChangeRequest.emit(request);
|
|
329
|
+
if (cancelled)
|
|
330
|
+
return;
|
|
331
|
+
this.open.set(next);
|
|
332
|
+
if (!next)
|
|
333
|
+
this.closeForms();
|
|
334
|
+
}
|
|
335
|
+
/** Asks for a new state. Not emitted when nothing would change; refused when cancelled. */
|
|
336
|
+
request(next, action, reason, source) {
|
|
337
|
+
const previous = this.resolvedState();
|
|
338
|
+
let cancelled = false;
|
|
339
|
+
const request = {
|
|
340
|
+
value: next,
|
|
341
|
+
previous,
|
|
342
|
+
reason,
|
|
343
|
+
action,
|
|
344
|
+
source,
|
|
345
|
+
get cancelled() {
|
|
346
|
+
return cancelled;
|
|
347
|
+
},
|
|
348
|
+
cancel() {
|
|
349
|
+
cancelled = true;
|
|
350
|
+
},
|
|
351
|
+
};
|
|
352
|
+
if (serializeSavedViews(next) === serializeSavedViews(previous))
|
|
353
|
+
return request;
|
|
354
|
+
this.stateChangeRequest.emit(request);
|
|
355
|
+
if (cancelled)
|
|
356
|
+
return null;
|
|
357
|
+
this.state.set(next);
|
|
358
|
+
return request;
|
|
359
|
+
}
|
|
360
|
+
closeForms() {
|
|
361
|
+
this.editing.set(null);
|
|
362
|
+
this.draft.set('');
|
|
363
|
+
this.error.set(null);
|
|
364
|
+
}
|
|
365
|
+
announce(text) {
|
|
366
|
+
getLiveAnnouncer(this.host.ownerDocument).announce(text);
|
|
367
|
+
}
|
|
368
|
+
focusAfterRender(target) {
|
|
369
|
+
afterNextRender(() => {
|
|
370
|
+
if (target.part === 'trigger') {
|
|
371
|
+
this.focus();
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
const panel = this.host.ownerDocument.getElementById(this.panelId);
|
|
375
|
+
if (panel === null)
|
|
376
|
+
return;
|
|
377
|
+
const scope = target.id === null
|
|
378
|
+
? panel
|
|
379
|
+
: ([...panel.querySelectorAll('[data-part="item"]')].find((item) => item.dataset['view'] === target.id) ?? null);
|
|
380
|
+
const selector = {
|
|
381
|
+
apply: '[data-part="apply"]',
|
|
382
|
+
actions: '[data-part="actions"]',
|
|
383
|
+
input: target.id === null ? ':scope > [data-part="form"] input' : 'input',
|
|
384
|
+
cancel: '[data-cancel]',
|
|
385
|
+
'save-as': '[data-save-as]',
|
|
386
|
+
}[target.part];
|
|
387
|
+
scope?.querySelector(selector)?.focus();
|
|
388
|
+
}, { injector: this.injector });
|
|
389
|
+
}
|
|
390
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSavedViews, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
391
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlSavedViews, isStandalone: true, selector: "sl-saved-views", inputs: { current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: true, transformFunction: null }, builtIn: { classPropertyName: "builtIn", publicName: "builtIn", isSignal: true, isRequired: true, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, defaultState: { classPropertyName: "defaultState", publicName: "defaultState", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, defaultOpen: { classPropertyName: "defaultOpen", publicName: "defaultOpen", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { state: "stateChange", open: "openChange", stateChangeRequest: "stateChangeRequest", openChangeRequest: "openChangeRequest", viewApply: "viewApply" }, host: { attributes: { "data-ui": "saved-views", "data-part": "root" }, properties: { "attr.role": "role", "attr.aria-label": "resolvedLabel()", "attr.data-modified": "modified() ? \"\" : null", "attr.data-open": "isOpen() ? \"\" : null" } }, viewQueries: [{ propertyName: "triggerRef", first: true, predicate: ["trigger"], descendants: true, isSignal: true }], exportAs: ["slSavedViews"], ngImport: i0, template: `
|
|
392
|
+
<ng-container
|
|
393
|
+
slPopover
|
|
394
|
+
initialFocus="[aria-current='true']"
|
|
395
|
+
[open]="isOpen()"
|
|
396
|
+
(openChangeRequest)="onLayerRequest($event)"
|
|
397
|
+
>
|
|
398
|
+
<button
|
|
399
|
+
#trigger
|
|
400
|
+
slPopoverTrigger
|
|
401
|
+
type="button"
|
|
402
|
+
data-part="trigger"
|
|
403
|
+
[attr.title]="activeName()"
|
|
404
|
+
>
|
|
405
|
+
<span data-label>{{ activeName() }}</span>
|
|
406
|
+
@if (modified()) {
|
|
407
|
+
<span data-part="modified">{{ t('modified') }}</span>
|
|
408
|
+
}
|
|
409
|
+
<span slIcon size="md"><svg slGlyph name="chevron-down"></svg></span>
|
|
410
|
+
</button>
|
|
411
|
+
|
|
412
|
+
<ng-template slPopoverLayer>
|
|
413
|
+
<div slPopoverContent [attr.aria-label]="resolvedLabel()">
|
|
414
|
+
<!-- The family's identifier is on its own element rather than on
|
|
415
|
+
the popover's: slPopoverContent names its own part. -->
|
|
416
|
+
<div data-ui="saved-views" data-part="panel" [id]="panelId">
|
|
417
|
+
<ul data-part="list" role="list">
|
|
418
|
+
@for (row of rows(); track row.key) {
|
|
419
|
+
<li
|
|
420
|
+
data-part="item"
|
|
421
|
+
[attr.data-view]="row.key"
|
|
422
|
+
[attr.data-current]="row.current ? '' : null"
|
|
423
|
+
[attr.data-default]="row.isDefault ? '' : null"
|
|
424
|
+
[attr.data-built-in]="row.view === null ? '' : null"
|
|
425
|
+
[attr.data-editing]="editingKind(row) !== null ? '' : null"
|
|
426
|
+
>
|
|
427
|
+
@switch (editingKind(row)) {
|
|
428
|
+
@case ('rename') {
|
|
429
|
+
<ng-container
|
|
430
|
+
[ngTemplateOutlet]="nameForm"
|
|
431
|
+
[ngTemplateOutletContext]="{ kind: 'rename', name: row.name }"
|
|
432
|
+
/>
|
|
433
|
+
}
|
|
434
|
+
@case ('delete') {
|
|
435
|
+
<div
|
|
436
|
+
data-part="confirm"
|
|
437
|
+
role="group"
|
|
438
|
+
[attr.aria-labelledby]="panelId + '-confirm-' + row.key"
|
|
439
|
+
>
|
|
440
|
+
<p [id]="panelId + '-confirm-' + row.key">
|
|
441
|
+
{{ t('confirmDelete', { name: row.name }) }}
|
|
442
|
+
</p>
|
|
443
|
+
<div data-buttons>
|
|
444
|
+
<button
|
|
445
|
+
slButton
|
|
446
|
+
data-cancel
|
|
447
|
+
size="sm"
|
|
448
|
+
tone="secondary"
|
|
449
|
+
variant="ghost"
|
|
450
|
+
(click)="cancelEditing()"
|
|
451
|
+
>
|
|
452
|
+
{{ t('cancel') }}
|
|
453
|
+
</button>
|
|
454
|
+
<button
|
|
455
|
+
slButton
|
|
456
|
+
size="sm"
|
|
457
|
+
tone="danger"
|
|
458
|
+
(click)="confirmDelete(row.key, $event)"
|
|
459
|
+
>
|
|
460
|
+
{{ t('delete') }}
|
|
461
|
+
</button>
|
|
462
|
+
</div>
|
|
463
|
+
</div>
|
|
464
|
+
}
|
|
465
|
+
@default {
|
|
466
|
+
<button
|
|
467
|
+
data-part="apply"
|
|
468
|
+
type="button"
|
|
469
|
+
[attr.aria-current]="row.current ? 'true' : null"
|
|
470
|
+
(click)="apply(row.id, pressReason($event), $event)"
|
|
471
|
+
>
|
|
472
|
+
@if (row.current) {
|
|
473
|
+
<span slIcon size="sm"><svg slGlyph name="check"></svg></span>
|
|
474
|
+
}
|
|
475
|
+
<span data-label>{{ row.name }}</span>
|
|
476
|
+
@if (row.isDefault) {
|
|
477
|
+
<span data-part="default-mark"
|
|
478
|
+
><span slIcon size="sm"><svg slGlyph name="pin"></svg></span
|
|
479
|
+
><span>{{ t('isDefault') }}</span></span
|
|
480
|
+
>
|
|
481
|
+
}
|
|
482
|
+
</button>
|
|
483
|
+
<button
|
|
484
|
+
type="button"
|
|
485
|
+
data-part="actions"
|
|
486
|
+
slSavedViewsPart="actions"
|
|
487
|
+
[slMenuTriggerFor]="menu"
|
|
488
|
+
[attr.aria-label]="t('actions', { name: row.name })"
|
|
489
|
+
>
|
|
490
|
+
<span slIcon size="md"><svg slGlyph name="ellipsis"></svg></span>
|
|
491
|
+
</button>
|
|
492
|
+
<sl-menu #menu>
|
|
493
|
+
@if (row.view; as view) {
|
|
494
|
+
<button slMenuItem (select)="startRename(view)">
|
|
495
|
+
{{ t('rename') }}
|
|
496
|
+
</button>
|
|
497
|
+
}
|
|
498
|
+
<button
|
|
499
|
+
slMenuItem
|
|
500
|
+
[disabled]="row.isDefault"
|
|
501
|
+
(select)="setDefault(row.id, $event)"
|
|
502
|
+
>
|
|
503
|
+
{{ t('setDefault') }}
|
|
504
|
+
</button>
|
|
505
|
+
@if (row.view; as view) {
|
|
506
|
+
<button slMenuItem tone="danger" (select)="startDelete(view)">
|
|
507
|
+
{{ t('delete') }}
|
|
508
|
+
</button>
|
|
509
|
+
}
|
|
510
|
+
</sl-menu>
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
</li>
|
|
514
|
+
}
|
|
515
|
+
</ul>
|
|
516
|
+
@if (editing()?.kind === 'create') {
|
|
517
|
+
<ng-container
|
|
518
|
+
[ngTemplateOutlet]="nameForm"
|
|
519
|
+
[ngTemplateOutletContext]="{ kind: 'create', name: '' }"
|
|
520
|
+
/>
|
|
521
|
+
}
|
|
522
|
+
<div data-part="footer">
|
|
523
|
+
<button
|
|
524
|
+
slButton
|
|
525
|
+
data-save-as
|
|
526
|
+
size="sm"
|
|
527
|
+
tone="secondary"
|
|
528
|
+
variant="ghost"
|
|
529
|
+
(click)="startCreate()"
|
|
530
|
+
>
|
|
531
|
+
{{ t('saveAs') }}
|
|
532
|
+
</button>
|
|
533
|
+
<button slButton size="sm" [disabled]="!canSave()" (click)="save($event)">
|
|
534
|
+
{{ t('save') }}
|
|
535
|
+
</button>
|
|
536
|
+
</div>
|
|
537
|
+
</div>
|
|
538
|
+
</div>
|
|
539
|
+
</ng-template>
|
|
540
|
+
</ng-container>
|
|
541
|
+
|
|
542
|
+
@if (modified()) {
|
|
543
|
+
<button data-part="revert" type="button" (click)="revert($event)">
|
|
544
|
+
<!-- An arrow that turns back turns the other way in a right-to-left document. -->
|
|
545
|
+
<span slIcon size="sm" directional><svg slGlyph name="rotate-ccw"></svg></span>
|
|
546
|
+
{{ t('revert') }}
|
|
547
|
+
</button>
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
<ng-template #nameForm let-kind="kind" let-name="name">
|
|
551
|
+
<form
|
|
552
|
+
data-part="form"
|
|
553
|
+
novalidate
|
|
554
|
+
[attr.aria-label]="kind === 'create' ? t('saveAs') : t('renameView', { name: name })"
|
|
555
|
+
(submit)="submit($event)"
|
|
556
|
+
>
|
|
557
|
+
<div slField size="sm" [invalid]="error() !== null">
|
|
558
|
+
<label slFieldLabel>{{ t('name') }}</label>
|
|
559
|
+
<div slTextField size="sm">
|
|
560
|
+
<input
|
|
561
|
+
slTextFieldInput
|
|
562
|
+
autocomplete="off"
|
|
563
|
+
[value]="draft()"
|
|
564
|
+
(valueChange)="onDraft($event.value)"
|
|
565
|
+
/>
|
|
566
|
+
</div>
|
|
567
|
+
@if (error(); as reason) {
|
|
568
|
+
<span slFieldError>{{ reason === 'empty' ? t('empty') : t('duplicate') }}</span>
|
|
569
|
+
}
|
|
570
|
+
</div>
|
|
571
|
+
<div data-buttons>
|
|
572
|
+
<button
|
|
573
|
+
slButton
|
|
574
|
+
data-cancel
|
|
575
|
+
size="sm"
|
|
576
|
+
tone="secondary"
|
|
577
|
+
variant="ghost"
|
|
578
|
+
(click)="cancelEditing()"
|
|
579
|
+
>
|
|
580
|
+
{{ t('cancel') }}
|
|
581
|
+
</button>
|
|
582
|
+
<button slButton type="submit" size="sm">
|
|
583
|
+
{{ kind === 'create' ? t('create') : t('rename') }}
|
|
584
|
+
</button>
|
|
585
|
+
</div>
|
|
586
|
+
</form>
|
|
587
|
+
</ng-template>
|
|
588
|
+
`, isInline: true, styles: ["@layer slotted.components{[data-ui=saved-views]{--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_hover: var(--slotted-tone-secondary-subtle-hover, ButtonFace);--_active: var(--slotted-tone-secondary-subtle-active, ButtonFace);--_height: var(--slotted-control-height-md, 34px);--_height-sm: var(--slotted-control-height-sm, 30px);--_padding-inline: var(--slotted-control-padding-inline-md, 13px);--_gap: var(--slotted-control-gap-md, 8px);--_font-size: var(--slotted-control-font-size-md, 13px);--_icon-size: var(--slotted-control-icon-size-md, 16px);--_icon-size-sm: var(--slotted-control-icon-size-sm, 14px);--_radius: var(--slotted-control-radius, 4px);--_duration: var(--slotted-control-transition-duration);--_easing: var(--slotted-control-transition-easing);box-sizing:border-box;color:var(--_text);font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);font-size:var(--_font-size);line-height:var(--slotted-line-height-md, 1.5)}[data-ui=saved-views][data-part=root]{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--slotted-space-3, .375rem);min-inline-size:0;max-inline-size:100%}[data-ui=saved-views]>[data-part=trigger]{display:inline-flex;align-items:center;gap:var(--_gap);box-sizing:border-box;min-inline-size:0;max-inline-size:100%;min-block-size:var(--_height);margin:0;padding-block:0;padding-inline:var(--_padding-inline);border:var(--slotted-control-border-width, 1px) solid var(--slotted-control-border-color, ButtonBorder);border-radius:var(--_radius);background:var(--slotted-control-surface, Canvas);box-shadow:var(--slotted-control-shadow, none);color:var(--_text);font:inherit;font-weight:var(--slotted-font-weight-medium, 500);cursor:pointer;transition:background-color var(--_duration) var(--_easing)}[data-ui=saved-views]>[data-part=trigger]>[data-label]{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-ui=saved-views]>[data-part=trigger]>[data-ui=icon]{margin-inline-end:calc(var(--slotted-space-2, .25rem) * -1);color:var(--_muted);transition:rotate var(--_duration) var(--_easing)}[data-ui=saved-views][data-open]>[data-part=trigger]>[data-ui=icon]{rotate:180deg}[data-ui=saved-views]>[data-part=trigger]:hover:not(:disabled){background:var(--_hover)}[data-ui=saved-views]>[data-part=trigger]:active:not(:disabled){background:var(--_active);transition-duration:var(--slotted-duration-instant)}[data-ui=saved-views]>[data-part=trigger]>[data-part=modified]{display:inline-flex;flex:none;align-items:center;gap:var(--slotted-space-2, .25rem);color:var(--_muted);font-size:inherit;font-weight:var(--slotted-font-weight-regular, 400)}[data-ui=saved-views]>[data-part=trigger]>[data-part=modified]:before{content:\"\";flex:none;inline-size:var(--slotted-space-4, .5rem);block-size:var(--slotted-space-4, .5rem);border-radius:var(--slotted-radius-full, 9999px);background-color:var(--slotted-tone-accent-solid)}[data-ui=saved-views]>[data-part=revert]{display:inline-flex;align-items:center;gap:var(--slotted-space-3, .375rem);box-sizing:border-box;min-block-size:var(--_height);margin:0;padding-block:0;padding-inline:var(--slotted-space-4, .5rem);border:var(--slotted-control-border-width, 1px) solid transparent;border-radius:var(--_radius);background:transparent;color:var(--slotted-tone-accent-text, LinkText);font:inherit;font-weight:var(--slotted-font-weight-medium, 500);cursor:pointer;transition:background-color var(--_duration) var(--_easing)}[data-ui=saved-views]>[data-part=revert]:hover:not(:disabled){background:var(--slotted-tone-accent-subtle-hover, ButtonFace)}[data-ui=saved-views]>[data-part=revert]:active:not(:disabled){background:var(--slotted-tone-accent-subtle-active, ButtonFace);transition-duration:var(--slotted-duration-instant)}[data-ui=saved-views]>[data-part=trigger]:focus-visible,[data-ui=saved-views]>[data-part=revert]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui=saved-views][data-part=panel]{display:grid;grid-template-columns:minmax(0,var(--slotted-saved-views-panel-inline-size, 18rem));gap:var(--slotted-space-4, .5rem);max-inline-size:100%;padding:var(--slotted-space-2, .25rem)}[data-ui=saved-views][data-part=panel]>[data-part=list]{display:grid;gap:var(--slotted-space-1, .125rem);margin:0;padding:0;list-style:none}[data-ui=saved-views][data-part=panel]>[data-part=list]>[data-part=item]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:var(--slotted-space-1, .125rem);margin:0}[data-ui=saved-views][data-part=panel]>[data-part=list]>[data-part=item][data-editing]{grid-template-columns:minmax(0,1fr)}[data-ui=saved-views][data-part=panel] [data-part=apply]{display:grid;grid-template-columns:var(--_icon-size-sm) minmax(0,max-content) auto;justify-content:start;align-content:center;align-items:baseline;column-gap:var(--slotted-space-4, .5rem);box-sizing:border-box;inline-size:100%;min-block-size:var(--_height-sm);margin:0;padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--slotted-space-4, .5rem);border:0;border-radius:var(--_radius);background:transparent;color:var(--_text);font:inherit;text-align:start;cursor:pointer;transition:background-color var(--_duration) var(--_easing)}[data-ui=saved-views][data-part=panel] [data-part=apply]>[data-ui=icon]{color:var(--slotted-tone-accent-text);translate:0 calc(var(--_icon-size-sm) / 2 - (1cap + 1ex) / 4)}[data-ui=saved-views][data-part=panel] [data-part=item][data-current]>[data-part=apply]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui=saved-views][data-part=panel] [data-part=apply]>[data-label]{grid-column:2;min-inline-size:0;overflow-wrap:anywhere}[data-ui=saved-views][data-part=panel] [data-part=apply]:hover:not(:disabled),[data-ui=saved-views][data-part=panel] [data-part=actions]:hover:not(:disabled){background:var(--_hover)}[data-ui=saved-views][data-part=panel] [data-part=apply]:active:not(:disabled),[data-ui=saved-views][data-part=panel] [data-part=actions]:active:not(:disabled){background:var(--_active);transition-duration:var(--slotted-duration-instant)}[data-ui=saved-views][data-part=panel] [data-part=apply]>[data-part=default-mark]{display:flex;position:relative;inline-size:var(--_icon-size-sm);block-size:var(--_icon-size-sm);margin-inline-start:calc(var(--slotted-space-2, .25rem) - var(--slotted-space-4, .5rem));translate:0 calc(var(--_icon-size-sm) / 2 - (1cap + 1ex) / 4);color:var(--_muted)}[data-ui=saved-views][data-part=panel] [data-part=default-mark]>span:not([data-ui=icon]){position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}[data-ui=saved-views][data-part=panel] [data-part=actions]{display:inline-grid;place-items:center;box-sizing:border-box;inline-size:var(--_height-sm);block-size:var(--_height-sm);margin:0;padding:0;border:0;border-radius:var(--_radius);background:transparent;color:var(--_muted);cursor:pointer;transition:background-color var(--_duration) var(--_easing),color var(--_duration) var(--_easing)}[data-ui=saved-views][data-part=panel] [data-part=actions][data-open],[data-ui=saved-views][data-part=panel] [data-part=actions]:hover:not(:disabled){color:var(--_text)}[data-ui=saved-views][data-part=panel] [data-part=apply]:focus-visible,[data-ui=saved-views][data-part=panel] [data-part=actions]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(var(--slotted-focus-ring-offset, 2px) * -1)}[data-ui=saved-views][data-part=panel] [data-part=form],[data-ui=saved-views][data-part=panel] [data-part=confirm]{display:grid;gap:var(--slotted-space-4, .5rem);margin:0;padding:var(--slotted-space-4, .5rem);border-radius:var(--_radius);background:var(--slotted-surface-sunken, Canvas)}[data-ui=saved-views][data-part=panel] [data-part=confirm]>p{margin:0;overflow-wrap:anywhere}[data-ui=saved-views][data-part=panel] :is([data-part=form],[data-part=confirm])>[data-buttons]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--slotted-space-3, .375rem)}[data-ui=saved-views][data-part=panel]>[data-part=footer]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--slotted-space-3, .375rem);padding-block-start:var(--slotted-space-4, .5rem);border-block-start:var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle, transparent)}@media(forced-colors:active){[data-ui=saved-views]>[data-part=trigger]>[data-part=modified]:before{forced-color-adjust:none}}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SlButton, selector: "button[slButton]", inputs: ["disabled", "focusableWhenDisabled", "fullWidth", "loading", "loadingDelay", "messages", "size", "tone", "type", "variant"], exportAs: ["slButton"] }, { kind: "component", type: SlField, selector: "[slField]", inputs: ["size", "labelPlacement", "necessity", "messages", "disabled", "invalid", "required", "readOnly"], exportAs: ["slField"] }, { kind: "directive", type: SlFieldError, selector: "[slFieldError]", exportAs: ["slFieldError"] }, { kind: "component", type: SlFieldLabel, selector: "label[slFieldLabel]", exportAs: ["slFieldLabel"] }, { kind: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }, { kind: "component", type: SlMenu, selector: "sl-menu", inputs: ["value", "aria-label", "aria-describedby", "open", "align", "side", "size", "mount", "strategy", "sideOffset", "alignOffset", "collisionPadding", "submenuOpenDelay", "submenuCloseDelay", "typeaheadTimeout", "disabled", "loop", "typeahead", "openOnHover", "closeOnSelect", "closeOnEscape", "closeOnOutsidePress", "flip", "shift", "hideWhenDetached", "portal", "loading"], outputs: ["openChange", "openChangeRequest"], exportAs: ["slMenu"] }, { kind: "component", type: SlMenuItem, selector: "button[slMenuItem], a[slMenuItem], button[slMenuCheckboxItem], button[slMenuRadioItem]", inputs: ["disabled", "textValue", "tone", "shortcut", "closeOnSelect", "value", "checked"], outputs: ["checkedChange", "checkedChangeRequest", "select"], exportAs: ["slMenuItem"] }, { kind: "directive", type: SlMenuTrigger, selector: "[slMenuTriggerFor]", inputs: ["slMenuTriggerFor"], exportAs: ["slMenuTrigger"] }, { kind: "directive", type: SlPopover, selector: "[slPopover]", inputs: ["open", "defaultOpen", "disabled", "size", "width", "side", "align", "mount", "strategy", "messages", "initialFocus", "finalFocus", "arrow", "autoFocus", "closeOnEscape", "closeOnOutsidePress", "flip", "shift", "hideWhenDetached", "portal", "sideOffset", "alignOffset", "collisionPadding", "arrowPadding"], outputs: ["openChange", "openChangeRequest"], exportAs: ["slPopover"] }, { kind: "component", type: SlPopoverContent, selector: "[slPopoverContent]", exportAs: ["slPopoverContent"] }, { kind: "directive", type: SlPopoverLayer, selector: "ng-template[slPopoverLayer]", exportAs: ["slPopoverLayer"] }, { kind: "directive", type: SlPopoverTrigger, selector: "[slPopoverTrigger]", exportAs: ["slPopoverTrigger"] }, { kind: "directive", type: SlSavedViewsPart, selector: "[slSavedViewsPart]", inputs: ["slSavedViewsPart"] }, { kind: "component", type: SlTextField, selector: "[slTextField]", inputs: ["size", "variant", "mono", "clearable", "revealable", "copyable", "messages", "loading"], outputs: ["valueCopy"], exportAs: ["slTextField"] }, { kind: "directive", type: SlTextFieldInput, selector: "input[slTextFieldInput]", inputs: ["value", "defaultValue", "disabled", "readOnly", "invalid", "showCount", "countMax", "revealed", "defaultRevealed", "type"], outputs: ["valueChange", "revealedChange"], exportAs: ["slTextFieldInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
589
|
+
}
|
|
590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSavedViews, decorators: [{
|
|
591
|
+
type: Component,
|
|
592
|
+
args: [{ selector: 'sl-saved-views', standalone: true, exportAs: 'slSavedViews', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [
|
|
593
|
+
NgTemplateOutlet,
|
|
594
|
+
SlButton,
|
|
595
|
+
SlField,
|
|
596
|
+
SlFieldError,
|
|
597
|
+
SlFieldLabel,
|
|
598
|
+
SlGlyph,
|
|
599
|
+
SlIcon,
|
|
600
|
+
SlMenu,
|
|
601
|
+
SlMenuItem,
|
|
602
|
+
SlMenuTrigger,
|
|
603
|
+
SlPopover,
|
|
604
|
+
SlPopoverContent,
|
|
605
|
+
SlPopoverLayer,
|
|
606
|
+
SlPopoverTrigger,
|
|
607
|
+
SlSavedViewsPart,
|
|
608
|
+
SlTextField,
|
|
609
|
+
SlTextFieldInput,
|
|
610
|
+
], host: {
|
|
611
|
+
'data-ui': 'saved-views',
|
|
612
|
+
'data-part': 'root',
|
|
613
|
+
'[attr.role]': 'role',
|
|
614
|
+
'[attr.aria-label]': 'resolvedLabel()',
|
|
615
|
+
'[attr.data-modified]': 'modified() ? "" : null',
|
|
616
|
+
'[attr.data-open]': 'isOpen() ? "" : null',
|
|
617
|
+
}, template: `
|
|
618
|
+
<ng-container
|
|
619
|
+
slPopover
|
|
620
|
+
initialFocus="[aria-current='true']"
|
|
621
|
+
[open]="isOpen()"
|
|
622
|
+
(openChangeRequest)="onLayerRequest($event)"
|
|
623
|
+
>
|
|
624
|
+
<button
|
|
625
|
+
#trigger
|
|
626
|
+
slPopoverTrigger
|
|
627
|
+
type="button"
|
|
628
|
+
data-part="trigger"
|
|
629
|
+
[attr.title]="activeName()"
|
|
630
|
+
>
|
|
631
|
+
<span data-label>{{ activeName() }}</span>
|
|
632
|
+
@if (modified()) {
|
|
633
|
+
<span data-part="modified">{{ t('modified') }}</span>
|
|
634
|
+
}
|
|
635
|
+
<span slIcon size="md"><svg slGlyph name="chevron-down"></svg></span>
|
|
636
|
+
</button>
|
|
637
|
+
|
|
638
|
+
<ng-template slPopoverLayer>
|
|
639
|
+
<div slPopoverContent [attr.aria-label]="resolvedLabel()">
|
|
640
|
+
<!-- The family's identifier is on its own element rather than on
|
|
641
|
+
the popover's: slPopoverContent names its own part. -->
|
|
642
|
+
<div data-ui="saved-views" data-part="panel" [id]="panelId">
|
|
643
|
+
<ul data-part="list" role="list">
|
|
644
|
+
@for (row of rows(); track row.key) {
|
|
645
|
+
<li
|
|
646
|
+
data-part="item"
|
|
647
|
+
[attr.data-view]="row.key"
|
|
648
|
+
[attr.data-current]="row.current ? '' : null"
|
|
649
|
+
[attr.data-default]="row.isDefault ? '' : null"
|
|
650
|
+
[attr.data-built-in]="row.view === null ? '' : null"
|
|
651
|
+
[attr.data-editing]="editingKind(row) !== null ? '' : null"
|
|
652
|
+
>
|
|
653
|
+
@switch (editingKind(row)) {
|
|
654
|
+
@case ('rename') {
|
|
655
|
+
<ng-container
|
|
656
|
+
[ngTemplateOutlet]="nameForm"
|
|
657
|
+
[ngTemplateOutletContext]="{ kind: 'rename', name: row.name }"
|
|
658
|
+
/>
|
|
659
|
+
}
|
|
660
|
+
@case ('delete') {
|
|
661
|
+
<div
|
|
662
|
+
data-part="confirm"
|
|
663
|
+
role="group"
|
|
664
|
+
[attr.aria-labelledby]="panelId + '-confirm-' + row.key"
|
|
665
|
+
>
|
|
666
|
+
<p [id]="panelId + '-confirm-' + row.key">
|
|
667
|
+
{{ t('confirmDelete', { name: row.name }) }}
|
|
668
|
+
</p>
|
|
669
|
+
<div data-buttons>
|
|
670
|
+
<button
|
|
671
|
+
slButton
|
|
672
|
+
data-cancel
|
|
673
|
+
size="sm"
|
|
674
|
+
tone="secondary"
|
|
675
|
+
variant="ghost"
|
|
676
|
+
(click)="cancelEditing()"
|
|
677
|
+
>
|
|
678
|
+
{{ t('cancel') }}
|
|
679
|
+
</button>
|
|
680
|
+
<button
|
|
681
|
+
slButton
|
|
682
|
+
size="sm"
|
|
683
|
+
tone="danger"
|
|
684
|
+
(click)="confirmDelete(row.key, $event)"
|
|
685
|
+
>
|
|
686
|
+
{{ t('delete') }}
|
|
687
|
+
</button>
|
|
688
|
+
</div>
|
|
689
|
+
</div>
|
|
690
|
+
}
|
|
691
|
+
@default {
|
|
692
|
+
<button
|
|
693
|
+
data-part="apply"
|
|
694
|
+
type="button"
|
|
695
|
+
[attr.aria-current]="row.current ? 'true' : null"
|
|
696
|
+
(click)="apply(row.id, pressReason($event), $event)"
|
|
697
|
+
>
|
|
698
|
+
@if (row.current) {
|
|
699
|
+
<span slIcon size="sm"><svg slGlyph name="check"></svg></span>
|
|
700
|
+
}
|
|
701
|
+
<span data-label>{{ row.name }}</span>
|
|
702
|
+
@if (row.isDefault) {
|
|
703
|
+
<span data-part="default-mark"
|
|
704
|
+
><span slIcon size="sm"><svg slGlyph name="pin"></svg></span
|
|
705
|
+
><span>{{ t('isDefault') }}</span></span
|
|
706
|
+
>
|
|
707
|
+
}
|
|
708
|
+
</button>
|
|
709
|
+
<button
|
|
710
|
+
type="button"
|
|
711
|
+
data-part="actions"
|
|
712
|
+
slSavedViewsPart="actions"
|
|
713
|
+
[slMenuTriggerFor]="menu"
|
|
714
|
+
[attr.aria-label]="t('actions', { name: row.name })"
|
|
715
|
+
>
|
|
716
|
+
<span slIcon size="md"><svg slGlyph name="ellipsis"></svg></span>
|
|
717
|
+
</button>
|
|
718
|
+
<sl-menu #menu>
|
|
719
|
+
@if (row.view; as view) {
|
|
720
|
+
<button slMenuItem (select)="startRename(view)">
|
|
721
|
+
{{ t('rename') }}
|
|
722
|
+
</button>
|
|
723
|
+
}
|
|
724
|
+
<button
|
|
725
|
+
slMenuItem
|
|
726
|
+
[disabled]="row.isDefault"
|
|
727
|
+
(select)="setDefault(row.id, $event)"
|
|
728
|
+
>
|
|
729
|
+
{{ t('setDefault') }}
|
|
730
|
+
</button>
|
|
731
|
+
@if (row.view; as view) {
|
|
732
|
+
<button slMenuItem tone="danger" (select)="startDelete(view)">
|
|
733
|
+
{{ t('delete') }}
|
|
734
|
+
</button>
|
|
735
|
+
}
|
|
736
|
+
</sl-menu>
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
</li>
|
|
740
|
+
}
|
|
741
|
+
</ul>
|
|
742
|
+
@if (editing()?.kind === 'create') {
|
|
743
|
+
<ng-container
|
|
744
|
+
[ngTemplateOutlet]="nameForm"
|
|
745
|
+
[ngTemplateOutletContext]="{ kind: 'create', name: '' }"
|
|
746
|
+
/>
|
|
747
|
+
}
|
|
748
|
+
<div data-part="footer">
|
|
749
|
+
<button
|
|
750
|
+
slButton
|
|
751
|
+
data-save-as
|
|
752
|
+
size="sm"
|
|
753
|
+
tone="secondary"
|
|
754
|
+
variant="ghost"
|
|
755
|
+
(click)="startCreate()"
|
|
756
|
+
>
|
|
757
|
+
{{ t('saveAs') }}
|
|
758
|
+
</button>
|
|
759
|
+
<button slButton size="sm" [disabled]="!canSave()" (click)="save($event)">
|
|
760
|
+
{{ t('save') }}
|
|
761
|
+
</button>
|
|
762
|
+
</div>
|
|
763
|
+
</div>
|
|
764
|
+
</div>
|
|
765
|
+
</ng-template>
|
|
766
|
+
</ng-container>
|
|
767
|
+
|
|
768
|
+
@if (modified()) {
|
|
769
|
+
<button data-part="revert" type="button" (click)="revert($event)">
|
|
770
|
+
<!-- An arrow that turns back turns the other way in a right-to-left document. -->
|
|
771
|
+
<span slIcon size="sm" directional><svg slGlyph name="rotate-ccw"></svg></span>
|
|
772
|
+
{{ t('revert') }}
|
|
773
|
+
</button>
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
<ng-template #nameForm let-kind="kind" let-name="name">
|
|
777
|
+
<form
|
|
778
|
+
data-part="form"
|
|
779
|
+
novalidate
|
|
780
|
+
[attr.aria-label]="kind === 'create' ? t('saveAs') : t('renameView', { name: name })"
|
|
781
|
+
(submit)="submit($event)"
|
|
782
|
+
>
|
|
783
|
+
<div slField size="sm" [invalid]="error() !== null">
|
|
784
|
+
<label slFieldLabel>{{ t('name') }}</label>
|
|
785
|
+
<div slTextField size="sm">
|
|
786
|
+
<input
|
|
787
|
+
slTextFieldInput
|
|
788
|
+
autocomplete="off"
|
|
789
|
+
[value]="draft()"
|
|
790
|
+
(valueChange)="onDraft($event.value)"
|
|
791
|
+
/>
|
|
792
|
+
</div>
|
|
793
|
+
@if (error(); as reason) {
|
|
794
|
+
<span slFieldError>{{ reason === 'empty' ? t('empty') : t('duplicate') }}</span>
|
|
795
|
+
}
|
|
796
|
+
</div>
|
|
797
|
+
<div data-buttons>
|
|
798
|
+
<button
|
|
799
|
+
slButton
|
|
800
|
+
data-cancel
|
|
801
|
+
size="sm"
|
|
802
|
+
tone="secondary"
|
|
803
|
+
variant="ghost"
|
|
804
|
+
(click)="cancelEditing()"
|
|
805
|
+
>
|
|
806
|
+
{{ t('cancel') }}
|
|
807
|
+
</button>
|
|
808
|
+
<button slButton type="submit" size="sm">
|
|
809
|
+
{{ kind === 'create' ? t('create') : t('rename') }}
|
|
810
|
+
</button>
|
|
811
|
+
</div>
|
|
812
|
+
</form>
|
|
813
|
+
</ng-template>
|
|
814
|
+
`, styles: ["@layer slotted.components{[data-ui=saved-views]{--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_hover: var(--slotted-tone-secondary-subtle-hover, ButtonFace);--_active: var(--slotted-tone-secondary-subtle-active, ButtonFace);--_height: var(--slotted-control-height-md, 34px);--_height-sm: var(--slotted-control-height-sm, 30px);--_padding-inline: var(--slotted-control-padding-inline-md, 13px);--_gap: var(--slotted-control-gap-md, 8px);--_font-size: var(--slotted-control-font-size-md, 13px);--_icon-size: var(--slotted-control-icon-size-md, 16px);--_icon-size-sm: var(--slotted-control-icon-size-sm, 14px);--_radius: var(--slotted-control-radius, 4px);--_duration: var(--slotted-control-transition-duration);--_easing: var(--slotted-control-transition-easing);box-sizing:border-box;color:var(--_text);font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);font-size:var(--_font-size);line-height:var(--slotted-line-height-md, 1.5)}[data-ui=saved-views][data-part=root]{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--slotted-space-3, .375rem);min-inline-size:0;max-inline-size:100%}[data-ui=saved-views]>[data-part=trigger]{display:inline-flex;align-items:center;gap:var(--_gap);box-sizing:border-box;min-inline-size:0;max-inline-size:100%;min-block-size:var(--_height);margin:0;padding-block:0;padding-inline:var(--_padding-inline);border:var(--slotted-control-border-width, 1px) solid var(--slotted-control-border-color, ButtonBorder);border-radius:var(--_radius);background:var(--slotted-control-surface, Canvas);box-shadow:var(--slotted-control-shadow, none);color:var(--_text);font:inherit;font-weight:var(--slotted-font-weight-medium, 500);cursor:pointer;transition:background-color var(--_duration) var(--_easing)}[data-ui=saved-views]>[data-part=trigger]>[data-label]{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-ui=saved-views]>[data-part=trigger]>[data-ui=icon]{margin-inline-end:calc(var(--slotted-space-2, .25rem) * -1);color:var(--_muted);transition:rotate var(--_duration) var(--_easing)}[data-ui=saved-views][data-open]>[data-part=trigger]>[data-ui=icon]{rotate:180deg}[data-ui=saved-views]>[data-part=trigger]:hover:not(:disabled){background:var(--_hover)}[data-ui=saved-views]>[data-part=trigger]:active:not(:disabled){background:var(--_active);transition-duration:var(--slotted-duration-instant)}[data-ui=saved-views]>[data-part=trigger]>[data-part=modified]{display:inline-flex;flex:none;align-items:center;gap:var(--slotted-space-2, .25rem);color:var(--_muted);font-size:inherit;font-weight:var(--slotted-font-weight-regular, 400)}[data-ui=saved-views]>[data-part=trigger]>[data-part=modified]:before{content:\"\";flex:none;inline-size:var(--slotted-space-4, .5rem);block-size:var(--slotted-space-4, .5rem);border-radius:var(--slotted-radius-full, 9999px);background-color:var(--slotted-tone-accent-solid)}[data-ui=saved-views]>[data-part=revert]{display:inline-flex;align-items:center;gap:var(--slotted-space-3, .375rem);box-sizing:border-box;min-block-size:var(--_height);margin:0;padding-block:0;padding-inline:var(--slotted-space-4, .5rem);border:var(--slotted-control-border-width, 1px) solid transparent;border-radius:var(--_radius);background:transparent;color:var(--slotted-tone-accent-text, LinkText);font:inherit;font-weight:var(--slotted-font-weight-medium, 500);cursor:pointer;transition:background-color var(--_duration) var(--_easing)}[data-ui=saved-views]>[data-part=revert]:hover:not(:disabled){background:var(--slotted-tone-accent-subtle-hover, ButtonFace)}[data-ui=saved-views]>[data-part=revert]:active:not(:disabled){background:var(--slotted-tone-accent-subtle-active, ButtonFace);transition-duration:var(--slotted-duration-instant)}[data-ui=saved-views]>[data-part=trigger]:focus-visible,[data-ui=saved-views]>[data-part=revert]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui=saved-views][data-part=panel]{display:grid;grid-template-columns:minmax(0,var(--slotted-saved-views-panel-inline-size, 18rem));gap:var(--slotted-space-4, .5rem);max-inline-size:100%;padding:var(--slotted-space-2, .25rem)}[data-ui=saved-views][data-part=panel]>[data-part=list]{display:grid;gap:var(--slotted-space-1, .125rem);margin:0;padding:0;list-style:none}[data-ui=saved-views][data-part=panel]>[data-part=list]>[data-part=item]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:var(--slotted-space-1, .125rem);margin:0}[data-ui=saved-views][data-part=panel]>[data-part=list]>[data-part=item][data-editing]{grid-template-columns:minmax(0,1fr)}[data-ui=saved-views][data-part=panel] [data-part=apply]{display:grid;grid-template-columns:var(--_icon-size-sm) minmax(0,max-content) auto;justify-content:start;align-content:center;align-items:baseline;column-gap:var(--slotted-space-4, .5rem);box-sizing:border-box;inline-size:100%;min-block-size:var(--_height-sm);margin:0;padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--slotted-space-4, .5rem);border:0;border-radius:var(--_radius);background:transparent;color:var(--_text);font:inherit;text-align:start;cursor:pointer;transition:background-color var(--_duration) var(--_easing)}[data-ui=saved-views][data-part=panel] [data-part=apply]>[data-ui=icon]{color:var(--slotted-tone-accent-text);translate:0 calc(var(--_icon-size-sm) / 2 - (1cap + 1ex) / 4)}[data-ui=saved-views][data-part=panel] [data-part=item][data-current]>[data-part=apply]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui=saved-views][data-part=panel] [data-part=apply]>[data-label]{grid-column:2;min-inline-size:0;overflow-wrap:anywhere}[data-ui=saved-views][data-part=panel] [data-part=apply]:hover:not(:disabled),[data-ui=saved-views][data-part=panel] [data-part=actions]:hover:not(:disabled){background:var(--_hover)}[data-ui=saved-views][data-part=panel] [data-part=apply]:active:not(:disabled),[data-ui=saved-views][data-part=panel] [data-part=actions]:active:not(:disabled){background:var(--_active);transition-duration:var(--slotted-duration-instant)}[data-ui=saved-views][data-part=panel] [data-part=apply]>[data-part=default-mark]{display:flex;position:relative;inline-size:var(--_icon-size-sm);block-size:var(--_icon-size-sm);margin-inline-start:calc(var(--slotted-space-2, .25rem) - var(--slotted-space-4, .5rem));translate:0 calc(var(--_icon-size-sm) / 2 - (1cap + 1ex) / 4);color:var(--_muted)}[data-ui=saved-views][data-part=panel] [data-part=default-mark]>span:not([data-ui=icon]){position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}[data-ui=saved-views][data-part=panel] [data-part=actions]{display:inline-grid;place-items:center;box-sizing:border-box;inline-size:var(--_height-sm);block-size:var(--_height-sm);margin:0;padding:0;border:0;border-radius:var(--_radius);background:transparent;color:var(--_muted);cursor:pointer;transition:background-color var(--_duration) var(--_easing),color var(--_duration) var(--_easing)}[data-ui=saved-views][data-part=panel] [data-part=actions][data-open],[data-ui=saved-views][data-part=panel] [data-part=actions]:hover:not(:disabled){color:var(--_text)}[data-ui=saved-views][data-part=panel] [data-part=apply]:focus-visible,[data-ui=saved-views][data-part=panel] [data-part=actions]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(var(--slotted-focus-ring-offset, 2px) * -1)}[data-ui=saved-views][data-part=panel] [data-part=form],[data-ui=saved-views][data-part=panel] [data-part=confirm]{display:grid;gap:var(--slotted-space-4, .5rem);margin:0;padding:var(--slotted-space-4, .5rem);border-radius:var(--_radius);background:var(--slotted-surface-sunken, Canvas)}[data-ui=saved-views][data-part=panel] [data-part=confirm]>p{margin:0;overflow-wrap:anywhere}[data-ui=saved-views][data-part=panel] :is([data-part=form],[data-part=confirm])>[data-buttons]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--slotted-space-3, .375rem)}[data-ui=saved-views][data-part=panel]>[data-part=footer]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--slotted-space-3, .375rem);padding-block-start:var(--slotted-space-4, .5rem);border-block-start:var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle, transparent)}@media(forced-colors:active){[data-ui=saved-views]>[data-part=trigger]>[data-part=modified]:before{forced-color-adjust:none}}}\n"] }]
|
|
815
|
+
}], propDecorators: { current: [{ type: i0.Input, args: [{ isSignal: true, alias: "current", required: true }] }], builtIn: [{ type: i0.Input, args: [{ isSignal: true, alias: "builtIn", required: true }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }, { type: i0.Output, args: ["stateChange"] }], defaultState: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultState", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], stateChangeRequest: [{ type: i0.Output, args: ["stateChangeRequest"] }], openChangeRequest: [{ type: i0.Output, args: ["openChangeRequest"] }], viewApply: [{ type: i0.Output, args: ["viewApply"] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }] } });
|
|
816
|
+
|
|
817
|
+
function defaultStorage() {
|
|
818
|
+
try {
|
|
819
|
+
return typeof window === 'undefined' ? null : window.localStorage;
|
|
820
|
+
}
|
|
821
|
+
catch {
|
|
822
|
+
return null;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* A reader's saved views, kept across visits: read once from the store with
|
|
827
|
+
* `parseSavedViews` — which is total, so a malformed entry is no views — and
|
|
828
|
+
* written with `serializeSavedViews` after every change. A store that holds
|
|
829
|
+
* no view in use and a default opens the visit on the default. The store is
|
|
830
|
+
* reached inside `try` both ways, as `persistedGridView` reaches it.
|
|
831
|
+
*/
|
|
832
|
+
function persistedSavedViews({ key, storage, columns, injector, }) {
|
|
833
|
+
const store = storage === undefined ? defaultStorage() : storage;
|
|
834
|
+
let text;
|
|
835
|
+
try {
|
|
836
|
+
text = store?.getItem(key) ?? null;
|
|
837
|
+
}
|
|
838
|
+
catch {
|
|
839
|
+
text = null;
|
|
840
|
+
}
|
|
841
|
+
let initial = parseSavedViews(text);
|
|
842
|
+
let openedDefault = null;
|
|
843
|
+
if (initial.activeId === null && initial.defaultId !== null) {
|
|
844
|
+
const opened = initial.views.find((view) => view.id === initial.defaultId);
|
|
845
|
+
initial = withActiveView(initial, initial.defaultId);
|
|
846
|
+
openedDefault = opened ? parseGridView(opened.view, columns) : null;
|
|
847
|
+
}
|
|
848
|
+
const state = signal(initial, /* @ts-ignore */
|
|
849
|
+
...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
850
|
+
/* The first run is the read; every run after is a change to write. */
|
|
851
|
+
let settled = false;
|
|
852
|
+
effect(() => {
|
|
853
|
+
const current = state();
|
|
854
|
+
if (!settled) {
|
|
855
|
+
settled = true;
|
|
856
|
+
return;
|
|
857
|
+
}
|
|
858
|
+
untracked(() => {
|
|
859
|
+
if (!store)
|
|
860
|
+
return;
|
|
861
|
+
try {
|
|
862
|
+
store.setItem(key, serializeSavedViews(current));
|
|
863
|
+
}
|
|
864
|
+
catch {
|
|
865
|
+
/* The store refused; the views stay in memory. */
|
|
866
|
+
}
|
|
867
|
+
});
|
|
868
|
+
}, injector ? { injector } : undefined);
|
|
869
|
+
return { state, openedDefault };
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* Generated bundle index. Do not edit.
|
|
874
|
+
*/
|
|
875
|
+
|
|
876
|
+
export { SlSavedViews, SlSavedViewsIdFactory, SlSavedViewsPart, newSavedViewId, persistedSavedViews };
|
|
877
|
+
//# sourceMappingURL=slotted-angular-saved-views.mjs.map
|