@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,374 @@
|
|
|
1
|
+
import * as _slotted_core_i18n from '@slotted/core/i18n';
|
|
2
|
+
import { PartialMessages, RatingMessages } from '@slotted/core/i18n';
|
|
3
|
+
import * as _angular_core from '@angular/core';
|
|
4
|
+
import { InjectionToken, TemplateRef } from '@angular/core';
|
|
5
|
+
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
6
|
+
import { ChangeRequest } from '@slotted/core/state';
|
|
7
|
+
import * as _slotted_core_rating from '@slotted/core/rating';
|
|
8
|
+
import { RatingInsightThresholds } from '@slotted/core/rating';
|
|
9
|
+
|
|
10
|
+
/** The step the symbols and the text beside them sit at. */
|
|
11
|
+
type RatingSize = 'sm' | 'md' | 'lg';
|
|
12
|
+
/**
|
|
13
|
+
* The colour a lit symbol takes. `secondary` is outside the axis: its solid
|
|
14
|
+
* step is a ground, and a lit star painted in it reads as an unlit one.
|
|
15
|
+
*/
|
|
16
|
+
type RatingTone = 'accent' | 'success' | 'warning' | 'danger';
|
|
17
|
+
/** The smallest move of the input member: a whole symbol, or half of one. */
|
|
18
|
+
type RatingStep = 1 | 0.5;
|
|
19
|
+
/** How the display member draws a value: every symbol, one symbol, or one symbol and a histogram. */
|
|
20
|
+
type RatingDisplayVariant = 'full' | 'compact' | 'histogram';
|
|
21
|
+
/** How the summary draws a distribution: one bar per level, or columns over the scale with the mean. */
|
|
22
|
+
type RatingSummaryVariant = 'bars' | 'spectrum';
|
|
23
|
+
interface RatingDefaults {
|
|
24
|
+
size: RatingSize;
|
|
25
|
+
tone: RatingTone;
|
|
26
|
+
max: number;
|
|
27
|
+
clearable: boolean;
|
|
28
|
+
insightThresholds: RatingInsightThresholds;
|
|
29
|
+
}
|
|
30
|
+
/** What `provideRating()` takes: every key optional, and the thresholds partial. */
|
|
31
|
+
type RatingDefaultsInput = Partial<Omit<RatingDefaults, 'insightThresholds'>> & {
|
|
32
|
+
insightThresholds?: Partial<RatingInsightThresholds>;
|
|
33
|
+
};
|
|
34
|
+
declare const SL_RATING_DEFAULTS: InjectionToken<RatingDefaults>;
|
|
35
|
+
/**
|
|
36
|
+
* An application decides once how its ratings read — the step, the tone, the
|
|
37
|
+
* scale, whether a press on the chosen star empties it and the thresholds of
|
|
38
|
+
* the summary's conclusion. A threshold left out keeps the family's; an
|
|
39
|
+
* instance that states any of them still wins. The words and the locale come
|
|
40
|
+
* from the language in force (`provideSlotted`).
|
|
41
|
+
*/
|
|
42
|
+
declare function provideRating(defaults: RatingDefaultsInput): {
|
|
43
|
+
provide: InjectionToken<RatingDefaults>;
|
|
44
|
+
useFactory: () => RatingDefaults;
|
|
45
|
+
};
|
|
46
|
+
/** What a rating renders as here, before it states anything of its own. */
|
|
47
|
+
declare function injectRatingDefaults(): RatingDefaults;
|
|
48
|
+
declare class SlRatingIdFactory {
|
|
49
|
+
next(): string;
|
|
50
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlRatingIdFactory, never>;
|
|
51
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** Why the value moved. A rating can produce exactly these three. */
|
|
55
|
+
type RatingValueReason = 'pointer' | 'keyboard' | 'clear';
|
|
56
|
+
/** What the caption template is handed: the value held, and the one under the pointer. */
|
|
57
|
+
interface RatingCaptionContext {
|
|
58
|
+
$implicit: number | null;
|
|
59
|
+
value: number | null;
|
|
60
|
+
preview: number | null;
|
|
61
|
+
}
|
|
62
|
+
/** What the symbol template is handed: the symbol's position, and how much of it is lit. */
|
|
63
|
+
interface RatingSymbolContext {
|
|
64
|
+
$implicit: {
|
|
65
|
+
index: number;
|
|
66
|
+
fill: number;
|
|
67
|
+
};
|
|
68
|
+
index: number;
|
|
69
|
+
fill: number;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The words beside the stars. On an element it is projected as it is; on an
|
|
73
|
+
* `ng-template` it is rendered again whenever the value or the preview moves,
|
|
74
|
+
* with both in its context — the word for the star under the pointer is the
|
|
75
|
+
* whole point of a caption.
|
|
76
|
+
*/
|
|
77
|
+
declare class SlRatingCaption {
|
|
78
|
+
readonly template: TemplateRef<RatingCaptionContext> | null;
|
|
79
|
+
static ngTemplateContextGuard(_directive: SlRatingCaption, context: unknown): context is RatingCaptionContext;
|
|
80
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlRatingCaption, never>;
|
|
81
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlRatingCaption, "[slRatingCaption]", never, {}, {}, never, never, true, never>;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* The drawing of one symbol, in place of the star. It is rendered twice per
|
|
85
|
+
* item — once in `symbol`, the unlit shape, and once in `fill`, the lit one
|
|
86
|
+
* the stylesheet clips — so a consumer's heart lights the way a star does.
|
|
87
|
+
*/
|
|
88
|
+
declare class SlRatingSymbol {
|
|
89
|
+
readonly template: TemplateRef<RatingSymbolContext>;
|
|
90
|
+
static ngTemplateContextGuard(_directive: SlRatingSymbol, context: unknown): context is RatingSymbolContext;
|
|
91
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlRatingSymbol, never>;
|
|
92
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlRatingSymbol, "ng-template[slRatingSymbol]", never, {}, {}, never, never, true, never>;
|
|
93
|
+
}
|
|
94
|
+
interface RatingRadio {
|
|
95
|
+
value: number;
|
|
96
|
+
half: boolean;
|
|
97
|
+
label: string;
|
|
98
|
+
}
|
|
99
|
+
interface RatingItem {
|
|
100
|
+
index: number;
|
|
101
|
+
checked: boolean;
|
|
102
|
+
radios: RatingRadio[];
|
|
103
|
+
context: RatingSymbolContext;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* An ordinal value chosen from a row of symbols.
|
|
107
|
+
*
|
|
108
|
+
* **The radios are native, and that buys the rest.** Tab lands on the checked
|
|
109
|
+
* one or on the first, Space checks, the form submits the value under one
|
|
110
|
+
* `name`, and a disabled rating leaves the tab order — all the platform's. The
|
|
111
|
+
* arrows are the family's (`ratingForKey`): the platform's wrap from the last
|
|
112
|
+
* radio to the first, and a rating that falls from five to one on one key too
|
|
113
|
+
* many is the defect every surveyed rating avoids.
|
|
114
|
+
*
|
|
115
|
+
* **A half step is a second radio over the inline-start half of the symbol**,
|
|
116
|
+
* stacked above the whole one, so the pointer asks for the half by pressing
|
|
117
|
+
* where the half is drawn.
|
|
118
|
+
*
|
|
119
|
+
* **The DOM is written back after every activation.** The HTML standard's
|
|
120
|
+
* canceled activation restores only the clicked radio, and a press on the
|
|
121
|
+
* checked one that empties the value leaves the platform nothing to undo, so
|
|
122
|
+
* each radio's `checked` is set from the value once the request is answered.
|
|
123
|
+
*/
|
|
124
|
+
declare class SlRating implements ControlValueAccessor, Validator {
|
|
125
|
+
/** The rating, `null` for none. Two-way; every move is asked first through `valueChangeRequest`. */
|
|
126
|
+
readonly value: _angular_core.ModelSignal<number | null>;
|
|
127
|
+
readonly max: _angular_core.InputSignal<number | undefined>;
|
|
128
|
+
readonly step: _angular_core.InputSignal<RatingStep>;
|
|
129
|
+
readonly clearable: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
|
|
130
|
+
readonly size: _angular_core.InputSignal<RatingSize | undefined>;
|
|
131
|
+
readonly tone: _angular_core.InputSignal<RatingTone | undefined>;
|
|
132
|
+
/** The submission name the radios share. Generated when it is not written. */
|
|
133
|
+
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
134
|
+
/** The form the radios belong to when the rating sits outside it. */
|
|
135
|
+
readonly form: _angular_core.InputSignal<string | undefined>;
|
|
136
|
+
/** Unstated rather than `false`, so the rating defers to the field around it. */
|
|
137
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
|
|
138
|
+
readonly readOnly: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
|
|
139
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
|
|
140
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
|
|
141
|
+
/** Words laid over the catalog of the language in force, key by key. */
|
|
142
|
+
readonly messages: _angular_core.InputSignal<PartialMessages<RatingMessages> | undefined>;
|
|
143
|
+
/** The locale numbers are written in. Unstated, the language in force. */
|
|
144
|
+
readonly locale: _angular_core.InputSignal<string | undefined>;
|
|
145
|
+
/**
|
|
146
|
+
* Emitted before the value moves, with the value asked for, the one it
|
|
147
|
+
* replaces, the reason and the event. `cancel()` keeps the value.
|
|
148
|
+
*/
|
|
149
|
+
readonly valueChangeRequest: _angular_core.OutputEmitterRef<ChangeRequest<number | null>>;
|
|
150
|
+
/** The value under the pointer, and `null` when it leaves. It changes nothing. */
|
|
151
|
+
readonly previewChange: _angular_core.OutputEmitterRef<number | null>;
|
|
152
|
+
private readonly element;
|
|
153
|
+
private readonly field;
|
|
154
|
+
private readonly fieldGroup;
|
|
155
|
+
private readonly defaults;
|
|
156
|
+
private readonly appLocale;
|
|
157
|
+
/** The family's words in the language in force, with this rating's `messages` laid over them. */
|
|
158
|
+
readonly t: _slotted_core_i18n.FamilyTranslator<RatingMessages>;
|
|
159
|
+
private readonly generatedName;
|
|
160
|
+
private readonly writtenRole;
|
|
161
|
+
private readonly writtenDescribedBy;
|
|
162
|
+
protected readonly caption: _angular_core.Signal<SlRatingCaption | undefined>;
|
|
163
|
+
protected readonly symbol: _angular_core.Signal<SlRatingSymbol | undefined>;
|
|
164
|
+
private readonly radios;
|
|
165
|
+
private readonly formDisabled;
|
|
166
|
+
private readonly preview;
|
|
167
|
+
protected readonly dragging: _angular_core.WritableSignal<boolean>;
|
|
168
|
+
private gesture;
|
|
169
|
+
/** Set when a touch gesture has answered a press, so the click the platform sends after it does not answer it again. */
|
|
170
|
+
private suppressClick;
|
|
171
|
+
private onChange;
|
|
172
|
+
private onTouched;
|
|
173
|
+
readonly resolvedName: _angular_core.Signal<string>;
|
|
174
|
+
readonly resolvedMax: _angular_core.Signal<number>;
|
|
175
|
+
readonly resolvedStep: _angular_core.Signal<RatingStep>;
|
|
176
|
+
readonly resolvedClearable: _angular_core.Signal<boolean>;
|
|
177
|
+
readonly resolvedSize: _angular_core.Signal<RatingSize>;
|
|
178
|
+
readonly resolvedTone: _angular_core.Signal<RatingTone>;
|
|
179
|
+
readonly resolvedDisabled: _angular_core.Signal<boolean | undefined>;
|
|
180
|
+
readonly resolvedReadOnly: _angular_core.Signal<boolean | undefined>;
|
|
181
|
+
readonly resolvedInvalid: _angular_core.Signal<boolean | undefined>;
|
|
182
|
+
readonly resolvedRequired: _angular_core.Signal<boolean | undefined>;
|
|
183
|
+
readonly resolvedLocale: _angular_core.Signal<string>;
|
|
184
|
+
private readonly scale;
|
|
185
|
+
/** The value on the grid of the scale: 7 of 5 is 5, 3.2 on whole steps is 4, and `NaN` is none. */
|
|
186
|
+
readonly current: _angular_core.Signal<number | null>;
|
|
187
|
+
protected readonly items: _angular_core.Signal<RatingItem[]>;
|
|
188
|
+
protected readonly captionContext: _angular_core.Signal<RatingCaptionContext>;
|
|
189
|
+
protected readonly resolvedRole: _angular_core.Signal<string | null>;
|
|
190
|
+
protected readonly describedBy: _angular_core.Signal<string | null>;
|
|
191
|
+
private readonly inert;
|
|
192
|
+
/** The one action a value cannot express: focus on the checked radio, or on the first. */
|
|
193
|
+
focus(options?: FocusOptions): void;
|
|
194
|
+
protected onKeyDown(event: KeyboardEvent): void;
|
|
195
|
+
protected onClick(event: MouseEvent): void;
|
|
196
|
+
protected onRowPointerDown(event: PointerEvent): void;
|
|
197
|
+
protected onRowPointerMove(event: PointerEvent): void;
|
|
198
|
+
/**
|
|
199
|
+
* A touch that never moved is a press, answered here rather than by the
|
|
200
|
+
* click that follows it: with the row capturing the pointer, the click lands
|
|
201
|
+
* on the row and not on a radio.
|
|
202
|
+
*/
|
|
203
|
+
protected onRowPointerUp(event: PointerEvent): void;
|
|
204
|
+
protected onRowPointerCancel(): void;
|
|
205
|
+
protected onPreview(value: number): void;
|
|
206
|
+
protected onLeave(): void;
|
|
207
|
+
protected onBlur(): void;
|
|
208
|
+
writeValue(value: number | null | undefined): void;
|
|
209
|
+
registerOnChange(fn: (value: number | null) => void): void;
|
|
210
|
+
registerOnTouched(fn: () => void): void;
|
|
211
|
+
setDisabledState(isDisabled: boolean): void;
|
|
212
|
+
/** "Choose a rating" is a fact about the whole row, which no single radio can see. */
|
|
213
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
214
|
+
/**
|
|
215
|
+
* Asks for one value. Returns whether it moved: not while read-only or
|
|
216
|
+
* disabled, not when it is the value already held, and not when the
|
|
217
|
+
* consumer cancelled the request.
|
|
218
|
+
*/
|
|
219
|
+
private request;
|
|
220
|
+
private valueAt;
|
|
221
|
+
/** Writes every radio's `checked` from the value. */
|
|
222
|
+
private syncElements;
|
|
223
|
+
private inputFor;
|
|
224
|
+
private isOwnRadio;
|
|
225
|
+
/** A right-to-left document is a property of the page, read from the element. */
|
|
226
|
+
private isRtl;
|
|
227
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlRating, never>;
|
|
228
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlRating, "div[slRating]", ["slRating"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueChangeRequest": "valueChangeRequest"; "previewChange": "previewChange"; }, ["caption", "symbol"], ["[slRatingCaption]"], true, never>;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* A rating the page reports rather than asks for: an image of lit symbols
|
|
233
|
+
* named by the number it draws.
|
|
234
|
+
*
|
|
235
|
+
* Any fraction is drawn — 4,6 lights six tenths of the fifth star — because
|
|
236
|
+
* nothing here is a target; the input member offers whole and half steps
|
|
237
|
+
* only. `compact` and `histogram` draw one lit star beside the number, for a
|
|
238
|
+
* row of a table or a card, and `histogram` adds the distribution as bars,
|
|
239
|
+
* each level over the largest, so a split between the two ends is visible at
|
|
240
|
+
* a glance where a mean of 3,3 would hide it.
|
|
241
|
+
*/
|
|
242
|
+
declare class SlRatingDisplay {
|
|
243
|
+
/** The number drawn. Any fraction; clamped to the scale when it is drawn. */
|
|
244
|
+
readonly value: _angular_core.InputSignal<number>;
|
|
245
|
+
readonly max: _angular_core.InputSignal<number | undefined>;
|
|
246
|
+
readonly size: _angular_core.InputSignal<RatingSize | undefined>;
|
|
247
|
+
readonly tone: _angular_core.InputSignal<RatingTone | undefined>;
|
|
248
|
+
readonly variant: _angular_core.InputSignal<RatingDisplayVariant>;
|
|
249
|
+
/** How many readings the value is made of. Written beside it and in the name. */
|
|
250
|
+
readonly count: _angular_core.InputSignal<number | undefined>;
|
|
251
|
+
/** Counts per level, lowest first, for the `histogram` variant. */
|
|
252
|
+
readonly distribution: _angular_core.InputSignal<readonly number[] | undefined>;
|
|
253
|
+
readonly showValue: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
254
|
+
/** Words laid over the catalog of the language in force, key by key. */
|
|
255
|
+
readonly messages: _angular_core.InputSignal<PartialMessages<RatingMessages> | undefined>;
|
|
256
|
+
/** The locale numbers are written in. Unstated, the language in force. */
|
|
257
|
+
readonly locale: _angular_core.InputSignal<string | undefined>;
|
|
258
|
+
private readonly defaults;
|
|
259
|
+
private readonly appLocale;
|
|
260
|
+
/** The family's words in the language in force, with this display's `messages` laid over them. */
|
|
261
|
+
readonly t: _slotted_core_i18n.FamilyTranslator<RatingMessages>;
|
|
262
|
+
private readonly writtenLabel;
|
|
263
|
+
readonly resolvedMax: _angular_core.Signal<number>;
|
|
264
|
+
readonly resolvedSize: _angular_core.Signal<RatingSize>;
|
|
265
|
+
readonly resolvedTone: _angular_core.Signal<RatingTone>;
|
|
266
|
+
readonly resolvedVariant: _angular_core.Signal<RatingDisplayVariant>;
|
|
267
|
+
private readonly resolvedLocale;
|
|
268
|
+
/** The value clamped to the scale, and `NaN` read as nought. */
|
|
269
|
+
private readonly drawn;
|
|
270
|
+
/** Every symbol's lit share; one full star for the variants that draw one. */
|
|
271
|
+
protected readonly fills: _angular_core.Signal<string[]>;
|
|
272
|
+
protected readonly shares: _angular_core.Signal<string[]>;
|
|
273
|
+
protected readonly valueText: _angular_core.Signal<string>;
|
|
274
|
+
protected readonly countText: _angular_core.Signal<string | null>;
|
|
275
|
+
protected readonly label: _angular_core.Signal<string>;
|
|
276
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlRatingDisplay, never>;
|
|
277
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlRatingDisplay, "div[slRatingDisplay]", ["slRatingDisplay"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; "distribution": { "alias": "distribution"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/** Why the selected levels moved: a press, or Space or Enter on a level. */
|
|
281
|
+
type RatingLevelsReason = 'pointer' | 'keyboard';
|
|
282
|
+
interface SummaryLevel {
|
|
283
|
+
level: number;
|
|
284
|
+
count: number;
|
|
285
|
+
countText: string;
|
|
286
|
+
/** The level's share of the total, for the bar of `bars`. */
|
|
287
|
+
share: string;
|
|
288
|
+
/** The level over the largest level, for the column of `spectrum`. */
|
|
289
|
+
peak: string;
|
|
290
|
+
shareText: string;
|
|
291
|
+
label: string;
|
|
292
|
+
pressed: boolean;
|
|
293
|
+
}
|
|
294
|
+
interface SummaryBucket {
|
|
295
|
+
key: 'positive' | 'neutral' | 'negative';
|
|
296
|
+
tone: 'success' | 'secondary' | 'danger';
|
|
297
|
+
before: string;
|
|
298
|
+
share: string;
|
|
299
|
+
after: string;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* The aggregate of many ratings: the figure, how many readings it is made of,
|
|
303
|
+
* and how they spread over the levels.
|
|
304
|
+
*
|
|
305
|
+
* `bars` draws one bar per level, highest first, the order every surveyed
|
|
306
|
+
* summary uses. `spectrum` draws the same counts as columns over the scale,
|
|
307
|
+
* lowest first, with the mean and its 95% interval laid over them, the
|
|
308
|
+
* readings split into three buckets, and one conclusion — split, too few,
|
|
309
|
+
* agreed, or none of those — so a 3,3 made of ones and fives does not read
|
|
310
|
+
* like a 3,3 made of threes.
|
|
311
|
+
*
|
|
312
|
+
* With `filterable`, each level is a toggle button, and the pressed levels are
|
|
313
|
+
* a selection the page filters its reviews by; a level nobody chose is
|
|
314
|
+
* disabled, because a filter that returns nothing is a dead end.
|
|
315
|
+
*/
|
|
316
|
+
declare class SlRatingSummary {
|
|
317
|
+
/** How many readings each level holds, lowest level first — the order a store keeps them in. */
|
|
318
|
+
readonly counts: _angular_core.InputSignal<readonly number[]>;
|
|
319
|
+
/** How many levels the scale has. A level missing from `counts` holds none; one past it is dropped. */
|
|
320
|
+
readonly max: _angular_core.InputSignal<number | undefined>;
|
|
321
|
+
readonly variant: _angular_core.InputSignal<RatingSummaryVariant>;
|
|
322
|
+
/** Each level becomes a toggle button, and the pressed ones are `selectedLevels`. */
|
|
323
|
+
readonly filterable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
324
|
+
/** The levels pressed, ascending. Two-way; every move is asked first through `selectedLevelsChangeRequest`. */
|
|
325
|
+
readonly selectedLevels: _angular_core.ModelSignal<readonly number[]>;
|
|
326
|
+
/** Merged over the application's thresholds, key by key. */
|
|
327
|
+
readonly insightThresholds: _angular_core.InputSignal<Partial<RatingInsightThresholds> | undefined>;
|
|
328
|
+
readonly showInsight: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
329
|
+
readonly size: _angular_core.InputSignal<RatingSize | undefined>;
|
|
330
|
+
readonly tone: _angular_core.InputSignal<RatingTone | undefined>;
|
|
331
|
+
/** Words laid over the catalog of the language in force, key by key. */
|
|
332
|
+
readonly messages: _angular_core.InputSignal<PartialMessages<RatingMessages> | undefined>;
|
|
333
|
+
/** The locale numbers are written in. Unstated, the language in force. */
|
|
334
|
+
readonly locale: _angular_core.InputSignal<string | undefined>;
|
|
335
|
+
/**
|
|
336
|
+
* Emitted before the selection moves, with the levels asked for, the ones
|
|
337
|
+
* they replace, the reason and the event. `cancel()` keeps the selection.
|
|
338
|
+
*/
|
|
339
|
+
readonly selectedLevelsChangeRequest: _angular_core.OutputEmitterRef<ChangeRequest<readonly number[]>>;
|
|
340
|
+
private readonly defaults;
|
|
341
|
+
private readonly appLocale;
|
|
342
|
+
/** The family's words in the language in force, with this summary's `messages` laid over them. */
|
|
343
|
+
readonly t: _slotted_core_i18n.FamilyTranslator<RatingMessages>;
|
|
344
|
+
readonly resolvedMax: _angular_core.Signal<number>;
|
|
345
|
+
readonly resolvedVariant: _angular_core.Signal<RatingSummaryVariant>;
|
|
346
|
+
readonly resolvedSize: _angular_core.Signal<RatingSize>;
|
|
347
|
+
readonly resolvedTone: _angular_core.Signal<RatingTone>;
|
|
348
|
+
protected readonly resolvedLocale: _angular_core.Signal<string>;
|
|
349
|
+
private readonly thresholds;
|
|
350
|
+
/** Everything drawn is read from here: `summariseRatings` over the counts on the scale. */
|
|
351
|
+
readonly summary: _angular_core.Signal<_slotted_core_rating.RatingSummary>;
|
|
352
|
+
protected readonly lowestFirst: _angular_core.Signal<SummaryLevel[]>;
|
|
353
|
+
protected readonly highestFirst: _angular_core.Signal<SummaryLevel[]>;
|
|
354
|
+
protected readonly averageText: _angular_core.Signal<string>;
|
|
355
|
+
protected readonly scaleText: _angular_core.Signal<string>;
|
|
356
|
+
protected readonly countText: _angular_core.Signal<string>;
|
|
357
|
+
protected readonly insight: _angular_core.Signal<{
|
|
358
|
+
tone: "success" | "warning" | "secondary";
|
|
359
|
+
text: string;
|
|
360
|
+
} | null>;
|
|
361
|
+
protected readonly buckets: _angular_core.Signal<SummaryBucket[]>;
|
|
362
|
+
protected readonly meanProperties: _angular_core.Signal<{
|
|
363
|
+
mean: string;
|
|
364
|
+
low: string;
|
|
365
|
+
high: string;
|
|
366
|
+
} | null>;
|
|
367
|
+
protected toggle(level: number, event: MouseEvent): void;
|
|
368
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlRatingSummary, never>;
|
|
369
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlRatingSummary, "section[slRatingSummary]", ["slRatingSummary"], { "counts": { "alias": "counts"; "required": true; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "filterable": { "alias": "filterable"; "required": false; "isSignal": true; }; "selectedLevels": { "alias": "selectedLevels"; "required": false; "isSignal": true; }; "insightThresholds": { "alias": "insightThresholds"; "required": false; "isSignal": true; }; "showInsight": { "alias": "showInsight"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; }, { "selectedLevels": "selectedLevelsChange"; "selectedLevelsChangeRequest": "selectedLevelsChangeRequest"; }, never, never, true, never>;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export { SL_RATING_DEFAULTS, SlRating, SlRatingCaption, SlRatingDisplay, SlRatingIdFactory, SlRatingSummary, SlRatingSymbol, injectRatingDefaults, provideRating };
|
|
373
|
+
export type { RatingCaptionContext, RatingDefaults, RatingDefaultsInput, RatingDisplayVariant, RatingLevelsReason, RatingSize, RatingStep, RatingSummaryVariant, RatingSymbolContext, RatingTone, RatingValueReason };
|
|
374
|
+
//# sourceMappingURL=slotted-angular-rating.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotted-angular-rating.d.ts","sources":["../../rating/src/rating-defaults.ts","../../rating/src/rating.ts","../../rating/src/rating-display.ts","../../rating/src/rating-summary.ts"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* What the region is reporting. Seven values rather than one component per
|
|
6
|
+
* semantic, which is what the guide's section 17 asks of `empty-state` and
|
|
7
|
+
* `error-state`.
|
|
8
|
+
*
|
|
9
|
+
* It is not a tone. Two pairs share one — `empty`, `no-results` and
|
|
10
|
+
* `not-found` are all secondary, `forbidden` and `offline` are both warning —
|
|
11
|
+
* so naming the axis `tone` would have made `forbidden` and `offline` one
|
|
12
|
+
* value.
|
|
13
|
+
*/
|
|
14
|
+
type ResultStateStatus = 'empty' | 'no-results' | 'not-found' | 'error' | 'forbidden' | 'offline' | 'success';
|
|
15
|
+
/**
|
|
16
|
+
* Which scope the message applies to, which is the axis `alert` already
|
|
17
|
+
* speaks: a row inside a cell, a panel inside a card, the whole route. The
|
|
18
|
+
* geometry follows from the scope; a size axis would say the same message can
|
|
19
|
+
* be drawn large or small, which is not the choice a consumer is making.
|
|
20
|
+
*/
|
|
21
|
+
type ResultStateReach = 'inline' | 'section' | 'page';
|
|
22
|
+
/** Whether the region reads centred or from the inline edge. */
|
|
23
|
+
type ResultStateAlign = 'center' | 'start';
|
|
24
|
+
/**
|
|
25
|
+
* The picture the family draws around the page's glyph: a framed tile, three
|
|
26
|
+
* layers leaning back, or a stack of cards, all in the neutral surface and
|
|
27
|
+
* border roles. `none` draws nothing of the family's own, and `inline` reach
|
|
28
|
+
* draws none of them.
|
|
29
|
+
*/
|
|
30
|
+
type ResultStateIllustration = 'none' | 'tile' | 'stack' | 'cards';
|
|
31
|
+
/**
|
|
32
|
+
* Whether the text announces itself, and how loudly. The default is `polite`,
|
|
33
|
+
* where `alert`'s is `off`: WCAG 2.2's Understanding document for SC 4.1.3
|
|
34
|
+
* names this family's own text as its example of a status message, and a
|
|
35
|
+
* result state is by definition the outcome of an operation.
|
|
36
|
+
*/
|
|
37
|
+
type ResultStateLive = 'off' | 'polite' | 'assertive';
|
|
38
|
+
interface ResultStateDefaults {
|
|
39
|
+
align: ResultStateAlign;
|
|
40
|
+
illustration: ResultStateIllustration;
|
|
41
|
+
live: ResultStateLive;
|
|
42
|
+
reach: ResultStateReach;
|
|
43
|
+
status: ResultStateStatus;
|
|
44
|
+
}
|
|
45
|
+
declare const RESULT_STATE_DEFAULTS: InjectionToken<ResultStateDefaults>;
|
|
46
|
+
/**
|
|
47
|
+
* An application decides once how its empty and error regions are drawn, and
|
|
48
|
+
* whether they announce, rather than repeating the inputs on every table in a
|
|
49
|
+
* data-dense screen. A region that states any of them itself still wins: an
|
|
50
|
+
* explicit input is never overridden by the token.
|
|
51
|
+
*/
|
|
52
|
+
declare function provideResultStateDefaults(defaults: Partial<ResultStateDefaults>): {
|
|
53
|
+
provide: InjectionToken<ResultStateDefaults>;
|
|
54
|
+
useFactory: () => ResultStateDefaults;
|
|
55
|
+
};
|
|
56
|
+
/** What a result state renders as here, before it states anything of its own. */
|
|
57
|
+
declare function injectResultStateDefaults(): ResultStateDefaults;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The region that stands in for content that is not there, and says what to do
|
|
61
|
+
* next.
|
|
62
|
+
*
|
|
63
|
+
* The directive is written on the consumer's own element, and the element it
|
|
64
|
+
* belongs on is a `section`: named by its own title through `aria-labelledby`,
|
|
65
|
+
* a `section` is a `region` landmark a reader can jump to, and unnamed it is a
|
|
66
|
+
* plain grouping element that costs nothing. The APG's region landmark practice
|
|
67
|
+
* states that "a region landmark must have a label", which is why the attribute
|
|
68
|
+
* is written only once a title has said it exists.
|
|
69
|
+
*
|
|
70
|
+
* **The box is not the live region.** MDN's `alert` role reference states that
|
|
71
|
+
* the role "should only be used for text content, not interactive elements such
|
|
72
|
+
* as links or buttons", and this family has a row of buttons in it.
|
|
73
|
+
* `slResultStateContent` is what announces, and it holds the title and the
|
|
74
|
+
* description alone; the mark, the actions and the footer are its siblings.
|
|
75
|
+
*
|
|
76
|
+
* **It announces by default.** WCAG 2.2's Understanding document for SC 4.1.3
|
|
77
|
+
* names this family's own text as its example of a status message. `alert`
|
|
78
|
+
* defaults to silence because an alert may be a standing notice; a result is
|
|
79
|
+
* always the outcome of an operation.
|
|
80
|
+
*/
|
|
81
|
+
declare class SlResultState {
|
|
82
|
+
/** Defaults to the provider, then to `empty`. */
|
|
83
|
+
readonly status: i0.InputSignal<ResultStateStatus | undefined>;
|
|
84
|
+
/** Defaults to the provider, then to `section`. */
|
|
85
|
+
readonly reach: i0.InputSignal<ResultStateReach | undefined>;
|
|
86
|
+
/** Defaults to the provider, then to `center`. */
|
|
87
|
+
readonly align: i0.InputSignal<ResultStateAlign | undefined>;
|
|
88
|
+
/** Defaults to the provider, then to `polite`. */
|
|
89
|
+
readonly live: i0.InputSignal<ResultStateLive | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* The drawing made around the projected `slResultStateMedia`. Defaults to
|
|
92
|
+
* the provider, then to `none`. `tile` and `stack` frame a glyph and draw
|
|
93
|
+
* nothing without one; `cards` puts the glyph where a row's thumbnail would
|
|
94
|
+
* be and draws its two lines with or without it.
|
|
95
|
+
*/
|
|
96
|
+
readonly illustration: i0.InputSignal<ResultStateIllustration | undefined>;
|
|
97
|
+
private readonly defaults;
|
|
98
|
+
private readonly host;
|
|
99
|
+
/** An explicit tab index the consumer wrote is never replaced by the family's. */
|
|
100
|
+
protected readonly writtenTabIndex: string | null;
|
|
101
|
+
/** The identifier the title writes, and the box is named by. */
|
|
102
|
+
readonly titleId: string;
|
|
103
|
+
/** The identifier the title actually carries, which is not always ours. */
|
|
104
|
+
private readonly labelId;
|
|
105
|
+
protected readonly resolvedStatus: i0.Signal<ResultStateStatus>;
|
|
106
|
+
protected readonly resolvedReach: i0.Signal<ResultStateReach>;
|
|
107
|
+
protected readonly resolvedAlign: i0.Signal<ResultStateAlign>;
|
|
108
|
+
protected readonly resolvedIllustration: i0.Signal<ResultStateIllustration>;
|
|
109
|
+
readonly resolvedLive: i0.Signal<ResultStateLive>;
|
|
110
|
+
/**
|
|
111
|
+
* A `section` with an `aria-labelledby` pointing at nothing has no accessible
|
|
112
|
+
* name and is not a landmark, so the attribute is written only once a title
|
|
113
|
+
* has said it exists.
|
|
114
|
+
*/
|
|
115
|
+
protected readonly labelledBy: i0.Signal<string | null>;
|
|
116
|
+
/**
|
|
117
|
+
* Called by `slResultStateTitle`, which is the part that names the box. It
|
|
118
|
+
* carries the identifier rather than a boolean, because a page that wrote its
|
|
119
|
+
* own `id` on the title keeps it, and the box has to point at the one that is
|
|
120
|
+
* actually in the DOM.
|
|
121
|
+
*/
|
|
122
|
+
registerTitle(id: string | null): void;
|
|
123
|
+
/**
|
|
124
|
+
* Sends the keyboard to the message. The family never does this by itself:
|
|
125
|
+
* moving focus unprompted is a change of context nobody asked for, and the
|
|
126
|
+
* moment an application wants it — a filter has just emptied a table — is one
|
|
127
|
+
* only the application knows.
|
|
128
|
+
*
|
|
129
|
+
* It is the reach a template has and React does not: JSX re-renders an input,
|
|
130
|
+
* and an Angular template calls a method on the instance `exportAs` gives it.
|
|
131
|
+
*/
|
|
132
|
+
focus(): void;
|
|
133
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlResultState, never>;
|
|
134
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlResultState, "[slResultState]", ["slResultState"], { "status": { "alias": "status"; "required": false; "isSignal": true; }; "reach": { "alias": "reach"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "live": { "alias": "live"; "required": false; "isSignal": true; }; "illustration": { "alias": "illustration"; "required": false; "isSignal": true; }; }, {}, never, ["[slResultStateMedia]", "*"], true, never>;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* The message itself, and the only part that announces.
|
|
139
|
+
*
|
|
140
|
+
* It is written explicitly rather than wrapped around the region's projected
|
|
141
|
+
* content, because a box that guessed which of its children were text would be
|
|
142
|
+
* guessing about the one thing a reader hears. None of the seven surveyed
|
|
143
|
+
* implementations writes a live role of any kind, while WCAG 2.2's
|
|
144
|
+
* Understanding document for SC 4.1.3 names "No results returned" as its own
|
|
145
|
+
* example of a status message.
|
|
146
|
+
*/
|
|
147
|
+
declare class SlResultStateContent {
|
|
148
|
+
private readonly region;
|
|
149
|
+
protected readonly role: i0.Signal<string | null>;
|
|
150
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlResultStateContent, never>;
|
|
151
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SlResultStateContent, "[slResultStateContent]", ["slResultStateContent"], {}, {}, never, never, true, never>;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* The message's name, and the box's.
|
|
155
|
+
*
|
|
156
|
+
* The element is the consumer's: a heading puts the region in the document
|
|
157
|
+
* outline, which is right for a full-page 404 and wrong for the empty state of
|
|
158
|
+
* one card in a grid of twelve, and only the page knows which. Writing
|
|
159
|
+
* `<h2 slResultStateTitle>` is how a page that wants one says so, and Angular
|
|
160
|
+
* needs no `render` prop to allow it.
|
|
161
|
+
*
|
|
162
|
+
* Atlassian's `headingLevel`, one to six, is the field's answer. A numeric
|
|
163
|
+
* input invites a skipped level, which the guide's section 10 forbids.
|
|
164
|
+
*/
|
|
165
|
+
declare class SlResultStateTitle {
|
|
166
|
+
protected readonly region: SlResultState;
|
|
167
|
+
/**
|
|
168
|
+
* The family's identifier, unless the page wrote one of its own — a skip
|
|
169
|
+
* target, an anchor. Reading it before the host binding writes over it is
|
|
170
|
+
* what keeps the consumer's attribute alive, and telling the box which
|
|
171
|
+
* identifier won is what keeps `aria-labelledby` pointing at an element that
|
|
172
|
+
* exists.
|
|
173
|
+
*/
|
|
174
|
+
readonly id: string;
|
|
175
|
+
constructor();
|
|
176
|
+
ngOnDestroy(): void;
|
|
177
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlResultStateTitle, never>;
|
|
178
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlResultStateTitle, "[slResultStateTitle]", ["slResultStateTitle"], {}, {}, never, ["*"], true, never>;
|
|
179
|
+
}
|
|
180
|
+
/** The message. Written on the consumer's own `p`, which is what prose is. */
|
|
181
|
+
declare class SlResultStateDescription {
|
|
182
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlResultStateDescription, never>;
|
|
183
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SlResultStateDescription, "[slResultStateDescription]", ["slResultStateDescription"], {}, {}, never, never, true, never>;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* The controls that get the reader out of the situation, outside the region
|
|
187
|
+
* that announces. What goes in is the consumer's own buttons, because `button`
|
|
188
|
+
* already owns what a button is — including `loading`, which is what a retry in
|
|
189
|
+
* flight is.
|
|
190
|
+
*/
|
|
191
|
+
declare class SlResultStateActions {
|
|
192
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlResultStateActions, never>;
|
|
193
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SlResultStateActions, "[slResultStateActions]", ["slResultStateActions"], {}, {}, never, never, true, never>;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* The line under the actions: the documentation link that is not a call to
|
|
197
|
+
* action. Polaris calls it `footerContent` and Atlassian a `tertiaryAction`,
|
|
198
|
+
* and both are right that it is neither of the buttons above it.
|
|
199
|
+
*/
|
|
200
|
+
declare class SlResultStateFooter {
|
|
201
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlResultStateFooter, never>;
|
|
202
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SlResultStateFooter, "[slResultStateFooter]", ["slResultStateFooter"], {}, {}, never, never, true, never>;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Artwork the page supplies instead of the status's own mark. It is projected
|
|
206
|
+
* into the box the family draws, so it keeps the height the reach gives it —
|
|
207
|
+
* which is what stops an illustration that has not loaded from moving the
|
|
208
|
+
* title and the actions when it arrives.
|
|
209
|
+
*/
|
|
210
|
+
declare class SlResultStateMedia {
|
|
211
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlResultStateMedia, never>;
|
|
212
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SlResultStateMedia, "[slResultStateMedia]", ["slResultStateMedia"], {}, {}, never, never, true, never>;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export { RESULT_STATE_DEFAULTS, SlResultState, SlResultStateActions, SlResultStateContent, SlResultStateDescription, SlResultStateFooter, SlResultStateMedia, SlResultStateTitle, injectResultStateDefaults, provideResultStateDefaults };
|
|
216
|
+
export type { ResultStateAlign, ResultStateDefaults, ResultStateIllustration, ResultStateLive, ResultStateReach, ResultStateStatus };
|
|
217
|
+
//# sourceMappingURL=slotted-angular-result-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotted-angular-result-state.d.ts","sources":["../../result-state/src/result-state-defaults.ts","../../result-state/src/result-state.ts","../../result-state/src/result-state-parts.ts"],"mappings":";;;AAEA;;;;;;;;;AASG;KACS,iBAAiB;AAG7B;;;;;AAKG;AACG,KAAM,gBAAgB;AAE5B;KACY,gBAAgB;AAE5B;;;;;AAKG;AACG,KAAM,uBAAuB;AAEnC;;;;;AAKG;AACG,KAAM,eAAe;UAEV,mBAAmB;WAC3B,gBAAgB;kBACT,uBAAuB;UAC/B,eAAe;WACd,gBAAgB;YACf,iBAAiB;AAC1B;AAUD,cAAa,qBAAqB,EAAA,cAAA,CAAA,mBAAA;AAKlC;;;;;AAKG;AACH,iBAAgB,0BAA0B,WAAW,OAAO,CAAC,mBAAmB;;sBAG5D,mBAAmB;AAQtC;AAED;AACA,iBAAgB,yBAAyB,IAAI,mBAAmB;;ACtDhE;;;;;;;;;;;;;;;;;;;;;AAqBG;AACH,cA2Ba,aAAa;;qBAETA,EAAA,CAAA,WAAA,CAAA,iBAAA;;oBAEDA,EAAA,CAAA,WAAA,CAAA,gBAAA;;oBAEAA,EAAA,CAAA,WAAA,CAAA,gBAAA;;mBAEDA,EAAA,CAAA,WAAA,CAAA,eAAA;AACb;;;;;AAKG;2BACkBA,EAAA,CAAA,WAAA,CAAA,uBAAA;AACrB;AACA;;AAEA;;;;AAQA;AAEA,uCAAiCA,EAAA,CAAA,MAAA,CAAA,iBAAA;AACjC,sCAAgCA,EAAA,CAAA,MAAA,CAAA,gBAAA;AAChC,sCAAgCA,EAAA,CAAA,MAAA,CAAA,gBAAA;AAChC,6CAAuCA,EAAA,CAAA,MAAA,CAAA,uBAAA;2BAGlBA,EAAA,CAAA,MAAA,CAAA,eAAA;AAErB;;;;AAIG;AACH,mCAA6BA,EAAA,CAAA,MAAA;AAE7B;;;;;AAKG;AACH;AAIA;;;;;;;;AAQG;;yCA9DQ,aAAa;2CAAb,aAAa;AAkEzB;;ACxHD;;;;;;;;;AASG;AACH,cASa,oBAAoB;AAC/B;AAEA,6BAAuBA,EAAA,CAAA,MAAA;yCAHZ,oBAAoB;2CAApB,oBAAoB;AAIhC;AAED;;;;;;;;;;;AAWG;AACH,cAYa,kBAAkB;AAC7B,+BAAyB,aAAA;AAEzB;;;;;;AAMG;;;;yCATQ,kBAAkB;2CAAlB,kBAAkB;AAmB9B;AAED;AACA,cAMa,wBAAwB;yCAAxB,wBAAwB;2CAAxB,wBAAwB;AAAG;AAExC;;;;;AAKG;AACH,cAMa,oBAAoB;yCAApB,oBAAoB;2CAApB,oBAAoB;AAAG;AAEpC;;;;AAIG;AACH,cAMa,mBAAmB;yCAAnB,mBAAmB;2CAAnB,mBAAmB;AAAG;AAEnC;;;;;AAKG;AACH,cAKa,kBAAkB;yCAAlB,kBAAkB;2CAAlB,kBAAkB;AAAG;;","names":["_angular_core"]}
|