@slotted/angular 0.0.0-stage → 0.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +51 -2
- package/docs/AGENTS.snippet.md +10 -0
- package/docs/accordion.json +345 -0
- package/docs/accordion.md +207 -0
- package/docs/action-bar.json +421 -0
- package/docs/action-bar.md +364 -0
- package/docs/action-sheet.json +210 -0
- package/docs/action-sheet.md +19 -0
- package/docs/alert.json +407 -0
- package/docs/alert.md +239 -0
- package/docs/app-shell.examples.md +349 -0
- package/docs/app-shell.json +835 -0
- package/docs/app-shell.md +214 -0
- package/docs/aspect-ratio.json +159 -0
- package/docs/aspect-ratio.md +134 -0
- package/docs/attachment.json +486 -0
- package/docs/attachment.md +253 -0
- package/docs/avatar-group.json +208 -0
- package/docs/avatar-group.md +130 -0
- package/docs/avatar.json +342 -0
- package/docs/avatar.md +142 -0
- package/docs/badge.json +334 -0
- package/docs/badge.md +138 -0
- package/docs/breadcrumb.json +368 -0
- package/docs/breadcrumb.md +237 -0
- package/docs/button-group.json +158 -0
- package/docs/button-group.md +72 -0
- package/docs/button.examples.md +621 -0
- package/docs/button.json +977 -0
- package/docs/button.md +200 -0
- package/docs/calendar.json +592 -0
- package/docs/calendar.md +242 -0
- package/docs/card.json +283 -0
- package/docs/card.md +130 -0
- package/docs/carousel.json +560 -0
- package/docs/carousel.md +357 -0
- package/docs/cascader.json +933 -0
- package/docs/cascader.md +379 -0
- package/docs/chart.examples.md +582 -0
- package/docs/chart.json +1359 -0
- package/docs/chart.md +187 -0
- package/docs/checkbox-group.examples.md +612 -0
- package/docs/checkbox-group.json +395 -0
- package/docs/checkbox-group.md +106 -0
- package/docs/checkbox.examples.md +546 -0
- package/docs/checkbox.json +506 -0
- package/docs/checkbox.md +104 -0
- package/docs/code-block.json +616 -0
- package/docs/code-block.md +303 -0
- package/docs/collapsible.json +456 -0
- package/docs/collapsible.md +261 -0
- package/docs/color-picker.json +523 -0
- package/docs/color-picker.md +201 -0
- package/docs/column-manager.json +486 -0
- package/docs/column-manager.md +277 -0
- package/docs/combobox.examples.md +1732 -0
- package/docs/combobox.json +1250 -0
- package/docs/combobox.md +209 -0
- package/docs/command-palette.json +800 -0
- package/docs/command-palette.md +419 -0
- package/docs/container.json +156 -0
- package/docs/container.md +92 -0
- package/docs/context-menu.json +231 -0
- package/docs/context-menu.md +176 -0
- package/docs/currency-field.examples.md +321 -0
- package/docs/currency-field.json +649 -0
- package/docs/currency-field.md +128 -0
- package/docs/dashboard-grid.json +680 -0
- package/docs/dashboard-grid.md +265 -0
- package/docs/data-grid.examples.md +3064 -0
- package/docs/data-grid.json +1577 -0
- package/docs/data-grid.md +237 -0
- package/docs/data-grid.props.md +81 -0
- package/docs/data-list.json +685 -0
- package/docs/data-list.md +327 -0
- package/docs/date-field.json +490 -0
- package/docs/date-field.md +235 -0
- package/docs/date-picker.examples.md +1226 -0
- package/docs/date-picker.json +696 -0
- package/docs/date-picker.md +121 -0
- package/docs/date-range-picker.examples.md +1300 -0
- package/docs/date-range-picker.json +903 -0
- package/docs/date-range-picker.md +142 -0
- package/docs/datetime-field.json +665 -0
- package/docs/datetime-field.md +337 -0
- package/docs/datetime-picker.examples.md +1269 -0
- package/docs/datetime-picker.json +928 -0
- package/docs/datetime-picker.md +150 -0
- package/docs/datetime-range-picker.examples.md +225 -0
- package/docs/datetime-range-picker.json +1015 -0
- package/docs/datetime-range-picker.md +162 -0
- package/docs/description-list.json +471 -0
- package/docs/description-list.md +268 -0
- package/docs/detail-panel.json +530 -0
- package/docs/detail-panel.md +361 -0
- package/docs/dialog.examples.md +2467 -0
- package/docs/dialog.json +1141 -0
- package/docs/dialog.md +217 -0
- package/docs/dialog.props.md +63 -0
- package/docs/divider.json +148 -0
- package/docs/divider.md +83 -0
- package/docs/drawer.examples.md +1929 -0
- package/docs/drawer.json +753 -0
- package/docs/drawer.md +199 -0
- package/docs/entity-picker.json +946 -0
- package/docs/entity-picker.md +365 -0
- package/docs/event-calendar.examples.md +308 -0
- package/docs/event-calendar.json +1202 -0
- package/docs/event-calendar.md +201 -0
- package/docs/field-group.json +333 -0
- package/docs/field-group.md +181 -0
- package/docs/field.examples.md +676 -0
- package/docs/field.json +528 -0
- package/docs/field.md +127 -0
- package/docs/filter-bar.json +817 -0
- package/docs/filter-bar.md +380 -0
- package/docs/form.json +378 -0
- package/docs/form.md +235 -0
- package/docs/fullscreen.json +395 -0
- package/docs/fullscreen.md +225 -0
- package/docs/grid.json +176 -0
- package/docs/grid.md +74 -0
- package/docs/highlight.json +279 -0
- package/docs/highlight.md +210 -0
- package/docs/hover-card.json +254 -0
- package/docs/hover-card.md +213 -0
- package/docs/icon.json +173 -0
- package/docs/icon.md +101 -0
- package/docs/image.json +476 -0
- package/docs/image.md +254 -0
- package/docs/import-export-center.json +836 -0
- package/docs/import-export-center.md +345 -0
- package/docs/index.md +141 -0
- package/docs/inline-message.json +312 -0
- package/docs/inline-message.md +191 -0
- package/docs/inline.json +149 -0
- package/docs/inline.md +72 -0
- package/docs/kbd.json +350 -0
- package/docs/kbd.md +210 -0
- package/docs/link.json +264 -0
- package/docs/link.md +167 -0
- package/docs/list-item.json +463 -0
- package/docs/list-item.md +236 -0
- package/docs/list.json +321 -0
- package/docs/list.md +185 -0
- package/docs/listbox.json +807 -0
- package/docs/listbox.md +413 -0
- package/docs/loading-overlay.json +440 -0
- package/docs/loading-overlay.md +248 -0
- package/docs/markdown.json +461 -0
- package/docs/markdown.md +266 -0
- package/docs/menu.examples.md +1651 -0
- package/docs/menu.json +922 -0
- package/docs/menu.md +155 -0
- package/docs/menubar.json +292 -0
- package/docs/menubar.md +173 -0
- package/docs/message-scroller.json +401 -0
- package/docs/message-scroller.md +212 -0
- package/docs/message.json +862 -0
- package/docs/message.md +473 -0
- package/docs/multi-select.examples.md +1922 -0
- package/docs/multi-select.json +1314 -0
- package/docs/multi-select.md +213 -0
- package/docs/navigation-menu.json +529 -0
- package/docs/navigation-menu.md +329 -0
- package/docs/notification-center.json +664 -0
- package/docs/notification-center.md +372 -0
- package/docs/number-field.examples.md +1078 -0
- package/docs/number-field.json +668 -0
- package/docs/number-field.md +137 -0
- package/docs/otp-input.json +479 -0
- package/docs/otp-input.md +291 -0
- package/docs/page-header.json +574 -0
- package/docs/page-header.md +338 -0
- package/docs/page.json +332 -0
- package/docs/page.md +184 -0
- package/docs/pagination.json +434 -0
- package/docs/pagination.md +238 -0
- package/docs/popover.examples.md +1235 -0
- package/docs/popover.json +656 -0
- package/docs/popover.md +199 -0
- package/docs/progress-indicator.json +501 -0
- package/docs/progress-indicator.md +329 -0
- package/docs/prompt-composer.json +498 -0
- package/docs/prompt-composer.md +278 -0
- package/docs/prose.json +357 -0
- package/docs/prose.md +226 -0
- package/docs/radio-group.examples.md +626 -0
- package/docs/radio-group.json +541 -0
- package/docs/radio-group.md +112 -0
- package/docs/rating.json +1053 -0
- package/docs/rating.md +435 -0
- package/docs/result-state.json +376 -0
- package/docs/result-state.md +286 -0
- package/docs/saved-views.json +384 -0
- package/docs/saved-views.md +242 -0
- package/docs/scroll-area.json +120 -0
- package/docs/scroll-area.md +8 -0
- package/docs/section.json +344 -0
- package/docs/section.md +208 -0
- package/docs/segmented-control.json +429 -0
- package/docs/segmented-control.md +240 -0
- package/docs/select.examples.md +1214 -0
- package/docs/select.json +1147 -0
- package/docs/select.md +199 -0
- package/docs/side-navigation.json +632 -0
- package/docs/side-navigation.md +430 -0
- package/docs/skeleton.json +358 -0
- package/docs/skeleton.md +223 -0
- package/docs/slider.json +522 -0
- package/docs/slider.md +261 -0
- package/docs/sparkline.json +426 -0
- package/docs/sparkline.md +206 -0
- package/docs/split-button.json +361 -0
- package/docs/split-button.md +275 -0
- package/docs/splitter.json +142 -0
- package/docs/splitter.md +14 -0
- package/docs/stack.json +135 -0
- package/docs/stack.md +74 -0
- package/docs/stat-card.json +529 -0
- package/docs/stat-card.md +270 -0
- package/docs/status-indicator.json +314 -0
- package/docs/status-indicator.md +197 -0
- package/docs/stepper.json +451 -0
- package/docs/stepper.md +250 -0
- package/docs/switch.json +451 -0
- package/docs/switch.md +508 -0
- package/docs/table-of-contents.json +553 -0
- package/docs/table-of-contents.md +289 -0
- package/docs/table.examples.md +1981 -0
- package/docs/table.json +1059 -0
- package/docs/table.md +290 -0
- package/docs/tabs.examples.md +1370 -0
- package/docs/tabs.json +661 -0
- package/docs/tabs.md +211 -0
- package/docs/tag.json +813 -0
- package/docs/tag.md +241 -0
- package/docs/tags-input.json +771 -0
- package/docs/tags-input.md +361 -0
- package/docs/text-field.examples.md +821 -0
- package/docs/text-field.json +604 -0
- package/docs/text-field.md +125 -0
- package/docs/textarea.examples.md +612 -0
- package/docs/textarea.json +440 -0
- package/docs/textarea.md +98 -0
- package/docs/time-field.json +584 -0
- package/docs/time-field.md +291 -0
- package/docs/time-picker.json +679 -0
- package/docs/time-picker.md +315 -0
- package/docs/time-range-picker.examples.md +191 -0
- package/docs/time-range-picker.json +924 -0
- package/docs/time-range-picker.md +152 -0
- package/docs/timeline.json +839 -0
- package/docs/timeline.md +401 -0
- package/docs/toast.json +642 -0
- package/docs/toast.md +311 -0
- package/docs/toggle-group.json +417 -0
- package/docs/toggle-group.md +255 -0
- package/docs/toggle.json +326 -0
- package/docs/toggle.md +222 -0
- package/docs/toolbar.json +380 -0
- package/docs/toolbar.md +240 -0
- package/docs/tooltip.examples.md +664 -0
- package/docs/tooltip.json +604 -0
- package/docs/tooltip.md +146 -0
- package/docs/top-navigation.examples.md +287 -0
- package/docs/top-navigation.json +648 -0
- package/docs/top-navigation.md +138 -0
- package/docs/tour.json +759 -0
- package/docs/tour.md +337 -0
- package/docs/transfer.json +746 -0
- package/docs/transfer.md +273 -0
- package/docs/tree.json +918 -0
- package/docs/tree.md +397 -0
- package/docs/typography.json +317 -0
- package/docs/typography.md +107 -0
- package/docs/upload.examples.md +358 -0
- package/docs/upload.json +1103 -0
- package/docs/upload.md +166 -0
- package/docs/visually-hidden.json +71 -0
- package/docs/visually-hidden.md +42 -0
- package/docs/wizard.json +724 -0
- package/docs/wizard.md +295 -0
- package/fesm2022/slotted-angular-accordion.mjs +247 -0
- package/fesm2022/slotted-angular-accordion.mjs.map +1 -0
- package/fesm2022/slotted-angular-action-bar.mjs +639 -0
- package/fesm2022/slotted-angular-action-bar.mjs.map +1 -0
- package/fesm2022/slotted-angular-action-sheet.mjs +749 -0
- package/fesm2022/slotted-angular-action-sheet.mjs.map +1 -0
- package/fesm2022/slotted-angular-alert.mjs +427 -0
- package/fesm2022/slotted-angular-alert.mjs.map +1 -0
- package/fesm2022/slotted-angular-app-shell.mjs +1334 -0
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -0
- package/fesm2022/slotted-angular-aspect-ratio.mjs +63 -0
- package/fesm2022/slotted-angular-aspect-ratio.mjs.map +1 -0
- package/fesm2022/slotted-angular-attachment.mjs +595 -0
- package/fesm2022/slotted-angular-attachment.mjs.map +1 -0
- package/fesm2022/slotted-angular-avatar-group.mjs +230 -0
- package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -0
- package/fesm2022/slotted-angular-avatar.mjs +330 -0
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -0
- package/fesm2022/slotted-angular-badge.mjs +255 -0
- package/fesm2022/slotted-angular-badge.mjs.map +1 -0
- package/fesm2022/slotted-angular-breadcrumb.mjs +544 -0
- package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -0
- package/fesm2022/slotted-angular-button-group.mjs +146 -0
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -0
- package/fesm2022/slotted-angular-button.mjs +692 -0
- package/fesm2022/slotted-angular-button.mjs.map +1 -0
- package/fesm2022/slotted-angular-calendar.mjs +916 -0
- package/fesm2022/slotted-angular-calendar.mjs.map +1 -0
- package/fesm2022/slotted-angular-card.mjs +225 -0
- package/fesm2022/slotted-angular-card.mjs.map +1 -0
- package/fesm2022/slotted-angular-carousel.mjs +840 -0
- package/fesm2022/slotted-angular-carousel.mjs.map +1 -0
- package/fesm2022/slotted-angular-cascader.mjs +1839 -0
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -0
- package/fesm2022/slotted-angular-chart.mjs +974 -0
- package/fesm2022/slotted-angular-chart.mjs.map +1 -0
- package/fesm2022/slotted-angular-checkbox-group.mjs +283 -0
- package/fesm2022/slotted-angular-checkbox-group.mjs.map +1 -0
- package/fesm2022/slotted-angular-checkbox.mjs +468 -0
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -0
- package/fesm2022/slotted-angular-code-block.mjs +476 -0
- package/fesm2022/slotted-angular-code-block.mjs.map +1 -0
- package/fesm2022/slotted-angular-collapsible.mjs +479 -0
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -0
- package/fesm2022/slotted-angular-color-picker.mjs +910 -0
- package/fesm2022/slotted-angular-color-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-column-manager.mjs +1037 -0
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -0
- package/fesm2022/slotted-angular-combobox.mjs +1480 -0
- package/fesm2022/slotted-angular-combobox.mjs.map +1 -0
- package/fesm2022/slotted-angular-command-palette.mjs +1283 -0
- package/fesm2022/slotted-angular-command-palette.mjs.map +1 -0
- package/fesm2022/slotted-angular-container.mjs +105 -0
- package/fesm2022/slotted-angular-container.mjs.map +1 -0
- package/fesm2022/slotted-angular-context-menu.mjs +221 -0
- package/fesm2022/slotted-angular-context-menu.mjs.map +1 -0
- package/fesm2022/slotted-angular-currency-field.mjs +1131 -0
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -0
- package/fesm2022/slotted-angular-dashboard-grid.mjs +1928 -0
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -0
- package/fesm2022/slotted-angular-data-grid.mjs +6697 -0
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -0
- package/fesm2022/slotted-angular-data-list.mjs +1418 -0
- package/fesm2022/slotted-angular-data-list.mjs.map +1 -0
- package/fesm2022/slotted-angular-date-field.mjs +772 -0
- package/fesm2022/slotted-angular-date-field.mjs.map +1 -0
- package/fesm2022/slotted-angular-date-picker.mjs +690 -0
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-date-range-picker.mjs +1150 -0
- package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-datetime-field.mjs +1058 -0
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -0
- package/fesm2022/slotted-angular-datetime-picker.mjs +1362 -0
- package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +1872 -0
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-description-list.mjs +545 -0
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -0
- package/fesm2022/slotted-angular-detail-panel.mjs +754 -0
- package/fesm2022/slotted-angular-detail-panel.mjs.map +1 -0
- package/fesm2022/slotted-angular-dialog.mjs +980 -0
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -0
- package/fesm2022/slotted-angular-divider.mjs +76 -0
- package/fesm2022/slotted-angular-divider.mjs.map +1 -0
- package/fesm2022/slotted-angular-drawer.mjs +1397 -0
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -0
- package/fesm2022/slotted-angular-entity-picker.mjs +1987 -0
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-event-calendar.mjs +2934 -0
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -0
- package/fesm2022/slotted-angular-field-group.mjs +301 -0
- package/fesm2022/slotted-angular-field-group.mjs.map +1 -0
- package/fesm2022/slotted-angular-field.mjs +928 -0
- package/fesm2022/slotted-angular-field.mjs.map +1 -0
- package/fesm2022/slotted-angular-filter-bar.mjs +3107 -0
- package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -0
- package/fesm2022/slotted-angular-form.mjs +592 -0
- package/fesm2022/slotted-angular-form.mjs.map +1 -0
- package/fesm2022/slotted-angular-fullscreen.mjs +314 -0
- package/fesm2022/slotted-angular-fullscreen.mjs.map +1 -0
- package/fesm2022/slotted-angular-grid.mjs +58 -0
- package/fesm2022/slotted-angular-grid.mjs.map +1 -0
- package/fesm2022/slotted-angular-highlight.mjs +123 -0
- package/fesm2022/slotted-angular-highlight.mjs.map +1 -0
- package/fesm2022/slotted-angular-hover-card.mjs +326 -0
- package/fesm2022/slotted-angular-hover-card.mjs.map +1 -0
- package/fesm2022/slotted-angular-i18n.mjs +75 -0
- package/fesm2022/slotted-angular-i18n.mjs.map +1 -0
- package/fesm2022/slotted-angular-icon.mjs +232 -0
- package/fesm2022/slotted-angular-icon.mjs.map +1 -0
- package/fesm2022/slotted-angular-image.mjs +442 -0
- package/fesm2022/slotted-angular-image.mjs.map +1 -0
- package/fesm2022/slotted-angular-import-export-center.mjs +1792 -0
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -0
- package/fesm2022/slotted-angular-inline-message.mjs +280 -0
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -0
- package/fesm2022/slotted-angular-inline.mjs +52 -0
- package/fesm2022/slotted-angular-inline.mjs.map +1 -0
- package/fesm2022/slotted-angular-kbd.mjs +284 -0
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -0
- package/fesm2022/slotted-angular-link.mjs +182 -0
- package/fesm2022/slotted-angular-link.mjs.map +1 -0
- package/fesm2022/slotted-angular-list-item.mjs +367 -0
- package/fesm2022/slotted-angular-list-item.mjs.map +1 -0
- package/fesm2022/slotted-angular-list.mjs +256 -0
- package/fesm2022/slotted-angular-list.mjs.map +1 -0
- package/fesm2022/slotted-angular-listbox.mjs +1274 -0
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -0
- package/fesm2022/slotted-angular-loading-overlay.mjs +451 -0
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -0
- package/fesm2022/slotted-angular-markdown.mjs +914 -0
- package/fesm2022/slotted-angular-markdown.mjs.map +1 -0
- package/fesm2022/slotted-angular-menu.mjs +1211 -0
- package/fesm2022/slotted-angular-menu.mjs.map +1 -0
- package/fesm2022/slotted-angular-menubar.mjs +230 -0
- package/fesm2022/slotted-angular-menubar.mjs.map +1 -0
- package/fesm2022/slotted-angular-message-scroller.mjs +378 -0
- package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -0
- package/fesm2022/slotted-angular-message.mjs +866 -0
- package/fesm2022/slotted-angular-message.mjs.map +1 -0
- package/fesm2022/slotted-angular-multi-select.mjs +1939 -0
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -0
- package/fesm2022/slotted-angular-navigation-menu.mjs +770 -0
- package/fesm2022/slotted-angular-navigation-menu.mjs.map +1 -0
- package/fesm2022/slotted-angular-notification-center.mjs +1172 -0
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -0
- package/fesm2022/slotted-angular-number-field.mjs +966 -0
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -0
- package/fesm2022/slotted-angular-otp-input.mjs +629 -0
- package/fesm2022/slotted-angular-otp-input.mjs.map +1 -0
- package/fesm2022/slotted-angular-page-header.mjs +788 -0
- package/fesm2022/slotted-angular-page-header.mjs.map +1 -0
- package/fesm2022/slotted-angular-page.mjs +255 -0
- package/fesm2022/slotted-angular-page.mjs.map +1 -0
- package/fesm2022/slotted-angular-pagination.mjs +562 -0
- package/fesm2022/slotted-angular-pagination.mjs.map +1 -0
- package/fesm2022/slotted-angular-popover.mjs +799 -0
- package/fesm2022/slotted-angular-popover.mjs.map +1 -0
- package/fesm2022/slotted-angular-progress-indicator.mjs +572 -0
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -0
- package/fesm2022/slotted-angular-prompt-composer.mjs +596 -0
- package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -0
- package/fesm2022/slotted-angular-prose.mjs +314 -0
- package/fesm2022/slotted-angular-prose.mjs.map +1 -0
- package/fesm2022/slotted-angular-radio-group.mjs +469 -0
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -0
- package/fesm2022/slotted-angular-rating.mjs +1174 -0
- package/fesm2022/slotted-angular-rating.mjs.map +1 -0
- package/fesm2022/slotted-angular-result-state.mjs +330 -0
- package/fesm2022/slotted-angular-result-state.mjs.map +1 -0
- package/fesm2022/slotted-angular-saved-views.mjs +877 -0
- package/fesm2022/slotted-angular-saved-views.mjs.map +1 -0
- package/fesm2022/slotted-angular-scroll-area.mjs +294 -0
- package/fesm2022/slotted-angular-scroll-area.mjs.map +1 -0
- package/fesm2022/slotted-angular-section.mjs +266 -0
- package/fesm2022/slotted-angular-section.mjs.map +1 -0
- package/fesm2022/slotted-angular-segmented-control.mjs +454 -0
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -0
- package/fesm2022/slotted-angular-select.mjs +1899 -0
- package/fesm2022/slotted-angular-select.mjs.map +1 -0
- package/fesm2022/slotted-angular-side-navigation.mjs +1042 -0
- package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -0
- package/fesm2022/slotted-angular-skeleton.mjs +316 -0
- package/fesm2022/slotted-angular-skeleton.mjs.map +1 -0
- package/fesm2022/slotted-angular-slider.mjs +586 -0
- package/fesm2022/slotted-angular-slider.mjs.map +1 -0
- package/fesm2022/slotted-angular-sparkline.mjs +235 -0
- package/fesm2022/slotted-angular-sparkline.mjs.map +1 -0
- package/fesm2022/slotted-angular-split-button.mjs +331 -0
- package/fesm2022/slotted-angular-split-button.mjs.map +1 -0
- package/fesm2022/slotted-angular-splitter.mjs +516 -0
- package/fesm2022/slotted-angular-splitter.mjs.map +1 -0
- package/fesm2022/slotted-angular-stack.mjs +48 -0
- package/fesm2022/slotted-angular-stack.mjs.map +1 -0
- package/fesm2022/slotted-angular-stat-card.mjs +478 -0
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -0
- package/fesm2022/slotted-angular-status-indicator.mjs +155 -0
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -0
- package/fesm2022/slotted-angular-stepper.mjs +536 -0
- package/fesm2022/slotted-angular-stepper.mjs.map +1 -0
- package/fesm2022/slotted-angular-switch.mjs +447 -0
- package/fesm2022/slotted-angular-switch.mjs.map +1 -0
- package/fesm2022/slotted-angular-table-of-contents.mjs +750 -0
- package/fesm2022/slotted-angular-table-of-contents.mjs.map +1 -0
- package/fesm2022/slotted-angular-table.mjs +2518 -0
- package/fesm2022/slotted-angular-table.mjs.map +1 -0
- package/fesm2022/slotted-angular-tabs.mjs +829 -0
- package/fesm2022/slotted-angular-tabs.mjs.map +1 -0
- package/fesm2022/slotted-angular-tag.mjs +595 -0
- package/fesm2022/slotted-angular-tag.mjs.map +1 -0
- package/fesm2022/slotted-angular-tags-input.mjs +1211 -0
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -0
- package/fesm2022/slotted-angular-text-field.mjs +674 -0
- package/fesm2022/slotted-angular-text-field.mjs.map +1 -0
- package/fesm2022/slotted-angular-textarea.mjs +275 -0
- package/fesm2022/slotted-angular-textarea.mjs.map +1 -0
- package/fesm2022/slotted-angular-theme.mjs +45 -0
- package/fesm2022/slotted-angular-theme.mjs.map +1 -0
- package/fesm2022/slotted-angular-time-field.mjs +895 -0
- package/fesm2022/slotted-angular-time-field.mjs.map +1 -0
- package/fesm2022/slotted-angular-time-picker.mjs +856 -0
- package/fesm2022/slotted-angular-time-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-time-range-picker.mjs +1534 -0
- package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -0
- package/fesm2022/slotted-angular-timeline.mjs +928 -0
- package/fesm2022/slotted-angular-timeline.mjs.map +1 -0
- package/fesm2022/slotted-angular-toast.mjs +917 -0
- package/fesm2022/slotted-angular-toast.mjs.map +1 -0
- package/fesm2022/slotted-angular-toggle-group.mjs +311 -0
- package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -0
- package/fesm2022/slotted-angular-toggle.mjs +162 -0
- package/fesm2022/slotted-angular-toggle.mjs.map +1 -0
- package/fesm2022/slotted-angular-toolbar.mjs +536 -0
- package/fesm2022/slotted-angular-toolbar.mjs.map +1 -0
- package/fesm2022/slotted-angular-tooltip.mjs +798 -0
- package/fesm2022/slotted-angular-tooltip.mjs.map +1 -0
- package/fesm2022/slotted-angular-top-navigation.mjs +1308 -0
- package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -0
- package/fesm2022/slotted-angular-tour.mjs +1330 -0
- package/fesm2022/slotted-angular-tour.mjs.map +1 -0
- package/fesm2022/slotted-angular-transfer.mjs +1406 -0
- package/fesm2022/slotted-angular-transfer.mjs.map +1 -0
- package/fesm2022/slotted-angular-tree.mjs +1448 -0
- package/fesm2022/slotted-angular-tree.mjs.map +1 -0
- package/fesm2022/slotted-angular-typography.mjs +184 -0
- package/fesm2022/slotted-angular-typography.mjs.map +1 -0
- package/fesm2022/slotted-angular-upload.mjs +1523 -0
- package/fesm2022/slotted-angular-upload.mjs.map +1 -0
- package/fesm2022/slotted-angular-visually-hidden.mjs +32 -0
- package/fesm2022/slotted-angular-visually-hidden.mjs.map +1 -0
- package/fesm2022/slotted-angular-wizard.mjs +1715 -0
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -0
- package/fesm2022/slotted-angular.mjs +4 -0
- package/fesm2022/slotted-angular.mjs.map +1 -0
- package/package.json +537 -3
- package/types/slotted-angular-accordion.d.ts +156 -0
- package/types/slotted-angular-accordion.d.ts.map +1 -0
- package/types/slotted-angular-action-bar.d.ts +291 -0
- package/types/slotted-angular-action-bar.d.ts.map +1 -0
- package/types/slotted-angular-action-sheet.d.ts +294 -0
- package/types/slotted-angular-action-sheet.d.ts.map +1 -0
- package/types/slotted-angular-alert.d.ts +214 -0
- package/types/slotted-angular-alert.d.ts.map +1 -0
- package/types/slotted-angular-app-shell.d.ts +549 -0
- package/types/slotted-angular-app-shell.d.ts.map +1 -0
- package/types/slotted-angular-aspect-ratio.d.ts +57 -0
- package/types/slotted-angular-aspect-ratio.d.ts.map +1 -0
- package/types/slotted-angular-attachment.d.ts +294 -0
- package/types/slotted-angular-attachment.d.ts.map +1 -0
- package/types/slotted-angular-avatar-group.d.ts +119 -0
- package/types/slotted-angular-avatar-group.d.ts.map +1 -0
- package/types/slotted-angular-avatar.d.ts +202 -0
- package/types/slotted-angular-avatar.d.ts.map +1 -0
- package/types/slotted-angular-badge.d.ts +166 -0
- package/types/slotted-angular-badge.d.ts.map +1 -0
- package/types/slotted-angular-breadcrumb.d.ts +251 -0
- package/types/slotted-angular-breadcrumb.d.ts.map +1 -0
- package/types/slotted-angular-button-group.d.ts +89 -0
- package/types/slotted-angular-button-group.d.ts.map +1 -0
- package/types/slotted-angular-button.d.ts +390 -0
- package/types/slotted-angular-button.d.ts.map +1 -0
- package/types/slotted-angular-calendar.d.ts +280 -0
- package/types/slotted-angular-calendar.d.ts.map +1 -0
- package/types/slotted-angular-card.d.ts +140 -0
- package/types/slotted-angular-card.d.ts.map +1 -0
- package/types/slotted-angular-carousel.d.ts +288 -0
- package/types/slotted-angular-carousel.d.ts.map +1 -0
- package/types/slotted-angular-cascader.d.ts +351 -0
- package/types/slotted-angular-cascader.d.ts.map +1 -0
- package/types/slotted-angular-chart.d.ts +319 -0
- package/types/slotted-angular-chart.d.ts.map +1 -0
- package/types/slotted-angular-checkbox-group.d.ts +156 -0
- package/types/slotted-angular-checkbox-group.d.ts.map +1 -0
- package/types/slotted-angular-checkbox.d.ts +197 -0
- package/types/slotted-angular-checkbox.d.ts.map +1 -0
- package/types/slotted-angular-code-block.d.ts +158 -0
- package/types/slotted-angular-code-block.d.ts.map +1 -0
- package/types/slotted-angular-collapsible.d.ts +272 -0
- package/types/slotted-angular-collapsible.d.ts.map +1 -0
- package/types/slotted-angular-color-picker.d.ts +181 -0
- package/types/slotted-angular-color-picker.d.ts.map +1 -0
- package/types/slotted-angular-column-manager.d.ts +200 -0
- package/types/slotted-angular-column-manager.d.ts.map +1 -0
- package/types/slotted-angular-combobox.d.ts +449 -0
- package/types/slotted-angular-combobox.d.ts.map +1 -0
- package/types/slotted-angular-command-palette.d.ts +256 -0
- package/types/slotted-angular-command-palette.d.ts.map +1 -0
- package/types/slotted-angular-container.d.ts +84 -0
- package/types/slotted-angular-container.d.ts.map +1 -0
- package/types/slotted-angular-context-menu.d.ts +84 -0
- package/types/slotted-angular-context-menu.d.ts.map +1 -0
- package/types/slotted-angular-currency-field.d.ts +480 -0
- package/types/slotted-angular-currency-field.d.ts.map +1 -0
- package/types/slotted-angular-dashboard-grid.d.ts +341 -0
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -0
- package/types/slotted-angular-data-grid.d.ts +1077 -0
- package/types/slotted-angular-data-grid.d.ts.map +1 -0
- package/types/slotted-angular-data-list.d.ts +272 -0
- package/types/slotted-angular-data-list.d.ts.map +1 -0
- package/types/slotted-angular-date-field.d.ts +320 -0
- package/types/slotted-angular-date-field.d.ts.map +1 -0
- package/types/slotted-angular-date-picker.d.ts +224 -0
- package/types/slotted-angular-date-picker.d.ts.map +1 -0
- package/types/slotted-angular-date-range-picker.d.ts +310 -0
- package/types/slotted-angular-date-range-picker.d.ts.map +1 -0
- package/types/slotted-angular-datetime-field.d.ts +362 -0
- package/types/slotted-angular-datetime-field.d.ts.map +1 -0
- package/types/slotted-angular-datetime-picker.d.ts +370 -0
- package/types/slotted-angular-datetime-picker.d.ts.map +1 -0
- package/types/slotted-angular-datetime-range-picker.d.ts +459 -0
- package/types/slotted-angular-datetime-range-picker.d.ts.map +1 -0
- package/types/slotted-angular-description-list.d.ts +281 -0
- package/types/slotted-angular-description-list.d.ts.map +1 -0
- package/types/slotted-angular-detail-panel.d.ts +240 -0
- package/types/slotted-angular-detail-panel.d.ts.map +1 -0
- package/types/slotted-angular-dialog.d.ts +497 -0
- package/types/slotted-angular-dialog.d.ts.map +1 -0
- package/types/slotted-angular-divider.d.ts +40 -0
- package/types/slotted-angular-divider.d.ts.map +1 -0
- package/types/slotted-angular-drawer.d.ts +532 -0
- package/types/slotted-angular-drawer.d.ts.map +1 -0
- package/types/slotted-angular-entity-picker.d.ts +338 -0
- package/types/slotted-angular-entity-picker.d.ts.map +1 -0
- package/types/slotted-angular-event-calendar.d.ts +574 -0
- package/types/slotted-angular-event-calendar.d.ts.map +1 -0
- package/types/slotted-angular-field-group.d.ts +152 -0
- package/types/slotted-angular-field-group.d.ts.map +1 -0
- package/types/slotted-angular-field.d.ts +535 -0
- package/types/slotted-angular-field.d.ts.map +1 -0
- package/types/slotted-angular-filter-bar.d.ts +573 -0
- package/types/slotted-angular-filter-bar.d.ts.map +1 -0
- package/types/slotted-angular-form.d.ts +298 -0
- package/types/slotted-angular-form.d.ts.map +1 -0
- package/types/slotted-angular-fullscreen.d.ts +145 -0
- package/types/slotted-angular-fullscreen.d.ts.map +1 -0
- package/types/slotted-angular-grid.d.ts +50 -0
- package/types/slotted-angular-grid.d.ts.map +1 -0
- package/types/slotted-angular-highlight.d.ts +93 -0
- package/types/slotted-angular-highlight.d.ts.map +1 -0
- package/types/slotted-angular-hover-card.d.ts +140 -0
- package/types/slotted-angular-hover-card.d.ts.map +1 -0
- package/types/slotted-angular-i18n.d.ts +46 -0
- package/types/slotted-angular-i18n.d.ts.map +1 -0
- package/types/slotted-angular-icon.d.ts +94 -0
- package/types/slotted-angular-icon.d.ts.map +1 -0
- package/types/slotted-angular-image.d.ts +251 -0
- package/types/slotted-angular-image.d.ts.map +1 -0
- package/types/slotted-angular-import-export-center.d.ts +351 -0
- package/types/slotted-angular-import-export-center.d.ts.map +1 -0
- package/types/slotted-angular-inline-message.d.ts +195 -0
- package/types/slotted-angular-inline-message.d.ts.map +1 -0
- package/types/slotted-angular-inline.d.ts +41 -0
- package/types/slotted-angular-inline.d.ts.map +1 -0
- package/types/slotted-angular-kbd.d.ts +174 -0
- package/types/slotted-angular-kbd.d.ts.map +1 -0
- package/types/slotted-angular-link.d.ts +94 -0
- package/types/slotted-angular-link.d.ts.map +1 -0
- package/types/slotted-angular-list-item.d.ts +210 -0
- package/types/slotted-angular-list-item.d.ts.map +1 -0
- package/types/slotted-angular-list.d.ts +176 -0
- package/types/slotted-angular-list.d.ts.map +1 -0
- package/types/slotted-angular-listbox.d.ts +470 -0
- package/types/slotted-angular-listbox.d.ts.map +1 -0
- package/types/slotted-angular-loading-overlay.d.ts +219 -0
- package/types/slotted-angular-loading-overlay.d.ts.map +1 -0
- package/types/slotted-angular-markdown.d.ts +172 -0
- package/types/slotted-angular-markdown.d.ts.map +1 -0
- package/types/slotted-angular-menu.d.ts +448 -0
- package/types/slotted-angular-menu.d.ts.map +1 -0
- package/types/slotted-angular-menubar.d.ts +90 -0
- package/types/slotted-angular-menubar.d.ts.map +1 -0
- package/types/slotted-angular-message-scroller.d.ts +151 -0
- package/types/slotted-angular-message-scroller.d.ts.map +1 -0
- package/types/slotted-angular-message.d.ts +348 -0
- package/types/slotted-angular-message.d.ts.map +1 -0
- package/types/slotted-angular-multi-select.d.ts +462 -0
- package/types/slotted-angular-multi-select.d.ts.map +1 -0
- package/types/slotted-angular-navigation-menu.d.ts +309 -0
- package/types/slotted-angular-navigation-menu.d.ts.map +1 -0
- package/types/slotted-angular-notification-center.d.ts +318 -0
- package/types/slotted-angular-notification-center.d.ts.map +1 -0
- package/types/slotted-angular-number-field.d.ts +402 -0
- package/types/slotted-angular-number-field.d.ts.map +1 -0
- package/types/slotted-angular-otp-input.d.ts +286 -0
- package/types/slotted-angular-otp-input.d.ts.map +1 -0
- package/types/slotted-angular-page-header.d.ts +334 -0
- package/types/slotted-angular-page-header.d.ts.map +1 -0
- package/types/slotted-angular-page.d.ts +141 -0
- package/types/slotted-angular-page.d.ts.map +1 -0
- package/types/slotted-angular-pagination.d.ts +213 -0
- package/types/slotted-angular-pagination.d.ts.map +1 -0
- package/types/slotted-angular-popover.d.ts +366 -0
- package/types/slotted-angular-popover.d.ts.map +1 -0
- package/types/slotted-angular-progress-indicator.d.ts +312 -0
- package/types/slotted-angular-progress-indicator.d.ts.map +1 -0
- package/types/slotted-angular-prompt-composer.d.ts +242 -0
- package/types/slotted-angular-prompt-composer.d.ts.map +1 -0
- package/types/slotted-angular-prose.d.ts +171 -0
- package/types/slotted-angular-prose.d.ts.map +1 -0
- package/types/slotted-angular-radio-group.d.ts +268 -0
- package/types/slotted-angular-radio-group.d.ts.map +1 -0
- package/types/slotted-angular-rating.d.ts +374 -0
- package/types/slotted-angular-rating.d.ts.map +1 -0
- package/types/slotted-angular-result-state.d.ts +217 -0
- package/types/slotted-angular-result-state.d.ts.map +1 -0
- package/types/slotted-angular-saved-views.d.ts +198 -0
- package/types/slotted-angular-saved-views.d.ts.map +1 -0
- package/types/slotted-angular-scroll-area.d.ts +186 -0
- package/types/slotted-angular-scroll-area.d.ts.map +1 -0
- package/types/slotted-angular-section.d.ts +143 -0
- package/types/slotted-angular-section.d.ts.map +1 -0
- package/types/slotted-angular-segmented-control.d.ts +251 -0
- package/types/slotted-angular-segmented-control.d.ts.map +1 -0
- package/types/slotted-angular-select.d.ts +507 -0
- package/types/slotted-angular-select.d.ts.map +1 -0
- package/types/slotted-angular-side-navigation.d.ts +373 -0
- package/types/slotted-angular-side-navigation.d.ts.map +1 -0
- package/types/slotted-angular-skeleton.d.ts +198 -0
- package/types/slotted-angular-skeleton.d.ts.map +1 -0
- package/types/slotted-angular-slider.d.ts +216 -0
- package/types/slotted-angular-slider.d.ts.map +1 -0
- package/types/slotted-angular-sparkline.d.ts +106 -0
- package/types/slotted-angular-sparkline.d.ts.map +1 -0
- package/types/slotted-angular-split-button.d.ts +180 -0
- package/types/slotted-angular-split-button.d.ts.map +1 -0
- package/types/slotted-angular-splitter.d.ts +206 -0
- package/types/slotted-angular-splitter.d.ts.map +1 -0
- package/types/slotted-angular-stack.d.ts +38 -0
- package/types/slotted-angular-stack.d.ts.map +1 -0
- package/types/slotted-angular-stat-card.d.ts +232 -0
- package/types/slotted-angular-stat-card.d.ts.map +1 -0
- package/types/slotted-angular-status-indicator.d.ts +106 -0
- package/types/slotted-angular-status-indicator.d.ts.map +1 -0
- package/types/slotted-angular-stepper.d.ts +198 -0
- package/types/slotted-angular-stepper.d.ts.map +1 -0
- package/types/slotted-angular-switch.d.ts +243 -0
- package/types/slotted-angular-switch.d.ts.map +1 -0
- package/types/slotted-angular-table-of-contents.d.ts +210 -0
- package/types/slotted-angular-table-of-contents.d.ts.map +1 -0
- package/types/slotted-angular-table.d.ts +888 -0
- package/types/slotted-angular-table.d.ts.map +1 -0
- package/types/slotted-angular-tabs.d.ts +340 -0
- package/types/slotted-angular-tabs.d.ts.map +1 -0
- package/types/slotted-angular-tag.d.ts +279 -0
- package/types/slotted-angular-tag.d.ts.map +1 -0
- package/types/slotted-angular-tags-input.d.ts +302 -0
- package/types/slotted-angular-tags-input.d.ts.map +1 -0
- package/types/slotted-angular-text-field.d.ts +334 -0
- package/types/slotted-angular-text-field.d.ts.map +1 -0
- package/types/slotted-angular-textarea.d.ts +150 -0
- package/types/slotted-angular-textarea.d.ts.map +1 -0
- package/types/slotted-angular-theme.d.ts +26 -0
- package/types/slotted-angular-theme.d.ts.map +1 -0
- package/types/slotted-angular-time-field.d.ts +300 -0
- package/types/slotted-angular-time-field.d.ts.map +1 -0
- package/types/slotted-angular-time-picker.d.ts +260 -0
- package/types/slotted-angular-time-picker.d.ts.map +1 -0
- package/types/slotted-angular-time-range-picker.d.ts +401 -0
- package/types/slotted-angular-time-range-picker.d.ts.map +1 -0
- package/types/slotted-angular-timeline.d.ts +329 -0
- package/types/slotted-angular-timeline.d.ts.map +1 -0
- package/types/slotted-angular-toast.d.ts +340 -0
- package/types/slotted-angular-toast.d.ts.map +1 -0
- package/types/slotted-angular-toggle-group.d.ts +167 -0
- package/types/slotted-angular-toggle-group.d.ts.map +1 -0
- package/types/slotted-angular-toggle.d.ts +106 -0
- package/types/slotted-angular-toggle.d.ts.map +1 -0
- package/types/slotted-angular-toolbar.d.ts +252 -0
- package/types/slotted-angular-toolbar.d.ts.map +1 -0
- package/types/slotted-angular-tooltip.d.ts +388 -0
- package/types/slotted-angular-tooltip.d.ts.map +1 -0
- package/types/slotted-angular-top-navigation.d.ts +442 -0
- package/types/slotted-angular-top-navigation.d.ts.map +1 -0
- package/types/slotted-angular-tour.d.ts +440 -0
- package/types/slotted-angular-tour.d.ts.map +1 -0
- package/types/slotted-angular-transfer.d.ts +296 -0
- package/types/slotted-angular-transfer.d.ts.map +1 -0
- package/types/slotted-angular-tree.d.ts +499 -0
- package/types/slotted-angular-tree.d.ts.map +1 -0
- package/types/slotted-angular-typography.d.ts +89 -0
- package/types/slotted-angular-typography.d.ts.map +1 -0
- package/types/slotted-angular-upload.d.ts +365 -0
- package/types/slotted-angular-upload.d.ts.map +1 -0
- package/types/slotted-angular-visually-hidden.d.ts +19 -0
- package/types/slotted-angular-visually-hidden.d.ts.map +1 -0
- package/types/slotted-angular-wizard.d.ts +441 -0
- package/types/slotted-angular-wizard.d.ts.map +1 -0
- package/types/slotted-angular.d.ts +3 -0
- package/types/slotted-angular.d.ts.map +1 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken, Signal, OnInit, AfterViewInit } from '@angular/core';
|
|
3
|
+
import * as _slotted_core_form from '@slotted/core/form';
|
|
4
|
+
import { FormErrorEntry, FormErrors, FormErrorInput } from '@slotted/core/form';
|
|
5
|
+
import * as _slotted_core_i18n from '@slotted/core/i18n';
|
|
6
|
+
import { PartialMessages, FormMessages } from '@slotted/core/i18n';
|
|
7
|
+
import { ChangeRequest } from '@slotted/core/state';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* When the form checks its own controls. `submit` is the default and
|
|
11
|
+
* re-validates on every change afterwards: telling a reader an answer is wrong
|
|
12
|
+
* before they have finished writing it is noise, and telling them nothing after
|
|
13
|
+
* they have fixed it is worse.
|
|
14
|
+
*/
|
|
15
|
+
type FormValidate = 'submit' | 'blur' | 'change' | 'none';
|
|
16
|
+
/** Where focus goes after a submit that found something wrong. */
|
|
17
|
+
type FormErrorFocus = 'summary' | 'control' | 'none';
|
|
18
|
+
/** Whether the family renders the summary itself. */
|
|
19
|
+
type FormSummaryMode = 'auto' | 'none';
|
|
20
|
+
/** How the action row is arranged along the inline axis. */
|
|
21
|
+
type FormActionsAlign = 'end' | 'start' | 'between' | 'stretch';
|
|
22
|
+
interface FormDefaults {
|
|
23
|
+
align: FormActionsAlign;
|
|
24
|
+
errorFocus: FormErrorFocus;
|
|
25
|
+
nativeValidation: boolean;
|
|
26
|
+
summary: FormSummaryMode;
|
|
27
|
+
summaryDescription: string | undefined;
|
|
28
|
+
validate: FormValidate;
|
|
29
|
+
}
|
|
30
|
+
declare const FORM_DEFAULTS: InjectionToken<FormDefaults>;
|
|
31
|
+
/**
|
|
32
|
+
* An application decides once how its forms behave: when they validate, where
|
|
33
|
+
* focus goes after a failed submit, and how its action row is arranged. A form
|
|
34
|
+
* that states any of them itself still wins. The summary's heading comes from
|
|
35
|
+
* the language in force (`provideSlotted`).
|
|
36
|
+
*/
|
|
37
|
+
declare function provideFormDefaults(defaults: Partial<FormDefaults>): {
|
|
38
|
+
provide: InjectionToken<FormDefaults>;
|
|
39
|
+
useFactory: () => FormDefaults;
|
|
40
|
+
};
|
|
41
|
+
declare function injectFormDefaults(): FormDefaults;
|
|
42
|
+
/** One validation failure Angular reported, as the registry receives it. */
|
|
43
|
+
interface FormErrorMessageContext {
|
|
44
|
+
/** The `name` the control is submitted under, which is the key in the group. */
|
|
45
|
+
name: string;
|
|
46
|
+
/** The key `AbstractControl.errors` used — `required`, `minlength`, and so on. */
|
|
47
|
+
key: string;
|
|
48
|
+
/** Whatever the validator put beside the key. */
|
|
49
|
+
detail: unknown;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* How a Reactive Forms validation failure the application's own validator
|
|
53
|
+
* reports becomes a sentence.
|
|
54
|
+
*
|
|
55
|
+
* Angular's validators report a key and a shape — `{ required: true }`,
|
|
56
|
+
* `{ minlength: { requiredLength: 8, actualLength: 3 } }` — and never a
|
|
57
|
+
* message. The built-in keys (`required`, `email`, `min`, `max`, `minlength`,
|
|
58
|
+
* `maxlength`, `pattern`) are written by the `form` catalog's `errors.*`
|
|
59
|
+
* messages in the language in force; a validator the application adds names
|
|
60
|
+
* its own message here, and an entry for a built-in key replaces the catalog's.
|
|
61
|
+
*/
|
|
62
|
+
type FormErrorMessages = Record<string, (context: FormErrorMessageContext) => string>;
|
|
63
|
+
declare const SL_FORM_ERROR_MESSAGES: InjectionToken<FormErrorMessages>;
|
|
64
|
+
/** Names the sentences the application's own validators are written as. */
|
|
65
|
+
declare function provideFormErrorMessages(messages: FormErrorMessages): {
|
|
66
|
+
provide: InjectionToken<FormErrorMessages>;
|
|
67
|
+
useValue: FormErrorMessages;
|
|
68
|
+
};
|
|
69
|
+
declare function injectFormErrorMessages(): FormErrorMessages;
|
|
70
|
+
/**
|
|
71
|
+
* What the summary needs from the form around it.
|
|
72
|
+
*
|
|
73
|
+
* It is an abstract class rather than an import so the two classes can depend
|
|
74
|
+
* on each other without a cycle — the shape `field` and `text-field` already
|
|
75
|
+
* have.
|
|
76
|
+
*/
|
|
77
|
+
declare abstract class SlFormOwner {
|
|
78
|
+
abstract readonly entries: Signal<readonly FormErrorEntry[]>;
|
|
79
|
+
abstract readonly errors: Signal<FormErrors>;
|
|
80
|
+
abstract readonly summaryId: Signal<string>;
|
|
81
|
+
abstract readonly resolvedSummaryTitle: Signal<string>;
|
|
82
|
+
abstract readonly resolvedSummaryDescription: Signal<string | undefined>;
|
|
83
|
+
abstract readonly resolvedAlign: Signal<FormActionsAlign>;
|
|
84
|
+
/** Called by whichever summary is on the page, so focus can reach the region. */
|
|
85
|
+
abstract registerSummary(element: HTMLElement | null): void;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The row a form's actions stand in.
|
|
90
|
+
*
|
|
91
|
+
* `inline` can end-align a row of buttons. What it cannot do without a query
|
|
92
|
+
* the consumer writes for every form is the reflow: below the form's own
|
|
93
|
+
* container width every action takes the whole width, in a column, with the
|
|
94
|
+
* primary one first — a reader's thumb is at the bottom of a phone and their
|
|
95
|
+
* eye at the end of a row.
|
|
96
|
+
*/
|
|
97
|
+
declare class SlFormActions {
|
|
98
|
+
/** Defaults to the form's own `align`, then to the token, then to `end`. */
|
|
99
|
+
readonly align: _angular_core.InputSignal<FormActionsAlign | undefined>;
|
|
100
|
+
private readonly form;
|
|
101
|
+
protected readonly resolvedAlign: _angular_core.Signal<FormActionsAlign>;
|
|
102
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlFormActions, never>;
|
|
103
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlFormActions, "[slFormActions]", ["slFormActions"], { "align": { "alias": "align"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The summary of everything wrong with the form: a focusable region with a
|
|
108
|
+
* heading, and a link per error pointing at the control it is about.
|
|
109
|
+
*
|
|
110
|
+
* It is the GOV.UK error summary, item for item — "move keyboard focus to the
|
|
111
|
+
* error summary", "include the heading", "link to each of the answers that have
|
|
112
|
+
* validation errors", "make sure the error messages in the error summary are
|
|
113
|
+
* worded the same as those which appear next to the inputs". The last one is
|
|
114
|
+
* free here: one map feeds the summary and the field.
|
|
115
|
+
*
|
|
116
|
+
* The form renders this itself under `summary="auto"`. A consumer who wants it
|
|
117
|
+
* somewhere else writes `summary="none"` and puts `slFormSummary` on their own
|
|
118
|
+
* element.
|
|
119
|
+
*/
|
|
120
|
+
declare class SlFormSummary implements AfterViewInit {
|
|
121
|
+
protected readonly form: SlFormOwner;
|
|
122
|
+
private readonly element;
|
|
123
|
+
ngAfterViewInit(): void;
|
|
124
|
+
/**
|
|
125
|
+
* The fragment is not followed. A link that navigated would write the
|
|
126
|
+
* control's identifier into the address bar and add an entry to the history
|
|
127
|
+
* of a page that never left; focusing the control is the whole of what the
|
|
128
|
+
* link is for, and the browser scrolls it into view with the focus.
|
|
129
|
+
*/
|
|
130
|
+
protected focus(event: Event, id: string): void;
|
|
131
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlFormSummary, never>;
|
|
132
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlFormSummary, "[slFormSummary]", ["slFormSummary"], {}, {}, never, never, true, never>;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* A form, its errors and its row of actions.
|
|
136
|
+
*
|
|
137
|
+
* **It owns the errors and nothing else.** `docs/component-features.md` § 6 puts
|
|
138
|
+
* the boundary there: the family coordinates submission, validation, global
|
|
139
|
+
* messages and focus "sem possuir o estado de cada framework". Values come from
|
|
140
|
+
* `FormData`, validity from `checkValidity()` and from Reactive Forms, and the
|
|
141
|
+
* values themselves stay with whichever of the two owns them.
|
|
142
|
+
*
|
|
143
|
+
* **`novalidate` is written, and constraint validation still runs.** The
|
|
144
|
+
* attribute stops the browser drawing its own bubble beside a control whose
|
|
145
|
+
* error the `field` is already showing; `checkValidity()` is called explicitly
|
|
146
|
+
* and each control's `validationMessage` is the platform's localized string.
|
|
147
|
+
*
|
|
148
|
+
* **Reactive Forms is the second source.** When there is a `ControlContainer`,
|
|
149
|
+
* every control is marked touched at submit and each failing one becomes a
|
|
150
|
+
* sentence: a built-in validator's through the catalog's `errors.*` messages,
|
|
151
|
+
* an application's own through `SL_FORM_ERROR_MESSAGES`.
|
|
152
|
+
*
|
|
153
|
+
* **Signal Forms needs nothing here.** Angular 22's `[field]` binds a control
|
|
154
|
+
* through its `ControlValueAccessor`, which every Slotted control provides, so
|
|
155
|
+
* they work under it today and this family adds no second integration.
|
|
156
|
+
*/
|
|
157
|
+
declare class SlForm implements SlFormOwner, OnInit {
|
|
158
|
+
/**
|
|
159
|
+
* Present means the consumer owns the error map, for the life of the
|
|
160
|
+
* component. Keyed by the `name` attribute of the control each error is about.
|
|
161
|
+
*/
|
|
162
|
+
readonly errorsInput: _angular_core.InputSignal<FormErrorInput | undefined>;
|
|
163
|
+
/** The errors an uncontrolled form starts from, read once. */
|
|
164
|
+
readonly defaultErrors: _angular_core.InputSignal<FormErrorInput | undefined>;
|
|
165
|
+
readonly validate: _angular_core.InputSignal<FormValidate | undefined>;
|
|
166
|
+
readonly errorFocus: _angular_core.InputSignal<FormErrorFocus | undefined>;
|
|
167
|
+
readonly summary: _angular_core.InputSignal<FormSummaryMode | undefined>;
|
|
168
|
+
readonly summaryDescription: _angular_core.InputSignal<string | undefined>;
|
|
169
|
+
readonly align: _angular_core.InputSignal<FormActionsAlign | undefined>;
|
|
170
|
+
/**
|
|
171
|
+
* Words laid over the catalog of the language in force, key by key: the
|
|
172
|
+
* summary's heading (`summaryTitle`) and the built-in validators' sentences
|
|
173
|
+
* (`errors.*`).
|
|
174
|
+
*/
|
|
175
|
+
readonly messages: _angular_core.InputSignal<PartialMessages<FormMessages> | undefined>;
|
|
176
|
+
/** Lets the browser draw its own validation bubble. Off by default. */
|
|
177
|
+
readonly nativeValidation: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
|
|
178
|
+
/** Marks the form and every control in it as unavailable. */
|
|
179
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
180
|
+
/**
|
|
181
|
+
* Marks the form busy for work the family did not start — a mutation a
|
|
182
|
+
* consumer's own client is running. It is merged with the family's own
|
|
183
|
+
* submission, so either one puts the root in its busy state.
|
|
184
|
+
*/
|
|
185
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
186
|
+
/**
|
|
187
|
+
* Registers a `beforeunload` guard while anything in the form has been
|
|
188
|
+
* edited. Off by default: a guard nobody asked for is a trap.
|
|
189
|
+
*/
|
|
190
|
+
readonly guardUnsaved: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
191
|
+
/** One output for one transition, carrying the reason and `cancel()`. */
|
|
192
|
+
readonly errorsChange: _angular_core.OutputEmitterRef<ChangeRequest<FormErrors>>;
|
|
193
|
+
/**
|
|
194
|
+
* Emitted when the form submits and nothing is wrong with it. The values are
|
|
195
|
+
* read from `FormData`, and `errors` is how a handler publishes what a server
|
|
196
|
+
* answered.
|
|
197
|
+
*/
|
|
198
|
+
readonly formSubmit: _angular_core.OutputEmitterRef<{
|
|
199
|
+
values: Record<string, FormDataEntryValue | FormDataEntryValue[]>;
|
|
200
|
+
event: SubmitEvent;
|
|
201
|
+
/** Publishes a server's answer, and moves focus the way a failed submit does. */
|
|
202
|
+
errors: (errors: FormErrorInput) => void;
|
|
203
|
+
/** Holds the form in its busy state until the promise settles. */
|
|
204
|
+
pending: (work: Promise<FormErrorInput | void>) => void;
|
|
205
|
+
}>;
|
|
206
|
+
private readonly element;
|
|
207
|
+
private readonly defaults;
|
|
208
|
+
private readonly errorMessages;
|
|
209
|
+
/** The family's words in the language in force, with this form's `messages` laid over them. */
|
|
210
|
+
readonly t: _slotted_core_i18n.FamilyTranslator<FormMessages>;
|
|
211
|
+
/** The Reactive Forms group around this element, when a consumer wrote one. */
|
|
212
|
+
private readonly container;
|
|
213
|
+
private readonly writtenNoValidate;
|
|
214
|
+
private readonly own;
|
|
215
|
+
private readonly controls;
|
|
216
|
+
private summaryElement;
|
|
217
|
+
/** Set when a publish should be followed by the focus a failed submit moves. */
|
|
218
|
+
private pendingFocus;
|
|
219
|
+
private readonly ownSubmitting;
|
|
220
|
+
/** Either the family's own submission or a consumer's own work. */
|
|
221
|
+
protected readonly submitting: _angular_core.Signal<boolean>;
|
|
222
|
+
private readonly submitted;
|
|
223
|
+
private readonly external;
|
|
224
|
+
private readonly controlled;
|
|
225
|
+
readonly errors: _angular_core.Signal<FormErrors>;
|
|
226
|
+
readonly entries: _angular_core.Signal<_slotted_core_form.FormErrorEntry[]>;
|
|
227
|
+
protected readonly hasAnyError: _angular_core.Signal<boolean>;
|
|
228
|
+
readonly summaryId: _angular_core.WritableSignal<string>;
|
|
229
|
+
readonly resolvedSummaryTitle: _angular_core.Signal<string>;
|
|
230
|
+
readonly resolvedSummaryDescription: _angular_core.Signal<string | undefined>;
|
|
231
|
+
readonly resolvedAlign: _angular_core.Signal<FormActionsAlign>;
|
|
232
|
+
protected readonly resolvedValidate: _angular_core.Signal<FormValidate>;
|
|
233
|
+
protected readonly resolvedErrorFocus: _angular_core.Signal<FormErrorFocus>;
|
|
234
|
+
protected readonly resolvedSummary: _angular_core.Signal<FormSummaryMode>;
|
|
235
|
+
protected readonly resolvedNativeValidation: _angular_core.Signal<boolean>;
|
|
236
|
+
protected readonly showsOwnSummary: _angular_core.Signal<boolean>;
|
|
237
|
+
constructor();
|
|
238
|
+
ngOnInit(): void;
|
|
239
|
+
/**
|
|
240
|
+
* The summary says when it exists, and takes the focus a failed submit asked
|
|
241
|
+
* for. The move waits for the region rather than racing it: the errors and
|
|
242
|
+
* the element that shows them are published in the same change, and a
|
|
243
|
+
* `focus()` called before the region rendered would land on nothing.
|
|
244
|
+
*/
|
|
245
|
+
registerSummary(element: HTMLElement | null): void;
|
|
246
|
+
/** Runs validation now and publishes what it found. */
|
|
247
|
+
validateNow(): FormErrors;
|
|
248
|
+
/** Submits as though the submit button had been pressed. */
|
|
249
|
+
submit(): void;
|
|
250
|
+
/** Resets the controls and clears the errors. */
|
|
251
|
+
reset(): void;
|
|
252
|
+
/** Moves focus where a failed submit would have moved it. */
|
|
253
|
+
focusFirstError(): void;
|
|
254
|
+
protected onSubmit(event: SubmitEvent): void;
|
|
255
|
+
protected onReset(): void;
|
|
256
|
+
/**
|
|
257
|
+
* A server error is dropped when the control it names is edited. After a
|
|
258
|
+
* failed submit under `validate="change"`, the whole form is checked again
|
|
259
|
+
* instead, because a reader who has seen the list is fixing it.
|
|
260
|
+
*/
|
|
261
|
+
protected onInput(event: Event): void;
|
|
262
|
+
/**
|
|
263
|
+
* On blur only the control that lost focus is checked. Running the whole form
|
|
264
|
+
* would tell a reader that six fields they have not reached yet are wrong,
|
|
265
|
+
* which is the noise `validate="submit"` exists to avoid.
|
|
266
|
+
*/
|
|
267
|
+
protected onFocusOut(event: Event): void;
|
|
268
|
+
/**
|
|
269
|
+
* Three sources, latest last: whatever a server sent, the platform's own
|
|
270
|
+
* constraint validation, and Reactive Forms.
|
|
271
|
+
*/
|
|
272
|
+
private collect;
|
|
273
|
+
/**
|
|
274
|
+
* Every failing control in the group around this form, as a sentence. Angular
|
|
275
|
+
* reports a key and a shape and never a message, because a message is the
|
|
276
|
+
* application's and so is its language; the registry is where it is written.
|
|
277
|
+
*/
|
|
278
|
+
private angularErrors;
|
|
279
|
+
/**
|
|
280
|
+
* The sentence for one of Angular's own validators, from the catalog; for a
|
|
281
|
+
* key the catalog does not know, nothing — the application's validator names
|
|
282
|
+
* its own message through `SL_FORM_ERROR_MESSAGES`.
|
|
283
|
+
*/
|
|
284
|
+
private builtInMessage;
|
|
285
|
+
private readControls;
|
|
286
|
+
private publish;
|
|
287
|
+
/**
|
|
288
|
+
* The guard nobody else ships. It is off by default, because a page that
|
|
289
|
+
* refuses to close after a reader typed one character is a trap.
|
|
290
|
+
*/
|
|
291
|
+
private attachUnloadGuard;
|
|
292
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlForm, never>;
|
|
293
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlForm, "form[slForm]", ["slForm"], { "errorsInput": { "alias": "errors"; "required": false; "isSignal": true; }; "defaultErrors": { "alias": "defaultErrors"; "required": false; "isSignal": true; }; "validate": { "alias": "validate"; "required": false; "isSignal": true; }; "errorFocus": { "alias": "errorFocus"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "summaryDescription": { "alias": "summaryDescription"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "nativeValidation": { "alias": "nativeValidation"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "guardUnsaved": { "alias": "guardUnsaved"; "required": false; "isSignal": true; }; }, { "errorsChange": "errorsChange"; "formSubmit": "formSubmit"; }, never, ["*"], true, never>;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export { FORM_DEFAULTS, SL_FORM_ERROR_MESSAGES, SlForm, SlFormActions, SlFormOwner, SlFormSummary, injectFormDefaults, injectFormErrorMessages, provideFormDefaults, provideFormErrorMessages };
|
|
297
|
+
export type { FormActionsAlign, FormDefaults, FormErrorFocus, FormErrorMessageContext, FormErrorMessages, FormSummaryMode, FormValidate };
|
|
298
|
+
//# sourceMappingURL=slotted-angular-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotted-angular-form.d.ts","sources":["../../form/src/form-defaults.ts","../../form/src/form-actions.ts","../../form/src/form.ts"],"mappings":";;;;;;;;AAIA;;;;;AAKG;AACG,KAAM,YAAY;AAExB;AACM,KAAM,cAAc;AAE1B;KACY,eAAe;AAE3B;AACM,KAAM,gBAAgB;UAEX,YAAY;WACpB,gBAAgB;gBACX,cAAc;;aAEjB,eAAe;AACxB;cACU,YAAY;AACvB;AAWD,cAAa,aAAa,EAAA,cAAA,CAAA,YAAA;AAK1B;;;;;AAKG;AACH,iBAAgB,mBAAmB,WAAW,OAAO,CAAC,YAAY;;sBAG9C,YAAY;AAE/B;AAED,iBAAgB,kBAAkB,IAAI,YAAY;AAIlD;UACiB,uBAAuB;;;;;;;AAOvC;AAED;;;;;;;;;;AAUG;AACG,KAAM,iBAAiB,GAAG,MAAM,mBAAmB,uBAAuB;AAEhF,cAAa,sBAAsB,EAAA,cAAA,CAAA,iBAAA;AAKnC;AACA,iBAAgB,wBAAwB,WAAW,iBAAiB;;;AAEnE;AAED,iBAAgB,uBAAuB,IAAI,iBAAiB;AAI5D;;;;;;AAMG;AACH,uBAAsB,WAAW;+BACJ,MAAM,UAAU,cAAc;8BAC/B,MAAM,CAAC,UAAU;iCACd,MAAM;4CACK,MAAM;kDACA,MAAM;qCACnB,MAAM,CAAC,gBAAgB;;sCAEtB,WAAW;AAC9C;;AC7GD;;;;;;;;AAQG;AACH,cAWa,aAAa;;oBAEV,aAAA,CAAA,WAAA,CAAA,gBAAA;AAEd;AAEA,sCAAgC,aAAA,CAAA,MAAA,CAAA,gBAAA;oDANrB,aAAa;sDAAb,aAAa;AASzB;;ACoBD;;;;;;;;;;;;;AAaG;AACH,cAwCa,aAAc,YAAW,aAAa;AACjD,6BAAuB,WAAA;AACvB;;AAMA;;;;;AAKG;2BACoB,KAAK;oDAdjB,aAAa;sDAAb,aAAa;AAoBzB;AAED;;;;;;;;;;;;;;;;;;;;;;AAsBG;AACH,cA2Ba,MAAO,YAAW,WAAW,EAAE,MAAM;AAChD;;;AAGG;0BACiB,aAAA,CAAA,WAAA,CAAA,cAAA;;4BAEE,aAAA,CAAA,WAAA,CAAA,cAAA;uBAEL,aAAA,CAAA,WAAA,CAAA,YAAA;yBACE,aAAA,CAAA,WAAA,CAAA,cAAA;sBACH,aAAA,CAAA,WAAA,CAAA,eAAA;iCACW,aAAA,CAAA,WAAA;oBACb,aAAA,CAAA,WAAA,CAAA,gBAAA;AACd;;;;AAIG;uBACc,aAAA,CAAA,WAAA,CAAA,eAAA,CAAA,YAAA;;+BAEQ,aAAA,CAAA,wBAAA;;uBAIR,aAAA,CAAA,wBAAA;AACjB;;;;AAIG;sBACa,aAAA,CAAA,wBAAA;AAChB;;;AAGG;2BACkB,aAAA,CAAA,wBAAA;;2BAGA,aAAA,CAAA,gBAAA,CAAA,aAAA,CAAA,UAAA;AACrB;;;;AAIG;AACH,yBAAmB,aAAA,CAAA,gBAAA;AACT,gBAAA,MAAM,SAAS,kBAAkB,GAAG,kBAAkB;eACvD,WAAW;;AAEV,yBAAS,cAAc;;wBAEf,OAAO,CAAC,cAAc;AACnC;AAEL;AACA;AACA;;gBAEU,kBAAA,CAAA,gBAAA,CAAA,YAAA;;AAEV;AACA;AAIA;AACA;;;;AAIA;;AAEA,mCAA6B,aAAA,CAAA,MAAA;AAC7B;AAEA;AACA;qBAEe,aAAA,CAAA,MAAA,CAAA,UAAA;sBACC,aAAA,CAAA,MAAA,CAAA,kBAAA,CAAA,cAAA;AAChB,oCAA8B,aAAA,CAAA,MAAA;wBAEZ,aAAA,CAAA,cAAA;mCACW,aAAA,CAAA,MAAA;yCACM,aAAA,CAAA,MAAA;4BAGb,aAAA,CAAA,MAAA,CAAA,gBAAA;AACtB,yCAAmC,aAAA,CAAA,MAAA,CAAA,YAAA;AACnC,2CAAqC,aAAA,CAAA,MAAA,CAAA,cAAA;AAGrC,wCAAkC,aAAA,CAAA,MAAA,CAAA,eAAA;AAClC,iDAA2C,aAAA,CAAA,MAAA;AAK3C,wCAAkC,aAAA,CAAA,MAAA;;;AAalC;;;;;AAKG;AACH,6BAAyB,WAAW;;AAQpC,mBAAe,UAAU;;;;;;;AA+BzB,8BAA0B,WAAW;AA6CrC;AAKA;;;;AAIG;AACH,6BAAyB,KAAK;AAY9B;;;;AAIG;AACH,gCAA4B,KAAK;AAcjC;;;AAGG;AACH;AAIA;;;;AAIG;AACH;AAsBA;;;;AAIG;AACH;AAsBA;AAIA;AAiCA;;;AAGG;AACH;oDAzVW,MAAM;sDAAN,MAAM;AAmWlB;;","names":[]}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import * as _slotted_core_i18n from '@slotted/core/i18n';
|
|
2
|
+
import { PartialMessages, FullscreenMessages } from '@slotted/core/i18n';
|
|
3
|
+
import * as _angular_core from '@angular/core';
|
|
4
|
+
import { InjectionToken, AfterViewInit } from '@angular/core';
|
|
5
|
+
import { FullscreenPolicy, FullscreenNavigationUI, FullscreenError, FullscreenMode } from '@slotted/core/fullscreen';
|
|
6
|
+
export { FullscreenError, FullscreenMode, FullscreenNavigationUI, FullscreenPolicy } from '@slotted/core/fullscreen';
|
|
7
|
+
import { ChangeRequest } from '@slotted/core/state';
|
|
8
|
+
|
|
9
|
+
type FullscreenTriggerSize = 'sm' | 'md' | 'lg';
|
|
10
|
+
/** `ghost` inside a bar that is already framed; `outline` over content. */
|
|
11
|
+
type FullscreenTriggerVariant = 'ghost' | 'outline';
|
|
12
|
+
interface FullscreenDefaults {
|
|
13
|
+
mode: FullscreenPolicy;
|
|
14
|
+
navigationUI: FullscreenNavigationUI;
|
|
15
|
+
size: FullscreenTriggerSize;
|
|
16
|
+
variant: FullscreenTriggerVariant;
|
|
17
|
+
}
|
|
18
|
+
declare const FULLSCREEN_DEFAULTS: InjectionToken<FullscreenDefaults>;
|
|
19
|
+
/**
|
|
20
|
+
* An application decides once whether its regions ask the platform and how the
|
|
21
|
+
* control is drawn; a region or a control that states any of them itself still
|
|
22
|
+
* wins. The words come from the language in force (`provideSlotted`).
|
|
23
|
+
*/
|
|
24
|
+
declare function provideFullscreenDefaults(defaults: Partial<FullscreenDefaults>): {
|
|
25
|
+
provide: InjectionToken<FullscreenDefaults>;
|
|
26
|
+
useFactory: () => FullscreenDefaults;
|
|
27
|
+
};
|
|
28
|
+
declare function injectFullscreenDefaults(): FullscreenDefaults;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Why the state moved. `escape` is the leave nobody asked for: `Escape` in the
|
|
32
|
+
* layout, or the agent's own exit in native — a key, F11, its interface.
|
|
33
|
+
*/
|
|
34
|
+
type FullscreenReason = 'pointer' | 'keyboard' | 'escape' | 'programmatic';
|
|
35
|
+
/**
|
|
36
|
+
* A region the reader can give the whole screen: by the Fullscreen API where
|
|
37
|
+
* the page may ask, fixed over the page where it may not. At rest it paints
|
|
38
|
+
* nothing — it is the container the consumer already had — so it is a
|
|
39
|
+
* directive on that container rather than a wrapper around it.
|
|
40
|
+
*
|
|
41
|
+
* `[(fullscreen)]` holds the state; every move is first asked through
|
|
42
|
+
* `fullscreenChangeRequest`, whose `cancel()` refuses it. `Escape` in native
|
|
43
|
+
* full screen belongs to the agent, and no listener is written for it; the
|
|
44
|
+
* leave arrives as a request with the reason `escape`, and the agent has
|
|
45
|
+
* already left by then.
|
|
46
|
+
*/
|
|
47
|
+
declare class SlFullscreen {
|
|
48
|
+
readonly fullscreen: _angular_core.ModelSignal<boolean>;
|
|
49
|
+
/** The value an uncontrolled region starts from, read once. */
|
|
50
|
+
readonly defaultFullscreen: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
51
|
+
/** `auto` asks the platform and falls back to the layout; `layout` never asks. */
|
|
52
|
+
readonly policy: _angular_core.InputSignal<FullscreenPolicy | undefined>;
|
|
53
|
+
readonly navigationUI: _angular_core.InputSignal<FullscreenNavigationUI | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* Words laid over the catalog of the language in force, key by key: the
|
|
56
|
+
* control's (`enter`, `exit`) and the announcements (`entered`, `exited`).
|
|
57
|
+
*/
|
|
58
|
+
readonly messages: _angular_core.InputSignal<PartialMessages<FullscreenMessages> | undefined>;
|
|
59
|
+
readonly fullscreenChangeRequest: _angular_core.OutputEmitterRef<ChangeRequest<boolean>>;
|
|
60
|
+
/** The platform was absent or refused. The region is in the layout by then. */
|
|
61
|
+
readonly fullscreenError: _angular_core.OutputEmitterRef<FullscreenError>;
|
|
62
|
+
private readonly defaults;
|
|
63
|
+
private readonly element;
|
|
64
|
+
/** The way that answered, or `null` while the region is not full screen. */
|
|
65
|
+
readonly mode: _angular_core.WritableSignal<FullscreenMode | null>;
|
|
66
|
+
/** Whether the page may ask for native full screen. `false` until rendered. */
|
|
67
|
+
readonly supported: _angular_core.WritableSignal<boolean>;
|
|
68
|
+
/** The last refusal, cleared on the next entry. */
|
|
69
|
+
readonly error: _angular_core.WritableSignal<FullscreenError | null>;
|
|
70
|
+
/** The family's words in the language in force, with this region's `messages` laid over them. */
|
|
71
|
+
readonly t: _slotted_core_i18n.FamilyTranslator<FullscreenMessages>;
|
|
72
|
+
private controller;
|
|
73
|
+
private agentLeft;
|
|
74
|
+
constructor();
|
|
75
|
+
/** Asks to enter. From code the reason is `programmatic`. */
|
|
76
|
+
enter(reason?: FullscreenReason, source?: unknown): void;
|
|
77
|
+
exit(reason?: FullscreenReason, source?: unknown): void;
|
|
78
|
+
toggle(reason?: FullscreenReason, source?: unknown): void;
|
|
79
|
+
/**
|
|
80
|
+
* The request, and on acceptance the entry itself — inside the handler that
|
|
81
|
+
* asked, because the agent grants native full screen only to a request made
|
|
82
|
+
* during a gesture.
|
|
83
|
+
*/
|
|
84
|
+
private request;
|
|
85
|
+
private apply;
|
|
86
|
+
private options;
|
|
87
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlFullscreen, never>;
|
|
88
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlFullscreen, "[slFullscreen]", ["slFullscreen"], { "fullscreen": { "alias": "fullscreen"; "required": false; "isSignal": true; }; "defaultFullscreen": { "alias": "defaultFullscreen"; "required": false; "isSignal": true; }; "policy": { "alias": "mode"; "required": false; "isSignal": true; }; "navigationUI": { "alias": "navigationUI"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; }, { "fullscreen": "fullscreenChange"; "fullscreenChangeRequest": "fullscreenChangeRequest"; "fullscreenError": "fullscreenError"; }, never, never, true, never>;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* The control. Its words and its mark say what the press does next and change
|
|
92
|
+
* with the state, so it is not a toggle and writes no `aria-pressed` (APG
|
|
93
|
+
* Button pattern). Inside `[slFullscreen]` it reaches the region by injection;
|
|
94
|
+
* anywhere else it takes the region's instance: `[slFullscreenTrigger]="fs"`.
|
|
95
|
+
*
|
|
96
|
+
* Projected content replaces the words, and an element marked `slFullscreenIcon`
|
|
97
|
+
* replaces the mark; both can read `fs.fullscreen()` to follow the state.
|
|
98
|
+
*/
|
|
99
|
+
declare class SlFullscreenTrigger implements AfterViewInit {
|
|
100
|
+
/** The region, when the control is not inside it. */
|
|
101
|
+
readonly target: _angular_core.InputSignal<"" | SlFullscreen | undefined>;
|
|
102
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
103
|
+
readonly iconOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
104
|
+
readonly size: _angular_core.InputSignal<FullscreenTriggerSize | undefined>;
|
|
105
|
+
readonly variant: _angular_core.InputSignal<FullscreenTriggerVariant | undefined>;
|
|
106
|
+
private readonly defaults;
|
|
107
|
+
private readonly own;
|
|
108
|
+
private readonly enclosing;
|
|
109
|
+
private readonly element;
|
|
110
|
+
private readonly destroyRef;
|
|
111
|
+
/** A `type` the consumer wrote survives, read before the host binding writes it. */
|
|
112
|
+
private readonly writtenType;
|
|
113
|
+
protected readonly type: string;
|
|
114
|
+
readonly region: _angular_core.Signal<SlFullscreen | null>;
|
|
115
|
+
readonly on: _angular_core.Signal<boolean>;
|
|
116
|
+
protected readonly label: _angular_core.Signal<string>;
|
|
117
|
+
readonly resolvedSize: _angular_core.Signal<FullscreenTriggerSize>;
|
|
118
|
+
readonly resolvedVariant: _angular_core.Signal<FullscreenTriggerVariant>;
|
|
119
|
+
/**
|
|
120
|
+
* After the view: a `(click)` the consumer wrote on the same element is
|
|
121
|
+
* bound first, so its `preventDefault()` is read before the family acts.
|
|
122
|
+
*/
|
|
123
|
+
ngAfterViewInit(): void;
|
|
124
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlFullscreenTrigger, never>;
|
|
125
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlFullscreenTrigger, "button[slFullscreenTrigger]", ["slFullscreenTrigger"], { "target": { "alias": "slFullscreenTrigger"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, ["[slFullscreenIcon]", "*"], true, never>;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* The part that takes the height the other children of the region leave
|
|
129
|
+
* while it is full screen — a chart under its header, a document under its
|
|
130
|
+
* toolbar — and whose first child fills it. A direct child of the region; at
|
|
131
|
+
* rest it is the element the consumer wrote, unchanged.
|
|
132
|
+
*/
|
|
133
|
+
declare class SlFullscreenContent {
|
|
134
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlFullscreenContent, never>;
|
|
135
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlFullscreenContent, "[slFullscreenContent]", never, {}, {}, never, never, true, never>;
|
|
136
|
+
}
|
|
137
|
+
/** Marks the consumer's own mark for the control's icon part. */
|
|
138
|
+
declare class SlFullscreenIcon {
|
|
139
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlFullscreenIcon, never>;
|
|
140
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlFullscreenIcon, "[slFullscreenIcon]", never, {}, {}, never, never, true, never>;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export { FULLSCREEN_DEFAULTS, SlFullscreen, SlFullscreenContent, SlFullscreenIcon, SlFullscreenTrigger, injectFullscreenDefaults, provideFullscreenDefaults };
|
|
144
|
+
export type { FullscreenDefaults, FullscreenReason, FullscreenTriggerSize, FullscreenTriggerVariant };
|
|
145
|
+
//# sourceMappingURL=slotted-angular-fullscreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotted-angular-fullscreen.d.ts","sources":["../../fullscreen/src/fullscreen-defaults.ts","../../fullscreen/src/fullscreen.ts"],"mappings":";;;;;;;;AAGM,KAAM,qBAAqB;AAEjC;KACY,wBAAwB;UAEnB,kBAAkB;UAC3B,gBAAgB;kBACR,sBAAsB;UAC9B,qBAAqB;aAClB,wBAAwB;AAClC;AASD,cAAa,mBAAmB,EAAA,cAAA,CAAA,kBAAA;AAKhC;;;;AAIG;AACH,iBAAgB,yBAAyB,WAAW,OAAO,CAAC,kBAAkB;;sBAG1D,kBAAkB;AAErC;AAED,iBAAgB,wBAAwB,IAAI,kBAAkB;;ACG9D;;;AAGG;AACG,KAAM,gBAAgB;AAE5B;;;;;;;;;;;AAWG;AACH,cAWa,YAAY;yBACJ,aAAA,CAAA,WAAA;;gCAEO,aAAA,CAAA,wBAAA;;qBAEX,aAAA,CAAA,WAAA,CAAA,gBAAA;2BACM,aAAA,CAAA,WAAA,CAAA,sBAAA;AACrB;;;AAGG;uBACc,aAAA,CAAA,WAAA,CAAA,eAAA,CAAA,kBAAA;sCAEe,aAAA,CAAA,gBAAA,CAAA,aAAA;;8BAER,aAAA,CAAA,gBAAA,CAAA,eAAA;AAExB;AACA;;mBAGa,aAAA,CAAA,cAAA,CAAA,cAAA;;wBAEK,aAAA,CAAA,cAAA;;oBAEJ,aAAA,CAAA,cAAA,CAAA,eAAA;;gBAEJ,kBAAA,CAAA,gBAAA,CAAA,kBAAA;;;;;mBAsCI,gBAAiC;kBAIlC,gBAAiC;oBAI/B,gBAAiC;AAIhD;;;;AAIG;AACH;AAiBA;AAYA;oDA/GW,YAAY;sDAAZ,YAAY;AAiIxB;AAUD;;;;;;;;AAQG;AACH,cA4Ba,mBAAoB,YAAW,aAAa;;qBAExC,aAAA,CAAA,WAAA,MAAA,YAAA;uBAGE,aAAA,CAAA,wBAAA;uBACA,aAAA,CAAA,wBAAA;mBACJ,aAAA,CAAA,WAAA,CAAA,qBAAA;sBACG,aAAA,CAAA,WAAA,CAAA,wBAAA;AAEhB;AAEA;AACA;AACA;AACA;;AAEA;AACA;qBAEe,aAAA,CAAA,MAAA,CAAA,YAAA;iBAIJ,aAAA,CAAA,MAAA;AACX,8BAAwB,aAAA,CAAA,MAAA;2BAGH,aAAA,CAAA,MAAA,CAAA,qBAAA;8BACG,aAAA,CAAA,MAAA,CAAA,wBAAA;AAExB;;;AAGG;;oDAlCQ,mBAAmB;sDAAnB,mBAAmB;AA2C/B;AAED;;;;;AAKG;AACH,cAQa,mBAAmB;oDAAnB,mBAAmB;sDAAnB,mBAAmB;AAAG;AAEnC;AACA,cAIa,gBAAgB;oDAAhB,gBAAgB;sDAAhB,gBAAgB;AAAG;;","names":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A step on the space scale. Separation is chosen from the scale rather than
|
|
5
|
+
* stated as a length, so a theme retunes every layout at once and no component
|
|
6
|
+
* invents a rhythm of its own. `0` is the absence of separation.
|
|
7
|
+
*/
|
|
8
|
+
type GridGap = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
9
|
+
/**
|
|
10
|
+
* A ceiling on the number of tracks, not a promise of them. The grid drops a
|
|
11
|
+
* column whenever keeping it would take a cell below `minItemWidth`.
|
|
12
|
+
*/
|
|
13
|
+
type GridColumns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
14
|
+
/** The narrowest a cell may become before the grid drops a column. */
|
|
15
|
+
type GridMinItemWidth = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
16
|
+
/** Across the flow, which for a cell is the block axis. */
|
|
17
|
+
type GridAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
18
|
+
/** Along the flow, which for a cell is the inline axis. */
|
|
19
|
+
type GridJustify = 'start' | 'center' | 'end' | 'stretch';
|
|
20
|
+
/**
|
|
21
|
+
* Grid arranges its children across two axes and reflows by measuring itself
|
|
22
|
+
* rather than the viewport, so no breakpoint appears anywhere in the family. It
|
|
23
|
+
* paints nothing and adds no semantics: the element is the one the consumer
|
|
24
|
+
* wrote.
|
|
25
|
+
*
|
|
26
|
+
* It is not the APG grid widget. There is no `role="grid"`, no cell and no
|
|
27
|
+
* arrow-key navigation: this family lays children out, and the children keep
|
|
28
|
+
* whatever semantics they already had.
|
|
29
|
+
*
|
|
30
|
+
* The count travels as a custom property as well as an attribute, because a
|
|
31
|
+
* track function cannot read an integer from an attribute.
|
|
32
|
+
*/
|
|
33
|
+
declare class SlGrid {
|
|
34
|
+
/** Positions a child across the flow, inside its own cell. */
|
|
35
|
+
readonly align: _angular_core.InputSignal<GridAlign | undefined>;
|
|
36
|
+
/** At most this many tracks. Absent, the grid fits as many as it can. */
|
|
37
|
+
readonly columns: _angular_core.InputSignal<GridColumns | undefined>;
|
|
38
|
+
/** Separation between cells, as a step on the space scale. */
|
|
39
|
+
readonly gap: _angular_core.InputSignal<GridGap | undefined>;
|
|
40
|
+
/** Positions a child along the flow, inside its own cell. */
|
|
41
|
+
readonly justify: _angular_core.InputSignal<GridJustify | undefined>;
|
|
42
|
+
/** The narrowest a cell may become before a column is dropped. */
|
|
43
|
+
readonly minItemWidth: _angular_core.InputSignal<GridMinItemWidth | undefined>;
|
|
44
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlGrid, never>;
|
|
45
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlGrid, "[slGrid]", ["slGrid"], { "align": { "alias": "align"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "justify": { "alias": "justify"; "required": false; "isSignal": true; }; "minItemWidth": { "alias": "minItemWidth"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { SlGrid };
|
|
49
|
+
export type { GridAlign, GridColumns, GridGap, GridJustify, GridMinItemWidth };
|
|
50
|
+
//# sourceMappingURL=slotted-angular-grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotted-angular-grid.d.ts","sources":["../../grid/src/grid.ts"],"mappings":";;AAEA;;;;AAIG;AACG,KAAM,OAAO;AAEnB;;;AAGG;AACG,KAAM,WAAW;AAEvB;AACM,KAAM,gBAAgB;AAE5B;AACM,KAAM,SAAS;AAErB;AACM,KAAM,WAAW;AAEvB;;;;;;;;;;;;AAYG;AACH,cAsBa,MAAM;;oBAEH,aAAA,CAAA,WAAA,CAAA,SAAA;;sBAEE,aAAA,CAAA,WAAA,CAAA,WAAA;;kBAEJ,aAAA,CAAA,WAAA,CAAA,OAAA;;sBAEI,aAAA,CAAA,WAAA,CAAA,WAAA;;2BAEK,aAAA,CAAA,WAAA,CAAA,gBAAA;oDAVV,MAAM;sDAAN,MAAM;AAWlB;;","names":[]}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as _slotted_core_highlight from '@slotted/core/highlight';
|
|
2
|
+
import { HighlightMatchOptions, HighlightRange, HighlightMatcher } from '@slotted/core/highlight';
|
|
3
|
+
export { HighlightMatchOptions, HighlightMatcher, HighlightRange, HighlightRun } from '@slotted/core/highlight';
|
|
4
|
+
import * as _angular_core from '@angular/core';
|
|
5
|
+
import { InjectionToken } from '@angular/core';
|
|
6
|
+
|
|
7
|
+
type HighlightOccurrences = NonNullable<HighlightMatchOptions['occurrences']>;
|
|
8
|
+
type HighlightSensitivity = NonNullable<HighlightMatchOptions['sensitivity']>;
|
|
9
|
+
/** What an application sets once for every mark under it. */
|
|
10
|
+
interface HighlightDefaults {
|
|
11
|
+
/** BCP 47. `undefined` asks the runtime. */
|
|
12
|
+
locale: string | undefined;
|
|
13
|
+
/** `base`: `resume` finds `Resumé`, as `typeahead` and `createFilter` compare. */
|
|
14
|
+
sensitivity: HighlightSensitivity;
|
|
15
|
+
/** `all`: every place a query appears; `first`: one span per query. */
|
|
16
|
+
occurrences: HighlightOccurrences;
|
|
17
|
+
}
|
|
18
|
+
declare const HIGHLIGHT_DEFAULTS: InjectionToken<HighlightDefaults>;
|
|
19
|
+
/**
|
|
20
|
+
* An application decides once which locale its marks compare in, how strict
|
|
21
|
+
* the comparison is, and whether every occurrence is marked. A mark that
|
|
22
|
+
* states any of them itself still wins: an explicit input is never overridden
|
|
23
|
+
* by the token. A host — `combobox`, `select` — passes the locale its filter
|
|
24
|
+
* used, which is the same rule from the other side.
|
|
25
|
+
*/
|
|
26
|
+
declare function provideHighlightDefaults(defaults: Partial<HighlightDefaults>): {
|
|
27
|
+
provide: InjectionToken<HighlightDefaults>;
|
|
28
|
+
useFactory: () => HighlightDefaults;
|
|
29
|
+
};
|
|
30
|
+
/** What a mark compares with here, before it states anything of its own. */
|
|
31
|
+
declare function injectHighlightDefaults(): HighlightDefaults;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The spans of a text a query found, marked.
|
|
35
|
+
*
|
|
36
|
+
* The component is written on the consumer's own element — the `span` that
|
|
37
|
+
* holds an option's label, the `p` under a find bar — which is the element
|
|
38
|
+
* that holds the text and the reason this binding needs no `render` input:
|
|
39
|
+
* substituting the element is Angular's default. The `mark` inside it is
|
|
40
|
+
* fixed; it is the element the HTML Standard defines for the term searched
|
|
41
|
+
* for inside a result.
|
|
42
|
+
*
|
|
43
|
+
* It is content, not a control: nothing here is focusable and nothing answers
|
|
44
|
+
* a key. What is marked is decided by `@slotted/core/highlight`, the same scan
|
|
45
|
+
* `combobox`'s filter decides with. `text` is a string and the runs are
|
|
46
|
+
* slices of it; nothing is projected, because a `mark` inside projected
|
|
47
|
+
* content would be HTML the family interpreted.
|
|
48
|
+
*
|
|
49
|
+
* Every space in this template is load-bearing: a newline between two nodes
|
|
50
|
+
* collapses into a space, and a space between two runs is a space inside the
|
|
51
|
+
* text.
|
|
52
|
+
*/
|
|
53
|
+
declare class SlHighlight {
|
|
54
|
+
/**
|
|
55
|
+
* The text, whole. It is the only content the family renders: nothing in it
|
|
56
|
+
* is HTML, and a run is a slice of it.
|
|
57
|
+
*/
|
|
58
|
+
readonly text: _angular_core.InputSignal<string>;
|
|
59
|
+
/** One query or several. Empty and whitespace-only entries find nothing. */
|
|
60
|
+
readonly query: _angular_core.InputSignal<string | readonly string[] | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Spans already found — by a server, by a fuzzy engine — in the text's own
|
|
63
|
+
* code units. Wins over `query` and `matcher`; normalised like either.
|
|
64
|
+
*/
|
|
65
|
+
readonly ranges: _angular_core.InputSignal<readonly HighlightRange[] | undefined>;
|
|
66
|
+
/** Replaces the default matcher. Loses to `ranges`. */
|
|
67
|
+
readonly matcher: _angular_core.InputSignal<HighlightMatcher | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* The match a find bar is standing on, counting matches only. It is stated,
|
|
70
|
+
* never moved: the family has no keyboard. Out of range marks nothing.
|
|
71
|
+
*/
|
|
72
|
+
readonly current: _angular_core.InputSignal<number | undefined>;
|
|
73
|
+
/** Defaults to the provider, then to the runtime's locale. */
|
|
74
|
+
readonly locale: _angular_core.InputSignal<string | undefined>;
|
|
75
|
+
/** Defaults to the provider, then to `base`. */
|
|
76
|
+
readonly sensitivity: _angular_core.InputSignal<HighlightSensitivity | undefined>;
|
|
77
|
+
/** Defaults to the provider, then to `all`. */
|
|
78
|
+
readonly occurrences: _angular_core.InputSignal<HighlightOccurrences | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* Steps the marks down without claiming the row's semantics. The row above
|
|
81
|
+
* already says it with `data-disabled`, and the sheet reads that too.
|
|
82
|
+
*/
|
|
83
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
84
|
+
private readonly defaults;
|
|
85
|
+
/** The runs the template renders; a consumer counting matches reads it too. */
|
|
86
|
+
readonly runs: _angular_core.Signal<_slotted_core_highlight.HighlightRun[]>;
|
|
87
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlHighlight, never>;
|
|
88
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlHighlight, "[slHighlight]", ["slHighlight"], { "text": { "alias": "text"; "required": true; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "ranges": { "alias": "ranges"; "required": false; "isSignal": true; }; "matcher": { "alias": "matcher"; "required": false; "isSignal": true; }; "current": { "alias": "current"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "sensitivity": { "alias": "sensitivity"; "required": false; "isSignal": true; }; "occurrences": { "alias": "occurrences"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export { HIGHLIGHT_DEFAULTS, SlHighlight, injectHighlightDefaults, provideHighlightDefaults };
|
|
92
|
+
export type { HighlightDefaults, HighlightOccurrences, HighlightSensitivity };
|
|
93
|
+
//# sourceMappingURL=slotted-angular-highlight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotted-angular-highlight.d.ts","sources":["../../highlight/src/highlight-defaults.ts","../../highlight/src/highlight.ts"],"mappings":";;;;;;AAWM,KAAM,oBAAoB,GAAG,WAAW,CAAC,qBAAqB;AAC9D,KAAM,oBAAoB,GAAG,WAAW,CAAC,qBAAqB;AAEpE;UACiB,iBAAiB;;AAEhC;;iBAEa,oBAAoB;;iBAEpB,oBAAoB;AAClC;AAQD,cAAa,kBAAkB,EAAA,cAAA,CAAA,iBAAA;AAQ/B;;;;;;AAMG;AACH,iBAAgB,wBAAwB,WAAW,OAAO,CAAC,iBAAiB;;sBAGxD,iBAAiB;AAMpC;AAED;AACA,iBAAgB,uBAAuB,IAAI,iBAAiB;;AC1C5D;;;;;;;;;;;;;;;;;;;AAmBG;AACH,cAea,WAAW;AACtB;;;AAGG;mBACU,aAAA,CAAA,WAAA;;oBAEC,aAAA,CAAA,WAAA;AACd;;;AAGG;qBACY,aAAA,CAAA,WAAA,UAAA,cAAA;;sBAEC,aAAA,CAAA,WAAA,CAAA,gBAAA;AAChB;;;AAGG;sBACa,aAAA,CAAA,WAAA;;qBAED,aAAA,CAAA,WAAA;;0BAEK,aAAA,CAAA,WAAA,CAAA,oBAAA;;0BAEA,aAAA,CAAA,WAAA,CAAA,oBAAA;AACpB;;;AAGG;uBACc,aAAA,CAAA,wBAAA;AAEjB;;mBAGa,aAAA,CAAA,MAAA,CAAA,uBAAA,CAAA,YAAA;oDAnCF,WAAW;sDAAX,WAAW;AA6CvB;;","names":[]}
|