@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,294 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import { GlyphName } from '@slotted/core/glyph';
|
|
4
|
+
import { ChangeReason } from '@slotted/core/state';
|
|
5
|
+
import * as _slotted_core_upload from '@slotted/core/upload';
|
|
6
|
+
import { FileKind } from '@slotted/core/upload';
|
|
7
|
+
import * as _slotted_core_i18n from '@slotted/core/i18n';
|
|
8
|
+
import { PartialMessages, AttachmentMessages } from '@slotted/core/i18n';
|
|
9
|
+
|
|
10
|
+
type AttachmentSize = 'sm' | 'md' | 'lg';
|
|
11
|
+
type AttachmentOrientation = 'horizontal' | 'vertical';
|
|
12
|
+
type AttachmentLayout = 'list' | 'grid' | 'strip';
|
|
13
|
+
/**
|
|
14
|
+
* What the family needs to know about a file, and a `File` already is one. A
|
|
15
|
+
* record from a server needs only the name: the kind is read from the media
|
|
16
|
+
* type when there is one and from the extension when there is not.
|
|
17
|
+
*/
|
|
18
|
+
interface AttachmentFile {
|
|
19
|
+
readonly name: string;
|
|
20
|
+
readonly type?: string | undefined;
|
|
21
|
+
readonly size?: number | undefined;
|
|
22
|
+
}
|
|
23
|
+
/** How the removal was asked for: the remove control, or `Backspace` / `Delete`. */
|
|
24
|
+
type AttachmentRemoveReason = Extract<ChangeReason, 'remove' | 'keyboard'>;
|
|
25
|
+
/** A request to leave the consumer's list. It carries no value; nothing is committed. */
|
|
26
|
+
interface AttachmentRemoveRequest {
|
|
27
|
+
readonly reason: AttachmentRemoveReason;
|
|
28
|
+
readonly file: AttachmentFile;
|
|
29
|
+
readonly source: Event;
|
|
30
|
+
}
|
|
31
|
+
interface AttachmentDefaults {
|
|
32
|
+
layout: AttachmentLayout;
|
|
33
|
+
orientation: AttachmentOrientation;
|
|
34
|
+
size: AttachmentSize;
|
|
35
|
+
}
|
|
36
|
+
declare const ATTACHMENT_DEFAULTS: InjectionToken<AttachmentDefaults>;
|
|
37
|
+
/**
|
|
38
|
+
* An application decides once how large its attachments are and how a set of
|
|
39
|
+
* them is arranged. A group or an attachment that states either still wins.
|
|
40
|
+
* Their words and the locale that writes their sizes come from the language
|
|
41
|
+
* in force (`provideSlotted`).
|
|
42
|
+
*/
|
|
43
|
+
declare function provideAttachmentDefaults(defaults: Partial<AttachmentDefaults>): {
|
|
44
|
+
provide: InjectionToken<AttachmentDefaults>;
|
|
45
|
+
useFactory: () => AttachmentDefaults;
|
|
46
|
+
};
|
|
47
|
+
declare function injectAttachmentDefaults(): AttachmentDefaults;
|
|
48
|
+
/**
|
|
49
|
+
* The mark knocked out of each kind's tile — `upload`'s map, restated because
|
|
50
|
+
* that one is private to `upload`. The contract test reads both contracts'
|
|
51
|
+
* `kinds` and refuses a drift.
|
|
52
|
+
*/
|
|
53
|
+
declare const ATTACHMENT_KIND_GLYPH: Readonly<Record<FileKind, GlyphName>>;
|
|
54
|
+
/**
|
|
55
|
+
* The controls `removal-focus` counts. An attachment in a set holds the same
|
|
56
|
+
* controls as its neighbours, so the position focus had among them is the
|
|
57
|
+
* position of the same control on the attachment that took its place. A
|
|
58
|
+
* remove control of an attachment that is not removable is hidden, and is not
|
|
59
|
+
* counted.
|
|
60
|
+
*/
|
|
61
|
+
declare const ATTACHMENT_CONTROL_SELECTOR = "[data-part=\"trigger\"], [data-part=\"action\"], [data-part=\"remove\"]:not([hidden])";
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* A set of attachments on the `ul` the page wrote: a column, a wrapping grid
|
|
65
|
+
* or one line that scrolls. It hands its size and orientation to every
|
|
66
|
+
* attachment that does not state its own.
|
|
67
|
+
*
|
|
68
|
+
* It keeps the keyboard where it was when an attachment leaves: focus goes to
|
|
69
|
+
* the control that took the removed one's place, then to the last one, then
|
|
70
|
+
* to the list itself — which is why the list takes `tabindex="-1"`.
|
|
71
|
+
* `removal-focus` observes the DOM, so it is right however the consumer
|
|
72
|
+
* removed the file.
|
|
73
|
+
*/
|
|
74
|
+
declare class SlAttachmentGroup {
|
|
75
|
+
/** A column, a wrapping grid, or one line that scrolls. Falls back to the token. */
|
|
76
|
+
readonly layout: _angular_core.InputSignal<AttachmentLayout | undefined>;
|
|
77
|
+
/** Handed to every attachment that does not state its own. */
|
|
78
|
+
readonly size: _angular_core.InputSignal<AttachmentSize | undefined>;
|
|
79
|
+
/** Handed to every attachment that does not state its own. */
|
|
80
|
+
readonly orientation: _angular_core.InputSignal<AttachmentOrientation | undefined>;
|
|
81
|
+
private readonly defaults;
|
|
82
|
+
/** A `tabindex` the page wrote is kept; otherwise the list takes focus only by script. */
|
|
83
|
+
protected readonly tabindex: string;
|
|
84
|
+
readonly resolvedLayout: _angular_core.Signal<AttachmentLayout>;
|
|
85
|
+
readonly resolvedSize: _angular_core.Signal<AttachmentSize>;
|
|
86
|
+
readonly resolvedOrientation: _angular_core.Signal<AttachmentOrientation>;
|
|
87
|
+
constructor();
|
|
88
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAttachmentGroup, never>;
|
|
89
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlAttachmentGroup, "[slAttachmentGroup]", ["slAttachmentGroup"], { "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* One file that already belongs to something — a message, a record, a tray —
|
|
93
|
+
* on the `li` (inside `slAttachmentGroup`) or `div` (alone) the page wrote.
|
|
94
|
+
* The parts inside read the file from here: the tile its kind, the trigger its
|
|
95
|
+
* name, the detail its size.
|
|
96
|
+
*
|
|
97
|
+
* **Removal is a request.** `removable` draws `slAttachmentRemove` and makes
|
|
98
|
+
* `Backspace` and `Delete` answer anywhere inside the attachment; `(remove)`
|
|
99
|
+
* carries the reason and the file, and the list stays the page's. A held key
|
|
100
|
+
* does not repeat the request.
|
|
101
|
+
*
|
|
102
|
+
* **The refusal runs first.** A click inside the trigger, or on a family
|
|
103
|
+
* action written on an `a`, is refused here in the capture phase while the
|
|
104
|
+
* attachment is loading or disabled: a directive's host listener and a
|
|
105
|
+
* `(click)` the page wrote on the same element run in registration order, and
|
|
106
|
+
* the page's was registered first — the ordering `list-item` found.
|
|
107
|
+
*/
|
|
108
|
+
declare class SlAttachment {
|
|
109
|
+
/** The file: its name, and its media type and size when they are known. */
|
|
110
|
+
readonly file: _angular_core.InputSignal<AttachmentFile>;
|
|
111
|
+
/** The room the attachment gets. Falls back to the group, then the token, then `md`. */
|
|
112
|
+
readonly size: _angular_core.InputSignal<AttachmentSize | undefined>;
|
|
113
|
+
/** A row, or a card stood on end. Falls back to the group, then the token. */
|
|
114
|
+
readonly orientation: _angular_core.InputSignal<AttachmentOrientation | undefined>;
|
|
115
|
+
/** The file failed; painted from `data-invalid`, never `aria-invalid` on a list item. */
|
|
116
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
117
|
+
/** Still on its way: `aria-busy`, the trigger refused, remove still operable. */
|
|
118
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
119
|
+
/** Cannot be reached: the trigger, every action and remove are refused. */
|
|
120
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
121
|
+
/** Draws `slAttachmentRemove` and lets `Backspace` and `Delete` ask for removal. */
|
|
122
|
+
readonly removable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
123
|
+
/**
|
|
124
|
+
* Words laid over the catalog of the language in force, key by key: the
|
|
125
|
+
* remove control's name (`remove`, with the file's `{name}`) and the tile's
|
|
126
|
+
* word for a file without an extension.
|
|
127
|
+
*/
|
|
128
|
+
readonly messages: _angular_core.InputSignal<PartialMessages<AttachmentMessages> | undefined>;
|
|
129
|
+
/** Asks to be taken out of the list. Not emitted while disabled, nor for a repeated key. */
|
|
130
|
+
readonly remove: _angular_core.OutputEmitterRef<AttachmentRemoveRequest>;
|
|
131
|
+
private readonly defaults;
|
|
132
|
+
private readonly group;
|
|
133
|
+
readonly id: string;
|
|
134
|
+
readonly ids: {
|
|
135
|
+
detail: string;
|
|
136
|
+
message: string;
|
|
137
|
+
};
|
|
138
|
+
/** The language in force, which writes the size the detail line shows. */
|
|
139
|
+
readonly locale: _angular_core.Signal<string>;
|
|
140
|
+
/** The family's words in the language in force, with this attachment's `messages` laid over them. */
|
|
141
|
+
readonly t: _slotted_core_i18n.FamilyTranslator<AttachmentMessages>;
|
|
142
|
+
readonly resolvedSize: _angular_core.Signal<AttachmentSize>;
|
|
143
|
+
readonly resolvedOrientation: _angular_core.Signal<AttachmentOrientation>;
|
|
144
|
+
readonly kind: _angular_core.Signal<_slotted_core_upload.FileKind>;
|
|
145
|
+
readonly split: _angular_core.Signal<{
|
|
146
|
+
stem: string;
|
|
147
|
+
extension: string;
|
|
148
|
+
}>;
|
|
149
|
+
readonly blocked: _angular_core.Signal<boolean>;
|
|
150
|
+
/**
|
|
151
|
+
* The ids of the describing parts on the page, so the trigger names only
|
|
152
|
+
* what exists — and the id each part actually carries, which is the page's
|
|
153
|
+
* own when it wrote one.
|
|
154
|
+
*/
|
|
155
|
+
readonly described: _angular_core.WritableSignal<{
|
|
156
|
+
detail: string | null;
|
|
157
|
+
message: string | null;
|
|
158
|
+
}>;
|
|
159
|
+
constructor();
|
|
160
|
+
describe(part: 'detail' | 'message', id: string | null): void;
|
|
161
|
+
request(reason: AttachmentRemoveReason, source: Event): void;
|
|
162
|
+
protected handleKeydown(event: KeyboardEvent): void;
|
|
163
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAttachment, never>;
|
|
164
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlAttachment, "[slAttachment]", ["slAttachment"], { "file": { "alias": "file"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; }, { "remove": "remove"; }, never, ["*"], true, never>;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* The kind's tile with the kind's mark knocked out of it, or the thumbnail the
|
|
169
|
+
* page gives. A thumbnail that fails to load returns to the tile: the failure
|
|
170
|
+
* is this part's own state, not a state of the file. Hidden from assistive
|
|
171
|
+
* technology, because the name already says what the file is.
|
|
172
|
+
*/
|
|
173
|
+
declare class SlAttachmentPreview {
|
|
174
|
+
/** A thumbnail. Absent, or failing to load, the kind's tile is drawn instead. */
|
|
175
|
+
readonly src: _angular_core.InputSignal<string | undefined>;
|
|
176
|
+
protected readonly owner: SlAttachment;
|
|
177
|
+
protected readonly failed: _angular_core.WritableSignal<string | undefined>;
|
|
178
|
+
protected readonly picture: _angular_core.Signal<boolean>;
|
|
179
|
+
protected readonly glyph: _angular_core.Signal<"presentation" | "check" | "minus" | "plus" | "dot" | "x" | "ellipsis" | "copy" | "eye" | "eye-off" | "chevron-right" | "chevron-down" | "chevrons-right" | "panel-open" | "panel-close" | "arrow-left" | "pin" | "pin-off" | "external" | "calendar" | "clock" | "person" | "circle" | "circle-info" | "circle-check" | "triangle-alert" | "circle-alert" | "circle-x" | "circle-question" | "inbox" | "search" | "search-x" | "lock" | "caps-lock" | "arrow-up" | "stop" | "paperclip" | "pipette" | "cloud-off" | "loader-circle" | "maximize" | "minimize" | "upload" | "file" | "trash" | "play" | "pause" | "rotate-ccw" | "file-image" | "file-text" | "file-spreadsheet" | "file-audio" | "file-video" | "file-archive" | "file-type" | "text-wrap" | "bell" | "trending-up" | "image-off" | "funnel" | "grip-vertical" | "grip-horizontal" | "star" | "check-check">;
|
|
180
|
+
protected readonly extension: _angular_core.Signal<string>;
|
|
181
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAttachmentPreview, never>;
|
|
182
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlAttachmentPreview, "[slAttachmentPreview]", ["slAttachmentPreview"], { "src": { "alias": "src"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
183
|
+
}
|
|
184
|
+
/** The text column, and the one box in the attachment that may shrink. */
|
|
185
|
+
declare class SlAttachmentBody {
|
|
186
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAttachmentBody, never>;
|
|
187
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlAttachmentBody, "[slAttachmentBody]", ["slAttachmentBody"], {}, {}, never, never, true, never>;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* The file name as two runs — the stem, which shrinks to an ellipsis, and the
|
|
191
|
+
* extension, which does not — in the name's own direction. Content the page
|
|
192
|
+
* projects replaces the two runs.
|
|
193
|
+
*/
|
|
194
|
+
declare class SlAttachmentFilename {
|
|
195
|
+
protected readonly owner: SlAttachment;
|
|
196
|
+
protected readonly dir: string;
|
|
197
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAttachmentFilename, never>;
|
|
198
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlAttachmentFilename, "[slAttachmentFilename]", ["slAttachmentFilename"], {}, {}, never, ["*"], true, never>;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* The file's target: `<a slAttachmentTrigger [href]>` for a file with an
|
|
202
|
+
* address, so `href`, `download` and a modified click stay the platform's;
|
|
203
|
+
* `<button slAttachmentTrigger>` for a viewer the page opens. Named by the
|
|
204
|
+
* file, described by the detail and the message, and stretched over the whole
|
|
205
|
+
* attachment. A `button` takes the native `disabled` while the file is loading
|
|
206
|
+
* or unavailable; an `a` takes `aria-disabled` and keeps its destination, and
|
|
207
|
+
* `slAttachment` refuses the activation.
|
|
208
|
+
*/
|
|
209
|
+
declare class SlAttachmentTrigger {
|
|
210
|
+
protected readonly owner: SlAttachment;
|
|
211
|
+
protected readonly isButton: boolean;
|
|
212
|
+
protected readonly title: string | null;
|
|
213
|
+
protected readonly type: string | null;
|
|
214
|
+
/** A description the page wrote comes first; the family's ids are joined to it. */
|
|
215
|
+
private readonly written;
|
|
216
|
+
protected readonly describedBy: _angular_core.Signal<string | null>;
|
|
217
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAttachmentTrigger, never>;
|
|
218
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlAttachmentTrigger, "a[slAttachmentTrigger], button[slAttachmentTrigger]", ["slAttachmentTrigger"], {}, {}, never, ["*"], true, never>;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* The line under the name. With nothing projected it writes the size with
|
|
222
|
+
* `formatBytes` in the language in force; anything the page writes replaces it.
|
|
223
|
+
*/
|
|
224
|
+
declare class SlAttachmentDetail {
|
|
225
|
+
protected readonly wiring: {
|
|
226
|
+
owner: SlAttachment;
|
|
227
|
+
id: string;
|
|
228
|
+
};
|
|
229
|
+
protected readonly owner: SlAttachment;
|
|
230
|
+
protected readonly bytes: _angular_core.Signal<string>;
|
|
231
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAttachmentDetail, never>;
|
|
232
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlAttachmentDetail, "[slAttachmentDetail]", ["slAttachmentDetail"], {}, {}, never, ["*"], true, never>;
|
|
233
|
+
}
|
|
234
|
+
/** Why the file failed, or anything longer than a line the page must say about it. */
|
|
235
|
+
declare class SlAttachmentMessage {
|
|
236
|
+
protected readonly wiring: {
|
|
237
|
+
owner: SlAttachment;
|
|
238
|
+
id: string;
|
|
239
|
+
};
|
|
240
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAttachmentMessage, never>;
|
|
241
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlAttachmentMessage, "[slAttachmentMessage]", ["slAttachmentMessage"], {}, {}, never, never, true, never>;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* The transfer, as the attachment's bottom edge: `slProgressBar`, named by the
|
|
245
|
+
* file so a reader hears the name and the percentage together. Without a
|
|
246
|
+
* `value` the bar is indeterminate.
|
|
247
|
+
*/
|
|
248
|
+
declare class SlAttachmentProgress {
|
|
249
|
+
/** Per cent, 0 to 100. Absent, the bar is indeterminate. */
|
|
250
|
+
readonly value: _angular_core.InputSignal<number | null | undefined>;
|
|
251
|
+
protected readonly owner: SlAttachment;
|
|
252
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAttachmentProgress, never>;
|
|
253
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlAttachmentProgress, "[slAttachmentProgress]", ["slAttachmentProgress"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* The controls the application offers on the file, beside the trigger and
|
|
257
|
+
* above its stretched target: interactive content may not nest inside `a` or
|
|
258
|
+
* `button`.
|
|
259
|
+
*/
|
|
260
|
+
declare class SlAttachmentActions {
|
|
261
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAttachmentActions, never>;
|
|
262
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlAttachmentActions, "[slAttachmentActions]", ["slAttachmentActions"], {}, {}, never, never, true, never>;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* One icon control of the application's own, on the `button` or the `a` the
|
|
266
|
+
* page wrote — an `a` with `download` is a download. It needs an
|
|
267
|
+
* `aria-label`. An unavailable attachment disables it: the native `disabled`
|
|
268
|
+
* on a button, `aria-disabled` on a link, whose activation `slAttachment`
|
|
269
|
+
* refuses.
|
|
270
|
+
*/
|
|
271
|
+
declare class SlAttachmentAction {
|
|
272
|
+
protected readonly owner: SlAttachment;
|
|
273
|
+
protected readonly isButton: boolean;
|
|
274
|
+
protected readonly type: string | null;
|
|
275
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAttachmentAction, never>;
|
|
276
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlAttachmentAction, "button[slAttachmentAction], a[slAttachmentAction]", ["slAttachmentAction"], {}, {}, never, never, true, never>;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Asks to take the attachment out of its list, on the `button` the page
|
|
280
|
+
* wrote. Hidden unless the attachment is `removable`, so a read-only thread
|
|
281
|
+
* shows no control that does nothing. Its name is the word and the file,
|
|
282
|
+
* `Remove claim-form.pdf`, unless the page wrote its own `aria-label`.
|
|
283
|
+
*/
|
|
284
|
+
declare class SlAttachmentRemove {
|
|
285
|
+
protected readonly owner: SlAttachment;
|
|
286
|
+
private readonly written;
|
|
287
|
+
protected readonly label: _angular_core.Signal<string>;
|
|
288
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAttachmentRemove, never>;
|
|
289
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlAttachmentRemove, "button[slAttachmentRemove]", ["slAttachmentRemove"], {}, {}, never, ["*"], true, never>;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export { ATTACHMENT_CONTROL_SELECTOR, ATTACHMENT_DEFAULTS, ATTACHMENT_KIND_GLYPH, SlAttachment, SlAttachmentAction, SlAttachmentActions, SlAttachmentBody, SlAttachmentDetail, SlAttachmentFilename, SlAttachmentGroup, SlAttachmentMessage, SlAttachmentPreview, SlAttachmentProgress, SlAttachmentRemove, SlAttachmentTrigger, injectAttachmentDefaults, provideAttachmentDefaults };
|
|
293
|
+
export type { AttachmentDefaults, AttachmentFile, AttachmentLayout, AttachmentOrientation, AttachmentRemoveReason, AttachmentRemoveRequest, AttachmentSize };
|
|
294
|
+
//# sourceMappingURL=slotted-angular-attachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotted-angular-attachment.d.ts","sources":["../../attachment/src/attachment-defaults.ts","../../attachment/src/attachment.ts","../../attachment/src/attachment-parts.ts"],"mappings":";;;;;;;;;AAKM,KAAM,cAAc;KACd,qBAAqB;AAC3B,KAAM,gBAAgB;AAE5B;;;;AAIG;UACc,cAAc;AAC7B;AACA;AACA;AACD;AAED;AACM,KAAM,sBAAsB,GAAG,OAAO,CAAC,YAAY;AAEzD;UACiB,uBAAuB;AACtC,qBAAiB,sBAAsB;AACvC,mBAAe,cAAc;AAC7B,qBAAiB,KAAK;AACvB;UAEgB,kBAAkB;YACzB,gBAAgB;iBACX,qBAAqB;UAC5B,cAAc;AACrB;AAQD,cAAa,mBAAmB,EAAA,cAAA,CAAA,kBAAA;AAKhC;;;;;AAKG;AACH,iBAAgB,yBAAyB,WAAW,OAAO,CAAC,kBAAkB;;sBAG1D,kBAAkB;AAMrC;AAED,iBAAgB,wBAAwB,IAAI,kBAAkB;AAI9D;;;;AAIG;AACH,cAAa,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS;AAYvE;;;;;;AAMG;AACH,cAAa,2BAA2B;;ACxDxC;;;;;;;;;;AAUG;AACH,cAaa,iBAAiB;;qBAEb,aAAA,CAAA,WAAA,CAAA,gBAAA;;mBAEF,aAAA,CAAA,WAAA,CAAA,cAAA;;0BAEO,aAAA,CAAA,WAAA,CAAA,qBAAA;AAEpB;;AAEA;6BAGuB,aAAA,CAAA,MAAA,CAAA,gBAAA;2BACF,aAAA,CAAA,MAAA,CAAA,cAAA;kCACO,aAAA,CAAA,MAAA,CAAA,qBAAA;;oDAfjB,iBAAiB;sDAAjB,iBAAiB;AAsB7B;AAED;;;;;;;;;;;;;;;;AAgBG;AACH,cAqBa,YAAY;;mBAEV,aAAA,CAAA,WAAA,CAAA,cAAA;;mBAEA,aAAA,CAAA,WAAA,CAAA,cAAA;;0BAEO,aAAA,CAAA,WAAA,CAAA,qBAAA;;sBAEJ,aAAA,CAAA,wBAAA;;sBAEA,aAAA,CAAA,wBAAA;;uBAEC,aAAA,CAAA,wBAAA;;wBAEC,aAAA,CAAA,wBAAA;AAClB;;;;AAIG;uBACc,aAAA,CAAA,WAAA,CAAA,eAAA,CAAA,kBAAA;;qBAGF,aAAA,CAAA,gBAAA,CAAA,uBAAA;AAEf;AACA;;AAGA;;;AAA8E;;qBAE/D,aAAA,CAAA,MAAA;;gBAEL,kBAAA,CAAA,gBAAA,CAAA,kBAAA;2BAEW,aAAA,CAAA,MAAA,CAAA,cAAA;kCACO,aAAA,CAAA,MAAA,CAAA,qBAAA;mBAGf,aAAA,CAAA,MAAA,CAAA,oBAAA,CAAA,QAAA;AAIb,oBAAc,aAAA,CAAA,MAAA;;;AAA+C;sBAC7C,aAAA,CAAA,MAAA;AAEhB;;;;AAIG;AACH,wBAAkB,aAAA,CAAA,cAAA;AAAoB;AAAwB;AAG3D;;;AAwBH,oBAAgB,sBAAsB,UAAU,KAAK;AAKrD,mCAA+B,aAAa;oDAnFjC,YAAY;sDAAZ,YAAY;AA6FxB;;ACjLD;;;;;AAKG;AACH,cAmBa,mBAAmB;;kBAElB,aAAA,CAAA,WAAA;AAEZ,8BAAwB,YAAA;AACxB,+BAAyB,aAAA,CAAA,cAAA;AACzB,gCAA0B,aAAA,CAAA,MAAA;AAI1B,8BAAwB,aAAA,CAAA,MAAA;AACxB,kCAA4B,aAAA,CAAA,MAAA;oDAXjB,mBAAmB;sDAAnB,mBAAmB;AAe/B;AAED;AACA,cAMa,gBAAgB;oDAAhB,gBAAgB;sDAAhB,gBAAgB;AAAG;AAEhC;;;;AAIG;AACH,cAiBa,oBAAoB;AAC/B,8BAAwB,YAAA;AACxB;oDAFW,oBAAoB;sDAApB,oBAAoB;AAGhC;AAED;;;;;;;;AAQG;AACH,cAiBa,mBAAmB;AAC9B,8BAAwB,YAAA;AACxB;AAEA;AACA;;AAEA;AAIA,oCAA8B,aAAA,CAAA,MAAA;oDAXnB,mBAAmB;sDAAnB,mBAAmB;AAoB/B;AAED;;;AAGG;AACH,cAYa,kBAAkB;;;;AACmB;AAChD,8BAAwB,YAAA;AACxB,8BAAwB,aAAA,CAAA,MAAA;oDAHb,kBAAkB;sDAAlB,kBAAkB;AAO9B;AAED;AACA,cASa,mBAAmB;;;;AACmB;oDADtC,mBAAmB;sDAAnB,mBAAmB;AAE/B;AAED;;;;AAIG;AACH,cAiBa,oBAAoB;;oBAEjB,aAAA,CAAA,WAAA;AAEd,8BAAwB,YAAA;oDAJb,oBAAoB;sDAApB,oBAAoB;AAKhC;AAED;;;;AAIG;AACH,cAMa,mBAAmB;oDAAnB,mBAAmB;sDAAnB,mBAAmB;AAAG;AAEnC;;;;;;AAMG;AACH,cAWa,kBAAkB;AAC7B,8BAAwB,YAAA;AACxB;AAEA;oDAJW,kBAAkB;sDAAlB,kBAAkB;AAK9B;AAED;;;;;AAKG;AACH,cAmBa,kBAAkB;AAC7B,8BAAwB,YAAA;AACxB;AACA,8BAAwB,aAAA,CAAA,MAAA;oDAHb,kBAAkB;sDAAlB,kBAAkB;AAM9B;;","names":[]}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken, Signal } from '@angular/core';
|
|
3
|
+
import { AvatarGroupLayout, AvatarSize, AvatarShape, AvatarVariant } from '@slotted/angular/avatar';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* What a member is, to the group that holds it: a name, and a place in the row.
|
|
7
|
+
*
|
|
8
|
+
* The token exists so an item can ask the group whether it is beyond the limit
|
|
9
|
+
* without importing the group, which imports the item for its own content
|
|
10
|
+
* query. One direction each way is what keeps the two files out of a cycle.
|
|
11
|
+
*/
|
|
12
|
+
interface AvatarGroupMember {
|
|
13
|
+
/** The member's own name, read from the avatar inside it. */
|
|
14
|
+
readonly memberName: Signal<string | undefined>;
|
|
15
|
+
}
|
|
16
|
+
interface AvatarGroupHost {
|
|
17
|
+
isHiddenMember(member: AvatarGroupMember): boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const AVATAR_GROUP: InjectionToken<AvatarGroupHost>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* A list of faces, overlapped or apart, ending in a summary of the ones it does
|
|
23
|
+
* not show.
|
|
24
|
+
*
|
|
25
|
+
* It is written on a real `<ul>` whose members are real `<li>`s, so assistive
|
|
26
|
+
* technology announces a list of N without the family inventing a role. There
|
|
27
|
+
* is no `label` input: the element already accepts `aria-label`, and a second
|
|
28
|
+
* way to name one thing is a second thing to get wrong — the decision
|
|
29
|
+
* `button-group` took for the same question.
|
|
30
|
+
*
|
|
31
|
+
* The summary is an avatar rather than a fourth part painted to look like one,
|
|
32
|
+
* so it takes the group's size, shape, edge and ring from the same rules as
|
|
33
|
+
* every member beside it. Its accessible name is the hidden members' names,
|
|
34
|
+
* joined for the locale: Atlassian's default there is the English string “N
|
|
35
|
+
* more people”, and MUI, Ant, Fluent, Chakra and HeroUI leave `+3` as the whole
|
|
36
|
+
* announcement.
|
|
37
|
+
*/
|
|
38
|
+
declare class SlAvatarGroup {
|
|
39
|
+
/** `stack` overlaps the members; `spread` lays them apart and wraps. */
|
|
40
|
+
readonly layout: _angular_core.InputSignal<AvatarGroupLayout>;
|
|
41
|
+
/**
|
|
42
|
+
* The largest number of discs the group draws, the summary included. Above
|
|
43
|
+
* it, one fewer member is shown and the rest are summarised. `false` shows
|
|
44
|
+
* every member.
|
|
45
|
+
*/
|
|
46
|
+
readonly max: _angular_core.InputSignal<number | false>;
|
|
47
|
+
/**
|
|
48
|
+
* How many members there really are, when the page renders fewer than it
|
|
49
|
+
* has — a server-paged list showing three of forty. Defaults to the number of
|
|
50
|
+
* items written.
|
|
51
|
+
*/
|
|
52
|
+
readonly total: _angular_core.InputSignal<number | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* What the summary is called. Defaults to the hidden members' names, joined
|
|
55
|
+
* for the locale — which is only possible while every hidden member is in the
|
|
56
|
+
* DOM, so a group given a larger `total` supplies this itself.
|
|
57
|
+
*/
|
|
58
|
+
readonly overflowLabel: _angular_core.InputSignal<string | undefined>;
|
|
59
|
+
/** Provided to every member. An avatar that states its own still wins. */
|
|
60
|
+
readonly size: _angular_core.InputSignal<AvatarSize | undefined>;
|
|
61
|
+
/** Provided to every member. An avatar that states its own still wins. */
|
|
62
|
+
readonly shape: _angular_core.InputSignal<AvatarShape | undefined>;
|
|
63
|
+
/** Provided to every member. An avatar that states its own still wins. */
|
|
64
|
+
readonly variant: _angular_core.InputSignal<AvatarVariant | undefined>;
|
|
65
|
+
/** BCP 47, for the digits of the summary and for joining the hidden names. */
|
|
66
|
+
readonly locale: _angular_core.InputSignal<string | undefined>;
|
|
67
|
+
private readonly inherited;
|
|
68
|
+
private readonly items;
|
|
69
|
+
protected readonly resolvedSize: _angular_core.Signal<AvatarSize>;
|
|
70
|
+
protected readonly resolvedShape: _angular_core.Signal<AvatarShape>;
|
|
71
|
+
private readonly resolvedLocale;
|
|
72
|
+
private readonly count;
|
|
73
|
+
/**
|
|
74
|
+
* `max` counts the discs the group draws, the summary included, so a limit of
|
|
75
|
+
* five never puts six circles in a row. Below the limit nothing is
|
|
76
|
+
* summarised: a `+1` beside four faces is one more circle than showing the
|
|
77
|
+
* fifth, and says less.
|
|
78
|
+
*/
|
|
79
|
+
private readonly shownCount;
|
|
80
|
+
protected readonly surplus: _angular_core.Signal<number>;
|
|
81
|
+
protected readonly summary: _angular_core.Signal<string | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* The names of the members that were not drawn. They are only complete while
|
|
84
|
+
* every hidden member is in the DOM: a group told it stands for forty and
|
|
85
|
+
* given three items knows three names and no more, so it says nothing rather
|
|
86
|
+
* than naming a third of them.
|
|
87
|
+
*/
|
|
88
|
+
protected readonly overflowName: _angular_core.Signal<string | undefined>;
|
|
89
|
+
/** Read from each item's own `computed`, so a member hides itself. */
|
|
90
|
+
isHiddenMember(member: AvatarGroupMember): boolean;
|
|
91
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAvatarGroup, never>;
|
|
92
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlAvatarGroup, "ul[slAvatarGroup]", ["slAvatarGroup"], { "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "overflowLabel": { "alias": "overflowLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; }, {}, ["items"], ["*"], true, never>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* One member of the group: the list item that holds an avatar.
|
|
97
|
+
*
|
|
98
|
+
* React wraps each child itself, because it can. Angular cannot wrap projected
|
|
99
|
+
* content one node at a time, so the item is written in the template — which is
|
|
100
|
+
* the more honest of the two anyway: the `<li>` is the consumer's element, and
|
|
101
|
+
* `*ngFor` puts it where the data says.
|
|
102
|
+
*
|
|
103
|
+
* A member past the group's limit is `hidden`, which takes it out of the layout
|
|
104
|
+
* and out of the accessibility tree in one attribute. Its name is not lost: the
|
|
105
|
+
* group reads it from here and puts it on the summary.
|
|
106
|
+
*/
|
|
107
|
+
declare class SlAvatarGroupItem {
|
|
108
|
+
private readonly group;
|
|
109
|
+
private readonly avatar;
|
|
110
|
+
/** What the group calls this member when it has to summarise it away. */
|
|
111
|
+
readonly memberName: _angular_core.Signal<string | undefined>;
|
|
112
|
+
protected readonly hidden: _angular_core.Signal<boolean>;
|
|
113
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAvatarGroupItem, never>;
|
|
114
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlAvatarGroupItem, "li[slAvatarGroupItem]", ["slAvatarGroupItem"], {}, {}, ["avatar"], never, true, never>;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export { AVATAR_GROUP, SlAvatarGroup, SlAvatarGroupItem };
|
|
118
|
+
export type { AvatarGroupHost, AvatarGroupMember };
|
|
119
|
+
//# sourceMappingURL=slotted-angular-avatar-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotted-angular-avatar-group.d.ts","sources":["../../avatar-group/src/avatar-group-host.ts","../../avatar-group/src/avatar-group.ts","../../avatar-group/src/avatar-group-item.ts"],"mappings":";;;;AAGA;;;;;;AAMG;UACc,iBAAiB;;yBAEX,MAAM;AAC5B;UAEgB,eAAe;AAC9B,2BAAuB,iBAAiB;AACzC;AAED,cAAa,YAAY,EAAA,cAAA,CAAA,eAAA;;AC+CzB;;;;;;;;;;;;;;;;AAgBG;AACH,cA2Ba,aAAa;;qBAET,aAAA,CAAA,WAAA,CAAA,iBAAA;AACf;;;;AAIG;kBACS,aAAA,CAAA,WAAA;AACZ;;;;AAIG;oBACW,aAAA,CAAA,WAAA;AACd;;;;AAIG;4BACmB,aAAA,CAAA,WAAA;;mBAET,aAAA,CAAA,WAAA,CAAA,UAAA;;oBAEC,aAAA,CAAA,WAAA,CAAA,WAAA;;sBAEE,aAAA,CAAA,WAAA,CAAA,aAAA;;qBAED,aAAA,CAAA,WAAA;AAEf;AACA;AAEA,qCAA+B,aAAA,CAAA,MAAA,CAAA,UAAA;AAC/B,sCAAgC,aAAA,CAAA,MAAA,CAAA,WAAA;AAChC;AAEA;AAEA;;;;;AAKG;AACH;AAOA,gCAA0B,aAAA,CAAA,MAAA;AAE1B,gCAA0B,aAAA,CAAA,MAAA;AAI1B;;;;;AAKG;AACH,qCAA+B,aAAA,CAAA,MAAA;;2BAcR,iBAAiB;oDA9E7B,aAAa;sDAAb,aAAa;AAiFzB;;AC1LD;;;;;;;;;;;AAWG;AACH,cASa,iBAAiB;AAC5B;AACA;;yBAGmB,aAAA,CAAA,MAAA;AAEnB,+BAAyB,aAAA,CAAA,MAAA;oDAPd,iBAAiB;sDAAjB,iBAAiB;AAQ7B;;","names":[]}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import * as _slotted_angular_avatar from '@slotted/angular/avatar';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Which of the five semantic colours the fallback is painted in. `auto` derives
|
|
7
|
+
* it from the name, so the same person keeps the same colour in a list that is
|
|
8
|
+
* re-sorted and in a table that is paged.
|
|
9
|
+
*/
|
|
10
|
+
type AvatarTone = 'auto' | 'accent' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
11
|
+
/** The palette `auto` chooses from, in the order the hash indexes it. */
|
|
12
|
+
type AvatarResolvedTone = Exclude<AvatarTone, 'auto'>;
|
|
13
|
+
/** How that colour is painted. `soft` is the tinted disc an avatar usually is. */
|
|
14
|
+
type AvatarVariant = 'soft' | 'solid';
|
|
15
|
+
type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
16
|
+
/** A circle is a person; a square is a team, an organisation or a bot. */
|
|
17
|
+
type AvatarShape = 'circle' | 'square';
|
|
18
|
+
/** Where the picture is. Four values, because a boolean cannot say why there is none. */
|
|
19
|
+
type AvatarStatus = 'idle' | 'loading' | 'loaded' | 'error';
|
|
20
|
+
type AvatarGroupLayout = 'stack' | 'spread';
|
|
21
|
+
interface AvatarDefaults {
|
|
22
|
+
/** BCP 47. Used to case the initials, and by the group to join names. */
|
|
23
|
+
locale: string | undefined;
|
|
24
|
+
shape: AvatarShape;
|
|
25
|
+
size: AvatarSize;
|
|
26
|
+
tone: AvatarTone;
|
|
27
|
+
variant: AvatarVariant;
|
|
28
|
+
}
|
|
29
|
+
declare const AVATAR_DEFAULTS: InjectionToken<AvatarDefaults>;
|
|
30
|
+
/**
|
|
31
|
+
* An application decides once how its avatars are shaped, how large they are,
|
|
32
|
+
* how they are painted and — the one that matters most — which locale cases
|
|
33
|
+
* their initials, rather than repeating four inputs on every avatar. An avatar
|
|
34
|
+
* that states any of them itself still wins: an explicit input is never
|
|
35
|
+
* overridden by the token.
|
|
36
|
+
*
|
|
37
|
+
* `SlAvatarGroup` provides the same token rather than a channel of its own,
|
|
38
|
+
* which is what keeps a member's explicit `size` winning over the group's.
|
|
39
|
+
*/
|
|
40
|
+
declare function provideAvatarDefaults(defaults: Partial<AvatarDefaults>): {
|
|
41
|
+
provide: InjectionToken<AvatarDefaults>;
|
|
42
|
+
useFactory: () => AvatarDefaults;
|
|
43
|
+
};
|
|
44
|
+
/** What an avatar renders as here, before it states anything of its own. */
|
|
45
|
+
declare function injectAvatarDefaults(): AvatarDefaults;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Content that stands in for the picture, in place of the initials and the
|
|
49
|
+
* glyph: a company mark, a product logo, an `sl-icon`.
|
|
50
|
+
*
|
|
51
|
+
* It is a marker rather than a bare `<ng-content>` because Angular cannot ask
|
|
52
|
+
* whether anything was projected, and an avatar that wrote its initials
|
|
53
|
+
* *and* the consumer's logo into the same disc would be drawing two fallbacks.
|
|
54
|
+
* React answers the same question by looking at `children`.
|
|
55
|
+
*/
|
|
56
|
+
declare class SlAvatarFallback {
|
|
57
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAvatarFallback, never>;
|
|
58
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlAvatarFallback, "[slAvatarFallback]", ["slAvatarFallback"], {}, {}, never, never, true, never>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* A picture of a person or an entity, and what stands in when there is none:
|
|
63
|
+
* the initials taken from the name, then a glyph the family owns. A request
|
|
64
|
+
* that fails never paints the browser's torn-page mark, because the picture is
|
|
65
|
+
* out of sight until it reports that it arrived.
|
|
66
|
+
*
|
|
67
|
+
* The component is written on the element the page chose, so a `span` in a
|
|
68
|
+
* table cell, an `a` that opens a profile and a `button` that opens a menu are
|
|
69
|
+
* all the same avatar.
|
|
70
|
+
*
|
|
71
|
+
* The name lives on the root and the picture takes an empty `alt`, so the
|
|
72
|
+
* avatar announces the same thing before and after the photograph loads. Every
|
|
73
|
+
* surveyed implementation names the image instead, which makes the same avatar
|
|
74
|
+
* “Ada Lovelace” once the picture arrives and “AL” before it.
|
|
75
|
+
*
|
|
76
|
+
* `status` is an input with an output beside it rather than a `model()`. A
|
|
77
|
+
* `model()` promises a two-way binding for a value the browser owns: the
|
|
78
|
+
* component would write over whatever the consumer passed the first time an
|
|
79
|
+
* image loaded. Here the consumer's value simply wins, and the output reports
|
|
80
|
+
* the derivation — a load event is a fact rather than a request, so there is
|
|
81
|
+
* nothing to cancel and no reason from the closed vocabulary that fits it.
|
|
82
|
+
*/
|
|
83
|
+
declare class SlAvatar {
|
|
84
|
+
/**
|
|
85
|
+
* The person or entity this is a picture of. It is the accessible name in
|
|
86
|
+
* every status, the source of the initials, and the seed of the colour.
|
|
87
|
+
*/
|
|
88
|
+
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
89
|
+
/** The picture. Absent, the avatar is its fallback and nothing is requested. */
|
|
90
|
+
readonly src: _angular_core.InputSignal<string | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* The letters to draw, in place of the ones derived from the name. Two
|
|
93
|
+
* graphemes at most is what the box holds; `xs` draws one.
|
|
94
|
+
*/
|
|
95
|
+
readonly initialsOverride: _angular_core.InputSignal<string | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* A stable identifier to derive the colour from, when the name is not stable
|
|
98
|
+
* or two people share one. Defaults to `name`.
|
|
99
|
+
*/
|
|
100
|
+
readonly idFor: _angular_core.InputSignal<string | undefined>;
|
|
101
|
+
/** BCP 47, for the case of the initials. Defaults to the provider, then to the runtime. */
|
|
102
|
+
readonly locale: _angular_core.InputSignal<string | undefined>;
|
|
103
|
+
/** Defaults to the provider, then to `md`. */
|
|
104
|
+
readonly size: _angular_core.InputSignal<AvatarSize | undefined>;
|
|
105
|
+
/** Defaults to the provider, then to `circle`. */
|
|
106
|
+
readonly shape: _angular_core.InputSignal<AvatarShape | undefined>;
|
|
107
|
+
/** Defaults to the provider, then to `auto`, which derives it from the name. */
|
|
108
|
+
readonly tone: _angular_core.InputSignal<AvatarTone | undefined>;
|
|
109
|
+
/** Defaults to the provider, then to `soft`. */
|
|
110
|
+
readonly variant: _angular_core.InputSignal<AvatarVariant | undefined>;
|
|
111
|
+
/** A deactivated account, or an avatar inside a control the page has turned off. */
|
|
112
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
113
|
+
/**
|
|
114
|
+
* Takes the avatar out of the accessibility tree. For an avatar beside the
|
|
115
|
+
* name it belongs to, where announcing it would read the person twice.
|
|
116
|
+
*/
|
|
117
|
+
readonly decorative: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
118
|
+
/**
|
|
119
|
+
* Where the picture is. Supplied, it wins over what the component derives
|
|
120
|
+
* from the element — for a server that already knows, or a loader the family
|
|
121
|
+
* cannot see.
|
|
122
|
+
*/
|
|
123
|
+
readonly status: _angular_core.InputSignal<AvatarStatus | undefined>;
|
|
124
|
+
/** Reports the derived status. Never emits for a status passed in. */
|
|
125
|
+
readonly statusChange: _angular_core.OutputEmitterRef<AvatarStatus>;
|
|
126
|
+
private readonly defaults;
|
|
127
|
+
/** An explicit role the consumer wrote is never replaced by an inferred one. */
|
|
128
|
+
private readonly writtenRole;
|
|
129
|
+
protected readonly custom: _angular_core.Signal<SlAvatarFallback | undefined>;
|
|
130
|
+
private readonly projected;
|
|
131
|
+
protected readonly resolvedSize: _angular_core.Signal<AvatarSize>;
|
|
132
|
+
protected readonly resolvedShape: _angular_core.Signal<AvatarShape>;
|
|
133
|
+
protected readonly resolvedVariant: _angular_core.Signal<AvatarVariant>;
|
|
134
|
+
private readonly resolvedLocale;
|
|
135
|
+
/**
|
|
136
|
+
* The derivation, and the picture it belongs to. A new request makes the
|
|
137
|
+
* previous answer describe nothing, so the status starts again from what the
|
|
138
|
+
* props alone can say — which is also what a server render and the hydration
|
|
139
|
+
* after it both compute, so nothing flashes between them.
|
|
140
|
+
*/
|
|
141
|
+
private readonly derived;
|
|
142
|
+
protected readonly resolvedStatus: _angular_core.Signal<AvatarStatus>;
|
|
143
|
+
protected readonly resolvedTone: _angular_core.Signal<AvatarResolvedTone>;
|
|
144
|
+
protected readonly initials: _angular_core.Signal<string>;
|
|
145
|
+
/**
|
|
146
|
+
* The W3C `alt` decision tree, in this library's vocabulary and with the rule
|
|
147
|
+
* `icon` already took: a name present decides `role="img"`, an absent one
|
|
148
|
+
* decides `aria-hidden`. `decorative` is the third case — a name that is
|
|
149
|
+
* written beside the avatar, where announcing it reads the person twice.
|
|
150
|
+
*/
|
|
151
|
+
private readonly silent;
|
|
152
|
+
protected readonly role: _angular_core.Signal<string | null>;
|
|
153
|
+
protected readonly ariaLabel: _angular_core.Signal<string | null>;
|
|
154
|
+
protected readonly ariaHidden: _angular_core.Signal<"true" | null>;
|
|
155
|
+
/** Called by the picture, whichever of the two elements it turned out to be. */
|
|
156
|
+
reportStatus(status: AvatarStatus): void;
|
|
157
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAvatar, never>;
|
|
158
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlAvatar, "[slAvatar]", ["slAvatar"], { "name": { "alias": "name"; "required": false; "isSignal": true; }; "src": { "alias": "src"; "required": false; "isSignal": true; }; "initialsOverride": { "alias": "initials"; "required": false; "isSignal": true; }; "idFor": { "alias": "idFor"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "decorative": { "alias": "decorative"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; }, { "statusChange": "statusChange"; }, ["custom", "projected"], ["img", "[slAvatarFallback]"], true, never>;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* The picture inside an avatar.
|
|
163
|
+
*
|
|
164
|
+
* It is written on an `<img>` the consumer owns, which is what lets
|
|
165
|
+
* `NgOptimizedImage` do its work: `ngSrc`, the priority hint, the generated
|
|
166
|
+
* `srcset` and the size warnings all belong to a real `<img>` in the
|
|
167
|
+
* consumer's template, and none of them survive being handed a `src` string
|
|
168
|
+
* through an input. React has no equivalent, and its `renderImage` is the other
|
|
169
|
+
* half of the same idea.
|
|
170
|
+
*
|
|
171
|
+
* `alt` is written empty only when the consumer wrote none: the avatar's name
|
|
172
|
+
* is on the root, so naming the picture as well would read the person twice —
|
|
173
|
+
* and would name them differently before the picture arrives.
|
|
174
|
+
*/
|
|
175
|
+
declare class SlAvatarImage {
|
|
176
|
+
protected readonly avatar: _slotted_angular_avatar.AvatarImageHost;
|
|
177
|
+
/** A static `alt` the consumer wrote is read before the host binding writes one. */
|
|
178
|
+
protected readonly alt: string;
|
|
179
|
+
private readonly element;
|
|
180
|
+
constructor();
|
|
181
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAvatarImage, never>;
|
|
182
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlAvatarImage, "img[slAvatarImage]", ["slAvatarImage"], {}, {}, never, never, true, never>;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* What the picture tells the avatar it sits in.
|
|
187
|
+
*
|
|
188
|
+
* It is a token rather than the component's own class so that one directive can
|
|
189
|
+
* serve both pictures the family knows about: the `<img>` the avatar renders
|
|
190
|
+
* for its own `src`, and the `<img>` the consumer projects — which is the one
|
|
191
|
+
* that carries `ngSrc`, and therefore the one `NgOptimizedImage` can reach. A
|
|
192
|
+
* directive that injected the component directly would put a cycle between the
|
|
193
|
+
* two files, and the component imports the directive for its own template.
|
|
194
|
+
*/
|
|
195
|
+
interface AvatarImageHost {
|
|
196
|
+
reportStatus(status: AvatarStatus): void;
|
|
197
|
+
}
|
|
198
|
+
declare const AVATAR_IMAGE_HOST: InjectionToken<AvatarImageHost>;
|
|
199
|
+
|
|
200
|
+
export { AVATAR_DEFAULTS, AVATAR_IMAGE_HOST, SlAvatar, SlAvatarFallback, SlAvatarImage, injectAvatarDefaults, provideAvatarDefaults };
|
|
201
|
+
export type { AvatarDefaults, AvatarGroupLayout, AvatarImageHost, AvatarResolvedTone, AvatarShape, AvatarSize, AvatarStatus, AvatarTone, AvatarVariant };
|
|
202
|
+
//# sourceMappingURL=slotted-angular-avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotted-angular-avatar.d.ts","sources":["../../avatar/src/avatar-defaults.ts","../../avatar/src/avatar-fallback.ts","../../avatar/src/avatar.ts","../../avatar/src/avatar-image.ts","../../avatar/src/avatar-image-host.ts"],"mappings":";;;;AAEA;;;;AAIG;AACG,KAAM,UAAU;AAEtB;AACM,KAAM,kBAAkB,GAAG,OAAO,CAAC,UAAU;AAEnD;KACY,aAAa;AAEnB,KAAM,UAAU;AAEtB;KACY,WAAW;AAEvB;AACM,KAAM,YAAY;KAEZ,iBAAiB;UAEZ,cAAc;;AAE7B;WACO,WAAW;UACZ,UAAU;UACV,UAAU;aACP,aAAa;AACvB;AAUD,cAAa,eAAe,EAAA,cAAA,CAAA,cAAA;AAK5B;;;;;;;;;AASG;AACH,iBAAgB,qBAAqB,WAAW,OAAO,CAAC,cAAc;;sBAGlD,cAAc;AAQjC;AAED;AACA,iBAAgB,oBAAoB,IAAI,cAAc;;ACrEtD;;;;;;;;AAQG;AACH,cAKa,gBAAgB;oDAAhB,gBAAgB;sDAAhB,gBAAgB;AAAG;;AC4ChC;;;;;;;;;;;;;;;;;;;;;AAqBG;AACH,cA0Ca,QAAQ;AACnB;;;AAGG;mBACU,aAAA,CAAA,WAAA;;kBAED,aAAA,CAAA,WAAA;AACZ;;;AAGG;+BACsB,aAAA,CAAA,WAAA;AACzB;;;AAGG;oBACW,aAAA,CAAA,WAAA;;qBAEC,aAAA,CAAA,WAAA;;mBAEF,aAAA,CAAA,WAAA,CAAA,UAAA;;oBAEC,aAAA,CAAA,WAAA,CAAA,WAAA;;mBAED,aAAA,CAAA,WAAA,CAAA,UAAA;;sBAEG,aAAA,CAAA,WAAA,CAAA,aAAA;;uBAEC,aAAA,CAAA,wBAAA;AACjB;;;AAGG;yBACgB,aAAA,CAAA,wBAAA;AACnB;;;;AAIG;qBACY,aAAA,CAAA,WAAA,CAAA,YAAA;;2BAGM,aAAA,CAAA,gBAAA,CAAA,YAAA;AAErB;;AAEA;AAEA,+BAAyB,aAAA,CAAA,MAAA,CAAA,gBAAA;AACzB;AAEA,qCAA+B,aAAA,CAAA,MAAA,CAAA,UAAA;AAC/B,sCAAgC,aAAA,CAAA,MAAA,CAAA,WAAA;AAChC,wCAAkC,aAAA,CAAA,MAAA,CAAA,aAAA;AAClC;AAEA;;;;;AAKG;AACH;AAKA,uCAAiC,aAAA,CAAA,MAAA,CAAA,YAAA;AAEjC,qCAA+B,aAAA,CAAA,MAAA,CAAA,kBAAA;AAM/B,iCAA2B,aAAA,CAAA,MAAA;AAU3B;;;;;AAKG;AACH;AAKA,6BAAuB,aAAA,CAAA,MAAA;AACvB,kCAA4B,aAAA,CAAA,MAAA;AAC5B,mCAA6B,aAAA,CAAA,MAAA;;yBAGR,YAAY;oDAtGtB,QAAQ;sDAAR,QAAQ;AA0GpB;;AClOD;;;;;;;;;;;;;AAaG;AACH,cAWa,aAAa;AACxB,+BAAyB,uBAAA,CAAA,eAAA;;AAGzB;AAEA;;oDANW,aAAa;sDAAb,aAAa;AAqBzB;;AC9CD;;;;;;;;;AASG;UACc,eAAe;AAC9B,yBAAqB,YAAY;AAClC;AAED,cAAa,iBAAiB,EAAA,cAAA,CAAA,eAAA;;","names":[]}
|