@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,914 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InjectionToken, inject, input, TemplateRef, Directive, booleanAttribute, numberAttribute, output, contentChildren, viewChild, computed, signal, effect, untracked, DestroyRef, ViewEncapsulation, ChangeDetectionStrategy, Component, ViewContainerRef } from '@angular/core';
|
|
4
|
+
import { SlGlyph, SlIcon } from '@slotted/angular/icon';
|
|
5
|
+
import { initialLoadingVisibility, nextLoadingVisibility } from '@slotted/core/loading';
|
|
6
|
+
import { prepareMarkdown } from '@slotted/core/markdown';
|
|
7
|
+
import { injectMessages } from '@slotted/angular/i18n';
|
|
8
|
+
import { markdownMessages } from '@slotted/core/i18n';
|
|
9
|
+
import { SlAlert, SlAlertContent, SlAlertDescription, SlAlertTitle } from '@slotted/angular/alert';
|
|
10
|
+
import { SlButton } from '@slotted/angular/button';
|
|
11
|
+
import { SlCheckbox } from '@slotted/angular/checkbox';
|
|
12
|
+
import { SlCodeBlock } from '@slotted/angular/code-block';
|
|
13
|
+
import { SlInlineMessage } from '@slotted/angular/inline-message';
|
|
14
|
+
import { SlLink } from '@slotted/angular/link';
|
|
15
|
+
import { injectProseDefaults, SlProse, SlProseAnchor, SlProseFootnotes, SlProseScroll } from '@slotted/angular/prose';
|
|
16
|
+
import { injectSkeletonDefaults, SlSkeletonRegion, SlSkeletonText } from '@slotted/angular/skeleton';
|
|
17
|
+
import { SlVisuallyHidden } from '@slotted/angular/visually-hidden';
|
|
18
|
+
|
|
19
|
+
const MARKDOWN_DEFAULTS = new InjectionToken('slotted markdown defaults', {
|
|
20
|
+
providedIn: 'root',
|
|
21
|
+
factory: () => ({}),
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* An application decides once how its documents treat links, alerts, anchors
|
|
25
|
+
* and URLs. A document that states any of them itself still wins. Its words
|
|
26
|
+
* come from the language in force (`provideSlotted`).
|
|
27
|
+
*/
|
|
28
|
+
function provideMarkdownDefaults(defaults) {
|
|
29
|
+
return { provide: MARKDOWN_DEFAULTS, useValue: defaults };
|
|
30
|
+
}
|
|
31
|
+
function injectMarkdownDefaults() {
|
|
32
|
+
return inject(MARKDOWN_DEFAULTS);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Replaces the family's element for one kind — `link`, `code`, `image` — or
|
|
37
|
+
* renders a node type the family does not know — `math`, `html`, a directive
|
|
38
|
+
* — by the node's own `type`. The template receives the prepared element; its
|
|
39
|
+
* children are rendered with `slMarkdownChildren`.
|
|
40
|
+
*/
|
|
41
|
+
class SlMarkdownNode {
|
|
42
|
+
kind = input.required({ ...(ngDevMode ? { debugName: "kind" } : /* istanbul ignore next */ {}), alias: 'slMarkdownNode' });
|
|
43
|
+
template = inject(TemplateRef);
|
|
44
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
45
|
+
return context !== null;
|
|
46
|
+
}
|
|
47
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMarkdownNode, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
48
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: SlMarkdownNode, isStandalone: true, selector: "ng-template[slMarkdownNode]", inputs: { kind: { classPropertyName: "kind", publicName: "slMarkdownNode", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
49
|
+
}
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMarkdownNode, decorators: [{
|
|
51
|
+
type: Directive,
|
|
52
|
+
args: [{ selector: 'ng-template[slMarkdownNode]', standalone: true }]
|
|
53
|
+
}], propDecorators: { kind: [{ type: i0.Input, args: [{ isSignal: true, alias: "slMarkdownNode", required: true }] }] } });
|
|
54
|
+
/** The empty part's content, projected in place of `messages.empty`. */
|
|
55
|
+
class SlMarkdownEmpty {
|
|
56
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMarkdownEmpty, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
57
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlMarkdownEmpty, isStandalone: true, selector: "[slMarkdownEmpty]", ngImport: i0 });
|
|
58
|
+
}
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMarkdownEmpty, decorators: [{
|
|
60
|
+
type: Directive,
|
|
61
|
+
args: [{ selector: '[slMarkdownEmpty]', standalone: true }]
|
|
62
|
+
}] });
|
|
63
|
+
const KINDS = new Set([
|
|
64
|
+
'heading',
|
|
65
|
+
'paragraph',
|
|
66
|
+
'blockquote',
|
|
67
|
+
'alert',
|
|
68
|
+
'list',
|
|
69
|
+
'item',
|
|
70
|
+
'code',
|
|
71
|
+
'thematicBreak',
|
|
72
|
+
'table',
|
|
73
|
+
'text',
|
|
74
|
+
'emphasis',
|
|
75
|
+
'strong',
|
|
76
|
+
'delete',
|
|
77
|
+
'inlineCode',
|
|
78
|
+
'break',
|
|
79
|
+
'link',
|
|
80
|
+
'image',
|
|
81
|
+
'footnoteReference',
|
|
82
|
+
]);
|
|
83
|
+
/**
|
|
84
|
+
* A document rendered from a tree, in `prose`'s typography.
|
|
85
|
+
*
|
|
86
|
+
* The family never receives HTML. It takes mdast — remark's output as it is,
|
|
87
|
+
* or marked's through `fromMarkedTokens` — and `prepareMarkdown` from
|
|
88
|
+
* `@slotted/core/markdown` decides everything that is not an element. This
|
|
89
|
+
* component maps each prepared kind to an element, or to the family that
|
|
90
|
+
* already owns it: `slLink`, `slCodeBlock`, `slAlert`, `slCheckbox`.
|
|
91
|
+
*
|
|
92
|
+
* The document is one recursive `ng-template` rendered through
|
|
93
|
+
* `NgTemplateOutlet`, never a recursive component: a component host between
|
|
94
|
+
* a `ul` and its `li`, or between the region and its first block, would break
|
|
95
|
+
* `prose`'s child combinators.
|
|
96
|
+
*/
|
|
97
|
+
class SlMarkdown {
|
|
98
|
+
/** The document, as mdast — remark's `fromMarkdown`, or `fromMarkedTokens(marked.lexer(source))`. */
|
|
99
|
+
tree = input(undefined, /* @ts-ignore */
|
|
100
|
+
...(ngDevMode ? [{ debugName: "tree" }] : /* istanbul ignore next */ []));
|
|
101
|
+
size = input(undefined, /* @ts-ignore */
|
|
102
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
103
|
+
flow = input(undefined, /* @ts-ignore */
|
|
104
|
+
...(ngDevMode ? [{ debugName: "flow" }] : /* istanbul ignore next */ []));
|
|
105
|
+
status = input('ready', /* @ts-ignore */
|
|
106
|
+
...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
107
|
+
loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
108
|
+
streaming = input(false, { ...(ngDevMode ? { debugName: "streaming" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
109
|
+
external = input(undefined, /* @ts-ignore */
|
|
110
|
+
...(ngDevMode ? [{ debugName: "external" }] : /* istanbul ignore next */ []));
|
|
111
|
+
headingAnchors = input(undefined, { ...(ngDevMode ? { debugName: "headingAnchors" } : /* istanbul ignore next */ {}), transform: (value) => (value === undefined ? undefined : booleanAttribute(value)) });
|
|
112
|
+
headingOffset = input(0, { ...(ngDevMode ? { debugName: "headingOffset" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
113
|
+
idPrefix = input('', /* @ts-ignore */
|
|
114
|
+
...(ngDevMode ? [{ debugName: "idPrefix" }] : /* istanbul ignore next */ []));
|
|
115
|
+
alerts = input(undefined, { ...(ngDevMode ? { debugName: "alerts" } : /* istanbul ignore next */ {}), transform: (value) => (value === undefined ? undefined : booleanAttribute(value)) });
|
|
116
|
+
allow = input(undefined, /* @ts-ignore */
|
|
117
|
+
...(ngDevMode ? [{ debugName: "allow" }] : /* istanbul ignore next */ []));
|
|
118
|
+
unwrapDisallowed = input(false, { ...(ngDevMode ? { debugName: "unwrapDisallowed" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
119
|
+
transformUrl = input(undefined, /* @ts-ignore */
|
|
120
|
+
...(ngDevMode ? [{ debugName: "transformUrl" }] : /* istanbul ignore next */ []));
|
|
121
|
+
isExternal = input(undefined, /* @ts-ignore */
|
|
122
|
+
...(ngDevMode ? [{ debugName: "isExternal" }] : /* istanbul ignore next */ []));
|
|
123
|
+
/**
|
|
124
|
+
* Words laid over the catalog of the language in force, key by key: the
|
|
125
|
+
* empty, error, retry and loading texts, the footnotes heading, the back
|
|
126
|
+
* link, the heading permalink, and each alert's title (`alerts.note`).
|
|
127
|
+
*/
|
|
128
|
+
messages = input(undefined, /* @ts-ignore */
|
|
129
|
+
...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
|
|
130
|
+
/**
|
|
131
|
+
* Enables the task checkboxes. React reads the presence of its handler; an
|
|
132
|
+
* Angular output cannot tell whether anyone listens, so the template says so.
|
|
133
|
+
*/
|
|
134
|
+
editableTasks = input(false, { ...(ngDevMode ? { debugName: "editableTasks" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
135
|
+
/** Draws the retry button in the error part, for the same reason. */
|
|
136
|
+
retryable = input(false, { ...(ngDevMode ? { debugName: "retryable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
137
|
+
/** A task the reader ticked, with its index; the box moves when the tree does. */
|
|
138
|
+
taskChange = output();
|
|
139
|
+
retry = output();
|
|
140
|
+
templates = contentChildren(SlMarkdownNode, /* @ts-ignore */
|
|
141
|
+
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
142
|
+
nodesTemplate = viewChild.required('nodes', /* @ts-ignore */
|
|
143
|
+
...(ngDevMode ? [{ debugName: "nodesTemplate" }] : /* istanbul ignore next */ []));
|
|
144
|
+
defaults = injectMarkdownDefaults();
|
|
145
|
+
proseDefaults = injectProseDefaults();
|
|
146
|
+
skeletonDefaults = injectSkeletonDefaults();
|
|
147
|
+
resolvedFlow = computed(() => this.flow() ?? this.proseDefaults.flow, /* @ts-ignore */
|
|
148
|
+
...(ngDevMode ? [{ debugName: "resolvedFlow" }] : /* istanbul ignore next */ []));
|
|
149
|
+
resolvedExternal = computed(() => this.external() ?? this.defaults.external ?? 'new-tab', /* @ts-ignore */
|
|
150
|
+
...(ngDevMode ? [{ debugName: "resolvedExternal" }] : /* istanbul ignore next */ []));
|
|
151
|
+
resolvedHeadingAnchors = computed(() => this.headingAnchors() ?? this.defaults.headingAnchors ?? false, /* @ts-ignore */
|
|
152
|
+
...(ngDevMode ? [{ debugName: "resolvedHeadingAnchors" }] : /* istanbul ignore next */ []));
|
|
153
|
+
/** The family's words in the language in force, with this document's `messages` laid over them. */
|
|
154
|
+
t = injectMessages(markdownMessages, this.messages);
|
|
155
|
+
templateMap = computed(() => {
|
|
156
|
+
const map = new Map();
|
|
157
|
+
for (const node of this.templates())
|
|
158
|
+
map.set(node.kind(), node.template);
|
|
159
|
+
return map;
|
|
160
|
+
}, /* @ts-ignore */
|
|
161
|
+
...(ngDevMode ? [{ debugName: "templateMap" }] : /* istanbul ignore next */ []));
|
|
162
|
+
/** The prepared document: headings, footnotes and the outline a table of contents reads. */
|
|
163
|
+
document = computed(() => prepareMarkdown(this.tree(), {
|
|
164
|
+
alerts: this.alerts() ?? this.defaults.alerts ?? true,
|
|
165
|
+
allow: this.allow() ?? this.defaults.allow,
|
|
166
|
+
custom: [...this.templateMap().keys()].filter((kind) => !KINDS.has(kind)),
|
|
167
|
+
headingOffset: this.headingOffset(),
|
|
168
|
+
idPrefix: this.idPrefix(),
|
|
169
|
+
isExternal: this.isExternal() ?? this.defaults.isExternal,
|
|
170
|
+
transformUrl: this.transformUrl() ?? this.defaults.transformUrl,
|
|
171
|
+
unwrapDisallowed: this.unwrapDisallowed(),
|
|
172
|
+
}), /* @ts-ignore */
|
|
173
|
+
...(ngDevMode ? [{ debugName: "document" }] : /* istanbul ignore next */ []));
|
|
174
|
+
/*
|
|
175
|
+
* The placeholder and the document are two different trees, so the family
|
|
176
|
+
* decides which one is on screen with the machine `skeleton` uses, reading
|
|
177
|
+
* `skeleton`'s own defaults for how long to wait and how long to hold.
|
|
178
|
+
*/
|
|
179
|
+
painted = signal(false, /* @ts-ignore */
|
|
180
|
+
...(ngDevMode ? [{ debugName: "painted" }] : /* istanbul ignore next */ []));
|
|
181
|
+
visibility = initialLoadingVisibility;
|
|
182
|
+
timer;
|
|
183
|
+
constructor() {
|
|
184
|
+
effect(() => {
|
|
185
|
+
const loading = this.loading();
|
|
186
|
+
untracked(() => this.tick(loading));
|
|
187
|
+
});
|
|
188
|
+
inject(DestroyRef).onDestroy(() => clearTimeout(this.timer));
|
|
189
|
+
}
|
|
190
|
+
/** @internal The template a node's children render through, for `slMarkdownChildren`. */
|
|
191
|
+
childrenTemplate() {
|
|
192
|
+
return this.nodesTemplate();
|
|
193
|
+
}
|
|
194
|
+
alertTitle(element) {
|
|
195
|
+
return this.t(`alerts.${element.type}`);
|
|
196
|
+
}
|
|
197
|
+
templateFor(element) {
|
|
198
|
+
return this.templateMap().get(element.kind === 'custom' ? element.type : element.kind);
|
|
199
|
+
}
|
|
200
|
+
footnoteLead(footnote) {
|
|
201
|
+
return footnote.children.at(-1)?.kind === 'paragraph'
|
|
202
|
+
? footnote.children.slice(0, -1)
|
|
203
|
+
: footnote.children;
|
|
204
|
+
}
|
|
205
|
+
footnoteTail(footnote) {
|
|
206
|
+
const last = footnote.children.at(-1);
|
|
207
|
+
return last?.kind === 'paragraph' ? last : null;
|
|
208
|
+
}
|
|
209
|
+
onTask(element, request) {
|
|
210
|
+
this.taskChange.emit({
|
|
211
|
+
checked: request.value,
|
|
212
|
+
index: element.task ?? 0,
|
|
213
|
+
offset: element.offset,
|
|
214
|
+
request,
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
tick(loading) {
|
|
218
|
+
const answer = nextLoadingVisibility({
|
|
219
|
+
delay: this.skeletonDefaults.delay ?? 0,
|
|
220
|
+
loading,
|
|
221
|
+
minDuration: this.skeletonDefaults.minDuration ?? 0,
|
|
222
|
+
now: Date.now(),
|
|
223
|
+
state: this.visibility,
|
|
224
|
+
});
|
|
225
|
+
this.visibility = answer.state;
|
|
226
|
+
this.painted.set(answer.state.visible);
|
|
227
|
+
clearTimeout(this.timer);
|
|
228
|
+
if (answer.wait !== null) {
|
|
229
|
+
this.timer = setTimeout(() => this.tick(this.loading()), answer.wait);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMarkdown, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
233
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlMarkdown, isStandalone: true, selector: "[slMarkdown]", inputs: { tree: { classPropertyName: "tree", publicName: "tree", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, flow: { classPropertyName: "flow", publicName: "flow", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, streaming: { classPropertyName: "streaming", publicName: "streaming", isSignal: true, isRequired: false, transformFunction: null }, external: { classPropertyName: "external", publicName: "external", isSignal: true, isRequired: false, transformFunction: null }, headingAnchors: { classPropertyName: "headingAnchors", publicName: "headingAnchors", isSignal: true, isRequired: false, transformFunction: null }, headingOffset: { classPropertyName: "headingOffset", publicName: "headingOffset", isSignal: true, isRequired: false, transformFunction: null }, idPrefix: { classPropertyName: "idPrefix", publicName: "idPrefix", isSignal: true, isRequired: false, transformFunction: null }, alerts: { classPropertyName: "alerts", publicName: "alerts", isSignal: true, isRequired: false, transformFunction: null }, allow: { classPropertyName: "allow", publicName: "allow", isSignal: true, isRequired: false, transformFunction: null }, unwrapDisallowed: { classPropertyName: "unwrapDisallowed", publicName: "unwrapDisallowed", isSignal: true, isRequired: false, transformFunction: null }, transformUrl: { classPropertyName: "transformUrl", publicName: "transformUrl", isSignal: true, isRequired: false, transformFunction: null }, isExternal: { classPropertyName: "isExternal", publicName: "isExternal", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, editableTasks: { classPropertyName: "editableTasks", publicName: "editableTasks", isSignal: true, isRequired: false, transformFunction: null }, retryable: { classPropertyName: "retryable", publicName: "retryable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { taskChange: "taskChange", retry: "retry" }, host: { attributes: { "data-ui": "markdown", "data-part": "root" }, properties: { "attr.data-status": "status()", "attr.data-flow": "resolvedFlow()", "attr.data-loading": "painted() ? '' : null", "attr.data-empty": "status() === 'ready' && !painted() && document().empty ? '' : null", "attr.data-streaming": "streaming() ? '' : null", "attr.aria-busy": "streaming() || painted() ? 'true' : null" } }, queries: [{ propertyName: "templates", predicate: SlMarkdownNode, isSignal: true }], viewQueries: [{ propertyName: "nodesTemplate", first: true, predicate: ["nodes"], descendants: true, isSignal: true }], exportAs: ["slMarkdown"], ngImport: i0, template: `
|
|
234
|
+
@if (status() === 'error') {
|
|
235
|
+
<div data-part="error">
|
|
236
|
+
<p slInlineMessage tone="danger">{{ t('error') }}</p>
|
|
237
|
+
@if (retryable()) {
|
|
238
|
+
<button
|
|
239
|
+
slButton
|
|
240
|
+
type="button"
|
|
241
|
+
size="sm"
|
|
242
|
+
tone="secondary"
|
|
243
|
+
variant="outline"
|
|
244
|
+
(click)="retry.emit($event.detail === 0 ? 'keyboard' : 'pointer')"
|
|
245
|
+
>
|
|
246
|
+
{{ t('retry') }}
|
|
247
|
+
</button>
|
|
248
|
+
}
|
|
249
|
+
</div>
|
|
250
|
+
} @else if (painted()) {
|
|
251
|
+
<div slSkeletonRegion [delay]="0" [minDuration]="0" [messages]="{ label: t('loading') }">
|
|
252
|
+
<div slProse [flow]="resolvedFlow()" [size]="size()">
|
|
253
|
+
<div slSkeletonText lastLineSize="62%" [lines]="3"></div>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
} @else if (document().empty) {
|
|
257
|
+
@if (!loading()) {
|
|
258
|
+
<p data-part="empty">
|
|
259
|
+
<ng-content select="[slMarkdownEmpty]">{{ t('empty') }}</ng-content>
|
|
260
|
+
</p>
|
|
261
|
+
}
|
|
262
|
+
} @else {
|
|
263
|
+
<div slProse [flow]="resolvedFlow()" [size]="size()">
|
|
264
|
+
<ng-container *ngTemplateOutlet="nodes; context: { $implicit: document().children }" />
|
|
265
|
+
@if (document().footnotes.length > 0) {
|
|
266
|
+
<section slProseFootnotes>
|
|
267
|
+
<h2 slVisuallyHidden [id]="document().footnoteLabelId">
|
|
268
|
+
{{ t('footnotes') }}
|
|
269
|
+
</h2>
|
|
270
|
+
<ol>
|
|
271
|
+
@for (footnote of document().footnotes; track footnote.key) {
|
|
272
|
+
<li [id]="footnote.id">
|
|
273
|
+
<ng-container
|
|
274
|
+
*ngTemplateOutlet="nodes; context: { $implicit: footnoteLead(footnote) }"
|
|
275
|
+
/>
|
|
276
|
+
@if (footnoteTail(footnote); as last) {
|
|
277
|
+
<p>
|
|
278
|
+
<ng-container
|
|
279
|
+
*ngTemplateOutlet="nodes; context: { $implicit: last.children }"
|
|
280
|
+
/><ng-container
|
|
281
|
+
*ngTemplateOutlet="backrefs; context: { $implicit: footnote }"
|
|
282
|
+
/>
|
|
283
|
+
</p>
|
|
284
|
+
} @else {
|
|
285
|
+
<ng-container *ngTemplateOutlet="backrefs; context: { $implicit: footnote }" />
|
|
286
|
+
}
|
|
287
|
+
</li>
|
|
288
|
+
}
|
|
289
|
+
</ol>
|
|
290
|
+
</section>
|
|
291
|
+
}
|
|
292
|
+
</div>
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
<ng-template #backrefs let-footnote>
|
|
296
|
+
@for (reference of footnote.references; track reference; let index = $index) {
|
|
297
|
+
<a
|
|
298
|
+
data-part="backref"
|
|
299
|
+
[href]="'#' + reference"
|
|
300
|
+
[attr.aria-label]="t('backReference', { number: footnote.number, occurrence: index + 1 })"
|
|
301
|
+
><span slIcon><svg slGlyph name="arrow-left"></svg></span
|
|
302
|
+
></a>
|
|
303
|
+
}
|
|
304
|
+
</ng-template>
|
|
305
|
+
|
|
306
|
+
<ng-template #nodes let-elements>
|
|
307
|
+
@for (element of elements; track element.key) {
|
|
308
|
+
@if (templateFor(element); as custom) {
|
|
309
|
+
<ng-container *ngTemplateOutlet="custom; context: { $implicit: element }" />
|
|
310
|
+
} @else {
|
|
311
|
+
@switch (element.kind) {
|
|
312
|
+
@case ('text') {
|
|
313
|
+
<ng-container>{{ element.value }}</ng-container>
|
|
314
|
+
}
|
|
315
|
+
@case ('inlineCode') {
|
|
316
|
+
<code>{{ element.value }}</code>
|
|
317
|
+
}
|
|
318
|
+
@case ('break') {
|
|
319
|
+
<br />
|
|
320
|
+
}
|
|
321
|
+
@case ('thematicBreak') {
|
|
322
|
+
<hr />
|
|
323
|
+
}
|
|
324
|
+
@case ('paragraph') {
|
|
325
|
+
<p>
|
|
326
|
+
<ng-container *ngTemplateOutlet="nodes; context: { $implicit: element.children }" />
|
|
327
|
+
</p>
|
|
328
|
+
}
|
|
329
|
+
@case ('emphasis') {
|
|
330
|
+
<em
|
|
331
|
+
><ng-container *ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
332
|
+
/></em>
|
|
333
|
+
}
|
|
334
|
+
@case ('strong') {
|
|
335
|
+
<strong
|
|
336
|
+
><ng-container *ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
337
|
+
/></strong>
|
|
338
|
+
}
|
|
339
|
+
@case ('delete') {
|
|
340
|
+
<del
|
|
341
|
+
><ng-container *ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
342
|
+
/></del>
|
|
343
|
+
}
|
|
344
|
+
@case ('blockquote') {
|
|
345
|
+
<blockquote>
|
|
346
|
+
<ng-container *ngTemplateOutlet="nodes; context: { $implicit: element.children }" />
|
|
347
|
+
</blockquote>
|
|
348
|
+
}
|
|
349
|
+
@case ('heading') {
|
|
350
|
+
@switch (element.level) {
|
|
351
|
+
@case (1) {
|
|
352
|
+
<h1 [id]="element.id">
|
|
353
|
+
<ng-container *ngTemplateOutlet="heading; context: { $implicit: element }" />
|
|
354
|
+
</h1>
|
|
355
|
+
}
|
|
356
|
+
@case (2) {
|
|
357
|
+
<h2 [id]="element.id">
|
|
358
|
+
<ng-container *ngTemplateOutlet="heading; context: { $implicit: element }" />
|
|
359
|
+
</h2>
|
|
360
|
+
}
|
|
361
|
+
@case (3) {
|
|
362
|
+
<h3 [id]="element.id">
|
|
363
|
+
<ng-container *ngTemplateOutlet="heading; context: { $implicit: element }" />
|
|
364
|
+
</h3>
|
|
365
|
+
}
|
|
366
|
+
@case (4) {
|
|
367
|
+
<h4 [id]="element.id">
|
|
368
|
+
<ng-container *ngTemplateOutlet="heading; context: { $implicit: element }" />
|
|
369
|
+
</h4>
|
|
370
|
+
}
|
|
371
|
+
@case (5) {
|
|
372
|
+
<h5 [id]="element.id">
|
|
373
|
+
<ng-container *ngTemplateOutlet="heading; context: { $implicit: element }" />
|
|
374
|
+
</h5>
|
|
375
|
+
}
|
|
376
|
+
@default {
|
|
377
|
+
<h6 [id]="element.id">
|
|
378
|
+
<ng-container *ngTemplateOutlet="heading; context: { $implicit: element }" />
|
|
379
|
+
</h6>
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
@case ('alert') {
|
|
384
|
+
<div data-part="embed">
|
|
385
|
+
<section slAlert reach="section" live="off" [tone]="element.tone">
|
|
386
|
+
<div slAlertContent>
|
|
387
|
+
<div slAlertTitle>{{ alertTitle(element) }}</div>
|
|
388
|
+
<div slAlertDescription>
|
|
389
|
+
<div data-part="alert-body">
|
|
390
|
+
<ng-container
|
|
391
|
+
*ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
392
|
+
/>
|
|
393
|
+
</div>
|
|
394
|
+
</div>
|
|
395
|
+
</div>
|
|
396
|
+
</section>
|
|
397
|
+
</div>
|
|
398
|
+
}
|
|
399
|
+
@case ('list') {
|
|
400
|
+
@if (element.ordered) {
|
|
401
|
+
<ol
|
|
402
|
+
[attr.data-part]="element.task ? 'task-list' : null"
|
|
403
|
+
[attr.start]="element.start"
|
|
404
|
+
>
|
|
405
|
+
<ng-container
|
|
406
|
+
*ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
407
|
+
/>
|
|
408
|
+
</ol>
|
|
409
|
+
} @else {
|
|
410
|
+
<ul [attr.data-part]="element.task ? 'task-list' : null">
|
|
411
|
+
<ng-container
|
|
412
|
+
*ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
413
|
+
/>
|
|
414
|
+
</ul>
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
@case ('item') {
|
|
418
|
+
@if (element.checked === null) {
|
|
419
|
+
<li>
|
|
420
|
+
<ng-container
|
|
421
|
+
*ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
422
|
+
/>
|
|
423
|
+
</li>
|
|
424
|
+
} @else {
|
|
425
|
+
<li data-part="task">
|
|
426
|
+
<div
|
|
427
|
+
slCheckbox
|
|
428
|
+
[checked]="element.checked"
|
|
429
|
+
[readOnly]="!editableTasks() || undefined"
|
|
430
|
+
(checkedChange)="onTask(element, $event)"
|
|
431
|
+
>
|
|
432
|
+
<span slVisuallyHidden>{{ element.label }}</span>
|
|
433
|
+
</div>
|
|
434
|
+
<div data-part="task-body">
|
|
435
|
+
<ng-container
|
|
436
|
+
*ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
437
|
+
/>
|
|
438
|
+
</div>
|
|
439
|
+
</li>
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
@case ('code') {
|
|
443
|
+
<div data-part="embed">
|
|
444
|
+
<div
|
|
445
|
+
slCodeBlock
|
|
446
|
+
[code]="element.code"
|
|
447
|
+
[language]="element.language ?? 'text'"
|
|
448
|
+
[title]="element.title ?? undefined"
|
|
449
|
+
[lineNumbers]="element.lineNumbers || undefined"
|
|
450
|
+
[marks]="
|
|
451
|
+
element.highlight === null ? undefined : { highlight: element.highlight }
|
|
452
|
+
"
|
|
453
|
+
></div>
|
|
454
|
+
</div>
|
|
455
|
+
}
|
|
456
|
+
@case ('table') {
|
|
457
|
+
<div slProseScroll>
|
|
458
|
+
<table>
|
|
459
|
+
<thead>
|
|
460
|
+
<tr>
|
|
461
|
+
@for (cell of element.head; track cell.key) {
|
|
462
|
+
<th scope="col" [attr.data-align]="cell.align">
|
|
463
|
+
<ng-container
|
|
464
|
+
*ngTemplateOutlet="nodes; context: { $implicit: cell.children }"
|
|
465
|
+
/>
|
|
466
|
+
</th>
|
|
467
|
+
}
|
|
468
|
+
</tr>
|
|
469
|
+
</thead>
|
|
470
|
+
@if (element.rows.length > 0) {
|
|
471
|
+
<tbody>
|
|
472
|
+
@for (row of element.rows; track $index) {
|
|
473
|
+
<tr>
|
|
474
|
+
@for (cell of row; track cell.key) {
|
|
475
|
+
<td [attr.data-align]="cell.align">
|
|
476
|
+
<ng-container
|
|
477
|
+
*ngTemplateOutlet="nodes; context: { $implicit: cell.children }"
|
|
478
|
+
/>
|
|
479
|
+
</td>
|
|
480
|
+
}
|
|
481
|
+
</tr>
|
|
482
|
+
}
|
|
483
|
+
</tbody>
|
|
484
|
+
}
|
|
485
|
+
</table>
|
|
486
|
+
</div>
|
|
487
|
+
}
|
|
488
|
+
@case ('link') {
|
|
489
|
+
@if (element.external && resolvedExternal() === 'new-tab') {
|
|
490
|
+
<a slLink external [href]="element.href" [attr.title]="element.title"
|
|
491
|
+
><ng-container
|
|
492
|
+
*ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
493
|
+
/></a>
|
|
494
|
+
} @else {
|
|
495
|
+
<a [href]="element.href" [attr.title]="element.title"
|
|
496
|
+
><ng-container
|
|
497
|
+
*ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
498
|
+
/></a>
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
@case ('image') {
|
|
502
|
+
<img
|
|
503
|
+
[src]="element.src"
|
|
504
|
+
[alt]="element.alt"
|
|
505
|
+
[attr.title]="element.title"
|
|
506
|
+
loading="lazy"
|
|
507
|
+
decoding="async"
|
|
508
|
+
/>
|
|
509
|
+
}
|
|
510
|
+
@case ('footnoteReference') {
|
|
511
|
+
<sup
|
|
512
|
+
><a
|
|
513
|
+
data-footnote-ref=""
|
|
514
|
+
[id]="element.id"
|
|
515
|
+
[href]="'#' + element.target"
|
|
516
|
+
[attr.aria-describedby]="document().footnoteLabelId"
|
|
517
|
+
>{{ element.number }}</a
|
|
518
|
+
></sup
|
|
519
|
+
>
|
|
520
|
+
}
|
|
521
|
+
@case ('custom') {
|
|
522
|
+
<ng-container *ngTemplateOutlet="nodes; context: { $implicit: element.children }" />
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
</ng-template>
|
|
528
|
+
|
|
529
|
+
<ng-template #heading let-element>
|
|
530
|
+
<ng-container *ngTemplateOutlet="nodes; context: { $implicit: element.children }" />
|
|
531
|
+
@if (resolvedHeadingAnchors()) {
|
|
532
|
+
<a
|
|
533
|
+
slProseAnchor
|
|
534
|
+
[href]="'#' + element.id"
|
|
535
|
+
[attr.aria-label]="t('anchor', { heading: element.text })"
|
|
536
|
+
>#</a
|
|
537
|
+
>
|
|
538
|
+
}
|
|
539
|
+
</ng-template>
|
|
540
|
+
`, isInline: true, styles: ["@layer slotted.components{[data-ui=markdown][data-part=root]{display:block;min-inline-size:0}[data-ui=markdown] [data-part=task]{display:grid;grid-template-columns:calc(var(--slotted-prose-list-inset, 1.5em) + var(--slotted-prose-marker-gap, .25em)) minmax(0,1fr);list-style:none;margin-inline-start:calc(-1 * var(--slotted-prose-list-inset, 1.5em));padding-inline-start:0}[data-ui=markdown] [data-part=task]>:first-child{justify-self:end;margin-block-start:calc((1lh - var(--slotted-control-font-size-md, 13px) * var(--slotted-line-height-md, 1.5)) / 2);margin-inline-end:var(--slotted-markdown-task-gap, var(--slotted-space-3))}[data-ui=markdown] [data-part=task-body]{min-inline-size:0}[data-ui=markdown] [data-part=embed]{margin-block:var(--slotted-prose-flow-normal, 1.15em) 0}[data-ui=markdown][data-flow=tight] [data-part=embed]{margin-block-start:var(--slotted-prose-flow-tight, .75em)}[data-ui=markdown][data-flow=loose] [data-part=embed]{margin-block-start:var(--slotted-prose-flow-loose, 1.6em)}[data-ui=markdown] [data-part=embed]:first-child,[data-ui=markdown] [data-part=alert-body]>:first-child{margin-block-start:0}[data-ui=markdown] :where(th,td)[data-align=start]{text-align:start}[data-ui=markdown] :where(th,td)[data-align=center]{text-align:center}[data-ui=markdown] :where(th,td)[data-align=end]{text-align:end}[data-ui=markdown] [data-part=backref]{--_glyph: var(--slotted-markdown-backref-size, .9em);--_box: var(--slotted-target-min, 24px);--slotted-icon-size: var(--_glyph);block-size:var(--_box);display:inline-block;inline-size:var(--_box);margin-inline-start:var(--slotted-space-1);position:relative;vertical-align:calc(.5cap - .5 * var(--_box))}[data-ui=markdown] [data-part=backref]>[data-ui=icon]{inset:0;margin:auto;position:absolute;rotate:90deg}[data-ui=markdown] [data-part=empty]{color:var(--slotted-text-muted);font-family:var(--slotted-font-family-sans);font-size:var(--slotted-font-size-md);line-height:var(--slotted-line-height-md);margin:0}[data-ui=markdown] [data-part=error]{align-items:center;display:flex;flex-wrap:wrap;gap:var(--slotted-space-3) var(--slotted-space-4)}@media print{[data-ui=markdown] a[href^=http]:after{content:\" (\" attr(href) \")\";font-size:.875em;overflow-wrap:anywhere}}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SlAlert, selector: "[slAlert]", inputs: ["tone", "variant", "reach", "live", "hideIcon", "dismissible", "messages", "open", "defaultOpen", "restoreFocus"], outputs: ["openChange"], exportAs: ["slAlert"] }, { kind: "directive", type: SlAlertContent, selector: "[slAlertContent]", exportAs: ["slAlertContent"] }, { kind: "directive", type: SlAlertDescription, selector: "[slAlertDescription]", exportAs: ["slAlertDescription"] }, { kind: "component", type: SlAlertTitle, selector: "[slAlertTitle]", exportAs: ["slAlertTitle"] }, { kind: "component", type: SlButton, selector: "button[slButton]", inputs: ["disabled", "focusableWhenDisabled", "fullWidth", "loading", "loadingDelay", "messages", "size", "tone", "type", "variant"], exportAs: ["slButton"] }, { kind: "component", type: SlCheckbox, selector: "[slCheckbox]", inputs: ["checked", "defaultChecked", "indeterminate", "parent", "value", "name", "size", "labelPlacement", "variant", "disabled", "readOnly", "invalid"], outputs: ["checkedChange"], exportAs: ["slCheckbox"] }, { kind: "component", type: SlCodeBlock, selector: "[slCodeBlock]", inputs: ["code", "language", "highlight", "tokens", "title", "fileName", "lineNumbers", "start", "marks", "wrap", "defaultWrap", "collapseAfter", "revealed", "defaultRevealed", "maxLines", "copy", "copyRemoved", "loading", "messages", "tabSize"], outputs: ["wrapChange", "revealedChange", "wrapChangeRequest", "revealedChangeRequest", "copyRequest", "highlightError"], exportAs: ["slCodeBlock"] }, { kind: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }, { kind: "component", type: SlInlineMessage, selector: "[slInlineMessage]", inputs: ["tone", "size", "live", "mark", "prefix", "hideIcon", "loading", "disabled", "reserve", "id"], exportAs: ["slInlineMessage"] }, { kind: "component", type: SlLink, selector: "a[slLink]", inputs: ["disabled", "external", "messages", "underline", "variant", "visited"], exportAs: ["slLink"] }, { kind: "component", type: SlProse, selector: "[slProse]", inputs: ["size", "flow"], exportAs: ["slProse"] }, { kind: "directive", type: SlProseAnchor, selector: "[slProseAnchor]", exportAs: ["slProseAnchor"] }, { kind: "directive", type: SlProseFootnotes, selector: "[slProseFootnotes]", exportAs: ["slProseFootnotes"] }, { kind: "directive", type: SlProseScroll, selector: "[slProseScroll]", inputs: ["messages", "labelledBy"], exportAs: ["slProseScroll"] }, { kind: "component", type: SlSkeletonRegion, selector: "[slSkeletonRegion]", inputs: ["loading", "animation", "live", "messages", "loadedLabel", "delay", "minDuration"], outputs: ["reveal"], exportAs: ["slSkeletonRegion"] }, { kind: "component", type: SlSkeletonText, selector: "[slSkeletonText]", inputs: ["lines", "animation", "loading", "lastLineSize", "inlineSize"], exportAs: ["slSkeletonText"] }, { kind: "component", type: SlVisuallyHidden, selector: "[slVisuallyHidden]", inputs: ["focusable"], exportAs: ["slVisuallyHidden"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
541
|
+
}
|
|
542
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMarkdown, decorators: [{
|
|
543
|
+
type: Component,
|
|
544
|
+
args: [{ selector: '[slMarkdown]', standalone: true, exportAs: 'slMarkdown', imports: [
|
|
545
|
+
NgTemplateOutlet,
|
|
546
|
+
SlAlert,
|
|
547
|
+
SlAlertContent,
|
|
548
|
+
SlAlertDescription,
|
|
549
|
+
SlAlertTitle,
|
|
550
|
+
SlButton,
|
|
551
|
+
SlCheckbox,
|
|
552
|
+
SlCodeBlock,
|
|
553
|
+
SlGlyph,
|
|
554
|
+
SlIcon,
|
|
555
|
+
SlInlineMessage,
|
|
556
|
+
SlLink,
|
|
557
|
+
SlProse,
|
|
558
|
+
SlProseAnchor,
|
|
559
|
+
SlProseFootnotes,
|
|
560
|
+
SlProseScroll,
|
|
561
|
+
SlSkeletonRegion,
|
|
562
|
+
SlSkeletonText,
|
|
563
|
+
SlVisuallyHidden,
|
|
564
|
+
], template: `
|
|
565
|
+
@if (status() === 'error') {
|
|
566
|
+
<div data-part="error">
|
|
567
|
+
<p slInlineMessage tone="danger">{{ t('error') }}</p>
|
|
568
|
+
@if (retryable()) {
|
|
569
|
+
<button
|
|
570
|
+
slButton
|
|
571
|
+
type="button"
|
|
572
|
+
size="sm"
|
|
573
|
+
tone="secondary"
|
|
574
|
+
variant="outline"
|
|
575
|
+
(click)="retry.emit($event.detail === 0 ? 'keyboard' : 'pointer')"
|
|
576
|
+
>
|
|
577
|
+
{{ t('retry') }}
|
|
578
|
+
</button>
|
|
579
|
+
}
|
|
580
|
+
</div>
|
|
581
|
+
} @else if (painted()) {
|
|
582
|
+
<div slSkeletonRegion [delay]="0" [minDuration]="0" [messages]="{ label: t('loading') }">
|
|
583
|
+
<div slProse [flow]="resolvedFlow()" [size]="size()">
|
|
584
|
+
<div slSkeletonText lastLineSize="62%" [lines]="3"></div>
|
|
585
|
+
</div>
|
|
586
|
+
</div>
|
|
587
|
+
} @else if (document().empty) {
|
|
588
|
+
@if (!loading()) {
|
|
589
|
+
<p data-part="empty">
|
|
590
|
+
<ng-content select="[slMarkdownEmpty]">{{ t('empty') }}</ng-content>
|
|
591
|
+
</p>
|
|
592
|
+
}
|
|
593
|
+
} @else {
|
|
594
|
+
<div slProse [flow]="resolvedFlow()" [size]="size()">
|
|
595
|
+
<ng-container *ngTemplateOutlet="nodes; context: { $implicit: document().children }" />
|
|
596
|
+
@if (document().footnotes.length > 0) {
|
|
597
|
+
<section slProseFootnotes>
|
|
598
|
+
<h2 slVisuallyHidden [id]="document().footnoteLabelId">
|
|
599
|
+
{{ t('footnotes') }}
|
|
600
|
+
</h2>
|
|
601
|
+
<ol>
|
|
602
|
+
@for (footnote of document().footnotes; track footnote.key) {
|
|
603
|
+
<li [id]="footnote.id">
|
|
604
|
+
<ng-container
|
|
605
|
+
*ngTemplateOutlet="nodes; context: { $implicit: footnoteLead(footnote) }"
|
|
606
|
+
/>
|
|
607
|
+
@if (footnoteTail(footnote); as last) {
|
|
608
|
+
<p>
|
|
609
|
+
<ng-container
|
|
610
|
+
*ngTemplateOutlet="nodes; context: { $implicit: last.children }"
|
|
611
|
+
/><ng-container
|
|
612
|
+
*ngTemplateOutlet="backrefs; context: { $implicit: footnote }"
|
|
613
|
+
/>
|
|
614
|
+
</p>
|
|
615
|
+
} @else {
|
|
616
|
+
<ng-container *ngTemplateOutlet="backrefs; context: { $implicit: footnote }" />
|
|
617
|
+
}
|
|
618
|
+
</li>
|
|
619
|
+
}
|
|
620
|
+
</ol>
|
|
621
|
+
</section>
|
|
622
|
+
}
|
|
623
|
+
</div>
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
<ng-template #backrefs let-footnote>
|
|
627
|
+
@for (reference of footnote.references; track reference; let index = $index) {
|
|
628
|
+
<a
|
|
629
|
+
data-part="backref"
|
|
630
|
+
[href]="'#' + reference"
|
|
631
|
+
[attr.aria-label]="t('backReference', { number: footnote.number, occurrence: index + 1 })"
|
|
632
|
+
><span slIcon><svg slGlyph name="arrow-left"></svg></span
|
|
633
|
+
></a>
|
|
634
|
+
}
|
|
635
|
+
</ng-template>
|
|
636
|
+
|
|
637
|
+
<ng-template #nodes let-elements>
|
|
638
|
+
@for (element of elements; track element.key) {
|
|
639
|
+
@if (templateFor(element); as custom) {
|
|
640
|
+
<ng-container *ngTemplateOutlet="custom; context: { $implicit: element }" />
|
|
641
|
+
} @else {
|
|
642
|
+
@switch (element.kind) {
|
|
643
|
+
@case ('text') {
|
|
644
|
+
<ng-container>{{ element.value }}</ng-container>
|
|
645
|
+
}
|
|
646
|
+
@case ('inlineCode') {
|
|
647
|
+
<code>{{ element.value }}</code>
|
|
648
|
+
}
|
|
649
|
+
@case ('break') {
|
|
650
|
+
<br />
|
|
651
|
+
}
|
|
652
|
+
@case ('thematicBreak') {
|
|
653
|
+
<hr />
|
|
654
|
+
}
|
|
655
|
+
@case ('paragraph') {
|
|
656
|
+
<p>
|
|
657
|
+
<ng-container *ngTemplateOutlet="nodes; context: { $implicit: element.children }" />
|
|
658
|
+
</p>
|
|
659
|
+
}
|
|
660
|
+
@case ('emphasis') {
|
|
661
|
+
<em
|
|
662
|
+
><ng-container *ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
663
|
+
/></em>
|
|
664
|
+
}
|
|
665
|
+
@case ('strong') {
|
|
666
|
+
<strong
|
|
667
|
+
><ng-container *ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
668
|
+
/></strong>
|
|
669
|
+
}
|
|
670
|
+
@case ('delete') {
|
|
671
|
+
<del
|
|
672
|
+
><ng-container *ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
673
|
+
/></del>
|
|
674
|
+
}
|
|
675
|
+
@case ('blockquote') {
|
|
676
|
+
<blockquote>
|
|
677
|
+
<ng-container *ngTemplateOutlet="nodes; context: { $implicit: element.children }" />
|
|
678
|
+
</blockquote>
|
|
679
|
+
}
|
|
680
|
+
@case ('heading') {
|
|
681
|
+
@switch (element.level) {
|
|
682
|
+
@case (1) {
|
|
683
|
+
<h1 [id]="element.id">
|
|
684
|
+
<ng-container *ngTemplateOutlet="heading; context: { $implicit: element }" />
|
|
685
|
+
</h1>
|
|
686
|
+
}
|
|
687
|
+
@case (2) {
|
|
688
|
+
<h2 [id]="element.id">
|
|
689
|
+
<ng-container *ngTemplateOutlet="heading; context: { $implicit: element }" />
|
|
690
|
+
</h2>
|
|
691
|
+
}
|
|
692
|
+
@case (3) {
|
|
693
|
+
<h3 [id]="element.id">
|
|
694
|
+
<ng-container *ngTemplateOutlet="heading; context: { $implicit: element }" />
|
|
695
|
+
</h3>
|
|
696
|
+
}
|
|
697
|
+
@case (4) {
|
|
698
|
+
<h4 [id]="element.id">
|
|
699
|
+
<ng-container *ngTemplateOutlet="heading; context: { $implicit: element }" />
|
|
700
|
+
</h4>
|
|
701
|
+
}
|
|
702
|
+
@case (5) {
|
|
703
|
+
<h5 [id]="element.id">
|
|
704
|
+
<ng-container *ngTemplateOutlet="heading; context: { $implicit: element }" />
|
|
705
|
+
</h5>
|
|
706
|
+
}
|
|
707
|
+
@default {
|
|
708
|
+
<h6 [id]="element.id">
|
|
709
|
+
<ng-container *ngTemplateOutlet="heading; context: { $implicit: element }" />
|
|
710
|
+
</h6>
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
@case ('alert') {
|
|
715
|
+
<div data-part="embed">
|
|
716
|
+
<section slAlert reach="section" live="off" [tone]="element.tone">
|
|
717
|
+
<div slAlertContent>
|
|
718
|
+
<div slAlertTitle>{{ alertTitle(element) }}</div>
|
|
719
|
+
<div slAlertDescription>
|
|
720
|
+
<div data-part="alert-body">
|
|
721
|
+
<ng-container
|
|
722
|
+
*ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
723
|
+
/>
|
|
724
|
+
</div>
|
|
725
|
+
</div>
|
|
726
|
+
</div>
|
|
727
|
+
</section>
|
|
728
|
+
</div>
|
|
729
|
+
}
|
|
730
|
+
@case ('list') {
|
|
731
|
+
@if (element.ordered) {
|
|
732
|
+
<ol
|
|
733
|
+
[attr.data-part]="element.task ? 'task-list' : null"
|
|
734
|
+
[attr.start]="element.start"
|
|
735
|
+
>
|
|
736
|
+
<ng-container
|
|
737
|
+
*ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
738
|
+
/>
|
|
739
|
+
</ol>
|
|
740
|
+
} @else {
|
|
741
|
+
<ul [attr.data-part]="element.task ? 'task-list' : null">
|
|
742
|
+
<ng-container
|
|
743
|
+
*ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
744
|
+
/>
|
|
745
|
+
</ul>
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
@case ('item') {
|
|
749
|
+
@if (element.checked === null) {
|
|
750
|
+
<li>
|
|
751
|
+
<ng-container
|
|
752
|
+
*ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
753
|
+
/>
|
|
754
|
+
</li>
|
|
755
|
+
} @else {
|
|
756
|
+
<li data-part="task">
|
|
757
|
+
<div
|
|
758
|
+
slCheckbox
|
|
759
|
+
[checked]="element.checked"
|
|
760
|
+
[readOnly]="!editableTasks() || undefined"
|
|
761
|
+
(checkedChange)="onTask(element, $event)"
|
|
762
|
+
>
|
|
763
|
+
<span slVisuallyHidden>{{ element.label }}</span>
|
|
764
|
+
</div>
|
|
765
|
+
<div data-part="task-body">
|
|
766
|
+
<ng-container
|
|
767
|
+
*ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
768
|
+
/>
|
|
769
|
+
</div>
|
|
770
|
+
</li>
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
@case ('code') {
|
|
774
|
+
<div data-part="embed">
|
|
775
|
+
<div
|
|
776
|
+
slCodeBlock
|
|
777
|
+
[code]="element.code"
|
|
778
|
+
[language]="element.language ?? 'text'"
|
|
779
|
+
[title]="element.title ?? undefined"
|
|
780
|
+
[lineNumbers]="element.lineNumbers || undefined"
|
|
781
|
+
[marks]="
|
|
782
|
+
element.highlight === null ? undefined : { highlight: element.highlight }
|
|
783
|
+
"
|
|
784
|
+
></div>
|
|
785
|
+
</div>
|
|
786
|
+
}
|
|
787
|
+
@case ('table') {
|
|
788
|
+
<div slProseScroll>
|
|
789
|
+
<table>
|
|
790
|
+
<thead>
|
|
791
|
+
<tr>
|
|
792
|
+
@for (cell of element.head; track cell.key) {
|
|
793
|
+
<th scope="col" [attr.data-align]="cell.align">
|
|
794
|
+
<ng-container
|
|
795
|
+
*ngTemplateOutlet="nodes; context: { $implicit: cell.children }"
|
|
796
|
+
/>
|
|
797
|
+
</th>
|
|
798
|
+
}
|
|
799
|
+
</tr>
|
|
800
|
+
</thead>
|
|
801
|
+
@if (element.rows.length > 0) {
|
|
802
|
+
<tbody>
|
|
803
|
+
@for (row of element.rows; track $index) {
|
|
804
|
+
<tr>
|
|
805
|
+
@for (cell of row; track cell.key) {
|
|
806
|
+
<td [attr.data-align]="cell.align">
|
|
807
|
+
<ng-container
|
|
808
|
+
*ngTemplateOutlet="nodes; context: { $implicit: cell.children }"
|
|
809
|
+
/>
|
|
810
|
+
</td>
|
|
811
|
+
}
|
|
812
|
+
</tr>
|
|
813
|
+
}
|
|
814
|
+
</tbody>
|
|
815
|
+
}
|
|
816
|
+
</table>
|
|
817
|
+
</div>
|
|
818
|
+
}
|
|
819
|
+
@case ('link') {
|
|
820
|
+
@if (element.external && resolvedExternal() === 'new-tab') {
|
|
821
|
+
<a slLink external [href]="element.href" [attr.title]="element.title"
|
|
822
|
+
><ng-container
|
|
823
|
+
*ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
824
|
+
/></a>
|
|
825
|
+
} @else {
|
|
826
|
+
<a [href]="element.href" [attr.title]="element.title"
|
|
827
|
+
><ng-container
|
|
828
|
+
*ngTemplateOutlet="nodes; context: { $implicit: element.children }"
|
|
829
|
+
/></a>
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
@case ('image') {
|
|
833
|
+
<img
|
|
834
|
+
[src]="element.src"
|
|
835
|
+
[alt]="element.alt"
|
|
836
|
+
[attr.title]="element.title"
|
|
837
|
+
loading="lazy"
|
|
838
|
+
decoding="async"
|
|
839
|
+
/>
|
|
840
|
+
}
|
|
841
|
+
@case ('footnoteReference') {
|
|
842
|
+
<sup
|
|
843
|
+
><a
|
|
844
|
+
data-footnote-ref=""
|
|
845
|
+
[id]="element.id"
|
|
846
|
+
[href]="'#' + element.target"
|
|
847
|
+
[attr.aria-describedby]="document().footnoteLabelId"
|
|
848
|
+
>{{ element.number }}</a
|
|
849
|
+
></sup
|
|
850
|
+
>
|
|
851
|
+
}
|
|
852
|
+
@case ('custom') {
|
|
853
|
+
<ng-container *ngTemplateOutlet="nodes; context: { $implicit: element.children }" />
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
</ng-template>
|
|
859
|
+
|
|
860
|
+
<ng-template #heading let-element>
|
|
861
|
+
<ng-container *ngTemplateOutlet="nodes; context: { $implicit: element.children }" />
|
|
862
|
+
@if (resolvedHeadingAnchors()) {
|
|
863
|
+
<a
|
|
864
|
+
slProseAnchor
|
|
865
|
+
[href]="'#' + element.id"
|
|
866
|
+
[attr.aria-label]="t('anchor', { heading: element.text })"
|
|
867
|
+
>#</a
|
|
868
|
+
>
|
|
869
|
+
}
|
|
870
|
+
</ng-template>
|
|
871
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
872
|
+
'data-ui': 'markdown',
|
|
873
|
+
'data-part': 'root',
|
|
874
|
+
'[attr.data-status]': 'status()',
|
|
875
|
+
'[attr.data-flow]': 'resolvedFlow()',
|
|
876
|
+
'[attr.data-loading]': "painted() ? '' : null",
|
|
877
|
+
'[attr.data-empty]': "status() === 'ready' && !painted() && document().empty ? '' : null",
|
|
878
|
+
'[attr.data-streaming]': "streaming() ? '' : null",
|
|
879
|
+
'[attr.aria-busy]': "streaming() || painted() ? 'true' : null",
|
|
880
|
+
}, styles: ["@layer slotted.components{[data-ui=markdown][data-part=root]{display:block;min-inline-size:0}[data-ui=markdown] [data-part=task]{display:grid;grid-template-columns:calc(var(--slotted-prose-list-inset, 1.5em) + var(--slotted-prose-marker-gap, .25em)) minmax(0,1fr);list-style:none;margin-inline-start:calc(-1 * var(--slotted-prose-list-inset, 1.5em));padding-inline-start:0}[data-ui=markdown] [data-part=task]>:first-child{justify-self:end;margin-block-start:calc((1lh - var(--slotted-control-font-size-md, 13px) * var(--slotted-line-height-md, 1.5)) / 2);margin-inline-end:var(--slotted-markdown-task-gap, var(--slotted-space-3))}[data-ui=markdown] [data-part=task-body]{min-inline-size:0}[data-ui=markdown] [data-part=embed]{margin-block:var(--slotted-prose-flow-normal, 1.15em) 0}[data-ui=markdown][data-flow=tight] [data-part=embed]{margin-block-start:var(--slotted-prose-flow-tight, .75em)}[data-ui=markdown][data-flow=loose] [data-part=embed]{margin-block-start:var(--slotted-prose-flow-loose, 1.6em)}[data-ui=markdown] [data-part=embed]:first-child,[data-ui=markdown] [data-part=alert-body]>:first-child{margin-block-start:0}[data-ui=markdown] :where(th,td)[data-align=start]{text-align:start}[data-ui=markdown] :where(th,td)[data-align=center]{text-align:center}[data-ui=markdown] :where(th,td)[data-align=end]{text-align:end}[data-ui=markdown] [data-part=backref]{--_glyph: var(--slotted-markdown-backref-size, .9em);--_box: var(--slotted-target-min, 24px);--slotted-icon-size: var(--_glyph);block-size:var(--_box);display:inline-block;inline-size:var(--_box);margin-inline-start:var(--slotted-space-1);position:relative;vertical-align:calc(.5cap - .5 * var(--_box))}[data-ui=markdown] [data-part=backref]>[data-ui=icon]{inset:0;margin:auto;position:absolute;rotate:90deg}[data-ui=markdown] [data-part=empty]{color:var(--slotted-text-muted);font-family:var(--slotted-font-family-sans);font-size:var(--slotted-font-size-md);line-height:var(--slotted-line-height-md);margin:0}[data-ui=markdown] [data-part=error]{align-items:center;display:flex;flex-wrap:wrap;gap:var(--slotted-space-3) var(--slotted-space-4)}@media print{[data-ui=markdown] a[href^=http]:after{content:\" (\" attr(href) \")\";font-size:.875em;overflow-wrap:anywhere}}}\n"] }]
|
|
881
|
+
}], ctorParameters: () => [], propDecorators: { tree: [{ type: i0.Input, args: [{ isSignal: true, alias: "tree", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], flow: [{ type: i0.Input, args: [{ isSignal: true, alias: "flow", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], streaming: [{ type: i0.Input, args: [{ isSignal: true, alias: "streaming", required: false }] }], external: [{ type: i0.Input, args: [{ isSignal: true, alias: "external", required: false }] }], headingAnchors: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingAnchors", required: false }] }], headingOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingOffset", required: false }] }], idPrefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "idPrefix", required: false }] }], alerts: [{ type: i0.Input, args: [{ isSignal: true, alias: "alerts", required: false }] }], allow: [{ type: i0.Input, args: [{ isSignal: true, alias: "allow", required: false }] }], unwrapDisallowed: [{ type: i0.Input, args: [{ isSignal: true, alias: "unwrapDisallowed", required: false }] }], transformUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "transformUrl", required: false }] }], isExternal: [{ type: i0.Input, args: [{ isSignal: true, alias: "isExternal", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], editableTasks: [{ type: i0.Input, args: [{ isSignal: true, alias: "editableTasks", required: false }] }], retryable: [{ type: i0.Input, args: [{ isSignal: true, alias: "retryable", required: false }] }], taskChange: [{ type: i0.Output, args: ["taskChange"] }], retry: [{ type: i0.Output, args: ["retry"] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SlMarkdownNode), { isSignal: true }] }], nodesTemplate: [{ type: i0.ViewChild, args: ['nodes', { isSignal: true }] }] } });
|
|
882
|
+
/**
|
|
883
|
+
* Renders an element's children inside a node template, adding no element of
|
|
884
|
+
* its own: `<ng-container [slMarkdownChildren]="element" />`.
|
|
885
|
+
*/
|
|
886
|
+
class SlMarkdownChildren {
|
|
887
|
+
element = input.required({ ...(ngDevMode ? { debugName: "element" } : /* istanbul ignore next */ {}), alias: 'slMarkdownChildren' });
|
|
888
|
+
markdown = inject(SlMarkdown);
|
|
889
|
+
container = inject(ViewContainerRef);
|
|
890
|
+
constructor() {
|
|
891
|
+
effect(() => {
|
|
892
|
+
const children = this.element().children ?? [];
|
|
893
|
+
untracked(() => {
|
|
894
|
+
this.container.clear();
|
|
895
|
+
this.container.createEmbeddedView(this.markdown.childrenTemplate(), {
|
|
896
|
+
$implicit: children,
|
|
897
|
+
});
|
|
898
|
+
});
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMarkdownChildren, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
902
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: SlMarkdownChildren, isStandalone: true, selector: "[slMarkdownChildren]", inputs: { element: { classPropertyName: "element", publicName: "slMarkdownChildren", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
903
|
+
}
|
|
904
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlMarkdownChildren, decorators: [{
|
|
905
|
+
type: Directive,
|
|
906
|
+
args: [{ selector: '[slMarkdownChildren]', standalone: true }]
|
|
907
|
+
}], ctorParameters: () => [], propDecorators: { element: [{ type: i0.Input, args: [{ isSignal: true, alias: "slMarkdownChildren", required: true }] }] } });
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* Generated bundle index. Do not edit.
|
|
911
|
+
*/
|
|
912
|
+
|
|
913
|
+
export { MARKDOWN_DEFAULTS, SlMarkdown, SlMarkdownChildren, SlMarkdownEmpty, SlMarkdownNode, injectMarkdownDefaults, provideMarkdownDefaults };
|
|
914
|
+
//# sourceMappingURL=slotted-angular-markdown.mjs.map
|