@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,197 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken, OnInit } from '@angular/core';
|
|
3
|
+
import { ChangeRequest } from '@slotted/core/state';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
|
|
6
|
+
/** The type step the control sits at, matching the group or field around it. */
|
|
7
|
+
type CheckboxSize = 'sm' | 'md' | 'lg';
|
|
8
|
+
/**
|
|
9
|
+
* Whether the choice is a box beside a line of text or a framed surface whose
|
|
10
|
+
* whole area is the target. `tile` is the name Carbon and Cloudscape give the
|
|
11
|
+
* framed choice; Mantine and Chakra call it a card, which is a family here.
|
|
12
|
+
*/
|
|
13
|
+
type CheckboxVariant = 'plain' | 'tile';
|
|
14
|
+
/**
|
|
15
|
+
* Which side of its own label the box is on. It is never inherited from a
|
|
16
|
+
* `field`: that family's `labelPlacement` answers where a field's label sits
|
|
17
|
+
* relative to its control, and a checkbox's label is its own.
|
|
18
|
+
*/
|
|
19
|
+
type CheckboxLabelPlacement = 'end' | 'start';
|
|
20
|
+
interface CheckboxDefaults {
|
|
21
|
+
labelPlacement: CheckboxLabelPlacement;
|
|
22
|
+
variant: CheckboxVariant;
|
|
23
|
+
size: CheckboxSize;
|
|
24
|
+
}
|
|
25
|
+
declare const CHECKBOX_DEFAULTS: InjectionToken<CheckboxDefaults>;
|
|
26
|
+
/**
|
|
27
|
+
* An application decides once what its checkboxes look like, rather than
|
|
28
|
+
* repeating the same inputs on every box in a form. A box that states either of
|
|
29
|
+
* them itself still wins, and so does the group or field around it.
|
|
30
|
+
*/
|
|
31
|
+
declare function provideCheckboxDefaults(defaults: Partial<CheckboxDefaults>): {
|
|
32
|
+
provide: InjectionToken<CheckboxDefaults>;
|
|
33
|
+
useFactory: () => CheckboxDefaults;
|
|
34
|
+
};
|
|
35
|
+
/** What a checkbox renders as here, before it states anything of its own. */
|
|
36
|
+
declare function injectCheckboxDefaults(): CheckboxDefaults;
|
|
37
|
+
/**
|
|
38
|
+
* Application-scoped rather than module-scoped, for the reason `field` records:
|
|
39
|
+
* a module-level counter produces colliding sequences when two applications
|
|
40
|
+
* render in one server process, and the server and the client sequences must
|
|
41
|
+
* match for hydration.
|
|
42
|
+
*/
|
|
43
|
+
declare class SlCheckboxIdFactory {
|
|
44
|
+
private count;
|
|
45
|
+
next(): string;
|
|
46
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlCheckboxIdFactory, never>;
|
|
47
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** Why the box moved. A checkbox can produce exactly these two. */
|
|
51
|
+
type CheckboxCheckedReason = 'pointer' | 'keyboard';
|
|
52
|
+
declare class SlCheckbox implements ControlValueAccessor, OnInit {
|
|
53
|
+
/** Present means the consumer owns the state. */
|
|
54
|
+
readonly checked: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
|
|
55
|
+
/** Whether the box starts ticked, when the control is uncontrolled. */
|
|
56
|
+
readonly defaultChecked: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
57
|
+
/**
|
|
58
|
+
* The mixed state. It is a state and never a third value of `checked`: the
|
|
59
|
+
* submitted value stays boolean, and the platform agrees — `indeterminate` is
|
|
60
|
+
* an IDL property that leaves `checked` alone.
|
|
61
|
+
*/
|
|
62
|
+
readonly indeterminate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
63
|
+
/**
|
|
64
|
+
* Commands the whole set its group was given in `allValues`. Outside such a
|
|
65
|
+
* group it does nothing, because there is no set to command.
|
|
66
|
+
*/
|
|
67
|
+
readonly parent: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
68
|
+
/** What this box selects inside a group, and what it submits in a form. */
|
|
69
|
+
readonly value: _angular_core.InputSignal<string | undefined>;
|
|
70
|
+
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
71
|
+
readonly size: _angular_core.InputSignal<CheckboxSize | undefined>;
|
|
72
|
+
readonly labelPlacement: _angular_core.InputSignal<CheckboxLabelPlacement | undefined>;
|
|
73
|
+
readonly variant: _angular_core.InputSignal<CheckboxVariant | undefined>;
|
|
74
|
+
/** Unstated rather than `false`, so the box defers to its group or field. */
|
|
75
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
|
|
76
|
+
readonly readOnly: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
|
|
77
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* One output for one transition, carrying the new state, the state it
|
|
80
|
+
* replaces, the reason, the originating event and `cancel()`. There is no
|
|
81
|
+
* `[(checked)]`, because a two-way binding has one slot and can carry none of
|
|
82
|
+
* those; a form gets the same movement through `ControlValueAccessor`.
|
|
83
|
+
*/
|
|
84
|
+
readonly checkedChange: _angular_core.OutputEmitterRef<ChangeRequest<boolean>>;
|
|
85
|
+
private readonly group;
|
|
86
|
+
private readonly field;
|
|
87
|
+
private readonly fieldGroup;
|
|
88
|
+
private readonly defaults;
|
|
89
|
+
private readonly writtenId;
|
|
90
|
+
private readonly writtenDescribedBy;
|
|
91
|
+
private readonly writtenRequired;
|
|
92
|
+
private readonly element;
|
|
93
|
+
private readonly label;
|
|
94
|
+
/**
|
|
95
|
+
* Whether the label shows nothing: its only content is hidden text, the name
|
|
96
|
+
* a table row or a data list gives a bare box. Read from the projected DOM,
|
|
97
|
+
* and read again when it changes.
|
|
98
|
+
*/
|
|
99
|
+
protected readonly labelHidden: _angular_core.WritableSignal<boolean>;
|
|
100
|
+
private readonly description;
|
|
101
|
+
private readonly own;
|
|
102
|
+
private readonly formDisabled;
|
|
103
|
+
/** Whether a form directive owns the value through `ControlValueAccessor`. */
|
|
104
|
+
private readonly formBound;
|
|
105
|
+
private onChangeFn;
|
|
106
|
+
private onTouchedFn;
|
|
107
|
+
/** The identifier the label points at. A consumer's own wins. */
|
|
108
|
+
readonly controlId: string;
|
|
109
|
+
/**
|
|
110
|
+
* Three ways a box can know whether it is ticked, decided by what is around
|
|
111
|
+
* it rather than by a mode input: a parent reads the whole set, a member
|
|
112
|
+
* reads whether the selection holds its own value, and a box on its own reads
|
|
113
|
+
* the consumer's `checked` or the state it keeps.
|
|
114
|
+
*/
|
|
115
|
+
private readonly isParent;
|
|
116
|
+
private readonly memberValue;
|
|
117
|
+
readonly resolvedChecked: _angular_core.Signal<boolean>;
|
|
118
|
+
readonly resolvedIndeterminate: _angular_core.Signal<boolean>;
|
|
119
|
+
readonly resolvedSize: _angular_core.Signal<"sm" | "md" | "lg">;
|
|
120
|
+
readonly resolvedLabelPlacement: _angular_core.Signal<CheckboxLabelPlacement>;
|
|
121
|
+
/**
|
|
122
|
+
* One step shorter than `size`: a box states it, else the group around it,
|
|
123
|
+
* else the provider. It never comes from the field — a field decides how its
|
|
124
|
+
* own row is laid out, and a framed choice is a decision about the choice.
|
|
125
|
+
*/
|
|
126
|
+
readonly resolvedVariant: _angular_core.Signal<CheckboxVariant>;
|
|
127
|
+
readonly resolvedDisabled: _angular_core.Signal<boolean | undefined>;
|
|
128
|
+
readonly resolvedReadOnly: _angular_core.Signal<boolean | undefined>;
|
|
129
|
+
readonly resolvedInvalid: _angular_core.Signal<boolean | undefined>;
|
|
130
|
+
readonly resolvedRequired: _angular_core.Signal<boolean | undefined>;
|
|
131
|
+
/**
|
|
132
|
+
* Whether the box keeps its own state and starts it from `defaultChecked`:
|
|
133
|
+
* nobody passed `checked`, no group holds it, and no form directive bound it.
|
|
134
|
+
*/
|
|
135
|
+
private readonly ownsDefault;
|
|
136
|
+
/**
|
|
137
|
+
* The content attribute `checked`, which is what a native form reset puts
|
|
138
|
+
* the element back to. A box that owns its state writes `defaultChecked`
|
|
139
|
+
* there, the attribute React writes for the same prop. A box whose state
|
|
140
|
+
* belongs to a consumer, a group or a form directive writes its current
|
|
141
|
+
* state, so a native reset leaves the element showing what its owner holds.
|
|
142
|
+
*/
|
|
143
|
+
protected readonly defaultAttribute: _angular_core.Signal<"" | null>;
|
|
144
|
+
protected readonly resolvedName: _angular_core.Signal<string | null>;
|
|
145
|
+
protected readonly describedBy: _angular_core.Signal<string | null>;
|
|
146
|
+
protected readonly ariaInvalid: _angular_core.Signal<"true" | null>;
|
|
147
|
+
protected readonly ariaReadOnly: _angular_core.Signal<"true" | null>;
|
|
148
|
+
protected readonly ariaRequired: _angular_core.Signal<"true" | null>;
|
|
149
|
+
protected readonly disabledAttribute: _angular_core.Signal<"" | null>;
|
|
150
|
+
/** The element's own attribute, passed through and never written by the family. */
|
|
151
|
+
protected readonly requiredAttribute: _angular_core.Signal<string | null>;
|
|
152
|
+
constructor();
|
|
153
|
+
ngOnInit(): void;
|
|
154
|
+
/** The native element, for `focus()` and `click()`. */
|
|
155
|
+
get inputElement(): HTMLInputElement;
|
|
156
|
+
writeValue(value: boolean | null | undefined): void;
|
|
157
|
+
registerOnChange(fn: (checked: boolean) => void): void;
|
|
158
|
+
registerOnTouched(fn: () => void): void;
|
|
159
|
+
setDisabledState(isDisabled: boolean): void;
|
|
160
|
+
/**
|
|
161
|
+
* One handler for the pointer and for `Space`, because the platform fires one
|
|
162
|
+
* `click` for both — and refusing the default is the only way to refuse a
|
|
163
|
+
* change a checkbox has no `readonly` to refuse.
|
|
164
|
+
*
|
|
165
|
+
* Nothing here writes the element. The HTML standard's canceled activation
|
|
166
|
+
* behaviour for a checkbox is `checked = !checked` rather than a restore of a
|
|
167
|
+
* saved value, so a family that corrected the element inside the listener
|
|
168
|
+
* would have that correction toggled back out from under it. Refusing the
|
|
169
|
+
* default and letting the platform undo its own pre-click toggle is both
|
|
170
|
+
* shorter and the only version that is right: it was measured, in the first
|
|
171
|
+
* run of this family's Angular spec, as a controlled box that stayed ticked
|
|
172
|
+
* after its consumer had said no.
|
|
173
|
+
*/
|
|
174
|
+
protected onClick(event: MouseEvent): void;
|
|
175
|
+
protected onBlur(): void;
|
|
176
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlCheckbox, never>;
|
|
177
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlCheckbox, "[slCheckbox]", ["slCheckbox"], { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "defaultChecked": { "alias": "defaultChecked"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "parent": { "alias": "parent"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "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; }; }, { "checkedChange": "checkedChange"; }, ["description"], ["*", "[slCheckboxDescription]"], true, never>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Help text under a box's label.
|
|
182
|
+
*
|
|
183
|
+
* It is a directive on the consumer's own element, so a `p`, a `span` or an
|
|
184
|
+
* `inline-message` all work and none of them loses its own semantics. It
|
|
185
|
+
* carries an identifier the box points `aria-describedby` at, which is what
|
|
186
|
+
* makes the sentence a description rather than part of the name — and it is
|
|
187
|
+
* projected outside the `label` for the same reason.
|
|
188
|
+
*/
|
|
189
|
+
declare class SlCheckboxDescription {
|
|
190
|
+
readonly id: string;
|
|
191
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlCheckboxDescription, never>;
|
|
192
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlCheckboxDescription, "[slCheckboxDescription]", ["slCheckboxDescription"], {}, {}, never, never, true, never>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export { CHECKBOX_DEFAULTS, SlCheckbox, SlCheckboxDescription, SlCheckboxIdFactory, injectCheckboxDefaults, provideCheckboxDefaults };
|
|
196
|
+
export type { CheckboxCheckedReason, CheckboxDefaults, CheckboxLabelPlacement, CheckboxSize };
|
|
197
|
+
//# sourceMappingURL=slotted-angular-checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotted-angular-checkbox.d.ts","sources":["../../checkbox/src/checkbox-defaults.ts","../../checkbox/src/checkbox.ts","../../checkbox/src/checkbox-parts.ts"],"mappings":";;;;;AAEA;AACM,KAAM,YAAY;AAExB;;;;AAIG;KACS,eAAe;AAE3B;;;;AAIG;KACS,sBAAsB;UAEjB,gBAAgB;oBACf,sBAAsB;aAC7B,eAAe;UAClB,YAAY;AACnB;AAID,cAAa,iBAAiB,EAAA,cAAA,CAAA,gBAAA;AAK9B;;;;AAIG;AACH,iBAAgB,uBAAuB,WAAW,OAAO,CAAC,gBAAgB;;sBAGtD,gBAAgB;AAEnC;AAED;AACA,iBAAgB,sBAAsB,IAAI,gBAAgB;AAI1D;;;;;AAKG;AACH,cACa,mBAAmB;;;oDAAnB,mBAAmB;;AAO/B;;ACvBD;KACY,qBAAqB;AA2CjC,cAgDa,UAAW,YAAW,oBAAoB,EAAE,MAAM;;sBAE7C,aAAA,CAAA,wBAAA;;6BAIO,aAAA,CAAA,wBAAA;AACvB;;;;AAIG;4BACmB,aAAA,CAAA,wBAAA;AACtB;;;AAGG;qBACY,aAAA,CAAA,wBAAA;;oBAED,aAAA,CAAA,WAAA;mBACD,aAAA,CAAA,WAAA;mBACA,aAAA,CAAA,WAAA,CAAA,YAAA;6BACU,aAAA,CAAA,WAAA,CAAA,sBAAA;sBACP,aAAA,CAAA,WAAA,CAAA,eAAA;;uBAEC,aAAA,CAAA,wBAAA;uBAGA,aAAA,CAAA,wBAAA;sBAGD,aAAA,CAAA,wBAAA;AAIhB;;;;;AAKG;4BACmB,aAAA,CAAA,gBAAA,CAAA,aAAA;AAEtB;AACA;AACA;AACA;AACA;AACA;AAGA;AAIA;AACA;AACA;;;;AAIG;AACH,oCAA8B,aAAA,CAAA,cAAA;AAC9B;AAEA;AACA;;AAEA;;;;;AAOA;;;;;AAKG;AACH;AACA;8BAIwB,aAAA,CAAA,MAAA;oCAWM,aAAA,CAAA,MAAA;2BAOT,aAAA,CAAA,MAAA;qCAQU,aAAA,CAAA,MAAA,CAAA,sBAAA;AAI/B;;;;AAIG;8BACqB,aAAA,CAAA,MAAA,CAAA,eAAA;+BAGC,aAAA,CAAA,MAAA;+BAOA,aAAA,CAAA,MAAA;8BAGD,aAAA,CAAA,MAAA;+BAGC,aAAA,CAAA,MAAA;AAIzB;;;AAGG;AACH;AAGA;;;;;;AAMG;AACH,yCAAmC,aAAA,CAAA,MAAA;AAInC,qCAA+B,aAAA,CAAA,MAAA;AAC/B,oCAA8B,aAAA,CAAA,MAAA;AAQ9B,oCAA8B,aAAA,CAAA,MAAA;AAG9B,qCAA+B,aAAA,CAAA,MAAA;AAG/B,qCAA+B,aAAA,CAAA,MAAA;AAG/B,0CAAoC,aAAA,CAAA,MAAA;;AAIpC,0CAAoC,aAAA,CAAA,MAAA;;;;wBA0ChB,gBAAgB;AAIpC;;AASA;;AAQA;;;;;;;;;;;;;AAaG;AACH,6BAAyB,UAAU;AA+CnC;oDAjTW,UAAU;sDAAV,UAAU;AAqTtB;;ACrbD;;;;;;;;AAQG;AACH,cASa,qBAAqB;;oDAArB,qBAAqB;sDAArB,qBAAqB;AAEjC;;","names":[]}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import * as _slotted_core_code from '@slotted/core/code';
|
|
2
|
+
import { CodeHighlighter, CodeLine, LineMark, CodeMarks } from '@slotted/core/code';
|
|
3
|
+
import * as _slotted_core_i18n from '@slotted/core/i18n';
|
|
4
|
+
import { PartialMessages, CodeBlockMessages } from '@slotted/core/i18n';
|
|
5
|
+
import * as _angular_core from '@angular/core';
|
|
6
|
+
import { InjectionToken, TemplateRef } from '@angular/core';
|
|
7
|
+
import { ChangeRequest } from '@slotted/core/state';
|
|
8
|
+
import { ScrollEdgesState } from '@slotted/angular/scroll-area';
|
|
9
|
+
|
|
10
|
+
type CodeBlockWrapReason = 'pointer' | 'keyboard' | 'programmatic';
|
|
11
|
+
type CodeBlockRevealedReason = 'pointer' | 'keyboard' | 'escape' | 'programmatic';
|
|
12
|
+
|
|
13
|
+
interface CodeBlockCopyRequest {
|
|
14
|
+
readonly value: string;
|
|
15
|
+
readonly reason: 'pointer' | 'keyboard';
|
|
16
|
+
readonly copied: boolean;
|
|
17
|
+
readonly source?: Event | undefined;
|
|
18
|
+
}
|
|
19
|
+
interface CodeBlockDefaults {
|
|
20
|
+
highlight?: CodeHighlighter;
|
|
21
|
+
lineNumbers?: boolean;
|
|
22
|
+
copy?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const CODE_BLOCK_DEFAULTS_TOKEN: InjectionToken<CodeBlockDefaults>;
|
|
25
|
+
/**
|
|
26
|
+
* An application that has loaded an engine once hands it to every block here,
|
|
27
|
+
* along with whether blocks number their lines and carry a copy control. A
|
|
28
|
+
* block that states any of those itself still wins. Its words come from the
|
|
29
|
+
* language in force (`provideSlotted`).
|
|
30
|
+
*/
|
|
31
|
+
declare function provideCodeBlockDefaults(defaults: CodeBlockDefaults): {
|
|
32
|
+
provide: InjectionToken<CodeBlockDefaults>;
|
|
33
|
+
useValue: CodeBlockDefaults;
|
|
34
|
+
};
|
|
35
|
+
declare function injectCodeBlockDefaults(): CodeBlockDefaults;
|
|
36
|
+
|
|
37
|
+
/** A control of the consumer's own, projected beside copy and wrap. */
|
|
38
|
+
declare class SlCodeBlockAction {
|
|
39
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlCodeBlockAction, never>;
|
|
40
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlCodeBlockAction, "[slCodeBlockAction]", never, {}, {}, never, never, true, never>;
|
|
41
|
+
}
|
|
42
|
+
/** What a `slCodeBlockLine` template is handed for one line. */
|
|
43
|
+
interface CodeBlockLineContext {
|
|
44
|
+
$implicit: CodeLine;
|
|
45
|
+
number: number;
|
|
46
|
+
mark: LineMark['mark'];
|
|
47
|
+
dim: boolean;
|
|
48
|
+
}
|
|
49
|
+
/** Replaces the run of tokens a line draws. The gutter stays the family's. */
|
|
50
|
+
declare class SlCodeBlockLine {
|
|
51
|
+
readonly template: TemplateRef<CodeBlockLineContext>;
|
|
52
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlCodeBlockLine, never>;
|
|
53
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlCodeBlockLine, "ng-template[slCodeBlockLine]", never, {}, {}, never, never, true, never>;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* A block of source: a header that names the file and holds the two controls,
|
|
57
|
+
* a body that is a `scroll-area`, and inside it a `pre` whose every line is a
|
|
58
|
+
* grid row. Tokens come in from an engine outside the family and are drawn as
|
|
59
|
+
* text in spans; HTML never does.
|
|
60
|
+
*/
|
|
61
|
+
declare class SlCodeBlock {
|
|
62
|
+
/** The source, as text. Never HTML. */
|
|
63
|
+
readonly code: _angular_core.InputSignal<string>;
|
|
64
|
+
readonly language: _angular_core.InputSignal<string>;
|
|
65
|
+
/** The engine, outside the family. `null` refuses the one the provider set. */
|
|
66
|
+
readonly highlight: _angular_core.InputSignal<CodeHighlighter | null | undefined>;
|
|
67
|
+
/** Already-tokenised lines, when the consumer ran the engine itself. */
|
|
68
|
+
readonly tokens: _angular_core.InputSignal<readonly CodeLine[] | undefined>;
|
|
69
|
+
readonly title: _angular_core.InputSignal<string | undefined>;
|
|
70
|
+
/** The file's name, for the glyph beside the title. Defaults to `title`. */
|
|
71
|
+
readonly fileName: _angular_core.InputSignal<string | undefined>;
|
|
72
|
+
readonly lineNumbers: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
|
|
73
|
+
readonly start: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
74
|
+
readonly marks: _angular_core.InputSignal<CodeMarks | undefined>;
|
|
75
|
+
/** Present is controlled, for the life of the block. */
|
|
76
|
+
readonly wrap: _angular_core.ModelSignal<boolean | undefined>;
|
|
77
|
+
/** Where an uncontrolled block starts, read once. */
|
|
78
|
+
readonly defaultWrap: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
79
|
+
readonly collapseAfter: _angular_core.InputSignalWithTransform<number | undefined, string | number | undefined>;
|
|
80
|
+
readonly revealed: _angular_core.ModelSignal<boolean | undefined>;
|
|
81
|
+
readonly defaultRevealed: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
82
|
+
readonly isWrapped: _angular_core.Signal<boolean>;
|
|
83
|
+
readonly isRevealed: _angular_core.Signal<boolean>;
|
|
84
|
+
readonly maxLines: _angular_core.InputSignalWithTransform<number | undefined, string | number | undefined>;
|
|
85
|
+
readonly copy: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
|
|
86
|
+
readonly copyRemoved: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
87
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
88
|
+
/**
|
|
89
|
+
* Words laid over the catalog of the language in force, key by key: the
|
|
90
|
+
* scroll region's name when the block has no title (`region`), the controls,
|
|
91
|
+
* and the announcements.
|
|
92
|
+
*/
|
|
93
|
+
readonly messages: _angular_core.InputSignal<PartialMessages<CodeBlockMessages> | undefined>;
|
|
94
|
+
readonly tabSize: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
95
|
+
/** The request behind a wrap change, with the reason it carries. */
|
|
96
|
+
readonly wrapChangeRequest: _angular_core.OutputEmitterRef<ChangeRequest<boolean>>;
|
|
97
|
+
readonly revealedChangeRequest: _angular_core.OutputEmitterRef<ChangeRequest<boolean>>;
|
|
98
|
+
/** What the copy control wrote, and whether the platform took it. */
|
|
99
|
+
readonly copyRequest: _angular_core.OutputEmitterRef<CodeBlockCopyRequest>;
|
|
100
|
+
readonly highlightError: _angular_core.OutputEmitterRef<unknown>;
|
|
101
|
+
private readonly defaults;
|
|
102
|
+
private readonly host;
|
|
103
|
+
private readonly destroyRef;
|
|
104
|
+
private readonly ariaLabel;
|
|
105
|
+
private readonly body;
|
|
106
|
+
protected readonly lineTemplate: _angular_core.Signal<SlCodeBlockLine | undefined>;
|
|
107
|
+
private readonly action;
|
|
108
|
+
readonly id: string;
|
|
109
|
+
protected readonly skeletonWidths: number[];
|
|
110
|
+
/** The family's words in the language in force, with this block's `messages` laid over them. */
|
|
111
|
+
readonly t: _slotted_core_i18n.FamilyTranslator<CodeBlockMessages>;
|
|
112
|
+
protected readonly lineNumbersValue: _angular_core.Signal<boolean>;
|
|
113
|
+
protected readonly copyControl: _angular_core.Signal<boolean>;
|
|
114
|
+
private readonly engine;
|
|
115
|
+
private readonly resolved;
|
|
116
|
+
protected readonly copied: _angular_core.WritableSignal<boolean>;
|
|
117
|
+
protected readonly overflow: _angular_core.WritableSignal<boolean>;
|
|
118
|
+
private timer;
|
|
119
|
+
private keyed;
|
|
120
|
+
private readonly lines;
|
|
121
|
+
private readonly marksByLine;
|
|
122
|
+
protected readonly hasMarks: _angular_core.Signal<boolean>;
|
|
123
|
+
protected readonly rows: _angular_core.Signal<{
|
|
124
|
+
dim: boolean;
|
|
125
|
+
indent: number;
|
|
126
|
+
mark: _slotted_core_code.CodeMark | undefined;
|
|
127
|
+
number: number;
|
|
128
|
+
tokens: CodeLine;
|
|
129
|
+
}[]>;
|
|
130
|
+
protected readonly digits: _angular_core.Signal<number>;
|
|
131
|
+
protected readonly collapses: _angular_core.Signal<boolean>;
|
|
132
|
+
protected readonly hiddenCount: _angular_core.Signal<number>;
|
|
133
|
+
protected readonly hasHeader: _angular_core.Signal<boolean>;
|
|
134
|
+
protected readonly icon: _angular_core.Signal<"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" | "presentation" | "text-wrap" | "bell" | "trending-up" | "image-off" | "funnel" | "grip-vertical" | "grip-horizontal" | "star" | "check-check" | undefined>;
|
|
135
|
+
protected readonly regionName: _angular_core.Signal<string>;
|
|
136
|
+
constructor();
|
|
137
|
+
protected onOverflow(state: ScrollEdgesState): void;
|
|
138
|
+
/** `Enter` and `Space` both end in a click; whether a key came first decides the reason. */
|
|
139
|
+
protected remember(event: KeyboardEvent): void;
|
|
140
|
+
private takeReason;
|
|
141
|
+
protected toggleWrap(event?: Event): void;
|
|
142
|
+
requestWrap(next: boolean, reason: CodeBlockWrapReason, source?: Event): void;
|
|
143
|
+
protected toggleRevealed(event?: Event): void;
|
|
144
|
+
requestRevealed(next: boolean, reason: CodeBlockRevealedReason, source?: Event): void;
|
|
145
|
+
protected onKeyDown(event: KeyboardEvent): void;
|
|
146
|
+
protected copyFromControl(event: Event): void;
|
|
147
|
+
/** Writes the code to the clipboard, as the control does. */
|
|
148
|
+
copyCode(): Promise<boolean>;
|
|
149
|
+
private write;
|
|
150
|
+
/** Brings a one-based line into view. */
|
|
151
|
+
scrollToLine(line: number): void;
|
|
152
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlCodeBlock, never>;
|
|
153
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlCodeBlock, "[slCodeBlock]", ["slCodeBlock"], { "code": { "alias": "code"; "required": true; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "highlight": { "alias": "highlight"; "required": false; "isSignal": true; }; "tokens": { "alias": "tokens"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "fileName": { "alias": "fileName"; "required": false; "isSignal": true; }; "lineNumbers": { "alias": "lineNumbers"; "required": false; "isSignal": true; }; "start": { "alias": "start"; "required": false; "isSignal": true; }; "marks": { "alias": "marks"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "defaultWrap": { "alias": "defaultWrap"; "required": false; "isSignal": true; }; "collapseAfter": { "alias": "collapseAfter"; "required": false; "isSignal": true; }; "revealed": { "alias": "revealed"; "required": false; "isSignal": true; }; "defaultRevealed": { "alias": "defaultRevealed"; "required": false; "isSignal": true; }; "maxLines": { "alias": "maxLines"; "required": false; "isSignal": true; }; "copy": { "alias": "copy"; "required": false; "isSignal": true; }; "copyRemoved": { "alias": "copyRemoved"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "tabSize": { "alias": "tabSize"; "required": false; "isSignal": true; }; }, { "wrap": "wrapChange"; "revealed": "revealedChange"; "wrapChangeRequest": "wrapChangeRequest"; "revealedChangeRequest": "revealedChangeRequest"; "copyRequest": "copyRequest"; "highlightError": "highlightError"; }, ["lineTemplate", "action"], ["[slCodeBlockAction]"], true, never>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export { CODE_BLOCK_DEFAULTS_TOKEN, SlCodeBlock, SlCodeBlockAction, SlCodeBlockLine, injectCodeBlockDefaults, provideCodeBlockDefaults };
|
|
157
|
+
export type { CodeBlockCopyRequest, CodeBlockDefaults, CodeBlockLineContext, CodeBlockRevealedReason, CodeBlockWrapReason };
|
|
158
|
+
//# sourceMappingURL=slotted-angular-code-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotted-angular-code-block.d.ts","sources":["../../code-block/src/code-block.constants.ts","../../code-block/src/code-block.ts"],"mappings":";;;;;;;;;AAGM,KAAM,mBAAmB;AACzB,KAAM,uBAAuB;;UAGlB,oBAAoB;AACnC;AACA;AACA;AACA,sBAAkB,KAAK;AACxB;UAEgB,iBAAiB;gBACpB,eAAe;;;AAG5B;AAED,cAAa,yBAAyB,EAAA,cAAA,CAAA,iBAAA;AAKtC;;;;;AAKG;AACH,iBAAgB,wBAAwB,WAAW,iBAAiB;;;AAEnE;AAED,iBAAgB,uBAAuB,IAAI,iBAAiB;;ACqC5D;AACA,cACa,iBAAiB;oDAAjB,iBAAiB;sDAAjB,iBAAiB;AAAG;AAEjC;UACiB,oBAAoB;eACxB,QAAQ;;AAEnB,UAAM,QAAQ;;AAEf;AAED;AACA,cACa,eAAe;uBACT,WAAA,CAAA,oBAAA;oDADN,eAAe;sDAAf,eAAe;AAE3B;AAED;;;;;AAKG;AACH,cAyGa,WAAW;;mBAET,aAAA,CAAA,WAAA;uBACI,aAAA,CAAA,WAAA;;wBAEC,aAAA,CAAA,WAAA,CAAA,eAAA;;qBAEH,aAAA,CAAA,WAAA,UAAA,QAAA;oBACD,aAAA,CAAA,WAAA;;uBAEG,aAAA,CAAA,WAAA;0BACG,aAAA,CAAA,wBAAA;oBAGN,aAAA,CAAA,wBAAA;oBACA,aAAA,CAAA,WAAA,CAAA,SAAA;;mBAED,aAAA,CAAA,WAAA;;0BAEO,aAAA,CAAA,wBAAA;4BACE,aAAA,CAAA,wBAAA;uBAGL,aAAA,CAAA,WAAA;8BACO,aAAA,CAAA,wBAAA;wBACN,aAAA,CAAA,MAAA;yBACC,aAAA,CAAA,MAAA;uBACF,aAAA,CAAA,wBAAA;mBAGJ,aAAA,CAAA,wBAAA;0BAGO,aAAA,CAAA,wBAAA;sBACJ,aAAA,CAAA,wBAAA;AAChB;;;;AAIG;uBACc,aAAA,CAAA,WAAA,CAAA,eAAA,CAAA,iBAAA;sBACD,aAAA,CAAA,wBAAA;;gCAGU,aAAA,CAAA,gBAAA,CAAA,aAAA;oCACI,aAAA,CAAA,gBAAA,CAAA,aAAA;;0BAEV,aAAA,CAAA,gBAAA,CAAA,oBAAA;6BACG,aAAA,CAAA,gBAAA;AAEvB;AACA;AACA;AACA;AACA;AACA,qCAA+B,aAAA,CAAA,MAAA,CAAA,eAAA;AAC/B;;AAGA;;gBAGU,kBAAA,CAAA,gBAAA,CAAA,iBAAA;AACV,yCAAmC,aAAA,CAAA,MAAA;AAGnC,oCAA8B,aAAA,CAAA,MAAA;AAC9B;AAKA;AACA,+BAAyB,aAAA,CAAA,cAAA;AACzB,iCAA2B,aAAA,CAAA,cAAA;;;AAI3B;AAOA;AACA,iCAA2B,aAAA,CAAA,MAAA;6BAIJ,aAAA,CAAA,MAAA;;;;;;AAYpB;AAEH,+BAAyB,aAAA,CAAA,MAAA;AACzB,kCAA4B,aAAA,CAAA,MAAA;AAI5B,oCAA8B,aAAA,CAAA,MAAA;AAG9B,kCAA4B,aAAA,CAAA,MAAA;AAO5B,6BAAuB,aAAA,CAAA,MAAA;AAKvB,mCAA6B,aAAA,CAAA,MAAA;;AA2B7B,gCAA4B,gBAAgB;;AAK5C,8BAA0B,aAAa;AAIvC;AAMA,iCAA6B,KAAK;AAIlC,uCAAmC,mBAAmB,WAAW,KAAK;AAQtE,qCAAiC,KAAK;AAItC,2CAAuC,uBAAuB,WAAW,KAAK;AAQ9E,+BAA2B,aAAa;AAQxC,qCAAiC,KAAK;;AAKtC,gBAAY,OAAO;;;;oDA3MR,WAAW;sDAAX,WAAW;AAmOvB;;","names":[]}
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken, OnInit, TemplateRef } from '@angular/core';
|
|
3
|
+
import { ChangeRequest } from '@slotted/core/state';
|
|
4
|
+
import * as _slotted_angular_collapsible from '@slotted/angular/collapsible';
|
|
5
|
+
|
|
6
|
+
/** The type step the header and its panel sit at. */
|
|
7
|
+
type CollapsibleSize = 'sm' | 'md' | 'lg';
|
|
8
|
+
/**
|
|
9
|
+
* How the disclosure is drawn. `plain` paints no chrome at all, `ruled` draws a
|
|
10
|
+
* hairline above the header so a stack of them reads as one list, and `framed`
|
|
11
|
+
* is its own card.
|
|
12
|
+
*/
|
|
13
|
+
type CollapsibleVariant = 'plain' | 'ruled' | 'framed';
|
|
14
|
+
/**
|
|
15
|
+
* The mark that says whether the panel is open. `chevron` turns between down
|
|
16
|
+
* and up, `plus-minus` swaps the one bar for the pair, and `none` draws nothing
|
|
17
|
+
* — which is Angular Material's `hideToggle` and Carbon's chevron-less header.
|
|
18
|
+
*/
|
|
19
|
+
type CollapsibleIndicator = 'chevron' | 'plus-minus' | 'none';
|
|
20
|
+
/** Which side of the words the mark stands on. */
|
|
21
|
+
type CollapsibleTogglePlacement = 'end' | 'start';
|
|
22
|
+
/**
|
|
23
|
+
* The heading level the header answers to. `none` writes no heading semantics
|
|
24
|
+
* at all, which is the standalone disclosure that belongs to no outline.
|
|
25
|
+
*
|
|
26
|
+
* The element is the consumer's own: `<h3 slCollapsibleHeader>` is a native
|
|
27
|
+
* heading and the directive adds nothing, while `<div slCollapsibleHeader>`
|
|
28
|
+
* gets `role="heading"` and `aria-level` — the alternative the pattern itself
|
|
29
|
+
* names. React reads the element off this value instead, and the two reach the
|
|
30
|
+
* same accessibility tree.
|
|
31
|
+
*/
|
|
32
|
+
type CollapsibleLevel = 'none' | '1' | '2' | '3' | '4' | '5' | '6';
|
|
33
|
+
/**
|
|
34
|
+
* When the panel's content exists. The box always does, so the trigger's
|
|
35
|
+
* `aria-controls` never names an element that is gone.
|
|
36
|
+
*/
|
|
37
|
+
type CollapsibleMount = 'active' | 'lazy' | 'eager' | 'until-found';
|
|
38
|
+
/** Why the panel opened or closed. */
|
|
39
|
+
type CollapsibleOpenReason = 'pointer' | 'keyboard' | 'select' | 'programmatic';
|
|
40
|
+
interface CollapsibleDefaults {
|
|
41
|
+
indicator: CollapsibleIndicator;
|
|
42
|
+
level: CollapsibleLevel;
|
|
43
|
+
mount: CollapsibleMount;
|
|
44
|
+
size: CollapsibleSize;
|
|
45
|
+
togglePlacement: CollapsibleTogglePlacement;
|
|
46
|
+
truncate: boolean;
|
|
47
|
+
variant: CollapsibleVariant;
|
|
48
|
+
}
|
|
49
|
+
declare const COLLAPSIBLE_DEFAULTS: InjectionToken<CollapsibleDefaults>;
|
|
50
|
+
/**
|
|
51
|
+
* An application decides once how its disclosures look, rather than repeating
|
|
52
|
+
* the same seven inputs on every one in a product. A disclosure that states any
|
|
53
|
+
* of them itself still wins, and so does the accordion between the two.
|
|
54
|
+
*/
|
|
55
|
+
declare function provideCollapsibleDefaults(defaults: Partial<CollapsibleDefaults>): {
|
|
56
|
+
provide: InjectionToken<CollapsibleDefaults>;
|
|
57
|
+
useFactory: () => CollapsibleDefaults;
|
|
58
|
+
};
|
|
59
|
+
/** What a disclosure renders as here, before it states anything of its own. */
|
|
60
|
+
declare function injectCollapsibleDefaults(): CollapsibleDefaults;
|
|
61
|
+
/**
|
|
62
|
+
* Application-scoped rather than module-scoped, for the reason `field` records:
|
|
63
|
+
* a module-level counter produces colliding sequences when two applications
|
|
64
|
+
* render in one server process, and the server and the client sequences must
|
|
65
|
+
* match for hydration.
|
|
66
|
+
*/
|
|
67
|
+
declare class SlCollapsibleIdFactory {
|
|
68
|
+
private count;
|
|
69
|
+
next(): string;
|
|
70
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlCollapsibleIdFactory, never>;
|
|
71
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** The trigger of one disclosure, in the order the DOM holds them. */
|
|
75
|
+
declare const COLLAPSIBLE_TRIGGER_SELECTOR = "[data-part=\"trigger\"]";
|
|
76
|
+
/**
|
|
77
|
+
* One disclosure: a header the reader operates and a panel it controls.
|
|
78
|
+
*
|
|
79
|
+
* **The keyboard is the platform's.** The trigger is a `button`, so `Enter` and
|
|
80
|
+
* `Space` toggle without the family binding a key, and every trigger stays in
|
|
81
|
+
* the page tab sequence — which is what the APG's accordion pattern requires
|
|
82
|
+
* and what `w3c/aria-practices#3434` removed the roving alternative for.
|
|
83
|
+
*
|
|
84
|
+
* **The panel opens without being measured.** The stylesheet transitions a grid
|
|
85
|
+
* track between `0fr` and `1fr`, so the height is the content's own at every
|
|
86
|
+
* frame. Radix, Base UI, Ark and Angular Material each read the layout and
|
|
87
|
+
* write a custom property, which is wrong for one frame on the server and stale
|
|
88
|
+
* until a resize observer fires.
|
|
89
|
+
*
|
|
90
|
+
* **Inside an `slAccordion` the value belongs to the set.** The disclosure then
|
|
91
|
+
* reports its own request as well, so a consumer may watch one panel without
|
|
92
|
+
* unpacking the set's array.
|
|
93
|
+
*/
|
|
94
|
+
declare class SlCollapsible implements OnInit {
|
|
95
|
+
/** Whether the panel is open. Two-way, so a template may bind it directly. */
|
|
96
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
97
|
+
/**
|
|
98
|
+
* What this disclosure is called inside an accordion. It is identity rather
|
|
99
|
+
* than state — the state model is `open` — and the set's array holds it. One
|
|
100
|
+
* that states none is given one from the id factory.
|
|
101
|
+
*/
|
|
102
|
+
readonly value: _angular_core.InputSignal<string | undefined>;
|
|
103
|
+
/** Unstated rather than false, so the disclosure defers to the set around it. */
|
|
104
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
|
|
105
|
+
/**
|
|
106
|
+
* Whether the panel's content is still on its way. The panel keeps a line's
|
|
107
|
+
* height and carries `aria-busy`; what stands in for the content is
|
|
108
|
+
* `slSkeleton`, composed by the consumer.
|
|
109
|
+
*/
|
|
110
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
111
|
+
/**
|
|
112
|
+
* Whether the panel is a `region` landmark. Off by default: the APG's own
|
|
113
|
+
* example warns that a landmark per panel fills the landmark list.
|
|
114
|
+
*/
|
|
115
|
+
readonly region: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
116
|
+
readonly size: _angular_core.InputSignal<CollapsibleSize | undefined>;
|
|
117
|
+
readonly variant: _angular_core.InputSignal<CollapsibleVariant | undefined>;
|
|
118
|
+
readonly indicator: _angular_core.InputSignal<CollapsibleIndicator | undefined>;
|
|
119
|
+
readonly togglePlacement: _angular_core.InputSignal<CollapsibleTogglePlacement | undefined>;
|
|
120
|
+
readonly level: _angular_core.InputSignal<CollapsibleLevel | undefined>;
|
|
121
|
+
readonly mount: _angular_core.InputSignal<CollapsibleMount | undefined>;
|
|
122
|
+
readonly truncate: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
|
|
123
|
+
/** One output for one transition, carrying the reason and the event. */
|
|
124
|
+
readonly openChangeRequest: _angular_core.OutputEmitterRef<ChangeRequest<boolean>>;
|
|
125
|
+
private readonly defaults;
|
|
126
|
+
/** The set this disclosure is in, or nothing: a standalone one is complete. */
|
|
127
|
+
private readonly group;
|
|
128
|
+
private readonly generated;
|
|
129
|
+
readonly identity: _angular_core.Signal<string>;
|
|
130
|
+
/**
|
|
131
|
+
* Three owners, in one order. The set's value wins over the disclosure's own
|
|
132
|
+
* `open` because the set is what a consumer wrote when they wrote an
|
|
133
|
+
* accordion; a disclosure standing alone owns the value outright.
|
|
134
|
+
*/
|
|
135
|
+
readonly isOpen: _angular_core.Signal<boolean>;
|
|
136
|
+
/** Whether the set refuses to let this one close, which the APG marks. */
|
|
137
|
+
readonly held: _angular_core.Signal<boolean>;
|
|
138
|
+
readonly resolvedDisabled: _angular_core.Signal<boolean>;
|
|
139
|
+
readonly resolvedSize: _angular_core.Signal<CollapsibleSize>;
|
|
140
|
+
readonly resolvedVariant: _angular_core.Signal<CollapsibleVariant>;
|
|
141
|
+
readonly resolvedIndicator: _angular_core.Signal<CollapsibleIndicator>;
|
|
142
|
+
readonly resolvedTogglePlacement: _angular_core.Signal<CollapsibleTogglePlacement>;
|
|
143
|
+
readonly resolvedLevel: _angular_core.Signal<CollapsibleLevel>;
|
|
144
|
+
readonly resolvedMount: _angular_core.Signal<CollapsibleMount>;
|
|
145
|
+
readonly resolvedTruncate: _angular_core.Signal<boolean>;
|
|
146
|
+
/** Whether this panel has ever been open, which is what `lazy` reads. */
|
|
147
|
+
private readonly everOpened;
|
|
148
|
+
readonly seen: _angular_core.Signal<boolean>;
|
|
149
|
+
ngOnInit(): void;
|
|
150
|
+
/** The identifiers that wire the trigger to its panel. */
|
|
151
|
+
ids(): {
|
|
152
|
+
panelId: string;
|
|
153
|
+
triggerId: string;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Asks to open or close. The set is asked after this disclosure's own
|
|
157
|
+
* consumer has had the chance to refuse; it owns the array, so it decides
|
|
158
|
+
* what `multiple` and `requireOpen` make of the request.
|
|
159
|
+
*/
|
|
160
|
+
toggle(next: boolean, reason: CollapsibleOpenReason, source?: Event): void;
|
|
161
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlCollapsible, never>;
|
|
162
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlCollapsible, "[slCollapsible]", ["slCollapsible"], { "open": { "alias": "open"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "region": { "alias": "region"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "togglePlacement": { "alias": "togglePlacement"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "mount": { "alias": "mount"; "required": false; "isSignal": true; }; "truncate": { "alias": "truncate"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "openChangeRequest": "openChangeRequest"; }, never, ["*"], true, never>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The heading the trigger lives in.
|
|
167
|
+
*
|
|
168
|
+
* The element is the consumer's own, which is what this ecosystem composes
|
|
169
|
+
* with: `<h3 slCollapsibleHeader>` is a native heading and this adds nothing to
|
|
170
|
+
* it, while `<div slCollapsibleHeader>` gets `role="heading"` and the level the
|
|
171
|
+
* disclosure resolved. The pattern names both — "if the native host language
|
|
172
|
+
* has an element with an implicit heading and aria-level … a native host
|
|
173
|
+
* language element may be used" — and React reads the element off `level`
|
|
174
|
+
* instead, because there the component owns the tag.
|
|
175
|
+
*
|
|
176
|
+
* The trigger is meant to be its only child: the pattern requires the button to
|
|
177
|
+
* be the only element inside the heading, which is why the always-visible
|
|
178
|
+
* controls go in `slCollapsibleActions` beside it.
|
|
179
|
+
*/
|
|
180
|
+
declare class SlCollapsibleHeader {
|
|
181
|
+
private readonly collapsible;
|
|
182
|
+
private readonly native;
|
|
183
|
+
/** Whether the consumer already wrote a heading, in which case ARIA adds nothing. */
|
|
184
|
+
private readonly isNativeHeading;
|
|
185
|
+
protected readonly ariaRole: _angular_core.Signal<"heading" | null>;
|
|
186
|
+
protected readonly ariaLevel: _angular_core.Signal<_slotted_angular_collapsible.CollapsibleLevel | null>;
|
|
187
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlCollapsibleHeader, never>;
|
|
188
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlCollapsibleHeader, "[slCollapsibleHeader]", ["slCollapsibleHeader"], {}, {}, never, never, true, never>;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* The control.
|
|
192
|
+
*
|
|
193
|
+
* It is the consumer's own `button`, so `Enter` and `Space` are the platform's
|
|
194
|
+
* and the family binds no key of its own. The mark, the words and the second
|
|
195
|
+
* line are the component's, because all three are parts the stylesheet places.
|
|
196
|
+
*/
|
|
197
|
+
declare class SlCollapsibleTrigger {
|
|
198
|
+
protected readonly collapsible: SlCollapsible;
|
|
199
|
+
/**
|
|
200
|
+
* A second line under the title. It is inside the trigger, so it is part of
|
|
201
|
+
* the accessible name — "Entrega, 3 de 12 itens" is what a reader hears.
|
|
202
|
+
*/
|
|
203
|
+
readonly description: _angular_core.InputSignal<string | undefined>;
|
|
204
|
+
/**
|
|
205
|
+
* The chevron is one glyph the stylesheet turns; plus and minus are two, so
|
|
206
|
+
* the state picks between them here.
|
|
207
|
+
*/
|
|
208
|
+
protected readonly indicatorGlyph: _angular_core.Signal<"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" | "presentation" | "text-wrap" | "bell" | "trending-up" | "image-off" | "funnel" | "grip-vertical" | "grip-horizontal" | "star" | "check-check">;
|
|
209
|
+
protected ids(): {
|
|
210
|
+
panelId: string;
|
|
211
|
+
triggerId: string;
|
|
212
|
+
};
|
|
213
|
+
protected onClick(event: MouseEvent): void;
|
|
214
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlCollapsibleTrigger, never>;
|
|
215
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlCollapsibleTrigger, "button[slCollapsibleTrigger]", ["slCollapsibleTrigger"], { "description": { "alias": "description"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* The always-visible controls beside the header.
|
|
219
|
+
*
|
|
220
|
+
* They are a sibling of the heading rather than a child of it, for two reasons
|
|
221
|
+
* that agree: the pattern requires the button to be the only element inside the
|
|
222
|
+
* heading, and a control inside a `button` is invalid HTML. What belongs here is
|
|
223
|
+
* an `slToolbar` — one tab stop for however many actions the page puts there.
|
|
224
|
+
*/
|
|
225
|
+
declare class SlCollapsibleActions {
|
|
226
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlCollapsibleActions, never>;
|
|
227
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlCollapsibleActions, "[slCollapsibleActions]", ["slCollapsibleActions"], {}, {}, never, never, true, never>;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Content built the first time the panel opens.
|
|
231
|
+
*
|
|
232
|
+
* `<ng-content>` is instantiated by the parent whether or not it is inserted,
|
|
233
|
+
* so `mount="lazy"` needs a template rather than projection. It is Angular
|
|
234
|
+
* Material's own `matExpansionPanelContent`, and it is the answer this
|
|
235
|
+
* ecosystem already knows.
|
|
236
|
+
*/
|
|
237
|
+
declare class SlCollapsibleContent {
|
|
238
|
+
readonly template: TemplateRef<any>;
|
|
239
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlCollapsibleContent, never>;
|
|
240
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlCollapsibleContent, "ng-template[slCollapsibleContent]", ["slCollapsibleContent"], {}, {}, never, never, true, never>;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* The panel.
|
|
244
|
+
*
|
|
245
|
+
* The box always exists, so the trigger's `aria-controls` never names an
|
|
246
|
+
* element that is gone; `mount` decides whether the content inside it does.
|
|
247
|
+
*
|
|
248
|
+
* While the panel is closed it is taken out of the tab sequence and out of the
|
|
249
|
+
* accessibility tree twice over: the stylesheet with `content-visibility`, and
|
|
250
|
+
* this component with `inert`, so a browser without the property still cannot
|
|
251
|
+
* put focus inside it. `mount="until-found"` writes `hidden="until-found"`
|
|
252
|
+
* instead, and the browser removes that attribute itself when its page search
|
|
253
|
+
* reaches the text inside — `beforematch` is what asks the family to open, with
|
|
254
|
+
* the one reason the closed vocabulary holds for a move the browser made.
|
|
255
|
+
*/
|
|
256
|
+
declare class SlCollapsiblePanel {
|
|
257
|
+
protected readonly collapsible: SlCollapsible;
|
|
258
|
+
protected readonly deferred: _angular_core.Signal<SlCollapsibleContent | undefined>;
|
|
259
|
+
private readonly native;
|
|
260
|
+
protected readonly mounted: _angular_core.Signal<boolean>;
|
|
261
|
+
constructor();
|
|
262
|
+
protected ids(): {
|
|
263
|
+
panelId: string;
|
|
264
|
+
triggerId: string;
|
|
265
|
+
};
|
|
266
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlCollapsiblePanel, never>;
|
|
267
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlCollapsiblePanel, "[slCollapsiblePanel]", ["slCollapsiblePanel"], {}, {}, ["deferred"], ["*"], true, never>;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export { COLLAPSIBLE_DEFAULTS, COLLAPSIBLE_TRIGGER_SELECTOR, SlCollapsible, SlCollapsibleActions, SlCollapsibleContent, SlCollapsibleHeader, SlCollapsibleIdFactory, SlCollapsiblePanel, SlCollapsibleTrigger, injectCollapsibleDefaults, provideCollapsibleDefaults };
|
|
271
|
+
export type { CollapsibleDefaults, CollapsibleIndicator, CollapsibleLevel, CollapsibleMount, CollapsibleOpenReason, CollapsibleSize, CollapsibleTogglePlacement, CollapsibleVariant };
|
|
272
|
+
//# sourceMappingURL=slotted-angular-collapsible.d.ts.map
|